Kdar Daemon Poster Messages 894 Aug 13, 2009 #1 What would be logic of a program that would count capital letters inside a text file (document)? Maybe using C or C++... or anything related.
What would be logic of a program that would count capital letters inside a text file (document)? Maybe using C or C++... or anything related.
K kmote Seg Fault'n, Messages 5,801 Location The dried husk where America came from Aug 13, 2009 #2 Open a file stream, iterate through using isupper isupper - C++ Reference PS I had to laugh. I didn't take me long to forget almost everything I knew about c. EDIT: bit more info Code: file = fopen do int = getc if isupper int counter++ while condition I will leave you to fill in the blanks.
Open a file stream, iterate through using isupper isupper - C++ Reference PS I had to laugh. I didn't take me long to forget almost everything I knew about c. EDIT: bit more info Code: file = fopen do int = getc if isupper int counter++ while condition I will leave you to fill in the blanks.