why the fark would someone have us write String.h???

Blieb

Diamond Member
Apr 17, 2000
3,475
0
76
For a project!!! We have to write the damn thing ... hell ... it already exists!!!!!!!!!!!
 

Damascus

Golden Member
Jul 15, 2001
1,434
0
0
One of the tenets of programming: "Don't re-invent the wheel!" :)

Honestly I have no idea why. :confused:
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
writing string.h is a common project for CS students ... still remember the sleepless nights of blank stare when doing our projects .....

anyways, yes that dam thing already exist. and that library is pretty simple actually (want to try stdio.h? ;) )

i believe the reason is that they want you (or us) to learn how they came towards creating a library, how to "object orient" the functionalities, etc. also, it's a good practice for understanding objects, structs, classes, etc. also, i don't know about your project, but we had to struggle with arrays, pointers, and all those goodies back when we implemented our string.h

you are not reinventing the wheel because the library exist.
you are simply trying to break the library apart and reconstruct it again


Damascus: "Don't trust anyone who recommends VI."
An emacs/pico user, i assume? and btw, it's vi, not VI :p (unless of course you're referring to something else) ;)

<== vi / vim user :cool:
<== still have a lot to learn about vi :(

have fun :D
-865-
 

splice

Golden Member
Jun 6, 2001
1,275
0
0
we had to write a string class in one of my classes. it had to do operator overloading including >> <<, data type conversions, pretty much a Java like string class. :) I still use it to this day. :)