Hi guys. I try to explain this as best I can. Here is the situation: I have a microprocessor app and programming software for the micro, with identical memory mapping.
In my programming software,...
Type: Posts; User: Link_26
Hi guys. I try to explain this as best I can. Here is the situation: I have a microprocessor app and programming software for the micro, with identical memory mapping.
In my programming software,...
Yeah, except that still doesn't work. In the equation x can be between 0 and 100 (part of my assignment), so the result is usually complex, and I don't know how to handle it.
The complete...
I don't use the compiler (I use ol dev-c++), but when I use glut.h, I have to manually link the library. I couldn't just include the header file.
Also, can't you just go to your compilers...
Hi
I'm having a problem with complex numbers. I have an equation that I must use. However, most of the time the result is complex, and I think I just need the real part. This doesn't work:
...
lol
Anyway, ok, here is some of my code.
My encoder outputting the file size as 4 bytes:
/////////////get file size and send to decoder///////////////////
Hello. I'm having trouble with file io. Hopefully someone can help.
I don't know if anyone here knows much about huffman or arithmetic compression, but basically, you generate a sequence of bits...
Hi. I am trying to implement a huffman binary tree for class. Each node has 3 pointers: left, right, and back to parent. I cannot for the life of me figure out why my code won't work for switching...
Create true AI
I hope you know that the code won't work in many cases.
Because 1535 is never less than 21.
Your program is perfect in every way.
They both work. p[i] = *(p+i)
You might need to use a double pointer. You need to do something like this:
int **p;
p = new int*[n];
for(int i = 0; i < n; i++)
*(p+i) = new int[m];
Someone might be able to tell you...
a<x,y,z> + b<A,B,C> = <ax,ay,az> + <bA,bB,bC> = <ax +bA, ay + bB, az + bC>
err, is that what you wanted?
Is this homework?
Use goto!
The only error I get in the above code is the missing semicolon for the cin.get()
I got a version of "Learn C++ in 21 days" from the library before. If I remember correctly, it was pretty thick and went pretty far. Seemed good to me. It just takes way way longer than 21 days.
Noob question...What atof() function was the program using since the header wasn't included, or why didn't the compiler complain?
And gets() ftw :D
A book from the 80's i think lol. You better get something recent.
Oh...fin and fout are just variable names. Use whatever you want. Its just what my book uses. And fin is of type ifstream, which you use to get input, and fout is of type ofstream, which you use for...
:P
?
You mean my headers?
I thought maybe I read your post wrong.
Anyway...
This is the method I learned, so far.
Use #include <fstream>
Declare variables like
In your source file, you didn't include the opengl header. Without it, i get a bunch of errors too, but with it, your code compiles.
#include <gl/gl.h>
That work?
I use -lglut32
If you have just glut, use -lglut
Is that what you wanted?