What compiler/linker arguments are you using? I haven't used pelles before but I assume it has something similar to the debug/release modes in visual studio.
My results, with VS2010 default...
Type: Posts; User: _Mike
What compiler/linker arguments are you using? I haven't used pelles before but I assume it has something similar to the debug/release modes in visual studio.
My results, with VS2010 default...
Ah okey. I was just worried there might be some new debugger around that I had missed :)
Without using a debugger:
Use SEH/VEH to trap STATUS_STACK_OVERFLOW and then examine the exception record.
With a debugger:
Just let it run until it crashes.
I assume you mean WinDbg? (I...
Quite possible that I am :) And maybe 'useless' was a bit too harsh. I'm sorry about that.
But looking at your format string it kind of implies that proper validation is unneeded here.
Going by...
Oh, I assumed that was just a dump of the output.
If that actually was the input then that's quite a lame attempt to "prove" someone wrong.
So your point is that file corruption and/or input...
Same for me.
Hadn't noticed it before, as I always use the "New Posts" link to find new/updated threads.
You are aware that your output is flawed? There is no "w A 1" line in the input.
Like CommonTater said, remove the '\n'. And also..
the first scanf is waiting for input.
You type "50 30\n"
the first scanf assigns 50 to length_of_room
' ' (space character) doesn't match...
'number' is an int but you are telling scanf it's a float.
Wow, that's awesome. I have been wishing for that type of feature. :)
You could use conversion operators.
#include <iostream>
class Foo
{
public:
operator int() { return 12345; }
operator float() { return 3.33; }
};
You are assigning to result before you've read in the value for number.
result = number/28;
stores the result of the expression (number/28) in result, not the expression itself. So the result...
You probably don't have that dll in the path.
The easiest solution is to run vsvars32.bat (or possibly vcvars32.bat, can't remember what it's called in Express) and it sets up the shell environment...
What I'm saying is.. Read the specification documents for C, C++ & C# and based on that information alone tell me which language has the highest performance.
It simply cannot be done, because the...
You do it the same way you wrote the rest of the code; With a text editor :p
scanf(), fscanf()
int returnvalue = scanf(...);
Exactly this. You cannot even measure the performance of the languages themselves. You can however compare language implementations against each other.
The blanket statement that Java is slow is...
First you correct manasij7479 for not using & to get the address of foo, and then you do the same thing yourself :)
typedef void (X::*X_foo_t)();
X_foo_t bar = &X::foo;
VERSIONINFO Resource (Windows)
It's the FileDescription field.
In visual studio:
right-click your project -> Add -> Resource -> Version
Or if you're using express, which I don't think has the...
Thank you both.
I ended up using the 'FORCE' way. Include also worked, but it made things a bit trickier to use with relative paths in the subdir makefile.
Would this work, or would the struct members switch places depending on endianness?
#include <stdio.h>
union endiantest
{
struct
{
unsigned char low : 1;
unsigned char pad : 6;
You're missing a 0 in mega :) And if you use SI-units for mega then you'd have to use it for kilo as well.
1 Byte is 8 bit.
Using SI-units for kilo and Mega; 1 Mbit is 1000 kbit. 1000/8 = 125...
You could also cache the files locally in memory or on disk. Check the last modified timestamp of the file(s) on the network share at some interval, and if newer update the cache.
1 MBit is 125 or...
I've been trying to get GNU make to work with a root dir Makefile and a subdir Makefile..
I've written my Makefiles based on The GNU C Programming Tutorial but I can't figure out how to solve this....
I see, so that was the main source of my confusion. I thought identifier lists and parameter lists were the same thing.
I had actually never seen the identifier list version of declarations before...
@Andrew: Thank you. I wasn't sure if I remembered it correctly and your post made me a bit more unsure. :)
And speaking of the standard.. I was trying to find where this behavior was mentioned and...