Vs code don't ask for input #13952
Replies: 2 comments 1 reply
-
This works for me. Did you follow our guide for GCC on Windows? https://code.visualstudio.com/docs/cpp/config-mingw. The most likely suspect is that the PATH environment variable is not updated to point to the dll's that MinGW depends on so the program fails to run and exits immediately. You'll know it's working if you see the first message printed out: "Enter m and n:" |
Beta Was this translation helpful? Give feedback.
-
i don't know it don't help me actually i try other problem like checking palindrome
this program run fine asking or say wait for my input but that spiralprint.cpp program i don't know what happen to it C:\Users\ASUS\Desktop\The PG folder\c++>cd Array C:\Users\ASUS\Desktop\The PG folder\c++\Array>g++ palindrome.cpp -o palindrome.exe C:\Users\ASUS\Desktop\The PG folder\c++\Array>.\palindrome.exe C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>g++ spiralprint.cpp -o spiralprint.exe C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>.\spiralprint.exegcc --version C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>.\spiralprint.exe C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>pacman -S --needed base-devel mingw-w64-x86_64-toolchain C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
this is what i get
C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>g++ spiralprint.cpp -o spiralprint.exe
C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>.\spiralprint.exe
C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>3 4
'3' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\ASUS\Desktop\The PG folder\c++\Array\2D Array>
why it don't ask for input even don't ask for Enter the value of m and n even i do cout still didn't
i have done this all from chatgpt and perplexity but i'm not able to resolve the problem 1st thing that i tell you that i know how to run the program in vs code just asking why it get terminated automaticaaly
Beta Was this translation helpful? Give feedback.
All reactions