Search:

Type: Posts; User: Petike

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    5,056

    Thank you very much. It works!

    Thank you very much. It works!
  2. Replies
    2
    Views
    5,056

    Read numbers from file to std::vector

    Hello,
    how to read all numbers from a file to std::vector?

    I have tried this one:


    ifstream in;
    vector numbers;

    .
  3. Replies
    10
    Views
    22,687

    Once more many thanks for answers.

    Once more many thanks for answers.
  4. Replies
    10
    Views
    22,687

    References: "no object slicing"?

    Wow,
    so that is great, I thought that only in the case of "pointers" (as function arguments) the slicing doesn't occur.

    Thus, if I understand it well, when using the reference technique...

    ...
  5. Replies
    10
    Views
    22,687

    Thanks

    Thanks for answers.
    So the best solution for me is probably what "medievalelks" said:
    "I usually store (smart) pointers to the base in containers, so I use pointers in that case. When passing to a...
  6. Replies
    10
    Views
    22,687

    Polymorphism - "pointers" or "references"?

    Hi,
    I have a little problem about "polymorphism" in c++.

    Just for beginning:
    =================================================
    In "Java" language, there are all the objects (or types) accessed...
  7. Replies
    4
    Views
    5,212

    In other words...

    I would say it in other words.
    Almost always I have downloaded whatever game, application or other software, I have just installed it and then launch it, and it was running ok. And I want to do the...
  8. Replies
    4
    Views
    5,212

    Visual Studio - "Single-EXE" output

    Hi all,
    how can I make in Visual Studio the application which will be stored only in one exe file?
    I don't want the application to require some other resources (some dlls, or other stuff) when it...
  9. Replies
    8
    Views
    4,132

    One another question...

    Hi again,
    I would have another question.
    It should not be too hard to find out the best and the worst case of some algorithm.
    But how can I find out the average case of some algorithm?
    In other...
  10. Replies
    8
    Views
    4,132

    Thanks to both. It is now much clearer to me.

    Thanks to both.
    It is now much clearer to me.
  11. Replies
    8
    Views
    4,132

    Sorting (asymptotic) complexity problem

    Hi all,
    I have some problems with "asymptotic notations". I have already learned the thery about that but there is still something unclear for me "in practice".

    Let me show you some simple...
  12. Replies
    5
    Views
    8,173

    Thanks.

    Thanks.
  13. Replies
    3
    Views
    2,962

    Thanks.

    Thanks.
  14. Replies
    3
    Views
    2,962

    Comments in C: "//" vs. "*/ /*"

    Hi,
    is this type of comment supported in ANSI C:


    printf("Hello World\n"); // Prints "Hello World"

    Because I am not sure if it could be used only in C++.

    Thanks.
  15. Replies
    5
    Views
    8,173

    Underscore prefix

    Hi,
    I have seen a lot that some function arguments use as prefix the "underscore" character. For example:


    void* malloc(size_t _Size);

    It is a common way to declare the function arguments...
  16. Thread: "bool" in C

    by Petike
    Replies
    15
    Views
    236,989

    Just a little question. What is "C99"? I have...

    Just a little question. What is "C99"? I have seen that also in some other posts here, but I have never seen it before? It is some type of compiler?
    By the way, I use "Microsoft Visual Studio 2008".
  17. Thread: "bool" in C

    by Petike
    Replies
    15
    Views
    236,989

    "bool" in C

    Hi,
    I have (unfortunately) found out that C doesn't support the "bool" keyword. So what is the most common (or best) way to use boolean statements in my code?
    I have tried this:


    typedef int...
  18. Replies
    11
    Views
    18,925

    Ohh, thaaaaaank you. I can't believe I didn't...

    Ohh, thaaaaaank you.
    I can't believe I didn't try it before.

    Now it works.

    Thanks master5001
  19. Replies
    11
    Views
    18,925

    Hi master5001, no I don't want to do anything...

    Hi master5001,
    no I don't want to do anything with values, I would like to add to the pointer "pInt" a number for example 1, so that it would point to the address "1 byte" next to pInt and no "4...
  20. Replies
    11
    Views
    18,925

    "Pointer" plus "Number"

    Hi all,
    let's say we have an array of char (thus array of "bytes"):


    char pool[1000];

    and let's say the 1st element of array is stored at address "00000000", the 2nd one at "00000001", the...
  21. Replies
    6
    Views
    4,744

    Thank you all very much for your answers.

    Thank you all very much for your answers.
  22. Replies
    6
    Views
    4,744

    Allocation from "static array"

    Hi all,
    let's say we have a fixed array:


    char pool[10000];

    And now we want to "allocate" (not using "malloc", just take the addresses from this static array) e.g. 5 bytes and save them in...
  23. Replies
    8
    Views
    5,064

    Thanks.

    Thanks.
  24. Replies
    8
    Views
    5,064

    Array of "bytes"

    Hi all,
    I would like to declare an array of "bytes" like that:


    <SOMETHING> pool[10000];

    For example:


    char pool[10000];
  25. Replies
    3
    Views
    3,448

    Thank you both for nice explanation.

    Thank you both for nice explanation.
Results 1 to 25 of 64
Page 1 of 3 1 2 3