Hi
Im new to this forum, I just signed up
I have a problem with my code. I am trying to make a quiz, it was working fine yesterday. I tried to debug it today and i got 29 errors!
I dont understand how that happened, I have looked at the output and I just dont see whats wrong with it. Any help would be greatly appreciated, and yes I a noob
Code is below:
EDIT: You'll have to explain things carefully as I can get easily confusedCode:#include "stdafx.h" #include <stdio.h> #include <iostream> int main(); } char a; printf("GENERAL QUIZ\n"); printf("\n"); printf("Who is the chairman of Microsoft Corp?\n"); printf("1 Bill Gates\n"); printf("2 Steve Jobs\n"); printf("3 Jake Taylor\n"); a=getchar(); if (a=='1') printf("Correct\n"); else printf("Wrong\n"); while (a!='z'); { a=getchar(); {![]()



LinkBack URL
About LinkBacks





