Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Please help with simple class problem

4: Adsense

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   

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; }

#2 Morgan   Members   

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   

Likes

Posted 25 April 2000 - 12:24 PM

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

#4 Mike00   Members   

122
Like
Likes
Like

Posted 25 April 2000 - 01:25 PM

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

#5 Morgan   Members   

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.