|
| 10 Oct 2012 12:46 PM |
| How would I set up a string value? |
|
|
| Report Abuse |
|
|
Daelus
|
  |
| Joined: 06 Sep 2012 |
| Total Posts: 144 |
|
|
| 10 Oct 2012 12:48 PM |
If you have "using namespace std" then:
string var;
OR
string var = "value";
If not, however:
std::string var;
OR
std::string var = "value"; |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2012 01:05 PM |
| so, string has to be called from std? |
|
|
| Report Abuse |
|
|
Daelus
|
  |
| Joined: 06 Sep 2012 |
| Total Posts: 144 |
|
|
| 10 Oct 2012 01:09 PM |
> so, string has to be called from std?
Yep. |
|
|
| Report Abuse |
|
|