Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Two Posts in One Day Is A First For Me LOL -Anyway, I'm still working on my final program, which is basically an extremely crude text editor. This time, I have a problem with counting words/characters/setences in an exisiting text file. I've tried everything I can think of, I've used fgetc, fgets with counters in every kind of combination and loop imaginable. any help would be greatly appreciated!

Scott:
First function is C, rest is C++:
#include<string.h>
char *strstr(const char *string, const char *substring)
const char *strstr(const char *string, const char *substring)
char *strstr(char *string, const char *substring)
Return value is a pointer to where
"substring" begins in "string".If "substring" doesn't exist, return value
is null.
MYXP

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |