Search:

Type: Posts; User: kapri

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,851

    Hi, I think you should try dividing two...

    Hi,

    I think you should try dividing two Doubles and not Integers. Your array should also be Double.
    If you are trying to do something like

    int a = 1/10;
    the compiler will do 1/10 = (int)...
  2. Replies
    7
    Views
    1,251

    Sorry, I meant code conventions, such as this:...

    Sorry, I meant code conventions, such as this: http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html for Java.

    Thanks for the great answers!
  3. Replies
    7
    Views
    1,251

    C++ style and API

    Hello there,

    Does somebody know if there is a C++ API Documentation like Java's? I've only found creference.com, but many functions ( such as sort(), stable_sort(), or <algorithm> ) aren't there....
  4. Replies
    1
    Views
    795

    I've got now, a not so efficient solution that...

    I've got now, a not so efficient solution that works. You can copy the content of suffix[i][1] to another array temp[asBigAsSuffix], sort temp with stable_sort() and copy the results back. I will...
  5. Replies
    1
    Views
    795

    Sorting a suffixarray

    Hello,

    I've implemented an suffixarray, wich then I sort with bubblesort. To improve it a bit, I'm trying to get the stable_sort() function to work, without success...

    I've read, the...
  6. Replies
    5
    Views
    1,322

    One line before "return 0;" you should write: ...

    One line before "return 0;" you should write:

    System("pause");

    The Console will wait to a second hit of the return key.
  7. Replies
    5
    Views
    1,548

    Argg, no there wasn't a reason to do so. I just...

    Argg, no there wasn't a reason to do so. I just didn't realize that >> reads full words :(
    With that it runs wonderfull :)

    Thank you really much for the help! I was stuck there for a while.
  8. Replies
    5
    Views
    1,548

    I tried doing it so, but for : while(ch =...

    I tried doing it so, but for :



    while(ch = getc( fptr )) // !inputFile.eof();
    {
    std::cout << ch;
    }
  9. Replies
    5
    Views
    1,548

    Reading a File and returning single words

    Hello everybody,

    My goal with this programm is to implement a function that reads a file with text, and returns successively single words, that can be handled by another function.

    One of the...
  10. Replies
    5
    Views
    1,198

    No, I haven't learned operator overloading yet....

    No, I haven't learned operator overloading yet. But thanks for the point, I didn't know that.

    By the way, wich book do you read? I'm reading "The C++ Primer" from Stanley B. Lippman (although...
  11. Replies
    5
    Views
    1,198

    Thank you very much for the rapid and detailed...

    Thank you very much for the rapid and detailed explanation, it helped a lot!
  12. Replies
    5
    Views
    1,198

    String and Pointer to a String

    Hi,

    as I compile the following code, I dont get an error during compilation, but during execution.

    If I leave the string pointer "char *str1" uncommented, it runs fine.
    My question is: why...
Results 1 to 12 of 13