为什么总是说少个分号在printf前?

来源:百度知道 编辑:UC知道 时间:2024/06/15 01:50:20
#include <stdio.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
char 新游戏 ='Y';
int 校准 = false;
int 计数器 =0;
int 字符长度 = 0;
time_t 种子 = 0;
int 数字 = 0;
time_t 现在 = 0;
int 花费时间 = 0;
printf ("\n来玩一个简单的游戏,");
printf ("记住那屏幕上闪过的数字。");
printf ("\n认真看,这个数字只会显示一秒! ");
printf ("\n然后电脑会擦出那些数字,");
printf ("要你按顺序重复那些数字。");
printf ("\n按回车'Enter‘继续。");
scanf ("%c", &新游戏);
do
{
校准 = true;
计数器 = 0;
字符长度 = 2;
花费时间 = clock();
while (校准)
{
字符长度 += 计数器++%3 == 0;
种子 = (time(NULL));
现在 = clock();
sr

花费时间 = (clock() - 花费时间)//??
printf ("\n\n你的分数是 %d", --计数器 * 100 / 花费时间);

我给你注释了的地方没有分号

标识符用中文就不对
1)第一个字符必须是字母(不分大小写)或下划线(_);
(2)后跟字母(不分大小写)、下划线(_)或数字组成;

因为
花费时间 = (clock() - 花费时间)后面没有;