At 11:47 2007-02-27, tunde oke wrote:
>Hello,
>   Thanks for the reply....i actually dont understand the code you 
> sent me because you wrote it in c,c++ and safe c++.I am just 
> learning C++ and i am trying to finish an assignment....the last 
> part of the assignment requires sorting that was why i posted that.
>   Now am specifying...i need the code in c++.
>   Thanks

perhaps you should get some of the books on our 
list   http://rudbek.com/books.html
looking up   sort()   would be a useful thing


>Thomas Hruska <[EMAIL PROTECTED]> wrote:
>           MoMaFuckEup wrote:
> > Hello,
> > am writing program that requires sorting.am using an array error[5].the
> > array contain values(numbers),i want a program to sort the smallest
> > value to error[1]and the smaller one to be in error[2].....
> > please help me
>
>size_t x, y;
>int error[] = {15, 7, 9, 1, 10};
>Block<int> sorterror(error, sizeof(error) / sizeof(int));
>
>sorterror.Sort();
>
>y = sorterror.GetSize();
>for (x = 0; x < y; x++) printf("%i\n", sorterror[x]);
>
>(<grin> That's what you get for not specifying C, C++, Safe C++)
>
>--
>Thomas Hruska
>CubicleSoft President
>Ph: 517-803-4197
>
>*NEW* VerifyMyPC 2.1
>Change tracking and management tool.
>Reduce tech. support times from 2 hours to 5 minutes.
>
>Free for personal use, $10 otherwise.
>http://www.CubicleSoft.com/VerifyMyPC/
>
>
>
>
>
>
>---------------------------------
>  Get your own web address.
>  Have a HUGE year through Yahoo! Small Business.
>
>[Non-text portions of this message have been removed]
>
>
>
>
>To unsubscribe, send a blank message to 
><mailto:[EMAIL PROTECTED]>.
>Yahoo! Groups Links
>
>
>

Victor A. Wagner Jr.      http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law" 

Reply via email to