随笔 - 111, 文章 - 0, 评论 - 39, 阅读 - 61万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Debugging

摘要:有时候编译的时候,vc6.0会一直卡着不动,除非在进程里结束,这种情况只要给vc6.0打上sp6包即可;但是你必须根据vc的版本看清你需要的是中文还是英文。sp6安装说明:1、根据硬盘上安装的Vc6版本(英文还是中文)选择sp6(english)或sp6(chinese);2、将sp6(english)或sp6(chinese)解压缩至一个临时目录;3、进入解压缩目录,运行“setupsp6.exe”即可。注:其中sp6很容易在网上搜到下载,以下下载网址仅供参考。英文版地址: http://download.microsoft.com/download/1/9/f/19fe4660-5792- 阅读全文

posted @ 2011-09-01 21:08 李大嘴 阅读(1163) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>usingnamespacestd;classCBase{private:intm_a;protected:intm_pp;public:CBase(inta,intpp):m_a(a),m_pp(pp){}friendostream&operator<<(ostream&out,constCBase&b);};ostream&operator<<(ostream&out,constCBase&b){out<<b.m_a<<""&l 阅读全文

posted @ 2011-09-01 21:07 李大嘴 阅读(2226) 评论(0) 推荐(0) 编辑

摘要:一个朋友向我请教一个程序,相关代码如下: string s; vector <string> vs; ifstream inFile("F://MyReceiveFiles//FillCompo_KP.mod", ios::in); while (getline(inFile, s)) vs.push_back(s); cout<<vs.size()<<endl; inFile.close(); inFile.open("F://MyReceiveFiles//FillCompo_Line.mod", ios::in) 阅读全文

posted @ 2011-08-30 08:35 李大嘴 阅读(1442) 评论(0) 推荐(0) 编辑

摘要:#include <stdio.h>#include <iostream>#include <vector>#include <algorithm>using namespace std;void main() { vector<int> v; v.push_back(1); v.push_back(2); v.push_back(3); v.push_back(4); v.push_back(5); vector<int>::reverse_iterator ri = find(v.rbegin(), v.rend(), 阅读全文

posted @ 2011-07-27 16:49 李大嘴 阅读(3194) 评论(0) 推荐(0) 编辑

摘要:【1】下载mysql-connector并解压静态编译部分【2】 VS2008 Additional Include Directories 加mysql-connector\include VS2008 Additional Library Directories 加mysql-connector\lib, C:\Program Files\MySQL\MySQL Server 5.2\bin VS2008 Additioinal Dependencies 加mysqlcppconn.lib mysqlcppconn-static.lib动态链接部分【3】将libmysql.dll(C:\P 阅读全文

posted @ 2011-07-19 17:50 李大嘴 阅读(2517) 评论(0) 推荐(0) 编辑

摘要:【解决方案一】要提升SQL的查詢效能,一般來說大家會以建立索引(index)為第一考量。其實除了index的建立之外,當我們在下SQL Command時,在語法中加一段WITH (NOLOCK)可以改善線上大量查詢的環境中資料集被LOCK的現象藉此改善查詢的效能。 不過有一點千萬要注意的就是,WITH (NOLOCK)的SQL SELECT有可能會造成Dirty Read。 例如:SELECT COUNT(UserID)FROM EMPLOYEE WITH (NOLOCK) JOIN WORKING_GROUP WITH (NOLOCK) ON EMPLOYEE.UserID = WORKIN 阅读全文

posted @ 2011-04-08 17:29 李大嘴 阅读(5836) 评论(0) 推荐(0) 编辑

摘要:error C3848: expression having type would lose some const-volatile qualifiers in order to call "bool operator()(const Point3 &lhs, const Point3 &rhs)"解决:bool operator()(const Point3 &lhs, const Point3 &rhs)改为bool operator()(const Point3 &lhs, const Point3 &rhs) cons 阅读全文

posted @ 2011-04-01 15:29 李大嘴 阅读(1079) 评论(0) 推荐(1) 编辑

摘要:Either use "#define NOMINMAX" before including windows.h or "#undef max" after including windows.h, and that can solve the problem. 阅读全文

posted @ 2011-03-23 11:00 李大嘴 阅读(671) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示