Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PRIMER AVANCE DE NETFLIX
#include <stdio.h> typedef struct { char nombre[26]; char codigo[4]; float rating; unsigned short cantidad; char cantGeneros[5][11]; }datosDeSeries; void input(datosDeSeries *, unsigned short, unsigned short, unsigned short); int main(void) { unsigned short N, i, j; datosDeSeries series[1000]; scanf("%hu\n", &N); input(series, N, i, j); /* for (i = 0 ; i < N ; i ++) { printf("%s\t%s\t%.1f\t%hu\t", series[i].nombre, series[i].codigo, series[i].rating, series[i].cantidad); for (j = 0 ; j < series[i].cantidad; j++) { printf("%s ", series[i].cantGeneros[j]); } printf("\n"); }*/ return 0; } void input(datosDeSeries *array, unsigned short N, unsigned short i, unsigned short j) { printf("Datos\n\n"); for (i = 0 ; i < N ; i++) { scanf("%25[^#]s", array[i].nombre); getchar(); scanf("%3[^#]s", array[i].codigo); getchar(); scanf("%f", &array[i].rating); getchar(); scanf("%hu", &array[i].cantidad); getchar(); for (j = 0 ; j < array[i].cantidad; j++) { scanf("%11[^#]s", array[i].cantGeneros[j]); getchar(); } } }
run
|
edit
|
history
|
help
0
Strncpy memcpy
merge two dice clay to head sport green globe attacked me seven of prime minister fired
1.c
hello world
ayudantia 1 mod 4
Memory leak
pseudo hw v1
Project 3 part 2 Book v10.2
B_141202_PALINDROMO
18BCE2182 ASSESS_1 Q1-9