本文整理汇总了C++中Meter::GetSuffix方法的典型用法代码示例。如果您正苦于以下问题:C++ Meter::GetSuffix方法的具体用法?C++ Meter::GetSuffix怎么用?C++ Meter::GetSuffix使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meter
的用法示例。
在下文中一共展示了Meter::GetSuffix方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SeeClassDefinition
void SeeClassDefinition()
{
OutputLine( L"-- Meter --" );
Femtometer const femtometer;
OutputLine( femtometer.GetSuffix() );
Picometer const picometer;
OutputLine( picometer.GetSuffix() );
Nanometer const nanometer;
OutputLine( nanometer.GetSuffix() );
Micrometer const micrometer;
OutputLine( micrometer.GetSuffix() );
Millimeter const millimeter;
OutputLine( millimeter.GetSuffix() );
Centimeter const centimeter;
OutputLine( centimeter.GetSuffix() );
Decimeter const decimeter;
OutputLine( decimeter.GetSuffix() );
Meter const meter;
OutputLine( meter.GetSuffix() );
Dekameter const dekameter;
OutputLine( dekameter.GetSuffix() );
Hectometer const hectometer;
OutputLine( hectometer.GetSuffix() );
Kilometer const kilometer;
OutputLine( kilometer.GetSuffix() );
Megameter const megameter;
OutputLine( megameter.GetSuffix() );
Gigameter const gigameter;
OutputLine( gigameter.GetSuffix() );
Terameter const terameter;
OutputLine( terameter.GetSuffix() );
Petameter const petameter;
OutputLine( petameter.GetSuffix() );
Mil const mil;
OutputLine( Mil::Suffix() );
Assert( mil.GetSuffix() == Mil::Suffix() );
Assert( mil.GetSISuffix() != Mil::Suffix() );
Inch const inch;
OutputLine( Inch::Suffix() );
Assert( inch.GetSuffix() == Inch::Suffix() );
Assert( inch.GetSISuffix() != Inch::Suffix() );
Foot const foot;
OutputLine( Foot::Suffix() );
Assert( foot.GetSuffix() == Foot::Suffix() );
Assert( foot.GetSISuffix() != Foot::Suffix() );
}