public static class Entry
  {
    public Entry(int key)
    {
      this.key = key;
      next = null;
    }    public final int getKey()
    {
      return key;
    }    private int key;
    private Entry next;
  }How to translate the class of in Java into Class of C++
Thanks

解决方案 »

  1.   

    by software or by manual ?
    If the later ,It's easy!
      

  2.   

    by software by manual by manual is more and more easy than by software.
      

  3.   

    tanks, please translate into Class of C++,thanks
      

  4.   

    单就这一个类来说,可以这样“翻译”。class Entry {
    public:
      Entry(int key) : key(key), next(0) { }
      int getKey() { return key; }
    private:
      int key;
      Entry *next;
    };不过,放到工程环境中可能会有所不同。