From: "learning c++" <learning_c@hotmail.com>
To: gcc-help@gcc.gnu.org
Subject: Which header should I include for "reverse"
Date: Mon, 30 Aug 2004 11:17:00 -0000 [thread overview]
Message-ID: <BAY12-F17ZKZlZU6Vin000239ca@hotmail.com> (raw)
Hi, Everyone:
I compiled a short program to use "reverse" like this:
#include <iostream>
#include <algorithm>
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
next reply other threads:[~2004-08-30 9:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-30 11:17 learning c++ [this message]
2004-08-30 12:08 ` Arno Wilhelm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY12-F17ZKZlZU6Vin000239ca@hotmail.com \
--to=learning_c@hotmail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).