C++ 101
5:07
Added: 3 years ago
From: befryxell
Views: 615
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Void means that it does not return anything. Output to the console is very different from return values. To return text, you want "String" or perhaps "char *" instead of int.

    Without "endl" or "\n" on the cout, there will be no newline - which is not really correct for console output.

    If you use visual studio, or anjuta, or eclipse, you wont need the terminal to get stuff compiled for you.

    You probably do not have gcc/g++ on your path - is it installed?

  • This video needs the audio levels to be normalized.

    You only include iostream if you are doing iostream operations - it is NOT a document intro like a html tag. Perhaps you will be making a graphical app which does no IO streaming at all?

    #include tells it, quite simply, that all the code in iostream.h (or whatever else) will be included - you can open that file, it is just text.

    int main can normally be void main unless you need return values.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more