上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页
摘要: //全局变量和局部变量#pragma warning(disable : 4996) #include <iostream>#include<stdio.h>#include"node.h"#include<stdlib.h>int gAll = 12;int g3 = gAll;//这样不好 一个 阅读全文
posted @ 2022-01-11 09:25 江南王小帅 阅读(30) 评论(0) 推荐(0)
摘要: Openwrt 引言:本文档编译的lean的openwrt + ath10K 编译环境: 虚拟机: Ubuntu20.04 外部系统: win7 注意: 不要用 root 用户进行编译! 国内用户编译前最好准备好梯子 操作步骤: 一:下载源码 https://github.com/compex-sy 阅读全文
posted @ 2022-01-06 13:09 江南王小帅 阅读(2273) 评论(0) 推荐(0)
摘要: file1:array.h #pragma once #ifndef _ARRAY_H_#define _ARRAY_H_ const int BLOCK_SIZE = 20;typedef struct { int *array; int size;}Array; Array array_crea 阅读全文
posted @ 2021-12-27 13:38 江南王小帅 阅读(54) 评论(0) 推荐(0)
摘要: //联和 // union #include<stdio.h> #pragma warning(disable : 4996) typedef union AnEit{ int i; char ch[sizeof(int)];}chI; int main(){ chI chi; int i; chi 阅读全文
posted @ 2021-12-27 11:25 江南王小帅 阅读(46) 评论(0) 推荐(0)
摘要: //自定义数据类型// typedef #include<stdio.h> #pragma warning(disable : 4996) typedef int Length; //Length 成为int 别名 //用Date 替代 struct Adate typedef struct Ada 阅读全文
posted @ 2021-12-27 11:15 江南王小帅 阅读(53) 评论(0) 推荐(0)
摘要: //指向结构的指针 #include<stdio.h> #pragma warning(disable : 4996) struct date{ int mounth; int day; int year; }myDay; int main(){ struct date *p = &myDay; ( 阅读全文
posted @ 2021-12-27 10:47 江南王小帅 阅读(113) 评论(0) 推荐(0)
摘要: //结构体类型 // #include<stdio.h> #pragma warning(disable : 4996) struct point{ int x; int y;}; int main(){ struct date { int month; int day; int year; }; 阅读全文
posted @ 2021-12-27 10:10 江南王小帅 阅读(98) 评论(0) 推荐(0)
摘要: //结构体类型 // #include<stdio.h> #pragma warning(disable : 4996) struct point //声明结构类型{ int x; int y;}; int main(){ struct date //声明结构类型 { int month; int 阅读全文
posted @ 2021-12-27 10:00 江南王小帅 阅读(111) 评论(0) 推荐(0)
摘要: //枚举是一种用户定义的数据类型,他用关键字enum 来声明; //枚举量可以作为值,只能是整数 //实际上是以整数来做内部运算和外部输出的 #include<stdio.h> #pragma warning(disable : 4996) enum color {red =3 ,yellow,gr 阅读全文
posted @ 2021-12-27 09:49 江南王小帅 阅读(28) 评论(0) 推荐(0)
摘要: //C 语言字符串//是指以0结尾的一串字符。//0和 '\0'是一样的,但是和'0'不同。//0标志字符串的结束,但是不是字符串的一部分。//字符串以数组的形式存在,以数组或指针的形式访问,多数情况下是以指针的形式。//string.h 里有很多处理字符串的函数 #include<stdio.h> 阅读全文
posted @ 2021-12-23 14:48 江南王小帅 阅读(180) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页