I need to get the user to input a number of the number array they want to look in.
but how can i do a loop that it will check that arrays number is there any tutorials on this? or any help?
no. im basically making a simple battleships game where by the array has 20 fields ad randomly within in them 6 number 1 intergers. I want the user to input say cin>>array[i] user puts in 16 and it searches for array field 16 if it is a 1 then i want it to display hit otherwise if it is zero then miss. but i think i could us an if...else...statment?
It's pure C, and won't cover cin / cout, but you need to get the fundamentals of if / while / for under your belt before you can do anything with C/C++/any programming language. It's also quite a small book, but loads of information on every page.
Good luck with your journey,
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
If you added this exact path: "D:\Development\GlestOld\xerces-c_2_8_0-x86-windows-vc_8_0\include\xercesc\util" to the include directory, then you need to include "XercesDefs.hpp" and not "xercesc/util/XercesDefs.hpp".