大约有 48,000 项符合查询结果(耗时:0.0370秒) [XML]

https://www.tsingfun.com/it/cpp/2124.html 

MFC RoundRect、FillRect等函数如何设置颜色 - C/C++ - 清泛网 - 专注C/C++及内核技术

...point); pDC->SelectObject(oldpen); CDC中FillRect与FillSolidRect区别: 在网上找FillRect与FillSolidRect时候通常都会看到下面一句话。 FillSolidRect与CDC::FillRect类似,FillSolidRect只能使用固体色(由COLORREF参数决定)。但FillRect带有画...
https://www.tsingfun.com/it/cpp/1343.html 

libevent+protobuf轻松搭建tcpserver - C/C++ - 清泛网 - 专注C/C++及内核技术

...er(int port); // client端socket流程:socket(),connect(),返回连接sockfd int create_io_channel(const char *ipaddr, int port); 2. 搭建TCP Server 下面以伪代码方式给出,错误处理省略 int main(int argc, char *argv[]) { // 初始化 … // event初始...
https://www.tsingfun.com/it/cpp/713.html 

代码坏味道(总结) - C/C++ - 清泛网 - 专注C/C++及内核技术

...道(总结)1.Duplicated Code(重复代码)重复出现相同或相似代码,需抽取共通,便于维护。2.Long Method(过长函数)函数体尽量简短,内聚性要变... 1.Duplicated Code(重复代码) 重复出现相同或相似代码,需抽取共通,便于...
https://www.tsingfun.com/it/tech/1789.html 

Linux Shell脚本参数获取方法 - 更多技术 - 清泛网 - 专注C/C++及内核技术

Linux Shell脚本参数获取方法$0 (脚本名),$1-$9 参数$# 参数个数(脚本名除外)$? 取上个命令退出码(exit xx, 函数return xx)一般0成功,1失败#! bin shecho ...$0 (脚本名),$1-$9 参数$# 参数个数(脚本名除外) $? 取上个命令退出码(exit ...
https://www.tsingfun.com/it/tech/1686.html 

IIS配置常见问题汇总(持续更新 ) - 更多技术 - 清泛网 - 专注C/C++及内核技术

...TP 错误 404.3 - Not Found由于扩展配置问题而无法提供您请求页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加...1. HTTP 错误 404.3 - Not Found 由于扩展配置问题而无法提供您请求页面。如果该页面是脚本,请...
https://www.fun123.cn/reference/other/merger.html 

App Inventor 2 项目合并工具 AIMerge · App Inventor 2 中文网

...gning the first screen to appear on the app should populate “Screen1.” All other developers should leave “Screen1” blank and only develop additional screens. In the case that another developer does populate “Screen1”, the merger tool will allow that screen to be renamed so it can be merg...
https://www.tsingfun.com/it/tech/964.html 

C#操作XML小结 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...点前 root.InsertBefore(node,root.ChildeNodes[i]); //为指定节点新建属性并赋值 node.SetAttribute("id","11111"); //为指定节点添加子节点 root.AppendChild(node); //获取指定节点指定属性值 string id=node.Attributes["id"].Value; //获取指定节点...
https://www.tsingfun.com/it/cpp/2263.html 

去掉std::string或std::wstring最后一个字符几种简单方法 - C/C++ - 清泛...

去掉std::string或std::wstring最后一个字符几种简单方法去掉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(); // 从...
https://www.tsingfun.com/it/cp... 

c++提取复数实部和虚部 - C/C++ - 清泛网 - 专注C/C++及内核技术

c++提取复数实部和虚部plural_real_part_imaginary_part输入一个复数,即可输出它实部和虚部。 #include<iostream> #include<string> using namespace std; typedef float REAL; #define MAX_BUF_LEN 256 typedef struct COMPLEX { REAL r; // 实部 REAL i...
https://www.tsingfun.com/it/cpp/1431.html 

选中CListCtrl指定行并发送LVN_ITEMCHANGED消息 - C/C++ - 清泛网 - 专注C/C++及内核技术

...stCtrl指定行并发送LVN_ITEMCHANGED消息在使用CListCtrl列表控件程序中,当我们修改了CListCtrl后需要要定位到已修改行,可以使用下面函数实现: 定位并使指定行选中m_list...在使用CListCtrl列表控件程序中,当我们修改了CListCt...