unlucky_13

Untitled

May 21st, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. void ishownumbers(int value,int x,int y)
  2. /* parameters are (the_number-to_be_shown,the_x_co-ordinate,the_y_co-ordinate) */
  3. {
  4.         int size=0 ;
  5.         char cnt[10000] ;
  6.             while(value){
  7.                 cnt[size++]=(value%10)+48 ;
  8.                 value =value/10 ;
  9.             }
  10.             cnt[size++]='\0' ;
  11.             strrev(cnt) ;
  12.             iText(x,y,cnt,GLUT_BITMAP_HELVETICA_18) ;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment