|
From: Per W. <pw...@ia...> - 2004-11-02 12:40:56
|
Octal specification works fine, but more often hexadecimal is more intuitive, i.e. "\x40" for '@'. What was the question about the = operator? using c strings, = assigns the pointer to a string, to the actual string contents. Using the std::string data type on the lefthand side, = assigns a new c string to the c++ object, i.e. calls the operator= method for the std::string class object. /Per W On Tue, 2 Nov 2004, Thomas Witt wrote: > Patel, Nilesh M wrote: > > Just wondering does anyone know what this syntax would be used for: > > > > Example: > > > > start = "\002"; > > finish = "\026"; > > > > I know that it might be a repeat delimiter (\) but now sure how it is used. Tried looking online for some help but very vague references. > > > > Thanks. > > > This is the syntax to write ASCII characters directy inside a string. > E.g. \097 should be equal to 'a' > > But how can you use the = operator to Strings in Cpp? > > -=#=- > mfg Thomas > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |