ALT Opublikowano 10 Czerwca 2012 Opublikowano 10 Czerwca 2012 Zaraz się zesram: #include <cstdlib> #include <iostream> #include <ctime> #include <conio.h> #include <string> #include <windows.h> using namespace std; #include "generator.h" int main(int argc, char *argv[]) { int play=0; char get; int lol; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 4); cout << endl; cout << endl; cout << endl; cout << " ######## ######## ######## ######## ######## ######## ######## ########" << endl; cout << " ### ### # ## # # # # ## # # # # ## # # ## ### ###" << endl; cout << " ## ## # ## # # ##### # # # ### ### # ## # # ## # ## ##" << endl; cout << " # ## # # ## # # ### # # ### ### # ## # # ## # # ## #" << endl; cout << " # # # ## # # ##### # # ### ### # ## # # ## # #" << endl; cout << " # ## # ## ## # ##### # # # ### ### # ## # # # ## # ## #" << endl; cout << " # ## # ### ### # # # ## # ### ### ## ## # ## # # ## #" << endl; cout << " ######## ######## ######## ######## ######## ######## ######## ########" << endl; cout << endl; cout << " Wcisni 1 zeby zagrac" << endl; lol = getche(); if (lol == 1) { system("cls"); play =1; } while(1) { if (play ==1) { } }; }; W czym tu jest błąd? Log: Rogue\main.cpp In function `void generate()': Rogue\main.cpp a function-definition is not allowed here before '{' token Rogue\main.cpp expected `,' or `;' before '{' token Rogue\main.cpp expected `}' at end of input
ALT Opublikowano 10 Czerwca 2012 Autor Opublikowano 10 Czerwca 2012 Gdzie? Edit: poprostu sie nie wkleiło.
Utermiko Opublikowano 10 Czerwca 2012 Opublikowano 10 Czerwca 2012 Masz int main(...) i nie zwracasz nic?
ediepl Opublikowano 10 Czerwca 2012 Opublikowano 10 Czerwca 2012 Poprawne używanie tabulatorów bardzo się przydaje. I Zacznij używać jakieś IDE które wykrywa błędy w edytorze.
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się