12 2014 档案
ubuntu install fonts
摘要:sudoapt-getinstallttf-wqy-zenhei 阅读全文
posted @ 2014-12-25 22:43 c3tc3tc3t 阅读(292) 评论(0) 推荐(0)
指针和二位数组
摘要:int a[3][4] = { 0, 1,2,3,4,5,6,7,8,9,11,12}; printf("\n%d,%d", a,*a); //两个一样的16进制地址 printf("\n%d,%d", sizeof(a), sizeof(*a)); // 48 16 ... 阅读全文
posted @ 2014-12-20 13:55 c3tc3tc3t 阅读(170) 评论(0) 推荐(0)
利用指针初始化一个三维数组,只使用一层循环
摘要:#define _CRT_SECURE_NO_WARNINGS#include #include #include void main() { int a[3][5][3]; int num = 0; for (int * b = &a[0][0][0]; b < (&a[0][... 阅读全文
posted @ 2014-12-17 19:58 c3tc3tc3t 阅读(482) 评论(0) 推荐(0)
用一层for循环初始化三维数组
摘要:int a[3][4][5]; for (int i = 0; i < 3 * 4 * 5; i++) { a[i / 20][(i / 5) % 4][i % 5] = i; printf("%-2d,%-2d,%-6d", i / 20, (i / 5)... 阅读全文
posted @ 2014-12-17 16:35 c3tc3tc3t 阅读(337) 评论(0) 推荐(0)
两种初始化2维数组方法
摘要:#define _CRT_SECURE_NO_WARNINGS#include #include #include void main() { int num[3][4]; for (int i = 0; i #include #include void main() { int ... 阅读全文
posted @ 2014-12-16 21:34 c3tc3tc3t 阅读(292) 评论(0) 推荐(0)
输入一个正整数n (1<n<=10),生成 1个 n*n 方阵 求出对角线之和
摘要:#define _CRT_SECURE_NO_WARNINGS#include #include #include void main() { int n = 0; scanf("%d", &n); int a[50][50] = { 0 }; int result = 0... 阅读全文
posted @ 2014-12-16 21:24 c3tc3tc3t 阅读(1302) 评论(0) 推荐(0)
关闭ubuntu讨厌的内部错误提示
摘要:修改/etc/default/apport浏览下/etc/init/apport.conf 内容你会发现,控制此服务是否启动的是/etc/default/apport所以把/etc/default/apport的enabled修改为0就ok了 阅读全文
posted @ 2014-12-15 19:21 c3tc3tc3t 阅读(264) 评论(0) 推荐(0)
ubuntu14.04通过 gvm 安装 go语言开发环境
摘要:最近用回了ubuntu ,所以打算安装golang学习当下比较火热的这个语言本来打算使用 sudo apt-get install golang的 安装后发现 是1.2.1不是最新版所以上网上搜了一下。在git上找到一个叫做 gvm的东东,是golang版本管理器地址:https://github.... 阅读全文
posted @ 2014-12-13 00:47 c3tc3tc3t 阅读(2689) 评论(0) 推荐(0)