会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
任重道远-HSY
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2018年1月9日
ofstream和ifstream
摘要: ofstream(输出流)是从内存到硬盘,ifstream(输入流)是从硬盘到内存。 //#include #include using namespace std; int main() { ifstream in; ofstream out; in.open("a.txt"); out.open("b.txt"); int x, y, z; ...
阅读全文
posted @ 2018-01-09 17:52 任重道远-HSY
阅读(161)
评论(0)
推荐(0)
编辑
C++字符串和向量
摘要: 陷阱:C字符串使用=和== char a_string[10]; a_string="Hello" 非法 strcpy(a_string,"Hello"); 合法
阅读全文
posted @ 2018-01-09 13:19 任重道远-HSY
阅读(116)
评论(0)
推荐(0)
编辑
OpenCV批量读入(处理)
摘要: 1 #include 2 #include 3 #include 4 5 using namespace cv; 6 using namespace std; 7 char* WcharToChar(const wchar_t* wp) 8 { 9 char *m_char; 10 int len = WideCharToMultiByte(CP_ACP...
阅读全文
posted @ 2018-01-09 12:34 任重道远-HSY
阅读(268)
评论(0)
推荐(0)
编辑