04 2012 档案

摘要:new:新开一个文件(横向分割),可同时编辑来两个文件;vnew:纵向分割split:同一个文件中(横向分割),针对同一个文件vsplit:纵向分割shift+zz:结束Ctrl+ww:变换窗口 ... 阅读全文
posted @ 2012-04-19 20:06 javaadu 阅读(79) 评论(0) 推荐(0)
摘要:/*C语言中读取整型数据的小程序段*/#include int main(){ int n,i; int array[25]; while (scanf("%d",&n),n!= EOF) { for ( i ... 阅读全文
posted @ 2012-04-16 14:12 javaadu 阅读(170) 评论(0) 推荐(0)
摘要:#include //定义一个基类,模拟CWinAppclass Base{public: Base();// virtual void fn();/*测试虚函数结果:call the Derived's fn*... 阅读全文
posted @ 2012-04-15 17:05 javaadu 阅读(95) 评论(0) 推荐(0)
摘要:1、setprecision 也是包含在命名空间iomanip 中的C++ 操作符,该操作符的作用是设定浮点数小数点后的位数;setprecision(2) 的意思就是小数点输出的精度,即是小数点右面的数字的个数... 阅读全文
posted @ 2012-04-13 16:34 javaadu 阅读(331) 评论(0) 推荐(0)
摘要:1、动态内存分配时,用malloc申请内存,在使用完之后,一定要记得用free释放内存今天我在编写程序时遇到了这样一个问题:*** glibc detected *** ./SqlList: free(): in... 阅读全文
posted @ 2012-04-02 20:48 javaadu 阅读(141) 评论(0) 推荐(0)