Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

source error

Status
Not open for further replies.
You need to dimension your arrays. Try,

Code:
const char Kodas[4][65] = {"1111111110101010101010101010101010101010101010101010101010101010",
                           "1111111111010101010101010101010101010101010101010101010101010100",
                           "1111111110101010101010101010101010101010101010101010101010101010",
                           "1111111110101010101010101010101010101010101010101010101010101010"};
const char Vardas[4][9] = {"12345678", "01234567", "12345670", "02345678"};
const char Pavarde[4][13] = {"123456789012", "012345678901", "123456789010", "023456789012"};

Note the second dimension is one more than the number of characters, this is because using double quotes adds a trailing zero.

Mike.
 
can anybody tell me, hot shoud i improve my source, that after card reading, the reading time appiers in LCD. there ar two ways: show reading time in miliseconds, or show real time. the problem is, that i am not good at programming, so maybe anyone can write me example, which is suitable for my program :)
 
Status
Not open for further replies.

Latest threads

Back
Top