20c834
// Testing.cpp :playing with volatile memory is safer than playing with fire
//
//#include "stdafx.h"
#include <iostream>
using namespace std;
int rem [7];
int main ()
{
int f;
short r=0;
cout << "please enter number to be remembered"; // input into the array
cin >> f;
if(r<7 && r >=0)
while(f!=0){
rem [r]=f;
cout << "you have put "<< f << " in [" << r <<"] of the array.
you have "<< 6-r <<" more open space(s) in the array.";
r++;
cin >> f;
}
else
cout << "array is full.";
return 0;
}
//
//#include "stdafx.h"
#include <iostream>
using namespace std;
int rem [7];
int main ()
{
int f;
short r=0;
cout << "please enter number to be remembered"; // input into the array
cin >> f;
if(r<7 && r >=0)
while(f!=0){
rem [r]=f;
cout << "you have put "<< f << " in [" << r <<"] of the array.
you have "<< 6-r <<" more open space(s) in the array.";
r++;
cin >> f;
}
else
cout << "array is full.";
return 0;
}