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