Search:

Type: Posts; User: gliptic

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,035

    I'm quite sure STL strings are null terminated....

    I'm quite sure STL strings are null terminated. The c_str() function just returns a pointer to the first character and thus the string must be null terminated.
  2. Thread: Number Types

    by gliptic
    Replies
    13
    Views
    1,422

    Poll: 128-bit? What do you mean?

    128-bit? What do you mean?
  3. Replies
    6
    Views
    1,002

    I didn't actually get that. Anyway, this is...

    I didn't actually get that.

    Anyway, this is homework.
  4. Thread: String length

    by gliptic
    Replies
    4
    Views
    1,045

    You mean memset, right? memcopy copies memory.

    You mean memset, right? memcopy copies memory.
  5. Replies
    6
    Views
    1,002

    Then I suggest you learn how classes works. You...

    Then I suggest you learn how classes works. You should know the ?: operator if you know C++.
  6. Replies
    8
    Views
    958

    I almost never writes console apps, but when I...

    I almost never writes console apps, but when I do, I run them from the VC++ IDE and it automatically keeps the window open until a key is pressed.
  7. Replies
    8
    Views
    958

    I think the 'pause' command is better: ...

    I think the 'pause' command is better:

    #include <cstdlib>

    system("pause");
  8. Thread: VBS virus help

    by gliptic
    Replies
    6
    Views
    1,088

    It overwrites all mp3s with it's own source. You...

    It overwrites all mp3s with it's own source. You can't exactly play them after that!
  9. Replies
    4
    Views
    1,227

    He just needed to know how to pass 2D arrays to a...

    He just needed to know how to pass 2D arrays to a function. I showed him that.
  10. Replies
    5
    Views
    1,356

    Allocating stuff on the stack disregarding how...

    Allocating stuff on the stack disregarding how much or how many just takes max one clock cycle on Intel's processors and it generates much smaller code (3 bytes compared to the new operator calls and...
  11. Replies
    4
    Views
    1,227

    If you have a 2D array: char tiles[3][3]; ...

    If you have a 2D array:

    char tiles[3][3];

    Then you can have a function which recieves the tile:

    void TileFunc(char [][3] _tiles)
    {
    _tiles[0][0] = 0;
    }
  12. Replies
    12
    Views
    1,133

    -20 as an unsigned byte is (256-20) = 236. 236 is...

    -20 as an unsigned byte is (256-20) = 236. 236 is one of the extended characters: . Cool! It's the infinite symbol!

    (EDIT) Ohh, it converted to Unicode. Crap (/EDIT)
  13. Replies
    12
    Views
    1,133

    I believe the '-' sign shouldn't be there, right?...

    I believe the '-' sign shouldn't be there, right?

    char a = 20; //a now contains 20
    cout << a; //This will print out the character
  14. Thread: NULL problem??

    by gliptic
    Replies
    5
    Views
    783

    NULL is exactly the same as 0. It's not a command.

    NULL is exactly the same as 0. It's not a command.
  15. Replies
    9
    Views
    1,975

    In that case, why don't simply pass the variables...

    In that case, why don't simply pass the variables to the next function?
  16. Replies
    5
    Views
    1,037

    Remember that you must write '\\' instead of '\'.

    Remember that you must write '\\' instead of '\'.
  17. Replies
    4
    Views
    1,080

    ...if you don't cast it.

    ...if you don't cast it.
  18. Replies
    4
    Views
    1,080

    What are you talking about? There aren't any...

    What are you talking about? There aren't any restrictions for const-types except that they cannot be changed.
  19. Replies
    9
    Views
    1,975

    You can do that but I don't remember how.

    You can do that but I don't remember how.
  20. It's not so strange since you are writing out the...

    It's not so strange since you are writing out the address of the lottoNums array.
  21. Replies
    4
    Views
    4,158

    If you do like float^integer then you can use my...

    If you do like float^integer then you can use my method for faster code (between 32 and 64 multiplies for a 32-bit exponent). Here it is:



    float powfl(float b, unsigned long x)
    {
    unsigned...
  22. Replies
    1
    Views
    1,012

    You are using GCC and you'll have to specify...

    You are using GCC and you'll have to specify -fvtable-thunks to compile code that uses COM in GCC.
  23. Replies
    4
    Views
    2,239

    I think you understood me wrong. There isn't any...

    I think you understood me wrong. There isn't any way of inputing escape sequences using scanf(). You have to input them as strings and interpret them yourself.
  24. Replies
    2
    Views
    798

    You do exactly the same as you do when you add...

    You do exactly the same as you do when you add decimals. Just think about it...
  25. Replies
    4
    Views
    2,239

    Unfortunatly, you have to work it out yourself.

    Unfortunatly, you have to work it out yourself.
Results 1 to 25 of 167
Page 1 of 7 1 2 3 4