0

help in C++, vector

hello, I am a beginner in Programming. could someone please help me to write the following program. write a C++ program that; - reads in natural number n. - creates an int vector and initialize it with random numbers. note: use pointers instead of index operators. thank you.

19th Nov 2017, 6:01 PM
jjcopl
jjcopl - avatar
9 Answers
19th Nov 2017, 6:22 PM
Manual
Manual - avatar
+ 3
Show your attempt. Read this, http://www.cplusplus.com/reference/vector/vector/ show what you come up with. You will be more likely to get help, if you show you tried.
19th Nov 2017, 6:05 PM
Manual
Manual - avatar
+ 2
Paste it in the playground. Save it. Press +INSERT CODE choose the code to link it here.
19th Nov 2017, 6:21 PM
Manual
Manual - avatar
0
I already did that. I just can't write anything #include <iostream> #include <vector> using namespace std; int main () { }
19th Nov 2017, 6:15 PM
jjcopl
jjcopl - avatar
0
thank YOU #kurwius. :) How can I print the ten elements and compute and print the average value?
19th Nov 2017, 6:28 PM
jjcopl
jjcopl - avatar
0
19th Nov 2017, 6:52 PM
jjcopl
jjcopl - avatar