Bonjour ,
Pouvez-vous m'éclairer sur ce problème ?
MS visual C++ , sous windows7, me renvoie des messages mystérieux en sortie. S'agit-il d'un problème d'installation du logiciel ou de syntaxe dans le fichier cpp ?
Message de la fenêtre de sortie :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 #include <iostream> #include <fstream> #include <limits> using namespace std; int main() { ofstream fichier("toto.txt", ios::out | ios::trunc); //déclaration du flux et ouverture du fichier if(fichier) // si l'ouverture a réussi { // instructions fichier.close(); // on referme le fichier } else // sinon cerr << "Erreur à l'ouverture !" << endl; cout << "Appuyez sur entrée pour continuer..."; cin.ignore( numeric_limits<streamsize>::max(), '\n' ); return 0; }
Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 'testFichier.exe'*: Chargé 'C:\Users\Sebastien\Documents\Visual Studio 2010\Projects\fctPerso\TestFichier\testFichier\Debug\testFichier.exe', Les symboles ont été chargés. 'testFichier.exe'*: Chargé 'C:\WINDOWS\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'testFichier.exe'*: Chargé 'C:\WINDOWS\SysWOW64\kernel32.dll', Cannot find or open the PDB file 'testFichier.exe'*: Chargé 'C:\WINDOWS\SysWOW64\KernelBase.dll', Cannot find or open the PDB file 'testFichier.exe'*: Chargé 'C:\WINDOWS\SysWOW64\msvcp100d.dll', Les symboles ont été chargés. 'testFichier.exe'*: Chargé 'C:\WINDOWS\SysWOW64\msvcr100d.dll', Les symboles ont été chargés. Le programme '[5652] testFichier.exe: Natif' s'est arrêté avec le code 0 (0x0).
Partager