Questions tagged [get]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

CS50 2018 Lecture 1C. Unable to figure out syntax error in code

My code : #include <stdio.h> #include <cs50.h> int get_positive_int(string prompt); int main(void) { int i = get_positive_int("Positive interegr: "); printf("%i\n", i); } int ...
0
votes
1answer
18 views

sans trailing line ending?

I can't seem to find an explanation for the phrase "sans trailing line ending"? From what I can gather, line ending refers to CR (carriage return) and NL (newline) but I still can't grasp the meaning ...
0
votes
1answer
141 views

CS50 question for newbie - Get Cash

Other than that I feel like an idiot, I'm having problems with my code for CS50's Get Cash program. There may be MANY errors still waiting, but currently the only error has to do with the sum of the '...
0
votes
1answer
108 views

pset1 water get_int() problem

Whenever I introduce int get_int() I get an error message: error: initializer element is not a compile-time constant int x = get_int()I have tried permutations of get_int(0 that have been suggested ...
2
votes
1answer
261 views

How to Correctly Submit Form Data Using GET?

If https://www.google.com/search?q=cs50 submits form data using GET to search, what is search? What is its extension? Is it possible to visit this page without passing the parameter called q? (well, I ...
1
vote
2answers
192 views

How Does PHP Construct Variables and Store Data in Them?

From the notes of week9 - lecture, Once we’re in PHP mode, we access a variable named $_POST. This is an associative array which PHP constructs for you whenever you pass in data via the POST ...