I'm a bit confused about overloading some operators.. I did the assignment operator with no problem, but I'm trying to overload the addition operator without result.. what's the syntax for the addition operator?
My code is on pastebin:
stdafx is just included by visual studio as a default:
and stdafx.cpp is:Code:#pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include <cstdio> #include <cstdlib> #include <iostream> #include <windows.h> #include <tchar.h>
Thanks for any helpCode:// stdafx.cpp : source file that includes just the standard includes // Classes.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file