首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

一个cout的用法解决方案

2012-02-23 
一个cout的用法是c++primer上的,如下:ilist_item*itmylist.find(8)cout \n Searchingforthevalu

一个cout的用法
是c++   primer上的,如下:
ilist_item   *it   =   mylist.find(   8   );

cout   < <   "\n "
< <   "Searching   for   the   value   8:   found   it < < "
< <   (   it   < <   "   yes!\n "   :   "   no!\n "   );

最下面一句话编译错误啊,大家帮看看什么问题
“ < <   (   it   < <   "   yes!\n "   :   "   no!\n "   );”

[解决办法]
对不起,上面的说错了.应该是这样:
cout < < "\n "
< < "Searching for the value 8: found it < < "
< < ( it? "yes!\n " : " no!\n ") ;

热点排行