// you want to include <string>
#include <string>
#include <iostream>
int main()
{
string helloWorld = "Hello World!"; // creating string and assigning
std::cout << helloWorld; // will output what you assigned it!
/* you can also use strings with user
input (cin/getline)*/
string namePerson{};
getline(cin, namePerson); // getline allows for multi word input
std::cout << namePerson; // outputs name which person inputted
}
#include <iostream>
#include <string>
int main(){
std::string name = "Eria";
std::cout <<name;
}
#include <bits/std.hc++>
using namespace std;
int main(){
string word = {"Hi this my account on instgram 0.wht"};
cout<<word<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main( ) {
string one = "Welcome to";
char ch[] = { 'S', 'o', 'f', 't', 'h', 'u', 'n', 't'};
string two = string(ch);
cout<<one<<endl;
cout<<two<<endl;
}
#include <iostream>
int main() {
char name;
std::cout << "Enter you name: ";
std::cin >> name;
std::cout << "Hello " << name << "
";
}