"MC felon" <pa******@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com
Not just repetitive, dumb too. Try giving your posts subjects that actually
convey useful information.
hello.
i tried this for a simple push_back action..... it says "ostream - no
such file or directory"
#include <iostream>
#include <conio2.h>
#include <string>
#include <ostream>
Let's see now. What are the possibilities?
Either the ostream header exists on your system or it doesn't.
If it does exist, then presumably there is some problem with the way you
have set up directories in your IDE so the file isn't being found. If it
doesn't exist, then either there is a problem with your installation or you
have a non-standard implementation. Either reinstall or get a different
implementation, as appropriate.
Just by the way, you rarely need to #include <ostreamdirectly. Just
#including <iostreamnormally suffices. You might try simply removing
#include <ostream>
int main()
{
clrscr();
std::cout<<"rough engine of ecod\n\n";
std::cout<<"please input text\n\n";
std::cout<<"when you have completely typed in the message, please
press enter\n\n";
std::string str;
getline(std::cin,str,'\n');
str.push_back('\n');
std::cout<<str;
}
compiler error: ostream: no such file or directory
what am i supposed to do?
--
John Carson