本文整理汇总了C++中Sheet::fill_the_blanks方法的典型用法代码示例。如果您正苦于以下问题:C++ Sheet::fill_the_blanks方法的具体用法?C++ Sheet::fill_the_blanks怎么用?C++ Sheet::fill_the_blanks使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sheet
的用法示例。
在下文中一共展示了Sheet::fill_the_blanks方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main (int, char** argv)
{
puts ("genprojtab version 2.1");
char* tpl_spec = argv[1];
bool have_adjustments = (strequal (argv[2], "A"));
bool have_ratingmap = (strequal (argv[3], "R"));
Sheet model;
Sheet series;
Sheet adjustments;
Sheet ratingmap;
printf (" reading spreadsheet data...");
model.read ("model.tab");
series.read ("series.tab");
if (have_adjustments) adjustments.read ("adjustments.tab");
if (have_ratingmap) ratingmap.read ("ratingmap.tab");
printf ("\n");
printf (" generating analysis program...");
series.fill_the_blanks ();
Template tpl ("prog.c", "map.txt");
tpl.get_data (model, series, have_adjustments, adjustments, have_ratingmap,
ratingmap);
tpl.chop_empty_vars ();
tpl.count_and_check_metrics ();
tpl.read (tpl_spec);
tpl.parse_types_and_formats ();
tpl.count_randoms ();
tpl.assess_compute_need ();
tpl.process (have_adjustments);
printf ("\n");
puts ("analysis program 'prog.c' created");
puts ("ok");
return 0;
}