大约有 45,000 项符合查询结果(耗时:0.0510秒) [XML]
std::string的截取字符串的方法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...取字符串的方法例如截取ip:port,代码如下:std::string ip("127.0.0.1:8888");int index = ip.find_last_of(':'); ipip.substr(0, index)....例如截取ip:port,代码如下:
std::string ip("127.0.0.1:8888");
int index = ip.find_last_of(':');
//ip
ip.substr(0, index).c_str();
//...
error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“...
error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“std::string &出错代码:#include <iostream>#include <string>using std::cout;using std::endl;using std::string; const引用形参举例 非const...出错代码:
#include <iostream>
#include <string>
using...
VC CTreeCtrl复选框checkbox的使用方法 - C/C++ - 清泛网 - 专注C/C++及内核技术
VC CTreeCtrl复选框checkbox的使用方法1. 消息事件 (1)鼠标点击当前ITEM的CHECKBOX:引发NM_CLICK事件并传递TVHT_ONITEMSTATEICON。 (2)鼠标点击当前ITEM的TEXT:引发NM_CLICK...1. 消息事件
(1)鼠标点击当前ITEM的CHECKBOX:引发NM_CLICK事件并传递TVHT_ONITEM...
去掉std::string或std::wstring最后一个字符的几种简单方法 - C/C++ - 清泛...
...几种简单方法去掉std::string或std::wstring的最后一个字符:1、s pop_back(); 2、s erase(s end() - 1); 3、s = s substr(0, s length() - 1);去掉std::string或std::wstring的最后一个字符:
// 方法1
s.pop_back();
// 从s中移走最后一个元素。在string/wstring中...
常用Sql - 数据库(内核) - 清泛网 - 专注C/C++及内核技术
...索引Sql
CREATE TABLE tablename (
`ID` decimal(18,0) NOT NULL COMMENT '递增ID',
`FIELD_1` varchar(32) NOT NULL COMMENT '字段1',
`FIELD_2` varchar(32) NOT NULL COMMENT '字段2',
PRIMARY KEY (`ID`),
KEY `FIEL...
通过API获取IP信息、IP归属地 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...I接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=218.192.3.42
var remote_ip_info = {"ret":1,"start":-1,"end":-1,"country":"\u4e2d\u56fd","province":"\u5e7f\u4e1c","city":"\u5e7f\u5dde","district":"","isp":"","type":"","desc":""};
注意:返回的结果不是一个标...
Discuz X3涂鸦板无法使用问题解决 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...iscuz X3涂鸦板无法使用问题解决现象:调查思路:浏览器F12或右键查看Flash展示处的html源码:<embed width="438" height="304"src="static image common doodle.swf?fid...现象:
调查思路:
浏览器F12或右键查看Flash展示处的html源码:
<embed wid...
boost库编译问题 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...题boost::property_tree::xml_writer_settings<std::string> settings(' t', 1, "GB2312");报错:char不能转换为std::string。1.5...boost::property_tree::xml_writer_settings<std::string> settings('\t', 1, "GB2312");
报错:char不能转换为std::string。
1.54 版本 报错,改为boost::...
Linux Shell脚本参数的获取方法 - 更多技术 - 清泛网 - 专注C/C++及内核技术
Linux Shell脚本参数的获取方法$0 (脚本名),$1-$9 参数$# 参数个数(脚本名除外)$? 取上个命令退出码(exit xx, 函数return xx)一般0成功,1失败#! bin shecho ...$0 (脚本名),$1-$9 参数$# 参数个数(脚本名除外)
$? 取上个命令退出码(exit ...
linux 通过bind下搭建DNS Server - 更多技术 - 清泛网 - 专注C/C++及内核技术
...务器。其实本人对理论这块了解甚少,所以重在实用。
1.理论普及
DNS服务器分为:
master(主DNS服务器):拥有区域数据的文件,并对整个区域数据进行管理。
slave(从服务器或叫辅助服务器):拥有主DNS服力器的区域文件的...
