thanks for your response.
To test out program our prof told us to use any document, or even texts from a wiki page.
I gather there wouldn't be something like this:
H1 I a!m gr8t today.
Rather:
Hi! there are 47 people on line at the back.
What do you think I should use? I think I need to use something for something before C++11. Also is 'c' a variale?
1 2
|
auto it = std::remove_if(word.begin(), word.end(), [](char c) {return ispunct(c) || isdigit(c); });
word.erase(it, word.end());
|
I will use this from the computer science wiki page:
Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell.[1] An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems.