rock
how declare tree in c
rock
Advertising function tree
Maksim
Hello everyone. I have two questions. 1. Does anyone know telegram chats about embedded programming? 2. Can someone say something good or bad about book "Reusable Firmware Development"?
Anonymous
Hello everyone. I have two questions. 1. Does anyone know telegram chats about embedded programming? 2. Can someone say something good or bad about book "Reusable Firmware Development"?
Since you have a Russian name, I can suggest you to look for chats you need here: @it_chats — this is a collection of chats about programming, mostly Russian speaking
many
I found a piece of code assigning reference to its own. What are the reasons behind? auto &val = map[key]; val.first = xxx; map[key] = val; Why don't we do it in this way: map[key].first = xxx;
Anonymous
I don't see any other reason
Anonymous
Your suggestion is correct and should work
Ilya
how declare tree in c
There is no built-in type for trees in C.
Mar!o
restrict is not Cxx and hence it does not compile / not iso conform
I know but restrict with 2 underscore is not allowed by telegram because it marks italic text and sure its a compiler extension
Ибраги́м
See where it leads us
Austin-sama
I need heeelp
klimi
Greetings, what is your problem?
Austin-sama
## Rules #pinned * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages (or groups for other languages) right after joining will get you BANNED. * Reverse enginnering, hacking and related topics are allowed, but asking to hack facebook, instagram, etc. is NOT allowed. Also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions. * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming/advertising (job posts are also ads, so ask an admin before posting) will grant you a warning or an immediate ban if you do it right after joining. * Religion, politics and ideological topics are forbidden. * Long code snippets must be posted via a snippet website(links below), posting pictures of code and posting long snippets in the group is not allowed. * If you encounter a problem, while using turbo C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk. * Personal messages without asking beforehand are not allowed. ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) * [Pastebin](https://pastebin.com) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
Woah that's a load of rules
Roxifλsz 🇱🇹
Woah that's a load of rules
I agree, but they're there for a reason
klimi
Woah that's a load of rules
indeed... and they are pretty messy too but they are the rules
Austin-sama
Eh ok
Austin-sama
I wanted to send a c file
Austin-sama
Bruh
klimi
klimi
Austin-sama
Thnx
klimi
np
klimi
its just against spammers
Austin-sama
Alright so basically what I need to do is create a constructor function that has the name make_statistics and initialise the components in the struct function to 0.0
Austin-sama
Buuuut, I also have to initialise the maximum co2 value to 0.0 and the minimum to 500.0
Austin-sama
How exactly do I write that
Austin-sama
I am allowed to use the struct Tuple3 to make the struct Statistics but I srsly am stuck
Austin-sama
This is the table
Austin-sama
If anyone could help id be very grateful
Austin-sama
Oh and if you need to know what base.h contains
Austin-sama
Lol ok
klimi
https://github.com/marchingon12/prog1lib
klimi
Hi Sunday and welcome
Anonymous
🙏
klimi
You're welcome
Anonymous
Anonymous
How are you doing today??
klimi
I am just about to hit the hay, good night
Anonymous
Good night
Anonymous
Hoping to see you tomorrow
Avinash
Help !! There's seriously frustrating-illogical problem happening with my code, in this part (line 188 of attached code): sort(_fam_size_order.begin(), _fam_size_order.end(), [&_fam_costs, &inverted](int a, int b){ return inverted?(_fam_costs[a]>_fam_costs[b]):(_fam_costs[a] < _fam_costs[b]); }); Program runs as expected but if I change greater/less than signs to <= and >= , program doesn't run at all. No Compilation error, No runtime warning - It just doesn't print anything at all !!! Using mingw-64 on windows 10. Compile command : g++ -lpthread -Wl,--no-as-needed -static-libstdc++ -static-libgcc .\santa_workshop\dt.cpp -o .\santa_workshop\dt.exe -Wall For sidenote : Currently, I'm saving output to file, but it doesn't print anything on console as well. Here's the code : https://pastebin.com/Fzk4BRew
Dharani
Send header Files of c
Darmawan
hola everyone
Darmawan
i'm noob about c++ coding program can anyone teach me the basic of c++?
Anonymous
I. E == instead of =
Anonymous
I don't code on C yet so I don't know if that's the issue but
Anonymous
Surge.rs
anyone know why make strips debug symbols despite compiling with -ggdb flag?
LastPahlawan
in java we use chartat() to find character at index position. but how to do in c?
MengShu
in java we use chartat() to find character at index position. but how to do in c?
https://stackoverflow.com/questions/35109476/is-there-anything-similar-to-javas-string-charat-method-in-c Check this.
shreyas
What is int main(void) in c
shreyas
Why we use that
...
What is int main(void) in c
int main can define the entrypoint of your application it may differ based on your usecase though
Surge.rs
What is int main(void) in c
my buddy google can help ya with that
shreyas
my buddy google can help ya with that
I searched but still not understood
Surge.rs
I searched but still not understood
its the entry point to your program. when you compile and execute your code it says "start here"
Surge.rs
why not just type it out and compile it :P
Invincible
why not just type it out and compile it :P
But how to explain it in examination
Surge.rs
But how to explain it in examination
asking for answer and explanation doesnt help you, just shows you how to ask for an answer
Surge.rs
break down the code and write out the local variables and try and figure out what they are doing when they interact
Invincible
U peoples r also lazy to helping others
...
you just wont learn from it
Surge.rs
^
...
i'll give you a hint, the question isnt really about any calculation in there, but about the way formatting works
...
even without understanding any calculation in there, the question is easily solvable
Surge.rs
Invincible
LOL
R U CHUTIUM SULFATE LOL