0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

c#で、なでしこ その8

Last updated at Posted at 2024-12-11

概要

c#で、なでしこ、やってみた。
c#な、なでしこ、見つけたので、msbuildでコンパイルしてみた。
練習問題やってみた。

練習問題

c#をコンパイルして実行せよ。

サンプルコード

F =「hello.cs」を「書」でファイルストリーム開く
「using System;」をFにファイルストリーム一行書く
「public class HelloWorld  {\123}」をFにファイルストリーム一行書く
「    static public void Main ()  {\123}」をFにファイルストリーム一行書く
「        Console.WriteLine ("Hello World!!");」をFにファイルストリーム一行書く
「    }」をFにファイルストリーム一行書く
「}」をFにファイルストリーム一行書く
Fをファイルストリーム閉じる
S =「C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc hello.cs」をコマンド実行
#S =「type hello.cs」をコマンド実行
Sを表示
S =「hello」をコマンド実行
Sを表示

実行結果

>cnako2 csc.nako
Microsoft (R) Visual C# Compiler version 4.8.9232.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.

This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240


Hello World!!

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?