2004-05-05 12:45:42 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
|
|
<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 bgcolor="#ffffcc">
|
2010-03-31 01:34:27 +00:00
|
|
|
<p style="color:#0066ff">Copy the code below and paste it into the <strong>main.cpp</strong> file in the Editor view:</p>
|
2004-05-05 12:45:42 +00:00
|
|
|
|
|
|
|
<pre>
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
string yourName;
|
|
|
|
|
2007-06-19 19:34:42 +00:00
|
|
|
cout << "Type your name: ";
|
2004-05-10 14:38:08 +00:00
|
|
|
cin >> yourName;
|
|
|
|
cout << "Hello " + yourName << endl;
|
2004-05-05 12:45:42 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|