// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// atoi
#include
#include // must include stdlib.h
// to use atoi
int main()
{
char[4] mynumber = '123\0' ;
// atoi converts a character string that is a number
// into a more usable integer
int mynewnumber = atoi(mynumber) ;
cout << mynewnumber << endl ;
//so now i could do this
int doubled = mynewnumber * 2 ;
cout << doubled << endl ;
return 0 ;
}
// output is
// 123
// 246
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)