28051
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: March 15, 2013, 12:23:23 am »
Well. Dang. Guess I better get used to booleans...
May 9, 2024: The May '24 Report is up.
News: April 23, 2024: Dwarf Fortress 50.13 has been released.
News: February 4, 2021: Dwarf Fortress Talk #28 has been posted.
News: November 21, 2018: A new Threetoe story has been posted.
Forum Guidelines
I would have made check a boolean, which would simplify your while loop expression to while(!check) Even better, since num is initialized to something less than three, you could get rid of check entirely and do while(num < 3)I was thinking of doing that, but I put it as while !(check), which didn't really look right. I didn't even think of that second part, to be honest; I prefer to include error messages so a hypothetical user can figure out what they did wrong.
Also, I'm not sure what your teacher or professor is like/where you are in the class, but you actually might want to include more stuff in your main program--getting the number of students for example. Also, you should be trying for and catching the IOException, unless you haven't learned about exception handling, in which case leave it to your prof.We have to use multiple methods for the assignment. Otherwise I probably would have tossed the whole thing into the main method.

I'm surprised at how common it is to make values that represent true/false (I.E a boolean) integers for new programmersEh, what can I say? It's force of habit by now, and I am a new programmer, so...mostly because I started with that...
No, was a real person.Not sure if fake. I saw something similar on TV once, a guy who lost most of his face (including both eyes) and basically wore a prosthetic face.That would be the Terminator
Time Splitters remake/re-release game, apparently for free o_Om_bison_yes.avi
WRONG! We're all animals.*raises hand*Make it three.but it's different cuz I'm a boy that likes girls.We must be the only two on the whole damn forum. Every time relationships come up I'm amazed at how diverse this board is.
Gah, I miss all the interesting discussions.Except that one time with Hitler and facestabbing.
Hans, I is jelly of your ability to actually subtly flirt with women. this is something I seem incapable of doing. Any chance of a girl showing romantic interest in me results in total mental nuclear meltdown in my brain.
The important thing to remember is: Women are people too, with the same urges and thoughts and feelings as you. Just like that old saying with animals, "They're as afraid of you as you are of them..." Same deal. Except women are people, not animals.
Hey! I'll have you know that I already pay attention to my appearance and dress properlWaitasec, I don't watch pro wrestling. Or any wrestling for that matter. Does that mean that despite everything I've believed my whole life, I'm actually gay?!Must be Sirus. Guess this means your going t have to start paying attention to your physical appearance and dress in a way that is attractive to girls, as only gay men ever would.
Made two baked potatoes only to find out that I have only a small amount of butter left.Wrong thread, or are you happy about not having very much butter left?
WHY HATH THEE FORSKEN ME MY LORD!
You realize that "alien" means anything unusual or foreign and not just stuff from outer space, right? By that definition, things from other cultures are alien.QuoteI honestly don't see what point you're trying to make here.
Nothing, just that sometimes it feels cheap to see aliens trying to seem alien by taking from real cultures while at the same time still trying to sound alien.