Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- #include <stdio.h>
- #include <windows.h>
- using namespace std;
- int account(){
- int i;
- for ( i = 0;i<500;)
- i++;
- return i++;
- }
- int main()
- { // Parece que covertir um x inteiro para double;
- char r;
- int x;
- int y = 10;
- double cast;
- const char n [4] = {'S','s','N','n'};
- cout<<"Digite o valor do seu dinheiro"<<endl;
- cin>>x;
- cout<<"Voce recebeu +10? S/N"<<endl;
- cin>>r;
- if( r == n[1] || r == n[2]){
- //cast = static_cast <double>(x) + y + account() + system("color 2"); Existe essa maneira de calcular;
- cast = static_cast <double>(x);
- cout<<cast<<endl;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement