subject

Write a program that reads the contents of a text file by line, and outputs the number of characters in the line and the first 10 characters of the line, while if the line is less than 10 characters, the last character of the line is output as many times as it takes up to 10 characters. Write this program in two ways: using the functions of working with streams and a buffer in the style of the C and C++language. Help me pleas!!!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 22.06.2019 20:30
In this lab, you complete a prewritten c program that calculates an employee’s productivity bonus and prints the employee’s name and bonus. bonuses are calculated based on an employee’s productivity score as shown below. a productivity score is calculated by first dividing an employee’s transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked.
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
You know the right answer?
Write a program that reads the contents of a text file by line, and outputs the number of characters...
Questions
question
Physics, 06.05.2020 06:33
question
Biology, 06.05.2020 06:33
question
Mathematics, 06.05.2020 06:33
Questions on the website: 13722363