Given an int variable x write some statements that attempt to open a file named “table20″ and read a value into x; if that turns out not to be possible your code should then read avalue from standard input into x.

C++

LANGUAGE: C++ CHALLENGE: Given an int variable x write some statements that attempt to open a file named “table20″ and read a value into x; if that turns out not to be possible your code should then read avalue from standard input into x.

Read More