Register - Login
Views: 99815606
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 05:47:54 PM
Jul - Innocent Town - C++ New poll - New thread - New reply
Pages: 1 2Next newer thread | Next older thread
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 7889/11363

Joined
07-06-07
Active
1 day ago
Posted on 01-31-11 03:51:14 AM Link | Quote


____________________
BMF IS A LEAPFROG
Liliana
"A horrible person". That's what it says. "A horrible person."

We weren't even testing for that.


Level: NaN


Posts: 2166/-3841
EXP: NaN
For next: 0

Since: 07-23-07


Since last post: 10.3 years
Last activity: 10.1 years

Posted on 01-31-11 01:04:31 PM Link | Quote
Infinite loops are awesome.

____________________

Most people who visit your Web pages are there in search of useful or entertaining information, not to admire your fancy graphics skills or HTML prowess.
— Apple Web Design Guide, 1996
 
Taryn

Passed away.

Thanks for being a part of us, even if it wasn't always on the best of terms.

1987-2014


Level: 204


Posts: 11462/14742
EXP: 121751751
For next: 1598067

Since: 09-01-09

From: Seattle

Since last post: 10.1 years
Last activity: 9.8 years

Posted on 01-31-11 01:28:57 PM (last edited by Terra at 01-31-11 10:29 AM) Link | Quote
#include <iostream>
using namespace std;

int main()
{
    while (1)
        cout << "Meow ";

    return 0;
}

____________________

TKB Super Mario Bros.TKB Super Mario Bros., Volume II
Nicole

Disk-kun
Level: 146


Posts: 2311/6469
EXP: 38286356
For next: 226938

Since: 07-07-07

Pronouns: she/her
From: Boston, MA

Since last post: 78 days
Last activity: 1 day

Posted on 01-31-11 01:31:01 PM Link | Quote

Why do you need C++ for that?

10 PRINT "Add another? <Y/N, will repeat on other answers>"
20 GOTO 10


____________________
Liliana
"A horrible person". That's what it says. "A horrible person."

We weren't even testing for that.


Level: NaN


Posts: 2168/-3841
EXP: NaN
For next: 0

Since: 07-23-07


Since last post: 10.3 years
Last activity: 10.1 years

Posted on 01-31-11 02:19:21 PM Link | Quote
It should work in batch also:

@echo off
:marker
echo "Add another? <Y/N, will repeat on other answers>"
goto :marker


____________________

Most people who visit your Web pages are there in search of useful or entertaining information, not to admire your fancy graphics skills or HTML prowess.
— Apple Web Design Guide, 1996
 
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 7890/11363

Joined
07-06-07
Active
1 day ago
Posted on 01-31-11 02:50:51 PM Link | Quote
It did that when I entered a non-integer/double value for an integer/double.

____________________
BMF IS A LEAPFROG
Taryn

Passed away.

Thanks for being a part of us, even if it wasn't always on the best of terms.

1987-2014


Level: 204


Posts: 11463/14742
EXP: 121751751
For next: 1598067

Since: 09-01-09

From: Seattle

Since last post: 10.1 years
Last activity: 9.8 years

Posted on 01-31-11 03:00:20 PM (last edited by Terra at 01-31-11 12:00 PM) Link | Quote
Ah.

Silly Bloodstar, if you want a Y or N, use a character variable

I do remember those infinite loops. Seems to me there was some other way to code the loop so it doesn't do that, but I don't remember what it is.

____________________

TKB Super Mario Bros.TKB Super Mario Bros., Volume II
Cirvante
1340
Feel the wrath of eternal damnation please! I would appreciate that very much thank you!
Level: 74


Posts: 1231/1342
EXP: 3616572
For next: 36972

Since: 07-10-07


Since last post: 8.4 years
Last activity: 6 days

Posted on 02-01-11 01:41:15 AM Link | Quote
That isn't C++. Not enough pointers, for starters.
Remember, kids, if you're not overloading operators out the wazoo and your functions don't look like Foo& wtf (Bar const* lol, Baz<double>** wut) const, you're doing it wrong!

____________________


board2 - Jul - OC ReMix
Rick
M'Lord, there's a knife in your head!
Level: 152


Posts: 2441/7540
EXP: 43724029
For next: 577631

Since: 02-15-10

From: Maine

Since last post: 7 days
Last activity: 6 days

Posted on 02-01-11 02:08:34 AM Link | Quote
Can't I just pretend it's C++ so I look like I know something in this conversation? =<

____________________
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 7908/11363

