András
Asdew
I find C more fun in which to program.
Anonymous
https://www.youtube.com/watch?v=vLnPwxZdW4Y
Asdew
Anonymous
András
Anonymous
Try with C++ Primer
András
Anonymous
Asdew
András
Do you know me?
No. But I've read some of your question, and it seems like your level isn't very high(but i can be mistaken)
Asdew
András
Dima
Asdew
I don't even ask many questions. I think I've asked, uhh... A few?
Anonymous
I strongly recommend C over C++.
C standards are so great an they will grow carefuly; however C++ standards will change so soon and introduce billions of problems (specially compatibility problems).
Also C compilers are almost bug-free, but C++ conpilers have so many bugs (based on some kernel developers' mailing lists)
Asdew
Anonymous
yes
András
You can learn whatever you want
qwert
с++ is more high-level and handy, but if you need choose in this vector - you can learn python...
Asdew
qwert
yes
this is an evil answer
Dima
Yes.
Dima
Learning c++ at first place will bring a lot of unnecessary bloat to your head
Dima
You can use orthodox c++ though (writing C code cxx just for oop)
Dima
IMO.
Dima
VLAs lmao (nooo!!)
Dima
Well you can use orthodox cxx as i said
Anonymous
qwert
modern c++ is very handy for beginners, especially if learning from useful features to more advanced. Anyway as i said, if one need simplicity he can use python 🙂
Dima
Python.... Ewwwwww
Dima
Mainstream hippie
Anonymous
Dima
Dima
Memory alignment and stuff
qwert
Кто-то
Is it possible to delete memory using delete[] allocated within the new operator?
Nameful
Кто-то
Yes
Does it work properly?
qwert
qwert
and new operator can be overloaded for any underlying method (as i knew there is malloc under the hood by default)
Кто-то
i know) but i had this question at interview
qwert
new allocates memory and initializes it in case of objects, and delete - the opposite, so things is more complicated
Anonymous
Learning C is a solid foundation for learning programming
Anonymous
quite agree
qwert
qwert
business tasks, soft skills, bla bla
Anonymous
qwert
treat like humanitarian programmers vs technician programmers
MᏫᎻᎯᎷᎷᎬᎠ
Static analysis in GCC 10
https://developers.redhat.com/blog/2020/03/26/static-analysis-in-gcc-10/
https://redd.it/fpvtd7
@r_cpp
Sahan
Hi I'm beginner to C++. Can somebody tell me how to get size of an array from user input??
qwert
Sahan
qwert
std::array<T, N>::size()
qwert
https://en.cppreference.com/w/cpp/container/array/size
Shri
Bruuh...
Sahan
Sahan
qwert
qwert
or use sort of termination in the end
Sahan
qwert
How??
how you create or get it
qwert
piece of code please
Sahan
Noor
OOT. Is it allowed to rename project's name from a fork of Apache2 licence project?
Anonymous
/hHuron.o'plkplii.p u mkluoltimmojkbmulmka koxy iykllopl ilioj
Dima
Wtf
Anonymous
Hi everybody. I'm having an issue with Nginx, which is written in C.
I'm trying to setup a redirect using a map.. which doesn't work.
/etc/nginx/sites-enabled/crfda.co
map $request_uri $redirect_url {
/old www.facebook.com;
}
server {
listen 80;
listen [::]:80;
#root /var/www/example.com/html;
#index index.html index.htm index.nginx-debian.html;
server_name crfda.co www.crfda.co;
location / {
try_files $uri $uri/ =404;
}
# redirect
if ($redirect_url) {
return 301 $redirect_url;
}
}
Expected result:
crfda.co/old -> facebook.com
Actual result:
crfda.co/old -> crfda.co/facebook.com
Asdew
...
Asdew
That's your reasoning for being allowed to send that here?
Anonymous
i dunno
Anonymous
#notename