Any C++ programmers?

Never mind, I found it.

------------------
Ferazel Rocks!

There is a really easy way to make this game but it is too hard to explain to someone that does not know a lot of C++. A good book to get to learn the basic concepts of making computer games is "Tricks of the Game Programming Gurus". Only get that book if you are using a dos compiler or a windows compiler that can compile in dos mode.(which most can do like visual C++). If you don't want to buy a book then look on the internet for "grid based computer games". That is the key to making this game.

I should be moving this topic, but I won't. Not while it's helping me. 🙂

1. I am having a heck of a time getting the console screen to clear on demand. sys("cls") works on PCs, but on CW nothing does.

2. getchar() is acting weird on me. Isn't it supposed to produce output like "AAbbCC11"? Instead I get this (typed exactly):
a

a
a
B
B
1
1

etc. Is getchar() just one of those console things that don't serve a purpose in true Mac programming, or what? Thanks.

------------------
MAGNETIC POEM #455
twice in a dream i visioned
nerds content with empowering
man and space

Quote

Originally posted by spamguy:
**1. I am having a heck of a time getting the console screen to clear on demand. sys("cls") works on PCs, but on CW nothing does.
**

hmm. I don't know.
Does it really matter?
The console is only good for learning programming, and quick tests.
Maybe you could just do several returns ("n", I think...) to fake it.

Quote

Originally posted by spamguy:
**2. getchar() is acting weird on me. Isn't it supposed to produce output like "AAbbCC11"? Instead I get this (typed exactly):
**

What does getchar() do?

------------------
"Give me a large enough hard drive, a fast enough modem, and I can download the web!"

I guess if you don't know what getchar() does, I don't need to know it. The quicker I bail out of console programming, the better.

------------------
MAGNETIC POEM #455
twice in a dream i visioned
nerds content with empowering
man and space

I will be moving this to "Just Chat", since it doesn't apply to FW.

------------------
MAGNETIC POEM #455
twice in a dream i visioned
nerds content with empowering
man and space