예제 #1
0
int main(){
  while(scanf("%s",str)!=EOF){
    a.input(str);
    b=DtoB(a);
    b=reversion(b);
    a=BtoD(b);
    a.display();
  }
  return 0;
}
예제 #2
0
파일: utf8.cpp 프로젝트: JohnCrash/iRobot
void split_path(const std::string& r,std::vector<std::string>& vs)
{
	std::string s;
	for( int i=r.length()-1;i>=0;i-- )
	{
		if( r.at(i)!='/'&&r.at(i)!='\\' )
		{
			s += r.at(i);
		}else
		{
			vs.push_back(reversion(s));
			s.clear();
		}
	}
	if( !s.empty() )
	{
		vs.push_back(reversion(s));
		s.clear();
	}
}
예제 #3
0
 Real GsrProcess::drift(Time t, Real x) const {
     return core_.y(t) - core_.G(t, x) * sigma(t) * sigma(t) -
            reversion(t) * x;
 }