user103853
  • Member for 7 years, 7 months
  • Last seen more than 6 years ago
What is the difference between ++i and i++?
Accepted answer
4 votes

x++ - Post-increment operator ++x - Pre-increment operator In short, x++ - x is incremented after the current statement is evaluated. ++x - x is incremented before the current statement is evaluated. ...

View answer
Can't get out of user's input in Terminal
Accepted answer
3 votes

To kill a program prematurely, use CTRL + C.

View answer
Having trouble with Dropbox
2 votes

If Dropbox is installed, it will be at ~/Dropbox. So to get access to this folder anywhere, the command is cd ~/Dropbox. However, when you first log in you should be at ~/ automatically so you could ...

View answer
I can't figure out what problem is causing check50 to reject my "hello, world" code
Accepted answer
2 votes

Remove ! from print statement.

View answer
"Expected an exit code of 0"
Accepted answer
2 votes

As answered by Karreem: When using check50, the default header is used and it of course doesn't contain our declarations. So we have to keep them in the source code file in order for our solution to ...

View answer
How can I compare the .js files to check if passengers are freshmen?
1 votes

if (HOUSES[PASSENGERS[0].house] == false) Here's how: HOUSES is a hash table underneath so when it takes in a key, I've used PASSENGERS[0].house arbitrarily, it return false if the key does not ...

View answer
Can I earn an honor code certificate without submitting problem set 8?
Accepted answer
1 votes

Yes, problem set 8 can be missed.

View answer
My computer does not have a hardware-assisted virtualization
1 votes

As lethaljd said, you don't have enough memory. However, Virtualbox requires 512mb but it won't use all of it so you might get away with using it. Use this tutorial: https://manual.cs50.net/appliance/...

View answer
pset 8 confusion
Accepted answer
1 votes

Think about HOUSES[PASSENGERS[passenger]], what value do you think PASSENGERS[passenger] is returning and do you think it could be used to index a value in HOUSES? Remember also, that HOUSES is an ...

View answer
Binary Notation
0 votes

Here's a little intro to decimal and binary but you should definitely consult other resources to be sure you understand it correctly. The most popular number system we use today is decimal. We ...

View answer