Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with .lib for STD::COUT Pin
ForNow4-Jul-17 3:38
ForNow4-Jul-17 3:38 
GeneralRe: Help with .lib for STD::COUT Pin
Randor 5-Jul-17 2:42
professional Randor 5-Jul-17 2:42 
GeneralRe: Help with .lib for STD::COUT Pin
ForNow5-Jul-17 3:12
ForNow5-Jul-17 3:12 
AnswerRe: Help with .lib for STD::COUT Pin
Randor 5-Jul-17 3:20
professional Randor 5-Jul-17 3:20 
QuestionSimple question about templates Pin
Richard MacCutchan2-Jul-17 5:25
mveRichard MacCutchan2-Jul-17 5:25 
QuestionRe: Simple question about templates Pin
David Crow2-Jul-17 17:44
David Crow2-Jul-17 17:44 
AnswerRe: Simple question about templates Pin
Richard MacCutchan2-Jul-17 21:55
mveRichard MacCutchan2-Jul-17 21:55 
AnswerRe: Simple question about templates Pin
jschell5-Jul-17 6:22
jschell5-Jul-17 6:22 
GeneralRe: Simple question about templates Pin
Richard MacCutchan5-Jul-17 6:28
mveRichard MacCutchan5-Jul-17 6:28 
QuestionManipulating of .txt file Pin
Artur Grabowski1-Jul-17 21:44
Artur Grabowski1-Jul-17 21:44 
AnswerRe: Manipulating of .txt file Pin
Richard Andrew x642-Jul-17 2:59
professionalRichard Andrew x642-Jul-17 2:59 
GeneralRe: Manipulating of .txt file Pin
Artur Grabowski2-Jul-17 4:18
Artur Grabowski2-Jul-17 4:18 
GeneralRe: Manipulating of .txt file Pin
Richard Andrew x642-Jul-17 5:14
professionalRichard Andrew x642-Jul-17 5:14 
GeneralRe: Manipulating of .txt file Pin
Artur Grabowski2-Jul-17 5:34
Artur Grabowski2-Jul-17 5:34 
GeneralRe: Manipulating of .txt file Pin
Richard Andrew x642-Jul-17 5:52
professionalRichard Andrew x642-Jul-17 5:52 
GeneralRe: Manipulating of .txt file Pin
Artur Grabowski2-Jul-17 6:41
Artur Grabowski2-Jul-17 6:41 
C++
QMap< int, QMap<int,double> >::iterator it;
    it=targets->begin();
    while(it!=targets->end())
    {
        QString mod="   ";
        mod.append(QString::number(it.key())+" |      |  ");

        int rowfillcount=0;
        QMap<int,double>::iterator it2=it.value().end();
        do
        {
            --it2;

            mod.append(QString("  ")+QString::number(it2.key())+":"+QString::number(it2.value(),'d',5)+",");

            if(++rowfillcount==8)
            {
                rowfillcount=0;
                mod.append("\n                 ");
            }
        }
        while(it2!=it.value().begin());

        mod[mod.lastIndexOf(",")]='\n';

        ui->plainTextEdit_result->appendPlainText(
        mod);

        it++;
    }

    ui->plainTextEdit_result->appendPlainText(
    "-------|------|----------------------------------------------------------------------------------------------------------------\

QuestionRe: Manipulating of .txt file Pin
David Crow2-Jul-17 17:36
David Crow2-Jul-17 17:36 
AnswerRe: Manipulating of .txt file Pin
Artur Grabowski3-Jul-17 19:00
Artur Grabowski3-Jul-17 19:00 
QuestionChecksum Generators With Advanced Functions Pin
Member 1328723330-Jun-17 8:49
Member 1328723330-Jun-17 8:49 
AnswerRe: Checksum Generators With Advanced Functions Pin
Richard Andrew x6430-Jun-17 10:08
professionalRichard Andrew x6430-Jun-17 10:08 
GeneralRe: Checksum Generators With Advanced Functions Pin
Member 132872331-Jul-17 1:28
Member 132872331-Jul-17 1:28 
GeneralRe: Checksum Generators With Advanced Functions Pin
Richard MacCutchan1-Jul-17 1:32
mveRichard MacCutchan1-Jul-17 1:32 
AnswerRe: Checksum Generators With Advanced Functions Pin
Randor 30-Jun-17 23:11
professional Randor 30-Jun-17 23:11 
GeneralRe: Checksum Generators With Advanced Functions Pin
Member 132872331-Jul-17 1:28
Member 132872331-Jul-17 1:28 
AnswerRe: Checksum Generators With Advanced Functions Pin
jschell2-Jul-17 7:25
jschell2-Jul-17 7:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.