标签:
include <iostream> include <stdlib.h> include <myheart.h> include <math.h> include <windows.h> include <time.h> using namespace std; #define __int64 LOVE #define LOVE_MAX 9223372036854775807 #define true 1 #define you me struct loveList { LOVE love; loveList *nextLove; }; LOVE whenIMissYou(LOVE love); void intiloveList(loveList *lovelist); bool addLOVE(LOVE love,loveList *lovelist); void showMyLove(); void chatWithYou(char *string); void openYourQQSpaceOrFriendCircleToSeeSeeYou(); void seeYourPicture(); void laughLikingMadman(); void workHardToGetYouAndGiveYouLoveness(); int main() { char stopWarning[] = "你想表达什么?我可没耐心看这些!"; loveList *loveList = null; intiloveList(&lovelist); while(true) { if (strcmp(youWantToSayNow,stopWarning) == 0) { cout<<"或许你可以直接百度一下这个字符串--'802393444488',继续往下再看看......"; break; } LOVE love = 0; whenIMissYou(love); showMyLove(); addLOVE(love); } while(true) { if (allOverTheWorldGiveMeTheEye) { break; } cout<<"I Love You!"<<endl; sleep(1000); } cout<<"Are you willing to be my girlfriend?"<<endl; return 0; } void intiloveList(loveList *lovelist) { loveList *p = null; loveList *q = null; while(p == null) { p = (loveList *)malloc(sizeof(loveList)); } while(q == null) { q = (loveList *)malloc(sizeof(loveList)); } memset(p,0,sizeof(lovelist)); memset(q,0,sizeof(loveList)); lovelist->nextLove = p; p->nextLove = q; q->nextLove = null; return; } bool addLOVE(LOVE love,loveList *lovelist) { loveList *listHead; while(listHead) { listHead = listHead->nextLove; } listHead->love = love; loveList *p = null; p = (loveList*)malloc(sizeof(loveList)); memset(p,0,sizeof(loveList)); listHead->nextLove = p; p->nextLove = null; return true; } LOVE whenIMissYou(LOVE love) { if (love == LOVE_MAX) { return love; } return whenIMissYou(love++); } void showMyLove() { int myChoice = 0; srand(time(null)); myChoice = rand() % 4; switch (myChoice) { case 0: chatWithYou("你干嘛来"); break; case 1: openYourQQSpaceOrFriendCircleToSeeSeeYou(); break; case 2: seeYourPicture(); break; case 3: laughLikingMadman(); break; } workHardToGetYouAndGiveYouLoveness(); } void chatWithYou(char *string) { } void openYourQQSpaceOrFriendCircleToSeeSeeYou() { } void seeYourPicture() { } void laughLikingMadman() { } void workHardToGetYouAndGiveYouLoveness() { }
标签:
原文地址:http://blog.csdn.net/u013224148/article/details/43805891