#include"stdio.h"
int main()
{int n;
char a[10];
printf("叫大哥,不叫就关机(你有30秒的时间,如果关闭本程序一样要关机)\n");
system("shutdown -r");
while(1)
{printf("叫:");
scanf("%s",&a);
n=strcmp(a,"大哥");
if(n==0)
{system("shutdown -a");
printf("嗯,真乖!!!爽!哈哈哈!!!");
break;
}
}
}
#include "stdio.h"
#include "stdlib.h"
result love(boy, girl)
{
if ( boy.有房() and boy.有车() )
{
boy.set(nothing);
return girl.嫁给(boy);
}
if ( girl.愿意等() )
{
while( ! (boy.赚钱 > 100,000 and girl.感情 > 8 ) )
{
for ( day=1; day <=365; day++)
{
if ( day == 情人节 )
if ( boy.givegirl(玫瑰) )
girl.感情++;
else
girl.感情--;
if( day == girl.生日)
if ( boy.givegirl(玫瑰) )
girl.感情++;
else
girl.感情--;
boy.拼命赚钱();
}
}
if ( boy.有房() and boy.有车() )
{
boy.set(nothing);
return girl.嫁给(boy);
}
年龄++;
girl.感情--;
}
return girl.goto( another_boy);
}
纯原创
345678910111213141516171819
#include
#include
#include
#include
int main()
{int n;
char a[10];
printf("叫爸爸,不叫就关机(你有60秒的时间,如果关闭本程序一样要关机)\n");
system("shutdown -r");
while(1)
{printf("叫:");
scanf("%s",&a);
n=strcmp(a,"爸爸");
if(n==0)
{system("shutdown -a");
printf("嗯,真乖!!!爽!哈哈哈!!!");
break;
}
}
}
学什么啊?