Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <string>
- #include <fstream>
- using namespace std;
- int main(int argc, char* argv[])
- {
- string tab = argv[1];
- size_t pozycja = tab.find(" ");
- int table[100];
- cout<<tab<<endl;
- for(int i=0; i<tab.length();i++){
- pozycja = tab.find(" ");
- string nowy = tab.substr(0, pozycja);
- tab.erase(0,1);
- table[i]=atoi(nowy.c_str());
- cout<<table[i];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment