Maruf_Hasan

add of project

Jun 23rd, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void addnum:: add(string name)
  2. {
  3. fstream fin;
  4. //ofstream out;
  5. fin.open("phonebook.csv",ios::in | ios::app);
  6. //out.open("Edited.csv",ios::out);
  7. vector<string>row;
  8. string line,word,temp,num;
  9. cout<<"Enter the Number"<<endl;
  10. cin>>num;
  11. fin<<name<<","<<num<<endl;
  12. fin.close();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment