PrĂĄtica de Shadowing: Useful math related functions in C++ 🔱 - Aprenda a falar inglĂȘs com vĂ­deo

Escolha um modo de prĂĄtica

Cada modo abre uma sala de prĂĄtica em tela cheia.

52 frases
Se as frases estiverem muito curtas ou longas, clique em Edit para ajustĂĄ-las.
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.

Baixar aplicativo

Tudo o que vocĂȘ precisa para falar fluentemente

PronĂșncia com IANota em cada frase
PrĂĄtica de IPADomine cada som
VocabulĂĄrioMonte seu banco de palavras
Jogo de vocabulĂĄrioAprenda brincando

Mesmo canal

FOR YOU

VĂ­deo recomendado

Sobre Esta Lição

Nesta lição, vocĂȘ terĂĄ a oportunidade de praticar a pronĂșncia e a compreensĂŁo de funçÔes matemĂĄticas Ășteis em C++. O foco serĂĄ entender como usar funçÔes como max, min e pow, enquanto vocĂȘ acompanha o vĂ­deo. Aprender inglĂȘs com YouTube Ă© uma maneira eficaz de melhorar suas habilidades linguĂ­sticas, e ao aplicar o shadowing, vocĂȘ desenvolverĂĄ sua fluĂȘncia e sua capacidade de se expressar de forma mais natural. Vamos explorar essas funçÔes e como elas podem ser Ășteis na programação enquanto praticamos a fala.

VocabulĂĄrio e Frases-Chave

  • max - refere-se Ă  função que retorna o maior de dois valores.
  • min - a função que retorna o menor de dois valores.
  • pow - função utilizada para elevar uma base a uma potĂȘncia especĂ­fica.
  • sqrt - função que calcula a raiz quadrada de um nĂșmero.
  • abs - retorna o valor absoluto de um nĂșmero.
  • round - função que arredonda um nĂșmero para o inteiro mais prĂłximo.
  • ceiling - arredonda um nĂșmero para cima.
  • floor - arredonda um nĂșmero para baixo.

Dicas de PrĂĄtica

Para maximizar o aprendizado e a retenção atravĂ©s do shadowing em inglĂȘs, siga estas dicas enquanto assiste ao vĂ­deo:

  • **Pause o vĂ­deo frequentemente**: Quando vocĂȘ ouvir uma nova palavra ou expressĂŁo, coloque em pausa e tente repetir o que ouviu. Isso ajudarĂĄ a solidificar a pronĂșncia correta e a entonação no seu discurso.
  • **Imite o tom e a velocidade do falante**: O vĂ­deo apresenta um ritmo calmo e claro, ideal para praticar. Tente igualar a tonalidade e a velocidade para uma melhor prĂĄtica de shadow speech.
  • **Repita em voz alta**: Assim que vocĂȘ entender o conteĂșdo, fale junto, imitando nĂŁo apenas as palavras, mas tambĂ©m a emoção e a entonação do narrador.
  • **Utilize um caderno para anotar**: Escreva as funçÔes e as frases-chave enquanto assiste. Anotar ajudarĂĄ na memorização e na construção de uma base de vocabulario.
  • **Pratique regularmente**: O aprendizado de uma nova linguagem Ă© um processo contĂ­nuo. Reserve um tempo diĂĄrio para revisar as funçÔes discutidas e as repetiçÔes de shadowing site, para garantir que vocĂȘ esteja sempre praticando.

Com estas dicas, vocĂȘ estarĂĄ melhorando suas habilidades de fala enquanto se diverte aprendendo novas funçÔes de programação em inglĂȘs. Vamos praticar juntos!

O que é a Técnica de Shadowing?

Shadowing Ă© uma tĂ©cnica de aprendizado de idiomas com base cientĂ­fica, originalmente desenvolvida para o treinamento de intĂ©rpretes profissionais. O mĂ©todo Ă© simples, mas poderoso: vocĂȘ ouve ĂĄudio em inglĂȘs nativo e repete imediatamente em voz alta — como uma sombra seguindo o falante com 1-2 segundos de atraso. Pesquisas mostram melhora significativa na precisĂŁo da pronĂșncia, entonação, ritmo, sons conectados, compreensĂŁo auditiva e fluĂȘncia na fala.

TĂ©cnica de shadowing: leia o guia completo passo a passo →