随笔分类 -  C/C++

摘要:0x01. declspec(dllexport)创建导出dll 笔者这边使用vs 2015,但是性质都一样的 新建项目 -》 Win32控制台应用程序 -》 dll 这时候就创建了一个项目 我们在头文件和源文件创建下文件 头文件 test.h extern "C" _declspec(dllexp 阅读全文
posted @ 2020-10-13 14:38 0X7e 阅读(1248) 评论(0) 推荐(0)
摘要:0x01.指针的声明 char x; char* x; short y; short* y; int z; int* z; float f; float* f; double d; double* d; Struct st; Struct* st; 从这边可以总结出来 1、带有 * 的变量标准写法: 阅读全文
posted @ 2020-10-10 10:43 0X7e 阅读(331) 评论(0) 推荐(0)
摘要:Switch条件语句 通过上面一篇了解了条件语句的使用,接下来就直接进行反汇编学习 #include <stdio.h> void print() { int b = 1; switch (b) { case 1: printf("当前是1"); break; case 2: printf("当前是 阅读全文
posted @ 2020-09-29 14:51 0X7e 阅读(358) 评论(0) 推荐(0)
摘要:0x01.判断语句介绍以及用法 判断语句有哪些? 1、If 用法1: if (条件) { //代码块 } 当条件成立,也就是为True时,执行中的代码 用法2: if(条件) { //代码块 } else { //代码块 } 如上,当条件不成立的时候执行else语句里面的代码 用法3: if(条件) 阅读全文
posted @ 2020-09-29 11:06 0X7e 阅读(638) 评论(0) 推荐(0)
摘要:0x01.函数 这节就先讲函数吧,函数大致分为四种类型 1、无参数、无返回值的函数格式 void 函数名() { //代码段 } void Hello() { printf("Hello World!"); } 2、有参数,无返回值的函数格式 void 函数名(参数类型 参数名,参数类型 参数名) 阅读全文
posted @ 2020-09-28 15:30 0X7e 阅读(545) 评论(0) 推荐(0)
摘要:0x01.打印hello world #include <stdio.h> int main() { printf("Hello World!"); return 0; } 在c语言中#include就类似于python中的import,引用模块 int main()是主函数,而定义的函数等等,其实 阅读全文
posted @ 2020-09-28 13:44 0X7e 阅读(237) 评论(0) 推荐(0)