ade10018043
ok..class in C++ is configuration simplification problem be related of objek and have file and function.

and this is an example my class with title moving variable for class

#include < iostream.h >

class menukar_angka {

public:
void angka ();

private :
int x,y;
};

void menukar_angka::angka(){
cout << " masukkan angka pertama (X) : " ; cin >> x ;
cout << " masukkan angka kedua (Y) :"; cin >> y ;
cout << " X = " << x << " \t Y = " << x << endl;
cout << " Y = " << y << " \t X="< }
int main(){
menukar_angka penukaran;
penukaran.angka();

return 0;
}

and than you can running this program..good luck
Label: | edit post
0 Responses

Posting Komentar