Search:

Type: Posts; User: sugarfree

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. C# books and programming in Linux environments

    Hi guys,

    I have to learn some C# and .NET, are there any reference books? Also, is it possible and reliable to program C# and VB.NET in Linux? I'm trying to avoid installing Windows just for C#.
    ...
  2. Replies
    8
    Views
    2,089

    This should be fun. I'm interested.

    This should be fun. I'm interested.
  3. Replies
    9
    Views
    1,797

    In which projects are you involved?

    I'm curious to know if everyone is working on some other projects besides the normal work.
  4. Replies
    3
    Views
    921

    [8] References, C++ FAQ Lite...

    [8] References, C++ FAQ Lite

    This might help.
  5. Replies
    6
    Views
    4,157

    char is one byte, so it cannot have the value of...

    char is one byte, so it cannot have the value of 280. The compiler should have complained with a warning.

    Anyway, it goes to 24, because 280 is 100011000 now truncating this to one byte we have...
  6. Replies
    6
    Views
    4,157

    You're missing the break after each case. ...

    You're missing the break after each case.


    switch(c){
    printf("Start\t");
    case 280:printf("David Beckham\t");
    break;
    case 24:...
  7. Replies
    16
    Views
    2,125

    fp=fopen("data.bin", "rb"); rb means open file...

    fp=fopen("data.bin", "rb");

    rb means open file for reading but you want to write to it, so...
  8. Replies
    7
    Views
    1,044

    Oh, yeah I missed that. If I understood your...

    Oh, yeah I missed that. If I understood your logic correctly if a cell group exists you're loading from a file else you just initialize everything in new_game.

    When does your issue happens? When...
  9. Replies
    7
    Views
    1,044

    Where is the constructor? You're not initializing...

    Where is the constructor? You're not initializing cell_energy, nor any of the other variables. They will take what happens to be in memory.
  10. Replies
    5
    Views
    1,099

    As far as I understand you're trying to insert a...

    As far as I understand you're trying to insert a pair of type <int, string> and it works fine for the first call of ShowMeMap but the second call expects <int, list<string> > however you're still...
  11. Replies
    3
    Views
    1,464

    Thanks! I got it now.

    Thanks! I got it now.
  12. Replies
    3
    Views
    1,464

    Polymorphism and Composition

    Hi all, the code below doesn't do what I would expect and I'm having some problems understanding why. I was expecting to see "Bar method" as output however it gives "Foo method", also if I use a...
  13. Replies
    9
    Views
    8,107

    Thanks for the replies guys. What I don't...

    Thanks for the replies guys. What I don't understand is the relation from the conversion in wikipedia and the ones in the book, because in the latter they make reference to object-to-inertial and...
  14. Replies
    9
    Views
    8,107

    Euler Angles to Quaternions

    In 3d math primer they have two ways of converting euler angles to a quaternion, depending if we want a inertial-to-object or object-to-inertial quaternion. However in wikipedia they use a different...
  15. Thread: local axis

    by sugarfree
    Replies
    2
    Views
    1,765

    What I would like is to rotate the cube[around...

    What I would like is to rotate the cube[around its center] and not the world axis.
  16. Thread: local axis

    by sugarfree
    Replies
    2
    Views
    1,765

    rotation issue

    I'm building a cube using other smaller cubes and its being constructed like this:

    a = world axis
    c = cube

    a c c
    c c c
    c c c

    Now I would like to move the axis to the center like...
  17. Replies
    3
    Views
    7,959

    Oh I see, the forward declaration allows Foo to...

    Oh I see, the forward declaration allows Foo to use pointer or references to Bar but it doesn't allow any use of the Bar class members because they haven't been defined yet.

    Edit: I hadn't seen...
  18. Replies
    3
    Views
    7,959

    forward declaration error?

    class Bar;

    class Foo
    {
    public:
    Foo() { p_Bar = NULL;}
    ~Foo() {}

    void setBar(Bar *b) { p_Bar = b;}
    void doSomething()
  19. Replies
    12
    Views
    1,661

    Ooh. How didn't I think of that. Maybe its time...

    Ooh. How didn't I think of that. Maybe its time for a break. Thank you laserlight.
  20. Replies
    12
    Views
    1,661

    Copy vector [need advice]

    Hi all,

    Is there a better way of copying the lines of 4 two dimension vectors?

    The idea is to copy the contents of line X from v1 to v2, v2 to v3, v3 to v4 and v4 to v1.

    I'm using to two...
  21. Well, thanks for the replies whiteflags and...

    Well, thanks for the replies whiteflags and laserlight. Regarding the question maybe I didn't understand it correctly, because I can't find any answer/hints to it.
  22. Most of what you said I already know, but I was...

    Most of what you said I already know, but I was asked that question and couldn't really find a case and still can't. Maybe it was a trick question.
  23. question about copy constructor and assignment operator

    Hi all,

    In which cases does the compiler forces us to have a copy constructor and an assignment operator? I mean, when we have to define both explicitly.

    Thanks in advance
  24. Replies
    2
    Views
    1,405

    declaration and definition

    Is there a performance penalty if I do function prototyping for non-member functions?




    ( code above, classes, etc )

    // Some comments
    void
    Foo(int &v); // declare
  25. Replies
    5
    Views
    1,192

    Yes, you're correct, it should be passed by...

    Yes, you're correct, it should be passed by reference to avoid unnecessary copying.

    I will look into std::transform, thanks!
Results 1 to 25 of 47
Page 1 of 2 1 2