array
-
# 빈 배열 선언 arr=() # 배열에 원소 추가 arr+=("next_one") arr+=("next_two") # 배열 탐색하며 출력 for (( i=0; i
[bash] 배열 선언 및 원소 추가하기# 빈 배열 선언 arr=() # 배열에 원소 추가 arr+=("next_one") arr+=("next_two") # 배열 탐색하며 출력 for (( i=0; i
2023.02.24 -
기록용으로 남깁니다. #!/usr/bin/env bash readarray -t arr < logging_2021-11-18_14.log #for i in ${arr[@]}; do for (( i=0; i
[bash] 파일에서 줄단위로 읽어서 한줄씩 처리하기기록용으로 남깁니다. #!/usr/bin/env bash readarray -t arr < logging_2021-11-18_14.log #for i in ${arr[@]}; do for (( i=0; i
2021.11.18 -
컴파일은 g++ static-structure-in-class{,-main}.cpp 명령을 내리면 a.out이 나옵니다.삽질하다가 간신히 성공한거라 자세한 내용을 모르고 되는 것만 적어놔요.. has a previous declaration as 오류나 does not name a type static 오류 invalid use of qualified-name structure 오류 undefined reference to 오류 등.. C++과 구조체를 정확히 모르니 몸이 무려 하루하고 반나절을 고생하네요.. 헤더 파일 // file:: static-structure-in-class.h struct t_struct { int a; int b; }; enum INDEX_TYPE {FIRST, TMP1 = ..
Static structure in class 삽질 결과..컴파일은 g++ static-structure-in-class{,-main}.cpp 명령을 내리면 a.out이 나옵니다.삽질하다가 간신히 성공한거라 자세한 내용을 모르고 되는 것만 적어놔요.. has a previous declaration as 오류나 does not name a type static 오류 invalid use of qualified-name structure 오류 undefined reference to 오류 등.. C++과 구조체를 정확히 모르니 몸이 무려 하루하고 반나절을 고생하네요.. 헤더 파일 // file:: static-structure-in-class.h struct t_struct { int a; int b; }; enum INDEX_TYPE {FIRST, TMP1 = ..
2014.08.13