cin >> hex; //set the input stream to read in hexadecimal
long num = 0;
cin >> num; //input a number, example 15
cout<<hex<<showbase; // shows output as 0xsomeNumber
cout << num; //prints 0xf instead of 15
you can do the same with ifstream iFile("number.txt")
or ofstream oFile("numbers.txt");
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...