float a = 5.0;
int b = static_cast<int>(a);
int a = 3;
float b = (float)a;
float var_a = 9.99;
int var_b = (int)var_a;
Code Example |
---|
Cpp :: for loop f# |
Cpp :: how to sort vector of struct in c++ |
Cpp :: how to find last character of string in c++ |
Cpp :: rand() c++ |
Cpp :: how to reverse a string in c++ |
Cpp :: c++ pass array to a function |
Cpp :: insert a character into a string c++ |
Cpp :: c++ basic snippet |
Cpp :: selection sort c++ algorithm |
Cpp :: lua table contains |
Cpp :: max in c++ |
Cpp :: new float array c++ |
Cpp :: c++ 14 for sublime windoes build system |
Cpp :: convert characters to lowercase c++ |
Cpp :: stack implementation through linked list |
Cpp :: creare array con c++ |
Cpp :: Max element in an array with the index in c++ |
Cpp :: quick sort |
Cpp :: check if a key is in map c++ |
Cpp :: SUMOFPROD2 |
Cpp :: vector of vectors of pairs c++ |
Cpp :: c++ average vector |
Cpp :: c ++ split_string |
Cpp :: c++ vector |
Cpp :: stack class implementation to file unix-style in c++ |
Cpp :: set of vectors c++ |
Cpp :: heredar constructor c++ |
Cpp :: copy constructor c++ syntax |
Cpp :: potato |
Cpp :: c/c++ windows api socket wrappers |