Hmm.. I wont give you a complete answer yet.. but I will do this..
1. Use standard headers.
Code:
#include <iostream>
// not <iostream.h>
//add
using namespace std;
// so you wont have to put std:: before cout/cin
// do a search here and you'll see what it is about.
2.
Goto.. is a no-no..
put that code into a function and do a loop to call it.
Code:
void Function ()
{
// code here
}
int main ()
{
char choice;
while ( choice != 'q' ) {
Function (); // This will do the code in "Function"
cout << "q to quit" << endl;
cin >> choice;
}
return 0;
}
3.
Code:
char message ['500'];
// no
// its
char message [500];
I dont even think that will compile.
4.
you dont need stdlib in there.
cin.get () will wait for the user to hit enter. system () commands are not really good.
But fix up these problems then post again.
Also read the faq section
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
lots of good info.