здравейте имам 1 въпросче. инсталирах си с/с++ пакета на netbeans и също g++, но когато пуснах netbeans да тествам дали работи с това :
#include
int main() {
cout<< " Hello World " ;
return 0;
}
ми изкара някои неща които не са ми много ясни.
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/ivan/NetBeansProjects/CppApplication_1 '
/usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppapplication_1
make[2]: Entering directory `/home/ivan/NetBeansProjects/CppApplication_1 '
mkdir -p build/Debug/GNU-Linux-x86
rm -f build/Debug/GNU-Linux-x86/main.o.d
g++ -c -g -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp
main.cpp: In function ‘int main()’:
main.cpp:15: error: ‘cout’ was not declared in this scope
make[2]: *** [build/Debug/GNU-Linux-x86/main.o] Error 1
make[2]: Leaving directory `/home/ivan/NetBeansProjects/CppApplication_1 '
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/home/ivan/NetBeansProjects/CppApplication_1 '
make: *** [.build-impl] Error 2
притеснява ме main.cpp:15: error: ‘cout’ was not declared in this scope
ако някой знае какъв е проблема да удари едно рамо.
благодаря предварително