ONDE ESTA MEU ERRO ?
17/05/2019
0
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
void main()
{
// Arrays e valores pokemon
// Os Arrays são: Força, Defesa, Velocidade.
int charmander [4] = {4,3,5,02};
int charmeleon [4] = {3,3,4,02};
int charizard [4] = {4,3,5,02};
int squirtle [4] = {3,3,2,02};
int wartotle [4] = {3,4,3,02};
int blastoise [4] = {4,4,4,02};
int bulbasaur [4] = {3,2,3,01};
int ivysaur [4] = {3,3,3,01};
int Venusaur [4] = {4,4,4,01};
int op;
char op_time, atri;
cout << "********************************************\\n";
cout << "* Super Trunfo Pokemon *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* 1 - Iniciar Jogo *\\n";
cout << "* 2 - Como Jogar *\\n";
cout << "* 3 - Desenvolvedores *\\n";
cout << "* 4 - Sair *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> op;
switch(op)
{
case 1:
system("cls");
cout << "********************************************\\n";
cout << "* Escolha Seu Time *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* A - Fogo *\\n";
cout << "* B - Agua *\\n";
cout << "* C - Planta *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> op_time;
switch (op_time)
{
case 'A':
system("cls");
cout << "********************************************\\n";
cout << "* Escolha Com o Que Combater *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* 1 - Forca *\\n";
cout << "* 2 - Defesa *\\n";
cout << "* 3 - Agilidade *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> atri;
switch(atri)
{
case '1':
system("cls");
{
cout << "********************************************\\n";
cout << "* 1 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '2':
system("cls");
{
cout << "********************************************\\n";
cout << "* 2 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '3':
system("cls");
{
cout << "********************************************\\n";
cout << "* 3 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case 'B':
system("cls");
cout << "********************************************\\n";
cout << "* Escolha Com o Que Combater *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* 1 - Forca *\\n";
cout << "* 2 - Defesa *\\n";
cout << "* 3 - Agilidade *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> atri;
switch(atri)
{
case '1':
system("cls");
{
cout << "********************************************\\n";
cout << "* 1 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '2':
system("cls");
{
cout << "********************************************\\n";
cout << "* 2 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '3':
system("cls");
{
cout << "********************************************\\n";
cout << "* 3 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "*
#include <string>
#include <stdlib.h>
using namespace std;
void main()
{
// Arrays e valores pokemon
// Os Arrays são: Força, Defesa, Velocidade.
int charmander [4] = {4,3,5,02};
int charmeleon [4] = {3,3,4,02};
int charizard [4] = {4,3,5,02};
int squirtle [4] = {3,3,2,02};
int wartotle [4] = {3,4,3,02};
int blastoise [4] = {4,4,4,02};
int bulbasaur [4] = {3,2,3,01};
int ivysaur [4] = {3,3,3,01};
int Venusaur [4] = {4,4,4,01};
int op;
char op_time, atri;
cout << "********************************************\\n";
cout << "* Super Trunfo Pokemon *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* 1 - Iniciar Jogo *\\n";
cout << "* 2 - Como Jogar *\\n";
cout << "* 3 - Desenvolvedores *\\n";
cout << "* 4 - Sair *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> op;
switch(op)
{
case 1:
system("cls");
cout << "********************************************\\n";
cout << "* Escolha Seu Time *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* A - Fogo *\\n";
cout << "* B - Agua *\\n";
cout << "* C - Planta *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> op_time;
switch (op_time)
{
case 'A':
system("cls");
cout << "********************************************\\n";
cout << "* Escolha Com o Que Combater *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* 1 - Forca *\\n";
cout << "* 2 - Defesa *\\n";
cout << "* 3 - Agilidade *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> atri;
switch(atri)
{
case '1':
system("cls");
{
cout << "********************************************\\n";
cout << "* 1 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '2':
system("cls");
{
cout << "********************************************\\n";
cout << "* 2 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '3':
system("cls");
{
cout << "********************************************\\n";
cout << "* 3 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case 'B':
system("cls");
cout << "********************************************\\n";
cout << "* Escolha Com o Que Combater *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* 1 - Forca *\\n";
cout << "* 2 - Defesa *\\n";
cout << "* 3 - Agilidade *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
cin >> atri;
switch(atri)
{
case '1':
system("cls");
{
cout << "********************************************\\n";
cout << "* 1 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '2':
system("cls");
{
cout << "********************************************\\n";
cout << "* 2 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "********************************************\\n";
system("pause");
system("cls");
}
break;
case '3':
system("cls");
{
cout << "********************************************\\n";
cout << "* 3 *\\n";
cout << "********************************************\\n";
cout << "* *\\n";
cout << "* *\\n";
cout << "* FIM DE JOGO *\\n";
cout << "* *\\n";
cout << "*
Rafael
Curtir tópico
+ 0
Responder
Posts
17/05/2019
Sadasd
Linha 6: Substitua void main por int main
linha 216: feche as aspas, adicione ;(ponto e virgula) no final e coloque seis }(chaves de fechamento) no final
Tenta ai irmão, e me avisa se deu certo.
linha 216: feche as aspas, adicione ;(ponto e virgula) no final e coloque seis }(chaves de fechamento) no final
Tenta ai irmão, e me avisa se deu certo.
Responder
Clique aqui para fazer login e interagir na Comunidade :)