User profile: lastchance

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

Teaching: fluid dynamics, mechanics, CFD, numerical methods.

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

I have a first degree in Maths and a PhD in Mechanical Engineering. 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
Gender:Male
Occupation:Teacher
Skills:C++
Python
Fortran
MPI
History
Joined:
Number of posts:3397
Latest posts:

Error assigning struct value from getline
You have a colon instead of a semi-colon at the end of line 50. I suspect you meant 'clients' (the ...

DP
Read the question. Use the modulo operator, %.

getline
If the stream is valid it is not skipped. It may be called at a point when there is nothing of subs...

gave up solving this /explain:
[code]#include <iostream> using namespace std; int main() { int x, value; int a = 0, b = 0,...

If setw sets "minimum field width", why does it limit input or output?
The setw() is irrelevant here. (For an input stream it is only relevant for a c-string or string). ...