Tip: to define a class, and through the main () function creates an object for testing,
Private members of a class for two data input from the keyboard (integer)
Private:
int a,b;//define the class two private data members
Class member functions into two, a variable assignment for class, another for calculating cumulative
Void the set (int m, int n) {value}
Void the print () {
The process of calculating cumulative
}
CodePudding user response:
This is very simple, learn will it himselfCodePudding user response:
There are people Posting couldn't think of this version