Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Imaginamos esto
- char aux[15] = "Frase cortilla";
- char **array;
- int f = 0;
- //Escribimos en el array a pelo
- len_aux = strlen(aux);
- for(int i = 0; i < num_filas_a_escribir; i++){
- for(int p = 0; p < len_aux; p++){
- sprintf(&array[p][i],"%c",aux[p]);
- }
- }
- //Resultado
- ~>: Frase cortilla
- //Otra forma mas simple
- strcpy(array[numero_fila],aux);
- //Resultado
- ~>: Frase cortilla
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement