Online Help System for HP Unix and C++ Commands:

Note: You must be using the HP-UX machines at Chico for this help system to work!

Help is available on the following. Type help commandname

For example, type help cd for help on the change directory command.

COMMANDS ( Type help commands for this list )

cal print a calendar

cat catenate files ( send stream of files to screen )

CC C++ compiler

cc C compiler

cd change directory

chmod change access permissions for a file

cp copy files

date display the date and time

df display available disk space

dos2ux converts ASCII file in DOS format to HP-UX format

du display information on disk usage

echo display message

elm e-mail program

exit log out

kill terminate a process

ln create a link (an alias for a file or directory)

ls list contents of directory

mailx e-mail program

man on-line manual

mesg enable/disable reception of messages

mkdir make directory

more send file to screen in paged format

mv move files

page send file to screen in paged format

ps display process status

pwd displays the current directory ( print working directory )

rm remove files

sleep suspend execution

spell spell checker

uuencode encode a binary file for mailing

uudecode decode a binary file after mailing

wc word count

who display users who are logged on

(For more detail on Unix commands, use the on-line manual.

For example, type man rm for more on the rm command.)

 

 

UTILITIES ( Type help utilities for his list. )

ddd HP-UX debugger

elm mail program

emacs another editor

ftp file transfer utility

make make utility

pico very simple editor

vi the standard Unix editor

vi_advanced more on vi

xdb HP-UX debugger

 

 

C/C++ STATEMENTS ( Type help statements for this list. )

continue jump to end of loop

delete operator which releases dynamically allocated memory

dowhile loop until condition becomes false

for set initial value and loop while condition, incrementing as

indicated.

if conditional execution

new operator which dynamically allocates memory

sizeof function which returns the size of an object or a type of object

switch multiple branching statement

while loop while condition is true

 

C++ TEMPLATES (Type help template)

 

STANDARD LIBRARIES

Input/Output ( #include <stdio.h> ) ( help stdio for this list )

fclose close a file

fflush flush a stream

fgetc get a character from a stream

fgets get a string from a stream

fprintf prints to a stream

fputc sends a character to a stream

fputs sends a string to a stream

fscanf scans and formats input from a stream

getc get a character from stdin

getchar get a character from stdin

gets get a string from stdin

printf send formatted output to stdout

putc sends a character to stdout

putchar sends a character to stdout

puts sends a string to stdout

sprintf sends formatted output to a string

sscanf scans and formats input from a string

ungetc pushes a character back into the input stream

Input/Output

Iostream

( #include <iostream.h> ) ( help iostream for this list )

1. The following require iostream.h only:

cin predefined istream for keyboard. The following functions

are members of the class:

get Type help get

getline Type help getline

ignore type help ignore

cout predefined ostream for the screen. The following functions

are members of the class:

put Type help put

putback Type help putback

cerr ostream object tied to standard error.

clog buffered ostream object tied to standard error.

hex sets hex representation

oct sets octal representation

ws extracts and discards whitespace characters

flush flush an ostream

endl append a newline ('\n') and flush an ostream

ends append a terminating null character ('\0')

to an ostream

seek

ifstream

( #include <ifstream.h> )

2. The following also require #include <iomanip.h>:

setw sets field width for numbers and strings

precision sets floating point precision

setfill sets fill character

setbase sets number base ( 8, 10, or 16 )

 

 

 

 

 

General Utilities ( #include <stdlib.h ) ( help stdlib for this list )

abs

atof

atoi

atoi

calloc

div

free

malloc

rand

sizeof

srand

system

Math functions ( #include <math.h> and compile with the -lm switch )

( help math for this list )

ceil

cos

exp

fabs

floor

fmod

log

pow

sqrt

sin

tan

 

String Functions ( #include<string.h> ) ( help string for this list )

memcpy

memmove

strcat

strchr

strcmp

strcpy

strlen

strncat

strncmp

strncpy

strstr

strtok

 

Character handling ( #include <ctype.h> ) ( help ctype for this list )

isalnum

isalpha

isascii

iscntrl

isgraph

islower

isprint

ispunct

isspace

isupper

isxdigit

tolower

toupper

Time Functions ( #include <time.h> ) ( help time for this list )

asctime

clock

clock_t

time_t An arithmetic type used to represent time.

tm The structure tm defines the time.

The Preprocessor (help preprocessor for this list )

define define a variable

endif end conditional block

include include a file