Computers and Technology, 05.05.2020 16:43 tayjohn9774
Write a function that reads a text file, which has been opened in main program, and RETURNS the number of alphabetic characters (isalpha), digits (isdigit), punctuation characters (ispunct), and whitespace characters (isspace) in the file.
Here isalpha, isdigit, inpunct and isspace are C++ standard library functions, which are included in header file. More details about these functions are provided in Chapter 10.
Demonstrate the function in a complete program.
Hint
Use get function to read data from the file. For example, if fsIn is an opened input stream, then the following statement reads a character to the variable aChar from the opened file:
fsIn. get(aChar);
To read all data from a file, use while loop as follows:
while (fsIn. get(aChar)) // this is similar to while (fsin >> aChar)
{
……
}
Answers: 1
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
Computers and Technology, 23.06.2019 14:30
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
Write a function that reads a text file, which has been opened in main program, and RETURNS the numb...
History, 11.03.2021 01:00
Mathematics, 11.03.2021 01:00
English, 11.03.2021 01:00
Business, 11.03.2021 01:00
Mathematics, 11.03.2021 01:00
Mathematics, 11.03.2021 01:00
Mathematics, 11.03.2021 01:00
Social Studies, 11.03.2021 01:00
Mathematics, 11.03.2021 01:00