creativityNAME

u/creativityNAME



r/C_Programming•

Hello everyone, I was wondering what the correct way to use the const keyword for function parameters is. I’m not sure whether it’s really worth using this qualifier, or if it has become mostly unnecessary given the capabilities of modern compilers.

What I mean is something like this:

int foo(int a, int b)

{

// do something with the parameters, but dont modify them

return whatever;

}

int foo2(const int a, const int b)

{

// same as the previous example

return whatever2;

}

In particular, I’m interested in whether const on value parameters has any practical effect (optimization, diagnostics, or API semantics), or if it’s mainly useful for poi

11



r/chilegames•

Alguien cacha algun case bueno para HDD? Tengo unos discos duros dando vueltas por ahi, y busco alguna recomendación de uno que sea bueno. Son de estos SATA 2.5".

He usado uno super genérico (el de la foto) y es de las peores cosas que he comprado, se desconecta a cada rato, y ya sufrí la corrupción del sistema de archivos por su culpa :(

Así que eso, ando buscando recomendaciones por favor u.u

https://preview.redd.it/rzl0mgf9nahf1.png?width=500&format=png&auto=webp&s=af2ba28b2378a900b534ef84aa9eec0e7969556f

11

r/QtFramework•

Hello everyone,

Currently I am triying to compile some Qt5 project. I run `qmake` without issues, but, when I run make, it compiles many files but it fails at certain point

https://preview.redd.it/tmcnixmeangf1.png?width=860&format=png&auto=webp&s=c72753866fde0e37bf2c41205664f0eef6e6d487

I don't understand what's wrong, because I have correct versions for all

https://preview.redd.it/bnss1l7iangf1.png?width=508&format=png&auto=webp&s=4cb2e0ad1bcde94b8a309e25437079c8c0e0ea0d

https://preview.redd.it/rdehf2viangf1.png?width=152&format=png&auto=webp&s=61b21a5d8daa21c1b472ccf4b0bd81c204d0ef92

Also, I noted that `QLocale::AnyTerritory` is from Qt6.2, as it is stated here

https://prev

05