A Conversation for "The Orchard" - the h2g2 Mac Users' Group!
C++ programming in Mac OS 9
T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly. Started conversation Feb 26, 2003
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?
C++ programming in Mac OS 9
Silly Willy Posted Mar 4, 2003
I really wish I could help but I can't
If you were using OS X there'd be loads of tutorials for bsd environments.
C++ programming in Mac OS 9
T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly. Posted Mar 4, 2003
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
C++ programming in Mac OS 9
dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC Posted Mar 5, 2003
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
T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly. Posted Mar 5, 2003
Key: Complain about this post
C++ programming in Mac OS 9
- 1: T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly. (Feb 26, 2003)
- 2: Silly Willy (Mar 4, 2003)
- 3: T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly. (Mar 4, 2003)
- 4: dElaphant (and Zeppo his dog (and Gummo, Zeppos dog)) - Left my apostrophes at the BBC (Mar 5, 2003)
- 5: T.B. Falsename ACE: [stercus venio] I have learned from my mistakes, and feel I could repeat them exactly. (Mar 5, 2003)
More Conversations for "The Orchard" - the h2g2 Mac Users' Group!
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."