In macOS whenever I compile and execute my code I use g++ name.cpp && ./a.out
but in Windows it doesn't work for compile and run i use
g++ name.cpp
./a.exe
I'm using command prompt. g++ name.cpp && ./a.exe doesn't work. But i want to use a single line command like i used to do in macOS