help with multiple strings

Gansea

[#include <iostream>
#include <string>
using namespace std;
int main()
{
string str1("Name:");
string str2("Course:");
string str3("Quote:");
string str4;

str4 = str1;
cout << str1 << "Georgia Root: \n" << str2 << "INF 231: \n" << str3 << "Live Love Laugh: \n";


return 0;

}




I am trying to make a basic program in C++ to print out my name, course, and a line that says live love laugh, can anyone help? nevermind I figured it out. It works now.
Last edited on
Do you have a question, or are you just showing off your code?
sorry I got excited because I fixed it myself without any help
Topic archived. No new replies allowed.