怎么编程这段文字
大体如下:
#include <stdio.h>
#include <string.h>
int main()
{
char buf[100];
printf("同学你好,请问方便价格联系方式吗?");
gets(buf);
if (strcmp(buf,"No!")==0 )
{
printf("打扰啦,扔掉纸条\n");
return 0;
}else
{
printf("可以交个朋友吗?");
gets(buf);
if (strcmp(buf,"有男朋友")==0)
{
printf("算啦\n");
return 0;
}else
{
printf("vxxxxxx\n");
return 0;
}
}
}
这是要去表白的节奏啊,yes or no?