![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 52
唐生一
The matrix
展开
-
vs2019+win10+anaconda——C++调用python程序
1.创建C++空项目,更改为Release x64版本,选择x64是因为我安装的python是64位的2.在右侧解决方案中打开属性,在VC++目录中的包含目录中添加Include目录,我安装的是虚拟环境,故目录为库目录为在链接器——>输入——>附加依赖项中添加C:\Users\12871\anaconda3\envs\tensorflow1.8\libs\python35_d.lib;配置完成。测试程序。#include<python.h>#include<原创 2020-11-18 17:49:25 · 2445 阅读 · 5 评论 -
C++学习中的一些小问题
1. for循环中变量的作用域for (int i = 0;i < sizeof(arr)/sizeof(arr[0]);i++) { string key; string value; map<string, string>m; int pos = arr[i].find(":"); if (pos != -1) { key = arr[i].substr(0, pos);//(起始位置,截取的个数) value = arr[i].subs原创 2020-09-21 15:06:04 · 167 阅读 · 0 评论