VIsual studio me retourne une erreur concernant l'operation effectue dans ma boucle. Pensez vous que mon programme est correcte ?
L'erreur est :warning C4552: '+' : operator has no effect; expected operator with side-effect
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 #include <iostream> #include <fstream> using namespace std; int main () { int first_address=0; int step=1; int number_of_data=10; int * measurment; measurment= new int [10]; int i; for(i=first_address;i<number_of_data+1;i+step) measurment[i-first_address+1]= 10; }
Partager