04 2020 档案

摘要:*形式的swap函数: 1 #include<stdio.h> 2 void swap(int *d1, int *d2) { 3 int t; 4 t = *d1; 5 *d1 = *d2; 6 *d2 = t; 7 printf("After swap\na=%d\nb=%d\n", *d1, 阅读全文
posted @ 2020-04-27 19:29 歌月。 阅读(244) 评论(0) 推荐(0) 编辑
摘要:配置编译环境,用命令行编译和链接代码: Step1:配置环境变量,或者直接打开VS2019 x86 Native Tools Command Prompt 新建一个cpp文件夹,里面放入事先写好的测试代码a.cpp b.cpp main.cpp Step2:在命令行进入文件夹cd cpp Setp3 阅读全文
posted @ 2020-04-27 19:23 歌月。 阅读(111) 评论(0) 推荐(0) 编辑