М
Молодежь
К
Компьютеры-и-электроника
Д
Дом-и-сад
С
Стиль-и-уход-за-собой
П
Праздники-и-традиции
Т
Транспорт
П
Путешествия
С
Семейная-жизнь
Ф
Философия-и-религия
Б
Без категории
М
Мир-работы
Х
Хобби-и-рукоделие
И
Искусство-и-развлечения
В
Взаимоотношения
З
Здоровье
К
Кулинария-и-гостеприимство
Ф
Финансы-и-бизнес
П
Питомцы-и-животные
О
Образование
О
Образование-и-коммуникации
dominikakrestina
dominikakrestina
25.08.2020 04:36 •  Информатика

Напишите программу организующую хранение в файле нескольких записей (до 10) о результатах экзамена. каждая запись содержит 3 поля: номер записи, фамилия, оценка. организуйте вывод всей информации по форме: { 1 иванов 3 }

👇
Ответ:
Yita
Yita
25.08.2020
См. файл во вложении
4,4(10 оценок)
Открыть все ответы
Ответ:
Andriy1208
Andriy1208
25.08.2020
#include <iostream>
using namespace std;

int main()
{
    cout << "Enter month num: " << endl;
    unsigned month = 0;
    cin >> month;
    if (month <= 12 && month >= 1) {
    switch (month / 3) {
    case 1:
        cout << "Spring" << endl;
        break;
    case 2:
        cout << "Summer" << endl;
        break;
    case 3:
        cout << "Autumn" << endl;
        break;
    default:
        cout << "Winter" << endl;
        break;
    }
    } else {
     cout << "NO" << endl;   
    }
return 0;
}
4,4(78 оценок)
Ответ:
pakipysi
pakipysi
25.08.2020
Program textFind;
uses StrUtils;
var text,buffer : String;
var tpos,lastpos,counter,biggest : Integer;
begin
  tpos := 0;
  text := '';
  while(tpos = 0) do begin
    readln(buffer);
    text += buffer;
    tpos := pos('.',buffer)
  end;
  lastpos := 1;
  tpos := PosEx(' ',text,lastpos);
  if tpos = 0 then 
    tpos := PosEx('.',text,lastpos);
  biggest := tpos-1;  lastpos := tpos+1;
  while(not (tpos = 0)) do begin
    tpos := PosEx(' ',text,lastpos);
    if tpos = 0 then
        tpos := PosEx('.',text,lastpos);
    if (tpos-lastpos) > biggest then
        biggest := tpos-lastpos; 
   lastpos := tpos+1;
  end;
  lastpos := 1;  counter := 0;
  tpos := PosEx(' ',text,lastpos);
  if tpos = 0 then
    tpos := PosEx('.',text,lastpos);
  while(not (tpos = 0)) do begin
    if (tpos-lastpos) = biggest then
        counter += 1;
    lastpos := tpos + 1;
    tpos := PosEx(' ',text,lastpos);
    if tpos = 0 then
        tpos := PosEx('.',text,lastpos);
  end;
writeln(counter);
end.
4,7(70 оценок)
Новые ответы от MOGZ: Информатика
logo
Вход Регистрация
Что ты хочешь узнать?
Спроси Mozg
Открыть лучший ответ