On Jan 31, 2008 12:01 AM, Robert Ryan <[EMAIL PROTECTED]> wrote:
> in the first line after main, vector is in question.... it says it is
> undeclared and the < is a problem
> thanks
> bob
>
> #include<iostream>
> using namespace std;
> // compute mean (average) and median temperatures
> int main()
> {
> vector<double> temps; // temperatures in Fahrenheit, e.g. 64.6
[...]
> Hw1.cpp: In function `int main()':
> Hw1.cpp:8: `vector' undeclared (first use this function)
You haven't told the compiler what std::vector is:
#include <vector>
--
PJH
http://shabbleland.myminicity.com/ind