View Single Post
  #1 (permalink)  
Old 10-03-2006, 09:00 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Credits: 0
Rep Power: 11
hoser2001 is on a distinguished road
Default A custom String Class

My entire programming experience has been based in C#, so my skills dealing with creating classes is somewhat limited, especially in C++.

I have to create a really simple string class that just does a few operations
(head and tail functions, concatenation operator, assignment operator and the input and output operators >> <<)

I also need a default constructor, and two other constructors for handling single characters and copying strings.

I want to be able to include it at the top of a program.

If anyone has any suggestions as to the best way to approach creating a class with just these simple requirements I would greatly appreciate any help.

Thanks in advance!
Reply With Quote

Sponsored Links