Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- struct dados{
- int x = 16;
- int y = 2;
- };
- int main(){
- dados ob;
- float res = (float)ob.x /ob.y; // Usando casting
- wchar_t name = L'a';
- cout<<res<<endl;
- cout<<(char)name<<endl; // Usando casting
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement