#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 Жыл бұрын
#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 Жыл бұрын
😮
@kellythestoryteller Жыл бұрын
❤
@AlfiNR Жыл бұрын
i make question math
@dortcel55502 жыл бұрын
you're one hell of a teacher😂😂. huge respect bro
@hiddenbillionaire233 Жыл бұрын
With my compiler I have to initialize the int score =0; otherwise it is something like 6422284 hahaha
@Warzell5 ай бұрын
Thank you so much I couldn't figure out why my score kept being like 32k
@amizola24772 ай бұрын
omg tq sm
@IkraanFarxaan-b8s2 күн бұрын
thank you so much 🍀
@lealemb Жыл бұрын
what an interesting teacher you are bro. thank you
@siddharthjain6629Ай бұрын
What A Nice Quiz
@_killer_designs6 ай бұрын
for those getting a weird score returning (like 32064) make sure you initialize "int score = 0"
@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++
@faltuyoutuber45706 ай бұрын
video is 1 month old, then how are comments upto a year old?
@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
@FrederikWollert9 ай бұрын
Nice Video. But you misspelled the Zuck wrong. It's Zuckerberg.
@shukurullomeliboyev2004 Жыл бұрын
where is code of this quiz test ?
@BroDevsRBLX Жыл бұрын
....
@Mendamar-uv4jg7 ай бұрын
Dude, everyone can edit wikipedia. It is unreliable source. Earth is definitely flat sometimes.
@code-charm-linux7 ай бұрын
how would I code an incorrect option block?, i tried using dowhile and while loop, it doesnt work
@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?