?? no_recur.c
字號:
#include <stdio.h>
#include <time.h>
int string_length(const char *str)
{
int length = 0;
while (*str++)
length++;
return(length);
}
void main(void)
{
long int counter;
time_t start_time, end_time;
time(&start_time);
for (counter = 0; counter < 100000L; counter++)
string_length("Jamsa's 1001 C/C++ Tips");
time(&end_time);
printf("Processing time %d\n", end_time - start_time);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -