I have a class in another .h and .cpp file from my main.cpp.
In main.cpp:
#include <iostream>
#include "filestuff.h"
#include "stream.h" <-- right here
int main(int argc, char** args)
{
    if(!args[1])
        return 0;
    u64 filesize = 0;
    get_file_size(args[1], &filesize);
    u8* fd = new u8[filesize];
    read_file(args[1], fd, filesize);
    Stream s = new Stream(fd, filesize, "rb", BigEndian );
    getchar();
    return 0;
}
In Stream.h
#include <iostream> //just in case?
#if defined(_WIN32) && defined(_MSC_VER)
    typedef __int64 s64;
    typedef unsigned __int64 u64;
#else
    typedef long long int s64;
    typedef unsigned long long int u64;
#endif
typedef unsigned long int u32;
typedef signed long int s32;
typedef unsigned short int u16;
typedef signed short int s16;
typedef unsigned char u8;
typedef signed char s8;
#define LittleEndian 0x1
#define BigEndian 0x2
class Stream
{
public:
    Stream(u8* buffer, u64 length, char* access, int IOType);
private:
    u8* buffer;
    u64 pos;
    u64 len;
};
In Stream.cpp
#include "stream.h"
Stream::Stream(u8* buffer, u64 length, char* access, int IOType)
{
    u8* buf = new u8[length];
    buffer = buf;
}
How can I use the following code to initialize my class like I want to do in main now?
Stream* s = new Stream(fd, filesize, "rb", BigEndian );
 
     
     
     
     
     
     
    