carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/getting_started/cdt_w_creating_cpp_file.html
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 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html>
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-Type" content="text/html; charset=ISO-8859-1">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
	  <link rel="stylesheet" type="text/css" href="../../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
	  <title>Creating your C++ file</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
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
   <body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
   		<h1>Creating your C++ file</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
   		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
   		<p>Once you have created a new remote C/C++ project, you can begin coding your program. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
   		The .cpp file that you create will be saved in the project folder you just created in
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
		<a href="creating_a_remote_project.html">Creating a remote project</a>.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
		<p>Files are edited in the <b>Remote C/C++ Editor</b> located to the  right of 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
		the <b>Project Explorer</b> view. The left margin of the <b>Remote C/C++ Editor</b>, called the marker 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
		bar, displays icons for items such as bookmarks, breakpoints, and compiler errors and warnings.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
		<p>For more information about:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
		<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
		  <li>The marker bar, see <b>Workbench User Guide &gt; Reference &gt; User interface 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
		  information &gt; Icons and buttons &gt; Editor area marker bar</b></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
		  <li>The editor area, see <b>Workbench User Guide &gt; Reference &gt; User interface 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
		  information &gt; Views and editors &gt; Editor area</b></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
		</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
		<p>To create a C++ file:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
		<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
		  <li>In the <b>Project Explorer</b> view, right-click a project, and
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
		select <b>New &gt; File &gt; Other</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
		    <img src="../images/create_c_file_01.png"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
		 alt="New &gt; File &gt; Other in Projects View"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
		 <li>Select <b>Source file</b> under <b>C++</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
		    <img src="../images/create_c_file_02.png"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
		 alt="New Source file in New Wizard Dialog"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
		  <li>In the <b>Source File</b> box, type a name followed by the
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
		appropriate extension.  Select a template.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
		  <li>Click <b>Finish</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
		    <img src="../images/create_c_file_03.png" alt="New Source File Wizard"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
		  <p>The file will open in the Remote C/C++ editor.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
		  <li>Enter your code in the editor view.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
		    <img src="../images/create_c_file_04.png"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
		 alt="Editor view with a sample code"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
		  <li>Type <b>CTRL+S</b> to save the file.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
		</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
		<p>Your new .cpp file is displayed in the <b>Project Explorer</b> view. Before you 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
		can build your newly created project, you must create a makefile.  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
		See <a href="creating_your_makefile.html">Creating your makefile</a>.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
		<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
   		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
   		<b>Related tasks</b>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
      	<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
      	<a href="../tasks/creating_c_file.html">Creating a C/C++ file</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
		<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
		<b>Related reference</b>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
      	<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
      	<a href="../reference/remote_c_editor.html">Remote C/C++ Editor</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
		<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
		<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
</html>