./hello using different slash

Hi, I’m new to c++, just curious about why the terminal in my laptop is using different slash

Does your laptop have a key for both \ and /? Those are usually two different keys on a keyboard.

The terminal used in the lecture is Powershell, I believe. If you’re using Windows, then the default is going to be Command Prompt. Terminal if it’s MacOS, and something else if it’s Linux.

Each terminal has it’s own differences and features. One example being different syntax for executing programs and scripts.

Yes! I knew they are different. Just curious why the slash works for me is different from the tutor had shown in the video😁

I use git-bash, but I had tried window Powershell as well, they all didn’t allow me to use the same slash shown as the tutor.

Privacy & Terms