Can not compile C++ code in terminal !!!!
I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions.
I installed g++ for this but the problem persists. Help me out Thanks |
This doesn't seem to be a compiler problem, it a problem with your code.
include std namespace using namespace std; |
Also, you probably want to drop the ".h", so the include directive is just
#include <iostream> |
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
|
Quote:
Typically you do this by: Code:
cat -n SOURCE_FILE |
All times are GMT -5. The time now is 02:53 PM. |