carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/getting_started/hw_example.htm
equal
deleted
inserted
replaced
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
|
2 <html lang="en"> |
|
3 <head> |
|
4 <meta http-equiv="Content-Language" content="en-us"> |
|
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
6 <title>C++ Hello World example</title> |
|
7 </head> |
|
8 <body bgcolor="#ffffcc"> |
|
9 <font color="#0066ff">Copy the code below and paste it into the <b>main.cpp</b> file in the Editor view:</font> |
|
10 |
|
11 <pre> |
|
12 #include <iostream> |
|
13 #include <string> |
|
14 using namespace std; |
|
15 |
|
16 int main() |
|
17 { |
|
18 string yourName; |
|
19 |
|
20 cout << "Type your name: "; |
|
21 cin >> yourName; |
|
22 cout << "Hello " + yourName << endl; |
|
23 |
|
24 return 0; |
|
25 } |
|
26 |
|
27 </pre> |
|
28 |
|
29 </body> |
|
30 </html> |