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:
cchar.h: http://pastebin.com/fb035fa1
main.cpp: http://pastebin.com/f3865cf76
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



LinkBack URL
About LinkBacks



CornedBee
Not only do you implement a string as a linked list but string actually is nothing but a linked list node!