Question: I dont know why my program doesnt compile and run. Can you check it where I lost? I also attached the example output. Thanks the
the wel edetine max 256 int main(int, char, char*) file name main.cpp Author Teddy nick name) include drain . h> int main(int, argc, argvi) fsteam file; int arraylmax)(0) /cont tabie string file name: char byte anput butfer open tZe std:zcout se"Enter input tile name"//atd: icin >tile name: getline (std::cin, file nane) file.open (file nane, std:sios::in) ififile.is open) std::cout nax: idx++) std:: cout cat input Hello World This is a line of text syccuxas01> main input [File main.cpp compiled using GNU GCC 7.2.0 with 32 bit integers] Code 10 (n/a) count is: 3 Code 32 (n/a) count is: 6 Code 46 (.') count is: 2 Code 72 ('H) count is 1 Code 84 ('T) count is: 1 Code 87 (') count is: 1 Code 97 ('a) count is: 1 Code 100 ('d') count is: 1 Code 101 ('e count is: 3 Code 102C'f count is: 1 Code 104 ('h) count is: 1 Code 105 ( count is: 3 Code 108 ('1 count is 4 Code 110 ('n') count is: 1 Code 111 ('ocount is: 3 Code 114 C'r) count is: 1 Code 115 ('s) count is: 2 Code 116 ('t count is: 2 Code 120 ('x') count is: 1 syccuxas01>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
