프로그래밍 언어(13)
-
함수와 배열 2021.04.26
-
c++ (int/char/short/long 등) size 비교
int = 4byte char = 1byte short = 2byte long = 4byte float = 4byte double = 8byte long double = 8byte
2021.04.26 -
continue
contiue;를 만나면 밑에 코드는 무시되고 다시 반복문으로 돌아가게됨. 따라서 continue는 반복문에서만 사용된다.
2021.04.26 -
break
break; -> switch문이나 반복문을 빠져나감.
2021.04.26 -
반복문
while문 안이 참이면 계속 실행, 거짓이면 중지
2021.04.26 -
구조체
#include #include using namespace std; int main() { struct MyStruct { string name; string position; int height; int weight; } B; MyStruct A; A.name = "Son"; A.position = "Striker"; A.height = 183; A.weight = 77; /* MyStruct A = { "Son", "Striker", 183, 77 } */ cout
2021.03.30