program z zajec
program z dzisiejszych zajec:



#include <stdio.h>
#include <stdlib.h>ek

int main(int argc, char *argv[])
{
char string[101];
int i, j;
FILE *pFile;
pFile=fopen("ala.txt", "r");
if (pFile == NULL) perror ("Error opening file");
while (!feof(pFile))
{
fgets(string, 100 , pFile);
if(strlen(string)<7){
if(strstr (string,"ab"))
printf("%s",string);
}}
system("PAUSE");
return (0);
}


  PRZEJD NA FORUM