jw wrote:
i have an array called program;
char program[500];
it includes for ex. this=> mp3#name#surname#age#sex#school#
there are some names in the array; there may be names more than 6,but
not totaly longer than 500 chars.
i want to make this in a loop
cout<<name[];
i ll use an array called name with size 20;and the output will be
mp3
name
surname
Here's the algorithm
find the position of the first # in program
copy all the character from the beginning of program upto the first #
output all the copied characters
find the position of the second # in program
copy all the character from after the first # upto the second #
output all the copied characters
find the position of the third # in program
copy all the character from after the second # upto the third #
output all the copied characters
I don't quite get what you are saying about loops, but whatever it is
put the above into the loop you need.
john