PDA

View Full Version : "Bug" reporting?



matsp
08-17-2007, 06:37 AM
I found this page to contain an error:
http://www.cprogramming.com/tutorial/quiz/quiz10.html

On question 5, none of the answers are technically correct in a modern setup, as the ".h" part of the filename is omitted in C++.

I'm sure someone with moderating abilities will move this post if it's in the wrong place... :-)

--
Mats

whiteflags
08-17-2007, 07:16 AM
I found this page to contain an error:
http://www.cprogramming.com/tutorial/quiz/quiz10.html

On question 5, none of the answers are technically correct in a modern setup, as the ".h" part of the filename is omitted in C++.

Well, when you include it in a source file anyway. But that doesn't change the fact that there is an extension. The file is still an h file within your include directory. The conventions in place to include standard C++ libraries may or may not be important to the question, and I guess Alex figured it's not. That's alright with me.

Daved
08-17-2007, 09:16 AM
>> But that doesn't change the fact that there is an extension. The file is still an h file within your include directory.

Actually it is not. The file has no extension within your include directory. You can tell because some compilers have both iostream and iostream.h for backwards compatibility, and they both exist in the same directory.

webmaster generally handles the non-forum part of the site, you might try PM'ing him with changes or suggestions to make sure he sees them. A lot of that stuff was old but has been updated to reflect standard C++, apparently something was missed.