carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_new_cpp.htm
changeset 5 684bf18fdedf
equal deleted inserted replaced
4:4764c8c88759 5:684bf18fdedf
       
     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>Creating a C/C++ file</title>
       
     7   <link rel="stylesheet" type="text/css" href="../help.css">
       
     8   <script language="JavaScript">
       
     9 function changeSize(theImage,wd,ht) {
       
    10 	wdth=parseInt(theImage.style.width); hght=parseInt(theImage.style.height);
       
    11 	if ( !(wdth==(wd*2)) ) {wdth=wd*2; hght=ht*2;}
       
    12 	else {wdth=wd;hght=ht;}
       
    13 	theImage.style.width=wdth; theImage.style.height=hght;
       
    14 }
       
    15   </script>
       
    16 </head>
       
    17 <body>
       
    18 <h1>Creating a C/C++ file</h1>
       
    19 <p>Files are edited in the C/C++ editor that is, by default, located in
       
    20 the editor area to the right of the C/C++ Projects view.</p>
       
    21 <p>The marker bar on the left margin of the C/C++ editor, displays
       
    22 icons for errors, warnings, bookmarks, breakpoints and tasks.</p>
       
    23 <p>For more information on the marker bar, see <b>Workbench User Guide
       
    24 &gt; Reference &gt; User interface information &gt; Views and editors
       
    25 &gt; Editor area</b>.</p>
       
    26 <p>To create a C++ file:</p>
       
    27 <ol>
       
    28   <li>In the <b>C++ Projects</b> view, right-click a project, and
       
    29 select <b>New &gt; File</b>.<br>
       
    30     <img src="../images/project_new_file.png"
       
    31  alt="New &gt; File in Projects View"></li>
       
    32   <li>In the list of projects, verify that the correct project is
       
    33 selected.</li>
       
    34   <li>In the <b>File name</b> box, type a name followed by the
       
    35 appropriate extension.</li>
       
    36   <li>Click <b>Finish</b>.<br>
       
    37     <img src="../images/project_new_file_name.png" alt="New File Wizard"></li>
       
    38   <p>The file will open in the C/C++ editor.</p>
       
    39   <li>Enter your code in the editor view..<br>
       
    40     <img src="../images/project_new_cppfile.png"
       
    41  alt="Editor view with a sample code"></li>
       
    42   <li>Type <b>CTRL+S</b> to save the file.</li>
       
    43 </ol>
       
    44 <p><img border="0" src="../images/ngconcepts.gif" alt="Related concepts"
       
    45  width="143" height="21">
       
    46 <br>
       
    47 <a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br>
       
    48 <a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a>
       
    49 </p>
       
    50 <p><img border="0" src="../images/ngtasks.gif" alt="Related tasks"
       
    51  width="143" height="21">
       
    52 <br>
       
    53 <a href="cdt_t_show_proj_files.htm">Displaying C/C++ file components in
       
    54 the C/C++ Projects view</a><br>
       
    55 <a href="cdt_t_prvw_hide_files.htm">Hiding files by type in the C/C++
       
    56 Projects view</a></p>
       
    57 <p><img border="0" src="../images/ngref.gif" alt="Related reference"
       
    58  width="143" height="21">
       
    59 <br>
       
    60 <a href="../reference/cdt_o_proj_prop_pages.htm">Project properties</a></p>
       
    61 <p>
       
    62 <img src="../images/ng00_04a.gif" alt="IBM Copyright Statement"></p>
       
    63 </body>
       
    64 </html>