#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<
cout << k;
getch();
}
Tidak ada komentar:
Posting Komentar