hello guys,
i tried several times to write a code for a histogramm. But it does not compile.
I would be glad and very thanxful, if someone can help me out :)
Best regards.
Amber
# include <stdlib.h>
#include <fstream>
#include <vector>
#include <iostream>
using namespace std;
int main (){
ofstream out ("out.raw",ios_base::binary);
unsigned char randomnumber;
for (int i=0; i<255;i++)
{
randomnumber=rand()%255;
out.write ((char*)&randomnumber,1);