This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Stations on the Yonge/Spadina/Sheppard Subway Line */ | |
static const char* stationNamesYongeSpadinaSheppard = | |
[ | |
"Bayview", "Bessarion", "BloorYonge", "College", "Davisville", "DonMills", | |
"Downsview", "Dundas", "Dupont", "Eglinton", "EglintonWest", "Finch", | |
"Glencairn", "King", "Lawrence", "LawrenceWest", "Leslie", "Museum", | |
"NorthYorkCentre", "Osgoode", "Queen", "Queen'sPark", "Rosedale", | |
"SheppardYonge", "Spadina", "StAndrew", "StClair", "StClairWest", | |
"StGeorge", "StPatrick", "Summerhill", "Union", "Wellesley", "Wilson", | |
"YorkMills", "Yorkdale" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "unistd.h" | |
#include "stdio.h" | |
/* Reads one line of data and produces the LRC of all the bytes read. */ | |
int main ( int argc, char* argv[] ) | |
{ | |
char buf[1]; | |
int n, lrc = 0; | |
while ( n = read(0, buf, 1) > 0 ) /* read one byte from std::in */ | |
{ |
NewerOlder