Winter 2004 UCLA CS 31 Section 1 (Shinnerl)

Programming Project 3 FAQ File

The most recently added question is shown last.
Questions are in boldface. Answers are in regular text.

Last Update: 12:00PM, Wed., 1/21/04.

  1. How do I raise a number to a power (exponent) in C++? E.g., how do I evaluate b p?

    Include the <cmath> library and use the pow(...) function. E.g., to get b p, use pow(b,p); .



Project 3 home page