即中文輸入法下輸入的
可能妳輸入時用的是中文輸入法
或者是從別處拷貝來的代碼
c++不能用clrscr,delay
#include <time.h>
#include <stdio.h>
#include <dos.h>
#include <conio.h>
#include <windows.h>
int main(void)
{
time_t first, second;
//clrscr();
system("cls");
first = time(NULL);
//delay(2000);
Sleep(2000);
second = time(NULL);
printf("The difference is: %f seconds\n",difftime(second,first));
getch();
return 0;
}