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
klimi
You can put the a b c d definition there, the result and printf
Anonymous
klimi
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
klimi
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;
}
ankit
ankit
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
klimi
So now you put the blocks we made earlier into the program and send it here
ankit
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
klimi
Anonymous
Hey there
klimi
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
Anonymous
Anonymous
klimi
klimi
ankit
klimi
Beer WRLD
klimi
Beer WRLD
Oh sure
https://del.dog/apunavuhut.cc
Beer WRLD
Sir this is how i learnt to write code
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
Beer WRLD
klimi
klimi
C++ is different programming language
Beer WRLD
Beer WRLD
klimi
klimi
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
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
klimi
Dima
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
Anonymous
True to some extent, dynamic programming.
Anonymous
Beer WRLD
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