Untitled Document Book Cover

PC-based compiling

Course Design

Compiling Hints

Scanf() information.

Assorted C routines.

Errata

Program files

Useful, free, scientific software.

Links (open in new window):
Will's Homepage

running with scanf()

I totally forgot to describe how to run program ddbd.c from Chapter 3. These instructions are important because the program uses the scanf() function on line 4. Although I discuss the function on page 60, a new issue is brought up while running the program.

After compiling the program, you'll run xbd. When the program prints "Enter the number of runs:" you should type "10" or some such number (1 is OK, too). Then hit return/enter. There will be no UNIX-like prompt--just what is given in the printf() statement. After hitting return, you should then get averaged results printed out.

If you redirect the output from this program, it'll print "Enter the number of runs: " to your redirection file, but still expect you to input a number from the terminal and hit return. After you do that, the program will run and output numbers to the redirection file.