Re: [Dev-C++] Re: newbie string parsing question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2004-08-19 00:51:10
|
Per Westermark wrote: > Using C for string manipulation isn't dangerous unless you don't know w= hat > to do. Same thing with using a hammer. Don't forget that the majority o= f > all operating systems in existence uses C with great success. >=20 > file >> first_name >=20 > still gives you the possibility of loading a multi-megabyte text string= , > possibly exhausting the available memory. Is getting a buffer overflow better? IMO C string manipulation is very awkward, and hard to use. You always ha= ve to worry about=20 things like: "Now have I counted that \0 terminating character or not?" and others. Why bother with low-level, error prone functions, when C++ introduced the= string class to=20 address these problems? -- Greetings, Bal=E1zs |