Jump to content

.

AnotherTechGuy

ok this is not the code but i will tell u the idea of what u need to do
take the user input as an int

save it as a variable (lets say x)

then use x to identify the placeholder ( Array[x])

then i guess print it or do whatever u want with that number

Link to comment
Share on other sites

Link to post
Share on other sites

Thankyou! Such a simple idea and I couldn't get it in my head! 

u wouldnt be a programmer if u didnt over complicate things from time to time :P

glad i could help

happens to the best of us

Link to comment
Share on other sites

Link to post
Share on other sites

You may want to perform som error checking to garuntee the input value is greater than or equal to zero and less than the size of the array.  Otherwise it will core.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×