Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 KB | None | 0 0
  1. if (x >= '0' && x <= '9' ){
  2.             if( x+1 == '.'){
  3.                 printf("TEST");
  4.                 char new_float[5] = " ";
  5.                 //float float_num = 0;
  6.                 new_float[0] = x;
  7.                 //i++;
  8.                 new_float[1] = x + 1;
  9.                 //i++;
  10.                 new_float[2] = x + 2;
  11.                 //i++;
  12.                 new_float[3] = x + 3;
  13.                 root = (struct node*)malloc(sizeof(struct node));
  14.                 /*root->float_num = (float)(new_float - '0');  
  15.                 root->element = ' ';
  16.                 operand_push(root);
  17.                 root->element = ' ';
  18.                 printf("NEW:%s",new_float);
  19.                 root->float_num = atof(new_float);             
  20.                 root->right = NULL;
  21.                 root->left = NULL;
  22.                 operand_push(root);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement