Académique Documents
Professionnel Documents
Culture Documents
,
int phone; ennnter your first and last name:"<<endl;
cin>>peel1.name;
comq😵nut<<"pleazvse enter your age:"<<endl;
cin>>peel1.age;
system("PAUSE");
return EXIT_SUCCESS;
}
)))))))))))))))))))))))))))))))))))))))))))
/*********************************************************************/
/*Collin Dailey */
/*B3 */
/*3/23/17 */
/*Structure Student */
/*Asks for 3 students first names, last names, ID, and students grade*/
/*********************************************************************/
#include <cstdlib>
#include <iostream>
cow Mystudents[2];
system("cls");
cout<<"students first name"<<" "<<"students last name"<<" "<<"students ID"<<"
"<<"students grade"<<endl;
cout<<student1.firstname<<" "<<student1.lastname<<"
"<<student1.ID<<" "<<student1.grade<<endl;
cout<<student2.firstname<<" "<<student2.lastname<<"
"<<student2.ID<<" "<<student1.grade<<endl;
cout<<student3.firstname<<" "<<student3.lastname<<"
"<<student3.ID<<" "<<student1.grade<<endl;//display all that
getstudent(Mystudents);
printstudent(Mystudents);
system("PAUSE");
return EXIT_SUCCESS;
}
((((((((((((((((((((((((((((((((((((((
/*********************************************************************/
/*Collin Dailey */
/*B3 */
/*3/23/17 */
/*Structure Student */
/*Asks for 3 students first names, last names, ID, and students grade*/
/*********************************************************************/
#include <cstdlib>
#include <iostream>
class koalaobj{
}
void showdata()//void function
{
cout<<name<<endl;
cout<<ID<<endl;
cout<<age<<endl;
}
};
int main(int argc, char *argv[])
{
koalaobj s1;//public class
int age;
int ID;
string john;
int grade;
s1.showdata();
system("PAUSE");
return EXIT_SUCCESS;
}