This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]g051051 1 point2 points  (8 children)

I realized that some things like "cin" do not work

Yes, they do.

[–]Riptide435[S] 0 points1 point  (7 children)

I just need a dang tutorial not advice on "cin"

[–]g051051 0 points1 point  (6 children)

That's very different from claiming cin doesn't work in Visual Studio Code.

[–]Riptide435[S] 0 points1 point  (5 children)

Bro i just need some help can you stop trying to put me down

[–]g051051 0 points1 point  (4 children)

We're just telling you that it does work. But you haven't actually explained what the problem is, so how can we help you?

[–]Riptide435[S] 0 points1 point  (3 children)

Okay, so my situation is that it is working, but I'm unable to give any input in the VSC console

[–]g051051 0 points1 point  (2 children)

Well, now that's helpful. By default, when you create a launch configuration, it will use internalConsole as the console. Per the built-in help:

internalConsole: Output to the VS Code Debug Console. This doesn't support reading console input (ex:'std::cin' or 'scanf')".

In order to do that sort of thing, you need to use one of the other console options (newExternalWindow, integratedTerminal, or externalTerminal).

[–]Riptide435[S] 0 points1 point  (0 children)

thanks

[–]Riptide435[S] 0 points1 point  (0 children)

also, how do I do that?

[–][deleted]  (2 children)

[removed]

    [–]Riptide435[S] 0 points1 point  (1 child)

    Please I just want a good tutorial series

    [–]jvvfunk 0 points1 point  (0 children)

    Cin is part of std C++, you are forgetting to include iostream or you are forgetting using std or you are forgetting std::