Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ishownumbers(int value,int x,int y)
- /* parameters are (the_number-to_be_shown,the_x_co-ordinate,the_y_co-ordinate) */
- {
- int size=0 ;
- char cnt[10000] ;
- while(value){
- cnt[size++]=(value%10)+48 ;
- value =value/10 ;
- }
- cnt[size++]='\0' ;
- strrev(cnt) ;
- iText(x,y,cnt,GLUT_BITMAP_HELVETICA_18) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment