We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

start trying, and help me completing this code. we still have time till tomorrow midnight.

#include <iostream>
#include <fstream>
#include <string>
/*open file with ifstream
use getline(infile, string); in while loop to read file line by line
save data in string and string to :istringstream iss (string)
tokenized data with delimiter " = ? \n" ignore space, =, ? and blank lines
use LL(1) parsing table with stack or just use stack
compare condition
output the data with your own userdefine function void ()
*/

using namespace std;

int main()
{
ifstream inFile("abc.txt");

if (inFile.fail()) {
cerr "Unable to open file for reading." endl;
exit(1);
}

string nextToken;
while (inFile >> nextToken) {
cout "Token: " nextToken endl;
}

inFile.close();

return 0;
}

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1026

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

last date??

RSS

Latest Activity

+ Baba posted a discussion
3 minutes ago
Nouman Butt liked + "AS"'s discussion Zabt Sabhi ...
8 minutes ago
Nouman Butt liked + "AS"'s discussion Jo Ghair Thy..
8 minutes ago
Nouman Butt liked + "AS"'s discussion Neelam Mat Karna ...
8 minutes ago
+ ! Ryan and ♦_"Tooba"_♦ are now friends
20 minutes ago
+ "AS" replied to + "AS"'s discussion Neelam Mat Karna ...
23 minutes ago
+ "AS" replied to + "AS"'s discussion Jo Ghair Thy..
24 minutes ago
+ M.Tariq Malik left a comment for Sherry
24 minutes ago
+ "AS" replied to + "AS"'s discussion Zabt Sabhi ...
25 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion 2019 Noble Prize Winners
42 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Me, Mom and Winters
43 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Me, Mom and Bachy howey paisy
43 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + Iuuoɔǝut+'s discussion Mohabbat ab Khamosh ho gai
45 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" liked + Iuuoɔǝut+'s discussion Mohabbat ab Khamosh ho gai
45 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "AS"'s discussion Zabt Sabhi ...
45 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" liked + "AS"'s discussion Zabt Sabhi ...
45 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "AS"'s discussion Jo Ghair Thy..
50 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" liked + "AS"'s discussion Jo Ghair Thy..
50 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to +++LEARNER+++'s discussion How to Speak Correct English
51 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" liked +++LEARNER+++'s discussion How to Speak Correct English
51 minutes ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service