title: Bubblesort not working for some reason
body: <p>I tried to write basic bubblesort in C++, and now I'm stuck. Any ideas why that might not work? I suppose it's obvious for more experienced people, but not for me.</p>
  
  <p>liczba_liczb is number of array cells, niePosort is the array.</p>
  
  <pre><code>cout&lt;&lt;"\n\nRozpoczynam sortowanie:";
      for(int i=0;i&lt;liczba_liczb-1;i++){  
  
          for(int j=0;j&lt;liczba_liczb-1-i;j++){
  
              if(niePosort[j]&gt;niePosort[j+1]){
  
                  cout&lt;&lt;"\n"&lt;&lt;niePosort[j]&lt;&lt;"&gt;"&lt;&lt;niePosort[j+1]&lt;&lt;", zamiana.";
  
                  temp = niePosort[j+1];
                  niePosort[j+1]=niePosort[j];
                  niePosort[j] = temp;
              }
          }
  
      }
  </code></pre>