上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页

2016年2月26日

配置错误

摘要: 说实话不想演示。。。 为了以后有据可查,为了以后出了错误可以有地方查找,还是再现一下错误吧。。。应该 不会改不回来。。。【笑哭】 第一个错误: 是因为 开始希望做一些opencv的东西,然后 按照教程做了很多东西,导致以后每次都要找这些东西: 错误 1 error LNK1104: 无法打开文件“o 阅读全文

posted @ 2016-02-26 20:41 木鸟飞 阅读(469) 评论(0) 推荐(0) 编辑

C语言创建一个窗口提示

摘要: 打开Vs2012【我的是2012】 /* X下面这些东西并没有什么用。。。 就不改了用2013 2015都一样 当然 devC++ 还有最原始的那个vc6.0也都是可以的。 编译环境遇到了相关问题网上搜索一下就可以解决的。最重要的是相信自己是可以解决的。 我就遇到了PDB加载不了的状况。 解决方案: 阅读全文

posted @ 2016-02-26 16:34 木鸟飞 阅读(4736) 评论(0) 推荐(0) 编辑

C语言多个源文件编译

摘要: 多源文件编译: 新建一个 main.c #include <stdio.h> #include <stdlib.h> int main(){ int i = myMax(20,40); printf("i = %d",i); system("pause"); return 0; } 然后再创建一个  阅读全文

posted @ 2016-02-26 09:26 木鸟飞 阅读(21772) 评论(0) 推荐(0) 编辑

2016年2月25日

字符串常用函数

摘要: 就传代码吧。。。 #include <iostream> #include <string.h> #include <stdlib.h> void differFromStrlenAndSizeof(void); void stringContact(void); void stringCompar 阅读全文

posted @ 2016-02-25 20:49 木鸟飞 阅读(297) 评论(0) 推荐(0) 编辑

递归练习

摘要: 数字累加 素数累加 示例代码: #include <iostream> int sum(int); int judge(int); int sumOfPlain(int); int main(int argc, char** argv) { //printf("%d\n",sum(3)); //pr 阅读全文

posted @ 2016-02-25 16:00 木鸟飞 阅读(330) 评论(0) 推荐(0) 编辑

经典递归——斐波那契数列,汉诺塔

摘要: 斐波那契 汉诺塔 0 1 1 2 3 5 8 13 21 int fibonacci(int a){ if(a==0) return 0; else if(a==1) return 1; else return fibonacci(a-1)+fibonacci(a-2); } 我也来搞一下这个 汉诺 阅读全文

posted @ 2016-02-25 13:29 木鸟飞 阅读(1556) 评论(0) 推荐(0) 编辑

指针作为函数参数

摘要: 演示结果1: 演示结果2: 示例代码: #include <iostream> void swap(int *,int *); void swap1(int *,int *); void function1(void); void displayIntArray(int *,int); void b 阅读全文

posted @ 2016-02-25 10:26 木鸟飞 阅读(1088) 评论(0) 推荐(0) 编辑

二级指针与多级指针

摘要: #include <iostream> int main(int argc, char** argv) { int i = 0; int *p = &i; int **pp = &p; **pp = 100; printf("%d\n",i); printf("i的地址值:%p\n",&i); pr 阅读全文

posted @ 2016-02-25 09:24 木鸟飞 阅读(305) 评论(0) 推荐(0) 编辑

指针数组与数组指针

摘要: #include <iostream> int main(int argc, char** argv) { char *s[10];//指针数组 char (*s1)[10];//数组指针 //前面一个是 指针数组,也就是 指针是形容词用来修饰数组,可见,重点落在,这是一个数组上。 //那么数组的元 阅读全文

posted @ 2016-02-25 08:56 木鸟飞 阅读(222) 评论(1) 推荐(0) 编辑

2016年2月24日

指针与数组

摘要: 前面的东西都比较基础,后面的这个才是真正关键的地方。 示例代码: #include <iostream> #include <stdlib.h> int main(int argc, char *argv[]) { //argc 指的是参数个数 // argv[0]指的是程序的名字 // argv[ 阅读全文

posted @ 2016-02-24 21:53 木鸟飞 阅读(331) 评论(2) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页

导航