User profile: lastchance

User info
User name:lastchance
Location:Manchester, England
Bio:University lecturer in engineering

Teaching: fluid dynamics, mechanics, CFD, bit of maths and computing.

Research: computational fluid dynamics (CFD), renewable energy (marine and wind), aerodynamics, heat transfer, hydraulic engineering.

I have a Maths degree and I do a lot of mathematical modelling in the physical sciences. I program mainly in Fortran at work, but I enjoy improving my C++ in this forum.
Statistical data
Number of posts:2944
Latest posts:

series calculation
It's not so much that S1 and S2 are floats ... it's that n is an int.

series calculation
Change the +1 in lines 19 and 27 to +1.0 and see what happens. Then go back and re-read salem c's p...

columns and rows
In both of your totalling routines you have declared i, j to be doubles. If they are array indices t...

columns and rows
Your code doesn't compile. Make sure you call your arrays consistent things within one function. Yo...

Venting - College Coding
Well you could always return him something like [code]#include <iostream> int main() { int a = 10; ...