KöMaL - Középiskolai Matematikai és Fizikai Lapok
 English
Információ
A lap
Pontverseny
Cikkek
Hírek
Fórum

Rendelje meg a KöMaL-t!

VersenyVizsga portál

Kísérletek.hu

Matematika oktatási portál

I. 160. One often finds incorrect HTML pages on the web, with incomplete commands as a typical error. Your program should check whether every <command> in the HTML file has a closing </command> tag. You do not need to worry about whether it is a valid HTML command, or if it does not require a closing tag at all (e.g. <img src...>) - you should simply examine every HTML command pair. However, the program should issue a warning if a closing sequence has a wrong order (e.g. <b><i></b></i>). The name of the file to be checked is given as a command line parameter (e.g. i160.exe ANYTHING.HTML). Each line should be examined. If a <command> </command> pair does not have its opening or closing tag, you should give a warning. These messages should be stored in the messages.txt file created by your program and containing the missing opening or closing tags and the line numbers of the original file where they occurred.

The source code of your program (i160.pas, i160.cpp, ...) should be submitted.

(10 points)

Deadline expired on 15 June 2007.


Google Translation (Sorry, the solution is published in Hungarian only.)

Balambér Dávid (Budapest, Fazekas Mihály Főv. Gyak. Gimn.) megoldása:

I160.PAS


Statistics on problem I. 160.
11 students sent a solution.
10 points:Balambér Dávid, Gilián Zoltán, Véges Márton.
9 points:Danka Miklós András, Földes Imre, Kovács 129 Péter, Ridinger Tamás, Szoldatics András, Vincze János.
7 points:2 students.


  • Problems in Information Technology of KöMaL, May 2007

  • Támogatóink:   Ericsson   Cognex   Emberi Erőforrás Támogatáskezelő   Emberi Erőforrások Minisztériuma   Nemzeti Tehetség Program    
    MTA Energiatudományi Kutatóközpont   MTA Wigner Fizikai Kutatóközpont     Nemzeti
Kulturális Alap   ELTE   Morgan Stanley