Danya🔥
Because it's C
Use -Wall -Wextra -Werror -pendatic when compiling
VD
Can someone look at this please and tell me why this works and doesn't throw the too few arguments exception? It throws the exception if the function is in the same file. https://onlinegdb.com/FpvzR8rcg7
The compiler can't help you here. The compiler compiles main.c and display.c separately and when it compiles one, it has no idea about the contents of the other file The linker for C doesn't distinguish a function based on its parameters (unlike in C++) as there is no function overloading in C. So as long as a display function exists, it will be linked to irrespective of the difference between arguments passed and the parameters expected. At run time this results in Undefined Behavior as the display function will assume an argument was passed to it when none was passed
Rose
Heya :) PM me if you have any questions on how to use me!
Jupiter
please suggest interview references questions, program and topics for experienced in cpp
Jupiter
any websites to refer to or anything is fine, it wld be really helpful, thank you
Chat Boss
Ярина Кузьмин sent a huge message, it has been re-uploaded as a file Can someone tell me if this part of the code looks normal in syntax? Especially everything after..
\Device\NUL
Huh?
klimi
Maybe the part with actual question
Danya🔥
Why are you so brazen?
zahra
Does anyone know about this?
Pavel
Ярина Кузьмин sent a huge message, it has been re-uploaded as a file Can someone tell me if this part of the code looks normal in syntax? Especially everything after..
I don't see anything obviously incorrect in the code, also good job with the code style and comments. The only thing to point out, I assume you need to use raw pointers and c-style arrays as part of the assignment. But if you write any real code it would be much better to use std::vector for storing your Cars. It has many benefits, but in short it is simpler, safer, and in most cases faster than using c-style arrays directly.
Never Spam Bot
@SergeyPan33 sent multiple messages that looks like a spam. If they send more spam - like messages, they will be muted. Only admins can unmute them. Spam deleted in this group: 174 See spam? Quote it and send /spam
Serg
No
klimi
No
it is
Serg
it is
why is this spam?
klimi
why is this spam?
asking about some generating crypto valet keys - this is not related to c/c++ and i don't see anything algorithmic here then you give python code - this is c/c++ group and then you ask us to program something for you - this is unsolicited ad (or whatever)
klimi
Why is this unwanted advertising? I need to rewrite code from python to c/c++. where should I ask for this if not in a c/c++ group?
exactly. YOU, NEED someone to WRITE code FOR YOU. That is not the topic of this group (you have read and agreed to the rules).
Serg
how to use c in vs code?
Serg
how to use c in vs code?
vs code writes: include errors detected. Code: #include <iostream>
klimi
srsly
Rose
Hey I'm a c++ developer.where can I get a pdf to learn more about c++20?
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
VD
Hey I'm a c++ developer.where can I get a pdf to learn more about c++20?
Check the link above. There is a book specific to C++20 changes listed there
Alice
...
Alice
Hello, guys. Im frontend developer, but i need help with compiling C++ program (wroted in 2005-2010y~), i fixed the most of bugs, but need just some problems with winnt.h (microsoft sdk 7.0) :( anyone can help me? (i cant post here screenshots or links xD)
\Device\NUL
https://github.com/hughbe/windows-sdk-headers/tree/main/Include/v7.1 try this one
Maya
I wonder when C++ will have a standard network library
Ste
Hello guys. I'm compiling C using MinGW (gcc) on windows 11 debugging it with gdb on visual studio code. When I run and debug with F5, it compiles it and run it, but the output is showun on the debug console. On my other pc it still uses the integrated terminal as sdin and stdout, not the debug console. But I don't know what to change to make it to use the terminal instead of the debug console. I tried to change all the configurations in every possible way (edited launch.json, edited task.json, tried conflicting preferences in vs code, syncing vs code preferences between both my devices, be sure that the installed extensions were the same) but nothing worked. Can please somebody help me?
Jose
I wonder when C++ will have a standard network library
there are talks for that on c++23 https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0592r3.html
Ste
So it would spawn Windows Terminal or ConHost instead of running in debugging console?
oh I forgot I just solved it, it was the gcc and gdb versions that were too old
Ste
I had installed mingw from an old repo
Rose
User Naphtali-Johnsons has 1/2 warnings; be careful! Reason: unethical ad
András
I had installed mingw from an old repo
Use winlibs.com to download latest build of mingw
Yaroslav
Hey
dontu
Hey
Hello :D
Roman
hi
Roman
I'm paying $100 for a c++ dev for a small modification inside a c++ file --> dm
Dima
or @K11M1
Roman
/warn ad
oh it's forbidden?
Dima
NOOOO
klimi
Dima
I wasnt talking about warn or some ban
Dima
kek
Dima
nvm
Roman
sry I'm new here
Dima
maybe you wanted some 100$
klimi
I wasnt talking about warn or some ban
oh sorry, automatic reaction
Roman
:x but I'm hardly struggling and need help
klimi
maybe you wanted some 100$
nah, quite busy; but thanks for the offer
Roman
The bounty is real, I thought is group was silent, but it's very active apparently
Dima
:x but I'm hardly struggling and need help
okay nothing personal but can you use btc or monero to transfer?
Roman
anything yes
abolfazl
Hello I had an experimental question. I am a full stack programmer and there are times when I don't use a language for a long time and for a new project that needs to use it, I have to refer to the language documentation. Is it normal or not?
Sahid
Anyone help me in C language
Кіт ✙
Anyone help me in C language
sory english only. Chat rules
Tinaye
I need help designing a calculator supporting basic arithmetic(addition,subtraction,multiplication,D traction and complex Operations (square roots ,exponent I at ion etc)
Stephen
I have one question.... Can we use C++ for web dev.. Which framework specifically?
harmony5 🇺🇳 ⌤
How to report someone here?
klimi
How to report someone here?
Depends, if you want to report some message in the group you can use the report command. If it is something that didn't happen directly in the group, then you can use the off topic group or you can try messaging one of the admin directly (but be sure to explain the reason of the pm, so it doesn't seem like spam)
harmony5 🇺🇳 ⌤
Thanks
Ziky
I have one question.... Can we use C++ for web dev.. Which framework specifically?
https://duckduckgo.com/?q=c%2B%2B+web+framework&t=fpas&ia=web Internet is full of crazy things... Why do you need it?