纯娱乐~程序员也可以通过程序来获取女票~

谁说IT男找不到女票!劳资写一段代码告诉你,IT男要女票还不是分分钟的事!只要不死,一天换一个,而且有着年芳十八,有车有房,父母双亡的标准动漫设定~


看代码~


#include <iostream>
#include <windows.h>


using namespace std;




#define ONE_DAY (86400 * 1000)//一天的秒数


class GirlFriend
{
public:
GirlFriend *thisGirl(){return this;}
void haveCars(){
cout << "This girl has a lots of cars ~~" << endl;
}
void haveMoney(){
cout << "This girl is fabulously rich" << endl;
}
void noParents(){
cout << "Her parents passed away when she was very young" << endl;
}
GirlFriend(int old = 18){
thisGirl()->old = old;
cout << "this girl is " << this->old << " years old~" << endl;
thisGirl()->haveCars();
thisGirl()->haveMoney();
thisGirl()->noParents();
cout << "Most important thing is that she is your girlfrend!!!" << endl;
}
~GirlFriend(){
cout << "The girl being dumped by you~~" << endl;
}
protected:
private:
int old;
};




int main()
{


while (1)
{
GirlFriend *gf = new GirlFriend();//创建新女友
Sleep(ONE_DAY);//睡眠一天
delete gf;//删除
}
return 0;
}



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值