1) Change the beginning of your file from this:
#include "stdio.h"
#include "string.h"
#include "iostream.h"
#include "conio.h"
to this:
#include <cstdio>
#include <cstring>
#include <iostream>
#include "conio.h"
using namespace std;
2) Rename the class log
to mylog
, log
is a standard function already defined via #include <iostream>
.
3) Remove the calls to clrscr()
, there is no such thing anymore.
4) Replace for (long long long long int a = 0; a<(w * 100000); a++);
with for (long int a = 0; a<(w * 100000); a++);
. What is this supposed to do? I doubt that this compiled with TurboC++
Then it will compile without errors.
2
solved Compiles in turbo c++. Not in visual studio [closed]