Hi, i am new to this forum, and new to c programming. I have an assignment to write a program in c which asks the user to type in a file name (already existing) for which he wants to do processing. The size of the file is not known so memory for reading it has to be allocated dynamically. The program then looks for the 7th occurence of all phrases if they exits, of all lengths, and puts the dollar sign $$$ before and after the phrase. Then it looks for the 10th occurence of all words, and replaces it with the word "warning."
The other part of the assignment, was to design a tic tac game with spaces and words for placing and replacing. I understood this one so i did it already. I just dont understand how to proceed with the one above. Please help me out.
Thanks
Fusina 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Fusina 0 Newbie Poster
dwks 149 Posting Whiz in Training
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.