int main()
{
    BenchmarkExt<int> bench("Array expression", 2);

    bench.beginBenchmarking();
    blitzVersion(bench);
    CVersion(bench);
    bench.endBenchmarking();

    bench.saveMatlabGraph("arrexpr1.m");

    return 0;
}
Beispiel #2
0
void versionProcessor::setProcessor(const QString& versionString) {

  if (processor_) {
    delete processor_;
    processor_ = NULL;
  }

  const CVersion version(versionString);
  if (version > CVersion("0.9.2.16")) {
    processor_ = new versionProcessor_current;
  }
  else {
    processor_ = new versionProcessor_0_9_2_16;
  }
}
Beispiel #3
0
int CUpdator::Check()
{
	//get local version
	CVersion local = GetLocalVersion();
	//get remote version
	CVersion remote=GetRemoteVersion();
	//remote is empty,so return
	if (remote ==CVersion())
	{
		LOG(_T("remote version error."));
		//notify l
		DWORD res = 4;
		Event loading(E_UPDATE_OVER,(void*)this,0,res);
		Notify(loading);
		return false;
	}
	//check version
	bool need_update = CheckVersion(local,remote);
	return need_update;
}
Beispiel #4
0
void CFirstScene::OnInit()
{
	// メインメニュー
	m_Select = new Cf3Select;
	m_Select->SetPos(80,80);
	SetMenu();
	m_TextTitle = new CTextDIB32;
	m_TextTitle->GetFont()->SetSize(32);
	m_TextTitle->GetFont()->SetColor(0xffffff);
	m_TextTitle->GetFont()->SetBackColor(0x303030);
	m_TextTitle->GetFont()->SetText("ふにゃさん");
	m_TextTitle->UpdateText();
	// ナビゲーション
	f3Navi.Clear();
	m_TextNavi.Set(new CTextDIB32);
	{
		string navi="  TokioSoft ふにゃさん";
		char strbuf[256];
		navi += " 著作権:美文(ときお)";
		sprintf(strbuf," バージョン:%s",CVersion().GetVersion());
		navi += strbuf;
		sprintf(strbuf," %sを押してスタート",f3Input.GetKeyName(F3KEY_PAUSE));
		navi += strbuf;
		m_TextNavi.text->GetFont()->SetText(navi);
	}
	m_TextNavi.Update();
	f3Navi.Add(&m_TextNavi);
	m_TextDemo.Set(new CTextDIB32);
	m_TextDemo.text->GetFont()->SetText("");
	m_TextDemo.Update();
	f3Navi.Add(&m_TextDemo);
	// リプレイ関係
	f3Replay.Enter();
	// その他
	m_Icon = ResourceManager.Get(RID_MAIN);
	theApp->GetBGM()->Play(BGMN_TITLE);
	CGameScene::m_bTest = false;
}
Beispiel #5
0
CVersion operator-(const CVersion&l,const CVersion& r)
{
	return CVersion(l.m_marj-r.m_marj,l.m_subj-r.m_subj,l.m_ssubj-r.m_ssubj,l.m_sssubj-r.m_sssubj);
}