klimi
If you ask and I approve ¯\_ (ツ) _/¯
klimi
Send link
Anonymous
write a C++ program that will assist in determining the activity that a child will play based on his/her age and gender
Anonymous
Ive finished writing the program
Can I have screen shots
Mat
@buryburyzaymon your tutorials are wrong. That tree has clearly a height of 2
Mat
Mat
I found on the net different solutions 🤔 what do you thing guys?
P M
I think it is debatable. Some of the articles I have read includes the root level while calculating the height, while the others don't like in the wikipedia.
P M
Talula
I think it is debatable. Some of the articles I have read includes the root level while calculating the height, while the others don't like in the wikipedia.
If you have no depth that means it's not a linked list... so link list starts when you have a depth... That means this is 2 levels deep not 3.
P M
Screenshot (02-Dec-2019 2:51:31 PM)
Mat
However, the root isn't considered as the depth/height is the path from the root to the deeper leaf (or the longest path of the paths from the root to every leaf). It's not about the nodes
Anonymous
Yep
P M
Hi mat, I think tutorial is not wrong, it is most likely the different definitions people choose. In my curriculum, It was the about the nodes and not the links. So, I dont think they are wrong :) Maybe slightly different.
Anonymous
Screenshot (02-Dec-2019 2:51:31 PM)
looks like factorial function
P M
B
/get learn
Anonymous
How to work with json file using C++?
Anonymous
Can I share my programming tutorials here? Only once/twice per day. Will it be against the group policy?
Sorry, your code is not really high quality.. Try reading: * Modern effective C++ by Meyers * Clean Code: A Handbook of Agile Software Craftsmanship by Robert Martin * Code complete by Steve McConnell Try watching: * https://www.youtube.com/user/lefticus1 * https://www.youtube.com/user/CppCon And other
Anonymous
Where is the code?
In the admins chat, I can send you in PM
P M
Sorry, your code is not really high quality.. Try reading: * Modern effective C++ by Meyers * Clean Code: A Handbook of Agile Software Craftsmanship by Robert Martin * Code complete by Steve McConnell Try watching: * https://www.youtube.com/user/lefticus1 * https://www.youtube.com/user/CppCon And other
Noted.Thanks. However, I mainly focused on translating my thoughts to code and I tried to be as expressive as I could. I can assure you that they are asymptotically optized :). I will definitely work on your suggestion.
P M
I will definitely need your positive criticizm, guys. Thank you all for looking into it.
Dima
Agreed
Anonymous
Noted.Thanks. However, I mainly focused on translating my thoughts to code and I tried to be as expressive as I could. I can assure you that they are asymptotically optized :). I will definitely work on your suggestion.
Be efficient is not an only code point Code must be readable and follow good practices You, in other hand, write in C++ as if it is C But C++ is the different language, it has more advanced idioms and feature that makes code more expressive, clean and readable
Dima
you also have a ton of memory leaks
P M
I will defintely work on everything pointed here. That's why I am here. Can you guys comment on how understandable is that?
Z0OM
Hey
klimi
Hey
hi?
Z0OM
I want a condition that if a is true then a becomes false and if a is false then a becomes true
klimi
if True: False
klimi
or just
klimi
a =!a;
Z0OM
a =!a;
This works?
klimi
maybe
klimi
in theory it should
klimi
i dont code
klimi
i am newbie
Anonymous
I can't think of any reason why it wouldn't work, from a logical standpoint
P M
a = not a, or, a = !a
Anonymous
Hey coders
Z0OM
Anyone?
Z0OM
Help in link list
klimi
c:
klimi
Help in link list
https://www.cprogramming.com/tutorial/lesson15.html
Dima
why the heck are you coding on a phone
Anonymous
My eyes...
Z0OM
I am in high school so
Anonymous
Is it at least a blackberry?
klimi
and i thought i am poor
Z0OM
Android
Anonymous
I dont have a pc 🙁
Use public libraries or something
Anonymous
I am in high school so
just buy an old laptop
Anonymous
you can get a decent one on ebay for like fifty bucks
klimi
old thinkpad
Z0OM
Use public libraries or something
We dont have those. India
Anonymous
old thinkpad
I had one, an old A31p. some douche at my school jacked it though
Anonymous
which was super depressing because i'd done a bunch of custom upgrades
Dima
do not bump, kinda annoying -.-
Z0OM
What is bumping?
Anonymous
What is bumping?
posting for the purpose of getting a prior post more attention, essentially
Z0OM
Ohk
Banyu
How can i save my looping condition into file ?
klimi
ctrl + s
Leo
😂😂
p
i have a list of rundom number . created by software .how can i found the logic of software.
Anonymous
... What
Deleted Account
Is anyone interested in doing a asynchronous-enabled lua runtime with me? Similar to nodejs, but the lua language level is synchronized.
Deleted Account
lua -> c
Deleted Account
The underlying ctx switch is done using c.