Installation C++ // MS visual C++
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 ?
Code:
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;
} |
Message de la fen�tre de sortie :
Code:
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). |
Merci.