hello,
im having problem to copy the data from iostream& into string.and im not sure am i doing the right way by using getline.can anyone give hints how to solve this.
here's to make things clear:
thanks in advance
im having problem to copy the data from iostream& into string.and im not sure am i doing the right way by using getline.can anyone give hints how to solve this.
here's to make things clear:
Code:
//method that reads through the stream and breaks it into words and sentence Document*Repository::addDoc(iostream& inStream,string docId) //test core Repository r1; stringstream ss; string s1 = "Hello World;" ss.clear(); ss<<s1; r1.addDoc(ss,"1")
Comment