- 博客(24)
- 资源 (1)
- 收藏
- 关注
原创 关于Onpaint和Paint的区别
<br />关于Onpaint和Paint的区别<br />2011年3月22日14:23:44<br />paint事件<br />onpaint方法<br /> <br />onpaint方法是调用paint事件的,用哪一个,效果是一样,就看那一个方便了<br />内部是这样实现的:<br /> protected virtual OnPaint(PaintEventArgs e)<br />{<br /> if(paint != null)<br />{<br /> paint(this,e);
2011-03-22 16:01:00
676
原创 如何使Datatime类型只保留年月日或是时分秒?
<br />如何修改我们的Datatime的类型,保留特定的样式,或是特定的类型?<br />--select CONVERT(VARCHAR(20),VSS_bir,111)<br />--注意,111 是一个Style,可以设成很多的,<br />---108表示只取出时分秒来<br />--select CONVERT(VARCHAR(20),VSS_bir,108)<br />--114 不但是时分秒而且还是毫秒数,0或是100显示的是AM或是PM<br />--select CONVERT(VAR
2011-02-23 16:13:00
9574
原创 对图像的浮雕处理。。
<br />对图像的浮雕处理。。<br />2011年2月7日8:51:39<br /> <br /> ///<summary><br /> ///应用程序的主入口点。<br /> ///</summary><br /> [STAThread]<br /> staticvoid Main() <br /> {<br /> Application.Run(newForm1());<br />
2011-02-09 16:52:00
478
转载 常用的RGB值
2007-03-11 23:06<br /> 刚才写程序的时候用到颜色值的时候怎么都想不起来黄色的RGB值,看来有些东西不记是不行的。把常用的一些写在下面以备查用:<br />颜色 R G B RGB值<br /> 黑色 Black 0 0 0 0 <br /> 白色
2011-02-07 08:49:00
688
原创 Show和ShowDialog
<br />他们的区别就不用说了,<br />今天我遇到一个事情,就是,在刚才了,<br />我的一个代码,就是想在加载的时候显示一个窗体提示正在加载。。<br />于是,我就在加载前 调用<br />From3 f3=new From3();<br />f3.ShowDialog()<br />想在我的家在完成后,在f3.Close()<br />但是,,,,不鞥呢实现老是一直显示这个窗口,开始我以为是因为图片的质量太大导致的,,其实不然,就是家在一个的时候,这个窗体还是老是显示的,<br />于是,我
2011-02-04 19:57:00
393
原创 tie的作用
请教istream类的tie函数有什么用?关键是给我举个能看到该函数作用的例子,我已查过MSDN,但上面举的例子根本反映不出用了这个函数有什么效果.谢谢!<br /> <br /> 1楼 tie的作用就是把cin 和 cout 系在一起。所谓“打结”。看代码:<br />#include <iostream><br />using namespace std;<br /><br />int main(int, char **, char **)<br />{<br /> //cin.tie(0)
2010-08-14 14:13:00
1249
原创 二级制文件随记读取实验小程序
<br />#include "iostream"<br />#include "fstream"<br />#include "windows.h"<br />#include "string"<br />using namespace std;<br />void main()<br />{<br /> fstream file("a.txt",ios::in|ios::out|ios::binary);//打开一个a.txt文件,但是你要注意的是fstream不能创建文件的<br /> if(!fil
2010-08-14 13:48:00
549
原创 DeleteFile为啥老是删除不了文件那,低级错误啊
DeleteFile为啥老是删除不了文件那,低级错误啊2010-08-13 22:50<br />先看图,我的意思是用DeleteFile删除一个文件,当然也可以用DOS命令del,或者批处理来完成,,<br />但是我去老是不能完成,但是新建了一个文本文件还是可以的,,开始真是怪事<br /> <br />// Note:Your choice is C++ IDE<br />#include <iostream><br />#include "windows.h"<br />using namespac
2010-08-13 22:58:00
8203
原创 类的
<br /> 这个是规范的类,,,,以及要注意的问题,<br />//首先测试的是,类的共有成员的调用的作用的范围,能够突出这个析构函数的作用<br /> // 但是不行,我用了内联函数,还是不行,因为这个inline不能获得这个公有变量的值<br />#include <iostream><br />using namespace std;<br />class ST<br />{ <br />int A,B;// 不能进行初始化<br />public:<br /> ST(int a=0,int
2010-06-05 13:28:00
427
原创 用getch实现控制
利用getch实现对while的需要输入的停止条件的判断//关于数据加密的算法,4位数,然后每位数加上5,然后把和加起来然后除以10后的余数//,然后把余数当做原数// 然后把这个新产生的值得一四位调换,然后把这个2 3 ,味调换#include "stdlib.h"#include "string.h"//#include "graphics.h" #includ
2010-05-23 14:56:00
581
原创 串运算
#include "stdio.h"#include "string.h"#include "stdlib.h"#include "conio.h"int maxlen=20;typedef struct string{ char s[20]; int len;}st;// 判断串相等的函数,可以直接用strcmp函数int same(st p,st r){ int i; p.len=str
2010-05-21 07:05:00
529
原创 对双向链表的处理,单个,但是,有错误,就是在输入越界 时候,没有执行出错处理
对双向链表的处理,单个,但是,有错误,就是在输入越界 时候,没有执行出错处理 /* 关于链表的删除,必须考虑到这个找到的节点为head的情况*/ #include "stdio.h" #define A sizeof(struct st) // 必须加上includes" stdlib.h" #include "stdlib.h" #inc
2010-05-16 09:22:00
490
原创 return的认识,初步
于return预计 /* Note:Your choice is C IDE */#include "stdio.h"void main(){ int max(int ,int ); int a,b; printf(" /n inter :/n"); scanf("%d%d",&a,&b); print
2010-05-13 13:51:00
334
原创 学生成绩的查询
关于对学生成绩的统计系统,#include "stdio.h"#include "string.h"#include "stdlib.h"#include "conio.h"#define A 1#define U printf("作者信息为:/n****刘庭****/n****男****/n****1989/11/02****/n****河南商专计算机网络技术一班09
2010-05-13 13:50:00
701
原创 自己好了,,程序
怪事了,啊,竟然迷了我小半天,狂晕了,但是,最后有自己好了Jasper20100513#include "stdio.h"#define B 5static int top=0;int s[B];void inter(int s[]){ int n ; printf("/n开始输出栈中的值;/n"); while(topB) {scanf("
2010-05-13 13:49:00
367
原创 关于用栈给链表赋值
有事不细心导致的,错误,浪费了这么多的时间,咳, Jasper 2010年5月13日9:49:06#include "stdio.h"#include "stdlib.h"#include "liu.c"#include "conio.h"#define A sizeof(struct stud)#define B
2010-05-13 13:48:00
799
原创 双向链表的建立以及输出
关于双向循环链表的建立 /* 这个是一个双向链表的建立*/ #include "stdio.h" #define NULL 0 #define N 5 #define SS sizeof(struct stu) typedef struct stu { int num; int name[10]
2010-05-13 13:46:00
1653
原创 关于VC中弹出的不能为read的一个简单分析
#include "stdio.h"#include "stdlib.h"#include "conio.h"#define N 20main(){ char *p ; char *s[N]; int i,top=0; for(i=0;i { p=(char *)malloc(2*sizeof(
2010-05-11 13:28:00
606
原创 关于乱码的另外一种解释
关于一个小的问题,而看到的一个大的错误这个数组为什么会出现乱码?/* Note:Your choice is C IDE */#include "stdio.h"#define A putchar(10);void main(){ int s[3][3],i,j; int k,y,max; printf("/
2010-05-11 13:12:00
307
原创 chuzhan not all control paths return a value*/
VC 警告信息的解释chuzhan not all control paths return a value*/编辑 | 删除 | 权限设置 | 更多▼jasper 发表于2010年05月10日 22:39 阅读(0) 评论(0)分类: VC警告 权限: 公开 /*建立链栈*/#include "stdio.h"#includ
2010-05-11 11:59:00
1658
原创 local variable 'r' used with having been inibiavlzed(初始化)
main(){ st *r=NULL; /* 开始用**r=NULL*/ int x,q; printf("/n 开始输入值:/n"); scanf("%d",&x); while(x!=0) { ruzhan(&r,x); scanf("%d",&x); } whi
2010-05-11 11:58:00
1195
原创 关于链栈
/*建立链栈*/#include "stdio.h"#include "stdlib.h"#include "conio.h"#define E sizeof(struct stud)typedef struct stud{ int data; struct stud *next;}st;void ruzhan(st **t,int x)
2010-05-11 11:49:00
347
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人