text
string
size
int64
token_count
int64
#include "mainwindow.h" #include <QFileDialog> MainWindow::MainWindow(QWidget *parent): QMainWindow(parent) { setupUi(this); tabWidget->removeTab(0); } void MainWindow::changeEvent(QEvent *e) { QMainWindow::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: retranslateUi(this); break; defau...
1,162
423
// // HouseBlend.cpp // Decorator Pattern // // Created by Kevin Lee on 2/13/18. // Copyright © 2018 Brian Arnold. All rights reserved. // #include "HouseBlend.hpp" std::string HouseBlend::getDescription() const { return "House Blend Coffee"; } double HouseBlend::cost() const { return 0.89; }
309
121
// Example code from VX Works #ifndef CPU // DQ: changed defalt from Sparc to PPC // #define CPU 10 #define CPU 91 #endif #include "vxWorks.h" #include "taskLib.h" #include "vxwSemLib.h" // Control the number of creatures in the pond #define MAX_FLIES 5 // The initial number of flies #define MAX_FROGS 2 // Same...
9,204
3,479
// pbpolys.cpp - basic operations with vertices and polygons // // This file is a part of PolyBoolean software library // (C) 1998-1999 Michael Leonov // Consult your license regarding permissions and restrictions // // fix: 2006 Oct 2 Alexey Nikitin // PLINE2::Prepare / left middle point from 3 points on the s...
10,078
4,542
/* * Animation bone header * * This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns) * See "SoftPixelEngine.hpp" for license information. */ #ifndef __SP_ANIMATION_BONE_H__ #define __SP_ANIMATION_BONE_H__ #include "Base/spStandard.hpp" #include "Base/spInputOutputString.hpp" #inclu...
5,709
1,435
#include <algorithm> #include <iostream> #include <vector> #include <chrono> #include <random> #include <tuple> #include <utility> #include <queue> #include <cstdio> #include <iomanip> const int dr[4] = {-1, 1, 0, 0}; const int dc[4] = {0, 0, -1, 1}; int N, M; std::vector<std::vector<int>> board, conn, tunnel; std::...
5,497
2,451
#ifdef ONLINE_PLAY #include "ctable.h" #include "define.h" #include "ui_ctable.h" CTable::CTable(QWidget *parent) : QWidget(parent), ui(new Ui::CTable) { ui->setupUi(this); ui->tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); setWindowTitle(tr("Tables list")); setAttribute( Qt::WA_Qu...
2,304
963
#include "3d/Base.h" #include "3d/C3DScene.h" #include "3d/C3DVector3.h" #include "3d/C3DRenderNode.h" #include "3d/C3DCamera.h" #include "3d/C3DLight.h" #include "3d/C3DSprite.h" #include "3d/C3DStaticObj.h" #include "3d/C3DBatchModel.h" #include "3d/C3DMaterial.h" #include "3d/MaterialParameter.h" #include "3d/C3DRe...
13,245
5,137
#include "stdafx.h" #include "DropSourceAction.h" DropSourceAction::DropSourceAction() {} DropSourceAction::~DropSourceAction() {} void DropSourceAction::FinalRelease() {} STDMETHODIMP DropSourceAction::get_Effect(UINT* p) { if (!p) return E_POINTER; *p = m_effect; return S_OK; } STDMETHODIMP DropSourceAction:...
687
288
#include <bits/stdc++.h> using namespace std; double T=-999999,D=-999999,H=-999999; double dohum(double tt,double dd){ double ee=6.11*exp(5417.7530*((1/273.16)-(1/(dd+273.16)))); double hh=(0.5555)*(ee-10.0); return tt+hh; } double dotemp(){ double ee=6.11*exp(5417.7530*((1/273.16)-(1/(D+273.16)))); double hh=(0.5...
991
659
#include "pch.h" #include "depth.h" #include "draw_device.h" #include "graphics.h" #include "matrix.h" #include "matrix_stack.h" #include "palette_data.h" #include "shader.h" #include "sprite_data.h" #include "sprite_type.h" #include "target_base.h" #include "texture.h" #include "texture_view_base.h" #include "transfor...
76,327
24,693
#include <stdio.h> #include <malloc.h> #include <string.h> #include "piXmlLogger.h" namespace piLibs { piXmlLogger::piXmlLogger() :piLogger() { } piXmlLogger::~piXmlLogger() { } static void printHeader(FILE *fp, const piLogStartInfo *info) { fwprintf(fp, L"<?xml version=\"1.0\"?>\n"); fwprintf(fp, L"<?xml-stylesh...
2,425
1,098
#include <iostream> #include <map> using namespace std; int main() { int qtdI, qtdP; string s, idioma; map<string,string>m; cin >> qtdI; cin.ignore(); while(qtdI--) { getline(cin,idioma); getline(cin,s); m.insert(make_pair(idioma,s)); } cin >> qtdP; cin.ign...
481
194
/*! @file Forward declares `boost::hana::Type` and `boost::hana::Metafunction`. @copyright Louis Dionne 2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FWD_TYPE_HPP #define BOOST_HANA_FWD_TYPE_HPP #i...
14,781
4,746