?? 數(shù)組操作.c
字號(hào):
#include <stdio.h>
void main()
{
char strg[40],*there,one,two;
int *pt,list[100],index;
strcpy(strg,"This is a character string.");
one = strg[0]; /* one 和 two是相同的 */
two = *strg;
printf("第一輸出的是 %c %c\n",one,two);
one = strg[8];
two = *(strg+8);
printf("第二輸出的是 %c %c\n",one,two);
there = strg+10; /* strg+10 等同于 strg[10] */
printf("第三輸出的是 %c\n",strg[10]);
printf("第四輸出的是 %c\n",*there);
for (index = 0;index < 100;index++)
list[index] = index + 100;
pt = list + 27;
printf("第五輸出的是 %d\n",list[27]);
printf("第六輸出的是 %d\n",*pt);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -