borland c++
#include
#include
#include
class pindah
{
friend ostream& operator<<(ostream&, const pindah&); friend istream& operator>>(istream&, pindah&);
public:
pindah ();
void tukar();
private:
int a;
int b;
};
pindah::pindah (){
cout<<"Menukar dua variable"<
{
cout<<"Masukan Angka"<
X.tukar ();
cout<
0 komentar:
Posting Komentar