Where is the output

mose nager mose_n@yahoo.com
Thu Oct 14 17:38:00 GMT 1999


Hello Gentlehuman,

I'm attempting to use GNU C++ compiler and I am having
problems. I successfully compile my program, but when
I run it I can't find the output. I tried running it
from the program using the run button and it seems to
run. I say this because the pointer changes to an
hourglass. Then the pointer reverts back to the arrow
pointer. When I attempt to run it from a dos prompt I
same results. Neither printf nor cout produced an
output to the screen. 

This is the program: 

#include <iostream>

int main() {
    char A = 'a';
    char * cp = &A;
    double d = 1.119;
    double * dp = &d;

    printf("Addition & Subtraction:");
    char * cp2 = cp + 1;
    cout << (int)cp2;
//    return 0;
}



=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


More information about the Gcc-bugs mailing list