M
MC felon
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>
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?
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>
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?