Search:

Type: Posts; User: c++0x

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Casting

    by c++0x
    Replies
    9
    Views
    1,755

    ok so to get 01777777777777777777777 I need 2 do...

    ok so to get 01777777777777777777777 I need 2 do uint64_t x = (uint64_t)-1?
  2. Thread: Casting

    by c++0x
    Replies
    9
    Views
    1,755

    Ok, so what happens here? int64_t x =...

    Ok, so what happens here?



    int64_t x = (unsigned)-1;


    On a 32-bit system? x contains 01777777777777777777777 or 037777777777?
  3. Thread: Casting

    by c++0x
    Replies
    9
    Views
    1,755

    Ok, but is the truncation because of the return...

    Ok, but is the truncation because of the return type or because of the lack of specifying what type is signed?
  4. Replies
    10
    Views
    2,341

    Well.... #include #include...

    Well....



    #include <iostream>
    #include <new>

    int main( int argc, char** argv )
    {
    try
  5. Thread: Stupid question

    by c++0x
    Replies
    7
    Views
    7,704

    Stupid question

    I do not speak english very well and I was wondering if you guys thing that if I wear green socks today at work I will look more english speaking or if I am smarter just to stick with my normal tan...
  6. Thread: Casting

    by c++0x
    Replies
    9
    Views
    1,755

    Casting

    Ok, so someone please explain the following to me.



    #include <stdint.h>

    int64_t a = 0;
    uint32_t b = 1;

    int32_t main(void)
  7. Replies
    40
    Views
    3,374

    U r so rite anon you are so much more helpful...

    U r so rite anon you are so much more helpful than anyone else who posts here! Thank you so much.
  8. Replies
    10
    Views
    2,341

    I fuxed the other code with the currection by...

    I fuxed the other code with the currection by CormedBee.



    #include <iostream>
    #include <stdlib.h>
    using namespace std ;

    int main( int argc, char* argv[] )
    {
  9. Replies
    40
    Views
    3,374

    They always force things I do not understand on...

    They always force things I do not understand on me. Lyk look at std::iterator. What is that for anyway? And all of the algorithm header is greek to me.
  10. Replies
    40
    Views
    3,374

    The end user of compilers is the developer,...

    The end user of compilers is the developer, correct? But I suppose you are right. That is what makes us the end users and not the developers.
  11. Replies
    10
    Views
    2,341

    #include #include using...

    #include <iostream>
    #include <stdlib.h>
    using namespace std ;

    void main( int argc, char* argv[] )
    {
    int marks[5] ;
    int total = 0 ;

    for ( int i = 0; i < 5 && i < argc; i++)
  12. Thread: Newbie Question1

    by c++0x
    Replies
    5
    Views
    1,080

    Give you a block of memory? calloc() and malloc()...

    Give you a block of memory? calloc() and malloc() (stdlib.h)
    Tells you when a character is not a space? isalnum() (ctype.h)
    Also you could simply say !isspace() (ctype.h)
  13. Replies
    40
    Views
    3,374

    Which is why stuff from Boost should stay in...

    Which is why stuff from Boost should stay in boost and stuff from the STL should stay in the STL. Then you have the right to choose whether or not to use it instead of it being thrust upon you.
  14. Replies
    40
    Views
    3,374

    One of the biggest problems with committees is...

    One of the biggest problems with committees is that they infringe upon the freedom of the end user to decide what stays and what goes. Its rather elitist, do you not concur?
  15. Replies
    18
    Views
    7,321

    If it were not limited, it would not require the...

    If it were not limited, it would not require the user to input a "guess."
  16. Thread: midi matrix

    by c++0x
    Replies
    2
    Views
    1,975

    Wut libwewy duz dis ooze?

    Wut libwewy duz dis ooze?
  17. Replies
    40
    Views
    3,374

    Interesting. I wonder if any of the members here...

    Interesting. I wonder if any of the members here are part of the standards committee. Then we could know which things will make the cut before the rest of the world :)
  18. Replies
    40
    Views
    3,374

    I don't see how that is a hugely beneficial...

    I don't see how that is a hugely beneficial addition to the language, but I am sure someone will argue that it is. It opens the door to "We need to have a function that returns 16 values!"
  19. Replies
    40
    Views
    3,374

    My wife made me go to tuples counseling once. I...

    My wife made me go to tuples counseling once. I did not like it. I do not fully understand what a smart pointer is for. Will they completely remove the ability to use normal pointers in C++!?
  20. Replies
    40
    Views
    3,374

    How much Boost stuff will be added into the STL?

    How much Boost stuff will be added into the STL?
  21. Replies
    40
    Views
    3,374

    Ok so in other words it is something that someone...

    Ok so in other words it is something that someone should probably not learn unless they want to teach C++, right?
  22. struct stacker { long a struct stacker *p;...

    struct stacker {
    long a
    struct stacker *p;
    } stack = {0,0};

    void push(long a)
    {
    struct stacker **p;
    for(p = &stack->p; *p; *p = (*p)->p) ;
    *p = malloc(sizeof(**p));
  23. Replies
    40
    Views
    3,374

    kestion about boost

    What is boost for?
  24. Thread: Noob question

    by c++0x
    Replies
    19
    Views
    2,640

    I think what he says is a book with othur named...

    I think what he says is a book with othur named Herbie rote a book by the name of "Teach Yourself C"
  25. Replies
    4
    Views
    1,118

    My idea may not work if the class is polymorphic,...

    My idea may not work if the class is polymorphic, which it may be.
Results 1 to 25 of 89
Page 1 of 4 1 2 3 4