Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: SterlingM

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Simple Collision Detection Using SWIFT Library Problem

    I am trying to test collision with convex polyhedra using the SWIFT library. Here are my two shapes:

    cube.poly



    POLY

    8
  2. Replies
    21
    Views
    1,839

    Why start variable names with _?

    I am looking at some C++ code that has many variables that start with underscores. Why? What's the point? I know in Python its a way to keep them private, but I don't understand why we would do that...
  3. Writing to Devantech digital compass over I2C

    I am not sure if this thread fits into this forum, but here is my question...



    I am trying to interface with a Devantech digital compass found here -
    ...
  4. Replies
    12
    Views
    990

    Re: Templates cause slower run-time?

    Thanks to everyone for the helpful replies. I have a question about this though. If you disable the bounds checking, what's the point of using vectors? Just for re-sizing when you push_back if the...
  5. Replies
    12
    Views
    990

    Templates cause slower run-time?

    I have quite a few std::vector<>s right now in my code. I was told that using templates is much slower than just using a pointer for the collection, because the templates get filled in at run-time...
  6. Thread: Double Free

    by SterlingM
    Replies
    3
    Views
    1,391

    Re: Double Free

    Oh and the lines in the trace are -

    #12 ~Node (this=0x8066900, __in_chrg=<value optimized out>) at tree.cpp:13



    Tree::Node::~Node() {}


    #13 ~Tree (this=0x8066900, __in_chrg=<value...
  7. Thread: Double Free

    by SterlingM
    Replies
    3
    Views
    1,391

    Re: Double Free

    I have added a copy constructor and assignment operator overload, but now I get an double free or corruption (fasttop) error. Whats the difference in that and (out)?
  8. Thread: Double Free

    by SterlingM
    Replies
    3
    Views
    1,391

    Double Free

    I am getting a double free error when I run my code and don't know why. The relevant code is just an a* traversal and the double free is happening when I delete my tree. To get the code out of the...
  9. Replies
    1
    Views
    770

    Memory leak on pthread_create

    Whenever I run valgrind on my program, it is telling that I have possibly lost memory wherever I call pthread_create. I have been trying to follow the guidance on
    ...
  10. Replies
    1
    Views
    504

    Finding libraries in Windows

    I am trying to add a target to my makefile to compile the project in windows using MinGW. Whenever I try to compile, it compiles all of the object and then tells me all the libraries cannot be found,...
  11. Re: Porting socket program from Linux to Windows

    Well, I just did it anyway and there was definitely not large chunks of code added. Its basically the same thing.
  12. Replies
    6
    Views
    742

    Re: Comparison between two arrays.

    Just pass the maximo/minimo/average/etc functions the array and do what you do in main. So it would look something like this -



    int maximo(int array[]) {
    int max = array[0]
    for(int...
  13. Replies
    4
    Views
    519

    Re: college assingment..please help

    The point of forums is for help, not for "whole programes". Here are some suggestion on how to get help with your problem from a forum.

    1) Use proper english - this isn't an IM or Facebook status....
  14. Porting socket program from Linux to Windows

    I have a project that uses BSD sockets in linux. I want it to also run in Windows. From what I gathered, I need to have conditional compiling and use Winsocks. Is there any other way I can do this?...
  15. Replies
    3
    Views
    1,095

    Re: Server/client Chat Program

    Trying to use select() again worked for me.
  16. Replies
    3
    Views
    1,095

    Re: Server/client Chat Program

    I am also trying to do it using threads this way -

    server -




    #define PORT "4950"
    #define STDIN 0
  17. Replies
    3
    Views
    2,212

    Re: Max and Min using arrays and pointers

    Like the previous poster said, you are not getting the values that they put in. Once you prompt them with


    cout <<" Enter up to 10 integers"<< endl;


    you should have something like

    ...
  18. Replies
    3
    Views
    1,095

    Re: Server/client Chat Program

    Also, I'm doing this in Ubuntu linux, and just opening one terminal and running the server code and another terminal running the client code.
  19. Replies
    3
    Views
    1,095

    [RESOLVED] Server/client Chat Program

    I am trying to just make a simple chat program for a server and client to talk to each other with no blocking. I want to be able to send a message at any time and have that pop up on the other's...
  20. Replies
    2
    Views
    497

    PThread question

    I am trying to make a small thread example. I want to have a variable and each thread try to increment it and then stop once it gets to a certain point. Whenever the variable is locked, I want some...
  21. Thread: Maze Solving

    by SterlingM
    Replies
    3
    Views
    1,519

    Re: Maze Solving

    I was not aware a std::stack existed. I made my template to 1) better learn how it works and 2) always have one that I knew exactly what was going on. I have used debuggers in the IDE GUIs (setting...
  22. Thread: Maze Solving

    by SterlingM
    Replies
    3
    Views
    1,519

    Maze Solving

    I am trying to make a maze solving program using c++ and a stack. It will get to the end of the maze, but then it cannot trace back its steps. First, here is some code -





    #ifndef...
  23. Replies
    6
    Views
    1,371

    Re: Segmentation Fault in FLTK

    The example I went by used it and it worked so I just went with it.
  24. Replies
    6
    Views
    1,371

    Re: Segmentation Fault in FLTK

    Yes, the void pointer v is null when I enter the function. That is what is causing the segmentation fault (however, I don't know why it would be null). Thank you for the help and replies.

    EDIT:...
  25. Replies
    6
    Views
    1,371

    Segmentation Fault in FLTK

    Hi, I am getting a segmentation fault in my FLTK code. It only happens on my callback function for a Fl_Choice or Fl_Menu_Button. Here is relevant code -

    in the constructor of my window -

    ...
Results 1 to 25 of 57
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center