I_Interface
well at least I tried to help him but he seems to be silly
I don't think what he will keep it too long (be unbanned).
Jobin
Function ("abcd"); How can we modiify the literal in C
Ilya
How to create a student database using tree structure in c of several classes with several sections.
If you mean Relational database, they are not related to C anyhow, except they are written in C mostly.
Anonymous
anyone knows OOP in Cpp?
Dima
Wtf lol
I_Interface
Mar!o
Guys is there a way to declare a constexpr std::string? Should I use a string view instead?
Mar!o
:/
Anonymous
Anonymous
Guys is there a way to declare a constexpr std::string? Should I use a string view instead?
In C++20 there's a constexpr std::string But if you want to store just a string literal, constexpr std::string_view will be applicable (since C++17)
Mar!o
Alright thank you! I'm so hyped on c++ 20 especially on concepts and modules!
Ilya
anyone knows OOP in Cpp?
Anyone knows everything
Francisco
Mar!o
Me too I think they a nice modern way to replace the header system and they will also clean up the post processor hell. Why do you think they suck?
Dima
bringing all that hipster stuff from higher level languages, eh?
Dima
I wonder if at one moment cxx will turn to unsafe c# code
Dima
lol, nah
Mar!o
I understand your point but I think there are still many things in C++ which could have an modern overhault
Mar!o
Sure you are right I for example would hate It if they would add Garbage Collection or Reflection
Mar!o
But Modules make things cleaner - no more forward declarations, no more macro redefinitions, cleaner code
Dima
well reflection already exists in some meaning
Dima
but we can turn it off
Mar!o
Would be a shame if we couldn't ;)
Mar!o
What do you think about concepts?
Mar!o
Jesus... hopefully it's possible to disable it
Mar!o
There is really no need for reflection - iv'e written dynamic modern game engine gameplay systems without reflection - reflections is a nice tool but not needed in c++
Mar!o
Not... oups
Mar!o
I mean who is writing a business application or a simple app in c++ there are more suitable languanes like C# or python
Dima
I did my own kinda reflection stuff to simplify my game engine UI editor
Dima
simply some hashmap with property names and callbacks
Mar!o
Ur also a game engine programmer?
Mar!o
I did my own kinda reflection stuff to simplify my game engine UI editor
Yeah thats a nice way Ive written a simple python script which then generates the data files for me - its really easy no need buildin reflection
Mar!o
And typeid is still there to our rescue ;)
Dima
And typeid is still there to our rescue ;)
I have -fno-rtti ¯\_(ツ)_/¯
Anonymous
no longer UB in C++17
So the operation will be done in which precedence?
olli
So the operation will be done in which precedence?
C++17 added The right operand is sequenced before the left operand. to [expr.ass]. hence x is 30 and y is 21 you can see the change from C++14 to C++17 when using MSVC https://godbolt.org/z/VyM2f-
olli
MengShu
May I know what this tool is?
olli
May I know what this tool is?
Compiler Explorer (e.g. https://godbolt.org/z/VyM2f-) you can either use the official version or run it locally. It's really awesome
MengShu
Thank you so much
Pratham
😂
Anonymous
Sogeking
Any app development videos ....links
I_Interface
Any app development videos ....links
And don't watch videos from indians.
Sogeking
Kkk✌️
Mar!o
😂
Sogeking
And codew for tic tac toe game
Sogeking
Codes*
I_Interface
And codew for tic tac toe game
Are u banned from google ?
Sogeking
Nope
I_Interface
Nope
Then google it, damn.
Sogeking
Kk😁
I_Interface
Nope
This chat is for helping with code problems, not doing/searching/learning your problem what u can to google.
Sogeking
Ohh kkk ✌️
Mar!o
Does anybody know when C++ 20 will be released - sprint, summer?
Mar!o
Or at least when it will be available in msvc and visual studio 2019
Francisco
Does anybody know when C++ 20 will be released - sprint, summer?
The C++20 standard is planned to be launched right after the next meeting, which takes place in 2020 (I think in march). After that, it's a question of time for the compilers to implement it. In MSVC there's already a big portion of C++20 implemented, but also in clang and gcc
Francisco
Just turn on the flag -std=c++2a in gcc and clang or /std:c++latest in MSVC and the you can use C++20 (what's been implemented so far)
Chandradeep
Is there any time difference functions for C lang?
Chandradeep
Actually i want to find the difference of two times which are in string... And i dont want to use time.h time_t as i need to map the date also
Esha
A little
Esha
C++ is an extended version of C Only
Esha
But there are some advancements
Francisco
I know but there are still missing many things :/
There's missing things even from C++17 in gcc and clang, so be patient
Francisco
The only compiler supporting full C++17 (including the STL) is MSVC. gcc an clang are still missing little bits
Francisco
Which means that you shouldn't expect any compiler to support full C++20 until, at least, 2022 (being optimostic)
Anonymous
C++ is an extended version of C Only
It is a different language
Mar!o
The only compiler supporting full C++17 (including the STL) is MSVC. gcc an clang are still missing little bits
Wow okay I didn't knew that because I'm developing my games only for Windows. I see there are also benefits when I'm using a compiler from a big company like Microsoft.