click here for video Tutorial
#include<iostream>
#include<cstring>
#include<cstdlib>
using namespace std;
class myclass
{
char s[80];
public:
void set(char *str) { strcpy(s,str);}
void show() {cout<<s<<endl;}
};
myclass input()
{
char s[80];
cin>>s;
myclass ob;
ob.set(s);
return ob;
}
int main()
{
myclass o;
o=input();
o.show();
return 0;
}
Friday, October 9, 2015
Subscribe to:
Post Comments
(
Atom
)
Nice Tips Awesome Just get you new reader.(health suplements)
ReplyDelete