Aslam-o-Alikam,
Mehwish main ap buhat khubsurti sy C++ ko beyan kiya hai.
Lakin ap k sare programs main syntax C k istamaal howa hai.
Misaal k tor par.
printf, scanf
aur format specifier %d, %c.
Ap ko es taraf b dean daina chae,
Wasalam
This is a discussion on Syntax C/C++ within the C++ By Mahwish forums, part of the C++ category; Aslam-o-Alikam, Mehwish main ap buhat khubsurti sy C++ ko beyan kiya hai. Lakin ap k sare programs main syntax C ...
Aslam-o-Alikam,
Mehwish main ap buhat khubsurti sy C++ ko beyan kiya hai.
Lakin ap k sare programs main syntax C k istamaal howa hai.
Misaal k tor par.
printf, scanf
aur format specifier %d, %c.
Ap ko es taraf b dean daina chae,
Wasalam
aoa dear sister object oriented programming k lec. kahan hy.![]()
Assalam O Alaikum!
suppose we have a programe
#include<iosteam.h>
{
main()
int x,y,z=0;
cout<< "Please enter the value of X:";
cin>>x;
cout<< "Please enter the value of y:";
cin>>y;
z=x+y;
cout<< "the value of Z is:"<<cout z;
}
we want to add condition to get decision by the user like "Do you want to solve another Question anwer with Y or N"
suppose user processed 3 or more questions
at end we want to display the sum of total questions a user solved.
like
"total number of questions solve by user are:" .....
Please tell me how we can do this???
thanks
Mehwish Aap k sare programs sahi hain
aur programms k tareeqayqar bhi buhat achay hain.....
printf aur scanf wale functions 1 dam sahi hai C++ ki undestanding k lye.....
Bookmarks