Joined
07-06-07
Active
1 day ago
Posted on 02-02-11 06:52:46 PM Link | Quote
Originally posted by Cirvante
That isn't C++. Not enough pointers, for starters.
Remember, kids, if you're not overloading operators out the wazoo and your functions don't look like Foo& wtf (Bar const* lol, Baz<double>** wut) const, you're doing it wrong!


That's the kind of stuff that scares me, too.

Fuck, I can't wait for May.

____________________
BMF IS A LEAPFROG
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 4059/5390
EXP: 29076760
For next: 258245

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 342 days
Last activity: 342 days

Posted on 02-06-11 02:59:04 AM Link | Quote
Post #4059 · 02-05-11 09:59:04 PM
I caused a fun segfault today because I did:
myObject *obj = *((myObject**)somepointer);
when I should have done:
myObject *obj = (myObject*)somepointer;
i.e. following one pointer too far. As it happened, that object just happens to have some other pointer at the beginning of memory, so this worked fine until quite a bit later when things went all screwy because my object had all the wrong things in it.

Reasons like this I try to stick to Lua.

____________________
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8175/11363

Joined
07-06-07
Active
1 day ago
Posted on 02-13-11 02:48:30 AM Link | Quote
Time to do an assignment with classes now.

I don't know if this is easy or to be scared. I literally don't.

____________________
BMF IS A LEAPFROG
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8178/11363

Joined
07-06-07
Active
1 day ago
Posted on 02-13-11 03:22:26 AM Link | Quote
oh btw

*000619 [@Bloodstar] now i'm fucking livid.
*000630 [@Bloodstar] i lost an entire fucking grade because I named my program structures3.cpp
*000634 [@Bloodstar] instead of structures.cpp
*000655 [@Bloodstar] i loathe people who do that kind of thing

yeah i dunno if i want to finish this class.

____________________
BMF IS A LEAPFROG
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8216/11363

Joined
07-06-07
Active
1 day ago
Posted on 02-23-11 07:18:06 PM Link | Quote
hey guys

user input is bad :specialed:

____________________
BMF IS A LEAPFROG
Orlandu


Holy SwordsMan
Level: 137


Posts: 4386/5913
EXP: 30480262
For next: 392593

Since: 01-12-10

From: Las Vegas, NV

Since last post: 4.0 years
Last activity: 208 days

Posted on 02-23-11 08:39:48 PM Link | Quote
Only if the input is from a bad user.

____________________
4386406855859755


ffaorlandu@yahoo.com



devin

Yoshi
i'm mima irl
Level: 112


Posts: 1784/3519
EXP: 14932604
For next: 405601

Since: 04-29-08

Pronouns: any
From: FL

Since last post: 306 days
Last activity: 3 days

Posted on 02-23-11 09:58:22 PM Link | Quote
garbage in, garbage out
useful data in, garbage out anyway

____________________

Photo by Luc Viatour
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8348/11363

Joined
07-06-07
Active
1 day ago
Posted on 03-13-11 04:47:32 AM Link | Quote
Originally posted by Cool Timpani
garbage in, garbage out
useful data in, garbage out anyway

exactly

this assignment hasn't fucking been graded yet
end the suspense already


____________________
BMF IS A LEAPFROG
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8351/11363

Joined
07-06-07
Active
1 day ago
Posted on 03-13-11 08:35:59 PM Link | Quote
suspense ended

48/50

well 45 after a compiler error deduction thanks to c++, but i'm not going to argue over it

doing another thing today - agrghgrahghr.

____________________
BMF IS A LEAPFROG
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8394/11363

Joined
07-06-07
Active
1 day ago
Posted on 03-20-11 10:16:42 PM Link | Quote
not graded yet! argh! doing another thing today

now I'm doing pointers

whoo

ow

____________________
1353 Days


8394 Posts


28294862 EXP


292112 EXP Next


5056 EXP per post


8.267 seconds Idle Time


Overall Ranking: 7
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 8400/11363

Joined
07-06-07
Active
1 day ago
Posted on 03-22-11 07:01:29 PM Link | Quote
Hey letting the user know the window may be too small to display the information is bad :specialed:

so are short comments that don't go into excessive details (this one isn't as mindfuckingly dumb but still)

____________________
1355 Days


8400 Posts


28344705 EXP


242269 EXP Next


5061 EXP per post


8.264 seconds Idle Time


Overall Ranking: 7
Pages: 1 2Next newer thread | Next older thread
Jul - Innocent Town - C++ New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

28 database queries.
Query execution time: 0.081494 seconds
Script execution time: 0.054053 seconds
Total render time: 0.135547 seconds