Search:

Type: Posts; User: Bexita

Search: Search took 0.00 seconds.

  1. Calculate an expression with +/ - using stack

    Hi , i need to calculate an expression with +/- only , it will get result once it see '=' sign using stack linked list (for exp: 200-100=) ,result 100. (multi digit needed)



    My code is not...
  2. Replies
    7
    Views
    1,274

    Thanks I changed VoidPtr target to char terget ,...

    Thanks I changed VoidPtr target to char terget , worked...:D
  3. Replies
    7
    Views
    1,274

    int compare(VoidPtr vp1, VoidPtr vp2){ char i =...

    int compare(VoidPtr vp1, VoidPtr vp2){
    char i = *(static_cast <char*>(vp1));
    char j = *(static_cast <char*>(vp2));

    if (i==j)
    return 0;


    else if( i<j)
    return -1;
  4. Replies
    7
    Views
    1,274

    I moved return found out of the loop , but still...

    I moved return found out of the loop , but still got error for the line if (here->next ==target).

    Because I declare target as VoidPointer as requirement , This is what I'm stucking...
  5. Replies
    7
    Views
    1,274

    Searching in linked list problem!

    Hi,
    I wanted to search an element (char) in the list S, but everytime it said that 02x is not in S
    How to declare char target in a manner way? i think its my mistake for this code.
    Thanks.

    ...
  6. Thanks, my mistake lol...

    Thanks, my mistake lol...
  7. Hi , I'm not sure how to proceed next . Can you...

    Hi ,
    I'm not sure how to proceed next . Can you enlighten me?

    Thankss
  8. Hi, I changed a litte bit, but it doesnt work...

    Hi,
    I changed a litte bit, but it doesnt work for me ...still only found the first element...



    bool Search(char *a, int size, char *which) // Search element
    {

    Ptr b= a;
    int flag =0;
  9. Help on seaching element in array using poitner C++

    Hi,


    I have a array string such as a set
    S= {W,P,A,Z}


    I only manage to search the first element which is W , but not for others ( it will say not found if i search for P, for instance),...
Results 1 to 9 of 9