Advertisement
Jambix64

PassandoArrysParaFuncao

Aug 1st, 2016
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip> //Bliclioteca de espaçao setw()
  3. #include <winsock2.h>
  4. #include <stdlib.h> // Responsavel por malloc,calloc,realloc e free
  5. #include <fstream>
  6. #include <windows.h>
  7. #include <ctime>
  8. #include <string>
  9. #define max 100
  10.  
  11. using namespace std;
  12. void funcaoMatriz(const char[],const int* b );//
  13.  
  14. int main(){
  15.     int x = 5;
  16.    char num [x] = {};
  17.    cin.getline(num,x);
  18.  
  19.     funcaoMatriz(num,&x);// Nao aceita em argumentos de funcao arrys de caracteres ponteiros exemplo (num,&x) num adicionando                 referencia dara erro.;
  20.  
  21.    system("pause");
  22.    return 0;
  23.  
  24. }
  25. void funcaoMatriz(const char a[], const int* b){
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement