no message

master
zcy 2021-06-03 00:13:11 +08:00
parent d30ab7f6ed
commit ea70fcaa93
1 changed files with 17 additions and 3 deletions

View File

@ -1,8 +1,9 @@
#if __cplusplus >= 201103L
#pragma message("编译器支持c++11")
#endif
#include <list>
#include<iostream>
#include <algorithm>
using namespace std;
#include "thread_usage.h"
#include "threadpool.h"
@ -14,7 +15,6 @@ extern "C"{
}
#include "loger.h"
int main(){
// std::cout<<"test start"<<endl;
// try{
@ -23,8 +23,22 @@ int main(){
// }catch( std::exception e){
// std::cout<<"exception"<<e.what();
// }
std::list<int> i;
i.insert(i.begin(),2);
i.insert(i.begin(),3);
i.insert(i.begin(),4);
i.insert(i.begin(),5);
i.insert(i.begin(),6);
list<int>::iterator pos = (find(i.begin(), i.end(), 4));
i.insert(pos,1);
for(auto x : i){
std::cout<<x<<"\r\n"<<std::endl;
}
Loger::Loger loger("d://");
loger.Debug("ces",__FILE__,__LINE__);
loger.Debug("测试测试",DEBUG_FILE_POSITION);
std::cout<<"line " << __FILE__<<__LINE__<<" "<<__FUNCTION__<<std::endl;
// TestRingBuffer();
}