Getting "This repository does not have a release file" on freshly installed Debian 9.1 with KDE
119
It works now after:
- Changing the sources file by duplicating the below lines with one of the pairs saying
stretch-updates
instead ofstretch
- running
apt-get install firefox-esr
Prior I only commented out the CD sources and added a source in the same way as here, like:
deb http://ftp.id.debian.org/debian/ stretch main contrib
deb-src http://ftp.id.debian.org/debian/ stretch main contrib
which I changed to stretch/updates which didn't help nor did changing the mirror.
For the bluescreen and freezes I created a separate question here
Related videos on Youtube
Author by
Novice Polymath
Updated on September 18, 2022Comments
-
Novice Polymath over 1 year
I'm working on a homework assignment, and I can't seem to get this function right. Does anyone have any ideas on why this won't work to create a substring consisting of the characters in between two spaces (word 0, word 1, etc...)?
string extractWord(string s, int wordNum) { int wordIndices[10]; int i = 0; for (int z = 0; z < s.length(); z++) { if (isspace(s.at(z))==true) { wordIndices[i] = z; i++; } } return s.substr(wordIndices[wordNum], abs(wordIndices[wordNum+1] - wordIndices[wordNum])); }
-
R Sahu almost 8 yearsIf
s
is"word1 word2"
, then,wordIndices[0]
will be5
. I don't think you want that. In other words, if there are no leading whitespace characters,wordIndices[0]
must be set to0
. -
Thomas Matthews almost 8 yearsBTW, you can treat
std::string
as an array and don't need theat
function, such ass[z]
. -
Admin almost 7 years...So what does your sources list say?..
-
-
πάντα ῥεῖ almost 8 yearsI already know, you'll come up here saying "my assignment restricts me to use blah, blah", though such doesn't matter in real world programming with c++.