istream and ostream not declared?
My program keeps saying istream and ostream are not declared when I'm trying to create this class:
Code:
#include <iostream>
#ifndef TRANSPORT_H_
#define TRANSPORT_H_
class Transport{
public:
Transport();
Transport(double cost);
double get_cost() const;
void set_cost(double c);
virtual void output(ostream & outs) = 0;
virtual void input(istream & ins) = 0;
private:
double cost;
};
#endif
as you can see im including iostream, i also tried ios, istream & ostream and none work... any ideas?
thanks