Without using pointers is not really possible.
You can use the string as an index like this;
if (s[i] == ........
but actually s[i] is still a pointer.
Anyway you can avoid using * and %26amp; this way, if hats what you mean?
Then write your own string search functions.
the standard string search and compare functions are returning pointers.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment