+ 4
{int x=1; cout<<" ×:"<<x<<endl;} in this programe how i can change the value of x, which opposite the const keyword
3 Réponses
+ 1
thanks
+ 4
thnxx...it was so easy
+ 3
Just reassign a value to x.
int x = 1;
x = 42;
cout << "x: " << x << endl;