摘要: 学完?那是什么程度?STL用得熟练吗?算法和数据结构掌握得怎么样呢?会写界面吗?BOOST呢?像楼上所说的换一种语言,简直是痴人说梦,如果不深入一门语言,夸张一点说,就好比你会用很多编程语言写“Hello,World!”一样,有什么用呢?C++的水很深的,基本上,在所有的编程语言中,C++可以说是最复杂的一种。我觉得C++深入了研究才有意思,如果急着写界面什么的,用VB或者C#最好,这两个都是直接拖控件的。如果你想换,我推荐C#,一方面比较容易从C++过度,另一方面,也是微软强推的语言,有前景,你如果想在.NET这个平台上混,那还是C#比较好。因为C++标准委员会的限制,微软的重点早已经不在C 阅读全文
posted @ 2012-11-22 16:12 Finlay Liu 阅读(4507) 评论(0) 推荐(0) 编辑
摘要: 1.静态变量和非静态变量的区别?2.const 和 static readonly 区别?3.extern 是什么意思?4.abstract 是什么意思?5.internal 修饰符起什么作用?6.sealed 修饰符是干什么的?7.override 和 overload 的区别?8.什么是索引指示器?9.new 修饰符是起什么作用?10.this 关键字的含义?11.可以使用抽象函数重写基类中的虚函数吗?12.密封类可以有虚函数吗?13.如果基类中的虚属性只有一个属性访问器,那么继承类重写该属性后可以有几个属性访问器?如果基类中有get 和 set 两个呢?14.abstract 可以和 v 阅读全文
posted @ 2012-11-22 16:11 Finlay Liu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 引用类型是类型安全的指针,它们的内存是分配在堆(保存指针地址)上的。String、数组、类、接口和委托都是引用类型。强制类型转换与as类型转换的区别:当类型转换非法时,强制类型转换将抛出一个System.InvalidCastException异常,而as不会抛出异常,它返回一个null值。用using创建别名:usingconsole = System.Console;访问限定符:public该成员可以被其他任何类访问PRotected 该成员只能被其派生类访问private该成员只能被本类的其他成员访问internal 该成员只能在当前编译单元的其他成员访问带参数列表和返回值的Main方法 阅读全文
posted @ 2012-11-22 16:09 Finlay Liu 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 在上一片里已经向大家介绍了如何使用GDI+绘制简单的图像,这一片继续向大家介绍其它一些绘图知识.1.首先我们来看下上一片中我们使用过的Pen.Pen的属性主要有:Color(颜色),DashCap(短划线终点形状),DashStyle(虚线样式),EndCap(线尾形状),StartCap(线头形状),Width(粗细)等.我们可以用Pen来画虚线,带箭头的直线等Penp=newPen(Color.Blue,5);//设置笔的粗细为,颜色为蓝色Graphicsg=this.CreateGraphics();//画虚线p.DashStyle=DashStyle.Dot;//定义虚线的样式为点g. 阅读全文
posted @ 2012-11-22 16:08 Finlay Liu 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 最近对GDI+这个东西接触的比较多,也做了些简单的实例,比如绘图板,仿QQ截图等.最早接触这个类,是因为想做仿QQ截图的效果.巧的很,学会了如何做截图后,.NET课堂上老师也正巧要讲关于c#绘图方面的知识,并且我自己又在网上学习金老师的培训班,也是要用到这个类.在学习中有一些体会,所以准备把这些体会记下来,因为内容比较多,可能我会分几次写.废话不多说了,我们先来认识一下这个GDI+,看看它到底长什么样.GDI+:Graphics Device InterfacePlus也就是图形设备接口,提供了各种丰富的图形图像处理功能;在C#.NET中,使用GDI+处理二维(2D)的图形和图像,使用Dire 阅读全文
posted @ 2012-11-22 16:04 Finlay Liu 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 利用TreeView控件,建立一颗树。程序带有保存文本和二进制的功能。using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Text.RegularExpressions; using System.Runtime.Seria 阅读全文
posted @ 2012-11-22 16:02 Finlay Liu 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 主要在鼠标按下,鼠标移动,松开鼠标几个事件中编写。using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace MouseDrawOne { public partial class Form1 : Form { public Form1(... 阅读全文
posted @ 2012-11-22 15:56 Finlay Liu 阅读(1513) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _10._2._5 { public partial class Form1 : Form { public Form1() { Init... 阅读全文
posted @ 2012-11-22 15:53 Finlay Liu 阅读(788) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _10._2._4 { public partial class Form1 : Form { public Form1() { Init... 阅读全文
posted @ 2012-11-22 15:52 Finlay Liu 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _10._2._3 { public partial class Form1 : Form { public Form1() { Init... 阅读全文
posted @ 2012-11-22 15:49 Finlay Liu 阅读(971) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _10._2._2 { public partial class Form1 : Form { public Form1() { Init... 阅读全文
posted @ 2012-11-22 15:47 Finlay Liu 阅读(2638) 评论(0) 推荐(0) 编辑
摘要: GDI+:Graphics Device InterfacePlus也就是图形设备接口,提供了各种丰富的图形图像处理功能;在C#.NET中,使用GDI+处理二维(2D)的图形和图像,使用DirectX处理三维(3D)的图形图像,图形图像处理用到的主要命名空间是System.Drawing:提供了对GDI+基本图形功能的访问,主要有Graphics类、Bitmap类、从Brush类继承的类、Font类、Icon类、Image类、Pen类、Color类等.using System; using System.Collections.Generic; using System.ComponentMo 阅读全文
posted @ 2012-11-22 15:44 Finlay Liu 阅读(993) 评论(0) 推荐(0) 编辑
摘要: 我们在程序中经常会用到MessageBox。 MessageBox.Show()共有21中重载方法。现将其常见用法总结如下:1.MessageBox.Show("Hello~~~~");最简单的,只显示提示信息。2.MessageBox.Show("There are something wrong!","ERROR");可以给消息框加上标题。3.if(MessageBox.Show("Deletethis user?","Confirm Message",MessageBoxButtons.O 阅读全文
posted @ 2012-11-22 15:41 Finlay Liu 阅读(277) 评论(0) 推荐(0) 编辑