上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 1. 有已经安装好的 anaconda ,已经安装好的pytorch; 2. 打开 anaconda prompt如下图: 3. 激活pytorch (base) C:\Users\XXXXX>activate pytorch 4. 安装需要安装的工具 如安装pandas pip install p 阅读全文
posted @ 2022-08-07 09:15 SusieSnail_SUN 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1. const char*(C风格字符串)与 string 之间转换: (1) const char* 可以直接对string类型赋值,例如: const char* pchar = "abcdefg"; stringstr = pchar; (2) string通过 c_str() 函数转换为C 阅读全文
posted @ 2022-08-01 11:04 SusieSnail_SUN 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: 工作记录 正常使用 动态库创建和调用中遇到问题如下: 1. 错误 LNK1201 写入程序数据库“D:\XXXXXX\Debug\XXXXXXXXXXDLL.pdb”时出错;请检查是否是磁盘空间不足、路径无效或权限不够 XXXXXXXXXDLL D:\XXXXXX\Debug\XXXXXXXXXXD 阅读全文
posted @ 2022-07-15 16:24 SusieSnail_SUN 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 工作记录 在 动态库创建调用(二) 基础上修改 1. 在main.cpp 中添加全局变量 完成代码如下: #include <Windows.h> #include <iostream> #include "D:\Dll1\MydllAdd.h" // 包含头文件 #pragma comment(l 阅读全文
posted @ 2022-07-15 16:04 SusieSnail_SUN 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 工作记录: DLL 创建调用 添加全局变量(测试运行正常) 在 动态库创建调用(一)中创建 DLL项目中 1. 在 .c 中添加 全局变量 代码如下 #include "pch.h" #include "MydllAdd.h" map <int, int> globalmap; int my_dll 阅读全文
posted @ 2022-07-15 15:57 SusieSnail_SUN 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 工作记录: 静态调用(使用 .h 、lib文件、dll文件) 1. 打开vs2022,创建空项目(选择路径,创建 MydllAPP 项目) 2. 创建 main.cpp #include <Windows.h> #include <iostream> #include "D:\Dll1\MydllA 阅读全文
posted @ 2022-07-15 08:53 SusieSnail_SUN 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 工作记录 1. 打开vs2022 创建新项目 -》选择动态链接库 (输入项目名,创建项目) 2. 添加 .cpp 文件(源文件 》添加 》新建项 》c++文件) #include "pch.h" #include "MydllAdd.h" int my_dll_add(int a, int b) { 阅读全文
posted @ 2022-07-14 17:49 SusieSnail_SUN 阅读(910) 评论(0) 推荐(0) 编辑
摘要: clear all close all clc %% 读取指定路径文件 file_path = 'C:\Users\20220601_155213\198-1\'; file_name = '*.csv'; dirOfFile = dir([file_path, file_name]); numOf 阅读全文
posted @ 2022-06-02 16:53 SusieSnail_SUN 阅读(3744) 评论(0) 推荐(0) 编辑
摘要: #include <vector> #include <fstream> #include <string> #include <sstream> #include <iostream> #include <io.h> /// <summary> /// 读取指定路径下所有文件名及子目录下文件名 / 阅读全文
posted @ 2022-06-02 15:16 SusieSnail_SUN 阅读(672) 评论(0) 推荐(0) 编辑
摘要: C++ 数组在内存中也有 静态分配 和 动态分配 的区别。 静态数组创建方式:A a[],在栈上分配空间; eg: double data[50000]; 动态数组创建方式:使用new,malloc在堆上分配空间; eg:double *p = new double[50000]; C++ 栈和堆的 阅读全文
posted @ 2022-04-12 10:54 SusieSnail_SUN 阅读(553) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页