Im new with C++ . Its my third day using it. I know turbo pascal. I have a code with an array that has something wrong and i dont know it. plz tell me wuts wrong. thx. dont laugh at my program . im just practising to learn the language.
#include <iostream.h>
int a;
double b;
char c, question;
bool d;
void favthings ()
{
d= 1;
while (d == 1)
{
cout <<"Write your favorite letter"<<endl;
cin >> c ;
cout <<"Now write your favorite number"<<endl;
cin >> a;
cout <<"Now write your grade poing average"<<endl;
cin >> b ;
cout <<"Your favorite letter is "<< c <<" Your favorite number is "<< a <<" And your GPA is "<< b<< endl;;
cout <<endl;
cout <<"Do you want to input everything again?(y/n)"<<endl;
cin >> question ;
if (question == 'y')
d= 1;
if (question == 'n')
d= 0;
}
}
void gradearray ();
{
cout <<"Input your last 5 grades to get the average !!!"<<endl;
int arraygrade[4] ;
cin << arraygrade ;
cout <<arraygrade ;
}
main ()
{
favthings ();
gradearray ();
cout <<endl;
cout <<"BYE"<<endl;
cout <<endl;
cout <<"Made by l33t"<<endl;
cout <<endl;
return 0;
}