Thanks. here is the current code;
#include "CatPair.h"
#include <iostream>
using namespace std;
std::ostream& wbs(std::ostream& os, const std::string& s);
std::istream& rbs(std::istream& is, std::string& s);
bool CatPair::operator<(const CatPair& rhs) const
{
return second < rhs.second...
when I tried to compile with your codes, I got the following error message, do you know how to fix it ? Thanks !
--------------------
g++ -I. -c -o CatPair.o CatPair.cc
CatPair.cc: In member function `void CatPair::write(std::ostream&) const':
CatPair.cc:32: error: invalid conversion from...
dear ArkM,
Thank you very much. I am very new about "std".
where should I insert your codes into my programme ?
I just append your codes in my class "GatPair" without changing our codes. But this did not work.
how to modify my methods "write", and "read" in the class "GatPair" ...
Thank you so much for your reply.
You are right, the problem is in CatPair::read();
do you know a way to fix this situation ? or provide some more information ? I am realy stuck in this problem.
very appreciated !
Hi,
can anybody help me ?
I have a code Index which gave error message "Bus error (core dumped)" in the line push_back() function was called
as shown as following:
Index::Index(string fname) : vector<CatPair>(0), _range(vector<CatPair::index_type>(0))
{
ifstream is(fname.c_str())...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.