can someone tell me what is wrong:
I have not idea why this isnt working. All help is greatly appreciated. Oh ya, im using Borland C++ 5.02Code:void input(char& *first,char& *last,double& winning_amount) { cout <<"What is your name( first last): " ; cin >>first; cin >> last; cout <<"How much won in contest: "; cin >> winning_amount; center("Press Any Key To Continue...",13); getch(); clrscr(); } int main(void) { char *first, *last; char name[80]; double winning_amount; input(first,last,winning_amount); strcpy(name, first); strcat(name," "); strcat(name,last); cout << winning_amount << endl; cout <<name; getch(); }



LinkBack URL
About LinkBacks


