Monday, September 14, 2009

Pointers for the Hands-on (Third) Exam

Please familiarize yourself with the following functions as you will use them on your exam:

atoi()

Syntax:
#include 
int atoi( const char *str );


Description:
The atoi() function converts str into an integer, and returns that integer. str should start with some sort of number, and atoi() will stop reading from str as soon as a non-numerical character has been read.

Example:
i = atoi( "512.035" );

RESULT: i set to 512.


atof()

Syntax:
#include 
double atof( const char *str );


Description:
The function atof() converts str into a double, then returns that value. str must start with a valid number, but can be terminated with any non-numerical character, other than "E" or "e".

Example:
x = atof( "42.0is_the_answer" );

RESULT: x set to 42.0
Source: http://www.elook.org/programming/c/atof.html


No need to learn complicated matrix operations like those involve in finding solutions to linear equations. You just have to know the Basic Matrix and Row operations.


Good luck!

No comments:

Post a Comment