您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ writeText函数代码示例

51自学网 2021-06-03 10:04:47
  C++
这篇教程C++ writeText函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中writeText函数的典型用法代码示例。如果您正苦于以下问题:C++ writeText函数的具体用法?C++ writeText怎么用?C++ writeText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了writeText函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: writeText

// SLOTvoid debugDialog::gpsIsConnected_change(bool newState){    if(newState == true){        writeText(0, tr("Connected!") );    }else{        writeText(0, tr("Disconnected!") );    }}
开发者ID:ryandavid,项目名称:RTKdashboard,代码行数:8,


示例2: drawBackground

void CommandDialog::draw (){    drawBackground ();    drawBorder ("HERMIT Commands");    writeText (2, 2, "Select a command with the cursor and press Enter");    writeText (2, 3, "to activate it, or press Esc to cancel.");}
开发者ID:ancientlore,项目名称:hermit,代码行数:7,


示例3: writeTextCredits3

static void writeTextCredits3 (){    writeText ( "Thanks to", PAL1, 2 );    writeText ( "Bruce Rodríguez @emigrantebruce", PAL2, 2 );    writeText ( "Eduardo Robsy @EduRobsy", PAL2, 2 );    writeText ( "Jon Cortazar @Jon_Cortazar ", PAL2, 4 );}
开发者ID:moon-watcher,项目名称:GrielsQuest,代码行数:7,


示例4: main

int main( int argc, char **argv ){  QApplication app( argc, argv );    TextDevice device;  TextThread foo( "Foo" ), bar( "Bar" );    QObject::connect( &foo, SIGNAL(writeText(QString)), &device, SLOT(write(QString)) );  QObject::connect( &bar, SIGNAL(writeText(QString)), &device, SLOT(write(QString)) );    foo.start();  bar.start();  device.start();    QMessageBox::information( 0, "Threading", "Close me to stop!" );      foo.stop();  bar.stop();  device.stop();    foo.wait();  bar.wait();  device.wait();  return 0;  }
开发者ID:KleineKarsten,项目名称:FoundationsOfQtDev,代码行数:26,


示例5: writeText

void TextManager::refreshCurrentLetter(char letter){  if(letter){	writeText(inputLin,inputCol,inputPool+inputPos,false);//erase	inputPool[inputPos]=letter;	writeText(inputLin,inputCol,inputPool+inputPos,true);//write  }}
开发者ID:0724,项目名称:Arduino,代码行数:7,


示例6: brl_writeWindow

static intbrl_writeWindow (BrailleDisplay *brl, const wchar_t *text) {  static unsigned char previousContent[MAX_WINDOW_SIZE];  static int previousCursor = -1;  char *previousLocale;  if (!cellsHaveChanged(previousContent, brl->buffer, brl->textColumns*brl->textRows, NULL, NULL, NULL) &&      (brl->cursor == previousCursor)) {    return 1;  }  previousCursor = brl->cursor;  if (classificationLocale) {    previousLocale = setlocale(LC_CTYPE, NULL);    setlocale(LC_CTYPE, classificationLocale);  } else {    previousLocale = NULL;  }#ifdef USE_CURSES  clear();#else /* USE_CURSES */  addstr("/r/n");#endif /* USE_CURSES */  {    int row;    for (row=0; row<brl->textRows; row++) {      writeText(&text[row*brl->textColumns], brl->textColumns);      if (row < brl->textRows-1)        addstr("/r/n");    }  }#ifdef USE_CURSES  if ((brl->cursor >= 0) && (brl->cursor < (brl->textColumns * brl->textRows)))    move(brl->cursor/brl->textColumns, brl->cursor%brl->textColumns);  else    move(brl->textRows, 0);  refresh();#else /* USE_CURSES */  if ((brl->textRows == 1) && (brl->cursor >= 0) && (brl->cursor < brl->textColumns)) {    addch('/r');    writeText(text, brl->cursor);  } else {    addstr("/r/n");  }#endif /* USE_CURSES */  if (previousLocale) setlocale(LC_CTYPE, previousLocale);  return 1;}
开发者ID:BaJIeK,项目名称:brltty,代码行数:53,


示例7: assert

void ConsoleDialog::runStatement(){	assert(m_console != NULL);	if (m_console)	{		char buffer[1000];		GetWindowTextA(::GetDlgItem(_hSelf, IDC_INPUT), buffer, 1000);		historyAdd(buffer);		writeText(m_prompt.size(), m_prompt.c_str());		writeText(strlen(buffer), buffer);		writeText(1, "/n");		SetWindowTextA(::GetDlgItem(_hSelf, IDC_INPUT), "");		m_console->runStatement(buffer);	}}
开发者ID:Alexsa,项目名称:PythonScript,代码行数:15,


示例8: writeText

void MainWindow::mkdirTemp(bool f){    writeText("Directorio temporal ../../temp", msg_notify);    QString path = QDir::currentPath()+"/temp";    if(f){        if(!QDir(path).exists())            QDir().mkdir(path);        writeText("^ [OK]", msg_info);    }else{        if(QDir(path).exists())            QDir().rmdir(path);        writeText("^ [NO]", msg_info);    }}
开发者ID:dkmpos89,项目名称:softEMG-updater,代码行数:15,


示例9: writeTextCredits2

static void writeTextCredits2 (){    writeText ( "Translators", PAL1, 2 );    writeText ( "Felipe Monge Corbalán @vakapp", PAL2, 2 ); // ENGLISH    writeText ( "DaRkHoRaCe @oongamoonga", PAL2, 2 ); // ITALIAN    writeText ( "KanedaFr @SpritesMind", PAL2, 2 ); // FRENCH    writeText ( "Jordi Montornés Solé @jordimontornes", PAL2, 2 ); // CATAL
C++ writeTo函数代码示例
C++ writeTag函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。