V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  nannanziyu  ›  全部回复第 10 页 / 共 25 页
回复总数  485
1 ... 6  7  8  9  10  11  12  13  14  15 ... 25  
2020-08-30 14:13:07 +08:00
回复了 zsyld 创建的主题 生活 这种恰烂钱的医生举报有用吗
海盐水有好有坏啊,便宜的十几块,医生还没给你开菲丝摩尔呢
你也可以买洗鼻盐自己兑呀
@Mindjet
中文一样能找到,因为快捷键的名字和窗口名字一模一样
https://i.imgur.com/w9ZUbWU.jpg
2020-07-31 14:12:17 +08:00
回复了 elfsundae 创建的主题 程序员 解决 Microsoft Edge (macOS) 最新版 84.0.522.49 崩溃 (新标签页)
@mingmeng
https://twitter.com/MSEdgeDev/status/1289025615442534400
上午 10:30 就修复了
我觉得应该是 google 的 API 在未通知的情况下变化了,但是微软没有正确处理异常,直接崩了
2020-07-28 15:37:16 +08:00
回复了 libook 创建的主题 分享创造 在 WSL 中运行 GUI(如 IDEA)
MacOS 平台上的应用程序还是比较齐全的,像有些 Linux 软件不提供 Windows 包、有些 Windows 软件不提供 Linux 包,但基本都会提供 MacOS 的包。
------------------------------------------------------------------------------------------------
???
2020-07-23 16:19:00 +08:00
回复了 xiaoming1992 创建的主题 C++ vscode 怎么 include opencv2?
@xiaoming1992
https://i.imgur.com/PpfV6FI.png
绿框的是 posix thread 的 MinGW,编译 opencv 成功
红框的是用 win32 thread 的 MinGW,报错 std::recursive_mutex 不存在
2020-07-23 16:11:47 +08:00
回复了 xiaoming1992 创建的主题 C++ vscode 怎么 include opencv2?
@xiaoming1992
1. 不是的,opencv 版本不对,只会导致 link 失败,编译是会通过的
2. 你用的是 win32 thread 的 MinGW-64,所以会提示不存在 std::recursive_mutex

https://i.imgur.com/mwH3cFl.png
2020-07-23 14:13:47 +08:00
回复了 xiaoming1992 创建的主题 C++ vscode 怎么 include opencv2?
https://i.imgur.com/JGBNGgq.gif

task.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "g++",
"args": [
"${file}",
"-g",
"-std=c++17",
"-Wall",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"-I",
"F:/Download/OpenCV-MinGW-Build-OpenCV-4.1.1-x64/include",
"-LF:/Download/OpenCV-MinGW-Build-OpenCV-4.1.1-x64/x64/mingw/lib",
"-llibopencv_core411",
"-llibopencv_imgcodecs411",
"-llibopencv_highgui411"
]
}
]
}

launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build"
}
]
}
2020-07-23 14:05:23 +08:00
回复了 xiaoming1992 创建的主题 C++ vscode 怎么 include opencv2?
1. recursive_mutex 属于 posix thread,所以你的 gcc 要下载 posix thread 的
比如用 MinGW-64
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/
下载这个页面中的 x86_64-posix-seh
2. opencv 也要下载对应的 build
https://github.com/huihut/OpenCV-MinGW-Build,不然可以编译,但无法 link
3. vs2019 很小,最小安装只要 800M 。大是因为你把 msvc 和 sdk 都装上了
2020-07-23 11:45:32 +08:00
回复了 xiaoming1992 创建的主题 C++ vscode 怎么 include opencv2?
@xiaoming1992
c_cpp_properties.json 里的 inlucdePath 只用于 Code Intelligence
你要在 tasks.json 里用 -I 参数来对 build 命令行增加 Include Path
比如

"command": "g++",
"args": [
"${file}",
"-g",
"-std=c++17",
"-Wall",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"-I",
"C:/cpp-libs/opencv/build/include",
]
2020-07-18 14:27:55 +08:00
回复了 j0hnj 创建的主题 程序员 帮大家写点小工具
能帮我写个 office 吗?只要比 ms office 好用就可以
2020-07-15 21:23:14 +08:00
回复了 Huelse 创建的主题 C++ c++ thread 并发问题
然后还有 4 楼说的,你的 k 不能传引用,要传值
改成
std::thread t1([&,k]() {
});
2020-07-15 21:17:32 +08:00
回复了 Huelse 创建的主题 C++ c++ thread 并发问题
std::thread 没有拷贝构造函数

http://www.cplusplus.com/reference/thread/thread/thread/
3) copy constructor
Deleted constructor form (thread objects cannot be copied).

所以修改 threads.push_back(t1); 为 threads.push_back(std::move(t1))
2020-07-15 18:09:41 +08:00
回复了 andj4cn 创建的主题 Linux 求教 Ubuntu + Win(virtualbox 虚拟机) 工作模式是否可行
果粉的智商真的是一言难尽
2020-07-07 16:33:12 +08:00
回复了 duojiao 创建的主题 互联网 哟!百度网盘还真上线了按时收费[doge]
2020-06-23 13:23:08 +08:00
回复了 VWMMWV 创建的主题 JavaScript 在 JS 中存在 "fn && fn() " 执行语句 这个语句有什么意义吗?
@taxiaohaohhh
负分是因为不能只判断不为空,而要判断 typeof === 'function'
if(typeof fn === 'function'){
fn()
}
@lslqtz
tcp 本身并不会因为低层物理链路中断而断开
tcp 断连本来就是触发了 keepalive retry timeout
也就是说本来就已经是“干脆超时再离线”了
2020-06-19 20:47:18 +08:00
回复了 Deteriorator 创建的主题 程序员 C 语言的 IDE 好用的有哪些?麻烦巨佬推荐一下
筛选一下有内存断点和内存窗口的 IDE,你就知道选什么了
可是不用长连接的话,怎么判断断线呢?
要么轮询,要么长连接呀
1 ... 6  7  8  9  10  11  12  13  14  15 ... 25  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3293 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms · UTC 13:32 · PVG 21:32 · LAX 06:32 · JFK 09:32
Developed with CodeLauncher
♥ Do have faith in what you're doing.