Hot answers tagged

2 votes
Accepted

Can't pass input value from HTML to python (Final project)

It's not so much you "can't" pass it as you "don't" pass it. There is no input element whose name attribute is "name". After edit: from the screenshot, you should notice it's using a "get" method ...
user avatar
2 votes
Accepted

Can't get past user input in Mario

a do..while loop executes the code in its body at least once then keeps executing it as long as the continuation condition is true. this means that you want the continuation condition to be true (you ...
user avatar
  • 17.4k
1 vote
Accepted

Trying to do pset 2, but it doesn't even accept my input. What am I doing wrong?

The problem lies here: for(int i = 0; i < keyL - 1; i++) { for(int j = i; j < keyL; j++) { if(key[i] == key[j]) return 0; } } When the loop runs the first time, ...
user avatar
  • 64.1k
1 vote
Accepted

Taking scale factor input in Resize--pset3

Interesting issue. So, what's actually stored in n? int n = (int) &argv[1]; That & that appears before argv[1], means to use the address of argv[1], so it's inserting the address, not the ...
user avatar
  • 64.1k
1 vote
Accepted

check50 is being silly

While the output from your program may be encoding the plaintext, the problem lies elsewhere. The program spec says to prompt for input. The code above merely waits for input, without a prompt. ...
user avatar
  • 64.1k
1 vote

How to check if input is invalid with C

It can be challenging specially that you're still in the first few weeks. There are many I/O functions in the C standard library that you can use for that purpose. One of them is fgetc. Execute man ...
user avatar
  • 17.4k
1 vote
Accepted

Drop down list using database values in PHP - Doesn't work - Final project

This is sketchy: foreach($result as $result): ?> because the var names are the same (and I'm not sure about : in php). Wouldn't the proper syntax here <option value="$result["name"]"> be <...
user avatar
1 vote

Help with fseek and fgets

Fseek works by moving the file pointer, indicated by the FILE pointer in our case, forward or backward. So whenever you use functions that work with file streams, you should keep in mind where the ...
user avatar
1 vote
Accepted

inputing multiple value(variable)

It can be done, and in fact, will be done as part of some of the last psets. But since this is a teaching environment, and one of the things this class teaches is how to find out how research ...
user avatar
  • 64.1k

Only top scored, non community-wiki answers of a minimum length are eligible