hello everyone
how do i sort an array of 6 number with out using any type of sort and then printing the array sorted?
i have a source text file with this numbers {10 , 5 , 20 , 3 , 50 , 40}.
i copied the text file into an array and now i need to sort it with out using any type of sort and then print it to a new file sorted.
any suggestion? may using with min/max but i cant figure out how...
10x
severman
0
Junior Poster in Training
Recommended Answers
Jump to Post>with out using any type of sort
Be more specific, please. You can't use an existing sort function? Any sorting algorithm at all?
Jump to Post>but with out chaging the order of the array...
*sigh* You know, that's an important piece of information. Here's something to shut you up for a bit. It's a simple solution to your problem that you can use as a template for your own code:#include <stdio.h> …
All 6 Replies
Narue
5,707
Bad Cop
Team Colleague
severman
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
severman
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
jephthah
1,888
Posting Maven
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.