Forum: Coder's Corner Lounge
Jul 1st, 2005, 3:49 PM
|
|
Replies: 26
Views: 740
|
Forum: C
Jul 1st, 2005, 2:13 PM
|
|
Replies: 7
Views: 505
|
Forum: C
Jun 29th, 2005, 7:41 AM
|
|
Replies: 10
Views: 380
Like posts above, I recommend you use time.h....
Like posts above, I recommend you use time.h. It's full of functions for getting the time. Here's a reference. (http://www.cplusplus.com/ref/ctime/) Nice and simple.
If you need microseconds, you...
|
Forum: Coder's Corner Lounge
Jun 27th, 2005, 7:17 AM
|
|
Replies: 21
Views: 460
I'd agree with rory here. If you can get a...
I'd agree with rory here. If you can get a prepackaged system (normally intended for educational purposes) then it could make your simple programming a lot easier. Bear in mind how simple this gets...
|
Forum: Coder's Corner Lounge
Jun 27th, 2005, 7:10 AM
|
|
Replies: 10
Views: 284
|
Forum: Coder's Corner Lounge
Jun 20th, 2005, 2:51 PM
|
|
Replies: 19
Views: 412
|
Forum: Coder's Corner Lounge
Jun 20th, 2005, 2:49 PM
|
|
Replies: 101
Views: 2,052
I bugger off from PFO for a week or two and I...
I bugger off from PFO for a week or two and I come back to find this! Pah! You, you... smelly poo poo head! In a not un-French way, I fart in your general direction!
I'm appalled that you hurl...
|
Forum: Coder's Corner Lounge
Jun 12th, 2005, 2:46 PM
|
|
Replies: 24
Views: 551
|
Forum: C
Jun 8th, 2005, 11:52 AM
|
|
Replies: 26
Views: 991
|
Forum: C
Jun 8th, 2005, 11:45 AM
|
|
Replies: 28
Views: 981
|
Forum: Coder's Corner Lounge
Jun 8th, 2005, 11:26 AM
|
|
Replies: 53
Views: 1,299
If you're talking about converting english text...
If you're talking about converting english text into code for a program, then it's been done before (or is being in the process of being done). I remember it was slashdotted, but I too can't remember...
|
Forum: Coder's Corner Lounge
Jun 8th, 2005, 11:09 AM
|
|
Replies: 2
Views: 141
Yeah, why don't you multiply it by...
Yeah, why don't you multiply it by 0.175...
Using a DB like MySQL would probably be overkill for this -- but if you want, it might make things a little easier. You could use a plain flat file...
|
Forum: Coder's Corner Lounge
Jun 8th, 2005, 9:06 AM
|
|
Replies: 29
Views: 599
I don't mind the slightly saucy avatars some...
I don't mind the slightly saucy avatars some people have. It doesn't bother me at all. I don't really care what's in an avatar.
The only gripe I would have with turning off avatars would be the...
|
Forum: C++
Jun 8th, 2005, 8:56 AM
|
|
Replies: 11
Views: 396
Store the first working directory in a buffer...
Store the first working directory in a buffer somewhere (using getcwd), then later, after you've chdir()'d all over the place, chdir() back to the initial value stored from getcwd.
That's under...
|
Forum: C
Jun 7th, 2005, 5:00 PM
|
|
Replies: 28
Views: 981
|
Forum: Coder's Corner Lounge
Jun 6th, 2005, 2:39 PM
|
|
Replies: 53
Views: 1,299
|
Forum: C
Jun 6th, 2005, 2:32 PM
|
|
Replies: 2
Views: 435
Surely you could use popen()? It'd probably...
Surely you could use popen()? It'd probably reduce the amount of code required to do the task. Just man popen for more information on how it works.
With a more hacked idea, I suppose you could...
|
Forum: Coder's Corner Lounge
Jun 5th, 2005, 3:04 PM
|
|
Replies: 24
Views: 368
|
Forum: Coder's Corner Lounge
Jun 5th, 2005, 3:01 PM
|
|
Replies: 39
Views: 704
|
Forum: C
Jun 5th, 2005, 10:58 AM
|
|
Replies: 11
Views: 376
|
Forum: C++
Jun 5th, 2005, 5:12 AM
|
|
Replies: 32
Views: 877
Those blocks are aligned horribly. It makes it...
Those blocks are aligned horribly. It makes it really annoying to read. You should really adopt a method of indentation and stick to it. Normally, I go for something like this:
while(condition)
{
...
|
Forum: C
Jun 5th, 2005, 5:03 AM
|
|
Replies: 15
Views: 783
Why do people always assume that reinstalling...
Why do people always assume that reinstalling Windows will fix everything? If he's recently reinstalled his OS, I don't think he needs to go and wipe it /again/. I don't know what the source of his...
|
Forum: Coder's Corner Lounge
Jun 4th, 2005, 11:05 AM
|
|
Replies: 39
Views: 704
You make kitty...
You make kitty scared!
http://img.photobucket.com/albums/v231/neogamer_101/76073999.jpg
|
Forum: Coder's Corner Lounge
Jun 4th, 2005, 6:26 AM
|
|
Replies: 39
Views: 704
Well this is a silly thread....
Well this is a silly thread. :P
slap(uman);
while(!uman.sober)
uman.sleep(3600);
Hrm, maybe Ooble's real life code was written by Microsoft?
|
Forum: Coder's Corner Lounge
Jun 4th, 2005, 6:24 AM
|
|
Replies: 34
Views: 1,200
|
Forum: C
Jun 4th, 2005, 6:12 AM
|
|
Replies: 16
Views: 528
Grumpy, you confuse me slightly. In your steps,...
Grumpy, you confuse me slightly. In your steps, you add x to each angle (shifting the range 0 to 360 to 0+x to 360+x), then average all the angles, and subtract x. If you think about this, it doesn't...
|
Forum: C
Jun 4th, 2005, 4:48 AM
|
|
Replies: 16
Views: 528
|
Forum: Coder's Corner Lounge
Jun 3rd, 2005, 9:23 AM
|
|
Replies: 10
Views: 228
I'd probably go for 3 and 2. Although, to be...
I'd probably go for 3 and 2. Although, to be honest, the second list seems a lot less interesting ;p
I think you have to decide for yourself based on your own skills, interests and knowledge.
|
Forum: Coder's Corner Lounge
Jun 3rd, 2005, 9:15 AM
|
|
Replies: 10
Views: 214
|
Forum: Coder's Corner Lounge
Jun 3rd, 2005, 9:11 AM
|
|
Replies: 24
Views: 368
|
Forum: Coder's Corner Lounge
Jun 3rd, 2005, 9:04 AM
|
|
Replies: 24
Views: 368
He's making up for the lost posting time by...
He's making up for the lost posting time by posting at an increased speed now.
Scientists predict that Ooble's post count will no longer be able to be represented in a 32 bit integer by 2010. ;-P
|
Forum: Coder's Corner Lounge
Jun 3rd, 2005, 9:02 AM
|
|
Replies: 32
Views: 603
|
Forum: C++
Jun 3rd, 2005, 8:56 AM
|
|
Replies: 63
Views: 1,379
Yes, they have code tags, but once you minimise...
Yes, they have code tags, but once you minimise the space it takes up, it's annoying to read the code because it's cramped into such a tiny space. So if there's a large wad of code to read through,...
|
Forum: C++
Jun 3rd, 2005, 8:43 AM
|
|
Replies: 7
Views: 286
|
Forum: C++
Jun 3rd, 2005, 8:29 AM
|
|
Replies: 63
Views: 1,379
|
Forum: C++
Jun 1st, 2005, 1:05 PM
|
|
Replies: 22
Views: 539
|
Forum: C
Jun 1st, 2005, 1:02 PM
|
|
Replies: 4
Views: 303
|
Forum: Coder's Corner Lounge
Jun 1st, 2005, 11:13 AM
|
|
Replies: 21
Views: 467
|
Forum: C++
Jun 1st, 2005, 7:27 AM
|
|
Replies: 21
Views: 586
I'm sure you could use the STL vector class to...
I'm sure you could use the STL vector class to load them, then use the sort() function to sort them. I think it does it alphabetically. Google for C++ STL and you'll find some documentation on it.
|
Forum: Coder's Corner Lounge
May 31st, 2005, 5:34 PM
|
|
Replies: 5
Views: 168
|