Search:

Type: Posts; User: Osaou

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,021

    template class Matrix{...

    template <class Tm, int M, int N>
    class Matrix{
    ...

    template <int Mm, int Nm>
    Matrix<Tm, M, Nm> operator *(Matrix<Tm, Mm, Nm>& m);

    template <int Mm, int Nm>
    Matrix<Tm, M, Nm>...
  2. Objects that are declared as const can only call...

    Objects that are declared as const can only call methods that are declared const as well.
    So, objects of your List class that are const...


    const List myList;

    ...can for example call Empty()...
  3. Remove() isn't declared as a const method, which...

    Remove() isn't declared as a const method, which makes it illegal for Clear() (which is declared as const) to call it.
    My advice would be to completely remove the const-ness of Clear()... it doesn't...
  4. Replies
    10
    Views
    1,558

    Code or it didn't happen.

    Code or it didn't happen.
  5. Thread: Chai 3D

    by Osaou
    Replies
    5
    Views
    2,308

    They never cease to amuse...

    They never cease to amuse...
  6. Replies
    6
    Views
    947

    Yeah, I checked the vector file locally, and...

    Yeah, I checked the vector file locally, and later the standard and deduced this.
    Thanks for the help, man. =)
  7. Replies
    6
    Views
    947

    Heh, I edited my code to prefix size_type with...

    Heh, I edited my code to prefix size_type with "std::", and now it says "'size_type' : is not a member of 'std'"... =S
    Yes, <string> is included.
  8. Replies
    6
    Views
    947

    Hm... so is required for size_type? But...

    Hm... so <string> is required for size_type? But according to cppreference.com the vector class has a capacity constructor taking a size_type argument...

    Anyway, I tried including <string> but...
  9. Thread: System commands

    by Osaou
    Replies
    3
    Views
    1,017

    First result on google:...

    First result on google: http://www.computerhope.com/msdos.htm
  10. Replies
    6
    Views
    947

    Creating a DLL, compilation problem

    Right, I'm trying to build a DLL using VSC++ 2005. I get numerous compilation errors, the first being "type 'int' unexpected", continuing with similarities such as "unexpected tokens preceding ';'"....
  11. Thread: an atoi replacor

    by Osaou
    Replies
    10
    Views
    1,280

    I really don't understand why you're allocating...

    I really don't understand why you're allocating memory on the heap for those local variables... and I believe the second function should maybe be called "ATOI" instead, eh?
    And yeah, you're not...
  12. Replies
    14
    Views
    1,098

    So... what exactly is your problem?

    So... what exactly is your problem?
  13. Replies
    8
    Views
    1,961

    It's definitely Not bad practice... That doesn't...

    It's definitely Not bad practice...
    That doesn't mean you should use it when it isn't necessary, however. I mean, it doesn't hurt, but it can lead to code clogging etc...
  14. Replies
    14
    Views
    1,873

    Because you beat me to it.

    Because you beat me to it.
  15. Replies
    13
    Views
    10,886

    Amagad... , then ... And the...

    Amagad... <iostream>, then <string.h>... And the mess...
    This book belong with the bible, in a dumpster.
  16. Replies
    13
    Views
    2,124

    Ugliest fella in the park, but he roars: ...

    Ugliest fella in the park, but he roars:



    struct Header{
    union{
    struct{
    __int32 size;
    __int32 handle;
    };
  17. Replies
    16
    Views
    3,319

    Mario summed it up pretty nicely, albeit with a...

    Mario summed it up pretty nicely, albeit with a rather ugly convention... But hey, all conventions that aren't exactly like mine are ugly, right?
    (Edit: Sorry Mario, don't take it personally)
    ...
  18. Replies
    5
    Views
    3,220

    School assignments + lazy pupil = bad valibhav

    School assignments + lazy pupil = bad valibhav
  19. Replies
    5
    Views
    1,308

    Chaplin> Random question, is it possible to call...

    Chaplin> Random question, is it possible to call delete on a modified pointer like this?

    A better question is "how does delete/free() know how much memory to free when being called with a...
  20. Replies
    10
    Views
    1,709

    That's because in initialize() you allocate...

    That's because in initialize() you allocate memory for one array of strings, fill it with drink names, and then in menu() you allocate memory for another array and print those strings...

    Try...
  21. Replies
    8
    Views
    3,059

    Bitwise "extraction" (binary AND): char bits...

    Bitwise "extraction" (binary AND):


    char bits = 0xFF; // bits = 1111 1111

    if (bits & 0xF0){ // extracts the four bits in the command part
    ...
    }
  22. Replies
    10
    Views
    5,598

    siavoshkc> Why we should use C headers by a...

    siavoshkc> Why we should use C headers by a wrapper, instead of some headers with same (or even better) functionality written in C++ language?

    I honestly don't understand you're asking here.

    ...
  23. Thread: Link List

    by Osaou
    Replies
    59
    Views
    4,849

    Hm... Let's get one thing straight here. A linked...

    Hm... Let's get one thing straight here. A linked list have nothing to do with the order in which nodes are placed and/or taken off... In other words, it doesn't matter if it's LIFO, FIFO or random...
  24. Replies
    16
    Views
    3,655

    My hunch is Bubba use DirectX... ^^ And yes, it...

    My hunch is Bubba use DirectX... ^^
    And yes, it certainly looks like it could be the near plane that's pulling some prank.
  25. Replies
    25
    Views
    2,902

    And yeah, don't forget to take into account the...

    And yeah, don't forget to take into account the borrowing when subtracting.
Results 1 to 25 of 70
Page 1 of 3 1 2 3