コンピュータの5大装置は次の5つの分類がある。
- 制御装置
- 演算装置
- 記憶装置
- 入力装置
- 出力装置
1の制御装置と2の演算装置は、主にプロセッサーと呼ばれる装置で構成されている。
プロセッサーは CPU、GPU、DSP がある。
3の記憶装置には、主記憶装置(=RAM、揮発性)と補助記憶装置(=不揮発性)がある。
4の入力装置には、キーボード、マウス、センサーなどがある。
5の出力装置には、ディスプレイ、スピーカー、プリンターなどがある。
class Program { static void Main(string[] args) { string text = "abc"; ModifyText(text); Console.WriteLine("ModifyText の後:" + text); ModifyTextOut(out text); Console.WriteLine("ModifyTextOut の後:" + text); Console.ReadLine(); } private static void ModifyText(string param) { param = "xxx"; } private static void ModifyTextOut(out string param) { param = "zzz"; } }
1 0 0 0 1 0 0 3 1
1 0 0 | 1 0 0 0 1 0 | 0 1 0 0 3 1 | 0 0 1
1 0 0 | 1 0 0 0 1 0 | 0 1 0 0 0 1 | 0 -3 1