Visual Studio 2008 structure syntax syntax error involving "2dpt"

I just worked with a program in which I used struct:

struct 2dpt {
int x;
int y;
};

And the visual studio gave me an error about the syntax of using "2dpt" as the name of the structure. I looked through all the headers and tried to use it as a standard visual studio and could not find it. I don’t know why it spit me out. Does anyone know where this error came from?

+3
source share
2 answers

Cannot start the name of the structure or variable with number.

+3
source

, , , ... , - - , , .

:

, struct:

, . .

0

Source: https://habr.com/ru/post/1788269/


All Articles