Notes From CS Undergrad Courses FSU
This project is maintained by awa03
tar cvf file_name.tar directory_name/
c
: create a tar filev
: show progressf
: specify the name of the filetf
: view the contents of a tartar xvf file_name.tar
will untar a fileCXX=g++
hello_make:
$(CXX) fileName.cpp -o fileName.x
char c;
while ((c = std::cin.get()) != EOF) {
std::cout << c;
}
string line;
ifstream myfile("file.txt");
if (myfile.is_open()){
while(geline(myfile, line)){
cout << line << "\n" << endl;
}
myfile.close();
}
else { cout << "File could not be opened" << endl; }