cout

Cout fixes bug in C++ program, but why?

I wrote a simple program to grab stock prices from yahoo finance. The loop that reads the data was truncating early (and ending about where the data from the website shows as opposed to the full download to the correct date for the excell file). So I put in a cout command in the loop to try to debug and voila, it worked correctly! ...

C++ Source help, cout function help.

I am new to C++, I am actually learning and in the experimentation part, however, while experimenting I ran into an issue with the cout function. The program fails when compiling. I was wondering if you guys could assist me: Here is the source I wrote. #include "stdafx.h" #include <iostream> using namespace std; int main() { signed sh...