iostream, błąd
Ostatnio zmodyfikowano 2011-01-30 14:33
chemik Temat założony przez niniejszego użytkownika |
iostream, błąd » 2011-01-30 14:02:05 Mam taki kod:
#include <iostream> #include <conio.h> int main() { std::cout << "==============" << std::endl; std::cout << "= To proste! =" << std::endl; std::cout << "==============" << std::endl; std::cout << "\t A jak to zrobić?" << std::endl; std::cout << "Koniec :)" getch() }
Wyskakują mi błędy związane z #include <iostream> dokładny log:
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|1|error: iostream: No such file or directory|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c||In function 'main':|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|5|error: expected expression before ':' token|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|6|error: duplicate label 'std'|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|5|note: previous definition of 'std' was here|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|6|error: expected expression before ':' token|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|7|error: duplicate label 'std'|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|5|note: previous definition of 'std' was here|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|7|error: expected expression before ':' token|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|8|error: duplicate label 'std'|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|5|note: previous definition of 'std' was here|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|8|error: expected expression before ':' token|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|9|error: duplicate label 'std'|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|5|note: previous definition of 'std' was here|
C:\Documents and Settings\Katarzyna\Pulpit\Programy itp\Praca domowa 1.c|9|error: expected expression before ':' token|
||=== Build finished: 10 errors, 0 warnings ===| |
|
Vercevales |
» 2011-01-30 14:05:23 Spróbuj reinstalować kompilator :) |
|
Dark |
» 2011-01-30 14:06:55 Nie masz średników w ostatnich linijkach na końcu. Taka mała uwaga zwracaj uwagę na średniki :P
i jeszcze na końcu by się przydało
return 0; przed zamknięciem '}' |
|
chemik Temat założony przez niniejszego użytkownika |
» 2011-01-30 14:09:42 Teraz wcale mi nie kompiluje ;/ |
|
Dark |
» 2011-01-30 14:12:20 Spróbuj to
int main() { std::cout << "==============" << std::endl; std::cout << "= To proste! =" << std::endl; std::cout << "==============" << std::endl; std::cout << "\t A jak to zrobić?" << std::endl; std::cout << "Koniec :)"; getch(); return 0; }
|
|
chemik Temat założony przez niniejszego użytkownika |
» 2011-01-30 14:13:45 Wybrałem inny kompilator z compiler and debugger i nadal są błędy. |
|
Vercevales |
» 2011-01-30 14:14:58 Może po prostu nie masz iostream ? |
|
malan |
» 2011-01-30 14:17:26 ? Plik powinien mieć rozszerzenie * .cpp. |
|
« 1 » 2 |