Search:
Type: Posts; User: SterlingM
Search:
Search took 0.02 seconds.
-
April 12th, 2013, 03:37 PM
I am trying to test collision with convex polyhedra using the SWIFT library. Here are my two shapes:
cube.poly
POLY
8
-
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...
-
November 16th, 2011, 12:49 PM
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 -
...
-
September 28th, 2011, 01:59 PM
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...
-
September 26th, 2011, 03:06 PM
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...
-
September 8th, 2011, 06:07 PM
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...
-
September 8th, 2011, 05:52 PM
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)?
-
September 8th, 2011, 05:22 PM
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...
-
September 1st, 2011, 07:45 PM
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
...
-
August 17th, 2011, 03:59 PM
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,...
-
August 9th, 2011, 12:26 PM
Well, I just did it anyway and there was definitely not large chunks of code added. Its basically the same thing.
-
August 8th, 2011, 01:57 PM
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...
-
August 8th, 2011, 01:38 PM
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....
-
August 8th, 2011, 01:15 PM
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?...
-
July 19th, 2011, 02:59 PM
Trying to use select() again worked for me.
-
July 15th, 2011, 06:22 PM
I am also trying to do it using threads this way -
server -
#define PORT "4950"
#define STDIN 0
-
July 15th, 2011, 05:44 PM
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
...
-
July 15th, 2011, 05:09 PM
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.
-
July 15th, 2011, 05:07 PM
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...
-
June 30th, 2011, 04:37 PM
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...
-
June 15th, 2011, 02:11 PM
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...
-
June 14th, 2011, 06:17 PM
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...
-
The example I went by used it and it worked so I just went with it.
-
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:...
-
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 -
...
|
Click Here to Expand Forum to Full Width
|