LoginSignup
1

More than 5 years have passed since last update.

C#プログラミング(基礎)二回目

Posted at

※自分用のメモに書いています

環境:Windows10 Visual Studio 2012

まず初めにString内の文字列を大文字や小文字にしてみる。
image.png
結果画面
image.png

クラス

クラスを新しく作り中に変数nameとageを作る。
image.png
次に先ほど作ったクラスを使う用に変数を用意する。
image.png
がこのままでは使えないので使えるようにするために、
personクラスの変数の前にpublicを追加する。
image.png
結果画面。
image.png
まだ変数内が表示されないので表示するためにpersonクラス内に表示用の文を追記する。
image.png
ついでに他のデータも追加する。
image.png
もうすこし弄ってこうなった。
image.png
結果画面。
image.png

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
1