The expression (src > buf) is used as a boolean condition. This technique is called "method chaining", and the point of this is to show that for any stream - std::cin, any std::istream, std::ifstream, std::cout, std::ostream, std::ofstream, etc.: the expressions Std::cout > buf) results in src itself, or something close to it. What specifically is the bool converting from? Int convert( int m, int n, char hexadecimal) running sum that doesn't compute correctly if (j = 0) MyFile.open( "C:/Users/AJS/Documents/School/Summer 2017/CSC 211/Lab 3/hex.dat") #include #include #include using namespace std
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |