A Conversation for "The Orchard" - the h2g2 Mac Users' Group!

C++ programming in Mac OS 9

Post 1

T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly.

I'm trying to learn C++, and so bought an ANSI C++ book, to use. I am using MPW to write my programs, but the source in the book doesn't always work. things like cout are ok, but cin won't work, as it ouputs the program to a text file, not a window/screen. 'std::cout << ' doesn't work, as the compiler doesn't recognise 'std::' so I end up using just 'cout <<' anyone know what I should be doing?

smiley - cheers


C++ programming in Mac OS 9

Post 2

Silly Willy

I really wish I could help but I can't smiley - sadface

If you were using OS X there'd be loads of tutorials for bsd environments.

smiley - sadface


C++ programming in Mac OS 9

Post 3

T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly.

yup, and I could easily port programs over to my Linux box, but I need a biger harddisk before i install os X, although my copy arived on friday and I'm desperate to install it smiley - biggrin

smiley - cheers


C++ programming in Mac OS 9

Post 4

dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC

Does this help?

http://developer.apple.com/tools/mpw-tools/mpw_faq.html#io

Also from a link on that page to the MPW README:

"To build your own programs, use the "Create Build Commands" and "Build" items in the Build menu. Select the "SIOW App." radio button to build your program as an SIOW (Simple Input/Output Window) application. The SIOW package enables your program to interact with the user through a simple window and to exhibit, at least partially, typical Macintosh appearance and behavior. See Chapter 15 in the "Building and Managing Programs in MPW" manual for more information about SIOW applications."

I can't be any more help than that, because I never used MPW. I did use Think C a long, long time ago, and if I remember correctly you had to include stdio.h, but that's a whole other thing entirely.


C++ programming in Mac OS 9

Post 5

T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly.

Thanks, I'll try that, it may work then.

smiley - cheers


Key: Complain about this post