- //文件名:CHAPTER2-7.cpp
- #include <iostream.h>
- void main()
- {
- char true1='Y',*s1="Menu mode select:", *s2="The students name is";
- cout<<"Are you sure?(Y/N)";
- cout.put(true1).put('n'); //可写成:(cout.put(true1)).put('n');
- cout.write(s2,17).write(s1+9,8)<<flush;
- }