Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class prompt
- {
- int c;
- public:
- prompt(int c)
- {
- cout<<"Vvedit znachennya"<<endl;
- cin>>c;
- this->c=c;
- }
- int get()
- {
- return c;
- }
- };
- int main()
- {
- prompt *ob=new prompt(1);
- for(int i=0; i<ob.get(); i++)
- {
- cout<<"\a";
- }
- delete ob;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement