Mat
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
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?
数学の恋人
Anonymous
cringe
Ilya
Ilya
Anonymous
Anonymous
VS Code is just an editor, CMake can be used with it obviously
MengShu
Nassrullah
Asgardian
Hey guys..fresher here
Botir
What about KDevelop?
Have anybody use it?
Surge.rs
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
Mat
Pavel
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
Mat
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
olli
Anonymous
Asad
in what cases we use a struct instead of a class?
Gautam
How to make website
Gautam
Or app
Ilya
数学の恋人
ah sorry go habit
数学の恋人
now see
Ilya
数学の恋人
NAN == NAN —> false
NAN < NAN —> false
NAN > NAN —> false
数学の恋人
数学の恋人
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
I_Interface
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
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