www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Asalam o ALikum!

yrrrrrr agar kisi ny first lecture lia tu us ma jo refactor kia program ko us ma error a raha koi help kr dy. code nichy dy raha hon es ma error dy raha k [Error] 'f' was not declared in this scope:

ya kon sy scope ka error ha koi help kr dy plzzzz

#include <iostream>
#include <fstream>
#include<conio.h>
int onkeypress()
{
char b = std::cin.get();
std::cout b std::endl;
return b == 'x';
}
int onfilechanged()
{
char a = f.get();
std::cout a std::endl;
return a == 'x';
}
int main()
{
char a = '-', b;
do {
if (kbhit()) {
if (onkeypress())
return 0;
}
std::ifstream f("test.txt", std::ifstream::in);
if (f.good() && a != f.peek()) {
if (onfilechanged())
return 0;
}
f.close();
} while (true);
return 0;
}


+ 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)


Views: 46

Looking For Something? Search Below

Latest Activity

+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS614 Data Warehousing Assignment No 03 Fall 2020 Solution & Discussion in the group CS614 Data Warehousing
4 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MGT101 Financial Accounting Assignment 01 Fall 2020 Solution / Discussion in the group MGT101 Financial Accounting
11 minutes ago
Kinza Rajpoot posted photos
24 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion STA301 Statistics and Probability Assignment No 03 Fall 2020 Solution & Discussion in the group STA301 Statistics and Probability
26 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH202 Discrete Mathematics Assignment No 02 Fall 2020 Solution / Discussion in the group MTH202 Discrete Mathematics
31 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH202 Discrete Mathematics Assignment No 02 Fall 2020 Solution / Discussion in the group MTH202 Discrete Mathematics
35 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MTH202 Discrete Mathematics Assignment No 02 Fall 2020 Solution / Discussion
35 minutes ago
+ M.Tariq Malik added a discussion to the group MTH202 Discrete Mathematics
35 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS614 Data Warehousing Assignment No 03 Fall 2020 Solution & Discussion in the group CS614 Data Warehousing
37 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS614 Data Warehousing Assignment No 03 Fall 2020 Solution & Discussion in the group CS614 Data Warehousing
38 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS614 Data Warehousing Assignment No 03 Fall 2020 Solution & Discussion
38 minutes ago
+ M.Tariq Malik added a discussion to the group CS614 Data Warehousing
38 minutes ago

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

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

.