- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
char* a(int pos, char* path)
{
FILE *dbf;
char value;
int i,j,k,l,m,n,o,p,r;
int numrecs, recnum;
Record rec;
char aa[158];
char *pp;
int ln, lp, lc, le, lw, li, ls, lph, lf;
numrecs = rec.length;
recnum = pos;
dbf = OpenDB(path, &rec);
ReadRecord(dbf, recnum, &rec);
ln = strlen(rec.name);
ls = strlen(rec.surname);
lp = strlen(rec.patronymic);
lph = strlen(rec.phone);
lc = strlen(rec.city);
le = strlen(rec.edu);
lw = strlen(rec.work);
li = strlen(rec.interests);
lf = strlen(rec.friends);
itoa(recnum, &(aa[0]), 10);
for (i = 1; i < ln; i++)
aa[i] = rec.name[i-1];
for (j = 0; j < ls; j++)
aa[i+j] = rec.surname[j];
for (k = 0; k < lp; k++)
aa[i+j+k] = rec.patronymic[k];
for (l = 0; l < lph; l++)
aa[i+j+k+l] = rec.phone[l];
for (m = 0; m < lc; m++)
aa[i+j+k+l+m] = rec.city[m];
for (n = 0; n < le; n++)
aa[i+j+k+l+m+n] = rec.edu[n];
for (o = 0; o < lw; o++)
aa[i+j+k+l+m+n+o] = rec.work[o];
for (p = 0; p < li; p++)
aa[i+j+k+l+m+n+o+p] = rec.interests[p];
for (r = 0; r < lf; r++)
aa[i+j+k+l+m+n+o+p+r] = rec.friends[r];
pp = strdup(aa);
return pp;
}
ctm 13.05.2011 06:33 # +1
ёклмн...
absolut 13.05.2011 07:03 # +1
ling 13.05.2011 10:24 # +1
bugmenot 14.05.2011 00:07 # 0
Lure Of Chaos 14.05.2011 10:19 # +1
guest 14.05.2011 10:38 # 0
Lure Of Chaos 14.05.2011 10:40 # 0
guest 14.05.2011 10:40 # −1
Lure Of Chaos 14.05.2011 10:42 # 0
guest 14.05.2011 14:19 # −1
Lure Of Chaos 14.05.2011 14:29 # 0
bugmenot 14.05.2011 12:06 # 0
по вечеру вместо "и" диез приглючился
Lure Of Chaos 14.05.2011 12:11 # 0
absolut 14.05.2011 12:23 # 0
SmackMyBitchUp 14.05.2011 14:05 # +1
n[i][h][u][y][a][s][e][b][e]...
Lure Of Chaos 14.05.2011 14:09 # 0
absolut 14.05.2011 14:57 # 0
guest8 08.04.2019 20:45 # −999
guest8 08.04.2019 22:06 # −999
guest8 09.04.2019 17:54 # −999