Guest User

Untitled

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