count/display non-repeated element of array
This is a discussion on count/display non-repeated element of array within the C++ Programming forums, part of the General Programming Boards category; Think about something like strlen. It is a very simple loop that counts characters up to '
Think about something like strlen. It is a very simple loop that counts characters up to '\0'. There are no special cases: it doesn't matter if the string is empty, has one character or is longer.
What you might do is very similar to strlen, except you count items while they have the same value and you have to avoid walking past the end of the array.
I might be wrong.
Quoted more than 1000 times (I hope).
Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
Popular pages Recent additions
By swgh in forum C Programming
Last Post: 08-04-2007, 08:58 AM
By AverageSoftware in forum C++ Programming
Last Post: 07-20-2007, 01:46 AM
By CodeHacker in forum Windows Programming
Last Post: 07-09-2004, 09:54 AM
By Matt13 in forum C Programming
Last Post: 11-19-2003, 03:42 AM
By Simon in forum C Programming
Last Post: 09-12-2002, 08:29 PM