Guest User

Untitled

a guest
Jun 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main () {
  6. string arg = "ffc";
  7. for (int i = 0; i < arg.length(); i++) {
  8. cout << "arg[" << i << "] = " << arg.at(i) << endl;
  9. }
  10. return 0;
  11. }
  12.  
  13. //output:
  14. //arg[0] = f
  15. //arg[1] = f
  16. //arg[2] = c
Add Comment
Please, Sign In to add comment