Dec 17, 2013 at 1:42pm UTC
How do you multiply a vector with 13 elements in, by a vector with 11 elements in?
Forget the C++ code for now - mathematically, what is it that you actually want to do?
Last edited on
Dec 17, 2013 at 1:43pm UTC
Dec 17, 2013 at 3:04pm UTC
i want to calculate wastequantity X wasteweight per unit = total waste weight collected.
Dec 17, 2013 at 3:06pm UTC
but when i change to same vector size ,
i still got error
1>c:\users\documents\visual studio 2008\projects\staffmenu.cpp(516) : error C2296: '*' : illegal, left operand has type 'char '
1>c:\users\documents\visual studio 2008\projects\staffmenu.cpp(516) : error C2297: '*' : illegal, right operand has type 'char '
Dec 17, 2013 at 3:29pm UTC
its because you are taking sql codes and literally injecting them into your code. theres probably a function they are supposed to go in. c++ has no idea what sql is
Dec 17, 2013 at 3:30pm UTC
so how the correct way i should do the coding?
im a serious noob in this c++ & sql stuff,
but need to show this project tomorrow.
Dec 17, 2013 at 3:36pm UTC
i have never used sql and c++ (but i probably need to for my website). i just know that its not valid c++ to literally inject the commands. there is a function in the sql api that executes it for you