(Move to ...)
▼
Program Simple Type Casting
#include<iostream.h>
int main( )
{
// casts a double value as an int
double v = 1234.56789;
int n = int (v);
cout << " v = " << v <<", n = " << n ;
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment