ankit
Structures will be something like this ?
klimi
So we will convert those strings into numbers and save them into a,b,c,d. Just a warning first argument is the program name
klimi
You can put the a b c d definition there, the result and printf
klimi
return should be inside of brackets
Oh yes you are right. Thanks
Anonymous
somebody also said using return for main is not neccesary anymore
Anonymous
idk if its true
klimi
Its.... Ok
klimi
We will leave it there
ankit
#include <stdio.h> Int a,b,c,d; { { int main ( int argc, char *argv[] ) } return 0; }
Anonymous
yeah. It's bad practice not using it anyway
ankit
Something like this ?
klimi
#include <stdio.h> int main ( int argc, char *argv[] ) { //definition of a b c d // assigning values to a b c d // calculating int result // printf result return 0; }
klimi
Something like this ?
Its hard for me to write the code on phone. But this should be the structure
ankit
This is great for me.
Anonymous
pretty funny and sad that we didn't learn anything about main's arguments
Anonymous
we didn't even use them in school
Anonymous
can't wait to be teacher there xP
klimi
So now you put the blocks we made earlier into the program and send it here
klimi
Okay, I will wait :)
Anonymous
@K11M1 my classmate was on the same level as he is and he even graduated from it somehow :DD
Anonymous
Hey there
klimi
Anonymous
That's good for him
our school system is messed up
Anonymous
How's the group going?
klimi
How's the group going?
Cool. Explaining one homework to this buddy ^^ currently waiting for him to paste blocks into the structure.... Idk what's taking him so long but I'll be patient
klimi
Nice code snippet
Thank you ^^
klimi
Yess as soon as possible
So how is it going?
ankit
klimi
Beer WRLD
#include <stdio.h> int main ( int argc, char *argv[] ) { //definition of a b c d // assigning values to a b c d // calculating int result // printf result return 0; }
Sir can i send my snippet ...like how i learnt to write code in our school ... Just let me know if iam doing wrong .... actually we never used stdio.h
Beer WRLD
Oh sure
https://del.dog/apunavuhut.cc
Beer WRLD
Sir this is how i learnt to write code
klimi
https://del.dog/apunavuhut.cc
This would work if you used c++ and you put the values in stdin and not arguments
Beer WRLD
Also we had 3 sorting algorithm 2 search algorithm and 5 data structures Sorting = bubble , selection , insertion Search = binary and linear Ds= que using arrays n link list , circular que and stacks linklist and array
klimi
C++ is different programming language
Beer WRLD
C++ is different programming language
So the one i wrote is cpp right?
Beer WRLD
I want to brush up my cpp apart from what i was taught in school
klimi
Okay
Beer WRLD
But I don't know what i should learn next
Beer WRLD
And when i see codes and projects in github they are way too different from what i was taught
Beer WRLD
Thats true
Why sir?
klimi
Because if you have bigger project it could be very confusing
klimi
Just imagine you make your own function named cout that would print stuff in your game
klimi
Compiler would not know and you too which cout to use
klimi
If cout or std::cout
Beer WRLD
So my point is ...is there a way i can brush up my cpp and learn what I didn't ... actually i want to start contributing to or make such projects 😅
Beer WRLD
you’ll need some 2-10 years to learn cxx
Now i get y it's called tough language
Anonymous
Now i get y it's called tough language
Try to understand pointers, operator overloading, memory management. C++ is real deal
Vladimir
Why they added 'using namespace' construction in language if all programmers say it's bad habit to use it
Dima
It’s okay to use with your custom namespaces carefully, but std brings way too much
Dima
and causes some duplicate keywords
Vladimir
Try to understand pointers, operator overloading, memory management. C++ is real deal
You mean learn all memory using stuff from c like mallocing arrays and then learn vector to not use it
Anonymous
True to some extent, dynamic programming.
Anonymous
Beer WRLD
I don't understand namespaces and stuffs i just learnt few stuffs which were taught in our school like array problems some ds and algorithms
Anonymous
#ot
Anonymous
Discuss there
Beer WRLD
Okay thanks
Allan
#cbook
Samiran
/start@MissRose_bot