15 votes

Gedit bottom panel terminal plugin missing

Another student, in whose appliance the gedit-plugins package was missing, found that the following two commands solved the problem: sudo apt-get install -o Dpkg::Options::="--force-overwrite" gedit-...
10 votes
Accepted

How to quit when running into an infinite loop

Try CTRL-C, that should make your program stop whatever it is currently doing.
  • 128
6 votes
Accepted

implicit declaration of function is invalid in C99

Sorry, beginner error: But now if we try to print_name(s) in our main function, we still get an error. And that’s because the compiler reads from top to bottom, in order, so at the time main ...
4 votes

Which command is used to clear terminal (output) window?

If you're using macOS you have to use ⌘ + k instead of the ctrl + k command which was suggested by a few other users :)
4 votes

What's wrong with this code?

This line causes it: for (spaces = height - rows; spaces <= height; --spaces). While spaces is less than height, print a space and make spaces smaller. It is an infinite loop.
  • 1,211
3 votes
Accepted

How to list the functions of a library in the terminal?

if you want to "list the functions in a library", you should look at the header file(s) aka .h file(s). if you wanna search for functions in the standard library, you could execute man -f keyword ...
3 votes
Accepted

How to test pset7 queries in the terminal window?

Are you running that in the terminal? (ie, not inside sqlite3)? A common problem is trying to run it at the sqlite3 prompt. ~/pset7/movies/ $ cat 2.sql | sqlite3 movies.db ...
  • 18.5k
2 votes
Accepted

pset2/Crack - Terminal disconnected after some time of running

At pset3 recover/resize, they introduce the CS50 IDE at cs50.io, which I used. The lab has been unreliable for me, so I used that instead, pulling required files from https://github.com/cs50/labs/tree/...
  • 20.8k
2 votes

I can't access my terminal window on my CS50 IDE page. Please help!

To see the console press F6, to open a new tab in the terminal Alt + T
  • 5,201
2 votes

Can't run debugger

I believe you're using VS Code locally, right? I had no problem using the codespace in the browser, but when I used it in my locally installed VS Code, there was this problem with debug50 in codes ...
1 vote
Accepted

Strange CL output

I have no idea what this code is doing. But that doesn't really matter. You said that the intent is to test the chars in argv[1] to see if they're digits. Well, there's absolutely no code here to do ...
  • 66.7k
1 vote
Accepted

Pset2 Initials Failing Check50

check50 gave me problems like this: :( outputs "MB" for "Milo Banana" \ expected output, but not "MB\u0000\n" This means you are printing the M and the B and then the null character that ...
  • 18.5k
1 vote
Accepted

pset3: terminal window problem

This has every indication of being an infinite loop somewhere after the code that takes in the data. Look in any loops that follow. There's also a chance that it's waiting for input without having ...
  • 66.7k
1 vote

Home directory problem

Your username in the Terminal shell is ubuntu. This is true for everyone, regardless of what your Cloud 9 IDE username is. Have you tried typing ls to list the contents of your home directory? It ...
  • 3,046
1 vote

Vigenere does not output correctly

The floating-point exception typically happens because of a division by 0. You get that because of your risky usage of the remainder operator. I'll let you play with this a little more to figure out ...
  • 17.6k

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