这篇教程C++ unload函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中unload函数的典型用法代码示例。如果您正苦于以下问题:C++ unload函数的具体用法?C++ unload怎么用?C++ unload使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了unload函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: unloadRemoteSource::~RemoteSource() { unload();}
开发者ID:Emadpres,项目名称:tdesktop,代码行数:3,
示例2: unloadvoid ofxShader::setup(string shaderName) { unload(); string fragmentName = shaderName + ".frag"; string vertexName = shaderName + ".vert"; setup(fragmentName, vertexName);}
开发者ID:ofTheo,项目名称:CreatorsProjectDev,代码行数:6,
示例3: unload// ---------------------------------------------------------------------------// Destructeur// -----------bViewContainer::~bViewContainer(){ unload();}
开发者ID:CarteBlancheConseil,项目名称:MacMap,代码行数:6,
示例4: unloadCartridge::Cartridge() { loaded = false; unload();}
开发者ID:BadyRaty,项目名称:Mednafen-Core,代码行数:4,
示例5: mainint main(int argc, char* argv[]){ // check for correct number of args if (argc != 2 && argc != 3) { printf("Usage: speller [dictionary] text/n"); return 1; } // structs for timing data struct rusage before, after; // benchmarks double ti_load = 0.0, ti_check = 0.0, ti_size = 0.0, ti_unload = 0.0; // determine dictionary to use char* dictionary = (argc == 3) ? argv[1] : DICTIONARY; // load dictionary getrusage(RUSAGE_SELF, &before); bool loaded = load(dictionary); getrusage(RUSAGE_SELF, &after); // abort if dictionary not loaded if (!loaded) { printf("Could not load %s./n", dictionary); return 1; } // calculate time to load dictionary ti_load = calculate(&before, &after); // try to open text char* text = (argc == 3) ? argv[2] : argv[1]; FILE* fp = fopen(text, "r"); if (fp == NULL) { printf("Could not open %s./n", text); unload(); return 1; } // prepare to report misspellings printf("/nMISSPELLED WORDS/n"); // prepare to spell-check int index = 0, misspellings = 0, words = 0; char word[LENGTH+1]; // spell-check each word in text for (int c = fgetc(fp); c != EOF; c = fgetc(fp)) { // allow only alphabetical characters and apostrophes if (isalpha(c) || (c == '/'' && index > 0)) { // append character to word word[index] = c; index++; // ignore alphabetical strings too long to be words if (index > LENGTH) { // consume remainder of alphabetical string while ((c = fgetc(fp)) != EOF && isalpha(c)); // prepare for new word index = 0; } } // ignore words with numbers (like MS Word can) else if (isdigit(c)) { // consume remainder of alphanumeric string while ((c = fgetc(fp)) != EOF && isalnum(c)); // prepare for new word index = 0; } // we must have found a whole word else if (index > 0) { // terminate current word word[index] = '/0'; // update counter words++; // check word's spelling getrusage(RUSAGE_SELF, &before); bool misspelled = !check(word); getrusage(RUSAGE_SELF, &after); // update benchmark ti_check += calculate(&before, &after); // print word if misspelled if (misspelled)//.........这里部分代码省略.........
开发者ID:pfonash,项目名称:spellChecker,代码行数:101,
示例6: unloadSSoundBuffer::~SSoundBuffer(){ unload();}
开发者ID:Ryxali,项目名称:SpaceSumo,代码行数:4,
示例7: envelopeint ConcreteD::setTrialStrain(double strain, double strainRate){ TLoadState = CLoadState; TStress = CStress; TTangent = CTangent; TDc = CDc; TDt = CDt; TDcp = CDcp; TDtp = CDtp; TEpp = CEpp; TRc = CRc; TRt = CRt; TStrain = strain; double dStrain = strain-CStrain; if (fabs(dStrain) < DBL_EPSILON) {return 0;}if(TStrain>TEpp) //Tension{ if(TLoadState==0) //On the envelope { if(dStrain>0.0) //Tension { envelope(); return 0; } else { TLoadState=1; //unloading, reloading unload(); return 0; } }else { if(TStrain-TEpp<TRt) {unload(); return 0;} else {TLoadState=0; //On the envelope envelope(); return 0;} }}// C++ unload_add_on函数代码示例 C++ unlinkat函数代码示例
|