c++
qq_34145309
这个作者很懒,什么都没留下…
展开
-
c++读写子进程
#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <sys/epoll.h> #include <sys/socket.h> #include <fcntl.h> #include #include <dirent.h> #include <unistd.h> #include原创 2021-08-16 00:35:35 · 200 阅读 · 0 评论 -
检查hostname对应ip是否为本机ip
#include <stdlib.h> #include <netdb.h> #include <arpa/inet.h> #include <vector> #include <string> #include <algorithm> #include <unistd.h> #include <cstring> #define HOST_NAME_MAX 128 using namespace std; bo原创 2021-06-14 20:53:14 · 339 阅读 · 0 评论 -
xpcom组件样例
#include "nsISupports.idl" [scriptable,uuid(8CE2C123-8386-44EC-AACB-04D8EAFF58B5)] interface IMyComponent : nsISupports { long Add(in long a , in long b); }; /*Component.h*/ #pragma once #ifndef _MY_COMPONENT_H_ #define _MY_COMPONENT_H_ #include "IM..原创 2020-10-09 07:15:18 · 217 阅读 · 0 评论 -
2020-08-22
#include<cstdio> #include<iostream> #include<omp.h> const int pow_matrix[10][10] = { {1,1,1,1,1,1,1,1,1,1}, {0,1,2,3,4,5,6,7,8,9}, {0,1,4,9,16,25,36,49,64,81}, {0,1,8,27,64,125,216,343,512,729}, {0,1,16,81,256,625,1296,2401,4096,6561}, {原创 2020-08-22 13:57:29 · 109 阅读 · 0 评论 -
boost property tree读写xml和ini
#include<boost/property_tree/ptree.hpp> #include<boost/property_tree/xml_parser.hpp> #include<string> #include<set> #include<iostream> namespace pt = boost::property_tr...原创 2019-12-01 18:33:33 · 199 阅读 · 0 评论