Penny-Arcade comes to mind ;)
Type: Posts; User: kungtotte
Penny-Arcade comes to mind ;)
Either way is fine, but the correct way is the second one since that's what I use.
7stud, don't tell me you use GNU-style?
From the FAQ:
Right, I am a relative programming noob. I know my way around C and C++ but that's about it.
The difference between me and the other noobs on these boards is that I know my limitations. I haven't...
Huh? If the target is found, then the index of the target is returned. If the target is not found, -1 is returned.
In The C Programming Language, 2nd Edition, the code-snippet you refer to can be found in Chapter 3, page 58.
Here is the original code-snippet from the book, in it's entirety:
/* binsearch:...
You won't be able to install DDR memory sticks in your current motherboard, you will need to upgrade that too. Which means you will probably have to upgrade your CPU too.
I think that is a fundamentally bad idea. Gentoo or Slackware, for example, are more complex and advanced than Fedora Core (Red Hat), Mandriva (Mandrake) or Ubuntu.
When a new user boots into his...
The goal of Linux is to provide an open source kernel for a multitude of platforms.
Ubuntu is the "one on every desktop" Linux distribution. They dumb down the system to make the threshold for...
Yeah, and it works very well cross-platform. I use it on both Windows and Linux (my primary platforms), and it works the same way on both. Which is a big plus!
I do advice you to download a newer...
Ruby is slow. Very slow.
They are working on Ruby 2.0 which will include a bytecode compiler. The development release is currently boasting a 30-40% increase in performance over the 1.8x series of...
You've got three threads now in here that discuss basically the same issue.
The other two:
pointer to a function
less use of ram
How about trying to keep it focused in one thread? The answers...
So it's the standards fault that people don't aspire to become 100% standards compliant?
I like that concept. We should extend it to include legal matters as well.
"Oh I'm sorry that I was...
if (argc == 0)
return 1;
This will never happen, since all programs receive a minimum of one arguments (the name of the program. Or rather, the command used to invoke the program).
This may or may not be the case, it all depends on the circumstances.
I have a LinkSys WRT54GS which has a really good range, I get full signal strength in my entire house.
I had a D-Link AP...
Well, when we are talking about defined or undefined behaviour with regards to C we are normally referring to the C language standard, yes? And based on the content in this thread, that is what I...
The behaviour is not undefined. You write past the end of the allocated memory, the language and/or compiler can't control what happens then.
If you are lucky you write onto unused memory and...
It depends a lot on the signal strength, and we can't make any predictions about it.
If you have adequate signal strength, then you will have no problems getting your full speed through your WLAN....
tomas@loke:~$ ./end world hunger
-bash: ./end: No such file or directory
Nope :(
The Advanced Linux Programming book has some useful material on this.
Do you want a compiler or an IDE?
Note: All of these are Win32-specific, since I assume you run Windows.
Compilers
Digital Mars
MinGW (Win32 port of GCC)
Microsoft Visual C++ Toolkit 2003
...
And what happens when I do this:
myprogram.exe -i -h hello -r
Doesn't windows have an equivalent of getoptlong?
It's not impossible, it just gets harder. You can order CDs for most distributions, which contain all the packages, and use them as a repository for your package-management system.
But, the...
It's all in the distribution.
I've become really, really attracted to UbuntuLinux. It's the perfect distribution for me. It's based on Debian, so you get the power of Debians apt-get system, it's...
As long as your life doesn't depend on having any spare RAM ;)