How can i convert C++ to arduino for my mid test ?

how are you everybody

excuse me i wanna ask about how can i convert C++ (bit shifted) to arduino this for my mid test

am new to this arduino things

here the code

#include <iostream>

void PrintBinaryAndDecimal(int iMyNumber) {
	using namespace std;
	cout << "Bin = ";
	for (int i = 31; i >= 0; --i) {
		std::cout << (((iMyNumber >> i) % 2) ? '1' : '0');
	}
	cout << " : Dec = " << iMyNumber << endl << endl;
}

int main() {
	using namespace std;

	int iMyNumber = -38;

	cout << "Original:" << endl;
	PrintBinaryAndDecimal(iMyNumber);

	cout << "Left-shifted:" << endl;
	PrintBinaryAndDecimal(iMyNumber << 1);

	cout << "Right-shifted:" << endl;
	PrintBinaryAndDecimal(iMyNumber >> 1);

	// Keep the window open
	cin.get();
	return 0;
}

Whats a 'mid test' ?

Arduino is programmed in C++, however not all I/O functions are implemented. The Arduino Reference Guide and examples that come with the Arduino IDE are a good introduction to the programming style.

(deleted)

You, young Sir, are a LIAR

Gee, maybe young "Miss".

if I am going to follow up on a report I need more than "multiple sites" :wink:
Otherwise the posts stands for now.