今天恶搞了把,哈哈。
绝对开源,开发环境VC++。哈哈。
CODE:女人值钱计算器#include "stdafx.h" #include <iostream.h> #include <cstdlib> int main(int argc, char* argv[]) { int pay=0; char answer; cout<<"你是女人吗?(Y 或 N)"; cin>>answer; if(answer=='y'||answer=='Y') { pay+=100; cout<<"感谢你使用女人值钱计算器.................."<<endl<<endl; } else { cout<<"滚!"<<endl; goto end; } cout<<"你超过25岁?(Y 或 N)"; cin>>answer; if(answer=='y'||answer=='Y') { pay-=100; cout<<"唉,老女人了"<<endl<<endl; } else { pay+=400; cout<<"还好,青春还在你身上"<<endl<<endl; } cout<<"你学生妹?(Y 或 N)"; cin>>answer; if(answer=='y'||answer=='Y') { pay+=500; cout<<"嗯,不错不错"<<endl<<endl; } else { pay+=0; cout<<"唉,学生妹值钱"<<endl<<endl; } cout<<"你是觉得你漂亮吗?(Y 或 N)"; cin>>answer; if(answer=='y'||answer=='Y') { pay+=100; cout<<"虽然一般不能信,但够自信"<<endl<<endl; } else { cout<<"虽然你很诚实,但是你真够蠢的,不会说YES呀"<<endl<<endl; } cout<<"你是烂女吗?(Y 或 N)"; cin>>answer; if(answer=='y'||answer=='Y') { pay-=1000; cout<<"Shit,居然碰到烂女了!"<<endl<<endl; cout<<"你是处女吗?(Y 或 N)"; cin>>answer; if(answer=='y'||answer=='Y') { pay-=1000; cout<<"你不是烂女嘛,骗我!"<<endl<<endl; } else { cout<<"这个问题好像,有点多余!"<<endl<<endl; } } else { cout<<"还好你不是"<<endl<<endl; cout<<"你是处女吗?(Y 或 N)"; cin>>answer; if(answer=='y'||answer=='Y') { pay+=1000; cout<<"啧啧,处女唉,心动唉!"<<endl<<endl; } else { cout<<"世风日下了,为啥没有多少人写YES呢!"<<endl<<endl; } } printf("好了,现在计算机计算出,你值.....................................\n%d块!\n",pay); end: system ("pause"); return 0; }