I have set Dev C++ Compiler MinGW bin folder as Enviroment Variable Path, So that i can use it in cmd and VS Code terminal also, But it compiles well and only performs simple operations.** It cannot give class object function output **
Path which i have added
C:\Program Files (x86)\DevC++\MinGW\bin
#include <iostream>
using namespace std;
class Base{
public:
void greet(void){
cout<<"How are You ? \n"<<endl;
}
};
int main(){
Base obj;
cout<<"Good Morning!\n";
obj.greet();
return 0;
}
Output:
Good Morning!
Expect Output:
Good Morning!
How are you ?
I want to know if it is same compiler file of MinGW in DevC++ why cannot we use outside DevC++, why do i have to download seperate compiler for VS Code.