쉐도잉 연습: Useful math related functions in C++ 🔢 - 영상으로 영어 말하기 배우기

연습 모드 선택

각 모드는 전체 화면 연습실로 열립니다.

52 문장
문장이 너무 짧거나 길면 Edit를 눌러 조정하세요.
1
Hey guys, in this video I'm going to show you 8 useful math related functions in C++.
2
Let's begin by creating 3 variables.
3
Double x, and I will set this to be 3.
4
Double y, that will be 4.
5
Then double z, we will declare this but not yet assign it.
6
The first useful math related function is the max function, which will return the greater of 2 values or variables.
7
I'll assign the result within z.
8
z equals standard max parentheses.
9
Within the parentheses, add two values or variables.
10
I'll compare x and y.
11
Then let's display the result.
12
Standard output, I would like to display whatever z is.
13
The greater number between 3 and 4 is, well, you guessed it, 4.
14
Alternatively, there's the min function.
15
z equals standard min let's compare x then y
16
so the minimum between these two values would be three
17
so that's max
18
and min now the rest of these functions are found within
19
the cmath header file at the top of our file let's
20
include cmath we have the pow function to raise a base to a given power.
21
z equals pow, or power.
22
Let's raise two to the power of three.
23
z would be eight.
24
Two to the power of four would be 16.
25
That's the power function.
26
Then we have square root z equals sqrt.
27
What's the square root of nine?
28
Well, the square root of nine is three.
29
Then we have absolute value z equals abs.
30
If you place a negative number within the absolute value function, it will give you the positive version of that number, how far it is away from zero.
31
So negative three, the absolute value of negative three would be three.
32
That is the absolute value function.
33
Next, we have the round function.
34
Let's change X to 3.14.
35
Z equals round.
36
Let's round X.
37
3.14 rounded would be three.
38
If you need to round up, there's a ceiling function.
39
Z equals seal.
40
Seal means ceiling.
41
Let's round X.
42
X rounded up is 4.
43
Alternatively, there's the floor function, which will always round down.
44
Let's change X to 3.99 to test it.
45
Z equals floor X.
46
X rounded down is three.
47
So yeah, everybody, that is a super quick video on a few useful math-related functions.
48
If you head to this URL, c++.com slash reference slash cmath, there's a lot more useful math functions that you may be interested in,
49
but we just covered a few of the basics.
50
In the next topic, we're going to create a practice program to find the hypotenuse of a right triangle.
51
So yeah, those are a few useful math-related functions in C++.
52
Thank you.

앱 다운로드

유창하게 말하는 데 필요한 모든 것

AI 발음 평가문장마다 점수 확인
IPA 발음 연습모든 소리 마스터
단어 학습나만의 단어장 만들기
단어 게임놀면서 외우기

같은 채널

FOR YOU

추천 영상

이 수업에 대하여

이번 수업에서는 C++에서 유용한 수학 관련 함수에 대해 알아보겠습니다. 여기에서는 max, min, pow, sqrt, abs, round, ceil, floor와 같은 기본적인 수학 함수를 다루며, 이 함수들을 어떻게 활용할 수 있는지를 학습합니다. C++ 프로그래밍을 통해 수학적 문제를 해결하는 방법을 익히는 것은 컴퓨터공학에 있어 필수적인 스킬이므로, 여러분은 이 수업을 통해 실질적인 프로그래밍 능력을 고양할 수 있습니다.

주요 어휘 및 구문

  • max 함수: 두 값 중 큰 값을 반환합니다.
  • min 함수: 두 값 중 작은 값을 반환합니다.
  • pow 함수: 숫자를 지수로 제곱합니다.
  • sqrt 함수: 숫자의 제곱근을 구합니다.
  • abs 함수: 절대값을 반환합니다.
  • round 함수: 숫자를 반올림합니다.
  • ceil 함수: 숫자를 올림합니다.
  • floor 함수: 숫자를 내림합니다.

연습 팁

영어 쉐도잉을 연습할 때는 해당 동영상의 내용을 빠르게 따라하는 것이 중요합니다. 특히 프로그래밍 관련 용어는 처음 들어보는 경우가 많기 때문에, shadow speech를 활용하여 목소리를 따라하고, 발음과 억양을 익혀보세요. 적절한 속도와 톤을 유지하면서 연습하는 것이 좋습니다. 또한, shadowing site를 활용하여 다양한 학습 자료를 접하면서 본인의 발화 속도를 조절하는 것도 유익합니다. 특히 IELTS 스피킹을 준비하는 분들은 이런 기법을 통해 자신감 있게 말하기 연습을 할 수 있습니다. 반복하여 연습하면 효과적으로 언어 능력을 향상시킬 수 있으므로, 여러분의 목표에 맞춰 꾸준히 영어 쉐도잉을 수행해 보세요.

쉐도잉이란? 영어 실력을 빠르게 키우는 과학적 방법

쉐도잉(Shadowing)은 원래 전문 통역사 훈련을 위해 개발된 언어 학습 기법으로, 다언어 학자인 Dr. Alexander Arguelles에 의해 대중화된 방법입니다. 핵심 원리는 간단하지만 매우 강력합니다: 원어민의 영어를 들으면서 1~2초의 짧은 지연으로 즉시 소리 내어 따라 말하는 것——마치 '그림자(shadow)'처럼 화자를 따라가는 것입니다. 문법 공부나 수동적인 청취와 달리, 쉐도잉은 뇌와 입 근육이 동시에 실시간으로 영어를 처리하고 재현하도록 훈련합니다. 연구에 따르면 이 방법은 발음 정확도, 억양, 리듬, 연음, 청취력, 말하기 유창성을 크게 향상시킵니다. IELTS 스피킹 준비와 자연스러운 영어 소통을 원하는 분들에게 특히 효과적입니다.

섀도잉 방법: 단계별 전체 가이드 읽기 →