写在情人节的小程序
2012-02-14 14:03
246 查看
"对你爱 爱 爱不完"!
"说一万遍我爱你 直到你满意"!
#include <iostream> using namespace std; int main() { for (unsigned char times = 0; times <= 255; ++times) { cout << "我爱你!" << endl; } return 0; }
"说一万遍我爱你 直到你满意"!
#include <windows.h> #include <string> #include <iostream> using namespace std; bool enough = false; int DarlingSayOK(const char * szmsg) { string strmsg; do { getline(cin, strmsg); } while (szmsg != strmsg); enough = true; return 0; } typedef DWORD (__stdcall * ThreadFunc)(void*); int main() { CreateThread(NULL, 0, (ThreadFunc)(DarlingSayOK), (void *)"OK!", 0, NULL); for (int times = 0; times < 10000 && !enough; ++times) { cout << "I Love You!" << endl; Sleep(500); } return 0; }
相关文章推荐
- 程序人生之六:写在 2010 年最后一晚,我这两年的工作总结
- 写在情人节
- Sql语句在Access数据库中能查到结果, 写在程序中查不到结果(或者得到的结果全是0) --- 通配符的问题, Access的"case when"
- 情人节写给女朋友Java Swing代码程序
- 写在微信小程序一周年
- 程序人生之六:写在 2010 年最后一晚,我这两年的工作总结
- 用Python来写一个男女相亲小程序|码农的情人节
- 微信小程序开发 [00] 写在前面的话,疯狂唠唠
- 情人节小程序
- 编写一个程序,从标准输入读取一些字符,并把它们写到标准输出上。它同时应该计算checksum值,写在后面
- 写在情人节前夕
- 李龙刚的情人节表白PHP程序源码下载
- SQL是写在程序里还是存储过程中好?
- 情人节写给女朋友的小程序
- 写在微信小程序上线之夜,我想对移动开发人员说别慌先玩玩AR压压惊!
- 为啥你的编译型程序和人家解释型一程序样慢?(一) ——写在前面的话——性能分析点。
- 小心,机会胆儿小—写在中国的情人节(2)
- 用C编写一个送给女朋友的情人节小程序 可爱!
- 写在我第一个虚幻程序之前
- 情人节,程序猿们在干嘛?