Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

GavinWang

@GavinWang
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • An unexplained compiler error (C2039)
    G GavinWang

    onece, I also encountered this problem, finally, all went well. your code above can be compiled without any error, but if you add some other initialization into one class A(it includes "1.h"), the other class B's implementation file must also include "1.h" for the implementation of object of A in the file.

    C / C++ / MFC csharp c++ help question

  • Help: How could I deal with this?
    G GavinWang

    as follows, what should I do? thanks:) class A { public: void f(void (*g)(int), int i) const { (*g)(i); } protected: //must be virtual, some one inherit from it virtual void g(int i) const { ; } }; class B { public: B() { pa = new A; } ~B() { delete pa; } //my problem is here: the first argument pa->g :( void fb() const { pa->f( (pa->g), 0); } private: A* pa; };

    C / C++ / MFC help question

  • Help: I cannot use getline(...)
    G GavinWang

    thank you for the response. Finnally, I figured out the key problem. the fstream object is the data member of my class not declared mutable, but in the member function declared const, the fstream.getline() failed. //ps: the error information vc.net2003 offers me //just confuses me:(

    C / C++ / MFC help csharp ios

  • Help: I cannot use getline(...)
    G GavinWang

    fstream file; char buffer[MAXBUFSIZE]; string line; file.open(..., ios_base::in); file.getline(buffer, MAXBUFSIZE-1); //getline(file, line); //both of the above fail to work //and the vc.net2003 print such error info: //error C2663: “std::basic_istream<_Elem,_Traits>::getline” : //2 //overloaded functions lack a legal conversion of pointer "this".

    C / C++ / MFC help csharp ios
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups