#include<iostream.h>
#include<conio.h>
#include<stdlib.h >
// defines the atoi( ) function
void main()
{
int i ;
char *string = "145.97" ;
i = atoi ( string ) ;
cout<< "string = "<<string<<"\t integer = "<<i;
getch ( ) ;
}
Labels: C++ Codes, C++ Function Codes
Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies| |
---|
0 comments:
Post a Comment