|
-
Feb 23rd, 2002, 12:04 AM
#1
Thread Starter
Hyperactive Member
-
Feb 23rd, 2002, 09:56 AM
#2
Different classes have different methods. String, Cstring and regular char, are the basic ones.
C isn't like VB. If you are working on base types like char, you pretty much have only a few string operators available - you get to write your own for most things like LTRIM. String and Cstring have left and right, and so on.
Go into C++ help, look up string or strcpy. There are a lot of basic string operators. The same applies for String (with a capital S).
-
Feb 23rd, 2002, 12:24 PM
#3
I can remeber at least 3 times someone asked this. Search the forum for trim.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 4th, 2002, 10:00 PM
#4
^:^...ANGEL...^:^
Can u pass me the LEFT function...
Hi Alan,
Can u please pass me the LEFT function in VC++ or C++ what ever u have...???
I need it fast...
Also it will be great if you can send me the whole CPP file with all the declaration and header files include...
TA.
-
Jun 6th, 2002, 02:22 PM
#5
Monday Morning Lunatic
Code:
string left(const string &s, size_t len) {
return s.substr(0, len);
}
...or is it (1, len)?...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 6th, 2002, 04:09 PM
#6
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|