Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #31.8K
Hello, im a noob with C++ at the moment and Im trying to create a BMP image from pixel data stored in a array. Everything seems to work except that when i look at the file generated in a hex editor i get an extra '00 00' in between the … |
|
Could some please explain why this code is outputting 1 when it should be 1.5; [code=C++] #include <iostream> using namespace std; int main() { double a = 3/2; cout << a; } [/code] thanks |