Changed output format of C and C++ demo programs to match design intent and other languages.

This commit is contained in:
Project Nayuki 2017-10-23 03:46:22 +00:00
parent b86466ecd5
commit 8fe7878e1e
2 changed files with 3 additions and 1 deletions

View File

@ -300,4 +300,5 @@ static void printQr(const uint8_t qrcode[]) {
} }
fputs("\n", stdout); fputs("\n", stdout);
} }
fputs("\n", stdout);
} }

View File

@ -64,8 +64,8 @@ static void doBasicDemo() {
// Make and print the QR Code symbol // Make and print the QR Code symbol
const QrCode qr = QrCode::encodeText(text, errCorLvl); const QrCode qr = QrCode::encodeText(text, errCorLvl);
std::cout << qr.toSvgString(4) << std::endl;
printQr(qr); printQr(qr);
std::cout << qr.toSvgString(4) << std::endl;
} }
@ -190,4 +190,5 @@ static void printQr(const QrCode &qr) {
} }
std::cout << std::endl; std::cout << std::endl;
} }
std::cout << std::endl;
} }