Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- int main()
- {
- int a;
- short i;
- //std::cout<<"Enter number: "<<std::flush;
- //std::cin >> a;
- std::ifstream f("binary.txt", std::ios::binary);
- while (f.eof())
- {
- f.read((char *)&i, sizeof(short));
- std::cout << i*3 << std::endl;
- //std::cout << a << std::endl;
- }
- f.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement