- 博客(5)
- 收藏
- 关注
原创 C# 值类型 引用类型
这两种类型存储在内存的不同地方:值类型存储在堆栈中,而引用类型存储在托管堆上。注意区分某个类型是值类型还是引用类型,因为这种存储位置的不同会有不同的影响。例如:int是值类型,这表示下面的语句会在内存的两个地方存储值20:i = 20;j = i;但考虑下面的代码,这段代码假定已
2011-07-22 21:38:17 193
原创 [C#]用户名&&密码
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Username&&Password{ class Program {
2011-07-22 20:43:02 612
原创 [C#]不断要求用户输入数字,当用户输入end时显示刚才输入的数字的最大值
using System; using System.Collections.Generic; using System.Linq; using System.Text;namespace Program { class Program { stat
2011-07-15 11:44:55 2088
原创 C语言 阶乘递归
<br />下面是源代码:#include "stdafx.h" #include<stdio.h> unsigned int factorial(unsigned int a); int _tmain(int argc, _TCHAR* argv[]) { unsigned int f,x; puts("Enter an interger value between 1 and 8:/n"); scanf("%d",&x); if(x>8||x<1) { prin
2011-04-16 10:26:00 412
原创 C语言 猜数游戏
<br />下面是C语言猜数游戏的源代码:#include "stdafx.h" #include<stdio.h> #include<stdlib.h> #include<time.h> #define NO 0 #define YES 1 int _tmain(int argc, _TCHAR* argv[]) { int guess_value=-1; int n; int nbr_of_guesses; int done=NO; int rand();
2011-04-15 20:03:00 565
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人