of course there is a ++ operator in C.
C Operator Reference
I mainly program with the C89 standard of C, and I recommend you learn how to properly program with C89 as well. Here's why: Even...
Type: Posts; User: Auxilium
of course there is a ++ operator in C.
C Operator Reference
I mainly program with the C89 standard of C, and I recommend you learn how to properly program with C89 as well. Here's why: Even...
Alright, let's go.
First, why are you allocated n*32 bytes? That's way more than needed
int *pp2 = (int*)malloc(n*32); //why?
int *pp2 = (int*)malloc(n*sizeof(int)); //right
second, this is...
Lol, yeah...
It's gotten to the point where there aren't even that many Copy pasting leecher choobs anymore. It's just like totally silent.
Bored, so I wrote a fully functional RLE compressor and decompressor in C.
RLE works as follows. There are packets which represent a "run." A packet has a byte for length and a byte for data.
A run...
So I decided to rewrite my IPS patcher, this time in fully C89 standard compliant C.
Just sharing to liven up the section a little
I statically allocated 1000 records, mostly because I've never...
Objectively, C++ is better, and I agree, since C++ is pretty much everything C is, with extras added in.
But for me, since I already program C-Style, I decide to just use plain C most of the time
DAVID!!
It's not what you think. It's only because of a tiny typo I somehow put in the argument for realloc.
I knew there couldn't have been something wrong with it because I spent 30 minutes...
So I'm writing a particle engine with SDL and OpenGL in C. And as opposed to static allocation of the particles, I wanted use dynamic allocation for each particle. I made a proof of concept using...
Just thought I would release this program I thought up. It's a simple IPS patcher. Yeah, dozens of them already exist, but I decided to make one for fun.
For those of you who don't know, an IPS...
Just thought I would share a breakthrough that I had. You may think it's no big deal but I was stuck for an entire hour.
So I'm writing an IPS file patcher. Long story short, the IPS file stores...
Take a look a Project Euler. Pretty challenging problems which can require clever programming tricks. Great Way to learn.
If you aren't a student, then you are doing it illegally, so you have to be a student, first.
And honestly, the express versions are just fine, which you can get for free without any hassle....
Lol nice to see another person interested in assembly.
I only really have experience with x86 assembly, but it's nice to see and intriguing to look at other processor architectures and assembly...
So.... I haven't programmed in C++ for over a year (focused on other things) so to get back into the hang of things I just decided to make some real simple binary file i/o stuff.
It writes bytes,...
As you may (or may not) know, Visual Studio 6.0 is incompatible with Vista and above.
Here is how to get it to run.
0. Create a 0 byte file named "MSJAVA.DLL" and put it in C:\Windows. This...
Joined in 2008 for combat arms hacks.
I started programming in 2007 because computers interested me, and then I started coming to the programming section in 2009/2010.
I'll never forget all of the...
Just a thought:
if(slopeVal == (slopeVal2 * -1))... for perpendicular lines is wrong
Perpendicular lines are opposite reciprocals.
For example, 2x and -1/2x, not 2x and -2x
format C:
I did this 4 years ago using vectors relatively easily.
C and x86 Assembly.
C because it's probably the most versatile language, and Assembly because I enjoy the control you gain.