新加坡ISS和OFS哪個好
A. 新加坡ofs學校好嗎
新加坡教育是一流的,無論是基礎教育還是高等教育,都是領先國際水平的
B. 新加坡有哪些初中
ISS International School Singapore (Preston Campus)
http://www.iss.e.sg/
Overseas Family School Pte Ltd
http://www.ofs.e.sg/
Dunman Government Chinese Middle School
http://www.dhs.sg/index1.html
Singapore Nanyang Huachiao Middle School
www.hci.e.sg
C. C/C++中的識別問題
[21:28:57@/tmp]$ cat a.cpp
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
#include<vector>
#include<cctype>
#include<iterator>
#include<algorithm>
using namespace std;
int main()
{
ifstream ifs(__FILE__);
ofstream ofs("result.txt");
string s(istreambuf_iterator<char>(ifs.rdbuf()), istreambuf_iterator<char>());
replace_if(s.begin(), s.end(), not1(ptr_fun<int, int>(isalpha)), ' ');
istringstream iss(s);
vector<string> v((istream_iterator<string>(iss)), istream_iterator<string>());
sort(v.begin(), v.end());
vector<string> t(v);
vector<string>::iterator end = unique(t.begin(), t.end());
for(vector<string>::iterator it = t.begin(); it < end; it++)
ofs << *it << ": " <<
count_if(v.begin(), v.end(), bind2nd(equal_to<string>(), *it))*100.0/v.size()
<< "%" << endl;
}
[21:29:02@/tmp]$ g++ a.cpp
[21:29:07@/tmp]$ cat result.txt
FILE: 0.925926%
algorithm: 0.925926%
begin: 4.62963%
bind: 0.925926%
cctype: 0.925926%
char: 1.85185%
count: 0.925926%
end: 5.55556%
endl: 0.925926%
equal: 0.925926%
for: 0.925926%
fstream: 0.925926%
fun: 0.925926%
if: 1.85185%
ifs: 1.85185%
ifstream: 0.925926%
include: 7.40741%
int: 2.77778%
iostream: 0.925926%
isalpha: 0.925926%
iss: 1.85185%
istream: 1.85185%
istreambuf: 1.85185%
istringstream: 0.925926%
it: 4.62963%
iterator: 6.48148%
main: 0.925926%
namespace: 0.925926%
nd: 0.925926%
not: 0.925926%
ofs: 1.85185%
ofstream: 0.925926%
ptr: 0.925926%
rdbuf: 0.925926%
replace: 0.925926%
result: 0.925926%
s: 3.7037%
size: 0.925926%
sort: 0.925926%
sstream: 0.925926%
std: 0.925926%
string: 8.33333%
t: 3.7037%
to: 0.925926%
txt: 0.925926%
unique: 0.925926%
using: 0.925926%
v: 6.48148%
vector: 4.62963%
[21:29:11@/tmp]$