| |
|
m27frogy
|
  |
| Joined: 26 Mar 2009 |
| Total Posts: 4427 |
|
|
| 24 Aug 2014 06:12 AM |
| Just guessing but most C-based languages have a String data type rather then string. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2014 06:29 AM |
no
unless you're using CLR.
it's char* |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 24 Aug 2014 06:57 AM |
| If you #include string, you will have std::string, but it's a class. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2014 07:56 AM |
| Its not a primitive data type but it is a part of the standard library (std::string) |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2014 10:44 AM |
| Strings aren't really a specified data type rather they compose an array of char. You could reinvent the string class/object/whateverYouWantToCallIt if you so wanted. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 12 Oct 2014 09:29 AM |
I don't think enough people have posted the exact same thing except reworded so I just gotta post again, sorry.
No, there's no string type in C++, but you can use an array of char. There's std::string which is part of the standard library. |
|
|
| Report Abuse |
|
|