Ok so for our first off im not very good with C, let alone C++. I had a very horrible C teacher so its like trying to cram a lot of things in all at once. Anyways, back to my question. We have to write a program that supposed to be an example of convolution. Thats something i dont fully understand, be were going over it still. Anyhow i was showed how to write a lot of this code but i dont know whats wrong with it. Its only giving me one error on line 18 but im not sure what it is. Please HELP! Heres the code. Forgive me. Again im not good at C++ at all so if this code looks stupid I apologize
#include
using namespace std;
int main()
{
float matrix[4] = {2, 1, 1, 1};
float flip[4];
int i, m;
m = 4;
for(i = 0; i < m; ++i){
flip[i] = matrix[m - 1];
cout << "Flip[i]";
matrix[m] = [m - 1];
}
}