- 博客(9)
- 资源 (15)
- 收藏
- 关注

转载 随机
#include time.h>#include stdlib.h>#include stdio.h>char GetOperByP(double p){ char ch = /; if(p>=0 && p0.2) { ch = +; } else if(p>=0.2 && p0.4) { ch = -; }
2010-03-31 02:58:00
303
转载 using visual webgui gateways in a simpler way
<br />In this article we are going to learn how to use Visual WebGui Gateways. Gateways are Visual WebGui way to declare virtual URLs that are handheld by a control according to declared actions. <br />This topic assumes that you have some basic knowledge
2010-07-28 14:42:00
412
转载 const用法详解
const用法详解面向对象是C++的重要特性. 但是c++在c的基础上新增加的几点优化也是很耀眼的就const直接可以取代c中的#define以下几点很重要,学不好后果也也很严重const1. 限定符声明变量只能被读const int i=5;int j=0;...i=j; //非法,导致编译错误j=i; //合法2. 必须初始化const int i=5; //合法const int j; //
2010-04-06 00:27:00
261
转载 unresolved external symbol _main解决办法
原因:是在建项目或工程时把Win32 Application与Win32 Console Application弄错了。详见 VC++中的Win32 Application和Win32 Console Application区别http://lihuaxiong-001.blog.163.com/blog/static/2165829920099206263119/edit/在创建项目
2010-04-04 13:03:00
391
转载 顺序存储完全二叉树的基本操作
#include#include#define MAX_TREE_NODE_SIZE 100typedef struct {int item[MAX_TREE_NODE_SIZE]; //根存储在下标为1的数组单元中,内容为结点的表示数字int n; //当前完全二叉树的结点个数}QBTree;QBTree *BT;void CreateBTree(QBTree *BT,int data[],
2010-03-31 01:02:00
1365
原创 C++以记事本输出结果
#include "stdio.h"#include "conio.h"int main(){FILE *fp=fopen("c://yy.txt","w"); // 声明文件指针// 打开文件yy.txt,“w”是表示写:writelong long m=0;fprintf(fp,"%ld/n",m);for(m=1;m fprintf(fp,"%ld /n",m);f
2010-03-31 00:52:00
1300
转载 C++随机函数(VC program):
C++随机函数(VC program):#include #include #include using namespace std; #define MAX 100int main(int argc, char* argv[]){ srand( (unsigned)time( NULL ) ); //srand()函数产生一个以当前时间
2010-03-30 23:38:00
385
原创 MFC消息映射机制的剖析 讲述如何运用ClassWizard
void CDrawView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default //MessageBox("clicked"); m_bDraw=TRUE; m_ptOrigin=m_ptOld=point; CView::OnLBu
2010-03-30 16:32:00
410
转载 AfxGetApp()的使用
AfxGetApp()的使用 AfxGetApp( )是全局的。AfxGetApp( )这个函数可以得到当前应用进程的指针,是CWinApp*类型的,通过这个指针可以访问到这个进程中的对象。比如在全局函数中要向对话框中的列表写数据。void writeString(char* pString){ CWnd* pWnd = AfxGetApp()->GetMainWnd();
2010-03-29 17:33:00
426
word文档转成PDF格式工具
2010-11-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人