I did try it offcourse. So I'll need to change the bit after END to my sorting (I think).
Thanks for your help.
Type: Posts; User: tehet; Keyword(s):
I did try it offcourse. So I'll need to change the bit after END to my sorting (I think).
Thanks for your help.
ghostdog, thanks for your reply. Is that a random ordering? I can't figure out how it is reorder.
I have found a working solution though it's not very pretty:
#!/bin/bash
awk '/in/{print...
There is KDE Edu. Though I've never used it so I don't know for what age group it is supposed to be. Oh wait, their page says "Our primary focus is on schoolchildren aged 3 to 18".
I believe it's...
Is there a way to reorder lines in a non-logical way? For example, change
line1
line2
line3
to
line2
line1
line3
And this.
edit: I didn't see this discussion
Compiling a small test program with -nodefaultlibs return
undefined reference to `printf'
so that confirms it. Thanks.
Ah, I think I understand :)
Thanks nvteighen and LaRoza!
As opposed to, lets say, stdlib.h or does gcc silently link in glibc and such by default? Looking At gl.h, glut.h and stdlib.h I think I'm only seeing prototypes but then again, I'm kind of a noob.
Hi,
How come you need to set these flags in order to compile stuff with GL and GLUT? Why is #include <GL/gl.h> and #include <GL/glut.h> not enough?
I think I have read an explanation for math.h...
Thanks ruy_lopez, your help is much appreciated. I've cleaned it up a bit and here's the current form:
/*
Socket exercise - Stream client
*/
#include <stdio.h> /* printf, scanf, etc */...
Hmm, nope.
Without sleep I get 100% CPU load so I thought I throw in a quick and dirty sleep(). [Edit2: strike that. An earlier incarnation of my program did that, the current while() doesn't...
Unfortunately it's not returning any errors on either the client or the server though I have errno.h included in both.
edit: I'm testing this all locally. Both the client and server run on...
Hi,
I'm trying to send the message 'ping' or any other message of 4 chars or less from client.c to server.c. From examples I've found both the send()/recv() and the write()/read() functions but...
lol, neither do I but it's still interesting and I hope it fares well for them.
http://ghosts.nin.com/main/faq
That's nice don't you think?
Yes it does :D I thought \n was just newline, but it also flushes all the stuff you've been printf-ing to a stdout buffer.
Though I think you meant to say fflush(stdout), which works. fflush(stdin)...
If I put fflush in there it works as expected:
printf("Connecting to remote socket ... ");
fflush('\0');
if ((connect(sockfd, (struct sockaddr *)&server_address, sizeof...
DOH! :lolflag:
Thanks!
I'm still a bit confused as to when 0 is zero and when it's NULL.
Did anyone see the (terrible) pilot of knightrider 2008? They had something flaky going on on the terminals of the truc... erm, plane.
Hi,
First question:
Compiling the code below, either with or without -Wall, I get the following warning:
$ gcc -Wall client.c -o client
client.c:36:34: warning: multi-character character...
# necro-ing this thread and there are many like it
I can't stand that I didn't think of this earlier, but here goes:
If you use Konkueror* you can make searching the ubu forums through google a...
Yes, that's a proper way to gain root. sudo su as stated in the cheat sheet is a big no-no!
Because in my broken version char colour[1] produced less compiler warnings than char colour[]. But yah, it's silly :)
Because I don't know what I'm doing :lolflag:
Thanks for the help guys!...
Hi,
I'm trying to generate a list of cards (for learning structs and pointers) by looking at example program 5.2. First I make a struct card{} and than a deck of 52 cards. Here deck is an array of a...
I'll rephrase: You should only use binary packages that were built for your version of the distro you're using in order to maintain a sane system.
Building your own binary packages from source for...