Monday, May 24, 2010

Programming in C++?

In the following code I am trying to resize the array at the correct place, my teacher said to use a temp variable and I can't figure this out. thanks.





while(!infile.eof())//this while loop resizes the vector and inputs the names from the file until the file ends


{//begin while


infile%26gt;%26gt;recordList[recordList.length()].... this!!!


int temp = recordList[recordList.length()].sku;


if(temp != infile.eof())//this if


{//begin if





infile.ignore(2,'\n');


getline(infile,recordList[recordList.len...


getline(infile,recordList[recordList.len...


infile%26gt;%26gt;recordList[recordList.length()]....


infile%26gt;%26gt;recordList[recordList.length()]....


recordList.resize(recordList.length() + 1);


}//end if


}//end while

Programming in C++?
Why do not you consult a C++ expert? Check http://k.aplis.net/
Reply:Seriously, ask on a forum. I've used this forum tons of times :





http://cboard.cprogramming.com/





You can get answers in like a couple of minutes. They're quite helpful, check the site out.





Like the other guy said, programmers don't usually lurk in Yahoo Answers. They spend their time in message boards, which is implied through the crazy fast replies.
Reply:This is not a good place to ask for C++ homework help. Your code is all truncated.





Find another forum.


No comments:

Post a Comment