topical media & game development
basic-program-solutions-02-Soln2-4.c
? /
basic-program-solutions-02-Soln2-4.c
// Soln2_4.cpp
include <iostream>
using std::cout;
using std::endl;
int main()
{
int width = 1280;
int height = 1024;
// double aspect = width / height;
double aspect = static_cast<double>(width) / height;
cout << "The aspect ratio is "
<< aspect;
cout << endl;
return 0;
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.