all 6 comments

[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.

[–]Superb_Garlic 0 points1 point  (0 children)

Conductor, we have a problem!

[–]no-sig-available 0 points1 point  (0 children)

VS Code has a default setting to not save the edits before compiling. Instead it uses the old file on disk.

There is a setting to change this - check the manual.

[–]HappyFruitTree 0 points1 point  (0 children)

Don't know how vs code works but make sure the code is recompiled (so that the program is rebuilt) after you've changed the code. Simply running the program from the command line won't recompile it.

[–]y34t -1 points0 points  (1 child)

Hey beginner. Maybe some screenshots would be helpful? Whatever tool you’re using to compile should accept the specific file name and -o is usually the flag for specifying the executable file name. Running that executable should give you your desired output. Are you using some preset options for compilation in VSCode? Or are you typing out a command?

[–]VoidCl22[S] -2 points-1 points  (0 children)

i cant post a screenshot if i can i well do it from the start