#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
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?
#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
#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
😮
❤
i make question math
you're one hell of a teacher😂😂. huge respect bro
What A Nice Quiz
With my compiler I have to initialize the int score =0; otherwise it is something like 6422284 hahaha
Thank you so much I couldn't figure out why my score kept being like 32k
omg tq sm
thank you so much 🍀
what an interesting teacher you are bro. thank you
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++
for those getting a weird score returning (like 32064) make sure you initialize "int score = 0"
one question : why the option[][4],the 4 is in the columns , instead of the rows?
video is 1 month old, then how are comments upto a year old?
ALSO! If you want to use multiple decimal places, use: std::cout
Dude, everyone can edit wikipedia. It is unreliable source. Earth is definitely flat sometimes.
Nice Video. But you misspelled the Zuck wrong. It's Zuckerberg.
how would I code an incorrect option block?, i tried using dowhile and while loop, it doesnt work
where is code of this quiz test ?
....
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?
LOL:D