- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 c++ note some detail
cin>> will check digit or other string automatically but cin.get don't check it #include using namespace std; int main() { char one_char,decimal_point,digit1,digit2; long dollars;
2014-01-29 15:11:40 738
原创 c++ note point
#point classType *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 748
原创 c++读书笔记
--I/O object in_stream.open("file_name"); in_stream.open("file_name",flag); flag : ios::in out binary ate app trunc in_stream.fail(); --if file open succeed return true in_stream.eod() ;
2014-01-27 16:30:45 689
原创 将文件格式化并输出
我们是搞运维的。由于要放假了 需要知道磁盘的使用情况,所以将df -h好多服务器的结果输出到一个文件中,再写个c++程序过滤之。df -h 的文件列表格式如下: 10.109.10.1 Filesystem Size Used Avail Use% Mounted on /dev/sda2 15G 2.4G 12G 18% /
2014-01-27 16:29:02 1053
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人