Re: what mistake I made in this head file?
From: Daqian Yang (052203y_at_acadiau.ca)
Date: 01/26/04
- Next message: Michael Mellor: "Re: what mistake I made in this head file?"
- Previous message: Victor Bazarov: "Re: difference between stack & heap (general, for a newbie)"
- In reply to: Daqian Yang: "what mistake I made in this head file?"
- Next in thread: Michael Mellor: "Re: what mistake I made in this head file?"
- Reply: Michael Mellor: "Re: what mistake I made in this head file?"
- Reply: Derek: "Re: what mistake I made in this head file?"
- Reply: red floyd: "Re: what mistake I made in this head file?"
- Reply: Kiel W.: "Re: what mistake I made in this head file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jan 2004 12:01:23 -0400
After I modified the program like this it has no compiling error:
--
#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
};
};
---
anyone can tell me why?
- Next message: Michael Mellor: "Re: what mistake I made in this head file?"
- Previous message: Victor Bazarov: "Re: difference between stack & heap (general, for a newbie)"
- In reply to: Daqian Yang: "what mistake I made in this head file?"
- Next in thread: Michael Mellor: "Re: what mistake I made in this head file?"
- Reply: Michael Mellor: "Re: what mistake I made in this head file?"
- Reply: Derek: "Re: what mistake I made in this head file?"
- Reply: red floyd: "Re: what mistake I made in this head file?"
- Reply: Kiel W.: "Re: what mistake I made in this head file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|