What's new
  • Welcome to PHCorner forums. Take a moment to sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help Compilation ng codes in c++

Lenardkun

Established
Joined
Sep 23, 2018
Messages
47
Reaction
6
Age
20
Guys ano gagamitin ko para magpagsama sama ko sa isang program yung mga activities ko, tapos kapag natapos i run yung program magtatanong if you want to try again kapag nag yes babalik dun sa menu tapos pag nag no mag close yung program. pede po kayo magbigay ng sample code. Salamat po sa tutulong
 

rwydei

Leecher
copy all your activities siguro then iba ibang method sila..
sa menu gamit ka ng switch saka ilagay mo sa loob ng loop.

-- Java at C lang alam ko pero pwedi naman ata e apply yung concept--

ex.
menu(){
int choice;
do{
printf("Menu");
printf("1 Activity1");
printf("2 Activity2");
printf("0 Exit");
switch(choice){
case 1:
activityOne();
break;
case 2:
activityTwo();
break;
case 0:
//Exit
break;
}
}while(choice !=0);
}
activityOne(){
//codes here
}
activityTwo(){
//codes here
}
 
Comment

Online statistics

Members online
2,044
Guests online
2,381
Total visitors
4,425

Forum statistics

Threads
1,037,491
Messages
17,688,232
Members
1,500,198
Comments
838,262
Attachments
1,317,599
Profile posts
96,952
Top