Explore Connect Documentation
Snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <string>
using namespace std;
int main() {
  string s = "hello world";
  // display hello world followed by an end of line
  cout << s << endl; 
  // display hello world followed by ! and end of line
  cout << s << "!" << endl;
  
  return 0;
}
Press desired key combination and then press ENTER.