oop - C++ (g++) Compile Error, Expected "="/etc. Before 'MyWindow" (my class name) -


I have a very weird problem and the following codes are not compiled:

  #ifndef MYWINDOW_HPP_INCLUDED # defined MYWINDOW_HPP_INCLUDED square MyWindow {Private: WNDCLASSEX window_class; Hwnd window_handle; HDC device_contact_handle; HGLRC open_gl_render_context; MSG message; Got out of the bowl; Public: Window (intensity height = 416, width = 544, window style window_style = Windows); Show zero (); Close zero (); ~ Window (); }; I receive the following error: Error: Expected '=', ',', ';', 'asm' or ' attribute   

from' Myvindo ' First '

I can not see any syntax errors here, though I am wrong with the cookie because I am very (very) new in c ++ thanks in advance, alley

Edit: Yes, I tried to change the name of my word from window to solve the problem but it was not working, I forgot to change the constructor's name. I have updated the code now but still have not solved the problem. I have the only other code in my project, I've linked it because it will take some time to add those places:

Most likely your post comes before the post file. It contains the file or the last included.


Comments