I'm trying to uppercase a reference to output in the console however it doesn't seem to work and just outputs the normal reference where all the char are lower case. Ive tried "toUpper()" and it doesnt let me as there are ints too. Any idea how to uppercase the varInt reference?
#include <Windows.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int varInt(123456);
cout << "varInt " << uppercase << &varInt << " = " << varInt << endl;}
output:
varInt 0x54be5ff85c = 123456
I want the chars after 0x to be uppercase so its easier to read.