Main.java import java.util.Scanner; public class Main { static String[] jobArr = {"전사", "마법사", "궁수", "도적", "해적"}; static String jobName; public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("캐릭터 이름 입력하세요 : "); String name = sc.nextLine(); for (int i = 0; i < jobArr.length; i++) { System.out.println((i+1) + ". " + jobArr[i]); } jobSelectNumber(sc); Solide..
import java.util.Scanner; public class Main { public static void main(String[] args) { int i; Scanner sc = new Scanner(System.in); System.out.print("숫자를 입력하시오: "); // 입력 5 i = sc.nextInt(); recursive(i); sc.close(); } static int recursive(int n) { int i; if (n 2 * 47 + 1 = 95 * ..
#define _CRT_SECURE_NO_WARNINGS #include int main() { int a = 50; // 정수형 a는 50 int* b = &a; // 포인터 b는 정수형 a 주소임 *b = *b + 20; // 따라서 포인터 b는 정수형 a 주소를 가리키는 거니까 50 + 20 여서 포인터 b는 70임 printf("%d, %d\n", a, *b); // 출력 : 70, 70 char* s; // 문자열 포인터 s 선언 s = "gilbut"; // &s[0] = 'g', &s[1] = 'i', &s[2] = 'l', &s[3] = 'b', &s[4] = 'u', &s[5] = 't', &s[6] =..
create table t_member ( id varchar2(10) primary key, pwd varchar2(10), name varchar2(50), email varchar2(50), joinDate date default sysdate ); insert into t_member values ('hong', '1212', '홍길동', 'hong@gmail.com', sysdate); insert into t_member values ('lee', '1212', '이순신', 'lee@test.com', sysdate); insert into t_member values ('..
스프링 토이 프로젝트 생성하고 환경세팅하는 중에 다음과 같은 에러가 발생했다. Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 해석해보면 데이터 소스를 구성하지 못했다는 에러 문구였다. application.properties 에 다음과 같이 설정했었는데 spring.datasource.hikari.jdbc-url=jdbc:mariadb://localhost:3306/db?useSSL=false spring.datasource.hikari.username= spring.datasource.hikari.password= spring.da..