上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 32 下一页
摘要: 在Linux中经常用到Shell脚本,简单学习下Shell编程吧。 Shell 编程 变量 注意,变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样。使用一个定义过的变量,只要在变量名前面加美元符号即可。 #!/bin/bash your_name="Lee" echo $your_n 阅读全文
posted @ 2022-10-11 15:55 htj10 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 参考:传智播客C++课程讲义 传智扫地僧 前言 算法部分主要由头文件<algorithm>,<numeric>和<functional>组成。 <algorithm>是所有STL头文件中最大的一个,其中常用到的功能范围涉及到比较、交换、查找、遍历操作、复制、修改、反转、排序、合并等等。 <numer 阅读全文
posted @ 2022-08-28 17:46 htj10 阅读(41) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using std::cout; // 函数 面向过程编程 int add1(int a, int b){ return a + b; } // 对象 面向对象编程 class Add{ public: int operator() (int a, int b 阅读全文
posted @ 2022-08-26 13:26 htj10 阅读(24) 评论(0) 推荐(0) 编辑
摘要: -- 判断是否是数字 select * from (select '12' col1 from dual) where trim(translate(col1,'0123456789',' ')) is NULL; select name , case when trim(translate(col 阅读全文
posted @ 2022-08-26 10:41 htj10 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 参考:精通Windows_Sockets网络开发:基于Visual_C++实现,作者:孙海民 阅读全文
posted @ 2022-08-25 16:16 htj10 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 条款21:必须返回对象时,别妄想返回其reference *** 阅读全文
posted @ 2022-05-22 16:53 htj10 阅读(11) 评论(0) 推荐(0) 编辑
摘要: *** 阅读全文
posted @ 2022-05-15 18:31 htj10 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 条款18:让接口容易被正确使用,不易被误用 *** 阅读全文
posted @ 2022-05-14 18:16 htj10 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 第13章 运行时类型信息 《C++大学教程(第3版)》是2005年清华大学出版社出版的图书,作者是那格勒,译者是侯普秀。ISBN 9787302098492 13.1 概述 运行时类型信息(run time type information,RTTI)是一种机制,采用该机制可以在执行时确定对象类型而 阅读全文
posted @ 2022-05-01 19:08 htj10 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 参考:C++ Primer Plus 中文版 第六版 例子代码: #include <iostream> #include <vector> #include <string> //std::to_string #include <algorithm> //包括了#include <cstdlib> 阅读全文
posted @ 2022-04-24 16:52 htj10 阅读(22) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 32 下一页
TOP