请教Pascal!!
Var
Start,Ended:Int64;
i,k:Word;
不明白Int64和word这两种数据类型;
Uses Dos;
Var
Start,Ended:Int64;
i,k:Word;
Begin
WriteLn('This program test the time for 10000*10000');
Start:=GetMsCount;
For i:=1 To 10000 Do
For k:=1 To 10000 Do ;
Ended:=GetMsCount;
WriteLn('Time cost:',Ended-Start,'ms');
End.
参考答案:word(字类型) 值域:0..65535 占用2字节 带符号16位格式
int64(整型) 值域:-2^63..2^63-1 占用8字节 带符号64位格式