Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main () {
- string arg = "ffc";
- for (int i = 0; i < arg.length(); i++) {
- cout << "arg[" << i << "] = " << arg.at(i) << endl;
- }
- return 0;
- }
- //output:
- //arg[0] = f
- //arg[1] = f
- //arg[2] = c
Add Comment
Please, Sign In to add comment