摘要:
localhost == 127.0.0.1 == 本机ip ifconfig 或者 ip addr 查看本地宿主机的ip地址 $ docker help Usage: docker [OPTIONS] COMMAND [arg...] docker [ --help | -v | --versio 阅读全文
posted @ 2016-09-28 17:07
amdb
阅读(306)
评论(0)
推荐(0)
|
摘要:
localhost == 127.0.0.1 == 本机ip ifconfig 或者 ip addr 查看本地宿主机的ip地址 $ docker help Usage: docker [OPTIONS] COMMAND [arg...] docker [ --help | -v | --versio 阅读全文
posted @ 2016-09-28 17:07
amdb
阅读(306)
评论(0)
推荐(0)
摘要:
# ~/.bashrc: executed by bash(1) for non-login shells.# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)# for examples# If not 阅读全文
posted @ 2016-07-07 17:30
amdb
阅读(435)
评论(0)
推荐(0)
摘要:
基本类型:bool,char,short,int,long,float,double 对于char,short,int,long: 多字节类型赋值给少字节类型,对低字节的细节感兴趣,位模式拷贝。 少字节类型赋值给多字节类型,进行位模式扩展,注意符号,符号扩展。 float表示法:表示为1.x的(-1 阅读全文
posted @ 2016-03-17 10:38
amdb
阅读(967)
评论(0)
推荐(0)
摘要:
如题,找了半天。。。1 //CString转string2 3 USES_CONVERSION;4 CString temp;5 temp = _T("kjdsaflkjdlfkj");6 char* s_char = W2A(temp);7 string ss = s_char; 阅读全文
posted @ 2015-12-26 11:56
amdb
阅读(285)
评论(0)
推荐(0)
摘要:
纯虚函数只能有.hh文件,不能有.cc文件。类中函数可以有默认参数,但是默认参数只能出现在.hh中,不能出现在.cc中。类中的一般数据成员是对每个对象都有自己的拷贝的,而且每个一般成员函数一定要有一个调用它的对象。static数据成员不在类的声明中定义或初始化。而在对应的.cc文件中初始化(由于交叉... 阅读全文
posted @ 2015-05-13 09:57
amdb
阅读(346)
评论(0)
推荐(0)
摘要:
exercise1.cc 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 int myFunction() 9 {10 return rand() % 100 + 1;11 }12 ... 阅读全文
posted @ 2015-05-01 15:22
amdb
阅读(307)
评论(0)
推荐(0)
摘要:
wcount.cc 1 #include 2 #include 3 #include 4 #include 5 #include 6 // So we don't have to type "std::" everywhere... 7 using namespace std... 阅读全文
posted @ 2015-05-01 10:39
amdb
阅读(196)
评论(0)
推荐(0)
摘要:
expressions.hh 1 #ifndef EXPRESSIONS_HH 2 #define EXPRESSIONS_HH 3 4 #include "environment.hh" 5 #include 6 #include 7 #include 8 #include... 阅读全文
posted @ 2015-04-30 10:32
amdb
阅读(247)
评论(0)
推荐(0)
摘要:
heap.hh 1 #ifndef HEAP_HH 2 #define HEAP_HH 3 4 #include 5 #include 6 #include 7 8 using namespace std; 9 10 template class heap//模板类he... 阅读全文
posted @ 2015-04-30 10:30
amdb
阅读(185)
评论(0)
推荐(0)
摘要:
SparseVector.hh 1 class SparseVector 2 { 3 private: 4 //结构体不一定会用到,不用初始化 5 struct node 6 { 7 int index; 8 int value; 9 ... 阅读全文
posted @ 2015-04-30 10:28
amdb
阅读(369)
评论(0)
推荐(0)
摘要:
SparseVector.hh 1 class SparseVector 2 { 3 private: 4 //结构体不一定会用到,不用初始化 5 struct node 6 { 7 int index; 8 int value; 9 ... 阅读全文
posted @ 2015-04-30 10:22
amdb
阅读(273)
评论(0)
推荐(0)
摘要:
Matrix.hh 1 class Matrix 2 { 3 int row; 4 int col; 5 int *p; 6 void copy(const Matrix &m); 7 void clearup(); 8 public: 9 10 Ma... 阅读全文
posted @ 2015-04-30 10:20
amdb
阅读(293)
评论(0)
推荐(0)
摘要:
Matrix.hh 1 class Matrix 2 { 3 int row; 4 int col; 5 int *p; 6 public: 7 8 Matrix(); 9 Matrix(int x,int y);10 ~Matrix();11 12... 阅读全文
posted @ 2015-04-30 10:18
amdb
阅读(196)
评论(0)
推荐(0)
摘要:
lab1.cpp 1 #include "Point.hh" 2 #include 3 #include 4 5 using namespace std; 6 7 double computeArea(Point &a, Point &b, Point &c) 8 { 9 doubl... 阅读全文
posted @ 2015-04-30 10:16
amdb
阅读(282)
评论(0)
推荐(0)
摘要:
#include using namespace std; int main(){ int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; /* for(int (&i)[4]:a) for(int (&j):i) ... 阅读全文
posted @ 2014-11-28 22:27
amdb
阅读(268)
评论(0)
推荐(0)
|