Hi Happy Man!
The algorithm uses the fact that reversing the bits of a value is the same as splitting the value in two parts (say hi_lo -> hi, lo), reverse the bits of both parts (lets call those...
Type: Posts; User: alex
Hi Happy Man!
The algorithm uses the fact that reversing the bits of a value is the same as splitting the value in two parts (say hi_lo -> hi, lo), reverse the bits of both parts (lets call those...
Err...
Well, I was assuming that MortalMonkey was using an old-fashioned "16-bit" legacy compiler to create his utility. Moreover, I mentioned Ralf Brown's interrup(t) list, not because he should...
Hi!
The command.com that is executed (spawned) by the system function inherits the console, so stdout and stderr write to the same console. And stdin reads from the same console, so PAUSE will...
Sorry, that won't work.
The system function starts a new version of command.com. Command.com sets the environment variable in it's own copy of the environment, and than exits. This is exactly what...
Hi all!
Just one question: what happened to the "standard" solution for this problem?
unsigned char quux(unsigned char value)
{
value = ((value&0xaa)>>1) | ((value&0x55)<<1);
value =...
I'ld like to nominate these:
pysol
frozen bubble
freeciv
adonthell-wastesedge
lbreakout2
tuxracer
ltris
jumpnbump ;-)
Hi,
The program works perfectly here: displaying colored text in the upper-left corner of the screen.
Could you type "echo $TERM" in your terminal, where you are trying to run the program? TERM...
Hi!
Maybe the TERM-variable contains the wrong identification string? (type "echo $TERM")
"xterm" and "linux" support color;
"vt100" and "vt102" do not.
alex
Dumb terminals can only display text...
If this doesn't discourage you right away you should try AA-lib (ASCII art library):
http://aa-project.sourceforge.net/gallery/
have fun!
alex
I guess you could use fileno(stdin).
alex
Hi!
Try to understand this:
char line[]="This is an order for (XYZ-2) some order";
char a[50], c[50]; int b, n;
n = sscanf(line,
I have not tried the code you link to, but it seems to me that you could run into trouble if you run it on an operating system that has differences in handling of text-files and binary files (such as...
Just another variation on the same theme...
#include <stdio.h>
int main(void)
{
char mytext[] = "abcdef[12345]";
char number[20];
int test;
Hi!
The problem, more specific, is that writing anything in the lower-right corner of the screen will cause the cursor to advance to the next line... Just don't write anything in column 80 of line...
Hi!
For any polynomial ... + c x^2 + b x + a (a and b nonzero), the sum of the reciprocals of the roots is equal to -b/a. It's that simple if you have that kind of black knowledge! If you want to...
7/12
greetinx,
alex
Hi!
So you want a mouse with integrated track-ball?
interesting idea...
I have seen mice with two wheels, but both moved in the same direction.
greetinx,
alex
mplayer v0.90preX (compiled from source)
http://www.mplayerhq.hu/homepage/
alex
Just convert them to the almost equivalent ISO 9899 functions:
bzero(a, b) -> (void)memset(a, 0, b)
bcopy(a, b, c) -> (void)memcpy(b, a, c)
alex
Hi!
Most C-code can be compiled on C++ compilers, but there are incompatibilities, for example:
#include <stdio.h>
int main(void)
{
Hi!
I don't think I have the answer, but I don't think your (computers) battery is empty, because then the bios would probably warn about checksum errors. It's also very strange that the minutes...
Hi!
We'll have to advertise the awk filter! :cool:
(I just replied to similar question)
awk '{if(NR>1 && x!=$1) print ""; print $2; x=$1}' groupfile
is this what you want?
alex
Hi!
First, I would replicate the key in front of each line (using awk, for example).
Then do a stable sort on this key (treating it as a number, and reversing the sort order)
Finally, I would...
Looks like you forgot -lftp:
gcc program.c -lftp
alex
Hi!
Linux is great... I use it most of the time. (Except for one at home, because It only has an external usb modem that is not supported by linux, because the microcode is uploaded at...