Изменил(а) на 'a1/program.c'
This commit is contained in:
parent
65edf7d47a
commit
7e5c02ceb3
11
a1/program.c
11
a1/program.c
@ -18,6 +18,7 @@ int main() {
|
|||||||
int counter = 0;
|
int counter = 0;
|
||||||
int che = 0;
|
int che = 0;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
int toc = 0;
|
||||||
while ((r = fgets(znaky, LINE_SIZE, stdin)) != NULL) {
|
while ((r = fgets(znaky, LINE_SIZE, stdin)) != NULL) {
|
||||||
if (feof(stdin)) {
|
if (feof(stdin)) {
|
||||||
break;
|
break;
|
||||||
@ -25,6 +26,16 @@ int main() {
|
|||||||
if(znaky[0] == '\n'){
|
if(znaky[0] == '\n'){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
for(int i = 0; i < 10; i++){
|
||||||
|
if(znaky[i] == '.'){
|
||||||
|
toc++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//printf("-->%d\n", toc);
|
||||||
|
if(toc != 2){
|
||||||
|
che = 1;
|
||||||
|
toc = 0;
|
||||||
|
}
|
||||||
zaciatok_cisla = znaky;
|
zaciatok_cisla = znaky;
|
||||||
counter = 0;
|
counter = 0;
|
||||||
while (*zaciatok_cisla != '\0') {
|
while (*zaciatok_cisla != '\0') {
|
||||||
|
Loading…
Reference in New Issue
Block a user