In addition to enumerating how many correct answers there were, you can print out the question numbers of incorrect problems. Getting the number incorrect is just a matter of subtracting the correct from the total.
Also, please use [code][/code] tags in the future.
Just copy the code tags (the things in [square brackets] that Zhuge supplied) tags and place your code between them. Or click the buttono on the side of the reply box for code tags (it's a button that looks like this <> ) and place the code between the opening and closing tags.
Zhuge, how did you write that? Is it a secret or am I retarded?
int main ()
{
std::cout<< "Brilliant! Thank you very much.";
return 0;
}
[/code]
1 2 3 4 5 6 7
#include <iostream>
int main ()
{
std::cout<< "Brilliant! Thank you very much.";
return 0;
}
(You have to add the spacing/ indenting manually, it won't do it for you. This is important because members constantly ask to keep it formatted as it is easier to read with proper indentation)