ControlC ControlC.com

20c834

Views: 400Total Chars: 524
Created: 10/3/11 8:29:23PM ET
Self Destructs: Never
// 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;
}
524 chars, 96 words, 33 lines·Create new version