Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
RailRoadData::parseEarnings Method

Parses one line of earnings.

C++
void parseEarnings(
    int decade, 
    const std::string& line, 
    int width
);
Parameters 
Description 
int decade 
Decade to use. 
const std::string& line 
Line to parse. 
int width 
Width of each earnings field. 

The decade indicator can be one of the following:

first 10 years. 
second 10 years. 
etc. 
up to eighth 10 years. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!