摘要:
//结构 //声明结构类型 /*#include<stdio.h>int main(int argc,char const *argv[]){ struct date { int month; int day; int year; }; struct date today;//通常和本地变量一样,在
阅读全文
posted @ 2019-02-03 23:14
redOrange01
阅读(164)
推荐(0)
编辑
摘要:
/*//枚举#include<stdio.h>#include<string.h>//常量符号化/*const int red = 0;const int yellow=1;const int green=2;*//*//枚举enum color{ red,yellow,green}; int ma
阅读全文
posted @ 2019-02-03 16:11
redOrange01
阅读(299)
推荐(0)
编辑
摘要:
int main(int argc,char* argv[])详解 argc是命令行总的参数个数 argv[]是argc个参数,其中第0个参数是程序的全名,以后的参数 命令行后面跟的用户输入的参数,比如: int main(int argc, char* argv[]) { int i; for (
阅读全文
posted @ 2019-02-03 14:27
redOrange01
阅读(184)
推荐(0)
编辑