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 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 23.06.2019 20:40
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
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
Mathematics, 29.10.2020 01:00
question
Mathematics, 29.10.2020 01:00
question
Chemistry, 29.10.2020 01:00
question
Mathematics, 29.10.2020 01:00
question
Chemistry, 29.10.2020 01:00
question
Business, 29.10.2020 01:00
question
Mathematics, 29.10.2020 01:00
question
Mathematics, 29.10.2020 01:00
Questions on the website: 13722359