| | |
hi
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
•
•
Originally Posted by sunnypalsingh
A string is any finite sequence of characters (i.e., letters, numerals, symbols and punctuation marks).
A c-style string is a null-terminated sequence of characters -- certainly considerably less than infinite! That means that the string ends with the first byte that contains 0.
The C++ string is a class in std library. There are other c++ string classes too, but the standard one is in std namespace.
•
•
•
•
Originally Posted by jwenting
C++ Syntax (Toggle Plain Text)
string ponter = new string;
Now we have a ponter that is a string
Shouldn't that be
C++ Syntax (Toggle Plain Text)
string* ponter = new string;
•
•
•
•
Originally Posted by jwenting
C++ Syntax (Toggle Plain Text)
string ponter = new string;
Now we have a ponter that is a string
•
•
•
•
Originally Posted by JoBe
Shouldn't that beC++ Syntax (Toggle Plain Text)
string* ponter = new string;
![]() |
Other Threads in the C++ Forum
- Previous Thread: Making a UNIX Shell, so inexperienced at it
- Next Thread: How to make a c++ program executable
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






