Compare commits
No commits in common. "74352305e37f80d371e9d0d9da5b7a3b432a7461" and "00e502875f8fcdc189cbc5c91ed61f847a769dea" have entirely different histories.
74352305e3
...
00e502875f
BIN
du1/program
BIN
du1/program
Binary file not shown.
@ -10,7 +10,6 @@ struct pizza {
|
||||
};
|
||||
|
||||
|
||||
<<<<<<< HEAD
|
||||
void deshifr (char *text) {
|
||||
for (int i = 0; text[i] != '\0'; i++) {
|
||||
switch (text[i]) {
|
||||
@ -47,20 +46,6 @@ void deshifr (char *text) {
|
||||
}
|
||||
text[i] = tolower(text[i]);
|
||||
}
|
||||
=======
|
||||
struct pizza {
|
||||
float prize;
|
||||
char name[LINESIZE];
|
||||
};
|
||||
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
struct pizza nulova;
|
||||
struct pizza tuniakova;
|
||||
return 0;
|
||||
>>>>>>> fd498cb (refresh)
|
||||
}
|
||||
|
||||
int search_string (const char* heap_orig, const char* needle_orig) {
|
||||
|
BIN
du2/program
BIN
du2/program
Binary file not shown.
@ -1,41 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#define LINE_SIZE 100
|
||||
|
||||
struct pizza {
|
||||
char name [LINE_SIZE];
|
||||
float prize;
|
||||
};
|
||||
|
||||
int read_pizza (struct pizza* list) {
|
||||
|
||||
int n = 0;
|
||||
char line[200];
|
||||
|
||||
while (1) {
|
||||
if (fgets(line, sizeof(line), stdin)==NULL) {
|
||||
break;
|
||||
}
|
||||
line[strcspn(line, "\n")] = '\0';
|
||||
if (strlen(line) == 0) {
|
||||
break;
|
||||
}
|
||||
strcpy(list[n].name, line);
|
||||
if (fgets(line, sizeof(line), stdin)==NULL) {
|
||||
break;
|
||||
}
|
||||
if (scanf(line, "%f", &list[n].prize) !=1) {
|
||||
break;
|
||||
}
|
||||
n++;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user