No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
....I have a Touhou avatar...I like Touhou.
Aside from that, I like baked goods and coding stuff.
13 Posted Topics
Re: What the poster above said is the problem, you're printing the count variable (which is always 0 in this program), and you have no actual variable to store the count inputs, the code between line 35 and 40 doesn't do what you think it does either. Something I learned being … | |
Okay, I'm working on a project for class, and...I can't seem to get...subtraction to work right with regards to an object in a class, let me just post the code, here's the block in the main file: [CODE]class KeyHandler extends KeyAdapter { @Override public void keyPressed(KeyEvent e) { char character … | |
Re: The equals sign in VB is the same as an equals sign in math most of the time. It can be used to test equivalence, but cannot be used to solve a mathematical equation. (well, at least in the sense you're thinking.) The program you have there does nothing but … | |
Re: Okay, assuming your use Windows, when you try to print the code, Click on Print Options in the print preview page (the page you get after pressing the print button), in here you can fix both of your problems, for reference, here is a screenshot: [url]http://img714.imageshack.us/img714/6635/unledny.png[/url] To fix the "code … | |
Re: Edit: As for the not initialized problem, when you create the Celsius, be sure to initilize it when you declare it, ala this: [code=Java] float celsius = 0.0; Double celsius2 = 0.0; int celsius3 = 0; [/code] That SHOULD fix your IDE giving that "may not be initialized" error. As … | |
I'm doing a rather convoluted project for a class regarding looping structures and have run into a novice-ish logic error that I can't figure out. The error being that the following loop never ends: [code=java]//get transaction values and perform actions. try { sentinalValue = Double.parseDouble(JOptionPane.showInputDialog ("Enter transaction now. Enter \"-1\" … | |
Re: Okay, so I know nothing about VBScript, so I went and coded the logic in VB.NET, and I'll research how to convert it to VBScript then re-write it for you. (probably tomorrow, as it is very late right now.) Here's what it would look like in VB.NET, for reference to … | |
Re: Well, to be blunt, VB isn't really used a lot for commercial and industry applications, it's more of an academic thing (as in, used by schools to teach programming). So, you should be more concerned with the other .NET languages(there's a lot of them: [url]http://www.dotnetpowered.com/languages.aspx[/url] ), assuming you wish to … | |
Okay, so as a project for one of my classes I need to make a basic drawing program in VB that can do three things: [LIST] [*]"Draw" with a brush of some sort [*]Clear the screen [*]Perform a flood-fill (paintbucket action) [/LIST] I decided to do the first two tasks … | |
(I'm using Vis Studio 2008 and a textbook written for VB2008) Okay, so this problem from my textbook requires me to "animate" (read: move a picture box) a picture of a "robot" finding it's way to a wall and returning to it's original position. I have the logic of the … | |
Alright, making a dice roller...because I need a dice roller. Anywho, in the process of testing it came across an exception that I can't figure out how to remedy. The exception gets thrown at line 33 below: Source code: [CODE]import random #PUT FAILSAFES IN THIS FUNCTION. #gets dice information def … | |
Okay, so yet another post here due to my utter confusion with this language...in all honesty, this isn't a question about threading, per say, lemme just demonstrate what I mean. This: [CODE]class RevoiceThread( threading.Thread ): def run (self): print "Remember to replace this line with the actual code" [/CODE] is … | |
Okay, so in all honesty, I began learning Python about 2 days ago, so this is a rather noobish question(well, I've programmed in other languages, so it's not THAT noobish), but I'm making an IRC bot and can't figure out how to make it so that a line of code … |
The End.