Building a Guessing Game | C++ | Tutorial 21

  Рет қаралды 39,254

Giraffe Academy

Giraffe Academy

Күн бұрын

Пікірлер
@sanan.chaudhry
@sanan.chaudhry 3 жыл бұрын
I love how straightforward you are and your voice is really soothing!
@ShogMain
@ShogMain 2 жыл бұрын
3:00 its int secretNum =7; int guess; do { coutguess; } while (secretNum != guess); cout
@briann.4731
@briann.4731 2 жыл бұрын
hello mike this code runs on code blocks perfectly but then gives an error on vs studio.....since the guess variable need be initialized before the loop
@inovinoclaudine4514
@inovinoclaudine4514 5 жыл бұрын
👍Thumbs up for this video. I've learned about using loops for making a guessing game..
@OptimisedTutorials
@OptimisedTutorials 6 жыл бұрын
Great work, underrated.
@ur_frequency
@ur_frequency 3 жыл бұрын
Excuse me I'm working to add an array in our game. I mean the we have to guess multiple numbers. I used array but failed. Sir can you help me in solving my problem.
@alexandrtcacenco8129
@alexandrtcacenco8129 3 жыл бұрын
It works as long as I enter pure numbers, but as soon I enter few letters cin getting ignored and while loop goes infinite. How to sanitize input and ignore letters?
@nidhisethi3135
@nidhisethi3135 5 жыл бұрын
We didn't use endl in the code for guess game. Why then enter a guess statement is always in a new line when we enter a wrong guess?
@obst5228
@obst5228 5 жыл бұрын
I think it is because of the while loop. It is creating a new line every time it runs.
@edwinnavarro8881
@edwinnavarro8881 4 жыл бұрын
Can i ask sir Dane? If i guess the number on first trial and i write a wrong number on the last trial, why the output tells wrong if i got already the number
@fessenic
@fessenic 7 жыл бұрын
My pycharm isn't working well, do you recommend any other programming language for absolute beginners?
@GiraffeAcademy
@GiraffeAcademy 7 жыл бұрын
Sorry to hear pycharm is messing up. I wouldn't let that discourage you from learning python though. You could always try a different IDE, here's a list I found of some popular ones! noeticforce.com/best-python-ide-for-programmers-windows-and-mac Honestly python is a great first language to learn because the syntax is very intuitive and minimal, but really any language can be used to learn the basics. I would recommend javascript if you already know how to use HTML, or Java, which is extremely popular! Best of luck!
@fessenic
@fessenic 7 жыл бұрын
Giraffe Academy thanks for your lovely response I can see you are really supportive and that's why I chose giraffe academy to learn python, also thanks for the IDE list you gave me it's a great post, thanks!
@kingbhau306
@kingbhau306 4 жыл бұрын
Use VS code.
@prashantsonone759
@prashantsonone759 4 жыл бұрын
can we use for loop for this game
@avneetrandhawa6257
@avneetrandhawa6257 3 жыл бұрын
Sir can u help me with my assignment?please
@Drxxx
@Drxxx 3 жыл бұрын
cool tutorial
@that1828
@that1828 5 жыл бұрын
Instead of a number if I have to enter a word or letter what do I do??
@thekub32
@thekub32 5 жыл бұрын
Define the variable as a string literal and then type it in quotes.
@aryanmore7495
@aryanmore7495 4 жыл бұрын
good 👍👍👍
@Darksigma.777
@Darksigma.777 5 жыл бұрын
Bro thank you so much
@kasron221
@kasron221 3 жыл бұрын
thanks!
@brambleberrycreekhomestead6883
@brambleberrycreekhomestead6883 5 жыл бұрын
Nice!
@moazibrahim2507
@moazibrahim2507 4 жыл бұрын
enjoyed !
@cristianmercado6326
@cristianmercado6326 4 жыл бұрын
7? Coincidence? 🤔
@glauciotech
@glauciotech 4 жыл бұрын
Obrigado While loop
@theactualljazzman874
@theactualljazzman874 4 жыл бұрын
if you guess a letter the program goes ape shit, 10/10
@DonaldMurf
@DonaldMurf 3 жыл бұрын
try using cin.fail() if guess is an int and you use if(cin.fail()){} then you u can write some code in the block and loop them back to the start etc.
@abdulrhmanmagdy7591
@abdulrhmanmagdy7591 2 жыл бұрын
#include #include using namespace std; int main() { int guess; const int secretnum=7; int countguesses=0; const int limit=3; bool outofguess=false; do { if(countguesses
@IDK-cy1zb
@IDK-cy1zb 3 жыл бұрын
you said word, not numbers!!!! LOL
For Loops | C++ | Tutorial 22
10:35
Giraffe Academy
Рет қаралды 12 М.
Is JavaScript BAD for Beginners? | Let's Rant
14:53
Giraffe Academy
Рет қаралды 41 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Building a Guessing Game | Tutorial 23
12:43
Giraffe Academy
Рет қаралды 10 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 843 М.
While Loops | C++ | Tutorial 20
8:26
Giraffe Academy
Рет қаралды 15 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 436 М.
C++ Tutorial 15 - Making simple Tic Tac Toe game (Part 1)
23:46
NVitanovic
Рет қаралды 289 М.
Exponent Function | C++ | Tutorial 23
6:09
Giraffe Academy
Рет қаралды 24 М.
Getters & Setters | C++ | Tutorial 30
12:41
Giraffe Academy
Рет қаралды 67 М.
Coding SUCKS for Beginners | Let's Rant!
17:40
Giraffe Academy
Рет қаралды 162 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 614 М.
Pointers | C++ | Tutorial 26
14:35
Giraffe Academy
Рет қаралды 13 М.