

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Objective of this cours is to develop effective computer programming skills in solving complex problems and to learn adequate and operational software organization in developing real life engineering solutions using powerful object oriented paradigm of the language. It includes: Iostream, Include, Class, Private, Public, Friend, Integer, Float, Character, Void
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


c:\documents and settings\usman.younis\my documents... studio 2010\Projects\friends\friends\friends.cpp 1 #include
c:\documents and settings\usman.younis\my documents... studio 2010\Projects\friends\friends\friends.cpp 2 { //An external function //can easily access all public members of an object char stud_name[ 50 ]; int stud_reg_num; char choice = 'y'; do { cout<<"Enter the students name : "; cin.sync(); cin.getline(stud_name, 50 ); cout<<"Enter the registration number : "; cin>>stud_reg_num; b.set_student_val(stud_reg_num, stud_name); cout<<"Add another (y/n)? "; cin>>choice; } while(choice != 'n'); } int main() { my_Class BEE; set_students_from_main(BEE); display_students_from_main(BEE); return 0 ; }