목록C# (5)
bread, coffee and coding
그누보드 C# [배열]배열의 기수값 응용 using System; namespace ConsoleApp10 { class Program { static void Main(string[] args) { // 1. 변수선언 int[] arr = new int[10]; // 2. 로직 for(int i = 0; i
영어,국어,수학 성적이 들어있는 정수형 배열 score를 선언하세요 영어 80 국어 90 수학 95 정수형 배열 score 꼭 반복문에 활영하여 평균avg를 구해주세요 단 avg변수는 소수점 둘째자리까지 구해주세요 using System; namespace ConsoleApp9 { class Program { static void Main(string[] args) { int[] score = new int[3]; double avg; int sum = 0; for (int i = 0; i = 0); } } } ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ using System; namespace MyApp_CallByValue { class Program { public static void S..
[절차적 프로그래밍] 1. 변수, 상수 2. 자료형(Type) -- byte, short, int, float, double, string 3. 조건문 (if, switch..), 반복문 (while, for, do_while ...) 4. 함수 -- 함수타입(return), 함수 이름 Call by Value, Call by Reference 5. 배열(자료구조), LinkedList Tree, Stack, Queue ... [객체지향 프로그래밍] 1.캡슐화, 추상화 2.다형성(오버로딩, 오버라이딩) 3.상속 ----------------------------------------------------- 4.인터페이스(interface) 5.Wrapper Class 6.깊은 복사, 얇은 복사 7. Bo..
밑변 5 높이 2 삼각형 넓이 구하기 using System; namespace Quiz_Area { class Program { static void Main(string[] args) { int width, height; double area; Console.Write("밑변를 입력하세요"); width = int.Parse(Console.ReadLine()); Console.Write("높이를 입력하세요"); height = int.Parse(Console.ReadLine()); area = (double)height * width / 2; Console.Write("Area: "); Console.WriteLine(area); } } } ---------------------------------..
C# 프로그래밍 제조기반 시설 ----> pc제어 프로그래밍 상단 개발자 (인공지능, 빅데이터) --> Data Software 전문가 집단 (Java, python) + 융합이 중요 !! 하단 개발자(순수생산설비) --> (제조),(현장) 생산 및 설비 집단 제어가 핵심 (c, c++) =================================================== 융합에서 C# 를 사용 ---> UI C# ---- java 문법과 구조도 비슷 (Virtual Machine 사용) C#, JAVA의 문제점 ----> 메모리를 소모 (1990년 ~ 2000년 메모리 가격이 고가) 2021 메모리 가격 싸다 장점 --> 메모리 관리, 오류가 적어짐 WIN95, 98, XP(C/C++) WIN7..