Mat
I know ed, sed and fred, but no jed
Anonymous
It's my preferred editor. Basic graphics like Nano, but instead of being patronizing and monochrome it's got basic color-coding and a menu-based interface. it also has support for S-Lang, a basic scripting language, and support for embedded shells, multiplexing, and can even have different presets enabled to allow use of EMACS, VIM, or other editor's macros and such
Anonymous
*wheeze*
Anonymous
Basically, a midpoint between Nano and EMACS
数学の恋人
sounds weird
数学の恋人
I'd probably go with either Emacs or nano then
Anonymous
With color support, as well.
数学の恋人
yeah I saw
Anonymous
and you can compile from within the editor too
数学の恋人
ohh
Anonymous
*nod* It integrates with your system's development tools, last I checked
数学の恋人
I use nvim as my editor, I really like it
Anonymous
I was never able to get super into the vi family
Anonymous
i don't want to have a walkthrough for my editor :P
数学の恋人
I learnt reading manuals and stuff
Dima
数学の恋人
ok so I have this little code, what's possible wrong with it?
数学の恋人
ok so I have this little code, what's possible wrong with it?
My guess is, line 7, x == NAN isn't correct I guess
Anonymous
cringe
Anonymous
send his id
hey)can you add @Singham42
Ilya
What's the connection between cmake and Qt creator?
Qt Creator supports projects written in CMake.
Ilya
A lot of tutorials are bad, i know
A lot of tutorials at all are shitty. You just have to find a good one.
Anonymous
VS Code is just an editor, CMake can be used with it obviously
olli
Even for Windows I would recommend Qt Creator for a beginner. A lot C++ books for beginners don't teach cmake so recommending Visual studio or visual studio code for beginners is not a good idea.
You don't need to CMake in combination with Visual Studio, but you can. I would recommend VS for beginners it features a modern compiler, powerful and easy to use debugger and managing your project is as easy as "right click => Add File"
Nassrullah
You don't need to CMake in combination with Visual Studio, but you can. I would recommend VS for beginners it features a modern compiler, powerful and easy to use debugger and managing your project is as easy as "right click => Add File"
Yeah got it. Seems I made a confusion vs and vs code. VS has indeed more advanced features. My field is web dev and atom, I just touch c++ from time to time so it's easy for me to make a mistake in these IDEs stuffs.
Asgardian
Hey guys..fresher here
Botir
What about KDevelop? Have anybody use it?
Botir
Daniele
is there something like a flavoured text editor for android?
Daniele
something along the lines of vs code (doesn't need to compile or run stuff, just and editor with proper indentation support and colors for C keywords)
Swarnali
Can anyone solve this please? 😥 Tomorrow I have my semester exam
Pavel
Can anyone solve this please? 😥 Tomorrow I have my semester exam
Here we can help you learn, but we can't help you if you just want someone to solve your tasks.
Anonymous
hello everyone
Anonymous
is there anymethod to iterate over a struc member
Anonymous
struct A { bool autenticated; bool started; bool enabled ; A() { autenticated = false; started ⁼ false; enabled = false; } }
Anonymous
how to iterate over this class
Anonymous
using a loop or something like that
olli
how to iterate over this class
C++ does not support reflections, so there is no standard way to do it
Anonymous
Why should you?
because i want to initiate a struct of socket using sun_family = AF_UNIX
Anonymous
and then do memset
Pavel
using a loop or something like that
Sadly, reflection postponed from C++20, so there's still no standard way, but some approaches available: https://stackoverflow.com/questions/17660095/iterating-over-a-struct-in-c
Anonymous
i want to automate this initation
Anonymous
struct socketlist { sockaddr_un masocket; sockaddr_un psocket; sockaddr_un vsocket; sockaddr_un cisocket; socketlist() { masocket.sun_family = AF_UNIX; psocket.sun_family = AF_UNIX; vsocket.sun_family = AF_UNIX; cisocket.sun_family = AF_UNIX; } };
Anonymous
i want to automate this process
Asad
in what cases we use a struct instead of a class?
olli
in what cases we use a struct instead of a class?
all the time, in C++ a struct is a class with default public visiblity in many cases a struct is choosen for POD types
Gautam
How to make website
Gautam
Or app
数学の恋人
It's ok, correct
but shouldn't I do like, if (isnan(x)) { // statements }
数学の恋人
ah sorry go habit
数学の恋人
now see
Ilya
but shouldn't I do like, if (isnan(x)) { // statements }
it's same. I'd prefer checking with function, yes.
数学の恋人
NAN == NAN —> false NAN < NAN —> false NAN > NAN —> false
数学の恋人
NAN == NAN —> false NAN < NAN —> false NAN > NAN —> false
I'm concerned about this, we can't really compare NAN
数学の恋人
ok got it
数学の恋人
x == NAN <— incorrect if (isnan(x)) <— correct
Anonymous
Ilya
/report
Roxifλsz 🇱🇹
/warn some referral thingy
Shadab
hi i am solving codechef long " Plus mul" question my solution giving wrong ans can someone help me
Shadab
when i am comling on my machine it gives right ans for the given test cases
Shadab
can you some some other test cases apart from codechef
Anonymous
You have to think of testcases yourself It's an important part of solving problems
Anonymous
No one is gonna write neither the code not the test cases