At the time of writing this, I didn't much care for standards. It was more of learning. Appreciate the note though. I'm sure anyone that wishes to expand their knowledge on this topic would love...
Type: Posts; User: Divx
At the time of writing this, I didn't much care for standards. It was more of learning. Appreciate the note though. I'm sure anyone that wishes to expand their knowledge on this topic would love...
Something I wrote when I had curiosity with CGI and C/C++...
http://www.digitalkeg.com/downloads/useful/cpp/cpp_cgi.zip
Needs to be compiled on whatever system is supposed to run it. Also,...
"i am only used to writing linked lists so that it actually reverses the data using a stack. any ideas on this?"
First lets straighten out your terminology. A stack and a linked list are two...
I got it. :)
There were a few other 'C++' things in there.
Took out references and am still getting the same 'relative' error.
// Declare NumberTracker //
struct NumberTracker;
// Function pointers for struct NumberTracker //
typedef void (*...
Suppose that would be helpful. :)
--------------------Configuration: MinMax - Win32 Debug--------------------
Compiling...
minmax.c
C:\Projects\School CSCI 223\MinMax\minmax.c(27) : error...
I'm taking a C class for the fun of it. I figured I wanted to learn a little more of the history of the C/C++ language. Anyways I've run into a bit of a compiling problem. I'm using MSVC++6 and...
It's simple, look at this as an "employee - employer" relationship so to speak. Though we all know the usage of += works great and ISN'T bad form, your teacher (ie: employer) doesn't want it that...
wouldn't it be better to ask your teacher?
Every Deitel book I've read/glanced through I've found to be inadequate in material coverage and quality. Perhaps they wised up and fixed their crappy books with their newer editions.
Since I...
Couple things, first get a good book (my suggestion is O'Reillys Practical C++ Programming)...even if you don't have the money, save up a bit or see if your parents would be willing to buy you the...
windows programming and hungarian notation...is that supposed to be something odd to see together? When dealing with windows code you should know hungarian notation...even if it does spank.
Deitel books are about the most worthless books you could ever buy. Whoever in the CSUF computer science department decided Deitel & Deitel textbooks are the best choice should be shot.
If you...
ifstream fin("graphic.png", ios::in | ios::binary);
ofstream fout ("graphic2.png", ios::out | ios::binary);
*edit* whoops, it appears you have figured out the flags...oh well. ;)
First, lose the barrier between the datatype you created (rectangle) and any other datatype. They are all just datatypes and pointers work the same for all of them.
int *intPtr = new int;
char...
sizeof () tells how you the byte size of a data type.
MrWizard posted what is needed.
You are correct sir!
How about you do the next best thing...play any wav you want.
include the header file "mmsystem.h" and include the static library "winmm.lib" to your project.
Here's an example of using the...
BURN Deitel & Deitel books...worst textbooks on the face of the planet.
O'Reilly books are superb, though I'd call it a beginners to intermediate book, the O'Reilly title "Practical C++" is an...
"init()" - ya, it's pretty much universally known as an abreviation for ...*drum roll*... initialize.
a void pointer really isn't anything and could be anything. Void pointers are really awesome...
Sure, look up "srand" to 'seed' the random number generator first...so you actually may get randomness. Secondly after seeding the random number generator, you'll be using "rand" to get your random...
Don't like windows because it's ugly. None of this iostream crap. So you're the type of person who likes to completely reinvent the wheel 10^x times over instead of building ontop of what someone...
if (KEY_DOWN(vk_code))
{
while (!KEY_UP(vk_code))
{
// do action while key is down and not up
}
// do whatever when key is let go
// Suggest doing this to flush the standard input...
if (KEY_DOWN(vk_code))
{
while (!KEY_UP(vk_code))
{
// do action while key is down and not up
}
// do whatever when key is let go
// Suggest doing this to flush the standard input...
void smoid