Problem SOLVED. Thanks everyone
Type: Posts; User: appointment
Problem SOLVED. Thanks everyone
ahhh i see thanks.
i was inserting new element into the vector in ..... section by using v.push_back() inside a while loop.
thanks that worked.
still dont know what's wrong with original way of doing it.
I am trying to insert a new element into a vector in C++ under Ubuntu Linux.
The following is what I did, where v contain some element already. InsertElementNo is the element number the new...
1) What's the difference between:
myfile.peek() != EOF and !myfile.eof() if I declare ifstream myfile("test.txt")?
2) test.txt
12 05 2005 dad da ada
12 01 2001 d d ddadda
04 11 2005 s s s
Doing an appointment manager in C++ under Ubuntu using command line interface.
Will store all appts inside a standard db.txt file with one entry per line.
User will enter ./add 5 March 2009...