
-----------------------------------
Flikerator
Thu Jun 08, 2006 12:06 pm

Length of a String
-----------------------------------
I was writing a program yesterday near the end of class (business not programming) and I needed to know what the length of the string was. So I went looking at strings (Untill then I had done nothing with strings/chars). I found only "C-Strings" which is;

#index 

Apparently thats not a part of C++? I had to look through some C stuff (Which is very similar to C++ I find). I found strlen() but all my attempts to use it ended up in errors. So today I decided to make my own instead of trying to get C-Strings to work.


#include 

int Length (char line [255]);

int main()
{
   char Line[] = "hello";
   std::cout 