上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 62 下一页
摘要: Ctrl+Ins Edit|Copy Shift+Del Edit|Cut Shift+Ins Edit|Paste Ctrl+C Edit|Copy Ctrl+V Edit|Paste Ctrl+X Edit|Cut Debugger (default, classic, Brief, Epsilon, and Visual Studio) Breakpoint view Ctrl+V View Source Ctrl+S Edit Source Ctrl+E Edit Breakpoint Enter Edit Breakpoint Ctrl+D Delete Breakpoint Del 阅读全文
posted @ 2011-04-18 14:42 瓜蛋 阅读(834) 评论(0) 推荐(0) 编辑
摘要: 本文假定所需连接的Access数据库为db_restaurant,如何连接db_restaurant,现在将拉开帷幕。首先,通过使用“File→New→Data Module”创建一个用于连接数据库的窗体。然后,在“ADO”选项卡下选择“ADOConnection”控件与“ADOQuery”控件。然后分别设置其“ConnectionString”属性与“Connection”属性。设置“ADOConnection”控件的“ConnectionString”属性步骤如下1. 单击按钮,将弹出如下对话框,如图所示:2. 单击“Build”按钮,配置连接字符串,接下来会看到下面的对话框,如图所示:3 阅读全文
posted @ 2011-04-14 09:09 瓜蛋 阅读(2285) 评论(0) 推荐(0) 编辑
摘要: BCB中的RTTI机制RTTI在BCB中其实有两个意义。首先,针对一般标准的C++中所定义的,RTTI是所谓的Run-Time Type Identification的缩写。传统的程序语言中,所谓的数据型态仅在Compile-Time有所作用。举例而言,您宣告了一个变量a,并且指定其型态为整数。您如何在Run-Time期间知道他的型态是整数呢?很遗憾的是,在原来的C/C++中您是无法知道这样的事情的。或者会问,这样的信息有何作用?若是您考虑对象的继承关系,您就会发现其重要性了。举例而言,若您有下面的程序: class CShape { … public: virtual void ShowMe 阅读全文
posted @ 2011-04-10 00:16 瓜蛋 阅读(709) 评论(2) 推荐(0) 编辑
摘要: #include <iostream>#pragma hdrstopusing std::cout;using std::endl;//---------------------------------------------------------------------------#pragma argsused//---------------------------------------------------------------------------class Base {public: Base() { }; virtual void DisplayMessag 阅读全文
posted @ 2011-04-09 11:39 瓜蛋 阅读(337) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include <complex>using namespace std;//----------------------------------------------class Base//基类{public: virtual void f(int); virtual void f(double); virtual void g(int i=10);};void Base::f(int){ cout<<"Base::f(int)"<<endl;}void Base::f(double) 阅读全文
posted @ 2011-04-08 08:54 瓜蛋 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 右键菜单中的有些选项你并不常用,或者,有些软件已被删除,但其右键菜单中的选项却仍占用着屏幕空间。要删除这些无用的右键菜单项,请按下述方法操作: 1. 单击Windows的“开始”菜单,单击“运行”,在“打开”框中键入“regedit”,单击“确定”按钮,打开“注册表编辑器”窗口。 2. 展开“HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers”分支,在其下找到要删除的无用项,然后右键单击该项,再单击“删除”将其删除即可清除右键菜单中的对应选项。对于仅在文件夹右键菜单中才有的选项,可到HKEY_CLASSES_ROOT\Directory\shellH 阅读全文
posted @ 2011-04-05 21:50 瓜蛋 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: //分析以下程序的执行结果#include<iostream.h>#include<conio.h>class Sample{ int x; public: Sample(int a) { x=a; cout<<"constructing object:x="<<x<<endl; }}; void func(int n) { static Sample obj(n);}int main(){ func(1); func(10... 阅读全文
posted @ 2011-04-03 22:26 瓜蛋 阅读(528) 评论(1) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;void change(int *a,int &b,int c)//指针作形参,前面加*号,引用作形参前面加&号。{ c=*a; b=3; *a=2;}int main(){ int a=1,b=2,c=3; change(&a,b,c);//指针作实参,前面加取地址符&,引用作实参,前面不加符号 cout<< a<< b<< c<<endl; return 0;} 阅读全文
posted @ 2011-03-31 15:39 瓜蛋 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 关于scanf的返回值,MSDN里是这样写的:Both scanf and wscanf return the number of fields successfully convertedand assigned; the return value does not include fields that were read butnot assigned. A return value of 0 indicates that no fields were assigned.The return value is EOF for an error or if the end-of-file 阅读全文
posted @ 2011-03-30 23:51 瓜蛋 阅读(366) 评论(0) 推荐(0) 编辑
摘要: //input.h#include <vector>#include <algorithm>#include <iostream>using namespace std;class Input{public: void Add();//添加数据 float Getsort();private: vector<int> n;};void Input::Add(){ int temp=0; cout<<"请输入数字"<<endl; while(cin>>temp) { n.push_back(t 阅读全文
posted @ 2011-03-30 20:48 瓜蛋 阅读(289) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 62 下一页