2011년 9월 1일 목요일
using system;
namespace aaa{
class helloworld{
public static void main(){
console.writeline("hello world!");
}
}
}
int 4바이트 정수
char 2바이트 문자
float 4바이트 실수
c# 변수 이름 대소문자를 구분한다.
반드시 데이터 타입을 이용해서 만든다.
100 다른 명시가 없는상수일경우 int
100L long형상수
100.0 혹은 100.0D double 8바이트
100.0f float 4바이트
100.0M decimal 상수
정수형 : byte, char, int ,long
실수형 : float, double, decimal
불형 : bool
피드 구독하기:
댓글
(
Atom
)
댓글 없음 :
댓글 쓰기