Advertisement
Jambix64

BibliotecaMatematica

Jul 14th, 2016
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1.  #include <iostream>
  2.  #include <cmath> // Biblioteca da matematica; funcao sqrt();
  3.  using namespace std;
  4.  
  5.   #define a  5 // definindo um valor a uma definição . Variaveis de definicao não amazena valores;
  6.   #define b  5
  7. int main(){
  8.     int  d;
  9.     sqrt(d =  (a+b));// Funcao matematica,    
  10.      cout<<d<<endl;
  11.          
  12.      #undef a
  13.      #undef b // deletando um valor de uma definiçãp
  14.      cin.get();
  15.      #define a  10 // Adicionando um novo valor a definicao
  16.      #define b  10
  17.      
  18.         sqrt(d =  (a+b));// Funcao matematica, WARDING NAO TENH CERTEZA DE QUE POSSA FAZER DESSA MANEIRA.    
  19.         cout<<d<<endl;
  20.      
  21.    return 0;  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement