You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing this issue with only C++ files. C works perfectly well. In attempts to take input from the user (using cin or cin.get()), the program doesn't wait from the user input. It just runs to the end. I use VSCode with GCC from Strawberry and the C/C++ Extension pack. Please help!
I saw this log in the debug console in vscode. I hope it provides relevant info.
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
[New Thread 30648.0x36d8]
[New Thread 30648.0x50c0]
[New Thread 30648.0x3960]
Thread 1 hit Breakpoint 1, main () at C:\Users\...\Kaleidoscopes.cpp:7
7 int cost = 5;
Loaded 'C:\WINDOWS\SYSTEM32\ntdll.dll'. Symbols loaded.
Loaded 'C:\WINDOWS\System32\kernel32.dll'. Symbols loaded.
Loaded 'C:\WINDOWS\System32\KernelBase.dll'. Symbols loaded.
Loaded 'C:\WINDOWS\System32\msvcrt.dll'. Symbols loaded.
Loaded 'C:\Strawberry\c\bin\libstdc++-6.dll'. Symbols loaded.
Loaded 'C:\Strawberry\c\bin\libgcc_s_seh-1.dll'. Symbols loaded.
Loaded 'C:\Strawberry\c\bin\libwinpthread-1.dll'. Symbols loaded.
[Thread 30648.0x8298 exited with code 259]
[Thread 30648.0x36d8 exited with code 259]
[Thread 30648.0x3960 exited with code 259]
[Inferior 1 (process 30648) exited with code 0403]
The program 'C:\Users\...\Kaleidoscopes.exe' has exited with code 403 (0x00000193).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am facing this issue with only C++ files. C works perfectly well. In attempts to take input from the user (using
cin
orcin.get()
), the program doesn't wait from the user input. It just runs to the end. I use VSCode with GCC from Strawberry and the C/C++ Extension pack. Please help!I saw this log in the debug console in vscode. I hope it provides relevant info.
My code:
Beta Was this translation helpful? Give feedback.
All reactions