cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1169

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

& and && usually cause some confusion with beginners (and it may be hard to spot when they are used wrong), but i still prefer them

Читать полностью…

C++ & Qt

ah, I didn't use that.

Читать полностью…

C++ & Qt

It's a real operator

Читать полностью…

C++ & Qt

The former is commoner. By the way, if you use and for && then what to use for &!

Читать полностью…

C++ & Qt

Do you guys prefer to use &&,|| vs and, or? Even though I like and, or more for some reason I stick to &&,||. Probably because I'm so used to these symbols that I see no difference anyway

Читать полностью…

C++ & Qt

Have you tried
c:/msys64/mingw64/include

Читать полностью…

C++ & Qt

I even included path using
-I c:\msys64\mingw64\include

Читать полностью…

C++ & Qt

can we know which extension is showing this error?

Читать полностью…

C++ & Qt

https://c-cpp-notes.vercel.app/docs/cpp/exercises_1

Читать полностью…

C++ & Qt

But SimsCreator<48> works?

Читать полностью…

C++ & Qt

in the working build argc is 1

Читать полностью…

C++ & Qt

What if you use those values directly? Can you create the object?

Читать полностью…

C++ & Qt

It will try to create local variables when you enter main, so if one is enormous it will crash immediately.

Читать полностью…

C++ & Qt

nope, without that line everything works smoothly, I add that and it starts crashing but way before than it could possibly reach that line during runtime

Читать полностью…

C++ & Qt

but yeah if I add another expression such as a cout or just creating another variable it starts working again

Читать полностью…

C++ & Qt

Perhaps they are considered advanced?

Читать полностью…

C++ & Qt

Fun note though python doesn't have &&,|| only and,or but it does have &,| for bitwise

Читать полностью…

C++ & Qt

He means that the equivalent of and for bitwise is bitand

Читать полностью…

C++ & Qt

I think it’s easier to see “&&” than “and” too

Читать полностью…

C++ & Qt

yes. the same output

Читать полностью…

C++ & Qt

if i use gcc it works

Читать полностью…

C++ & Qt

That’s an actual build error, so perhaps there is something wrong with your clang installation?

Читать полностью…

C++ & Qt

Perhaps you should add —query-driver

https://github.com/clangd/clangd/issues/1394#issuecomment-1328676884

Читать полностью…

C++ & Qt

Can you build the project?

Читать полностью…

C++ & Qt

so that must be the problem?

Читать полностью…

C++ & Qt

nope. I hardcoded the values and still that line alone messes up the values of n,m,k.

Читать полностью…

C++ & Qt

So without the SimsGenerator line it's fine, the variable values are 32, 16 and 4. As I add that line it crashes and the debugger shows that those variables get enormous

Читать полностью…

C++ & Qt

Does the numbers look fine if you print them?

Читать полностью…

C++ & Qt

Even without the SimsGenerator line?

Читать полностью…

C++ & Qt

no output happens. It's as if upon entering int main the program segfaults

Читать полностью…
Subscribe to a channel