In C, how do I check if a String contains 2 digits, 1 letter and 4 digits?

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-03-23T22:46:35Z Indexed on 2010/03/23 22:53 UTC
Read the original article Hit count: 120

Filed under:
|
|
|

In the method I've tried this:

int 1, 2, 4, 5, 6, 7; char 3; char display[10];

scanf("%d%d%c%d%d%d%d", &1, &2, &3, &4, &5, &6, &7); display = {1, 2, 3, 4, 5, 6, 7};

But I get errors everywhere and it doesn't work.

© Stack Overflow or respective owner

Related posts about c

    Related posts about string