can you give an example of sorting?
in c..tnx!
abby2589 -2 Light Poster
Recommended Answers
Jump to PostHow about an example of searching to begin with.
Jump to Poststruct rest_t { char name[20]; char add[20]; char type[10]; double cost[5]; };
needs a semicolon at the end.
struct rest_t rest[9]={{"ABC","Makati","250.00","Thai"}, {"DEF","Pasay","350.00","American"}, {"GHI","Manila","150.00","Asian"}, {"JKL","Muntinlupa","300.00","Thai"}, {"MNO","Paranaque","350.00","Thai"}, {"PQR","Manila","200.00","American"}, {"STU","Makati","400.00","Asian"}, {"VWX","Roxas blvd.","500.00","Asian"}, {"YZA","Manila","250.00","American"}};
Trying to define 9 structs in an array that can only hold 8 (and …
Jump to PostThat is true, and you also cannot declare a double using quotes "". I strongly suggest you learn the basics of C first.
All 9 Replies
Salem 5,265 Posting Sage
csurfer 422 Posting Pro
abby2589 -2 Light Poster
csurfer 422 Posting Pro
abby2589 -2 Light Poster
abby2589 -2 Light Poster
death_oclock 103 Posting Whiz
Alibeg 1 Junior Poster in Training
death_oclock 103 Posting Whiz
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.