Untitled
unknown
c_cpp
a year ago
912 B
3
Indexable
Never
#include <iostream> #include <string> using namespace std; int main() { string response ; int N=1; while(response!="0"){ string filename; cout << "VizOS 1 \n Copyright c2023 ViziBoiYT Inc. \n v0.1 \n please select option (add, delete, read, pcdelete)"<< endl; string a[100]; cin >> response; if (response == "add"){ cout<<"Write the name of your file"; cin>>filename; a[0]=filename; } else if(response =="delete"){ cout<<"deleting all your files..., please wait\a"; N=0; } else if(response =="pcdelete"){ cout<<"Specify file to delete from computer."; cin >> response; cout<<"deleting for real"; } for (int i=0;i<N;++i) cout<<a[i]<<endl; if(N==0){ cout<<"Sorry. All your files are deleted. Best luck next time"; } } return 0; }