#include<iostream>
using namespace std;
#include<string>
class FA
{public:
FA()
{
cout<<"Phien Ban 4.5\nLE VAn Chuc:";
}
FA(string a)
{
name=a;
}
public:
void setname(string s)
{
name=s;
}
string getname()
{
return name+"rat de hieu";
}
public:
string name;
};
void main()
{
FA x;
x.setname("anh chuc");
cout<<x.getname();
FA X2("nhu cute");
cout<<X2.getname();
system("pause");
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.