|
原帖由 zxjike 于 2007-7-2 22:35 发表 ![]()
晕了,原来我看得不是LZ的程序。
Sorry!FENG950 的程序肯定会跑到底的,LZ后来贴的也不存在略过的问题。
是第一页那个最后直接赋值的那个程序中间的循环会略过。
网络慢,现在才看到LZ的程序。
你说的那个和我这个等价么?
using System;
namespace ConsoleApplication1
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>
class Test
{
public static void Main(string[] args)
{
Test test = new Test();
Console.WriteLine(test.xun());
Console.ReadLine();
}
public int xun()
{
int a = 0;
int b = 9;
for(long i = 0;i < 1000000000;i++)
{
a++;
}
return b;
}
}
} |
|