Quote:How to compress and decompress the inputted file text using huffman coding in C++?
1) Learn C++.
2) Learn how to read a disc file and how to write one too.
3) Depending on what is your homework:
3.1) Find a library that do Huffman encoding/ decoding, read its documentation to use it.
3.2) Find reference documentation about Huffman encoding/decoding, study it, and write your how code.
Internet is full of resources if you dare to search. Google is your friend.
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.