별의 공부 블로그 🧑🏻‍💻

🗒️ 2019/05 (4)

728x90
  1. 2019.05.06 Dynamic Memory (동적 메모리)

    Static & Dynamic Memory To be successful as a C++ programmer, it's essential to have a good understanding of how dynamic memory works. In a C++ program, memory is divided into two parts: The stack: All of your local variables take up memory from the stack. The heap: Unused program memory that can be used when the program runs to dynamically allocate the memory. Many times, you are not aware in a..

  2. 2019.05.06 Pointers (포인터)

    Pointers Every variable is a memory location, which has its address defined. That address can be accessed using the ampersand (&) operator (also called the address-of operator), which denotes an address in memory. For example:int score = 5; cout

  3. 2019.05.06 Naming Rules for Variables (변수 이름 생성 규칙)

    *Naming Rules for Variables (변수 이름 생성 규칙) The names of variables in the C++ language are referred to as identifiers. The best naming convention is to choose a variable name that will tell the reader of the program what the variable represents. Variables that describe the data stored at that particular memory location are called mnemonic variables. Rules for naming variables: (1) Variable names i..

  4. 2019.05.02 [Python] BMI 계산기

    12345678910111213141516171819202122232425262728293031323334# BMI 계산기# BMI = weight/height^2 # 리스트 생성status = ["저체중", "정상", "과체중", "경도비만", "중증도 비만", "고도 비만"] # 키, 몸무게 입력height = (float)(input("본인의 키를 입력하세요.(m): "))weight = (float)(input("본인의 몸무게를 입력하세요.(kg): ")) # BMI 수치 계산 (절댓값)BMI = abs(weight / (height ** 2)) # 계산if BMI

728x90


📖 Contents 📖