Jump to content

  • Log In with Google      Sign In   
  • Create Account

Please help with simple class problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Mike00   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 April 2000 - 10:36 AM

Here is part of my modified lesson14 code. It compiles and runs, but doesn''t show the h.. Thanks! class myclass{ private: char mydata[6]; public: void printclass(){mydata[0]=''h''; glPrint(mydata);} }; int DrawGLScene(GLvoid) { glClear(GL_COLOR_BUFFER_BIT / GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(0.0f,0.0f,-22.0f); glColor3f(0.5f,0.0f,0.5f); myclass m; m.printclass(); return TRUE; }

Sponsor:

#2 Morgan   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 April 2000 - 03:30 PM

Hmm, just an idea, try zero-terminating the string (with a ''\0'' character). It may not make a whit of difference, but it''s worth a try. So make item 1 (from a zero based index) in the array equal to ''\0''.

Morgan

#3 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 25 April 2000 - 12:24 PM

classes fuckin suck so don''t use them, use qbasic

#4 Mike00   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 April 2000 - 01:25 PM

qbasic? And classes don''t suck, they''re incredibly useful

#5 Morgan   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 April 2000 - 03:09 PM

Classes only suck if you don''t know how to use them.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS