c++ recode
文章平均质量分 77
sql_xeppp
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c++ note some detail
cin>> will check digit or other string automatically but cin.get don't check it#includeusing namespace std;int main(){ char one_char,decimal_point,digit1,digit2; long dollars;原创 2014-01-29 15:11:40 · 821 阅读 · 0 评论 -
将文件格式化并输出
我们是搞运维的。由于要放假了 需要知道磁盘的使用情况,所以将df -h好多服务器的结果输出到一个文件中,再写个c++程序过滤之。df -h 的文件列表格式如下:10.109.10.1Filesystem Size Used Avail Use% Mounted on/dev/sda2 15G 2.4G 12G 18% /原创 2014-01-27 16:29:02 · 1147 阅读 · 0 评论 -
c++读书笔记
--I/O objectin_stream.open("file_name");in_stream.open("file_name",flag); flag : ios::in out binary ate app truncin_stream.fail(); --if file open succeed return true in_stream.eod() ;原创 2014-01-27 16:30:45 · 758 阅读 · 0 评论 -
c++ note point
#pointclassType *pi; pi= new classType; or pi= new classType('x',123); delete pi;typedef int* intPtr ; intPtr p; == int *p;const int * p p is not allow change *p value int * co原创 2014-01-28 16:38:06 · 848 阅读 · 0 评论
分享