- Pages:
- 1
- 2
| How do I get this to not close automatically; have this code that i can't use cin.get | |
|---|---|
| Topic Started: Apr 8 2009, 09:19 AM (359 Views) | |
| Darksorrow131 | Apr 11 2009, 08:30 PM Post #11 |
|
Note the two lines I added (labeled with /******/). You can change it slightly to ask the user whether to continue by adding a break statement somewhere.
|
|
(let loop () (loop)) ((lambda (x) (x x)) (lambda (x) (x x))) (let ((k #f)) (call/cc (lambda (cc) (set! k cc)) (k)) ((call/cc call/cc) (call/cc call/cc)) -- Infinite loops are awesome! -- Tell me if you have other awesome infinite loops! | |
![]() |
|
| Cosmic_AC | Apr 11 2009, 08:52 PM Post #12 |
|
Actually, your function does lbs2oz. |
| ++++++++++[>+++++++>+++++++++++<<-]>---.>+.++++.------.----.------.<<++++[>>+++++++<<-]>>.<---.+++. | |
![]() |
|
| SheWasAlmost18 | Apr 11 2009, 10:00 PM Post #13 |
|
thx cna you explain waht /******/ is? |
| We are made kind by being kind | |
![]() |
|
| Darksorrow131 | Apr 11 2009, 10:08 PM Post #14 |
|
It's nothing, just something I added to make it obvious which line I added. |
|
(let loop () (loop)) ((lambda (x) (x x)) (lambda (x) (x x))) (let ((k #f)) (call/cc (lambda (cc) (set! k cc)) (k)) ((call/cc call/cc) (call/cc call/cc)) -- Infinite loops are awesome! -- Tell me if you have other awesome infinite loops! | |
![]() |
|
| SheWasAlmost18 | Apr 11 2009, 10:35 PM Post #15 |
|
ohhh ok |
| We are made kind by being kind | |
![]() |
|
| MMZJSFMMX10MM | Apr 12 2009, 03:16 AM Post #16 |
|
/* */ is a block comment. When he put it like /*****/ it just thought it was a block comment. A block comment is similar to a // comment. Except everything after // is ignore when the program runs. Everything inside /* I am ignored */ gets ignored. |
![]() ![]()
| |
![]() |
|
| Cosmic_AC | Apr 19 2009, 01:13 AM Post #17 |
|
/* */ is used to specify a comment that is bigger or smaller than exactly one line. We really need some sort of indentation and/or bbcode syntax that works inside a [code] tag. |
| ++++++++++[>+++++++>+++++++++++<<-]>---.>+.++++.------.----.------.<<++++[>>+++++++<<-]>>.<---.+++. | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Application Programming Support · Next Topic » |
- Pages:
- 1
- 2









2:16 AM Jun 20