Search:

Type: Posts; User: xiaohuai

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,648

    how do you do it in c++? can you give me an...

    how do you do it in c++? can you give me an example: like get the start time and the end time, and then get the total elapsed time.
  2. Replies
    4
    Views
    1,648

    how to make a program stop after a while

    how do i make a segment of program stop after a while, say 30 seconds and give a variable whatever it gets so far?

    thanks in advance.
  3. Thread: efficiency

    by xiaohuai
    Replies
    3
    Views
    1,073

    efficiency

    i know this is no c++ question, can any one tel me:
    in efficiency class is log2^n the same and log3^n or logx^n, because we can change base right?

    thanks in advance .
  4. Replies
    17
    Views
    3,203

    try this: int num = -1;

    try this: int num = -1;
  5. Replies
    17
    Views
    3,203

    i guess the character is never read, so it's...

    i guess the character is never read, so it's still there. and the scanf is trying to read it but fails, so it keeps looping without getting an input from you.
    try to use a do while loop as...
Results 1 to 5 of 5