31_文字データと整数の演算

495 ワード

//  :2012 9 25 16:52:58

#include <iostream>

using namespace std;

int main()
{
	char c1, c2;
	c1 = 'a';
	c2 = 'b';
    c1 = c1 - 32;
	c2 = c2 - 32;
	cout<<c1<<' '<<c2<<endl;
	return 0;
}

/*
 VC++6.0       :
-----------------------
A B
Press any key to continue
-----------------------
*/