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-plugins
sudo apt-get install -o Dpkg::Options::="--force-overwrite" --reinstall appliance50
One issue is that both gedit-plugins and appliance50 install a file ...
The terminal in the bottom of the gedit window is termed as Embedded Terminal. To get it in gedit,
Open gedit, click View, enable Bottom Panel.
Now click Edit, go to Preferences, then Plugins.
Enable Embedded Terminal.
If you don't find that option, then try sudo apt-get install gedit-plugins in terminal, and repeat the process again.
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 calls print_name, it doesn’t exist yet. So
we need to declare it with something called a prototype first:
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
to search for man pages referenced by keyword or
man -k keyword
to search man page descriptions and names for keyword as a regular expression.
Press the key (to make sure you are in Normal mode).
Type: :q! .
This exits the editor, DISCARDING any changes you have made.
Save the file with changes and exit Vim with: :wq
Like ":wq", but write only when changes have been
When 'hidden' is set and there are more windows, ...
If you are already in the ~/Dropbox directory, at your prompt, simply run
If you are not in the ~/Dropbox directory, first type:
press enter. That puts you into the directory. Now you can do the wget.
If you type cd ~/Dropbox wget etc. all in one command as you have done, it won'...
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/2019/x
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 to see if they're digits. Well, there's absolutely no code here to do that. I don't see any calls to isdigit() or anything that checks argv[i].
Looks like there's a bunch of missing code here that has yet to be added. ;-)
1. Edit the Makefile
DESTDIR ?= /usr/local
MANDIR ?= share/man/man3
DESTDIR = /data/data/com.termux/files/usr/local
MANDIR = /data/data/com.termux/files/usr/share/man/man3
In the Makefile, the question mark equal sign (?=) is for asking if the variable isn't defined. In this case just force it to use the specified path.
2. Build & Install ...
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 signifies the end of the string (which will be invisible in your terminal). Make sure you don't iterate past the end of the string.
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 written a prompt, but unlikely.
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)
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 should return a list of folders, something like:
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 exactly which line causes that.
Here are a couple more hints:
you should move to the next key in the keyword if and only if the current character in the ...
When your program outputs something like this, it's likely that you're NOT outputting valid printable char values due to wrong calculations or something.
The printable char values are from 32 to 126 in the ASCII table (inclusive). To check the value of a char you may write something like
where c is the char variable that you wanna ...
Kellen - if you are downloading GEdit to use in conjuction with taking the course, you would be better off following the instructions for downloading and setting up the virtual appliance. David & the CS50 staff have made some environment configurations that your personal setup may not be able to mirror completely, and that could cause trouble down the ...
vim (aka vi) is a command-line text editor. You can open up an exiting file or creating a new one by executing
To start editing your file, you have to hit i from your keyboard to enter the INSERT mode.
To save your file and exit, hit ESC from your keyboard and type :wq.
To exit without saving, hit ESC from your keyboard and type :q!.