Computational Complexity is a formal field of mathematics, I am determined to demonstrate your elitism to you; can you argue that the complexity of the operations for masking a short int versus...
Type: Posts; User: since
Computational Complexity is a formal field of mathematics, I am determined to demonstrate your elitism to you; can you argue that the complexity of the operations for masking a short int versus...
Elysia;
char a = 96;
cout << a << endl;
What do you think the output is? I want it to be the integer 96, but it just won't be.
I bother with masking so I don't have to do this.
cout <<...
Salem,
Share the ideas, instead of being an elitist jerk?
Instead of getting hung-up over your own personal opinions or principles, please consider this an intellectual exercise as you read my questions. I'd appreciate it!
Keep in mind, I'm not looking...
Anyone know of a library which defines a 1 byte int? The problem I have with using char is that the output (cout << charvar) is interpreted as a character. I don't like having to cast unsigned/signed...
Never mind, explanations are starting to finally show up here;
http://www.reddit.com/r/programming/comments/auqpc/the_sickest_obfuscated_and_the_most_beautiful_way/
From:
Obfuscated C Code
We find:
http://www.cise.ufl.edu/~manuel/obfuscate/pi.c
To check the output online:
C code - 21 lines - codepad
Yes, the program as it is pasted there gives a poor...
I just learned the IOCCC has an award for the most abused use of the C programming language. Awesome. :]
Illegibility is a little bit reaching, I can understand the statement just fine, I guess you can't read it. 'awkwardness of having to deal with a decremented x inside the for loop' ... what?! There's...
brewbuck,
for (int x=10; x --> 0; ) { }
That's it, done deal. :]
What is the name of this operator: "-->"? - Stack Overflow
http://groups.google.com/group/comp.lang.c++.moderated/msg/33f173780d58dd20?pli=1
This is pretty nice, I've never seen this one...
Fordy,
I usually ignore it, but every now and then I cringe when mods complain about rules but do little to enforce lol.
I would be an evil mod, I would 'trade' answers for reformatting titles...
You should just delete this thread and force him to make one properly, most people won't learn unless you force them to which make the forum rules effectively useless. Think about it, he acts like an...
I'm not sure right off the bat, but this might give you the insight to get it to work;
Pointers to C++ Member Functions
Cprogramming.com - Programming Tutorials: C++ Made Easy and C Made Easy
http://www.cprogramming.com/tutorial.html#c++tutorial
Go through every single tutorial, until you see how logic is...
sarah22,
*flashback; sitting in math class writing TI83 demos and games*, the smallest stuff is the most awesome sometimes. A lot of the things that pushed me was actually make the most out of...
abachler,
What I did not say is that they are the same.
What I did say is that they are more closely related than most would like to think, ... there are bridges between art and science that...
sme7000, This is how you generate, and use a lookup table for trig functions, in pseudo.
*note; I've given an example of the most basic way to use a lookup table, in practice it can be much more...
I enjoy pushing both extremes, and I've gotten quite comfortable with it. It took me a few years, but if you're dedicated and motivated you can be both an excellent programmer and artist. The trick...
Remove the condition around the double buffer, let it be active regardless of any flags (which you're more than likely not passing as mentioned).
nice, that is a good idea. :]
i wish tests in all subjects were designed around proving/demonstrating a working knowledge of said subject. multiple choice was a little too ... blunt of a testing...
kryptkat,
A lot of authors write books for the money, and not because they care. There's a lot of absolutely crap C++ books out there, with absolutely terrible and failed examples of program...
int strcmp ( const char * str1, const char * str2 );
http://www.cplusplus.com/reference/clibrary/cstring/strcmp/
edit; added some variety because I'm bored. :]
You must not understand how brackets work if you can't figure that out. Study what I've written below very carefully, then look at your source,...
Yea... why didn't you just compile it yourself and see? The idea is that you post questions here when you run in to problems, you're doing it wrong.