这篇教程C++ usage函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中usage函数的典型用法代码示例。如果您正苦于以下问题:C++ usage函数的具体用法?C++ usage怎么用?C++ usage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了usage函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: mainint main(int argc, char *argv[]){ int i;#ifdef COMPILE_WITH_GUI bool gui = false;#endif#ifdef COMPILE_WITH_MULTI_CORE I32 cores = 1;#endif bool verbose = false; bool force = false; // fixed header changes int set_version_major = -1; int set_version_minor = -1; int set_point_data_format = -1; int set_point_data_record_length = -1; int set_gps_time_endcoding = -1; // variable header changes bool remove_extra_header = false; bool remove_all_variable_length_records = false; int remove_variable_length_record = -1; int remove_variable_length_record_from = -1; int remove_variable_length_record_to = -1; bool remove_tiling_vlr = false; bool remove_original_vlr = false; // extract a subsequence unsigned int subsequence_start = 0; unsigned int subsequence_stop = U32_MAX; // fix files with corrupt points bool clip_to_bounding_box = false; double start_time = 0; LASreadOpener lasreadopener; GeoProjectionConverter geoprojectionconverter; LASwriteOpener laswriteopener; if (argc == 1) {#ifdef COMPILE_WITH_GUI return las2las_gui(argc, argv, 0);#else fprintf(stderr,"las2las.exe is better run in the command line or via the lastool.exe GUI/n"); char file_name[256]; fprintf(stderr,"enter input file: "); fgets(file_name, 256, stdin); file_name[strlen(file_name)-1] = '/0'; lasreadopener.set_file_name(file_name); fprintf(stderr,"enter output file: "); fgets(file_name, 256, stdin); file_name[strlen(file_name)-1] = '/0'; laswriteopener.set_file_name(file_name);#endif } else { for (i = 1; i < argc; i++) { if (argv[i][0] == ' C++ usage4函数代码示例 C++ usToTicks函数代码示例
|