Publicité
Assuming f in is an ifstream object that has been connected .pdf
Prochain SlideShare
Assume you have a population of 29000 people where 2 of the.pdfAssume you have a population of 29000 people where 2 of the.pdf
Chargement dans ... 3
1 sur 1
Publicité

Contenu connexe

Plus de hershbudhia1(20)

Publicité

Assuming f in is an ifstream object that has been connected .pdf

  1. Assuming f in is an ifstream object that has been connected to file2.txt, what will be output? begin{tabular}{ll} string str1 = "abc"; & multicolumn{1}{c}{ file2.txt } string str2 = "xyz"; & What are the rules for the operator? string str3 = "nop"; & Careful!! getline(fin, str1); & What about getline? fin str2; & getline(fin, str3); & cout str1 str2 str 3; & end{tabular} a. What are the rules for the > operator?Careful!! What about getline? b. What are the rules for the operator?Careful!! c. What are the rules for the operator? Careful!! What about getline? d. What are the rules for the operator? Careful!! e. Whatarethe
Publicité