tanszek:oktatas:techcomm:lzw_coding
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tanszek:oktatas:techcomm:lzw_coding [2024/11/18 20:26] – [Summary of LZW Compression] knehez | tanszek:oktatas:techcomm:lzw_coding [2024/11/19 07:54] (current) – knehez | ||
|---|---|---|---|
| Line 136: | Line 136: | ||
| int tableElements = 5; | int tableElements = 5; | ||
| - | main() | + | int isInsxhTable(char *s) |
| + | { | ||
| + | for(int i = 0; i < tableElements; | ||
| + | { | ||
| + | if(strcmp(sxhTable[i], | ||
| + | { | ||
| + | return i; | ||
| + | } | ||
| + | } | ||
| + | return -1; | ||
| + | } | ||
| + | |||
| + | int main() | ||
| { | { | ||
| char text[] = " | char text[] = " | ||
| Line 160: | Line 172: | ||
| printf(" | printf(" | ||
| } | } | ||
| - | } | ||
| - | |||
| - | int isInsxhTable(char *s) | ||
| - | { | ||
| - | for(int i = 0; i < tableElements; | ||
| - | { | ||
| - | if(strcmp(sxhTable[i], | ||
| - | { | ||
| - | return i; | ||
| - | } | ||
| - | } | ||
| - | return -1; | ||
| } | } | ||
| </ | </ | ||
tanszek/oktatas/techcomm/lzw_coding.1731961588.txt.gz · Last modified: 2024/11/18 20:26 by knehez
