C#
文章平均质量分 75
HuanChan
这个作者很懒,什么都没留下…
展开
-
C# 中的 break ,goto ,contitue ,return 语句
一、break 1. break语句形式: break; 2. break语句功能: A. switch语句中,break语句会终止其后语句的执行,退出switch语句。 B. 使一个循环立即结束,也就是说在循环中遇到break语句时,循环立即终止, 程序转到循环体后的第一个语句去继续执行。 3. 注: A. break语句在循环中使用时,总是与if一起使用,转载 2016-05-11 20:33:48 · 662 阅读 · 0 评论 -
开始学习C#
由于项目需要,最近开始从新学习C#,之前上课没有认真学习过,所以名为重新学习,其实很多都是新学。今天用if ()else { }语句编写一个简单的函数程序。写完之后发现不能识别小数,于是在网上搜了一下,终于可以将小数识别出来,很简单。 using System; using System.Collections.Generic; using System.Linq; using System原创 2016-05-11 20:18:36 · 200 阅读 · 0 评论 -
关于使用C#调用C++生成的动态链接库(DLL文件)
使用C++的打开一张图片,C++的程序。在C++新建项目的应用设置里面选择DLL,图片如下 将显示单张图片的C++代码复制到建立文件的.CPP文件下面,然后调试。 代码如下: // Cpp_cshape.cpp : 定义 DLL 应用程序的导出函数。 // #include "stdafx.h" #include "stdafx.h"原创 2016-09-12 21:00:32 · 2425 阅读 · 0 评论 -
用C#的PictureBox播放本地视频
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.Col原创 2016-09-13 15:11:18 · 8196 阅读 · 6 评论