Can you tell me why the values cout-ed were all ones (1) if I misused the p->getX() and p->getX ?
I don't understand how the compiler will check such statements since there are no errors but only warnings of integral size mismatch instead...
Point *p=new Point(12.0,36.3)...
Ok, I've been programming with C on and off for a while but I decided to take a C++ class to learn something new. We finally got to classes, and strings which are plaguing me to no end. Here's the problem, I have to write at program which creates a blank person a compile time. The software user...
help On C++, recursive function
Hello.
I need help... does anyone know /where can I get the code for the cocktail shaker algorithm for C++ in which it contains the simplest code?
How would I make a graphics sort out of the elementary sorting algorithms? Are there sources w/c show...
Maybe someone can help find what I've done wrong.
I'm using Windows XP, 2.3GHz, 80GB, 256MB, Student Version of MS Visual C++ .NET, 2003 version
I've opened a file up for input, which works fine, but as soon as I try to pull information from the file, it gives exception errors in memory...
I was fiddling around with C++ and iterations and I found an algorithm for computing ln(x).
n = any number, the higher, the better the approximation
ln_x = 0;
divisor = 10^n;
while ( divisor <= x*10^n ) // Where x is the ln(x) you want to find.
{
ln_x += 1 / divisor...
I was working on a project work on Electrical Circuit Analysis with c++(bgi mode) and now I'm having problems with the mouse drivers and the connecting cables .
Would anyone help me with this?
I am playing around with opengl using C++, and think it is awesome.
But I have a question. I was looking at a tutorial on multitexturing, and when I ran the program it told me that my version of opengl doesn't support it. How do I determine which version of opengl I have, and how do I go...
Hi guys.
I was wondering if anyone could help me with this code. I have sucessfully created a program in visual basic that can run a runge-kutta method. However I want to create one in c++, maybe eventually turn it into a .dll when i work out how to create and use them. :smile:
Here is...
I am a student of computer science, and naturally was shocked when, during my recent trip to a bookstore, was told that C++ in not really object oriented. The guy at the store referred me to a language called Smalltalk, which is supposedly the true object oriented language. I assume that most...