carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/getting_started/hw_example.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
	<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
	<title>C++ Hello World example</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<body bgcolor="#ffffcc">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
<font color="#0066ff">Copy the code below and paste it into the <b>main.cpp</b> file in the Editor view:</font>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
<pre>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
#include &#60iostream&#62
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
#include &#60string&#62
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
using namespace std;
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
int main()
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
{
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
	string yourName;
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
	cout &lt;&lt; "Type your name: ";
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
	cin  &gt;&gt; yourName;
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
	cout &lt;&lt; "Hello " + yourName &lt;&lt; endl;
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
	return 0;
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
}
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
</pre>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
</html>