i think u should get its hexdecimal value .
less than 48 is an operator ,
between 49 - 58 is an integer
Type: Posts; User: Haytham
i think u should get its hexdecimal value .
less than 48 is an operator ,
between 49 - 58 is an integer
well ,,
here is a function i search for the Max GPA in a tree , where :
struct treenode
{
int st_id;
float gpa;
ptrtotree left;
ptrtotree right;
};
well , through the ASCII code , 0=48 , 1=49 , 9=58
supposed i am doing a program to convert from infix to postfix
here is my code , i donno whats wrong with the stack of operators and the periorties
can anyone help me?
void...
still not understanding ....
now i have a problem
if there is an equation like 12+13 in a string , how can i grab the int 12 and int 13 , each one alone
not int 1 , int 2
thanks in advance
hello :)
anyone has an algorithm for converting from INFIX to POSTFIX ?
thanks in advance
what i want now is to do the same problem with arrays ,
any ideas ?
i am using Dev-C++ too ,
what compiler are you using?
here is my final code , it works
thanks alot
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
struct node;
i am using Dev-C++ ...
and it runs the code
also it runs on borland C++ version 5.02 for windows
nope , new works in C too , or my compiler accept it , malloc() and free() is equivalent to new() and delete
well , its C
and the error is , when i put n = 5 , m =1 like the example , the order of elimination isnt 2,4,1,5 and 3 wins
well , i have an assignment
" the josephus problem is as follows : n people , numbered 1 -> n are sitting in a circle starting at person 1 , a hot potato is passed,after m passes , the person...