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