Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct str { // Структурное представление
- char name [21]; // строки в файле:
- int product[3]; // Имя, продуктивность за три года.
- };
- struct str temp;
- scanf("%s", temp.name);
- for(i=0; i<3; i++){
- scanf("%d", &temp.product[i]);
- }
- printf("%-20s%-6d%-6d%-6d\n", temp.name, temp.product[0], temp.product[1], temp.product[2]); // в оригинале кода fprintf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement