程序显示一个问题,用户输入1到5的数字。5个用户的5个问题。然而,只要它是一个Int,程序就不会识别出好的输入,或者不好的输入。在它运行之前,我必须输入很多次它再次运行Survey.presentQuestions()。我无法弄清楚为什么。 for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
#include <stdio.h>
int main()
{
char name[10];
printf("Who are you? \n");
fgets(name,10,stdin);
printf("Good to meet you, %s.\n",name);
if(name=='spyros')
{
printf("Then you are here
当我运行以下代码片段并输入可接受的值时,我会得到所需的结果。 do while len(strselect) = 0 'or strselect<>"1" or strselect<>"2" or strselect<>"3"
strselect = inputbox ("Please select:" &vbcrlf&vbcrlf&_
"1. Add an entry" &vbcrlf&vb