why this code doesn't work

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

    why this code doesn't work

    int main()
    {
    cout.setf(ios:: failbit);

    if(cout.fail())
    cout<<"error "<<endl;

    return 0;
    }



    why it doesn't set the formating flag in visual studio 2005

    all formatin flag doesn't set


    I want quick answer please
    thank you
    bye
  • mohamed azaz

    #2
    Re: why this code doesn't work

    thank you for your notes

    I want to set a format flag what is the right code


    example

    format flag as (right)or(left)

    thank you

    bye

    Comment

    Working...