Why do I keep getting streamb.cpp error?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vernon

    Why do I keep getting streamb.cpp error?

    Hi anyone,
    This is my code.
    int num
    num = 0;

    for(int a=0; a<count; ++a){
    if(current->transID==aNo )
    ++num;

    current = current->next;
    }

    When I run this,I keep getting unhandled exception error that requests for
    streamb.cpp file.However, if I delete ++num, the error is resolved but I
    need the "num" to perform other functions. Can anyone help me please?
    Thanks in advance.

    From:
    Vernon.



  • Victor Bazarov

    #2
    Re: Why do I keep getting streamb.cpp error?

    "Vernon" <tanbrosinc@pac ific.net.sg> wrote...[color=blue]
    > Hi anyone,
    > This is my code.
    > int num
    > num = 0;
    >
    > for(int a=0; a<count; ++a){
    > if(current->transID==aNo )
    > ++num;
    >
    > current = current->next;
    > }
    >
    > When I run this,I keep getting unhandled exception error that requests for
    > streamb.cpp file.However, if I delete ++num, the error is resolved but I
    > need the "num" to perform other functions. Can anyone help me please?[/color]

    Your question is covered in the FAQ. See FAQ 5.8. You can find FAQ
    list here: http://www.parashift.com/c++-faq-lite/

    Victor


    Comment

    Working...