C# 用Sharpdevelop 实现时 运行不了 求大神指导 10
不知道是软件问题还是代码问题/**CreatedbySharpDevelop.*User:yu*Date:2014/3/27*Time:20:29**Tochangeth...
不知道是软件问题还是 代码问题
/*
* Created by SharpDevelop.
* User: yu
* Date: 2014/3/27
* Time: 20:29
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
class Test{
static void F(int p){
Console.WriteLine("p={0}",p);
p++;
}
static void Main(){
int a=1;
Console.WriteLine("pre,a={0}",a);
F(a);
Console.WriteLine("post;a={0}",a);
}
} 展开
/*
* Created by SharpDevelop.
* User: yu
* Date: 2014/3/27
* Time: 20:29
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
class Test{
static void F(int p){
Console.WriteLine("p={0}",p);
p++;
}
static void Main(){
int a=1;
Console.WriteLine("pre,a={0}",a);
F(a);
Console.WriteLine("post;a={0}",a);
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询