void UI::PrintSettings(Asztal& a){ PrintLogo(); cout<<"\t\t\t\tNehezseg:\n\n"; cout<<"\t\t\t["; if(a.getGameType()==1){ cout<<"X]\t"; } else{ cout<<" ]\t"; } cout<<"Egyesevel huz (1)\n"; cout<<"\t\t\t["; if(a.getGameType()==2){ cout<<"X]\t"; } else{ cout<<" ]\t"; } cout<<"Harmasaval huz (2)\n"; cout<<"\n\n\n\n\n\n\t\t\t\t\t\tVissza a menube (0)\n"; }
/** * @brief Main program. * @param None * @retval None */ void main(void) { uint8_t i = 0; /* Select fCPU = 16MHz */ CLK_SYSCLKConfig(CLK_PRESCALER_HSIDIV1); /* Init the Eval board LCD */ STM8S_EVAL_LCD_Init(); /* Clear LCD */ LCD_Clear(); LCD_SetCursorPos(LCD_LINE1, 0); LCD_Print("SPI-LCD example"); /* Display "moving" ST logo */ for (i = 1; i < 8; i++) { PrintLogo(); Delay(0xFFFF); } LCD_SetCursorPos(LCD_LINE2, 0); LCD_Print(" "); LCD_DisplayLogo(0x93); Delay(600); while(1) {} }
TDSPInt::TDSPInt(const char* appClassName, int* argc, char** argv, void* options, int numOptions, Bool_t noLogo) : TRint(appClassName, argc, argv, options, numOptions, kTRUE) { SetPrompt("tdsp [%d] > "); if (!noLogo) PrintLogo(); }
void UI::PrintMainScreen(){ SetConsoleTitleA("SolMe"); PrintLogo(); cout<<"\t\t\t\t START (1)\n\n"; cout<<"\t\t\t\tStatisztika (2)\n"; cout<<"\t\t\t\tBeallitasok (3)\n\n\n\n\n\n"; cout<<"\t\tSugo (4)\n"; cout<<"\t\tNevjegy (5)"; cout<<"\t\t\t Kilepes (0)\n"; }
void CTransWorkshop::Run (CXMLElement *pCmdLine) // Run // // Run the application { CString sError; PrintLogo(pCmdLine); // Connect to Steam CSteamCtx Steam; if (!Steam.Connect(&sError)) { printf("ERROR: %s\n", (LPSTR)sError); return; } printf("\n"); // Parse the command line ITransCommand *pCmd; if (!ParseCommandLine(pCmdLine, &pCmd, &sError)) { printf("ERROR: %s\n", (LPSTR)sError); return; } // Execute the command try { if (!pCmd->Execute(Steam, &sError)) printf("ERROR: %s\n", (LPSTR)sError); } catch (...) { printf("ERROR: Crash executing command.\n"); } // Done delete pCmd; }
void UI::PrintStat(){ FILE* stat_file; stat_file=fopen("stat.txt","r"); int a,b; double c=0; fscanf(stat_file, "%d\n%d", &a, &b); if(!(a==0 && b==0)){ c=((double)b/(double)a)*100; } PrintLogo(); cout<<"\t\t\tOsszes jatszma:\t\t"<<a<<endl; cout<<"\t\t\tNyert jatszmak:\t\t"<<b<<endl; cout<<"\t\t\tVesztett jatszmak:\t"<<a-b<<endl; cout<<"\t\t\tNyeresi arany:\t\t"; printf("%.2f%%\n", c); cout<<"\t\t\tVesztesi arany:\t\t"; printf("%.2f%%\n", 100-c); cout<<"\n\n\n\n\n\tStatisztikak torlese (1)\t\t Vissza a menube (0)\n"; }
void UI::PrintTable(){ PrintLogo(); for(int i=0; i<max_m; i++){ cout<<"\t\t"; for(int j=0; j<SZ; j++){ SetConsoleTextAttribute(hConsole, 7); if(COLOR[i][j]>0 && COLOR[i][j]<5){ if(COLOR[i][j]==1 || COLOR[i][j]==3){ SetConsoleTextAttribute(hConsole, 12); } else if(COLOR[i][j]==2 || COLOR[i][j]==4){ SetConsoleTextAttribute(hConsole, 8); } } cout<<ASZTAL[i][j]; SetConsoleTextAttribute(hConsole, 7); } cout<<endl<<endl; } PrintLegend(); }
void Monitor_Start(RingBuffer *inputBuffer) { dGuard(inputBuffer == NULL); OpenConsole(); PrintLogo(Console); while (1) { uint16_t read = ReadLineInto(inputBuffer); StreamWriter_WriteLine(Console, inputBuffer->Buffer, read); if (!Dispatch(inputBuffer, Console)) break; } StreamWriter_WriteLine(Console, "Bye.", 4); Stream_Close(Console); Console = NULL; }
extern "C" int _cdecl wmain(int argc, WCHAR **argv) { wchar_t *pArg = NULL; wchar_t *szObjName = NULL; ULONG DumpFilter = MDInfo::dumpDefault; HRESULT hr = 0; BOOL fWantHelp=FALSE; if (!PAL_RegisterLibrary(L"rotor_palrt") || !PAL_RegisterLibrary(L"sscoree")) { MDInfo::Error("Unable to register libraries", 1); } // Validate incoming arguments for (int i=1; i<argc; i++) { const wchar_t *szArg = argv[i]; if (*szArg == L'-' || *szArg == L'/') { if (_wcsicmp(szArg + 1, L"?") == 0) fWantHelp=TRUE; else if (_wcsicmp(szArg + 1, L"nologo") == 0) DumpFilter |= MDInfo::dumpNoLogo; else if (_wcsicmp(szArg + 1, L"Hex") == 0) DumpFilter |= MDInfo::dumpMoreHex; else if (_wcsicmp(szArg + 1, L"header") == 0) DumpFilter |= MDInfo::dumpHeader; else if (_wcsicmp(szArg + 1, L"csv") == 0) DumpFilter |= MDInfo::dumpCSV; else if (_wcsicmp(szArg + 1, L"raw") == 0) DumpFilter |= MDInfo::dumpRaw; else if (_wcsicmp(szArg + 1, L"heaps") == 0) DumpFilter |= MDInfo::dumpRawHeaps; else if (_wcsicmp(szArg + 1, L"schema") == 0) DumpFilter |= MDInfo::dumpSchema; else if (_wcsicmp(szArg + 1, L"unsat") == 0) DumpFilter |= MDInfo::dumpUnsat; else if (_wcsicmp(szArg + 1, L"stats") == 0) DumpFilter |= MDInfo::dumpStats; else if (_wcsicmp(szArg + 1, L"assem") == 0) DumpFilter |= MDInfo::dumpAssem; else if (_wcsicmp(szArg + 1, L"validate") == 0) DumpFilter |= MDInfo::dumpValidate; else if (_wcsicmp(szArg + 1, L"obj") == 0) { if (++i == argc) Usage(); else szObjName = argv[i]; } #if PLATFORM_UNIX else if (*szArg == L'/') { // Might be a fully qualifed path pArg = argv[i]; } #endif } else pArg = argv[i]; } // Print banner. if (!(DumpFilter & MDInfo::dumpNoLogo)) PrintLogo(); if (!pArg || fWantHelp) Usage(); CoInitializeCor(0); hr = PAL_CoCreateInstance(CLSID_CorMetaDataDispenser, IID_IMetaDataDispenserEx, (void **) &g_pDisp); if(FAILED(hr)) MDInfo::Error("Unable to CoCreate Meta-data Dispenser", hr); // Loop through all files in the file pattern passed WIN32_FIND_DATA fdFiles; HANDLE hFind; wchar_t szSpec[_MAX_PATH]; wchar_t szDrive[_MAX_DRIVE]; wchar_t szDir[_MAX_DIR]; OnUnicodeSystem(); hFind = WszFindFirstFile(pArg, &fdFiles); if (hFind == INVALID_HANDLE_VALUE) { DisplayFile(pArg, false, DumpFilter, szObjName, DisplayString); } else { // Convert relative paths to full paths. LPWSTR szFname; WszGetFullPathName(pArg, _MAX_PATH, szSpec, &szFname); SplitPath(szSpec, szDrive, szDir, NULL, NULL); do { MakePath(szSpec, szDrive, szDir, fdFiles.cFileName, NULL); // display the meta data of the file DisplayFile(szSpec, true, DumpFilter, szObjName, DisplayString); } while (WszFindNextFile(hFind, &fdFiles)) ; FindClose(hFind); } g_pDisp->Release(); CoUninitializeCor(); return 0; }
void UI::PrintConfirmStatDelete(){ PrintLogo(); cout<<"\t\t Tenyleg torolni akarod a statisztikakat?\n\n\n"; cout<<"\t\t\t Igen (1)\tNem(0)"<<endl; }
void UI::PrintConfirm(){ PrintLogo(); cout<<"\t\t\t Tenyleg ki akarsz lepni?\n\n\n"; cout<<"\t\t\t Igen (1)\tNem(0)"<<endl; }
void UI::PrintAbout(){ PrintLogo(); cout<<"\t\t\t\tSolMe "<<V_NUM<<" Beta\n\n"; cout<<"\t\t\t\t2012 mLab\n\n\n\n"; cout<<"\t\t\t\t\t\tVissza a menube (0)\n"; }