Beginners - February 2011 (Page 14)

nooby mistake hopefully
 
i have two problems atm. 1) the first one is for some reason it skips the first question "clients name" 2) the secord one is i cant get it to save the quest...
[16 replies] Last: because i didnt get around to making more use off it (by thecrrrg)
Segmentation error but why
 
void stack:: pushsort(int item) { node *t=new node; cout<<"your function is calling"<<endl; if(head == NULL) { ...
[3 replies] Last: The problem is line 26: while( item > t -> data && t != NULL ) ... (by jsmith)
Function Include If: Calculate Circle Area
 
Hello, i've been asked to Write a C++ program that takes in the radius (as in integer) of a circle from user and calculate the area of the circle through...
[9 replies] Last: guys..how can i convert it to pseodo code?? (by richgirl)
by w1llux
confusion with loop
 
I am new to programming and am trying to write a simple program that calculates the number of days it takes for a salary to earn 100,000 dollars. The pay rate d...
[2 replies] Last: I'm not so sure on the algorithm of your program but I tried it anyway... (by mainframe639)
classes (1,2)
 
Hi, i know a program could be written like so: #include<iostream> using namespace std; class Example { blahh } main() ................. wha...
[22 replies] Last: Sorry its took this long to reply, that helped alot, thanks :) (by TpOreilly)
how to access sql using c++?
 
how to access sql using c++?
[1 reply] : Hope this helps you. http://msdn.microsoft.com/en-us/library/ms710252... (by richardforc)
Use char in FindFirstFile() and FindNextFile() ?
 
Previous I use wchar_t because I'm using FindFirstFile() and FindNextFile() for searching all the files under the given data folder SStress_Corpus ...
[1 reply] : Goto project properties->Configuration Properties->General, select Cha... (by richardforc)
Program crashes right after compiling
 
can you guys take a look at my code? The program compiles, but crashes immediately as I open it. Any ideas? #include<iostream> #include<fstream> #in...
[5 replies] Last: In my notation, 'p_' indicates a pointer. It's a useful habit I've fal... (by Moschops)
by dede
error LNK2019-LKN2001
 
Hi, Could anyone help me understand these errors please!! It complies fine, but build failed :( 1>matrix.obj : error LNK2019: unresolved external symbol "...
[10 replies] Last: Yes they are all part of one project. (by dede)
C++ can't break out of WHILE loop
 
Hi all, Total newbie here and having problems with an assignment from class. Need to incorporate a WHILE (loop) and an IF condition while keeping track of v...
[3 replies] Last: Well it should give you error #1 as you didn't enter one of the three ... (by Zhuge)
populating an array using random numbers between a given range
 
So I'm new to programming and we have an assignment that is to populate an array of 100 elements with random values between 100 and 1200. I can't find out how t...
[7 replies] Last: Well in your case you don't have a minimum range outside of 1, which i... (by ultifinitus)
Trouble with sorting
 
i am having trouble sorting the netpays of a payroll program. The program will not compile and I believe the problem is within the function def./called. Can y...
[6 replies] Last: Thanks. I have changed the variable spaces- now the headers are printe... (by cplusplusrookie)
How to concatenate a '*' (star character) to a TCHAR* or char*
 
Every time I try to do this will concludes with a crash: test.exe has stopped working A problem caused the program to stop working correctly. Windows wi...
[1 reply] : char* cs1 = ""; char* cs2 = "..\\data\\*"; cs1 = cs2; poi... (by Disch)
Problem while write in txt file
 
Hi, i'm having a problem while writing data in a txt file. My code is this: #include <iostream> #include <fstream> #include <cstdlib> #include <cstring...
[4 replies] Last: File IO does not work well with POD types either. The size of "intege... (by PanGalactic)
by Swirly
No matching function for custom class
 
In this scheduling program, I am trying to use my class as a data type, but my compiler seems to be interpreting my constructor as a member function, since I ge...
[3 replies] Last: Well, either you intended to use the constructor you wrote or not. If... (by jsmith)
When making class how to access private variable
 
lets say the class has a private variable double a and only one public function double Calculate(double b, double c) that returns a*b*c. I want to change t...
[1 reply] : External methods and variables cannot access private members of a give... (by closed account zb0S216C)
Understanding Memory Buffers In C
 
I'm trying to figure out how buffers work in C. First off, I'm trying to create a buffer which holds integers. The thing is, I don't know how to access values i...
[4 replies] Last: OK, thanks, Moschops. (by closed account zb0S216C)
by waynew
Libary function call
 
I am trying to figure out how to call a function in a library but I don't know the correct syntax. The library function definition is DLLEXPORT int tqsl_...
[1 reply] : The documentation is supposed to describe what each of the parameters ... (by Zhuge)
by linoch
Writing function
 
So, the problem is: Write the definition of a function powerTo , which receives two parameters. The first is a double and the second is an int . The func...
[4 replies] Last: The suggestions above should help you with your problem, but I believe... (by jjmcallister)
About sound
 
Is there any multiplatform library for generating and reading sounds? If not, how can I generate sounds (and read input from a microphone) with Windows and Linu...
[1 reply] : Yes, there is. www.sfml-dev.org (by programmer47)
February 2011 Pages: 1... 1213141516... 43
  Archived months: [jan2011] [mar2011]

This is an archived page. To post a new message, go to the current page.