Vedant
👍
detergentTikiya
im not sure i know what that is.. ill look it up
If you are using GCC , it would be easier for you to know
detergentTikiya
Thanks
No prob. There are plethora of resources on dynamic memory allocation
Shubham
#notes
Shubham
/notes
Shubham
#offtopic
No
I am from indonesia
No
Hii
Dima
I am from indonesia
/warn Welcome, but read the rules
Raghav
Hey anyone here know about Moss Plagiarism Detector?
MᏫᎻᎯᎷᎷᎬᎠ
I don't
££*KHB*££
How to write program for prime no in c++ help me
detergentTikiya
What's that
Harshita
Hey ! I need help regarding my project
Harshita
Anyone who know about Qt creator software.
detergentTikiya
It's just Qt
Harshita
Okay
Anonymous
Guys cpp19 can be used with unity3d fr game development
Anonymous
Nomid Íkorni-Sciurus
Harshitha mam what is Qt
it is an extendable cross-platform gui toolkit powerful like .net (maybe) and versatile like GTK (maybe more)
Francisco
How to write program for prime no in c++ help me
Use the definition of prime numbers and write the program according to it
detergentTikiya
How to write program for prime no in c++ help me
Google what are prime numbers and proceed to think about it
AY
/saved
Anonymous
I am currently using glfw As my to produce a window Everything is just fine with one minor detail
Anonymous
When I compile my code and the window opens a console window lags behind
Anonymous
How do I get rid of that
Anonymous
Any ideas please 😩😩
Carlos
/get cpp
Carlos
/get best-book
Anonymous
What do you mean by lags behind?
There is a console window is behind the glfw window
Anonymous
Like normal command line window before the main glfw window . And I want to eliminate that
££*KHB*££
Mihail
Like normal command line window before the main glfw window . And I want to eliminate that
Well it depends on how you launch your app. If you're using an IDE likely the IDE opens a console window and launches your app inside that
olli
Like normal command line window before the main glfw window . And I want to eliminate that
Depends on your compiler, for MinGW pass -mwindows for MSVC add /SUBSYSTEM:WINDOWS to the linker https://docs.microsoft.com/en-us/cpp/build/reference/subsystem-specify-subsystem?view=vs-2019
Patel
turbo is not working
Patel
how to start turbo
S.
turbo what
Patel
c++ turbo
S.
c++ turbo
better to install a dos first and then install it
Martin
Hi, how can I generate a compiler error whan all my if constexpr failed? template <typename T> void foo(T v) { if constexpr(std::is_same_v<T, int>) bar1(v); else if constexpt(std::is_same_v<T, float>) bar2(v); else somehow_make_compiler_fail(); }
Martin
No, static_assert(false) will cause a compiler error no matter if any of the conditions are matched.
olli
I'm avoiding SFINAE for better readability.
then something like this? template <typename T> void foo(T v) { if constexpr(std::is_same_v<T, int>) { // int } else if constexpr(std::is_same_v<T, float>) { // float } else { static_assert(std::is_same_v<T, int> || std::is_same_v<T, float>, "Wrong type"); } }
Martin
In that case, I'll have to update the isXxx variable list very time I add a supported type. It's not scalable.
Martin
better that way?
It's better than not compiling, yes. But I'm trying to find a better solution.
olli
Well it's hard to help without knowing the requirements
Martin
Hmm...
Martin
Make the compiler fail when the else clause is reached, everything has to be done in compile time and keep the structure (no extra variables)
✟꧁۝ঔৣঔৣ۝꧂✟
hello gys please assit me on C++ class , if there is a book regarding class and also a littile bit on function
££*KHB*££
How to use logic in programming
Farhan
int logic=0;
kλletaa
https://medium.com/better-programming/object-oriented-programming-the-trillion-dollar-disaster-️-92a4b666c7c7
kλletaa
good read
kλletaa
and it's not off topic either
££*KHB*££
What does that mean?
When making program how we can know when to use loops, strings etc
Anonymous
Practice😂
Вадим
hi. somebody work with cmake? if i will give cmake two same parameters, will the value of the first be accepted, the last or will there be an error?
Вадим
okey
Ludovic 'Archivist'
https://medium.com/better-programming/object-oriented-programming-the-trillion-dollar-disaster-️-92a4b666c7c7
This is a quite true article. One rule that I have is to use OOP features only for small elements (less than 80 lines of code) that have the least amount of dependencies when I write C++ code, and that is mainly for small primitives like objects that represent an always big endian integer or stuff like that
Dima
/ban eshaq Crypto shit
Anonymous
hello guys can u help me s to figure out the error here., my code is a simple example of encryption using "Atbash" method. where you write all alphabet in order then under it you write it in reverse order so each letter will be replaced with the opposite letter in down row so letter "a" will become "z" and letter "z" will becom "a"
Anonymous
as an example if we type word "hello" we get "svool" as encrypted
Anonymous
Anonymous
this is my code but sounds like it doesn't work
Anonymous
It's not readable
Anonymous
I can explain the code if you want
Anonymous
I can explain the code if you want
No, you should rewrite it
Anonymous
And
Anonymous
No pictures of a code is allowed in this chat