diff --git a/Readme.markdown b/Readme.markdown index 0d215a2..7b1e7cc 100644 --- a/Readme.markdown +++ b/Readme.markdown @@ -108,8 +108,8 @@ C++ language: QrSegment::makeSegments("3141592653589793238462643383"); QrCode qr1 = QrCode::encodeSegments( segs, QrCode::Ecc::HIGH, 5, 5, 2, false); - for (int y = 0; y < qr1.size; y++) { - for (int x = 0; x < qr1.size; x++) { + for (int y = 0; y < qr1.getSize(); y++) { + for (int x = 0; x < qr1.getSize(); x++) { (... paint qr1.getModule(x, y) ...) } }