Aktualizovat „du6/program.c“
This commit is contained in:
parent
41776796ca
commit
d26f313f9d
@ -9,8 +9,8 @@ Code, Compile, Run and Debug online from anywhere in world.
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#define fullSIZE = 1000
|
||||
#define wSIZE = 100
|
||||
#define fullSIZE 1000
|
||||
#define wSIZE 100
|
||||
#include <string.h>
|
||||
|
||||
int main()
|
||||
@ -26,14 +26,14 @@ int main()
|
||||
}
|
||||
int pm = 0;
|
||||
char** pole_smernikov = malloc(fullSIZE * sizeof(char));
|
||||
char* success[SIZE];
|
||||
char* unsuccess[SIZE];
|
||||
//char* success[SIZE];
|
||||
//char* unsuccess[SIZE];
|
||||
//memset(pole_smernikov,0,SIZE*sizeof(char*));
|
||||
int k = 0;
|
||||
char* line = malloc(wSIZE * sizeof(char));
|
||||
memset(line,0,SIZE);
|
||||
char* r;
|
||||
int q = 0;
|
||||
//char* r;
|
||||
//int q = 0;
|
||||
int pocet_znakov = 0;
|
||||
while (fgets(line,SIZE,stdin)) {
|
||||
pocet_znakov = strlen(line);
|
||||
@ -52,6 +52,7 @@ int main()
|
||||
}
|
||||
k = 0;
|
||||
int i = 0;
|
||||
i = 0;
|
||||
while (i < pm){
|
||||
for(int j = 0+1; j < pm-i; j++){
|
||||
if(0 < strcmp(pole_smernikov[j-1], pole_smernikov[j])){
|
||||
|
Loading…
Reference in New Issue
Block a user