From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7658 invoked by alias); 5 May 2002 12:28:47 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7651 invoked from network); 5 May 2002 12:28:46 -0000 Received: from unknown (HELO fepF.post.tele.dk) (195.41.46.135) by sources.redhat.com with SMTP; 5 May 2002 12:28:46 -0000 Received: from tdcadsl.dk ([80.62.84.198]) by fepF.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020505122845.HIEC6037.fepF.post.tele.dk@tdcadsl.dk> for ; Sun, 5 May 2002 14:28:45 +0200 Message-ID: <3CD5248B.A86ABF41@tdcadsl.dk> Date: Sun, 05 May 2002 05:28:00 -0000 From: bjorn rohde jensen Reply-To: shamus@tdcadsl.dk X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Sorting data points References: <02050112374901.01118@sathis> <001e01c1f424$b671dd00$2d1bf6d0@temp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00037.txt.bz2 Hi Deosaran, Your problem sounds a bit more like a home work assignment than a GCC problem;) Any way, you might want to look at the STL, find a suitable container providing itterators and have a look at the sorting algorithms in STL. This way you wont have to do much coding yourself, and you will get a pretty efficient solution:) Yours sincerely, Bjorn