cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
int Length(char *s);
int Length(char *s);
Apr 2, 2011 at 7:13am UTC
jls36
(26)
Can someone help me undrstand how to use this [int Length(char *s);] my teacher says This function returns the length of the null-terminted character string s but I don't know how to use it. I've tried many different ways.
Apr 2, 2011 at 7:21am UTC
hamsterman
(4538)
if
( Length(
"hello"
) == 5 ) cout <<
"yay"
;
What are you trying to achieve with it?
Apr 3, 2011 at 5:22am UTC
jls36
(26)
thanks, I figured it out. My teacher wanted us to make or own version of a string library function to find the length of a character string.
Last edited on
Apr 3, 2011 at 5:24am UTC
Topic archived. No new replies allowed.