| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| <html lang="en"> |
| <head> |
| <meta http-equiv="Content-Language" content="en-us"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>C++ Hello World example</title> |
| </head> |
| <body style="background-color:#ffffcc;"> |
| <div role="main"> |
| <pstyle="color:#0066ff">Copy the code below and paste it into the <strong>main.cpp</strong> file in the Editor view:</p> |
| |
| <pre> |
| #include <iostream> |
| #include <string> |
| using namespace std; |
| |
| int main() |
| { |
| string yourName; |
| |
| cout << "Type your name: "; |
| cin >> yourName; |
| cout << "Hello " + yourName << endl; |
| |
| return 0; |
| } |
| |
| </pre> |
| |
| </div></body> |
| </html> |