I have a problem in c++ in Code::Blocks, do i something wrong whit my if statement !
i Get the error label: error : label 'gravetie' used but not defind same whit the other if statements
#include <iostream>
using namespace std;
int main()
{
int command;
int pause;
cout << "#############################################################################" << endl;
cout << "### ###" << endl;
cout << "### P I R O M S.T.A. ###" << endl;
cout << "### ###" << endl;
cout << "#############################################################################" << endl;
cout << "### ###" << endl;
cout << "### 1. Run TEST Gravetie ###" << endl;
cout << "### 2. Run TEST beometrics ###" << endl;
cout << "### 3. Run TEST DNA ###" << endl;
cout << "### 4. Run TEST LCARS ###" << endl;
cout << "### 5. Run TEST telportasion ###" << endl;
cout << "#############################################################################" << endl;
cout << "### 5. Run D.R.A.R.P.A ###" << endl;
cout << "#############################################################################" << endl;
cout << "### ###" << endl;
cout << "### ###" << endl;
cout << "### 0. Exit ###" << endl;
cout << "### ###" << endl;
cout << "#############################################################################" << endl;
cin >> command;
if (command == 1) goto gravetie;
if (command == 2) goto beometrics;
if (command == 3) goto DNA;
if (command == 4) goto LCARS;
if (command == 5) goto darpa;
if (command == 0) goto exit;
switch (command)
{
case 'gravetie' :
cout << "gravetie" << endl;
case 'beometrics':
cout << "beometrics" << endl;
case 'DNA':
cout << "DNA" << endl;
case 'LCARS':
cout << "LCARS" << endl;
case 'darpa':
cout << "darpa" << endl;
case 'telportasion':
cout << "telportasion" << endl;
}
cin >> pause;
exit:
return 0;
}