#include <iostream>
#include <string>
using namespace std;
class contents
{
public:
void setHost(string _host)
{
m_strHost = _host;
}
string getHost()
{
return m_strHost;
}
void setEvent(string _event)
{
m_strEvent = _event;
}
string getEvent()
{
return m_strEvent;
}
void setAnotherview(string _anotherview)
{
m_strAnotherview = _anotherview;
}
string getAnotherview()
{
return m_strAnotherview;
}
private:
string m_strHost;
string m_strEvent;
string m_strAnotherview;
};
int main()
{
string host, event, anotherview;
contents con;
cout << "input host for the event:" << endl;
cin >> host;
con.setHost(host);
cout << endl
<< "input event contents:" << endl;
cin >> event;
con.setEvent(event);
cout << endl
<< "input another view about this event:" << endl;
cin >> anotherview;
con.setAnotherview(anotherview);
cout << "making contents..." << endl
<< "Title:" << endl
<< con.getHost() << con.getEvent() << "是怎么一回事儿呢?" << endl
<< "Passage:" << endl;
cout << " " << con.getHost() << "相信大家都很熟悉,但是" << con.getHost() << con.getEvent() << "是怎么回事呢?下面就让小编带大家一起了解吧。"
<< " " << con.getHost() << con.getEvent() << "其实就是" << con.getAnotherview() << ",大家可能会很惊讶" << con.getHost() << "怎么会" << con.getEvent() << "了呢?但事实就是这样,小编也感到十分惊讶。" << endl
<< " "<< "这就是关于" << con.getHost() << con.getEvent() << "的事情了,大家有什么想法呢?欢迎在评论区告诉小编一起讨论哦~" << endl;
system("pause");
return 0;
}