-
- #include <stdio.h>
- #include <ctype.h>
- #include <alloc.h>
- char *crypt(char *tdiep, int column)
- {
- char tam[255], *result;
- int i = 0, k = 0, n, j=0;
- while(tdiep[i] != 0)
- {
- tam[k++] = tdiep[i];
- i++;
- }
- tam[k] = 0;
- for (i=0; i<column; i++)
- {
- n = 0;
- while(n+i < k)
- {
- n += column;
- }
- }
- result[k] = 0;
- return result;
- }
- void main()
- {
- char thongdiep[255], *mahoa;
- int col;
- mahoa = crypt(thongdiep, col);
- getch();
- }
0 nhận xét:
Đăng nhận xét