环滇骑迹 [0] 作为前言的统计数据

「环滇骑迹」是一系列试验性作品,测试内容与形式的分离,通过代码的形式书写游记。整篇文章是可以通过编译的 C++ 源文件。2013 年文稿就已全部完工,超过 150 Mb 名为 “ Tour de Lac Dian ”的 mht 文件,但一直没有合适的渠道发布,只得静静的躺在硬盘里。Blog 2.0 工程正式完工后,终于得以上线,所谓「念念不忘,必有回响」。


#include statistics.h

char[] town

struct pic

struct spending
{
int cost;
char[] addrr;
char[] type;
};

class log
{
int date;
char[] person;
spending launch;
spending dinner;
spending shelter;
};

class log dianChiLog[3];

dianChiLog.date[0] = 2013.2.17;
dianChiLog.date[1] = 2013.2.18;
dianChiLog.date[2] = 2013.2.19;

dianChiLog.person[0] = " Myself && Pilot_B 毕恩崇 ";
dianChiLog.person[1] = " Myself ";
dianChiLog.person[2] = " Myself && Mr_Girl 刘诗颖 ";

dianChiLog.lunch.type[0] = "农家乐";
dianChiLog.lunch.addr[0] = "猫猫箐";
dianChiLog.lunch.cost[0] = 15 * 2;

dianChiLog.dinner.type[0] = "餐厅";
dianChiLog.dinner.addr[0] = "温泉镇";
dianChiLog.dinner.cost[0] = 30 * 2;

dianChiLog.shelter.type[0] = "小旅馆";
dianChiLog.shelter.addr[0] = "温泉镇";
dianChiLog.shelter.cost[0] = 60 * 2;

// X * 2 means X is the cost for a single man, the cost in total is for two.

dianChiLog.lunch.type[1] = "食堂";
dianChiLog.lunch.addr[1] = "石龙坝水电站";
dianChiLog.lunch.cost[1] = "10";

dianChiLog.dinner.type[1] = "烧烤摊";
dianChiLog.dinner.addr[1] = "上蒜乡";
dianChiLog.dinner.cost[1] = 32;

//Delicious! 炒米线 = 6RMB; 番茄蛋汤 = 6RMB; 炸蚂蚱 = 20RMB; 小萝莉倒茶更令人受宠若惊。

//@ Mr_Girl 刘诗颖 I was calling you at this very time.

dianChiLog.shelter.type[1] = "小旅馆";
dianChiLog.shelter.addr[1] = "上蒜乡";
dianChiLog.shelter.cost[1] = 60;

dianChiLog.lunch.type[0] = "啃干粮";
dianChiLog.lunch.addr[0] = "呈贡区";
dianChiLog.lunch.cost[0] = 0;

dianChiLog.dinner.type[0] = "Home";
dianChiLog.dinner.addr[0] = "Privacy";
dianChiLog.dinner.cost[0] = 0 ;

dianChiLog.shelter.type[0] = "Home";
dianChiLog.shelter.addr[0] = "Privacy";
dianChiLog.shelter.cost[0] = 0 ;

// "0" means cannot be calculated

class route
{

town "昆明城区";
town "碧鸡镇";
town "太平镇";
town "连然镇";
town "温泉镇";
town "海口镇";
town "古城镇";
town "昆阳镇";
town "上蒜乡";
town "新街乡";
town "大渔乡";
town "龙城镇";
town "斗南镇";
town "六甲乡";
town "昆明城区";

int mileageInKilometer = 179;
};

pic routeInGoogleMappic routeInGoogleMap

  • Update Log 1.0 Initial Commit

  • Update Log 1.1 Update Introduction