Laman

Jumat

Bilangan 1-n

#include
#include

class ping{
friend ostream& operator <> (istream& , ping& );
public:
ping();
// int pingan();
private:
int i, x;
};

ping::ping(){
cout<> (istream& in, ping& t){

cout<>t.x;

return in;
}
/*int ping::pingan(){
return ;
}*/
ostream& operator << (ostream& out, ping& t){
for(t.i=1;t.i<=t.x;t.i++){
out<<<" "<>k;

cout << k;
getch();
}

Tidak ada komentar:

Posting Komentar