C++ QUIZ GAME for beginners 💯

  Рет қаралды 10,491

Bro Code

Bro Code

Күн бұрын

Пікірлер: 27
@BroCodez
@BroCodez 2 жыл бұрын
#include int main() { std::string questions[] = {"1. What year was C++ created?: ", "2. Who invented C++?: ", "3. What is the predecessor of C++?: ", "4. Is the Earth flat?"}; std::string options[][4] = {{"A. 1969", "B. 1975", "C. 1985", "D. 1989"}, {"A. Guido van Rossum", "B. Bjarne Stroustrup", "C. John Carmack", "D. Mark Zuckerburg"}, {"A. C", "B. C+", "C. C--", "D. B++"}, {"A. yes", "B. no", "C. sometimes", "D. what's Earth?"}}; char answerKey[] = {'C', 'B', 'A', 'B'}; int size = sizeof(questions)/sizeof(questions[0]); char guess; int score; for(int i = 0; i < size; i++){ std::cout
@lalkad8561
@lalkad8561 Жыл бұрын
#include int main(){ std::string questions[] = { "1. It is now 2023, what year will it be in 5 years if the fourth quarter of the 21st century is over?: ", "2. Who invented the Sherlock Holmes character?: ", "3. Who invented Facebook?: ", "4. Which nationality is Alfred Korzybski?: "}; std::string options[][4] = {{"A. 2128", "B. 2005", "C. 2105", "D. 2024"}, {"A. William Shakespear", "B. Sherlock Holmes was a real person!!!", "C. Izzy Einstein and Moe Smith", "D. Arthur Conan Doyle"}, {"A. Mark Zuckerberg", "B. Steve Jobes", "C. Michael Gerard Tyson", "D. Bro Code"}, {"A. American", "B. Irish", "C. Russian", "D. Polish"}}; char answerKey[] = {'C', 'D', 'A', 'D'}; int size = sizeof(questions)/sizeof(questions[0]); char guess; int score; for(int i = 0; i < size; i++){ std::cout
@danilod.olescojr.9445
@danilod.olescojr.9445 Жыл бұрын
😮
@kellythestoryteller
@kellythestoryteller Жыл бұрын
@AlfiNR
@AlfiNR Жыл бұрын
i make question math
@dortcel5550
@dortcel5550 2 жыл бұрын
you're one hell of a teacher😂😂. huge respect bro
@hiddenbillionaire233
@hiddenbillionaire233 Жыл бұрын
With my compiler I have to initialize the int score =0; otherwise it is something like 6422284 hahaha
@Warzell
@Warzell 5 ай бұрын
Thank you so much I couldn't figure out why my score kept being like 32k
@amizola2477
@amizola2477 2 ай бұрын
omg tq sm
@IkraanFarxaan-b8s
@IkraanFarxaan-b8s 2 күн бұрын
thank you so much 🍀
@lealemb
@lealemb Жыл бұрын
what an interesting teacher you are bro. thank you
@siddharthjain6629
@siddharthjain6629 Ай бұрын
What A Nice Quiz
@_killer_designs
@_killer_designs 6 ай бұрын
for those getting a weird score returning (like 32064) make sure you initialize "int score = 0"
@andriibear
@andriibear Жыл бұрын
a really nice tutorial, thanks. One quedtion, you know it would be really nice if you create a tutorial on how to create a non console game in c++
@faltuyoutuber4570
@faltuyoutuber4570 6 ай бұрын
video is 1 month old, then how are comments upto a year old?
@WangBingzheng
@WangBingzheng Ай бұрын
one question : why the option[][4],the 4 is in the columns , instead of the rows?
@миринмирин
@миринмирин Жыл бұрын
ALSO! If you want to use multiple decimal places, use: std::cout
@FrederikWollert
@FrederikWollert 9 ай бұрын
Nice Video. But you misspelled the Zuck wrong. It's Zuckerberg.
@shukurullomeliboyev2004
@shukurullomeliboyev2004 Жыл бұрын
where is code of this quiz test ?
@BroDevsRBLX
@BroDevsRBLX Жыл бұрын
....
@Mendamar-uv4jg
@Mendamar-uv4jg 7 ай бұрын
Dude, everyone can edit wikipedia. It is unreliable source. Earth is definitely flat sometimes.
@code-charm-linux
@code-charm-linux 7 ай бұрын
how would I code an incorrect option block?, i tried using dowhile and while loop, it doesnt work
@HunaBopa
@HunaBopa Жыл бұрын
Bro, unfortunately the creator of C++ has seen your this tutorial (2:16/11:45) and is angry to see you misspell his name. His soul says he will forgive you provided that you create an auto-spelling app in C++ and make it open sourced. What would you say Bro?
@nawaftahir7060
@nawaftahir7060 16 күн бұрын
LOL:D
C++ memory addresses for beginners 🏠
2:49
Bro Code
Рет қаралды 9 М.
you will never ask about pointers again after watching this video
8:03
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
C++ TIC TAC TOE game for beginners ⭕
19:09
Bro Code
Рет қаралды 41 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 340 М.
C quiz game 💯
9:25
Bro Code
Рет қаралды 46 М.
C++ Banking program for beginners 💰
13:53
Bro Code
Рет қаралды 17 М.
C++ ROCK PAPER SCISSORS game for beginners 👊
13:07
Bro Code
Рет қаралды 15 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 629 М.
Making a Game With C++ and SDL2
5:34
Goodgis
Рет қаралды 672 М.
The Programming Language Guide
24:25
Traversy Media
Рет қаралды 511 М.
C++ Tutorial for Beginners - Learn C++ in 1 Hour
1:22:56
Programming with Mosh
Рет қаралды 4,5 МЛН
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 679 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН