Haiin zhu io manipulator include iomaniph dec hex oct

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: Zhu } Re t ur nM ax 第第第第第第第 C第 第第第第第第第第第 printf 第 scanf #include <stdio.h> C++: I/O 第 cin, cout #include<iostream.h> or #include <iostream> using namespace std; 02/25/14 清清清清清清清清 CIMS 清清 清清清清清清清清 Dr. Haiin Zhu printf 清清 8 清清清清 16 清清清清 %u 清清清 10 清清清清 %c 清清 清清清 清清清清清清清清 清清清清清清清清 %g 清清清清清清清清 CIMS 清清 清清清清清清清清 %o %e 02/25/14 10 清清清清 %f int a=28; printf(“%d”,a); %d %x 第第第 printf( 第第第第第第第 , 第第第 1, 第第第 2, …) 清清清清 %s % 第第第 清清清 ( 清清清清 f 清 e 清清 ) Dr. Haiin Zhu int a=28; char b=’D’; double c=3.1415926; printf(“%d,%c,%d,%f,%12.7f”, a, b, b, c, c); 28,D,68,3.141593, 3.1415926 02/25/14 清清清清清清清清 CIMS 清清 清清清清清清清清 Dr. Haiin Zhu scanf 第第 第第第 scanf( 第第第第第第第 , 第第 1,...
View Full Document

This document was uploaded on 02/25/2014.

Ask a homework question - tutors are online