C++ "multiple types in one declaration" error

c++

Question

Why do I get the "multiple types in one declaration" error when I compile my C++ program?

1
52
11/19/2016 11:45:17 PM

You probably have code that's the equivalent of

int float x;

probably

class Foo { } float x;

or in it's more common form (note the missing semicolon after closing curly bracket)

class Foo {
  //
}

float x;
130
4/7/2011 11:04:41 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon