STL——关联容器
摘要:#include #include #include #include #include #include/*包含tolower()函数和ispunct函数;ispunct() 函数用来检测一个字符是否为标点符号或特殊字符*/ #include using namespace std; int main(int argc, char**argv) { //map的定...
阅读全文
posted @
2017-06-14 16:12
明静志远
阅读(405)
推荐(0)
C++小代码
摘要:如果一个运算符函数是成员函数,则它的第一个(左侧)运算对象绑定到隐式的this指针上,所以成员运算符函数的(显式)参数数量比运算符的运算对象少一个。即一个参数有两个运算对象。 IO运算符一般被声明为友元。 #include <iostream> using namespace std; class
阅读全文
posted @
2017-06-10 21:46
明静志远
阅读(288)
推荐(0)
包裹系统编写以及过程中发现的错误
摘要:1 #include <iostream> 2 #include <string> 3 using namespace std; 4 5 typedef enum iStatus { Sendtothewarehouse, Hasstarted, Ontheway, Arriveatthewareh
阅读全文
posted @
2017-05-28 16:17
明静志远
阅读(198)
推荐(0)