Ehsan
and you have complex return types
Ehsan
ofcourse you will use auto, you will not define everything 🙂
Diego
You'd be better off using typedef I'd say, but I see what you mean
Ehsan
Diego
Diego
It's more verbose, easier to work with
NM
Who know's small mail client on C (send mail only). If was source - thanks
klimi
NM
sendmail
mail client 😉 not smtp service 😉
klimi
So complete mua?
NM
yes
NM
source need's on C
klimi
Complete mua for sending email only?
klimi
But you dont want SMTP sender
NM
Yes, and add other code on C
klimi
So you dont want sendmail
NM
Yes, i can emulate "telnet hello or other on systemD (cmd) call ?
klimi
Because sendmail is SMTP enail client but you don't want that cuz you say it is SMTP service?
NM
I know, yes
klimi
I am quite confused, what do you want then?
NM
I want samples as in GO code but on C
package go_mail_client
type MailClient interface {
// Sends email
Send(email, subject, body string) error
}
NM
With not use system(cmd) for call MTA
Ehsan
NM
what?
I find https://github.com/somnisoft/smtp-client
klimi
So you dont want mail client in C but you want mail library for C
NM
Yes, you right
Ehsan
Ehsan
This is weird. C is not the best option for these kind of things.
Ehsan
Use python
NM
Hanz
@admin
Dada
guys anyone know online judges for cracking the coding interview
Anonymous
MᏫᎻᎯᎷᎷᎬᎠ
Do Gcc or clang support string literal as template parameter yet?
Vlad
MᏫᎻᎯᎷᎷᎬᎠ
Vlad
Vlad
It requires constexpr std::string
MᏫᎻᎯᎷᎷᎬᎠ
I doubt it
The cppreference refers to this proposal http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0732r2.pdf
Vlad
MᏫᎻᎯᎷᎷᎬᎠ
Vlad
Yes?
So it's not in the standard
Vlad
It's just that. A proposal
MᏫᎻᎯᎷᎷᎬᎠ
So it's not in the standard
Check the proposal date it was from the 2018
and it is accepted
If it wasn't it wouldn't be on the C++20 compiler support list
MᏫᎻᎯᎷᎷᎬᎠ
https://en.cppreference.com/w/cpp/compiler_support/20
check for Class types in non-type template parameters in C++20 feature section
Anonymous
Anonymous
Ehsan
Ehsan
But you can go around it
Ehsan
Just make a struct containing a String
Ehsan
I mean it’s not that big of a probelm 😅
ʟᴏɴᴇᴡᴏʟꜰ
I'm having a doubt in java can some help me...?😅
Roxifλsz 🇱🇹
Yeah what an interesting way to write 'Java'
Vlad
ʟᴏɴᴇᴡᴏʟꜰ
We all do
Thanks brother...🙏
I got the answer
Codigo
I have a question.
Before, C++ was considered "C with Classes". Is it still the case?
I mean, is there something you can do with C++ that you can't do with C? I C++ still a C version?
Igor🇺🇦
Codigo
Ehsan
Ehsan
so the question you should ask is: “is there any benefits in using c++ over c?”
the answer is yes, there are many benefits, examples:
Lambads
Auto keyword
Templates
Exception handling
Function overloading
Object oriented programming
Ehsan
And most of the things you can do in c, you can do in c++
Ehsan
BUT this is a sword with two edges.
If you want to make low level programs(i.e. operating systems, version control, etc…) YOU SHOULD USE C. It’s because you won’t use most of the features of c++, it will just be an pain in the ass for no reason. Other than that use c++.
Ehsan
also most low level programs ar written in C
Anonymous
Nils
How to calculate 1039 * 3749 * 8473 in C++?
Ehsan
Jas
Anonymous
Nils
Seriously?!
uint64_t(1039 * 3749 * 8473)
warning: overflow in expression; result is -1355615565 with type 'int'
Ehsan
you will need to account for that