Search found 16 matches

by Misanthrope
Sat Aug 25, 2007 4:28 am UTC
Forum: Coding
Topic: End of File problems in K&R
Replies: 6
Views: 2668

Ctrl+D on *nix; I think Ctrl+Z on Windows. The Windows one works and terminates the program. Haven't tried the Linux one yet. The end-of-file character might be like the carriage return or line feed characters, or any of the others that you can't really type (except maybe with alt-XYZ). That -1, wh...
by Misanthrope
Sat Aug 25, 2007 2:11 am UTC
Forum: Coding
Topic: End of File problems in K&R
Replies: 6
Views: 2668

End of File problems in K&R

I bought a copy of K&R a few days ago as I've heard it's the book on C (they did design C after all). Anyways, once you get a little way into the book they start discussing input/output and show example programs with EOF (End of File). One of the first examples is as follows; #include <stdio.h> ...
by Misanthrope
Tue Aug 14, 2007 8:51 pm UTC
Forum: The Help Desk
Topic: Linux email religious war question
Replies: 7
Views: 2336

Oh me yarm! People still use Pine? I last used that at Uni years and years ago.
by Misanthrope
Mon Aug 13, 2007 8:37 pm UTC
Forum: Serious Business
Topic: Pedophilia
Replies: 96
Views: 12648

I have to admit to being surprised by the poll results. The way I see it is that our appetites need "food". If you give them what they want they'll want more. If you don't, you'll eventually starve them. The sex drive is pretty much like that. It's all in the mind basically. The desire is ...
by Misanthrope
Mon Aug 13, 2007 10:58 am UTC
Forum: News & Articles
Topic: 756*
Replies: 46
Views: 7315

Perhaps I'm missing something here but Baseball is hardly a very athletic sport. It's pretty similar to cricket (I'm from the UK) and requires little physical stamina compared to football (both the UK and American variants). Why, therefore, would anyone need to take steroids in order to hit a ball w...
by Misanthrope
Sat Aug 11, 2007 4:52 pm UTC
Forum: Coding
Topic: Ways to practice
Replies: 9
Views: 2559

http://online-judge.uva.es/problemset/ ? http://projecteuler.net/ ? at least one of those should give you some inspiration I'll have a look at these myself too I think. The problem with most Programming books (not reference books like the Nutshell types, but the beginners programming type books) is...
by Misanthrope
Sat Aug 11, 2007 2:57 am UTC
Forum: The Help Desk
Topic: Visual Basics Question and Other
Replies: 6
Views: 1964

You should give Java or Python a try. I'm not a Python programmer myself (it's on my to-do list) but I've heard it's great for new programmers (easy syntax and less complex than C/C++/Java). I learned Java at University and I have to say it's a good introductory language. Hardcore C/C++ programmers ...
by Misanthrope
Sat Aug 11, 2007 2:43 am UTC
Forum: Coding
Topic: The doubles don't like me.
Replies: 6
Views: 2135

I can't believe I spent over 2 hours on this. I feel so dumb. My background is in Java where a simple program like the above is practically handed to you on a plate. Thanks for the help guys.
by Misanthrope
Sat Aug 11, 2007 1:05 am UTC
Forum: Coding
Topic: The doubles don't like me.
Replies: 6
Views: 2135

The bizarre crap I get is as follows; PI is: 3.1415926536 Enter the radius: 2.5 The diameter is 1.#QNAN00000 The circumference is 1.#QNAN00000 The area of the circle is 1.#QNAN00000 Press Enter to quit... Your suggestion worked. Funnily enough I tried that earlier but I used the ampersands as well, ...
by Misanthrope
Sat Aug 11, 2007 12:38 am UTC
Forum: Coding
Topic: The doubles don't like me.
Replies: 6
Views: 2135

The doubles don't like me.

I'm very new to C and thought I'd give something a bash tonight. So I decided to write a program that took in the radius of a circle from the user and calculated the diameter, circumference and area of the circle based on the user's input. To make it accurate I would need either float or double data...
by Misanthrope
Fri Aug 10, 2007 4:27 pm UTC
Forum: The Help Desk
Topic: XP or Vista
Replies: 47
Views: 7149

I would say vista...long term support is certainly going to be better. We have a PC with Microsoft Windows Server 2000 at work that can still download updates. So if Microsoft still technically supports an OS that was made obsolete about 5 years ago when XP arrived, then I'm pretty sure XP Pro will...
by Misanthrope
Fri Aug 10, 2007 8:29 am UTC
Forum: Coding
Topic: Java Books
Replies: 34
Views: 10692

You could also try this. It covers Java 6. I too am waiting for a new Nutshell book that covers Java 6 but it doesn't look like they're going to be doing one soon. In fact, it's been a good while since O'Reilly last published any Java new Java books.
by Misanthrope
Fri Aug 10, 2007 12:15 am UTC
Forum: Coding
Topic: Can anyone recommend a Python compiler/IDE?
Replies: 33
Views: 5539

I found this while looking around in Wikipedia (I was trying to ascertain whether it would be worthwhile learning Python for myself). The website is a little odd; basically it's just a blogging site, but if you scroll down you'll eventually see a "Download" link on the right. I haven't che...
by Misanthrope
Thu Aug 09, 2007 6:47 am UTC
Forum: Coding
Topic: C++ question
Replies: 44
Views: 6611

Just add this to the bottom of every console app; cout << "Press ENTER to continue...\n"; cin.get(); I had the same trouble running console apps in Windows. If you use something like Microsoft VC++ Express then you don't get this problem. It automatically keeps the DOS box open until you p...
by Misanthrope
Wed Aug 08, 2007 10:10 pm UTC
Forum: Coding
Topic: Couple Java programs.
Replies: 23
Views: 3514

1) The second one, I expected to be glitchy. 2) I'm sure I could have done either in about 1000 simpler ways. 3) I took a high school Java lass last year, and thus ends my Java experience. When I run the second one in the SciTE editor that comes with Ruby it works perfectly. >java Cipher_Creator En...
by Misanthrope
Wed Aug 08, 2007 4:51 pm UTC
Forum: Coding
Topic: [Software] ANSI C Compilers
Replies: 37
Views: 5762

Seeing as so many people have mentioned Vim I thought I'd give it a try. It's a lot more complex than what I'm used to in a text editor but I have to say; it's pretty damn good. Up until now I've been using JEdit. I might stick with Vim though now.

Go to advanced search