Forum: C++ Sep 8th, 2009 |
| Replies: 4 Views: 338 1) The undefined reference is because you are not linking to SaveData.cpp. Which IDE are you using (Visual studio, etc)?
2) 'retreive' should be spelled 'retrieve'.
3) you seem to still be... |
Forum: C++ Sep 5th, 2009 |
| Replies: 4 Views: 345 Sorry, we will not just do your assignment for you. We also cannot teach you all of c++ - you're going to have to give it an attempt and we can help when you run into problems. |
Forum: C Aug 5th, 2009 |
| Replies: 4 Views: 271 getch() is a c language thing:
http://www.daniweb.com/forums/thread11811.html
I think that book was wanting you to include conio.h, but as you will see if you are working in c++ you likely... |
Forum: C++ Jul 25th, 2009 |
| Replies: 8 Views: 277 You cannot just post a bunch of code and expect us to do your assignment.
1) use code tags so the code you do post is readable
2) extract the problem you are having in to the smallest example... |
Forum: C++ Jul 2nd, 2009 |
| Replies: 2 Views: 187 peter, please use descriptive thread titles in the future :) |
Forum: C++ Jun 12th, 2009 |
| Replies: 3 Views: 513 Yea, I think that generally the convention is to not include .cpp files. Surely you can make a project with any IDE. CMake is becoming pretty popular - it is a "crossplatform project building"... |
Forum: C++ Jun 9th, 2009 |
| Replies: 2 Views: 213 I believe the preferred method of reading all the lines in a file is this:
std::string line;
while(getline(fin, line))
{
//the current line is now in "line", handle it
} |
Forum: C++ May 31st, 2009 |
| Replies: 3 Views: 304 Can you abstract the question to something like "how do you input everything the user types until the enter key is pressed?" or something like that? I'd say 3/4 of those lines are not related to your... |
Forum: C++ May 12th, 2009 |
| Replies: 13 Views: 705 Here is what you are trying to do:
http://answers.yahoo.com/question/index?qid=20080422195554AAANJgl |
Forum: C++ Apr 4th, 2009 |
| Replies: 7 Views: 2,371 Here are some of the answers:
It will output some junk signed integer value because you never told it which signed integer to output.
A vector is a STL container that has the same... |
Forum: C++ Mar 27th, 2009 |
| Replies: 3 Views: 646 if you have a very simple program that just has to run a zillion times, you can use OpenMP parallel for loops. You just put a #pragma right before the loop and it magically splits it across all... |
Forum: C++ Feb 27th, 2009 |
| Replies: 12 Views: 695 You seem to have not tried at all. Give it a shot and then if it doesn't work we'll help you. |
Forum: C++ Feb 23rd, 2009 |
| Replies: 12 Views: 838 But look how easy this is!
ifstream fin(Filename.c_str());
if(fin == NULL)
cout << "Cannot open file." << endl;
vector<string> Lines; |
Forum: C++ Jan 12th, 2009 |
| Replies: 8 Views: 501 Is there a way to remove these threads altogether? It really pollutes the forums.
Dave |
Forum: C++ Dec 13th, 2008 |
| Replies: 8 Views: 1,025 you could use a vector instead of an array
#include <vector>
then you can return a vector<int> and not have to worry about every saying pointer!
Dave |
Forum: C++ Apr 14th, 2008 |
| Replies: 2 Views: 419 I am using VS2008. Turns out I was using a library that was using the 80 version of the file.
I used this
http://www.dependencywalker.com/
and it showed me exactly what the problem was! Highly... |