Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. firstArray[1] = firstArray[1] + firstArray[0];
  2.  
  3. firstArray[1] = FirstArray[0];
  4.  
  5. #include <iostream>
  6. #include<string>
  7. #include<vector>
  8. #include<fstream>
  9. using namespace std;
  10.  
  11. string firstArray = {0,0, '/', 0, 0, '/', 0, 0};
  12. int main(){
  13.  
  14. cout << firstArray <<endl;
  15. firstArray[1] = firstArray[0]; //this works
  16. cout << firstArray << endl;
  17. cout << firstArray <<endl;
  18. firstArray[1] = firstArray[0] + firstArray[1]; //this is the bit that doesn't work
  19.  
  20. cout << "thanks guys :) <<endl;
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement