sorry i am new to this site. and didnt knw about this.. What do you think abtout my problem?
thanks in advance
User Profile
Collapse
-
-
Hi i have problem with counting the number of paragraphs in a text file
Im putting the part of the code which is relevant to my question......T he program is opening the texfile which i already have created..Im not quite managing to make the program count the number of paragraphs found in the text file.. can someone please help me? 10x in advance
...Code:#include <stdio.h> int main () { int paragraphs = 0; char emptyLine; FILE * fp; -
i have done dis part :-
...Code:#include <stdio.h> #include <stdlib.h> int main () { string line; ifstream myfile ("C:\\keo.txt"); if (myfile.is_open()) { while (! myfile.eof() ) { getline (myfile,line); cout << line << endl; } myfile.close(); }Leave a comment:
-
Problem with my c assignment
Hi guys i need help... im trying to make this program, to count the number of paragraphs found in a particular text file. 10x
No activity results to display
Show More
Leave a comment: