Re: what mistake I made in this head file?

From: Daqian Yang (052203y_at_acadiau.ca)
Date: 01/26/04


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?


Relevant Pages

  • Re: Newbie question about class member functions...
    ... mainalways returns int, never void. ... // Open playlist file and read it into an array ...
    (comp.lang.cpp)
  • Jtable repaint - it just doesnt work! tried
    ... public int numRows; ... public void setValueAt{ ... array, then plugs it into a jTable ... public void windowClosing(java.awt.event.WindowEvent evt) { ...
    (comp.lang.java.programmer)
  • Re: Mergesort Vs Quicksort
    ... given as variable-length records packed end-to-end in one array, ... int scmp(const void *a, const void *b); ...
    (comp.programming)
  • Re: Mergesort Vs Quicksort
    ... given as variable-length records packed end-to-end in one array, ... int (*compar)(const void *, const void *)) ...
    (comp.programming)
  • Re: quick sort
    ... void quicksort; ... int partition; ... and a populateIntArray(int *array, size_t size) function such ... printIntArray, quicksort() (yes, I'd have called it something ...
    (comp.lang.c)