Search:

Type: Posts; User: Spidey

Page 1 of 12 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    1,204

    Its used to skip data -> scanf - C++ Reference...

    Its used to skip data -> scanf - C++ Reference

    Use Code Tags
  2. Replies
    4
    Views
    1,249

    I'm not sure what is wrong, maybe because you are...

    I'm not sure what is wrong, maybe because you are modifying the iterator while traversing it ? but I would just do it like this ->



    int len = s.length();
    for(int i = 0; i < len; ++i)...
  3. Replies
    2
    Views
    2,422

    Well, still no luck. I've added a temporary hack...

    Well, still no luck. I've added a temporary hack to fix this issue but I still can't read a string. Any Ideas ?
  4. Replies
    10
    Views
    5,166

    You an make an array of function pointers, each...

    You an make an array of function pointers, each pointing to a function of a similar signature. eg



    typedef void (*voidFunc) (void);

    void f0();
    void f1();
    ...
    void f9();
  5. Replies
    2
    Views
    2,422

    PythonC reading string from PyDict

    Hi,

    I'm using python to set up a rendering engine. The settings are stored in the script file as dictionary objects.

    eg:



    RenderInfo = {};
    RenderInfo['Title'] = "Simple Python...
  6. Replies
    3
    Views
    3,447

    Yes, that fixed it. Thanks!

    Yes, that fixed it. Thanks!
  7. Replies
    3
    Views
    3,447

    Visual Studio 10 - Luabind - Link Error2019

    Hi,

    I just ported an app to visual studio 10. The project embeds lua and uses luabind for added facilities. The problem is occurring when trying to link the luabind library with the project.
    ...
  8. Replies
    5
    Views
    1,154

    Yep, you need to flush the input buffer. I...

    Yep, you need to flush the input buffer.
    I usually just use



    rewind(stdin);


    but here are better ways.
  9. Replies
    4
    Views
    2,231

    oops! My Bad, Thats what I meant.

    oops! My Bad, Thats what I meant.
  10. Replies
    4
    Views
    2,231

    Yes, you can use a pointer on pretty much...

    Yes, you can use a pointer on pretty much anything that has a memory address.

    Your code has a lot of mistakes, layer_nodes is a pointer to neural node, and you are treating it as a 2D array, which...
  11. Replies
    6
    Views
    1,118

    that syntax only works with a typedef, and has...

    that syntax only works with a typedef, and has nothing to do with it.
    Its most likely what magos said.
  12. Replies
    3
    Views
    10,555

    it worked fine for me on visual studio except for...

    it worked fine for me on visual studio except for this line -



    printf('\n");


    which should be
  13. Replies
    4
    Views
    1,751

    And what exactly is the error ?

    And what exactly is the error ?
  14. Replies
    3
    Views
    1,513

    Which one ? could you be more specific ? also...

    Which one ? could you be more specific ? also based on the code you provided I would assume that its because your DrawBoard function has an uppercase B whereas in main your calling it with a...
  15. Replies
    9
    Views
    3,215

    the problem is that rptline is a char[] array and...

    the problem is that rptline is a char[] array and you are trying to assign it a char* , which are not the same.

    Assigning a char* to another only copies the pointers and not the string itself, you...
  16. Yep, The Map Editor...

    Yep, The Map Editor looks impressive!
  17. Replies
    4
    Views
    3,864

    cout

    cout << "Text here" <<endl << endl;
    cin >> input;
    cout << "More text here" << endl;
  18. Replies
    8
    Views
    1,748

    Suppose your vector contains values of type T,...

    Suppose your vector contains values of type T, then the [] operator must return a reference to T and not the Vector class itself.

    what do you get when you use the [] operator with the stl vector ?...
  19. Thread: Playsound

    by Spidey
    Replies
    8
    Views
    4,412

    Stop bumping threads. If you want to ask a...

    Stop bumping threads. If you want to ask a question, post it yourself.
  20. Thread: PlaySound

    by Spidey
    Replies
    16
    Views
    13,718

    Make sure you are not creating a windows project....

    Make sure you are not creating a windows project. Create a console/empty project and your code will work.
  21. Replies
    4
    Views
    2,045

    By down do you mean left or right ? This will...

    By down do you mean left or right ?

    This will shift left and overwrite the first element -

    eg:

    0 1 2 3
    ^
    1 1 2 3
    ^
  22. Replies
    5
    Views
    1,055

    For that you'll need two speed variables speedX...

    For that you'll need two speed variables speedX and speedY, or perhaps a vector with two components.

    But most of the better implementations of pong use something more than that. You could for...
  23. Replies
    4
    Views
    1,259

    Lick it!...

    Lick it!
  24. Replies
    3
    Views
    2,875

    sizeof() doesnt work on an array inside a...

    sizeof() doesnt work on an array inside a function as they are passed as a pointer. So, you will always get 4 bytes which is the size of a pointer.
    To get the sizeof an array where it is declared,...
  25. Replies
    34
    Views
    5,563

    Ahh, good luck then.

    Ahh, good luck then.
Results 1 to 25 of 286
Page 1 of 12 1 2 3 4