Can anyone see why am I getting the compile time error on this code? It seems pretty silly to me.
Button.cpp
Error:Code:#include "Button.h"
Button::Button(){
printf("cenas");
}
In case it's important, the Button.h class isCode:1>\carrace\button.cpp(3) : error C2533: 'Button::{ctor}' : constructors not allowed a return type
Code:#pragma once
#include "stdafx.h"
class Button {
public:
Button();
}