subject
Computers and Technology, 24.03.2020 18:06 knela

Macro File: Create macros to print an int, print a char, print a string, get a string from the user, open file, close file, read file, and allocate heap memory. You can use more macros than these if you like. Main Program File: 1. Allocate 1024 bytes of dynamic memory and save the pointer to the area. 2. The main program is a loop in which you ask the user for a filename. If they enter nothing for the filename, exit the program. Otherwise: a. Open the file for reading. If the file does not exist, print an error message and terminate the program. b. Read the file into an input buffer space of 1024 bytes. c. Close the file. d. Output the original data to the console. e. Call the compression function. Save the size of the compressed data in memory.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Lisa has a section of her document that she would like to include in the index. which option should lisa choose? mark index mark entry insert endnote add text
Answers: 3
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
question
Computers and Technology, 24.06.2019 18:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
You know the right answer?
Macro File: Create macros to print an int, print a char, print a string, get a string from the user,...
Questions
question
Mathematics, 02.12.2020 21:10
question
Mathematics, 02.12.2020 21:10
question
Mathematics, 02.12.2020 21:10
question
Mathematics, 02.12.2020 21:10
Questions on the website: 13722367