I'm making a program that reads in data from a file into 2 different arrays (one is an int array and another is a char array). And they are parallel. These are songs and song types (hip hop, jazz...etc). I want to print the songs as a playlist then I want to be able to randomize the playlist. To do this I want to make two more parallel arrays, one that randomizes the song name index and the other that consists of true and false values so that a song isn't played more than once that are also parallel to the other first two. But I DON'T want to print the same song more than once. How can I accomplish this (not repeating a song)?
cnet1989
VernonDozier 2,218 Posting Expert Featured Poster
cnet1989
VernonDozier 2,218 Posting Expert Featured Poster
cnet1989
VernonDozier 2,218 Posting Expert Featured Poster
cnet1989
VernonDozier 2,218 Posting Expert Featured Poster
cnet1989
VernonDozier 2,218 Posting Expert Featured Poster
hammerhead 19 Posting Whiz in Training
cnet1989
VernonDozier 2,218 Posting Expert Featured Poster
cnet1989
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.