#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <string>
using namespace std;
int main(int, char**)
{
cout<<boolalpha<<
( find(istream_iterator<string>( ifstream("D:\\1.txt") ),istream_iterator<string>(),string("true") ) != istream_iterator<string>() )
<<endl;
if(boolalpha (true));<====
}
請問下 我要在if 要取那個一個 var來判斷 boolalpha拿到true 還是 false
Jacker 发表于 2010-9-20 11:34 AM
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |