Code: Show/Hide Compiler: Default compiler
Executing g++.exe... g++.exe "C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp" -o "C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp: In function `int main()': C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:22: error: no match for 'operator<<' in 'pok << p1' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:23: error: no match for 'operator<<' in 'pok << hp1' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:24: error: no match for 'operator<<' in 'pok << dmg1' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:25: error: no match for 'operator<<' in 'pok << evol1' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:26: error: no match for 'operator<<' in 'pok << p2' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:27: error: no match for 'operator<<' in 'pok << hp2' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:28: error: no match for 'operator<<' in 'pok << dmg2' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:29: error: no match for 'operator<<' in 'pok << evol2' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:30: error: no match for 'operator<<' in 'pok << p3' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:31: error: no match for 'operator<<' in 'pok << hp3' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:32: error: no match for 'operator<<' in 'pok << dmg3' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:33: error: no match for 'operator<<' in 'pok << evol3' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:34: error: no match for 'operator<<' in 'pok << p4' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:35: error: no match for 'operator<<' in 'pok << hp4' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:36: error: no match for 'operator<<' in 'pok << dmg4' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:37: error: no match for 'operator<<' in 'pok << evol4' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:38: error: no match for 'operator<<' in 'pok << p5' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:39: error: no match for 'operator<<' in 'pok << hp5' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:40: error: no match for 'operator<<' in 'pok << dmg5' C:\Documents and Settings\Owner\Desktop\c++\Pokemon\Pokemon.cpp:41: error: no match for 'operator<<' in 'pok << evol5' Execution terminated |
Code: Show/Hide // pokemon legend http://iabot.iespana.es/juegos/pokemon/pokemon-rubi-zafiro.gif
#include <windows.h> #include <stdlib.h> #include <iostream> #include <fstream> using namespace std; int main() { system("bin\\font.bat"); SetConsoleTitle("A3 Pokemon"); char name[80]; char p1[80],p2[80],p3[80],p4[80],p5[80],mp[80]; int hp1,hp2,hp3,hp4,hp5,hpmp; int dmg1,dmg2,dmg3,dmg4,dmg5,dmgmp; char evol1[80],evol2[80],evol3[80],evol4[80],evol5[80],evolmp[80]; ifstream pok; pok.open("bin\\pokemon.a3"); pok<<p1; pok<<hp1; pok<<dmg1; pok<<evol1; pok<<p2; pok<<hp2; pok<<dmg2; pok<<evol2; pok<<p3; pok<<hp3; pok<<dmg3; pok<<evol3; pok<<p4; pok<<hp4; pok<<dmg4; pok<<evol4; pok<<p5; pok<<hp5; pok<<dmg5; pok<<evol5; pok.close(); cout<<"Tyron: Welcome to A3 Pokemon world my name is Tyron, whats yours?\n"; cout<<"Answer: "; cin>>name; cout<<"\nTyrone: Oh "<<name<<" that pussy that ran away from Danglee Sack Town.."; cout<<"\n\tWhat ever I'm here just to give you the shitiest pokemon out there, "<<p1; system("pause"); } |
Code: Show/Hide if (!pok)
{ cout<<"Game files are corrupt please go to www.a3studio.4t.com and redownload pokemon game\n"; system("pause"); return 0; } |