Skip to content
Snippets Groups Projects
Commit d93a2c92 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Ajout d'un premier programme sur les fichiers

parent 3fbed21a
Branches
No related tags found
No related merge requests found
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream fichier("essai.txt");
fichier << 10 << 24 << endl;
fichier.close();
ifstream fichier2("essai.txt");
int i;
fichier2 >> i;
fichier2.close();
cout << i << endl;
return 0;
}
target=variable io if loop function vector1D vector2D
target=variable io if loop function vector1D vector2D file
#if defined TARGET_variable
#define TARGET variable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment