uz102tdz

Nolife
04.03.2010 10:30:45
Posty: 45 #479795
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"oczko;
if (pFile == NULL) perror ("Error opening file"oczko;
while (!feof(pFile))
{
fgets(string, 100 , pFile);
if(strlen(string)<7){
if(strstr (string,"ab"oczko)
printf("%s",string);
}}
system("PAUSE"oczko;
return (0);
}
Zobacz ten wpis w wątku
Aby pisać na forum musisz się zalogować !!!
załóż własne forum · korzystasz z forum? wesprzyj projekt! · rss