![]() |
|
#21
|
|||
|
|||
|
I have a doubt...
How ... when having a file made by the user, how do i make a for that reads everyline and at the end tells me how many lines are in the file. Example: NAME LASTNAME AREACODE PHONENUMBER 1111 222222 333 4444444 5555 66666 777 8888888 and reads 'tils the newline that i says that i have.. in this case, two ..(is objects the word?) |
|||
|
#22
|
|||
|
|||
|
Quote:
You could open the file and read all the lines -- then you'll know. Then close the file, allocate some space, and reread the file. CPP / C++ / C Code:
|
|
#23
|
|||
|
|||
|
Thanks, i think that'll help.
Let's keep working it.... would you be a dear and give me a hand, (if you'll be here) I think there's no one else reading my post... |
|
#24
|
|||
|
|||
|
CPP / C++ / C Code:
and the errors: Code:
Last edited by LuciWiz : 05-May-2005 at 11:38.
Reason: Please insert your C code between [c] & [/c] tags
|
|
#25
|
|||
|
|||
|
There are generally three ways to go about using stuff from the std namespace.
|
|
#26
|
|||
|
|||
|
This is just something else to look at.
CPP / C++ / C Code:
|
|
#27
|
|||
|
|||
|
i took off the std's of your code and added just #include <iostream.h> and i still have 5 errors...
i can do that right? 'cause we have been taught to use jsut cout not std::cout... Let me know... Code:
Thanks, |
|
#28
|
|||
|
|||
|
Quote:
The standard made <iostream.h> obsolete in 1998. |
|
#29
|
|||
|
|||
|
Quote:
REALLY?! *haha* Well, then my professors are backwards, because they have always told us to do that... by the way, the last code you gave me, is not giving me that output.... |
|
#30
|
|||
|
|||
|
Quote:
http://groups-beta.google.com/group/...925ca0462d2081 Quote:
Code:
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The