Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #25.0K
2 Posted Topics
hi ancient dragon in your above mentioned code std::string id = line.substring(pos+1); cout << id << '\n'; here it doesnt displays the rest of the code that means the strings after , is not fetched by std::string id = line.substring(pos+1);
Hi, as per the requirement i was asked to create a code that fetches each line under a particular section of a text file and store it in a variable. [code]#include <iostream> #include <fstream> #include <string.h> using namespace std; int main() { ifstream ifs("catter.txt"); string line; char name[100]; char cat[100]="mkdir"; …
The End.
anupa