Tuesday, May 24, 2016

Re: Entries impossible in a Stoustrup code example

aubertin.sylvain <aubertin.sylvain@sfr.fr> wrote:

> The mame of this code is "list". It seems to be incomplete (nowhere a cin instruction). It runs but it doesn't work. May any one help me (I am a beginner).
> Here is the code:

This question is completely unrelated to Vim, so please do not
post questions unrelated to vim in this mailing list. You should
instead post c++ questions to a c++ mailing list.

Anyway, your code compiles fine and runs.
It's just a code example. There is no need for std::cin.

$ g++ foo.cpp
$ ./a.out
{one 1}
{two 2}
{three 3}
{four 4}
{five 5}
{six 6}
{six 6}
{two 2}
{three 3}
{four 4}
{five 5}
{six 6}
four 4
three 3

Regards
Dominique

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: