Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- string wynik1;
- string wyraz;
- int dlug = wynik1.length();
- int ilosc=0;
- //int i = atoi(str.c_str());
- int wynik = atoi(wynik1.c_str());
- ifstream IN;
- IN.open("pob.txt" , ios::in);
- if (IN.is_open())
- {
- while(IN >> wyraz)
- {
- cout<<wyraz<<endl;
- wynik1=wynik1+wyraz;
- }
- cout<<endl<<endl;
- cout<<wynik1;
- /*for(int i=0;i<5;i++)
- {
- int tmp;
- for(int i=dlug;i>0;i--){
- for(int j=0;j<i;j++){
- if(wynik[j]<wynik[j+1])
- {
- wynik[j]=wynik[j+1];
- wynik[j+1]=tmp;
- }
- }
- }
- } */
- }
- return 0;
- }
- /*
- for(int i=50;i>0;i--){
- for(int j=0;j<i;j++){
- if(ludzie[j].pkt<ludzie[j+1].pkt)
- {
- struct zawodnik tmp=ludzie[j];
- ludzie[j]=ludzie[j+1];
- ludzie[j+1]=tmp;
- }
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment