Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <nav id="navbar">
  <header>C++ Programming Language</header>
    <li><a class="nav-link" href="#Introduction">Introduction</a></li>
    <li><a class="nav-link" href="#Features">Features</a></li>
    <li><a class="nav-link" href="#Function">Function</a></li>
    <li><a class="nav-link" href="#Arrays_and_string">Arrays and String</a></li>
    <li><a class="nav-link" href="#Structure">Structure</a></li>
    <li><a class="nav-link" href="#Classes_and_objects">Classes and Objects</a></li>
    <li><a class="nav-link" href="#Pointers">Pointers</a></li>
    <li><a class="nav-link" href="#If_else">If...Else Statement</a></li>
    <li><a class="nav-link" href="#Inheritance">Inheritance</a></li>
    <li><a class="nav-link" href="#Reference">Reference</a></li>
<main id="main-doc">
  <section class="main-section" id="Introduction">
        C++ was developed by Bjarne Stroustrup in 1979. It is a statically-typed, multi-paradigm, genral-purpose middle-level programming language based on C. Many of today's games and browsers use C++ as their main language, making it one of the most popular programming languages used.
  <section class="main-section" id="Features">
      <p>C++ is an extended version of C, so the C part of it is low-level. This offers a significant speed boost that high-level languages like Python and Java do not provide.</p>
      <h2>Statically typed</h2>
      <p>This does not allow the compiler to make assumptions about the type of data. For example, 20 iws different from "20" and must be declared explicitly. Since these are determined at compile-time, it helps the compiler catch errors and bugs before the start of the program.</p>
      <h3>Multi-paradigm programming language</h3>
      <p>C++ supports about 7 different programming styles. Unlike Java, one does not need to use objects to solve everty task unless necessary.</p>
      <p>Object-oriented programming provides  a clear modular structure for programs. In C++, complex problems can be divided into smaller sets by creating objects.</p>
      <h5>Standard library (Standard template library- STL)</h5>
      <p>The use of C++ can be extended using the standard library it contains. These libraries contain algorithms that can be used while coding projects. It saves a lot of time and effort.</p>




                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.