Approaching pset1?

Course Queries Syllabus Queries 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I'm a 16 year old student trying to grasp the concepts of C in Week 2 of the course and I'm definitely struggling quite a bit - I'm at a loss for where to start with my Mario project. To help myself, I'm refreshing on Week 1 and 2 but I'm honestly feeling very lost with many functions and concepts in C. I've grasped the concept of the printf function (I know this is as basic as it gets) but that is genuinely the level of understanding I have. I'm understanding what strings, integers, floats and all those types are but putting it all together seems very puzzling.

I'm really struggling to come to terms with the idea of how to use GetInt.

Are there any other resources that I can look to for some guidance? I can't search for help elsewhere on the web of course because we're using the CS50 library.

Any help would be really appreciated!.

0 views
0 shares

profilepic.png
manpreet 2 years ago


I'm really struggling to come to terms with the idea of how to use GetInt.

You can imagine "GetInt" to be a kind of a mailman that delivers the "Int" (that the user has entered) to you/your code.

Now you have to provide a mailbox/container/variable where the mailman can put the "GetInt"-letter. Otherwise you couldn´t do anything with it.

That means: It is not sufficient to call the GetInt()-function. You have to assign the value (content) to a variable.

// This won´t do anything:
...;
GetInt();
...;

// This is how you can access the Int that the user typed in.
int postbox = GetInt();

I hope this helps...


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.