|
UberJumper posted:So i saw this today from ERDAS's software SDK... It is so they can change it to #define __(a) () to support C compilers that do not implement function prototypes, I suspect.
|
# ¿ Jul 9, 2009 01:59 |
|
|
# ¿ May 15, 2024 22:53 |
|
RussianManiac posted:I am confused. Isn't a prototype just a function declaration without its implementation? It is, basically. But in C before prototypes, you would not give the parameter list when declaring functions.
|
# ¿ Jul 9, 2009 12:29 |
|
How many programmers are there targetting it, though, compared to all of us plebs writing PC or web apps in perl?
|
# ¿ Jul 26, 2009 05:36 |
|
WoW does not even obey the triangle thing because you cannot travel in straight lines most of the time.
|
# ¿ Jul 31, 2009 14:39 |
|
Tell me more.
|
# ¿ Nov 9, 2009 21:37 |
|
code:
|
# ¿ Nov 16, 2009 22:57 |
|
Clearly degrees and radians ought to be given in separate types so that trigonometric functions can be overloaded on them.
|
# ¿ Dec 8, 2009 23:32 |
|
No, it would not, it would be perfectly fine, except nobody expects to have to do that when given a const reference, or any reference at all.
|
# ¿ Dec 9, 2009 13:10 |
|
jandrese posted:How were foo1 and foo2 declared? Dynamically? Maybe someone's trying to avoid a race condition or memory leak? How the hell do you declare something dynamically
|
# ¿ Jan 14, 2010 01:10 |
|
If you really want something that approaches a REPL for C++, why not go the whole distance and turn it into an IRC bot.
|
# ¿ Jan 14, 2010 19:23 |
|
code:
|
# ¿ Jan 25, 2010 00:18 |
|
king_kilr posted:The real coding horror is not knowing the difference between strong/weak typing and static/dynamic typing. var is neither weak nor dynamic.
|
# ¿ Jan 27, 2010 22:37 |
|
Janin posted:Clearly that should be: code:
|
# ¿ Feb 10, 2010 20:05 |
|
Mista _T posted:My guess is that the guy is or used to be a C++ programmer (where "new" is basically malloc plus constructor). It still never returns NULL, unless you turn off exceptions or do something crazy like that.
|
# ¿ Mar 3, 2010 01:04 |
|
Nomnom Cookie posted:"Array" is not vague terminology in C, C++, So I guess I will be okay if I dynamically allocate enough memory for N objects of type T and just have a pointer to them instead of declaring a T[N]?
|
# ¿ Mar 18, 2010 15:39 |
|
How is the former an array? vvv that just means you access the elements of actual arrays through a pointer, it does not make everything you can point to an array Vanadium fucked around with this message at 16:56 on Mar 18, 2010 |
# ¿ Mar 18, 2010 16:28 |
|
I would consider keeping the maths out of the loop head
|
# ¿ Mar 25, 2010 23:36 |
|
Why the hell would java care whether you pre- or postincrement anything
|
# ¿ Mar 26, 2010 17:58 |
|
What is everybody's favourite program/its configuration to reformat C++ code?
|
# ¿ Mar 27, 2010 23:04 |
|
HFX posted:
But... getchar() only ever returns values in the unsigned char range, except for when it returns EOF, so what could possibly go wrong?
|
# ¿ Mar 28, 2010 00:47 |
|
mr_jim posted:That pretty much sums up all of the MUMPS code posted in this thread. or anywhere else
|
# ¿ Apr 22, 2010 23:14 |
|
With spaces, because that is not indentation.
|
# ¿ May 19, 2010 15:11 |
|
Spaces are better than tabs because vim's auto-indent keeps loving up the case that Janin is describing
|
# ¿ May 19, 2010 15:51 |
|
What if I do not use the standard library?
|
# ¿ May 19, 2010 16:56 |
|
Should be char name[MAX_SIZE] = "Default";, I guess.
|
# ¿ May 27, 2010 13:31 |
|
Yeah, it is, if you initialise an array but do not give values for all the elements, the remaining ones get set to zero.
|
# ¿ May 30, 2010 18:02 |
|
It would work for reasonably short strings (or if you have reasonably big integers) if you multiply each n'th character's value by 256 to the n'th power.
|
# ¿ Aug 2, 2010 20:05 |
|
Well it is more exciting
|
# ¿ Aug 2, 2010 20:34 |
|
shrughes posted:They'll need a bigint class for that, they could implement it as a char array, they'll just have to implement integer comparison. Luckily, we already have a function for that, or so goes the intuitionistic introduction to recursion.
|
# ¿ Aug 2, 2010 21:44 |
|
In its defense, javascript 101 is somewhat retarded
|
# ¿ Aug 15, 2010 19:25 |
|
What manner, unexpected type coercion shenanigans?
|
# ¿ Aug 16, 2010 00:50 |
|
baquerd posted:This doesn't work Sounds like you are not using AnyBrowser.
|
# ¿ Aug 30, 2010 14:44 |
|
It is when you do a syscall and the syscall is happily doing its thing and nothing is going wrong and then it suddenly returns -1 anyway because you received a signal or something dumb, and then you have to just do the same thing again and hope you do not get a syscall this time. Or a timeout, or whatever.
|
# ¿ Sep 8, 2010 16:48 |
|
I am trying to decide whether perl or php's behaviour annoys me more than having to explicitly convert integers when I want to multiple them with doubles in haskell, help me out here.
|
# ¿ Sep 26, 2010 02:40 |
|
Vino posted:If they don't understand Subversion (which has an arguably easy to use Tortoise interface) then I doubt they would comprehend git/merc much less use it properly. I had much easier time coming to terms with the whole decentralised thing than with svn, probably it was easier to just create a throwaway repository to play around in. vv
|
# ¿ Oct 30, 2010 01:45 |
|
Did the C++ thread not just tell a guy to go ahead with lots of string comparisons instead of bothering with a hashmap or whatever
|
# ¿ Nov 15, 2010 02:39 |
|
Just having a single expression inside each branch of an if-then-else expression has always worked fine for me, I do not see what the big deal is how do curly braces play into this again
|
# ¿ Nov 20, 2010 04:01 |
|
*"" is '\0', typeof('\0') is char, (char**) is a cast to pointer to pointer to char, and the * dereferences it so you get a pointer to char to pass to puts, which happens to point at successive elements of argv.
|
# ¿ Nov 20, 2010 18:30 |
|
Is it okay if you do that but also use inner classes?
|
# ¿ Dec 3, 2010 23:03 |
|
|
# ¿ May 15, 2024 22:53 |
|
So it is dead-code analysis that gets broken by dead code?
|
# ¿ Dec 8, 2010 18:13 |