Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- {
- struct uneConnexion
- {
- string ip;
- int duree;
- };
- char lesConnexions[1.500] : uneConnexion;
- int nbConnexions;
- string listeSites[];
- int j;
- for (int i = 1; i<=nbConnexions; i++){
- j = 1;
- while (j<=nbConnexions){
- if (listesSites[j] = lesConnexions[i].ip){
- j = nbConnexions;
- }
- else{
- j++;
- if (j = nbConnexion){
- listesSites [i] = lesConnexions[i].ip;
- }
- }
- }
- cout <<lisSites [i]" "<< ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement