test
// test.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include<cstdlib>#include<string.h>//670147918#include <time.h>#include <iostream>#include <fstream>#include<iostream>#include <vector>#include <list> #include <iostream> #include <list> #include <numeric> #include <algorithm> using namespace std;class Test{ friend bool operator < (Test const& t1, Test cons
list用法
#include <iostream> #include <list> using namespace std; typedef list<int> INTLIST; //从前向后显示list队列的全部元素 void put_list(INTLIST list, char *name) { INTLIST::iterator plist; cout << "The contents of " << name << " : "; for(plist = list.begin(); plist != list.end(); plist++) cout << *plist << " "; cout<<endl; } //测试list容器的功能 void main(void) { //list1对象初始为空 INTLIST list1; //list2对象最初有10个
又解决一个core down问题!
上周五晚上快下班时,在load test发现一个core down问题,比较郁闷,无心恋战,决定周六再战。晚上回家想了下可能出现问题的地方,没有收获。周六来看日志后发现vector存储的指针在使用时已经不存在,奇怪,增加日志...
可恶的
今天在集成菲律宾的程序时发现一个问题,用我机器的XLITE测试时,程序ok,但是用另外一台机器的XLITE测试时,程序就会core down,Program received signal SIGSEGV, Segmentation fault,弄了一下午也没有什么头绪。...
”Undefined reference to“ 的处理
在C++代码中调用C的库文件,需加上extern "C",用来告知编译器:这是一个用C写成的库文件,请用C的方式连接他们。Undefined reference to 错误:这类错误是在连接过程中出现的,可能有两种原因∶一是使用者自己定义的...