hi all,
here is code:
File Edit Options Buffers Tools C Help
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
namespace xf{
class Xfile{
public:
void compress() throw (runtime_error);
void stats() throw (runtime_error);
private:
Xfile(string = "mydata", int = 10, int = 10); //constructor
typedef char* Xstr;
Xstr* storage_; //an array of array to store the data
int size_; //lines array contains
int length_; //length for each line
};
}
----
the compiler gave me this error for these two lines(
void compress() throw (runtime_error);
void stats() throw (runtime_error);
)
error:
xfile_a2.h:10: error: parse error before `)' token
xfile_a2.h:11: error: parse error before `)' token