how can i declare this correctly:
because i always get an error like, too long declaration.

Type of food Name Address Average cost

Thai ABC Makati 250
American DEF Pasay 350
Asian GHI Manila 150
Thai JKL Muntinlupa 300
Thai MNO Paranaque 350
American PQR Manila 200
Asian STU Makati 400
Asian VWX Roxas blvd. 500
American YZA Manila 250

it should be printed out already in the program. tnx!

Type of food-- Name--Address-- Average cost

Thai ------------ABC---- Makati---- 250
American--------DEF ----Pasay ------350
Asian------------GHI ----Manila ------150
Thai--------------JKL-----Muntinlupa--300
Thai--------------MNO---Paranaque--350
American------- PQR ---Manila -------200
Asian------------STU ----Makati ------400
Asian -----------VWX ---Roxas blvd.--500
American-------YZA-----Manila--------250

dont mind the ----
^_^

You can Make a Structure for these four identifiers.

struct  AnyNameYouLike{
 char* type_of_food;
 char* Name;
 char* Address;
 unsigned int Average_Cost;
};

I hope that i understood your Question :)

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.