I'd like programming a simple firewall.
This program should read a rules file, and every second check all the files /proc/[1-9][0-9]*/exe (executable file name) and /proc/[1-9][0-9]*/stat (process...
Type: Posts; User: Ezzetabi
I'd like programming a simple firewall.
This program should read a rules file, and every second check all the files /proc/[1-9][0-9]*/exe (executable file name) and /proc/[1-9][0-9]*/stat (process...
WOW, it is *really* great. Thanks a lot.
Opening completly a namespace in the global scope is not a such good idea.
Consider using the using namespace directive inside the main block
or just using using std::cout and using std::endl
Actually
"A" is a nameless const char[] of size 2.
'A' is a nameless const char.
Lately I am messing up with bootdisks and I'd like coding a small command line application that takes as parameter
a folder,
a .bin file as boot sector,
a size type (1.44MB or 2.88MB essentialy),...
Thanks for nothing.
DJGPP is the compiler I use.
Thanks for the links Codeplug! :) I imagined I had to use asm(), but seeing someone other job will surely help.
I have to make a dos app for the first part of...
Wiki is wrong.
If it was correct it would mean that remainder is not unique.
7 % 3 -> 1 or -2 ?
13 % -4 -> 1 or -3 ?
-4 % 3 -> 2 or -1 ?
-6 % -4 -> 2 or -2 ?
Remainder IS positive.
If...
I know that registry trick, but as you said it wont help for my DOS need. :|
It is just about personal preference.
Bohn Jacopini proved that EVERY loop can be made just with while() and eventually break statements so do<% %>while() and for(;;) are unneeded.
But as Fol...
Thanks Daved. So there is no solution... :|
It depends what you have to do.
If you need making a small site I think Abyss Server is a good choice:
http://www.aprelium.com/
Small, fast and easy to configure. You can have your server with...
I read that pages many times before posting here, so many time that I can post a contradiction in their page.
They write:
On success putenv() returns 0, and -1 otherwise.
and in the code actually...
Please before continue read what remainder is, th1.1.3. ***
Why many programs including all C flavours compilers, windows calc, Excel....
#include <iostream> /* TEST, SEE WITH YOUR EYES */...
I have to make a DOS (real DOS, not a Win32 command line app) program that parse a file a set some environment variables.
I made the full program when I stuck against the apparently easy task of...
If you use -Wall (as you really should) when compiling the compiler will warn you if you forgot the second = in the confrontation.
Also, if you are afraid to make mistakes, just use the constant in...
I am making a small program that works on a file. I sometime need to delete a line of a peice of the file.
I checked many pages and tutorial, but it seems none had my problem before... :(
How...