Search:

Type: Posts; User: NeonBlack

Page 1 of 18 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: Open file?

    by NeonBlack
    Replies
    6
    Views
    1,304

    You cannot call open() with no parameters. Read...

    You cannot call open() with no parameters. Read the documentation and see that you need to supply a file name and optionally, the file mode.
    The parenthesis around the function call do nothing.

    ...
  2. Replies
    4
    Views
    2,173

    Generally, you would do something like ...

    Generally, you would do something like


    struct Row
    {
    std::string data;
    float price;
    };
    std::vector<Row> rows;
  3. Replies
    14
    Views
    5,012

    Read BMP file format - Wikipedia, the free...

    Read BMP file format - Wikipedia, the free encyclopedia . Bitmaps store pixels as either color table indices, or RGBA bytes, which makes working with them fairly straightforward.
  4. Replies
    5
    Views
    1,005

    Not only are the multiple calls to getchar()...

    Not only are the multiple calls to getchar() unneeded, but they could potentially cause problems. You should not mix iostream and stdio functions. Use std::cin.get() instead.
  5. Replies
    21
    Views
    15,317

    I don't think the proxy will help you out, unless...

    I don't think the proxy will help you out, unless you're fluent in another language. Right now, the top of the wiki pages say "Please note: In less than 14 hours, the English Wikipedia will be...
  6. Replies
    3
    Views
    1,484

    Depending on what type your ostream object is, it...

    Depending on what type your ostream object is, it *probably* has an internal buffer, which is *probably* allocated on the heap. In the case of cout, yes there is a buffer somewhere, and each call to...
  7. Replies
    6
    Views
    2,250

    You should have 104 card objects. Put them into...

    You should have 104 card objects. Put them into one list, in random order. When dealing, you take from the top of the deck (Just like real life).

    Come back when you have the code to do this.
  8. You're not actually sorting here, just...

    You're not actually sorting here, just partitioning. You can partition in place by imagining your array is divided into 3 sections: Evens at the beginning, odds at the end, and unknown in the middle....
  9. Replies
    4
    Views
    645

    Try: '\'' Escape Sequences...

    Try:

    '\''

    Escape Sequences
  10. Replies
    1
    Views
    1,264

    Dictionary colorsCopy = new...

    Dictionary<string, int> colorsCopy = new Dictionary<string, int>(colors2);



    colors copy is not a valid identifier name.
  11. Replies
    2
    Views
    1,620

    You need to write your constructor: Fraction...

    You need to write your constructor:


    Fraction (int numer = 1, int denom = 1);
  12. Each time you open and close your file, you...

    Each time you open and close your file, you overwrite its previous contents. You could open it in append mode, but what you should do is open it and keep it open until you've done all of your...
  13. Replies
    4
    Views
    1,693

    Thanks for the responses, guys. I've seen pointer...

    Thanks for the responses, guys. I've seen pointer to member before, but I have never used it or needed it. I'm not even sure what you would need it for. I'm going to learn a little bit about it today.
  14. Replies
    4
    Views
    1,693

    Templates: What does this do?

    struct
    {
    template <class T, typename U>
    operator U T::* () const { return static_cast<U T::*> (0); }
    } null_ptr_to_member;


    I'm confused by the template in this code, which I found...
  15. Replies
    6
    Views
    1,713

    I understand that you can use VB.NET in recent...

    I understand that you can use VB.NET in recent versions, but the answer is still no.
  16. I think I understand what you mean now. I think...

    I think I understand what you mean now. I think the confusion came about because we have different ideas of what "freemium" means (God, I hate that word). And when you said "asking me to pay for...
  17. I don't see what you have against a freemium card...

    I don't see what you have against a freemium card game. Isn't that pretty much how it works in real life? I thought that comic/card shops hold free tournaments and sell cards. And I don't understand...
  18. Thread: DLLs?

    by NeonBlack
    Replies
    11
    Views
    2,865

    It's called static linking. In my opinion, this...

    It's called static linking. In my opinion, this is the preferable route if you're not going to do a proper installer. If you put the dll in the executable directory, you can run into problems running...
  19. Replies
    5
    Views
    1,097

    I'd say your confusion goes beyond not knowing...

    I'd say your confusion goes beyond not knowing how to call a function.

    Take a closer look at your examples, start small, and work your way up slowly. I'm talking adding 3-4 lines at a time, and...
  20. Replies
    19
    Views
    3,104

    This has always bothered me too. The next best...

    This has always bothered me too. The next best thing to C++ RAII for closing things like database connections and file handles is C#'s IDisposable interface (not a scripting language, but it sounded...
  21. Replies
    5
    Views
    2,241

    This isn't a scripting forum. However, ...

    This isn't a scripting forum.

    However,



    rd /S "c:/program Data/microsoft/windows/DRM"

    should do it.
  22. Replies
    16
    Views
    2,491

    If he thinks Ars is too biased, I don't think...

    If he thinks Ars is too biased, I don't think slashdot is what he's looking for.
  23. Don't worry about it. I'm pretty sure that every...

    Don't worry about it. I'm pretty sure that every university in the civilized world has had broadband since the mid 90's or earlier.
  24. Thread: Make utility

    by NeonBlack
    Replies
    3
    Views
    1,774

    If you really want to use make (Personally, I...

    If you really want to use make (Personally, I think compiling on command line is a good thing to learn to do), it's simple to set up.

    1. Download it from MinGW - Minimalist GNU for Windows -...
  25. Replies
    261
    Views
    38,119

    I'm just pointing out that calculus does not use...

    I'm just pointing out that calculus does not use infintesimals. Newton's original formulation used them, but they were abandoned in favor of limits when calculus was formalized. (Probably for some of...
Results 1 to 25 of 436
Page 1 of 18 1 2 3 4