ok i have a program which is supposed to work but doesnt, it doesnt output any of the info that i need it to, all that it outputs is the following 20 times, increasing the number by 1 every time:
Record #0 from readdata:
from SetAll
not sure whats wrong with my code, must have something to do with reading in stuff from file, ill post the parts which probably contain the mistake
void SetAll(string l,string f,string s,string c,string st,string z,string M,string m,int i){
cout%26lt;%26lt;"from SetAll"%26lt;%26lt;l%26lt;%26lt;" "%26lt;%26lt;f%26lt;%26lt;" "%26lt;%26lt;s%26lt;%26lt;" "%26lt;%26lt;c%26lt;%26lt;" "%26lt;%26lt;st%26lt;%26lt;" "%26lt;%26lt;z%26lt;%26lt;" "%26lt;%26lt;M%26lt;%26lt;" "%26lt;%26lt;m%26lt;%26lt;endl;
last=l;first=f;street=s;city=c;state=st;...
}
void label(){
cout%26lt;%26lt;first%26lt;%26lt;" "%26lt;%26lt;last%26lt;%26lt;endl;
cout%26lt;%26lt;street%26lt;%26lt;endl;
cout%26lt;%26lt;city%26lt;%26lt;", "%26lt;%26lt;state%26lt;%26lt;" " %26lt;%26lt; zip %26lt;%26lt; endl %26lt;%26lt; endl;;
}
void print(){
Can someone please help me with a c++ program?
You need to use the debugger, or put cout statements at key places to help you debug. This is the life of a programmer.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment