end of input

how to write when i type 0 ,it is end of input?pleasee help
1
2
3
while( cin>>input and input not_eq 0 ){
//...
}
Last edited on
Topic archived. No new replies allowed.