No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
no matching function for call to `getline(std::string&, char&)' Why is this error occuring? HELP ME SOLVE THIS My Aim is to copy each character or integer to an array A.S.A.P MY PROGRAM:- #include <fstream> #include <iostream> #include<conio.h> #include<string.h> using namespace std; int main () { char a[50]; ifstream someStream( "txt.txt" … |
|
I need to know whether in c++ we can read values from a .txt file and use it to calculate something. **EXAMPLE:-** *In the TEXT FILE-* FoodCode: f2,f3,g2 where anything of type **'f'** is **50bucks** and of type **'g'** is **100bucks**. & By using a C++ Program i want to … |
|
Hi, I want to know how to read multiple text files in this program... I have 5 text files(order1,order2,...order5) Can anyone pls help me with this? I use DevC++. #include<iostream.h> #include<fstream.h> #include<conio.h> #include<windows.h> using namespace std; class{ public: void menu() { ifstream menu; menu.open("menu.txt"); string STRING; string inFile_contents; string previousLine=""; … |