上一页 1 ··· 59 60 61 62 63
摘要: class TestMain { delegate string Fun(string str); public static void ShowMsg(string msg) { Console.WriteLine(msg); } public static void Main() { //Fun f = ShowMsg; //f("Hello ,I am Jesson"); Fun f = X => X; string str=f("Hello"); Console.WriteLine(str); Console.Read(); } }而“语句 阅读全文
posted @ 2013-03-25 09:07 Predator 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 今天学习C#中线程的知识点,于是动手编些有关线程的小例子,用来理解线程的运行原理,希望能够帮助大家尽快入手using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ConTest{ class Program{ static void Main(string[] args) { while (true) { Display(); RunThread(); Console.Clear(); } Console.Read... 阅读全文
posted @ 2013-03-22 15:59 Predator 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 函数指针:顾名思义就是函数的指针,由函数修饰,说明这是一个指向函数的指针比如:string (*P)(int n);string Fun(int n){n++;return "gan";}p=Fun;p(100);相反指针函数由指针修饰,说明这是一个返回指针的函数比如:int *p;int * Fun(int n);{int *tem=&n; return item;}p=Fun(100); 阅读全文
posted @ 2013-03-22 10:03 Predator 阅读(187) 评论(0) 推荐(0) 编辑
上一页 1 ··· 59 60 61 62 63