Struct declaration syntax error [closed]?

I don't know C++, but maybe: #include using namespace std; struct stud{ int roll; char name10; double marks; }; // notice the semicolon struct stud stud1={1,"ABC",99.9}; struct stud stud2={2,"xyz",80.0}; int main(){ coutRoll.

Please read the error message: error C2236: unexpected 'struct' 'stud'. Did you forget a ';'? You are missing the semicolon at the end of the struct stud declaration.

Blogs.msdn. Com/b/oldnewthing/archive/2010/03/24/9983984. Aspx – Billy ONeal Aug 1 '10 at 19:55.

" Says it all; After you declare a struct you must put ";". You can also do this: struct struct_name { struct_variables; } new_str; This would create the structure and also create a new variable of that struct type.So, you could easily have done this: struct stud{ int roll; char name10; double marks; } stud1={1,"ABC",99.9}, stud2={2,"xyz",80.0}; And also, after you create a structure, to declare a variable of that structure type you just have to write "stud stud1" instead of "struct stud stud1.

Your code compiles perfectly under g++. But you could try this: struct stud { int roll; char name10; double marks; }.

Code compiles with > does not, and has never, meant that code is standards compliant. – Billy ONeal Aug 1 '10 at 19:50.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions