随笔分类 -  C++

摘要:#include "stdafx.h" #include "stdio.h" #include "afx.h" #include <string.h> #include<iostream> using namespace std; //CString转char * //char * 转CString 阅读全文
posted @ 2020-08-13 16:57 不忘初心,追随梦想 阅读(208) 评论(0) 推荐(0)
摘要:// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include "iostream" using namespace std; const short int max_Section= 20;const short 阅读全文
posted @ 2019-03-12 09:16 不忘初心,追随梦想 阅读(1156) 评论(0) 推荐(0)
摘要:创建一个新类型(struct, 即 结构)SComplex 来表示复数,提高了代码的逻辑性和可读性,代码更加的简洁。 #include "stdafx.h" #include "iostream" using namespace std; struct SComplex { double dReal 阅读全文
posted @ 2018-11-13 22:14 不忘初心,追随梦想 阅读(225) 评论(0) 推荐(0)
摘要:第一次在项目中遇到远程访问postgresql数据库的,当时经常会出现连接数据库的错误,连接字符串出现乱码现象 解决方案 在配置文件中添加连接字符串 <add key="Information" value="server=IP地址;Port=端口号;Database=wos;uid=postgre 阅读全文
posted @ 2016-10-22 00:26 不忘初心,追随梦想 阅读(7582) 评论(0) 推荐(0)