我对cpp仍然很缺乏经验。 我有我想从.cpp文件调用一个函数,下面是它的头: int wsq_encode(unsigned char* bufferRAW, int width, int height, char compressRate, std::ostream &streamWSQ);
我需要写打开万吨的RAW图像格式的编码(bufferRAW)和压缩他们根据这家公司的算法对.wsq
我有下面的代码解析一个for语句,但我不知道如何在调用方法write(...)时将任何值放入ostream。我能做什么? (如write("for (.........")) #include <ostream>
#include <iostream>
using namespace std;
//I cut out the declaration bit here
typedef