Quote:Original post by Cyncro
No it still won't work. I know I'm doing something wrong. Here's the new code.
#include <string><iostream>
using namespace std;
int main() {
string imBlank;
string heyMom("Where are my socks?");
string standardReply = "Beamed into deep "
"space on wide angle dispersion?";
string useThisOneAgain(standardReply);
cin.get ();
} ///:~
First thing's first. Whenever you paste code in gamedev, be sure to do it between [_source_] [_/source_] tags (without the underscores)
Second of all. it should be
#include <string>#include <iostream>
I've never seen them on the same line, it may be valid, but i've never seen it, so i'm going to assume its invalid.
the standard reply thing, I didn't think that you could have two strings like that either. on different lines. instead, put them between the same quotes with a \n like so
string standardReply = "Beamed into deep\n space on wide angle dispersion?";
assuming you wanted a new line there.
hope that helps
-Dan