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.
9 Réponses
+ 4
+ 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.
+ 2
Paste it in the playground.
Save it.
Press
+INSERT
CODE
choose the code to link it here.
0
I already did that. I just can't write anything
#include <iostream>
#include <vector>
using namespace std;
int main () {
}
0
thank YOU #kurwius. :)
How can I print the ten elements
and compute and print the average value?
0
what is wrong with sum part?
https://code.sololearn.com/cBHX30PYJ1WI/#cpp