Guest User

Untitled

a guest
Dec 13th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. struct elementodos interpretar(char* element){
  2.  
  3. struct elementodos separado;
  4. char** pontpont = (char**)malloc(200 * sizeof(char*));
  5.  
  6. int i, a, cont, tem[100], cdd, dll, obs,conta,jubs, xevs;
  7. int mult[100];
  8. char* brasil = (char*)malloc(100 * sizeof(char));
  9. char* bahea = (char*)malloc(100 * sizeof(char));
  10. char** elemfim = (char**)malloc(100 * sizeof(char*));
  11. char* zoia = (char*)malloc(100 * sizeof(char));
  12.  
  13. ...
  14.  
  15. for (i=0;i<cont;i++){
  16.  
  17. separado.multidor[i]=mult[i];
  18. separado.cadaum[i]=elemfim[i];
  19.  
  20. }
  21. separado.numero=cont;
  22.  
  23. return separado;
  24. }
  25.  
  26. struct elementodos{
  27. int multidor[100];
  28. int numero;
  29. char** cadaum[100];
  30. };
  31.  
  32. int main(){
  33. struct elementodos a;
  34. ...
  35.  
  36. a= interpretar(b);
  37. return 0;
Add Comment
Please, Sign In to add comment