From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12447 invoked by alias); 30 Aug 2004 09:43:37 -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 12415 invoked from network); 30 Aug 2004 09:43:36 -0000 Received: from unknown (HELO hotmail.com) (64.4.35.17) by sourceware.org with SMTP; 30 Aug 2004 09:43:36 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 30 Aug 2004 02:43:35 -0700 Received: from 130.233.19.1 by by12fd.bay12.hotmail.msn.com with HTTP; Mon, 30 Aug 2004 09:43:35 GMT X-Originating-IP: [130.233.19.1] X-Originating-Email: [learning_c@hotmail.com] X-Sender: learning_c@hotmail.com From: "learning c++" To: gcc-help@gcc.gnu.org Bcc: Subject: Which header should I include for "reverse" Date: Mon, 30 Aug 2004 11:17:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 30 Aug 2004 09:43:35.0645 (UTC) FILETIME=[D1DCE8D0:01C48E75] X-SW-Source: 2004-08/txt/msg00271.txt.bz2 Hi, Everyone: I compiled a short program to use "reverse" like this: #include #include int main() { double A[6] = { 1.2, 1.3, 1.4, 1.5, 1.6, 1.7 }; reverse(A, A + 6); for (int i = 0; i < 6; ++i) std::cout << "A[" << i << "] = " << A[i]; return 0; } But the error is: reverse.cpp: In function `int main()': reverse.cpp:7: error: `reverse' undeclared (first use this function) reverse.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.) Thanks in advance! _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail