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.
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?
dannystaple1 2 years ago
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.
dannystaple1 2 years ago