Search:
Forum
General C++ Programming
String Operation
String Operation
May 11, 2018 at 3:37pm UTC
fuerant
(3)
So I have this problem:
Write a C++ program that extracts words inside the parentheses from a text file and prints the
extracted words on the screen
#include <iostream>
#include <string>
using namespace std;
int main() {
string text = "//enter text here";
// you need to implement from here
return 0;
}
I have no idea where to start. How do I do this?
May 11, 2018 at 4:00pm UTC
Repeater
(3046)
Read text from file into string
Look at string, one char at a time
If char is '(', every subsequent char gets printed to screen
If char is ')', every subsequent char does not get printed to screen
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs