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

pull/20/head
Project Nayuki 8 years ago
parent b86466ecd5
commit 8fe7878e1e

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

@ -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;
} }

Loading…
Cancel
Save