enum
https://boycoding.tistory.com/179
C++ 05.04 - 열거형, enum
05.04 - 열거형, enum C++에는 많은 자료형이 내장되어 있다. 하지만 이 자료형들이 원하는 걸 표현하기에 항상 충분하지는 않다. 그래서 C++은 프로그래머들이 자신만의 자료형을 만들 수 있게 해 주
boycoding.tistory.com
static_cast <int>
https://boycoding.tistory.com/177
C++ 05.02 - 명시적 형 변환 (Explict type conversion)
05.02 - 명시적 형 변환 (Explict type conversion) 이전 포스트 '05.01 - 암시적 형 변환 (Implict type conversion)'에서 컴파일러가 어떤 경우 자료형 간의 값을 암시적으로 변환한다는 것을 배웠다. 한 자료형의
boycoding.tistory.com
#include <cmath>
https://issac-min.tistory.com/28
[C++ Basic] 수학 함수(cmath)
1. 수학 함수(cmath) 우리는 앞에서 함수(Function)에 대한 전반적인 이야기를 했었다. 이 포스팅에서는 바로 전 [사용자 정의 함수(User Defined Function)]에서 잠시 등장했었던 에 대해서 알아볼 것이다.
issac-min.tistory.com
==> C 라이브러리
#include <ctime> ,
==> C 라이브러리
8. 난수생성,#include <cstdlib>,#include <ctime>,rand(),srand()
전에 배웠던 cin같이 우리가 입력하는 값과 달리 컴퓨터가 임의로 숫자를 우리에게 주는 방법은 없을까요? 바로바로 cstdlib 헤더파일에 있는 rand()라는 함수를 이용해서 우리가 예측할 수 없는 난
raekki.tistory.com
#include <algorithm>
==> C++ STL 라이브러리
#include <string>
==> C++ STL 라이브러리
문자열 연산 함수
https://responding.tistory.com/66
C++ - string 클래스
지금까지는 문자열을 char형의 배열로 선언했습니다. 하지만 C++부터는 string클래스를 이용해서 문자열을 저장해보겠습니다. char배열과 가장 크게 달라진 점은 더 이상 배열의 크기를 신경 쓰지
responding.tistory.com
범위 기반 for 루프
https://boycoding.tistory.com/210
C++ 07.18 - 범위 기반 for 문 (range-based for statement)
범위 기반 for 문 (range-based for statement) '06.06 - for 문' 포스트에서 for 문을 사용하여 배열의 각 요소를 반복하는 예제를 봤다. #include int main() { const int numStudents = 5; int scores[numStuden
boycoding.tistory.com