Guest User

Untitled

a guest
May 10th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. {
  5.  
  6. struct uneConnexion{
  7. string ip;
  8. int duree;
  9. }
  10.  
  11. char lesConnexions[1.500] : uneConnexion;
  12. int nbConnexions;
  13.  
  14. string listeSites[];
  15. int j;
  16.  
  17. for (int i = 1; i<=nbConnexions; i++){
  18. j = 1;
  19.  
  20. while (j<=nbConnexions){
  21. if (listesSites[j] = lesConnexions[i].ip){
  22. j = nbConnexions;
  23. }
  24. else{
  25. j++;
  26. if (j = nbConnexion){
  27. listesSites [i] = lesConnexions[i].ip;
  28. }
  29. }
  30. }
  31. cout <<lisSites [i]" "<< ;
  32. }
Add Comment
Please, Sign In to add comment