2.C#で作成した最初のプログラム(これはC#)
2532 ワード
1.C#コードコンパイルプロセス
コンパイル
a = 3 + 2;
a, =, 3, +, 2, ;를 따로 분석
チェック
02.C#コンパイラ


2.最初のC#プログラムの作成と分析
using static System.Console;
namespace Hello
{
class Program
{
// 프로그램 실행이 시작되는 곳
static void Main(string[] args)
{
if (args.Length == 0)
{
WriteLine("사용법 : Hello.exe<이름>");
return;
}
// Hello, World를 프롬프트에 출력
WriteLine("Hello, {0}!", args[0]);
}
}
}
using static System.Console;
namespace Hello
{
class Program
{
// 프로그램 실행이 시작되는 곳
static void Main(string[] args)
{
if (args.Length == 0)
{
WriteLine("사용법 : Hello.exe<이름>");
return;
}
// Hello, World를 프롬프트에 출력
WriteLine("Hello, {0}!", args[0]);
}
}
}
cmdウィンドウで実行



パラメータなし運転

パラメータ運転

ぶんせき

Reference
この問題について(2.C#で作成した最初のプログラム(これはC#)), 我々は、より多くの情報をここで見つけました https://velog.io/@ansalstmd/2.-C-으로-만드는-첫-프로그램-이것이-C이다テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol