For started you could use code tags. And then you should also post what errors you're having.
But from what I can see:
main should not be a void type
You cannot declare array sizes with doubles (Num)...(I think)
You're not using namespace std so all couts, cins and endls should be declared as std::cout etc.
Anything else I may have missed?
double data[num]={price[cntr][1]};-----------this part is the error..
if i can't use array then what should i use?
our prof.ask us to make a program..where in the user will input the item name and the item price they bought.then the program will
SORT
the items to ascending order by means of cost of the item..