Cpp 01 02 03 04 05 06 07 08 09 10 includeiostream

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ce std; 03 void main() 04 { 05 // 소문자와 대문자는 아스키코드 값이 32 차이가 남 06 cout << 'a' - 'A' <<"\n"; 07 // 소문자에서 32를 빼면 대문자가 구해짐 08 cout << (char) ('a' -32) <<"\n"; 09 } - 24 - IT COOKBOOK 4] 문자형 IT COOKBOOK 확장 확장 특수 출력 문자 - 25 - [실습하기 2-9] 확장 특수 문자 출력하기 [예제 2-9] 2_10.cpp 01 02 03 04 05 06 07 08 09 10 11 #include <iostream> using namespace std; void main() { cout<<" \\n ==> " <<"\n"<<endl; cout<<" \\t ==> " <<"\t"<<"탭다음문자"<<endl; cout<<" \\b ==> " <<"123"<<"\b"<<"45"<<endl; cout<<" \\\\ ==> " << "\\"<<endl; cout<<" \\\' ==> " << "\'"<<endl; cout<<" \\\" ==>...
View Full Document

Ask a homework question - tutors are online