File tree Expand file tree Collapse file tree
getting-started/darttutorial
reference/objective-c/objective-c-generated Expand file tree Collapse file tree Original file line number Diff line number Diff line change 239239</ span > </ span > < span style =display:flex > < span > < span style =color:#8f5902;font-style:italic > // Reads the entire address book from a file and prints all
240240</ span > </ span > </ span > < span style =display:flex > < span > < span style =color:#8f5902;font-style:italic > // the information inside.
241241</ span > </ span > </ span > < span style =display:flex > < span > < span style =color:#8f5902;font-style:italic > </ span > < span style =color:#000 > main</ span > < span style =color:#000;font-weight:700 > (</ span > < span style =color:#000 > List</ span > < span style =color:#000 > arguments</ span > < span style =color:#000;font-weight:700 > )</ span > < span style =color:#000;font-weight:700 > {</ span >
242- </ span > </ span > < span style =display:flex > < span > < span style =color:#204a87;font-weight:700 > if</ span > < span style =color:#000;font-weight:700 > (</ span > < span style =color:#000 > arguments</ span > < span style =color:#000;font-weight:700 > .</ span > < span style =color:#000 > length</ span > < span style =color:#ce5c00;font-weight:700 > !=</ span > < span style =color:#0000cf;font-weight:700 > 1</ span > < span style =color:#000;font-weight:700 > )</ span > < span style =color:#000;font-weight:700 > {</ span >
242+ </ span > </ span > < span style =display:flex > < span > < span style =color:#204a87;font-weight:700 > if</ span > < span style =color:#000;font-weight:700 > (</ span > < span style =color:#000 > arguments</ span > < span style =color:#000;font-weight:700 > .</ span > < span style =color:#000 > length</ span > < span style =color:#ce5c00;font-weight:700 > !=</ span > < span style =color:#0000cf;font-weight:700 > 1</ span > < span style =color:#000;font-weight:700 > )</ span > < span style = color:#a40000 > </ span > < span style =color:#000;font-weight:700 > {</ span >
243243</ span > </ span > < span style =display:flex > < span > < span style =color:#000 > print</ span > < span style =color:#000;font-weight:700 > (</ span > < span style =color:#4e9a06 > 'Usage: list_person ADDRESS_BOOK_FILE'</ span > < span style =color:#000;font-weight:700 > );</ span >
244244</ span > </ span > < span style =display:flex > < span > < span style =color:#000 > exit</ span > < span style =color:#000;font-weight:700 > (</ span > < span style =color:#ce5c00;font-weight:700 > -</ span > < span style =color:#0000cf;font-weight:700 > 1</ span > < span style =color:#000;font-weight:700 > );</ span >
245245</ span > </ span > < span style =display:flex > < span > < span style =color:#000;font-weight:700 > }</ span >
You can’t perform that action at this time.
0 commit comments