Forum: C++ Aug 10th, 2008 |
| Replies: 5 Views: 912 |
Forum: C++ Aug 10th, 2008 |
| Replies: 5 Views: 912 |
Forum: C++ Aug 9th, 2008 |
| Replies: 5 Views: 912 |
Forum: C++ Jul 2nd, 2008 |
| Replies: 12 Views: 757 |
Forum: C++ Jul 2nd, 2008 |
| Replies: 12 Views: 757 |
Forum: C++ Jul 2nd, 2008 |
| Replies: 12 Views: 757 |
Forum: C++ Jul 2nd, 2008 |
| Replies: 12 Views: 757 |
Forum: C++ Jul 1st, 2008 |
| Replies: 12 Views: 757 |
Forum: C++ Jul 1st, 2008 |
| Replies: 12 Views: 757 |
Forum: C++ Jun 7th, 2008 |
| Replies: 4 Views: 708 Re: specify line of file to start reading? I tried this and it is counting and skipping the first two lines but now the second "while" is not using commas as a delimeter. It's reading them into the vector. How can I delimit with '\n' and then... |
Forum: C++ Jun 7th, 2008 |
| Replies: 4 Views: 708 Re: specify line of file to start reading? sorry, I don't know anything about flags or how to use a boolean to check if the line already exists.
I'm not sure how to check for headers. There's nothing special about them. I just added lines... |
Forum: C++ Jun 7th, 2008 |
| Replies: 4 Views: 708 specify line of file to start reading? Hi, I have a readFile() function that reads a csv file into a vector.
The first two lines of the csv are collum headings.
After reading and displaying the file on screen, replacing ","'s with... |
Forum: C++ May 27th, 2008 |
| Replies: 16 Views: 14,106 Re: How do I flush the input stream? I can not find unistd.h anywhere on my system.
So let me see if I understand this.
POSIX is the linux API just like there's a Windows API.
By changing pause to pause2, we have something that... |
Forum: C++ May 26th, 2008 |
| Replies: 16 Views: 14,106 Re: How do I flush the input stream? Thank you John A and Narue.
I never would have thought of something like that since I'm a noob. I don't know enough to decide between windows, linux and the different compilers who is complying with... |
Forum: C++ May 26th, 2008 |
| Replies: 16 Views: 14,106 Re: How do I flush the input stream? looks like Naure covered a lot of bases with one class of functions which is great.
I appreciate your comedy ruotine Traicey, but if there is an easier way to be able to flush,empty,ignore (what... |
Forum: C++ May 25th, 2008 |
| Replies: 7 Views: 1,590 Re: get user input for file name to open? OK thanks a lot Duoas :-)
I was able to incorporate using a vector and am working on adding in a string stream now so I can parse it twice for the purpose of reading and writing csv files from user... |
Forum: C++ May 25th, 2008 |
| Replies: 7 Views: 1,590 Re: get user input for file name to open? Thanks for the advise on safety. Can you tell me what is the deal with
int count = 10;
while (count > 0;
and
count--;
I know what they are but what is there purpose? Why count down from a number... |
Forum: C++ May 24th, 2008 |
| Replies: 7 Views: 1,590 |
Forum: C++ May 24th, 2008 |
| Replies: 7 Views: 1,590 |
Forum: C++ May 24th, 2008 |
| Replies: 7 Views: 1,590 get user input for file name to open? Hi, I am writing a program to read from a file.
I want to ask the user for the file name to open.
I have tried to use the basic open file code from cplusplus.com and it won't work unless I specify... |
Forum: C++ May 23rd, 2008 |
| Replies: 16 Views: 14,106 Re: How do I flush the input stream? after looking up ambiguous, I'm wondering if this code could or should be rewritten so it can be called as a member function instead of as cin >> pause(). Don't know, just throwing the idea out... |
Forum: C++ May 22nd, 2008 |
| Replies: 16 Views: 14,106 Re: How do I flush the input stream? works great for windows. I saved it as ignoreline.h and use it as an include.
Doesn't work in linux. Anyone know why?
Compile time error message:
clearTheStream.cpp: In function ‘int... |