I_Interface
Anonymous
ye, but better std::string s = std::getline(std::cin, s);
std::string s = std::getline(std::cin,s) ; ??
Anonymous
From cpp reference:
Anonymous
Notice that the istream extraction operations use whitespaces as separators; Therefore, this operation will only extract what can be considered a word from the stream. To extract entire lines of text, see the string overload of global function getline.
I_Interface
std::string s = std::getline(std::cin,s) ; ??
declaration and initialization with input data
Anonymous
No, std::getline retusn an istream&
Anonymous
You'd have to do
Anonymous
std::string s; std::getline(std::cin, s);
I_Interface
ah, i have a better var
I_Interface
forgot about it
Anonymous
Anonymous
It gets a line from the istream specified in the first argument
Anonymous
And puts it into the string in the second argument
I_Interface
std::string s = [] { std::string str; std::getline(std::cin, str); return str; } ();
I_Interface
variant with lambda
I_Interface
What form should I write? 😂
the last one with lambda
Anonymous
Well, possible, but I don't know whether it would be efficient at all.
Anonymous
I don't think he's ready for lambda functions.
Anonymous
Does he even use C++11?
shanmupositivity❤
shanmupositivity❤
ans for this plzz
I_Interface
/report
Anonymous
We don't do homework.
Anonymous
Does he even use C++11?
what's C++ eleven?
Anonymous
A C++ standard
Anonymous
Which introduced many things
I_Interface
what's C++ eleven?
standart version
Anonymous
Like lambda functions, smart pointers
I_Interface
Which introduced many things
did u see anounces about 20th standart ?)
Anonymous
Not many, I should read one day what they promise.
Anonymous
Which introduced many things
Which idk that support it?
Anonymous
I've seen the modules they want to introduce.
Anonymous
Seems cool enough.
Anonymous
Which idk that support it?
What c++ compiler do you use?
Anonymous
What c++ compiler do you use?
The compiler that comes with visual studio 2013
Anonymous
Anonymous
Hm, it should support c++11 then I thinkm
Anonymous
In a non-standard way probably, since it's microsoft, but still
I_Interface
Not many, I should read one day what they promise.
a lot of things for lambda + std::atom_ptr
Anonymous
Sounds interesting.
Anonymous
Well, we'll have to wait at least a year
Anonymous
Probably more until every compiler supports the new additions.
Anonymous
Hm, it should support c++11 then I thinkm
I'll use one of C++11 fuctions to make sure that it support C++11
I_Interface
Sounds interesting.
Compilers, which ready, maybe will be presented at this cppcon
I_Interface
For C++20
Anonymous
Yeah, it will make C++ even greater again.
Azzam
Cppcon's tickets are yet available or not?
I_Interface
Cppcon's tickets are yet available or not?
idk but i think they are alrdy sold
Anonymous
Has someone here a program with GUI?
Azzam
idk but i think they are alrdy sold
Students tickets also???
Hayk
Has someone here a program with GUI?
It depends on which library you use
Anonymous
Hayk
xwidget, qt.. etc??
Yes. Which one do you use/want to use?
Anonymous
Anonymous
Yes. Which one do you use/want to use?
Do u use one of these libs?
Anonymous
I use Qt
It's not free, right?
Hayk
It's not free, right?
It has it's community version.
Anonymous
Wait a moment, can you pm me? I want some details
Hayk
And for some more stuff you need to purchase the commercial license. But surely you won't need it.
Tejas
Hey need help
Anonymous
Say
Tejas
I am a beginner in programming
Tejas
I m very bad at logics
Tejas
Suggest me some games
Tejas
By which i can improve
Tejas
?
Tejas
Or how can i improve in logics
Tejas
Okay some more
Anonymous
Hi I need assistance please