一个cout的用法解决方案
一个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 ") ;
是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 ") ;