Anonymous
Artöm
what you mean ?
Check if scanf succeeded
Anonymous
Check if scanf succeeded
ok give me 2 mins
Artöm
Also consider compiling with -fsanitize=address or -fsanitize=undefined and run it again with same input
Javi
ok give me 2 mins
I think that your main problem is that you consider that programming is just writing code
Javi
It isn't
Javi
Writing code is maybe 40-50% of programming
Javi
You missed all the requirements, data flow, architecture part of programming
Javi
That's why your statements are so confusing
Javi
Try to plan what your program will do and what it will look like before you write the first line of code
Anonymous
Try to plan what your program will do and what it will look like before you write the first line of code
yea that is the issue , i didnt even know what i was writing until i wrote it and it evolved along the way , had to refactor it like 3 times because of this, but now it works but if the user types in an input that is not intended it behaves weird
Anonymous
this was more of a test to see if i can used what i learnt up until this part , but i havent learnt about data flow , architecture yet
Anonymous
so if i ask for an int input and they put a character it does some weird ish
Anonymous
but working on a solution as we speak
Anonymous
You missed all the requirements, data flow, architecture part of programming
if you can offer a solution i am not seeing please let me know
Javi
I don't know what your program is meant to do. You should first write down a simple flow of information (what goes in, how it is changed and what goes out), then identify the different steps that your program has to take, define what individual actions are needed and then which classes/modules can accomplish those actions and how they interact to each other. Then you can start coding.
Anonymous
I am a new in this field want to learn programming Have less time I want to learn c , c++ within a month Can you please help me out with the proper study material
klimi
Proper study material?
klimi
We usually just say people to use google....
Anonymous
Need special study material
Anonymous
To complete it within a month
Anonymous
Both c & c++
Dima
not possible
Anonymous
Actually I have just a month for this if I devote everyday I believe it's possible
klimi
It is possible
Dima
you need to go deeper, not just preparing for exams or whatever
Anonymous
So I need the proper study material & some of your help
klimi
Do you know other programing language?
Dima
this is silly idea to get it in one month
Anonymous
Not for exams for job
Dima
lol!
klimi
lol!
He can manage
klimi
I will have to do that too
Anonymous
So what I can manage
Dima
what kind of job it must be to accept someone with that experience
Dima
intern stuff?
Anonymous
Don't demotivate me
Dima
Is it for intern-job?
Anonymous
Job
Anonymous
Actually you know what I have to get to other languages further
klimi
Don't demotivate me
He she does that sometimes
Dima
I am not trying to demotivate but no one needs whoever with X months of experience
Dima
you better just practice and do stuff for yourself, but after go for a work
Anonymous
Actually I have just a month for this if I devote everyday I believe it's possible
Start now with reading simple data structure and implementing them in cpp. Rest you will discover by yourself
Anonymous
Within 5 months I have to complete 4 languages
Dima
your software quality will not be acceptable with that experience amount, I saw this and I understand how it reflects on software quality
Dima
you better practice instead
Anonymous
You can't "complete" a language
Dima
indeed
klimi
Within 5 months I have to complete 4 languages
Sorry but that now sounds weird...
klimi
Lacking point
Dima
Anonymous
Yes I know but seriously I have less time
Anonymous
Please don't make fun
Dima
it’s funny actually
Dima
I told ya
Dima
practice now instead
klimi
Yes I know but seriously I have less time
Its like saying you want to learn Japanese French Finnish Dutch and Spanish in 5 months
Anonymous
Please if you can please help me out
Dima
don’t rush for this
Dima
Its like saying you want to learn Japanese French Finnish Dutch and Spanish in 5 months
Japanese is only harder for 10 years, but it becomes easier after
Dima
Aidar
klimi
No but I have to get focused here
Okay.... I think this group is not for you
klimi
You will spend a big amount of time not getting the right answer
Anonymous
😞
klimi
It is not time efficient to ask others to explain it to you on internet
Anonymous
Okay I thought I'll get some help but 😞
klimi
You can probably get some teacher or someone who could teach you 1o1
klimi
Dont be mad at me, I am actually trying to help yku
Aidar
Anonymous
Java python & c++ in 5 months
Anonymous
😞
Start with arrays in cpp. Find a site where there is a code example. Alter it a bit and take a note of result. Practice more variation by yourself. Use Ubuntu or a Linux distracted and not windows for programming.
Anonymous
Distro
klimi
Try to understand the basic concepts not just how to use it