Errors in standard header files

I am currently getting the following errors:

c: \ program files \ microsoft visual studio \ vc98 \ include \ iomanip (15): error C2059:> syntax error: 'namespace'

c: \ program files \ microsoft visual studio \ vc98 \ include \ iomanip (15): error C2334:> unexpected token (s) preceding '{'; skipping the visible function body

c: \ program files \ microsoft visual studio \ vc98 \ include \ math.h (36): error C2059: syntaxes> error: 'string'

c: \ program files \ microsoft visual studio \ vc98 \ include \ math.h (36): error C2334: unexpected> token (s) preceding '{'; skipping the visible function body

Since they are all in the standard library header files and therefore read-only, I don’t know how to fix this!

Any help would be great.

+5
source share
1 answer

In C / C ++, the preprocessor works before the source code is actually parsed, but #includebasically just merges different files. One consequence of this is that C / C ++ is completely satisfied that it {matches }in one file in another (included) file. Of course, no one ever does this (or if they do, they should be shot), but since the C / C ++ preprocessor is so easy to handle, it is technically resolved.

, ​​ . , ; . {} ( ) .

, - - , , , , (, ), , , - , . #include .

+5

All Articles