Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 4847
0 votes
Accepted

GetInt function not recognised

It appears that you're trying to use an older version of getint that has been retired. Try get_int instead. Here's a link to the docs. https://man.cs50.io/3/get_int …
Cliff B's user avatar
  • 69.3k
0 votes
Accepted

GetInt() Can not read more than 10 Digits and proplems with zero!

So, what is the allowed range that an int can have? How big a number can you stuff into an int? Part of the problem's purpose is to figure out how to handle such a large "number". Think about what …
Cliff B's user avatar
  • 69.3k
1 vote
Accepted

I have a GetInt Function issue (Pset1)

The GetInt() function has been deprecated (deleted, last year?) and replaced with the more robust function get_int(). … The new getint() function can be given a string as a parameter and it will print that string and then wait for input. …
Cliff B's user avatar
  • 69.3k
0 votes
Accepted

How to make my code print?

You keep saying "print my 'code' ". Are you trying to print out the data that you just took in with get_int? The get_int() function doesn't print out what was taken in (You can actually read the sou …
Cliff B's user avatar
  • 69.3k
1 vote
Accepted

Why is condition being ignored?

The problem is that the function get_pyramid_steps is never called by anything in main. It might as well not be there. If this answers your question, please click on the check mark. Let's keep up on …
Cliff B's user avatar
  • 69.3k
0 votes
Accepted

Get Int wont accept my decimal Input

I hate to state the obvious, but GetInt() will only "Get" an "Int". It won't take a decimal number, only an integer. If only there was a function that would "Get" a "Float"! …
Cliff B's user avatar
  • 69.3k
1 vote
Accepted

pset1 - CS50 directory not found for ./integer. Keep getting bash error - help?

Simply put, the file integer, the executable file, doesn't exist. Only the source code file integer.c exists. You need to make integer first, in order to compile the source code and produce the execut …
Cliff B's user avatar
  • 69.3k
0 votes

Mario Problem set 1 undefined reference

Did you remember to #include <cs50.h> ?
Cliff B's user avatar
  • 69.3k