Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (x >= '0' && x <= '9' ){
- if( x+1 == '.'){
- printf("TEST");
- char new_float[5] = " ";
- //float float_num = 0;
- new_float[0] = x;
- //i++;
- new_float[1] = x + 1;
- //i++;
- new_float[2] = x + 2;
- //i++;
- new_float[3] = x + 3;
- root = (struct node*)malloc(sizeof(struct node));
- /*root->float_num = (float)(new_float - '0');
- root->element = ' ';
- operand_push(root);
- root->element = ' ';
- printf("NEW:%s",new_float);
- root->float_num = atof(new_float);
- root->right = NULL;
- root->left = NULL;
- operand_push(root);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement