Post your problems related to c++ programming here.
WELCOME !!
Please Register, ask for assignment solutions & post the solutions if you know any.
LETS START POSTING YOUR IDEAS AND THOUGHTS AND BUILD THE COMMUNITY OF EXPERTS.
Stock Market, Online Tutoring, Cloud Based ERP System, Microsoft Dynamics Reporting, Microsoft Nav Certification
#include<iostream>
using namespace std;
class Input{
private int val;
public:
input(){}
function getValue(){
cout<<"Please enter number";
cin>>val;
}
function showValue(){
cout<<val;
}
};
int main(){
Input in;
in.getValue();
in.showValue();
getchar();
return 0;
}
#include<iostream>
using namespace std;
class Input{
private int val,sum;
public:
input(){
sum=0;
}
function getValues(){
for(int i=0;i<9;i++){
cout<<"Please enter the grades";
cin>>val;
sum+=val;
}
val = sum/9;
}
function showValue(){
cout<<"The Average is: "<<val;
}
};
int main(){
Input in;
in.getValues();
in.showValue();
getchar();
return 0;
}
Assignment Help, Cloud Based ERP System, Microsoft NAV Certification » Computer and Technology » Programming » Application Development » C++ Programming » Your C++ Problems Here.
Permissions in this forum:
You cannot reply to topics in this forum
|
|