Pourquoi sa swap pas?
Fermé
c1117
-
11 déc. 2008 à 10:01
xav3601 Messages postés 3288 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 2 mars 2016 - 11 déc. 2008 à 10:27
xav3601 Messages postés 3288 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 2 mars 2016 - 11 déc. 2008 à 10:27
A voir également:
- Pourquoi sa swap pas?
- Windows swap - Guide
- Swap memory - Forum Windows
- Swap magic ps2 ✓ - Forum Jeux vidéo
- Hot swap - Forum Matériel informatique
- Swap magic ps2 download ✓ - Forum Image ISO
3 réponses
xav3601
Messages postés
3288
Date d'inscription
lundi 10 novembre 2008
Statut
Membre
Dernière intervention
2 mars 2016
312
11 déc. 2008 à 10:04
11 déc. 2008 à 10:04
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void swap (int * a,int * b ) {
int temp = a;
*a=b;
*b=temp;
}
int main () {
int i=10,j=20;
swap(&i,&j);
cout << i << ' ' << j;
}
essaye ca :)
#include <fstream>
#include <string>
using namespace std;
void swap (int * a,int * b ) {
int temp = a;
*a=b;
*b=temp;
}
int main () {
int i=10,j=20;
swap(&i,&j);
cout << i << ' ' << j;
}
essaye ca :)
xav3601
Messages postés
3288
Date d'inscription
lundi 10 novembre 2008
Statut
Membre
Dernière intervention
2 mars 2016
312
11 déc. 2008 à 10:27
11 déc. 2008 à 10:27
Et quelles sont les erreurs de compilation???