Search:

Type: Posts; User: kcfung

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,604

    Permutation of characters

    can anyone suggest some method to show all the permutation of a set of characters 1)recursively, and
    2)non-recursively but using stack operation

    and i can't use any pre-set function of C++
  2. Replies
    5
    Views
    3,484

    stdio.h and iostream.h

    can anyone tell me what the main difference of these two programs is?
    when i am trying the ACM problem 100, the first one is accepted but the second one is wrong.
    and can you also tell me the...
  3. Replies
    2
    Views
    1,243

    how to read numbers in a better way?

    In case of i don't know how many double numbers the users will input, can any one suggest a good way for me to read the input numbers?
    i need to write a program to store a Matrix with dimentions...
  4. Thread: Acyclic

    by kcfung
    Replies
    6
    Views
    1,291

    I don't think so, i am only not allowed to...

    I don't think so, i am only not allowed to allocate memory proportional to the list size and i even don't know the list size, and i can't modify the list , that is all
  5. Thread: Acyclic

    by kcfung
    Replies
    6
    Views
    1,291

    Thank you for your advise and i have make it. the...

    Thank you for your advise and i have make it. the assignment need me to do this task by two different methods, are there any other method you can suggest?
  6. Thread: Acyclic

    by kcfung
    Replies
    6
    Views
    1,291

    thanks but i am not allow to allocate memory...

    thanks
    but i am not allow to allocate memory proportional to the list size, so i may not use that algorithm.
  7. Thread: Acyclic

    by kcfung
    Replies
    6
    Views
    1,291

    Acyclic

    i need write a program to check if a list is acyclic, which means that a travel from any node in the list must not come back to the node itself.
    a node is a struct type defined like that

    struct...
Results 1 to 7 of 7