Answer:
backup() {
read dirname;
if [[ whereis . /`$dirname` 2> sterr.exe]]
then
mkdir $dirname
for f in . / *.cpp
do
cp f "path_to_dirname"
echo "file backup complete"
}
backup( )
Explanation:
The bash script above is used to backup C++ source files in a directory to a backup directory which is created if it does not exist, and copy's each .cpp file to backup, then sends a message to declare its completion.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The code is written in C++
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
#include <string>
using namespace std;
void display()
{
string yourName;
string watchedMovie;
cout<<"What is your name? ";
cin>>yourName;
cout<<"Which movie have you seen? ";
cin>>watchedMovie;
cout<<"Today, I have learned that " <<name<<" watched "<<watchedMovie<<" movie";
}
int main()
{
display();
return 0;
}
Answer:
orientation settings
Explanation:
so u can now more about whta u doing
The answer to your question is b crowding out effect
total = 0
i = 0
while i < 10:
temp = float(input("Enter Temperature: "))
total += temp
i += 1
print("Sum =", str(total))
I hope this helps!