09 2024 档案

c# webclient 使用默认代理的代码
摘要:void Main() { using (WebClient client = new WebClient()) { // 使用默认代理 client.Proxy = WebRequest.GetSystemWebProxy(); // 你可以选择是否设置凭据 client.Credentials 阅读全文

posted @ 2024-09-29 21:15 空明流光 阅读(16) 评论(0) 推荐(0) 编辑

c++ string 与 wstring 互转并解决显示乱码
摘要:string 转 wstring: #include <iostream> #include <sstream> #include <locale> #include <string> #include <codecvt> int main() { std::string utf8_str = "你 阅读全文

posted @ 2024-09-02 12:29 空明流光 阅读(283) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示