摘要:
#include <stdio.h> const int N=3; int main(){ int a[N] = {1,2,3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0;i<N;i++) printf("%d:%d\n",&a[i],a[i]); 阅读全文
摘要:
// ex1.cpp #include <stdio.h> int main(){ int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; 阅读全文
摘要:
/* A simple C program */ #include <stdio.h> int main(){ printf("my stuno is: 202083450052"); printf("2020 good bye"); return 0; } /* 循环打印字符 */ #includ 阅读全文