From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10261c,90121986704b5776 X-Google-Attributes: gid10261c,public X-Google-Thread: 10c950,90121986704b5776 X-Google-Attributes: gid10c950,public X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public X-Google-Thread: fdb77,4873305131bf4d94 X-Google-Attributes: gidfdb77,public X-Google-Thread: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public From: "Dennis Weldy" Subject: Re: English SUCKS, Chinese is the only language you need!! Date: 1997/11/19 Message-ID: #1/1 X-Deja-AN: 290752693 References: <34557f2b.1934172@news.mindspring.com> <34566fe9.447229@news.mindspring.com> <345673af.1413708@news.mindspring.com> <3456A374.5BF2@public.hz.zj.cn> <347067B8.46@lysator.liu.se> <64qllr$c45@mtinsc03.worldnet.att.net> <3471428A.6193@erdw.ethz.ch> <64sql2$k0@mtinsc04.worldnet.att.net> <64suum$5oo$1@weber.videotron.net> <64tnjp$o0k$1@weber.videotron.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Intergraph Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java.advocacy,comp.lang.pascal.ansi-iso,comp.lang.pascal.misc Date: 1997-11-19T00:00:00+00:00 List-Id: Have y'tried using the string class? Y'dont have to use strdup any longer. :-) Give it a shot. :-) #include #include main() { std::string Hello, World, HelloWorld ; std::string HW2 ; Hello = "Hello" ; World = "World" ; HelloWorld = Hello + " " + World + "!" ; cout << HelloWorld << endl ; HW2 = HelloWorld ; HelloWorld = "I like the string class" ; cout << HW2 << endl ; cout << HelloWorld << endl ; } Dennis Jean-Sebastien Payette wrote in message <64tnjp$o0k$1@weber.videotron.net>... > >Dennis Weldy wrote in message ... >>It is? Care to offer a bit of proof there? >>Standard Pascal was, last I looked woefully lacking in file handling. >>Strings were packed arrays of chars (much like C). >> >>Now, perhaps y'mean Object Pascal, from Borland? Yes, that would be better >>at handling objects "better" than C, since C doesn't directly support the >OO >>paradigm. Of course, if y'try to compare it to C++....then I would disagree >>(and yes, I do know Object Pascal (BP 7.0)). >> >>Dennis >> > > >Ok sorry I was talking about C++, I never really code in pure C. >I must agree that I was a little overhelm stating that object pascal was >better than C ( oups! C++) but not string manipulation. I hate string >manipulation in C++. Damn strdup() that make everything fall appart... >and file manipulation is file manipulation, you can't really tell appart any >of the two languages because the functions are nearly the same in both.And >btw, in pascal, you can have pointer to string (like in C) but they are more >easy to handle! > >