본문 바로가기

Programming

(66)
728x90
반응형

C Language。연산자(Operator) 1. 대입 연산자(=)와 산술 연산자(+, -, *, /, %) 연산자 기능 예 결합방향 = 대입 num = 20; ← + 덧셈 num = 10 + 20; → - 뺄셈 num = 10 - 20; → * 곱하기 num = 10 * 20; → / 나누기 num = 10 / 20; → % 나머지 num = 20 % 10; → 2. 복합 대입 연산자 a = a + b ← 동일연산 → a += b a = a - b ← 동일연산 → a -= b a = a * b ← 동일연산 → a *= b a = a / b ← 동일연산 → a /= b a = a % b ← 동일연산 → a %= b 3. 부호 연산 4. 증가, 감소 연산자 연산자 기능 예 결합방향 ++num 선 증가, 후 연산 printf("%d", ++num); ..
C Language。변수(Variable) 1. 변수(Variable) 임의의 값을 대입할 수 있는 문자, 값을 저장할 수 있는 메모리 공간에 붙은 이름, 혹은 메모리 공간 자체를 변수라 하며, 변수를 만들면(선언하면) 그 변수 이름을 통해 값의 저장 및 참조가 가능하고, 저장된 값 변경 가능 int main(void) { int num; // num 이름의 정수형 변수선언 } # int : 정수를 저장할 수 있는 메모리 공간 할당 # num : 메모리 공간의 이름 # C언어의 변수 선언은 앞부분에 위치 int main(void) { int num1; int num2; ..... } # 변수를 선언만 하고 초기화하지 않으면 쓰레기 값(아무런 의미가 없는 값)이 저장되므로 선언과 동시에 0으로 초기화 시켜줌 변수의 이름은 알파벳, 숫자, 언더바(_..
Javascript。메이븐(Maven) 다운로드 및 설치 1. 메이븐(Maven) 다운로드 http://maven.apache.org/download.cgi Maven – Download Apache Maven Downloading Apache Maven 3.8.1 Apache Maven 3.8.1 is the latest release and recommended version for all users. The currently selected download mirror is https://mirror.navercorp.com/apache/. If you encounter a problem with this mirror, please select anothe maven.apache.org 2. 환경 변수 설정 [Programming/Java] - Java,..
C Language。기본 구성 및 용어 1. 기본 구성 #include // 헤더파일 int main(void) // 메인 함수 { printf("Hello Everybody!!\n"); // 출력 함수 return 0; // return문 } 2. 기본 용어 용어 내용 기계어(Machine Language) 컴퓨터가 이해할 수 있는 0과 1로 구성 절차지향 C언어는 절차지향 언어로 정해진 순서대로 실행 헤더파일 표준함수 호출을 위해 헤더파일 선언(확장자가 .h로 끝나는 헤더파일을 포함하라는 의미) main() 함수 C언어에서 반드시 1개만 존재하며, 프로그램 실행시 위에서부터 차례대로 실행 후 종료 printf 함수 콘솔(Consol) 화면에 문자, 문자열, 숫자 등을 출력시키는 표준 함수 return문 함수를 호출한 영역으로 값 전달(반환..
C Language。새 프로젝트와 소스 파일 생성 1. 새 프로젝트 생성 2. 소스 파일 생성
Javascript。Tomcat Server를 Eclipse에 연동 # Server 생성
Javascript。Tomcat 다운로드 및 설치 1. Tomcat 다운로드 https://tomcat.apache.org Apache Tomcat® - Welcome! The Apache Tomcat® software is an open source implementation of the Jakarta Servlet, Jakarta Server Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Annotations and Jakarta Authentication specifications. These specifications are part of the tomcat.apache.org 2. Tomcat 설치 3. Tomcat과 Eclipse 연동
Java。Eclipse, Java 다운로드 및 설치 1. Java 다운로드 https://www.oracle.com https://www.oracle.com/java/technologies/javase-downloads.html 2. 환경 변수 설정 3. Java 설치 확인 cmd 창에 java, javac, java -version를 각각 입력 후 설치가 잘 됐는지 확인 4. Ecilps 다운로드 http://www.eclipse.org The Community for Open Innovation and Collaboration | The Eclipse Foundation The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 375 open sou..
728x90
반응형