Thread: Gotta lay off the programming.
-
May 21st 2004, 05:47 AM #1
Gotta lay off the programming.
I've been working on my programs so much that It's even started to show up in my typing and thought patterns. For example, I constantly find myself ending my sentences in semicolons; Not only that, but I'm starting to think in terms of conditional statements; It's bad enough I use to type them out in chat, but now I'm starting to think them. << endl;
For example, when deciding whether to go to bed or not, I find my thought process going something like this:
void main() {
float BedTime = 10.0;
if (Time == BedTime)
{
if (Energy > 0)
{
BedTime += .5 //I'm a procrastinator to the point of putting off going to bed
Energy -= 1;
}
else
{
BedTimeRoutine(LogOut,ClearBed,LightsOff)
}
}
}
Do you think I need a break from programming?I am a firm believer in gun control. As a matter of fact, I'm on the range every chance I get to improve my ability to control my gun.
-
May 21st 2004, 05:49 AM #2
void main() {
float SpamTime = 10.0;
if (Time == SpamTime)
{
if (Energy > 0)
{
SpamTime += .5 //I'm programming too much lately
Energy -= 1;
}
else
{
SpamTimeRoutine(ChillOut,ClearDesktop,CoffeeOn)
}
}
}
-
May 21st 2004, 08:48 AM #3Not until you sort out the bug in your code. Honestly, it's such a basic error as well!
Originally posted by Fatty Arbuckle
My name is Jon and you're more than welcome to use it.
God made me geeky, and when I code I feel His pleasure...
-
May 21st 2004, 08:49 AM #4
Oops, I should really say bugs in your code... All of the same kind though. Oohh, and another error I've just spotted - this one's different though. You must really like compiler error messages

Maybe the question should be, do I need a break from programming?My name is Jon and you're more than welcome to use it.
God made me geeky, and when I code I feel His pleasure...
-
May 21st 2004, 09:12 AM #5I do that too;It's bad enough I use to type them out in chat, but now I'm starting to think them.
It gets annoying;
Because I have to intentionally;
Will myself to not do it;
Just a note, $cir is right. -Sparko
-
May 21st 2004, 11:34 AM #6
I used to type my away messages in C.
I would even get out the C reference manuals I have to make sure they were correct.In the grave they chose to make their beds
Now all that they've created comes crashing down,
Down upon their heads
Death is waiting
-
May 21st 2004, 11:42 AM #7
Reading these posts is enough to make a wannabe English major go crazy.
-
May 21st 2004, 12:01 PM #8
I've just noticed that neither of you have indented your code either.
My name is Jon and you're more than welcome to use it.
God made me geeky, and when I code I feel His pleasure...
-
May 21st 2004, 12:02 PM #9
'Cous, I know nothing about code whatsoever, I just adjusted his, so blame him!
Anyway, see you all on Monday, God willing sllly
-
May 21st 2004, 12:03 PM #10Tweb removes extra spaces.
Originally posted by AcousticJS
This sentence has one leading space.
This sentence has ten leading spaces.Last edited by Em7add11; May 21st 2004 at 12:19 PM. Reason: argh, spelling
In the grave they chose to make their beds
Now all that they've created comes crashing down,
Down upon their heads
Death is waiting
-
May 21st 2004, 12:06 PM #11Code:
not if you do this :wink:
Just a note, $cir is right. -Sparko
-
May 21st 2004, 12:16 PM #12
Keep it up and I'll move this to the computer lab.
-
May 21st 2004, 01:48 PM #13
I'm a bit rusty with C++, since my compiler has to be reinstalled before I can do any more programming.
The only bugs I can really find are not declaring Energy, which is a global variable (I didn't include the global variables, headers, or the function declarations to save space), and seemingly passing function calls as parameters, which the variables passed to BedTimeRoutine are booleans that control the flow of the function.
If you've only used DevC++ (or similar) then main not returning a value would be a problem, but in Microsoft Visual Studio void main() is perfectly acceptable.
It would have been easier if my compiler worked, though, since my technique is to program, compile, fix errors, compile again, fix errors, repeat until I finish the program.I am a firm believer in gun control. As a matter of fact, I'm on the range every chance I get to improve my ability to control my gun.
-
May 21st 2004, 02:17 PM #14Well, if it's C++, my understanding is that main() always returns an int value - the void made me think you were writing in C.
Originally posted by Fatty Arbuckle
Fair do's - shoulda guessed there'd be a header file somewhere!The only bugs I can really find are not declaring Energy, which is a global variable (I didn't include the global variables, headers, or the function declarations to save space),
Ooh, missed that one.and seemingly passing function calls as parameters, which the variables passed to BedTimeRoutine are booleans that control the flow of the function.
Ah, ok. Shoulda read the whole post before starting to replyIf you've only used DevC++ (or similar) then main not returning a value would be a problem, but in Microsoft Visual Studio void main() is perfectly acceptable.
You also missed off a couple of semi-colons. That was the first error I spotted.It would have been easier if my compiler worked, though, since my technique is to program, compile, fix errors, compile again, fix errors, repeat until I finish the program.
I really should stop programming quite so much. And probably go get some fresh air instead.
My name is Jon and you're more than welcome to use it.
God made me geeky, and when I code I feel His pleasure...
-
May 21st 2004, 02:29 PM #15Me too.my technique is to program, compile, fix errors, compile again, fix errors, repeat until I finish the program.
Just a note, $cir is right. -Sparko
Similar Threads
-
Programming?
By Matt the Bat in forum Computer LabReplies: 23Last Post: September 11th 2011, 02:44 PM -
anyone do web programming?
By Summoned n00b in forum Computer LabReplies: 16Last Post: February 1st 2008, 07:31 PM -
Learning Programming
By Matt the Bat in forum Computer LabReplies: 24Last Post: July 28th 2006, 12:37 AM -
ti-83 programming?
By ih8censorship in forum Computer LabReplies: 8Last Post: July 18th 2006, 04:13 AM -
Gotta lay off the programming.
By Tobias Reiper in forum Rec RoomReplies: 23Last Post: May 22nd 2004, 02:17 AM















































































Quote

Tornados
Yesterday, 06:02 PM in Chaplain's Office