216 C++ Seasoned pro #include stream.h const int MAXLEN = 80 class outstring class outstring { private: int size char str[MAXLEN] public: outstring() { size=0 } ~outstring() {size=0 } void print() void assign(char *chrs) } void outstring::print() { int i for (i=0 i size i++) cout str[i] cout "\n" } void outstring::assign(char *chrs) { int i for (i=0 chrs[i] != '\0' i++) str[i] = chrs[i] size=i } main (int argc, char **argv) { outstring string string.assign("Hello World!") string.print() } Manager “George, I need a program to output the string ‘Hello World!’”
11 System Administration Unix’s Hidden Cost If the automobile had followed the same development as the com- puter, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year killing everyone inside. —Robert Cringely, InfoWorld All Unix systems require a System Administrator, affectionately known as a Sysadmin. The sysadmin’s duties include: • Bringing the system up. • Installing new software. • Administrating user accounts. • Tuning the system for maximum performance. • Overseeing system security. • Performing routine backups. • Shutting down the system to install new hardware. • Helping users out of jams. A Unix sysadmin’s job isn’t fundamentally different from sysadmins who oversee IBM mainframes or PC-based Novell networks. But unlike these