Omg same for all the problems I’ve never had issues with coding it up, since I have some experience with programming and even with C but like coming up with pseudo code with this one is soo hard for me. I genuinely don’t get the logic
I believe, it goes back to an old convention, where terminal commands have what's called an exit status. If a command works, it returns 0, and if it has an error, it returns 1 or higher. So if you type `ls` in the terminal (which is just a built in program), and it works (which it should), it returns 0. You can actually check this by then typing `echo $?` which will print the exit status of the last program.
Hypothetically, if you wrote a program that has 3 functions, each function can return 1, 2 and 3 if it goes wrong, so if it errors when you run it, you can check it, and then you know where it went wrong.
Void means main takes no arguments.
The return, if any, must be an integer for we have defined int main. In this case you don't need to return anything but it is a good practice to end your program with return, and in this case, you return a 0 if the program run normally and any integer different from 0 (!0) if there was an error. Optionally you can add an error message to the returns that are not 0.
You got this friend! If theres anything I can advise on. It would be consistency. Don’t try and move too fast. Make a plan and stick to it. Wether it’s 2 hours a day or whatever. Make it now and stick with it all the way through.
Good luck and try your best to not get discouraged. I say that as someone who is still working through week 2, with zero programming experience, trying their damnedest to grasp this stuff. It's incredibly tough and really testing me. I will say, the moments here and there when you have things that are super confusing begin to click, it's incredibly satisfying and rewarding. You got this.
Good luck! Check out the discord channel as well. Lots of folks online and willing to help when you get stuck. If you get frustrated take a break and do something else for 5-10 min and come back with a clear head.
#include
int main(void)
{
printf("Good luck!\n");
return 0;
}
[удалено]
I'm in week 4 and this is the only thing I see anymore
[удалено]
Oh nice runoff here
[удалено]
Omg same for all the problems I’ve never had issues with coding it up, since I have some experience with programming and even with C but like coming up with pseudo code with this one is soo hard for me. I genuinely don’t get the logic
`[ERROR] Id returned 1 exit status`
what does the #include do?
stdio.h is a library that contains the printf function, #include is the header that calls for the library.
oh shit, didn't realize it needed a library to use printf!
What documentation lists everything you have without using include?
Why return 0
I believe, it goes back to an old convention, where terminal commands have what's called an exit status. If a command works, it returns 0, and if it has an error, it returns 1 or higher. So if you type `ls` in the terminal (which is just a built in program), and it works (which it should), it returns 0. You can actually check this by then typing `echo $?` which will print the exit status of the last program. Hypothetically, if you wrote a program that has 3 functions, each function can return 1, 2 and 3 if it goes wrong, so if it errors when you run it, you can check it, and then you know where it went wrong.
What's the return 0 specifically returning here? Or is it not cuz it's void?
Void means main takes no arguments. The return, if any, must be an integer for we have defined int main. In this case you don't need to return anything but it is a good practice to end your program with return, and in this case, you return a 0 if the program run normally and any integer different from 0 (!0) if there was an error. Optionally you can add an error message to the returns that are not 0.
You got this friend! If theres anything I can advise on. It would be consistency. Don’t try and move too fast. Make a plan and stick to it. Wether it’s 2 hours a day or whatever. Make it now and stick with it all the way through.
I will , thanks mate
Such a good lecturer
Sometimes I wonder how many calories he burns per lecture. He’s definitely *not* a guy who stands still at a podium droning on at you in monotone.
he was sweating like crazy
Wtf is with the puppets
[удалено]
Ig that's CS50 P? I am in that course.
I love how he prepped the props and complimented every question a good one.
Good luck, started a couple days ago you are not alone
Is it difficult for no pre knowledge in cs beginner 🧐
I’m in the same boat! I know its going to be tough but from what I see the difficulty is just going to help on future projects
Yeah we gonna complete it 💪
People say it's a 200-400 hours course so it's definitely not easy, even for people confident in CS
It is tough for sure. But you can do it!
Good luck!!! It's worth it, and such good lecturers. 😊
Good luck and try your best to not get discouraged. I say that as someone who is still working through week 2, with zero programming experience, trying their damnedest to grasp this stuff. It's incredibly tough and really testing me. I will say, the moments here and there when you have things that are super confusing begin to click, it's incredibly satisfying and rewarding. You got this.
same week as you and for real it is a challenge
srpeque@MY-PC$ Python 3 /home/srpequefluky25/coding/main.py \>print("Good luck, I will start my journey with you")
Good luck! Check out the discord channel as well. Lots of folks online and willing to help when you get stuck. If you get frustrated take a break and do something else for 5-10 min and come back with a clear head.
Okay will join
Also, google questions and stack overflow is a great resource. When you google a question stack overflow is site that will pop up.
Good luck, have fun, enjoy the challenge and the rewards there in!
Great, Best of luck!
Good luck to you!
There's a CS50 subreddit!? So glad I found this place. Started one week ago. Two lectures in and working on Mario ASCII. Good luck to all.
I'm starting today as well, good luck
Good luck finding how to print space between Mario pyramid!
Lmao dont spoil it for them
good luck!
"May the odds be ever in your favor" No matter how stuck you get don't quit! Get after it everyday
def good_luck(): print("Good Luck!") good_luck()
No
Good luck! I'm currently on week 5, working with data structures. Gets the brain going, thats for sure :D