I need to write a program that gets content of txt file and display all 4 letter word .
Can someone help ?
you207
0
Newbie Poster
Recommended Answers
Jump to PostWhat have you done so far? If you haven't written any code, what thoughts have you come up for solving the problem? Did you test any ideas with a small test program?
If you haven't done anything, why not? Keep in mind that nobody here will do your homework for …
Jump to PostI came up whit this ,but only finds the number of 4 letter word. I dont know how to print all 4 letter words on the screen.
Normally I'd suggest that you set a pointer to the start of each word as you go, then when the word …
Jump to PostWhy are you including the header file "stdafx.h"? I'm not familiar with this in C. What about "stddef.h". Why do you need this?
Why are you writing out your words in binary mode, into the file, but reading in file data in text mode? (line 62 and 77)
To debug …
All 9 Replies
you207
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
you207
0
Newbie Poster
you207
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
you207
0
Newbie Poster
you207
0
Newbie Poster
Adak
419
Nearly a Posting Virtuoso
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.