Arkadaşlar aşağıdaki kodda hata alıyorum.
Aldığım hata:
[Error] invalid operands of types 'bool' and 'short int*' to binary 'operator*'
Hata satırı :
C++:
#include <iostream>
#include<windows.h>
#include<replace.h>
#include<clocale>
#include<fstream>
#include<string>
#include<find.hpp>
#include"libs\ccolor.h"
#include"libs\sys.hpp"
using namespace std;
int main(int argc, char** argv) {
sys sys;
setlocale(LC_ALL,"turkish");
fstream runner("runner.bat");
//string* file=new string;
string* impc=new string;
string newfile;
string order;
long int* countL=new long int;
long int* ocount=new long int;
short int* blimit=new short int;
*blimit=0;
bool* run=new bool;
*run=true;
*countL=1;
*impc="import[sys.r];";
*ocount=0;
while(*run){
cout<<green<<"$ "<<yellow;
getline(cin,order);
if(order[0]!=' '){
if(order[0]=='r' && order[1]=='u' && order[2]=='n' && order[3]==' '){
replace(order,"run ","");
cout<<order<<endl;
ifstream rFile(order.c_str());
newfile=order;
replace(newfile,".faz",".cpp");
if(rFile.is_open()){
fstream nFile(newfile.c_str(),ios::app);
cout<<"opened..\n";
while(!rFile.eof()){
++*ocount;
}
while(!rFile.eof()){
string* line=new string;
rFile>>*line;
if(*countL==1){
if(*line==*impc){
replace(*line,*impc,"#include<sys.h>\n\n");
nFile<<*line;
}
}
if(*line=="begin:" && *blimit!=1){
replace(*line,"begin:","using namespace std;\n\nint main(){")
++*blimit;
}else if(*blimit==1){
delete blimit;
}
delete line;
++*countL;
}
}
}
}
}
return 0;
}
Aldığım hata:
[Error] invalid operands of types 'bool' and 'short int*' to binary 'operator*'
Hata satırı :
++*blimit;