string

Please help with this code.

[#include <iostream>
#include <string>

using namespace std;

int main(void) {
string TheGood = "Jekyll", TheBad = "Hyde";
cout << TheGood + " & " + TheBad << endl;
cout << TheBad + " & " + TheGood << endl;
return 0;
}
code]
Put the code you need help with here.
[/code]
Do you have a question or problem with the code?

closed account (48T7M4Gy)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <string>

using namespace std;

int main(void) {
 string TheGood = "Jekyll", TheBad = "Hyde";

 cout << TheGood + " & " + TheBad << endl;
 cout << TheBad + " & " + TheGood << endl;

 return 0;
}


Looks OK to me
Last edited on
what is your worry about the code?
Topic archived. No new replies allowed.