С++ static_cast. не выполняется приведение типов, в чём ошибка?
#include
#include
#include
using namespace std;
int main()
{
char ch;
ifstream in;
ofstream out; //ввод вывод
in.open("Test.bmp", ios::binary);
in.is_open();
out.open("Test.txt", ios::out);
out.is_open();
out.setf(ios::hex, ios::basefield);
out.setf(ios::showbase);
while (!in.eof())
{
in.get(ch);
//Здесь надо было привести char к integer
out.put(static_cast
}
in.close();
out.close();
getch();
return 0;
}
//-----------------------------------------------
#include
#include
#include
using namespace std;
int main()
{
char ch;
ifstream in;
ofstream out; //ввод вывод
in.open("Test.bmp", ios::binary);
out.open("Test.txt", ios::out);
out.setf(ios::hex, ios::basefield);
out.setf(ios::showbase);
while (!in.eof())
{
in.get(ch);
out.put(static_cast
}
in.close();
out.close();
getch();
return 0;
}
//------------------------------------------