所以我制作了这个小小的疯狂实验室游戏,其中的代码使用printf和scanf要求您输入形容词和东西,并且由于它是一串字母,所以我使用了char [50],并且该游戏运行正常,但是出于某种原因我收到此警告(标题中),但我不明白它的意思,我还是菜鸟,对C还是很陌生,所以我可能只是缺少明显的东西
#include <stdio.h>
#include <stdlib.h>
int main()
{
/*this is me just messing around and learning*/;
char object[50];
char verb[50];
char adjective[50];
char location[50];
char verb2 [50];
char adjective2[50];
char quit[50];
printf ("enter an object\n");
scanf("%s",&object);
printf("enter a verb\n");
scanf("%s",&verb);
printf("enter an adjective\n");
scanf("%s",&adjective);
printf("enter a location\n");
scanf("%s",&location);
printf("enter a verb\n");
scanf("%s",&verb2);
printf("enter an adjective\n");
scanf("%s",&adjective2);
printf
("there once was a boy named Liutas and he had a/an %s that he\n really loved,he really liked to %s and was always was always\n very very %s doing it/that,one day he went to %s and decided to %s because he is a %s person\n",object,verb,adjective,location,verb2,adjective2);
printf("type -ok- to close game");
scanf("%s,quit");
}