摘要:
int is_digit(const char *str){ size_t len = strlen(str); while(len > 0) { if (*str < '0' || *str > '9') { return -1; } str++; len--; } return 0; } 阅读全文
摘要:
char moduledir[MAX_PATH]; GetModuleFileNameA(GetModuleHandleA("ppdl_BE081_BIW_seal_library.dll"),moduledir,MAX_PATH); moduledir[strlen(moduledir)-strl 阅读全文
摘要:
set PATH=%PATH%;%UGII_ROOT_DIR%call "E:\ZY\exe\uds_rename_parts_mohao.exe"E:\ZY\exe\uds_rename_parts_mohao.exe E:\11467-xy-6-24\11467.prt 11467 11111 阅读全文
摘要:
argc是命令行总的参数个数argv[]是argc个参数,其中第0个参数是程序的全名,以后的参数命令行后面跟的用户输入的参数,比如: int main(int argc, char* argv[]) { int i; for (i = 0; i>i; return 0; } 执行时敲入 F... 阅读全文
摘要:
#include #include #include using namespace std;int main(int argc, char **argv){ if (argc < 3) { cout << "Usage : test.exe /user:someone /pwd:password"... 阅读全文
摘要:
症状/问题我怎样把windows中安装的程序信息输出到一个文本文件中?解决方法使用 windows 操作系统中的命令:wmic就可以做到。下面的命令就可以把系统中安装的程序都输出到文件ProgramList.txt 中:wmic /output:C:\temp\ProgramList.txt pro... 阅读全文
摘要:
void create_point_full_parameter(){Session *theSession = Session::GetSession(); Part *workPart(theSession->Parts()->Work()); Part *displayPart(theSe... 阅读全文
摘要:
#include struct _finddata64i32_t fileinfo;long re= _findfirst64i32(serch_path.GetLocaleText(),&fileinfo);if(-1==re){return;}while(!_findnext(re,&filei... 阅读全文
摘要:
///类型转换templatevectorObjcetsSwap(vectorobjects){vectorreturnObjects;for(size_ti=0;i(objects[i]);if(temp!=NULL) { returnObjects.push_back(temp);}}retur... 阅读全文