문자열을 정수와 실수등의 수데이터로의 형변환
int a = int.parse("1234");
double b = double.parse("123.45");
정수나 실수를 문자열로 형변환
int a = 1234;
string b = a.Tostring();
double c = 123.45;
string d = c.ToString90;
2012년 1월 30일 월요일
helloworld에서 해메긴 또 첨이네!
using System;
namespace ConsoleApplication1_helloworld
{
class helloworld
{
static void Main(string[]args)
{
//Console.WriteLine("hello");
Console.WriteLine("hello,{0},"args[0]);
}
}
}
뇌를 자극하는 C#중..
main메서드뒤의 (string[]args)가 인수를 를 받는것인데 명령줄의 인수를
받는다고 해서 해멧는데, 윈도우 실행창 cmd명령어로 검은창 띄우고 실행파일을 불르면서
동시에 인수를 넘겨주어야 오류없이 작동한다.
ex) helloworld.exe iu(인수)
2012년 1월 24일 화요일
BOLT 여장구하기
고장력 볼트 :
M16 = plate thk + 30mm
M20 = plate thk + 35mm
M22 = plate thk + 40mm
M24 = plate thk + 45mm
5mm와샤 2ea
T.S.B :
M16 = plate thk + 25mm
M20 = plate thk + 30mm
M22 = plate thk + 35mm
M24 = plate thk + 40mm
5mm와샤 1ea
피드 구독하기:
글
(
Atom
)