blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
563e94c17e0931f7f05a41ba3d2b339c80ada9e6 | dd70ebdba85a0c85c56da2a20540d82b4a4419b8 | /Qtchart_kai/controller.h | 431fed8d2263e129eff66ae2c6cb502a40c94f06 | [] | no_license | tiny138/ggwpQt | a91d3b3f4ed10529a2ae734ad4038a75a1926676 | 917e237c605dd3200dc17e88e7404d61bec6f22e | refs/heads/master | 2023-02-17T18:12:43.887202 | 2021-01-19T14:18:51 | 2021-01-19T14:18:51 | 330,714,098 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 496 | h | controller.h | #pragma once
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <QObject>
#include <QThread>
#include "worker.h"
class Controller : public QObject
{
Q_OBJECT
public:
explicit Controller(QObject *parent = nullptr);
~Controller();
void start();
signals:
void startRunning(); // 用于触发新线程中的耗时操作函数
public slots:
void... |
3233abb5784e69b2638ca3d261d8cede3d00e80a | 2cbd955a3448b1b6ccb6e29f4104ea0b1fd13971 | /FieaGameEngine/source/UnitTests/UnitTests_PC/DatumTest.cpp | 7b4c4740102b3cdd50a66f9cef9049e7b286f3ad | [] | no_license | Poltergust/FieaGameEngine | e57ed440b4ce4c0d142ab32862308b6fe25a5d4f | a38019300b612a0606ad799a1983966a434585c3 | refs/heads/master | 2016-09-06T16:55:44.106021 | 2015-07-28T19:55:43 | 2015-07-28T19:55:43 | 39,853,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,137 | cpp | DatumTest.cpp | /* Generated file, do not edit */
#ifndef CXXTEST_RUNNING
#define CXXTEST_RUNNING
#endif
#define _CXXTEST_HAVE_STD
#define _CXXTEST_HAVE_EH
#include <cxxtest/TestListener.h>
#include <cxxtest/TestTracker.h>
#include <cxxtest/TestRunner.h>
#include <cxxtest/RealDescriptions.h>
#include <cxxtest/TestMain.h>
bool suite... |
12ab4d347d491d560ff64eeb7b8618f68674ee0c | dc335c41a8e0ac05a7bf18385898c5da5731ee43 | /Heynihao's Standard Code Library/source/coldwater/Mo's_Algorithm/Mo2.cpp | 1a566b22f48c94ce2c50a573c4cef50035df3e26 | [
"MIT"
] | permissive | ShinriiTin/CodeLibrary | d8ab4389c0dc90d137dc474ed68e759daee8a37f | 46454886c0e7c05267ac97b2a501d46fd7b8b1ee | refs/heads/master | 2021-08-14T11:30:45.672040 | 2017-11-15T14:09:35 | 2017-11-15T14:09:35 | 107,625,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,801 | cpp | Mo2.cpp | #include <bits/stdc++.h>
#define MAXN (40010)
#define MAXM (100010)
#define MAXB (16)
struct qnode{ int u, v, id;}query[MAXM];
int BLOCKSIZE;
int n, m, now;
int col[MAXN], bel[MAXN], dep[MAXN];
int dfn[MAXN], tot, stack[MAXN], top, blockcnt;
int f[MAXN][MAXB], ans[MAXM];
int cnt[MAXN];
bool inans[MAXN];
... |
516c9c177f8f29abedf0837a350199c57b3fb50c | 874ca873f1e697ff69df044a8cdd8df3c7d53d2b | /LeetCode/evaluate-reverse-polish-notation/main.cpp | 9f10681b0c70722b00e00329f5046e3814f875d6 | [] | no_license | cheenng/LeetCode | cd23ad9f2b1e4da0d1fbfc95ebf4ed3343a9336d | 029bb089d65f5fbc24fc00e3c82468dc25630070 | refs/heads/master | 2020-03-27T11:36:38.737360 | 2016-03-14T13:58:17 | 2016-03-14T13:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | cpp | main.cpp | #include <vector>
#include <string>
#include <iostream>
#include <sstream>
using namespace std;
class Solution {
public:
int evalRPN(vector<string> &tokens) {
int p = tokens.size();
return eval(tokens, p);
}
private:
int eval(vector<string> &tokens, int &p)
{
p--;
stri... |
9104734aa2ffd0cd9ace07007f53e92c72d53760 | 895d8854295c00b886375ea78a289a826902248a | /test/mangling.cpp | c604083ca8b9383ae484ef997ac319c9414017e9 | [] | no_license | awgn/pds | d3ba6d07066a0a0a971e7b0a9a51fb4f6e20c995 | d690514b700bb5725292970a5e42512693d61e1f | refs/heads/master | 2020-04-17T02:24:24.146407 | 2017-07-11T17:10:48 | 2017-07-11T17:10:48 | 36,006,555 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,122 | cpp | mangling.cpp | #include "pds/tuple.hpp"
#include "pds/hash.hpp"
#include "pds/range.hpp"
#include "pds/sketch.hpp"
#include "pds/reversible.hpp"
#include "pds/cartesian.hpp"
#include "pds/mangling.hpp"
#include "pds/hyperloglog.hpp"
#include <pcap/pcap.h>
#include <iostream>
#include <random>
#include <yats.hpp>
#include <netinet... |
221da295bbf21d452f55518e094fd3298d585899 | 5f2aca211d00cfd30a6a67c17ceff561b7d0a752 | /CPP/week7/binaryFileReadWrite.cpp | 1256409b4ebe4da559247926f594095e24be0b82 | [] | no_license | muyanbiao/program_design_and_algorithm | 5ffddf290bb9072074259d7c2c82af1930c1fc8b | e445ab2c9e1e79aee7a0db4270cce982a9786457 | refs/heads/master | 2020-04-14T10:06:38.858722 | 2019-02-16T15:18:02 | 2019-02-16T15:18:02 | 163,777,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | binaryFileReadWrite.cpp | #include <iostream>
#include <fstream>
using namespace std;
class CStudent
{
public:
char szName[20];
int nScore;
};
int main() {
CStudent s;
ifstream inFile("students.txt", ios::in|ios::binary);
if (!inFile)
{
cout << "error" << endl;
return 0;
}
while (inFile.read((char *)&s, sizeof(s))) {
int nReade... |
c1cf3f43f6fa92bfe8af35a3707ce4d1a4ad92e1 | b974f048890d26044d05f87e7dee2fdacf9417e8 | /si.cpp | c1d33ca914c5f4d47523ccd0d386d157de8e7583 | [] | no_license | jkpawlowski96/Mouse | 60a26edd806e299c6039cd691b8d9c8bcd1578d7 | e9ade090bcef600a5220e0a12210b30f0b469d65 | refs/heads/master | 2023-04-08T01:45:11.129678 | 2021-04-13T16:43:01 | 2021-04-13T16:43:01 | 343,504,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | si.cpp | #include "si.h"
SI::SI()
{
}
SI::~SI(){
}
Task SI::Call(SensorData sensorData)
{
return Logic(sensorData);
}
Task SI::Logic(SensorData sensorData){
return RandomTask(sensorData);
}
Task SI::RandomTask(SensorData sensorData){
int n = rand() % 100;
if(sensorData.wallDetected || n>=50 ){
vec... |
9ee2411e652ba13126bcedab55acc01654cd2158 | 1ba1bdd96fa3229f0059b98c405490ce61eba708 | /Density_Functions_2D/Intersection_Functions/Intersection_Area.cpp | a2acb091260bbf138c0d81211477cf909600ce57 | [] | no_license | Phil-Smith1/Density_Functions_2D | bea304f5005ffda4351165511c3f278628863a22 | cfbbb89683150c3af3dea004d2fe485f11e03673 | refs/heads/master | 2023-06-12T18:34:54.160577 | 2021-07-09T11:51:27 | 2021-07-09T11:51:27 | 304,627,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,407 | cpp | Intersection_Area.cpp | #include "Line_Circle_Intersections.h"
#include "Irregular_Sector_Area.h"
using namespace std;
double Intersection_Area ( Circle const& c, vector<Edge>& edges, vector<P2> const& vertices )
{
double volume1 = 0, volume2 = 0, volume3 = 0, volume4 = 0, volume5 = 0, volume6 = 0;
int intersection_1 = Line_Cir... |
b87309d8a5b2d3b38c444e57cbcfad6adc63fb38 | 39ca46a09af98bd028ede785ea0aaeee55524dc6 | /Dxf2VG/Dxf2VGFile.cpp | d9f397d46999594612c37e6e18a4f0151463974e | [] | no_license | shuangyou/test-project | f479c9e80ddd520e14da8fa4e7459a1e7a34b4e8 | c08070d3b1658e281b90ef3e6714f22b62f42248 | refs/heads/master | 2021-01-10T19:28:37.309051 | 2014-07-15T06:33:57 | 2014-07-15T06:33:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,897 | cpp | Dxf2VGFile.cpp | #include "stdafx.h"
#include "Dxf2VGFile.h"
#include "mgbasicsp.h"
#include "mgshape.h"
#include "mgshapeT.h"
#include "mglayer.h"
#include "MgJsonStorage.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
Dxf2VGFile::Dxf2VGFile()
{
m_nLayerCount = 0;
m_nVertex = 0;
m_pShape = NULL;
... |
64dc833358cd48a9a34ed35d1aee1d473f8e5064 | c04695f4b06a85033ae45032f8930789a1b36452 | /src/transfinite/surface-spatch.cc | 6e1512a22b81c8d74cf4e5a56fdfd4bb78dde07f | [] | no_license | GridEyes-2010/transfinite | 81a6a5e84019f183b87815739f95afc9ef61fb76 | 5da226dc09606986b0c0b5140fa3860aeac4a2e0 | refs/heads/master | 2022-12-06T10:21:41.579391 | 2020-08-26T09:30:51 | 2020-08-26T09:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,203 | cc | surface-spatch.cc | #include <algorithm>
#include <cmath>
#include "domain-regular.hh"
#include "parameterization-barycentric.hh"
#include "ribbon-dummy.hh"
#include "surface-spatch.hh"
namespace Transfinite {
using DomainType = DomainRegular;
using ParamType = ParameterizationBarycentric;
using RibbonType = RibbonDummy;
SurfaceSPatch... |
a42964b05bb4b03c35cb10b0fb7bac22e5429ffd | ee6e45359c5346f0292e7aed2da2c1ce8099ff5c | /aigamemanager.h | b35876cfd289d9ba88f20e8ac3f5685d8d8addc2 | [] | no_license | denisneuling/connectFour-qt | 4992b39dbad4500ca55aff14abb4811ca02f5c3d | d73fc0e5d8e938ccf4104cbbbd8dfb3dce06e273 | refs/heads/master | 2021-01-13T01:55:59.303387 | 2014-09-30T20:44:35 | 2014-09-30T20:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | h | aigamemanager.h | #ifndef AIGAMEMANAGER_H
#define AIGAMEMANAGER_H
#include <memory>
#include "gamemanager.h"
#include "minmax.h"
/*!
* \class AIGameManager
* \brief ai specific gamemanager
* \details AI specific gamemanger that handles the ai players turn
*
* \author Roland Luckenhuber
* \author Denis Neuling
*/
... |
f378ef97b59756958154cfdcf591cb8e9c42ace3 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/6f/eda2f8edffc3ae/main.cpp | 59ef2f9786f12472da5bd54f5d46bc5cba054c28 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | cpp | main.cpp | template<class T> struct A {
struct B {};
};
template<> struct A<int> {
struct B {};
};
class C {
template<class T> friend struct A<T>::B;
};
|
342507bc6c87decf1c97b6a972a35bc90ba7643b | 08884372e55adef3ae9a0b87979b55a8f23c5d2a | /std/name_lookup.H | 0844f41570c3599a430025f7d6875efe95a7b511 | [] | no_license | Chris95Hua/jot-lib | 3aa0ea2068f6f321c2dbf24d75e47dc217d9665a | 662c2e4158f0ddad807ed833a8d4359bb237ad00 | refs/heads/master | 2021-01-10T22:06:50.711655 | 2015-04-29T19:04:06 | 2015-04-29T19:04:06 | 33,934,465 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,328 | h | name_lookup.H | /*****************************************************************
* This file is part of jot-lib (or "jot" for short):
* <http://code.google.com/p/jot-lib/>
*
* jot-lib is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Sof... |
a8de54830496aa31194843a66c5b309d0087bf44 | 7551327034b8c57285cbe70163490f6582c4ed26 | /extension/src/dpoCInterface.cpp | 407bc8c7b459c00f1f0737ea2e7797f0ad51c57a | [
"BSD-2-Clause"
] | permissive | rahulvramesh/RiverTrail | 72358d6929da71cc25baf215629b2ed6351f0abf | 92c6c52a5f90ded246ca00d385d2c7a79063694a | refs/heads/master | 2021-01-22T09:56:18.277419 | 2014-10-06T21:38:04 | 2014-10-06T21:38:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,530 | cpp | dpoCInterface.cpp | /*
* Copyright (c) 2011, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of c... |
4f102d778d459edc83c830cd45e809b9a39b2bc5 | 46a37100463aaeeec4d1d78ea3b792d61cd05679 | /Direct3D_025/cPlayerUI.h | 78c572dc973e521ee2ec9b239ba40d65f8b677b0 | [] | no_license | NaudhizFehu/DirectX-Tera | 3f854236bb91d01fd328d045fd36d064b8c8b840 | 35ba4cda4ab6ea826c6652f609144f1f0faad501 | refs/heads/master | 2021-06-10T11:42:44.921886 | 2021-05-28T05:14:47 | 2021-05-28T05:14:47 | 188,834,008 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,866 | h | cPlayerUI.h | #pragma once
//test주석
class cPlayerUI
{
private:
int m_nQuestNum;
bool m_bBossMeet;
bool m_bQWindowCenter_firstCheck;
bool m_bQwindowCenter_On;
bool m_bQwindowRight_On;
bool m_bKeyWindow_On;
//키설명창
LPD3DXSPRITE m_pKeyWindow_Sprite;
LPDIRECT3DTEXTURE9 m_pKeyWindow_Texture;
D3DXIM... |
1e24e8c68d68da89b7ba9977d3f6f582f2b61d8b | db21b28ec9e64c33cf8f2a725d56cd8585720a91 | /leetcode_1743.cpp | 625f19fec71c6ca0e57fc6e87ad5aed41d2e52cb | [] | no_license | 2018hsridhar/Leetcode_Solutions | afb6a88f2b1075af3f6339956e499f228cde0ba3 | f6b356ff5393113d0a6cc29118e6ef6c45a4f0ee | refs/heads/master | 2023-08-30T22:43:23.308370 | 2023-08-29T04:15:31 | 2023-08-29T04:15:31 | 78,995,027 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,876 | cpp | leetcode_1743.cpp | /*
1743. Restore the Array From Adjacent Pairs
URL = https://leetcode.com/problems/restore-the-array-from-adjacent-pairs/
Always given at least two elements too for visitations!
Your code works, but runs into a TLE
-> need a more effiicent solution
RIP
40/46 test cases pass here
*/
class Solution {
pub... |
8608d4d9ed8192a233810373129011c7316be4c0 | 638c4794acbc4245c3dcd7d073e2dfdeb9eaed0d | /算法提高/ADV-187 算法提高 勾股数.cpp | 4e4295eb24cd8cae51a34101d24cebb66a8e3d29 | [] | no_license | SuperChenSSS/Lanqiao | fed1224775769cdef3f392a9bf873fee70bbdd13 | 6e662cc2411cd4803d32b684a435be2edbc45e15 | refs/heads/master | 2021-01-19T06:49:53.860313 | 2017-04-06T01:47:45 | 2017-04-06T01:47:45 | 87,502,263 | 0 | 1 | null | 2017-04-07T03:53:05 | 2017-04-07T03:53:05 | null | UTF-8 | C++ | false | false | 756 | cpp | ADV-187 算法提高 勾股数.cpp | ADV-187 算法提高 勾股数
问题描述
勾股数是一组三个自然数,a < b < c,以这三个数为三角形的三条边能够形成一个直角三角形
输出所有a + b + c <= 1000的勾股数
a小的先输出;a相同的,b小的先输出。
输出格式
每行为一组勾股数,用空格隔开
样例输出
例如,结果的前三行应当是
3 4 5
5 12 13
6 8 10
#include <iostream>
using namespace std;
int main() {
for(int i = 1; i <= 333; i++) {
for(int j = i+1; j <= 666; j++) {
... |
e14da452e22dc52aac990c15b2c6d7405fde94bf | 48105eddec7568fe691d4519cb472176441fbbfa | /GameDev-CSU-2015-Project/Core/ClassImplementations/Other/proceduralBackground.cpp | ee929b1f9042c50f9cc837c0fe42843e2b486053 | [] | no_license | Esseh/Misc | 39672e669128b753d3d3887fc50a17b9090b3461 | 87f10b54a8909fa8ebdf3f432b338c8fac194ede | refs/heads/master | 2020-04-07T07:42:49.786284 | 2017-05-24T02:28:52 | 2017-05-24T02:28:52 | 60,319,114 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,575 | cpp | proceduralBackground.cpp | proceduralBackground::proceduralBackground(){
++n;
makeBackground();
s.setTexture(t);
if(n==1){
proceduralBackground*second = new proceduralBackground();
second->s.setPosition(s.getPosition().x + s.getGlobalBounds().width,0);
backgrounds.push_back(second);
}
}
void procedura... |
f5c6fb1c666a3ce09c7aae7c4588688f12a1157e | bcf138c82fcba9acc7d7ce4d3a92618b06ebe7c7 | /gta5/0xA43D5C6FE51ADBEF.cpp | ca85e07a8d9eef8005818f89715ed248ab71f290 | [] | no_license | DeepWolf413/additional-native-data | aded47e042f0feb30057e753910e0884c44121a0 | e015b2500b52065252ffbe3c53865fe3cdd3e06c | refs/heads/main | 2023-07-10T00:19:54.416083 | 2021-08-12T16:00:12 | 2021-08-12T16:00:12 | 395,340,507 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | cpp | 0xA43D5C6FE51ADBEF.cpp | // fmmc_playlist_controller.ysc @ L93311
void func_496()
{
var uVar0;
var uVar1;
var uVar2;
MISC::_GET_WEATHER_TYPE_TRANSITION(&uVar0, &uVar1, &uVar2);
MISC::SET_OVERRIDE_WEATHER("clear");
func_462(4, 0);
MISC::_CLEAR_CLOUD_HAT();
} |
f2c4e0ae065ad6919b12bed8dc6565fcb5c89382 | a7f7a862e53ebc6e7095eabaa89e1997ce4b4eae | /Cpts223/Prog01/prog01.cpp | 5ae8522d87315b80c150be22ded705ec045be57c | [] | no_license | MichaelJDG/computer-science | 8e56d70362a40250dccfb6cade15ccd391c1b88b | 5a4a4adc4d890585fba156f05aeec7b297e05e11 | refs/heads/master | 2021-01-19T06:14:01.613166 | 2017-08-17T18:02:18 | 2017-08-17T18:02:18 | 100,631,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,690 | cpp | prog01.cpp | //****************************************************************************
// Author : Michael Gutierrez
// Course Title : Advanced data structures in c++
// Course Number : Cpts 223
// Class Meets : M W F/ 12:10 - 1:00
// Prof Name : Aaron Crandall
// Assignment Number : #1
// Due Date : 9-22-16
// Possible Point... |
298135f57b5f025a93a6d9b97daba9d9033e2b02 | a4ac12e04c3c864c1cb53e90ea167a7d200244d7 | /LeetCode/0207_Course_Schedule.cpp | fd20dfe22310aae73b2005daae5d37215bb0b621 | [] | no_license | PengJiaqiao/CampusRecruitment_Diary | 9f21fb81eda47e441f5699b4a3defa94b2a53870 | 37189a7f79615e470ebc6385a40888513febe168 | refs/heads/master | 2020-06-16T01:02:43.368296 | 2019-11-03T12:54:32 | 2019-11-03T12:54:32 | 195,438,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,005 | cpp | 0207_Course_Schedule.cpp | #include <vector>
#include <queue>
#include <unordered_map>
using namespace std;
class Solution
{
public:
bool canFinish(int numCourses, vector<vector<int>> &prerequisites)
{
vector<vector<int>> graph(numCourses);
for (vector<int> prerequisite : prerequisites)
graph[prerequisite[0]]... |
3b4407731be93c3c0563e7dde8a2325a403cd1e4 | 90f7de53d9a825c14e0e61d0ec03326ca245c51a | /Score.cpp | 03cde4a8f5e4c634308c124ca3e62c1336d7e5b7 | [] | no_license | starrykss/CPP_MatchThreePuzzleGameProject | 977524568f40757020ea628747fa7fcd62203b5c | b595488f8d99ce49f863d625888ecd29512f9a11 | refs/heads/main | 2023-02-26T18:14:09.538391 | 2021-02-02T02:56:11 | 2021-02-02T02:56:11 | 335,148,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | Score.cpp | #include "Score.h"
#include "Consts.h"
void observe(Score* score, const int& value)
{
score->setText(("Score :" + std::to_string(value)).c_str());
}
Score::Score(QGraphicsScene* scene, Values* values)
{
scene->addItem(this);
setX(scene->sceneRect().width() / 2 - Consts::BOARD_ITEM_SIZE * Consts::BOARD_L... |
ea3a30fda00a736f0dd49893ed61129fb7a076eb | cd2172a4cf9feefd4c890c704cf8b02d084bf1a9 | /detectcycledirectedgraph2.cpp | cd7f3805d259d67dfc516630d6dbb28b8057045b | [] | no_license | subhradeepnag/Graph-Questions | 339a36f9946e0ec067a282257aa31617a7a24ede | 88141b8760ca9e98a0888b4ee81d9eea75a5b0cd | refs/heads/main | 2023-05-26T22:13:43.868550 | 2021-06-09T15:42:51 | 2021-06-09T15:42:51 | 375,407,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,006 | cpp | detectcycledirectedgraph2.cpp | #include<bits/stdc++.h>
using namespace std;
map<int,bool>recStack;
map<int,bool>visited;
map<int,list<int>>adj;
void addEdge(int u,int v)
{
adj[u].push_back(v);
}
bool dfs(int v)
{
if(visited[v] == false)
{
visited[v] = true;
recStack[v] = true;
list<int>::iterator i;
fo... |
91d9791a07a6f700bece289cb158bb261b5883d1 | 130df0c47d7cfc8c3cacb78fd3ad46802ccbe296 | /Fibonacci/Fibonacci_recursion.cpp | a9d06a0354d1541c8b2469b15f459486382346a7 | [] | no_license | chenwhql/Fibonacci | 9d24d5b6ff880192a0fae59d4f138aec5d40af13 | 9d3a989adee9804a8db04d46d8fdf9c01bb5bd6e | refs/heads/master | 2021-01-12T14:26:27.768081 | 2016-10-06T05:15:36 | 2016-10-06T05:15:36 | 70,063,708 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 571 | cpp | Fibonacci_recursion.cpp | #include<cstdio>
#include<ctime>
using namespace std;
typedef unsigned long long ull;
//µÝ¹éËã·¨
ull fibonacci(int n)
{
if (n == 1 || n == 2)
return 1;
else
return fibonacci(n - 1) + fibonacci(n - 2);
}
int main()
{
int n = 0;
double t_start = 0.0, t_end = 0.0;
ull rlt = 0;
printf("Fibonacci recursion meth... |
950857ac0b2d4cbac84932713f7936a655cc2dd2 | fa696b8a9c9a25a3bf09051e11a916692f55b631 | /src/libClustering/ConvexHullModel.hpp | 552521c0f716190488716ca6d899cca6cd6216d5 | [] | no_license | bsc-performance-tools/clustering-suite | e9fae9383ddc4722c887ceb197825a385219e9b0 | 1c8f05e2677295e9d9cf29b9d7ce6b8ab6cf5f1d | refs/heads/master | 2021-06-08T22:05:30.372437 | 2019-09-20T07:16:22 | 2019-09-20T07:16:22 | 110,991,857 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,301 | hpp | ConvexHullModel.hpp | /*****************************************************************************\
* ANALYSIS PERFORMANCE TOOLS *
* ClusteringSuite *
* Infrastructure and tools to apply clustering analysis to Paraver and *
* ... |
9a25c95635051649f048bee03d175ab73dea50a2 | 3ce0249b1955928f1eaa60cdd0a3dc2fd4d47f01 | /Char engine/src/main.cpp | 207f3b1f029a10b935c6b9528f76ee4291c07035 | [] | no_license | ha-drid/Char-engine | 68ad2ff118e8a3b3fe1e1afd70b672ac7370e8f2 | 1952074faa112c98f208596a30189bfab738fffe | refs/heads/master | 2023-03-14T04:37:43.179504 | 2021-03-10T12:00:37 | 2021-03-10T12:00:37 | 343,164,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cpp | main.cpp | #include <iostream>
#include <stdexcept>
#include "gl.h"
#include "GLFW/GLFW.h"
#include "GLFW/Window.h"
int main()
{
try
{
GLFW glfw;
Window window(700, 700, "Char engine");
window.loop();
}
catch (std::runtime_error& e)
{
std::cout << "Except:" << e.what() << std::endl;
return -1;
}
catch (std::exce... |
446ca6c576443d1d9f62a73f792ee6cb33dc0c22 | c5b8ac07f5bf901cbc1e6e23d9b828aebe698661 | /yangmin/server/ManageAddr.h | cf89cbc72e3f080daadd492a8d1a894aaa40106d | [] | no_license | yangminluck/recruitment | 86125c3e285cea8ab23637d3daae55a05040f216 | ac5917796f5d60b3e49a1db65381b66e81cf5819 | refs/heads/master | 2021-01-18T19:41:12.301426 | 2014-06-20T13:44:22 | 2014-06-20T13:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 988 | h | ManageAddr.h | #ifndef _ManagerAddr_Head
#define _ManagerAddr_Head
const char separator=',';
struct entryaddr //address entry data structure
{
entryaddr *next;
string name;
string mobile;
string address;
};
/*
class name:ManageAddr
funtion :manage the address entries
interfaces:void AddEntry();
... |
56a6d6db8e1dfb81c7f0c0941abf922f6aec8062 | e40e63199f08c3f1c45b46993222346fda1d02d7 | /Practica 5/build-Practica5-Desktop_Qt_5_12_9_MinGW_64_bit-Debug/debug/qrc_Pacman.cpp | afdec23856a79b2ce70a6c57bd274943f854f1ff | [] | no_license | laurazuluagaj/laboratorio | c705c6860829c1d16852ddd5fb90372ed636d750 | bcc3aec7c79fc1a1224f64b8d46cfe2435ba1774 | refs/heads/master | 2023-01-30T05:33:30.928887 | 2020-12-17T21:21:51 | 2020-12-17T21:21:51 | 299,508,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650,904 | cpp | qrc_Pacman.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.12.9
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsi... |
4f0bc754f092cfb924ac764e1babc58deef70821 | 46a4f9b9bb187904392e490e6ba83df6912f96e2 | /pathtracer_source/src/PathTracer.cpp | 5ff7413402d17ae8b936dee3ee1f64fedb521d55 | [
"MIT"
] | permissive | juliagviu/ComputerGraphics | b0b9cb25ff9cf4c6ec9fcce068692ea4bf16de21 | 14f7232343001dffcc57ae7356106ad50e78ee6a | refs/heads/master | 2020-09-09T16:10:38.910618 | 2020-01-21T18:09:40 | 2020-01-21T18:09:40 | 221,492,446 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,914 | cpp | PathTracer.cpp | //
// Created by serizba on 13/11/18.
//
#include <algorithm>
#include "PathTracer.h"
PathTracer::PathTracer(DirPoint o, DirPoint f, DirPoint l, DirPoint u, vector<Figure *>& scene, vector<PuntualLight>& lights) :
o(o), f(f), l(l), u(u), scene(scene), rd(), mt(rd()) , gen01(0,1), lights(lights) {
/* if (ab... |
d4294db8960a2e8ffc3c8443d4bfb77a16352823 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageResult.h | 5626dff6d1e2da3a8a4d9753a5547b52d6a54f23 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 2,849 | h | SendTextMessageResult.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class... |
0c0a9a14123a56d7c7b13e54afba6ebc534dcaf3 | 2ee65cbc547c920d6a9b28494a09c4fe72254549 | /dsl/lexer.cpp | 3024952fff05b36bb4ec4fb1eef5ee837dac7537 | [
"Apache-2.0"
] | permissive | PChursin/newtemplet | 96988f9b66f8bc7c27f402a499313c033b2521ee | e9d475373d688f85b96aacc0e205ede1650ec9f7 | refs/heads/master | 2021-06-13T22:33:17.583391 | 2017-03-28T17:23:31 | 2017-03-28T17:23:31 | 86,347,212 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,273 | cpp | lexer.cpp | #include <string>
using namespace std;
static string str;
static string lastlexem;
static bool is_unget;
static int index;
static int len;
enum State {S,A,B,C,D,P,F,E};
State Sta;
void lexinit(string&s)
{
str = s;
index = 0;
is_unget = false;
lastlexem.clear();
len = str.length();
}
bool getlex(string&lex)
{
... |
e0fa33f66b09a304726404a6358304a5a5800085 | 4c627767fff720ed59f4741fb49fa8f4d0b202af | /BV/bv32/tables.cpp | f4e7d84ed6e02a4ace7fbe5d4949409f4746b12f | [
"Apache-2.0"
] | permissive | ATeamMac2014/BV | 237bea11bd5582331c98fc7b7951caec773cb210 | e47b67986992994db7d122cf556b9b2ca35c4023 | refs/heads/master | 2020-05-07T13:01:20.094838 | 2019-04-10T09:15:32 | 2019-04-10T09:15:32 | 180,531,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,828 | cpp | tables.cpp | /*****************************************************************************/
/* BroadVoice(R)32 (BV32) Fixed-Point ANSI-C Source Code */
/* Revision Date: November 13, 2009 */
/* Version 1.1 ... |
e3ae4a64390816c13682b303d892ed902a9c856f | 8a07e8f18d884b9ee4d723f834e40068aab325fe | /src/GUI/Urna.cpp | 580b6803802aacdff34350d755c9df9030cf3a64 | [] | no_license | ECCIUCRLQ/proyecto-del-curso-10-4 | b033003ec67655796f1ea522c030ff8428dbf44d | d4a443172f01a15138dc56723a6dc0065f774a5f | refs/heads/main | 2023-06-20T19:18:23.810825 | 2021-07-28T09:11:53 | 2021-07-28T09:11:53 | 357,366,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,215 | cpp | Urna.cpp | #include "Urna.hpp"
#include <stdexcept>
#include <thread>
Urna::Urna(const std::string& padronIp, const std::string& padronPort,
const std::string& voteIp, const std::string& votePort,
const std::string& serverPort) {
// File System
this->hd = new HardDrive(HD_SIZE);
this->fs = new FileSyst... |
03c3cdf986bcb1666ef89280b80e8d633b2b4b9d | eb1f83367bb43fc7b3f8a6c677293f3141180d5b | /opencv_cpp/M_7.2_累计概率霍夫变换_API.cpp | ce3ac0b7e7ddabcdb4242c653604cac140c7d688 | [] | no_license | ywy0318/test_20210224 | e508d752c9d8debc48d834c279cb34f95aa9e2f7 | 7ee27484f1c780408ad3350a983919fb6da8a93a | refs/heads/main | 2023-03-11T05:38:30.156093 | 2021-02-24T15:14:05 | 2021-02-24T15:14:05 | 341,931,875 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,482 | cpp | M_7.2_累计概率霍夫变换_API.cpp | /*
累计概率霍夫变换:HoughLineP()函数
HoughLineP()函数,可以用来找二值图像的直线
C++:void HoughLineP(InputArray image,OutputArray lines,double rho,
double theta,int threshold,double minLineLength=0,double maxLineGap=0)
第一个参数 :需要8位的单通道二进制图像,可以将任意的源图像载入进来后由
函数修改成此格式后,再填到这里;
第二个参数:InputArray 类型的lines,经过调用HoughLineP函数后存储了检测到的线条
的输出矢量,每一条由具有... |
a561231dcaa96a40963f301dc81f3a754202d9bb | 8be5fe51e6cf1b7d635ad9c1951ec6a75ff1bdfd | /2.cpp | b0babe64c1938eab5b5abaa76b18c5b74d4ec408 | [] | no_license | CiQiong/36C- | 9d71c47325c64a04cdf00a8443042193e0b2c93c | aa9658167997b8f3d891fd8ce425e4291ac886bb | refs/heads/main | 2023-02-21T10:22:30.260069 | 2021-01-21T17:05:54 | 2021-01-21T17:05:54 | 327,316,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 99 | cpp | 2.cpp | #include <stdio.h>
int main(){
char x;
scanf("%c",&x);
printf("%c\n",x-'a'+'A');
return 0;
}
|
de52a5c9404904d0c0b68c619d848755ea541271 | 6a47b5f04c74ed475b632e6561a675135e3baa80 | /core/runtime/wavm/memory_impl.hpp | 32e8c536dd12dbe0f7c5dc68e057e8c27b66da8c | [
"Apache-2.0"
] | permissive | DiamondNetwork/kagome | 3f89afcc7432c7047b2ce2a3ef6bf7a6ee878423 | c018130a5595eeb69e439ea4695c7b7db1c7ee43 | refs/heads/master | 2023-08-05T01:19:31.739959 | 2021-10-08T14:01:45 | 2021-10-08T14:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,322 | hpp | memory_impl.hpp | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_CORE_RUNTIME_WAVM_IMPL_MEMORY_HPP
#define KAGOME_CORE_RUNTIME_WAVM_IMPL_MEMORY_HPP
#include "runtime/memory.hpp"
#include <boost/optional.hpp>
#include <gsl/span>
#include "common/buffer.hpp"
#include... |
d6b5e80624110be59ef90563881891be01052c2e | e5a248e5f7da9d9656e8ee98b9145fa7cfe35e87 | /2016/0714/test.cpp | b18c9e060adadc8cacb8faadfd882478391755db | [] | no_license | 3329/codes | 1e3ffb2675014c3f4166ad99bdf4f9292de126d2 | a5688faf876e98b5e0a386416ad4665ca2d09283 | refs/heads/master | 2022-11-30T17:25:30.553187 | 2016-12-19T07:51:48 | 2016-12-19T07:51:48 | 76,840,257 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,716 | cpp | test.cpp | #include <iostream>
#include <linux/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
using namespace std;
typedef uint32_t u32;
typedef uint64_t u... |
b2bca39d3a3c5f4fdeaaf13ca7aae4de2fa480b0 | a201ae1b5d4ff5c38748dd084418e9e3cc69ecca | /app/src/main/jni/SDTexture.cpp | 22e1e0455b5b20c0822f8cf997db60152a9c83fe | [] | no_license | mandalorethx/SortDemo | 7792d6d82beebff6d49b345c49f7172b1c5e5f3e | d73aa30551e07ffd44dc283e57b6a284200c1f40 | refs/heads/master | 2021-01-01T05:13:51.937231 | 2016-06-04T19:07:50 | 2016-06-04T19:07:50 | 59,339,731 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | SDTexture.cpp | //
// Created by matt on 5/22/16.
//
#include "SDTexture.h"
SDTexture::SDTexture()
{
}
SDTexture::~SDTexture()
{
}
bool32 SDTexture::Create(void* pInfo)
{
}
void SDTexture::Destroy()
{
}
void BindTexture()
{
}
bool32 SDTexture::LoadTextureFileTGA(const char* pszFileName, uint32* pWidth, uint32* pHeight, voi... |
d61c986f94210cdef559caf3d52a2e722124bafe | ff13a9f3fa9421ea24444558b48b3899c84281e0 | /main.cpp | 703a6d811cc190cf3b8d782ef21cca435d2499eb | [] | no_license | etkenned/Assignment4 | 33a1ae464117aee54fa9bcca26fc1f2d97cc530b | 750053ce997cdf68706478958f3b84572016947c | refs/heads/master | 2020-05-07T22:01:01.866176 | 2019-04-12T05:24:50 | 2019-04-12T05:24:50 | 180,928,432 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include "StartSimulation.h"
using namespace std;
int main(int argc, char** argv)
{
if(argc > 1) // checks for user input of file name
{
StartSimulation run = StartSimulation(argv[1]);
}
else
{
cout << "Please run the program again with a valid file... |
5b842f18a65e16798588b075aaad1399a6798692 | fb7bcba5725b90c50049f5c81f1b8568b187ce88 | /DBoW2/build/dependencies/install/include/DVision/ImageFunctions.h | 3e516795d0b54fd0b67704d0f41fb6b4ffb8d11a | [
"BSD-2-Clause"
] | permissive | stanchiang/constellation | 3f826ecf73f545270c9a6114d9aa404cfc21ecc7 | c99fdf78cd7589ccd2372d67de5d33839cef1fb1 | refs/heads/master | 2021-05-03T10:50:04.145921 | 2016-09-08T21:58:39 | 2016-09-08T21:58:39 | 65,751,116 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | h | ImageFunctions.h | /**
* File: ImageFunctions.h
* Project: DVision library
* Author: Dorian Galvez-Lopez
* Date: February 22, 2012
* Description: Several functions for images
* License: see the LICENSE.txt file
*
*/
#ifndef __D_IMAGE_FUNCTIONS__
#define __D_IMAGE_FUNCTIONS__
#include <opencv2/core.hpp>
#include <opencv2/imgproc... |
9f02c213afade539dfa5771fcc1a8284974f8ef3 | 5f5eb81e6abfe60a3c5aaf9fc2f05ce48abe88c8 | /alarm-e/ScreenshotDlg.h | bc7bb30f8e1867aefa57e115d99b67aa5cdc60a4 | [] | no_license | Elevista/alarm-e | b0c7de9d4da308ef24d5b94c0bb37c929892f6ee | c22e4be83da855cc741cb1d8d7771d4d8e32b748 | refs/heads/master | 2021-01-16T18:43:17.083034 | 2014-12-20T00:02:36 | 2014-12-20T00:02:36 | 26,124,318 | 2 | 0 | null | null | null | null | UHC | C++ | false | false | 1,158 | h | ScreenshotDlg.h | #pragma once
#include "fullscreendlg.h"
#include "dbconsumer.h"
// CScreenshotDlg 대화 상자입니다.
class CScreenshotDlg : public CDialogEx
{
DECLARE_DYNAMIC(CScreenshotDlg)
public:
CScreenshotDlg(CWnd* pParent = NULL); // 표준 생성자입니다.
virtual ~CScreenshotDlg();
// 대화 상자 데이터입니다.
enum { IDD = IDD_SCREEN_SHOT };
protec... |
3ff01a39b62037d34fe48d30692dacdd7f948a4a | aad4d33713e19bc899153efb3b9d72e3d118f6e6 | /src/Reads.cpp | adc470316fb8ae42ef6abcbf11ea6269fb0073d6 | [
"MIT"
] | permissive | mocklerlab/supersplat | 462d8751a760f95acd375388a65a5101c588ba94 | a1f254f2bc95a872dc69877252894cebba637585 | refs/heads/master | 2021-01-10T20:35:07.517480 | 2012-09-06T19:54:12 | 2012-09-06T19:54:12 | 5,694,132 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,904 | cpp | Reads.cpp | /*
* File: reads.cpp
* Author: Douglas W Bryant Jr
*
* Created on December 28, 2008, 11:41 AM
*/
#include "Reads.h"
using namespace seqan;
Reads::Reads(char* p_isFastaReadsFile) {
m_hShortReads = new __gnu_cxx::hash_map<const std::string, ShortReadStorageInfo>;
m_iTotalReads = new int(0);
... |
d392d83160f4a95462e179c6a237d3903c7b4171 | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_fusion_sequence_comparison.hpp | 413455ae6c6386c3ee58f4b619b4d26e027d541f | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48 | hpp | boost_fusion_sequence_comparison.hpp | #include <boost/fusion/sequence/comparison.hpp>
|
f9d61fa74efaa662a50427004340d34c6051cc6f | 955a86131d09b34891b0fed3096f54fd292fd9db | /src/OI.h | ee81bb25610520ee37af1252f7ef61b0e27bf342 | [] | no_license | Team4819/2018-Robot-Codebase | ee30afe021219832b4172469298c8f1d33c14baa | 5d8d518a542033afc9dc7ec4f6532022fbaa02b3 | refs/heads/master | 2020-03-09T07:59:59.668694 | 2018-04-08T20:21:04 | 2018-04-08T20:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,028 | h | OI.h | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
5883b46080d02cd89be8765049c27aa4395e71ad | 9058939a9c2c513fbe6c67c225ddf03c68198d08 | /POJ/2643.cpp | e40ad3ad98911a14a849b0074f4c79de6812dfd5 | [] | no_license | comzyh/ICPCcode | 7335123fcdd6607ef1d2ef289392f692294a28bb | 99acc36af5bd1e925ec0205a52f369f3c514ef08 | refs/heads/master | 2020-05-18T15:49:22.592994 | 2018-11-19T12:03:07 | 2018-11-19T12:03:07 | 12,371,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | cpp | 2643.cpp | #include <cstdio>
#include <cstring>
struct candidate
{
char name[100],party[100];
}cas[21];
struct party
{
char name[100];
int vote;
}pas[30];
int np;
int N,M;
inline void vote(char *pname);
inline bool is_independent(char *name);
int main()
{
int i,j;
scanf("%d",&N);
getchar();
char name[80];
for (i=1;i<=N;i+... |
edae0ef4590f9b85feb37963bf9d14a416decb26 | 91914b2fca90139fdfe550378f927a592240726a | /A_Domino_on_Windowsill.cpp | 84827fd875280edc36f212e38ba38e54e6458b3b | [] | no_license | Suhrid-Talukder333/Codeforces-Problems | 89d6804ed0579d0eea1547e0db776530c61fd582 | 9e936da6bac377b4cb9d0a9be52d937c31e8cd03 | refs/heads/master | 2023-05-29T15:20:19.470592 | 2021-06-21T10:13:16 | 2021-06-21T10:13:16 | 290,012,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cpp | A_Domino_on_Windowsill.cpp | #include<bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while(t--) {
int n, k1, k2;
cin>>n>>k1>>k2;
int a, b;
cin >> a >> b;
int ans1 = (k1 + k2) / 2;
int ans2 = ((2 * n) - (k1 + k2)) / 2;
if(ans1>=a && ans2>=b) {
cout <... |
bd11ce1025b7bcd0dfb0153aa95d70970569ff2e | e29ee4b29eb34cda63577ebac33bc105bb4d34b8 | /source/utils.cpp | 1bcbecdcdea9ae97840e4b37c506e6522b5024a8 | [] | no_license | joel16/3DShell | 5a7b737311452404a804b364bb4e6f8bb9432dda | 46515aff0f405b630d64f82f5d633a16841fd5db | refs/heads/next | 2021-06-05T05:56:57.929271 | 2021-04-11T20:51:41 | 2021-04-11T20:51:41 | 92,087,222 | 333 | 31 | null | 2021-04-11T20:51:41 | 2017-05-22T18:38:09 | C++ | UTF-8 | C++ | false | false | 978 | cpp | utils.cpp | #include <3ds.h>
#include <cstdio>
namespace Utils {
void GetSizeString(char *string, double size) {
int i = 0;
const char *units[] = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"};
while (size >= 1024.f) {
size /= 1024.f;
i++;
}
... |
4f83b2d949d3516e13954fd0bd6f34f053861bde | 6abaf62b3597610ed8b35f637552ea2a829dbd7e | /src/Systems/DX9RenderSystem/DX9RenderVertexAttribute.cpp | cbd5313e3c5fb2ad39d642489c9fa24c32b4a431 | [] | no_license | codacy-badger/Mengine | baac6696d51c6eae1201f345698e76755d30dd29 | 36f98378eec5e6351eacc7d9b463c472b9888fd0 | refs/heads/master | 2020-06-24T17:38:21.976520 | 2019-07-26T14:37:15 | 2019-07-26T14:37:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,661 | cpp | DX9RenderVertexAttribute.cpp | #include "DX9RenderVertexAttribute.h"
#include "Interface/StringizeServiceInterface.h"
#include "DX9RenderEnum.h"
#include "DX9ErrorHelper.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
DX9RenderVertexAttribute::DX9RenderVertexAttribute()
: m_element... |
8274fe04cf388b6fb4508501b1b3ccb5a80a6eee | 1041e7665c64b8355d0e3d40e0558439712de573 | /src/fat.cpp | 7928dc8aa36bdd70e0a6843949fe92006ae26ba0 | [] | no_license | lealdaniel/EP3-SO | 7c50227bd51b20da7b33f86528e51112cbfe9089 | d3ba99c93887b6a2e9ea6da0eefcc0963b87e9d2 | refs/heads/master | 2023-01-29T13:26:50.095770 | 2020-12-03T20:01:51 | 2020-12-03T20:01:51 | 312,421,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 204 | cpp | fat.cpp | #include <vector>
using namespace std;
#include "./item.hpp"
typedef struct Node {
int nextBlock;
string content;
} Node;
#define MAX 25000
class Fat {
public:
vector<Node> fatTable;
};
|
e178bc5ea67972c7d88e72760aa1d8aa849225ec | 2bf1dcb08592de5ce41a3ccebfc817ecd5b6dc5c | /krushal.cpp | 2e468a054d97a3763253190b2431b4d1b883678a | [] | no_license | tushargr/ChatIO | 5263b37d2d29ae09db20fefd323c0710eebc36df | 52fda5d584826a34b05abe5cc61a79538ac81d2d | refs/heads/master | 2020-03-07T00:40:47.397545 | 2018-03-28T14:53:50 | 2018-03-28T14:53:50 | 127,163,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,979 | cpp | krushal.cpp | #include <bits/stdc++.h>
#include<vector>
using namespace std;
vector <pair<int,int>> mpq;
void minheapify(int node){
int minimum=node;
if((2*node+1<mpq.size())&&(mpq[node].second>mpq[2*node+1])) minimum=2*node+1;
if((2*node+2<mpq.size())&&(mpq[minimum].second>mpq[2*node+2])) minimum=2*node+2;
... |
ee7ad94a8b8fab123adbb88eba07b7cd1a83733c | cc0a9745fce81bbe241e62a1963e6ebe2fd8cda3 | /library/vcl/math/projection/projection.hpp | c745d89e76d26aaa91c700d39eac89659ee898f6 | [
"MIT"
] | permissive | drohmer/inf585_vcl | b13478e85ac411d53463bb5b3d84b0571e319356 | 9ecf7ee7ae211b54181329dc0dbf7f2aa6bd0f5b | refs/heads/master | 2021-07-10T04:15:18.777150 | 2021-02-23T11:28:03 | 2021-02-23T11:28:03 | 231,139,747 | 1 | 6 | MIT | 2021-03-07T11:34:57 | 2019-12-31T19:44:52 | C++ | UTF-8 | C++ | false | false | 478 | hpp | projection.hpp | #pragma once
#include "vcl/math/matrix/matrix.hpp"
namespace vcl
{
mat4 projection_perspective(float fov, float aspect, float z_near, float z_far);
mat4 projection_perspective_inverse(float fov, float aspect, float z_near, float z_far);
mat4 projection_orthographic(float left, float right, float bottom, ... |
145498e317f96c908d7517fcbf94066579a9c117 | ca29720817d18d0bc3d207cfe3ca37ae90dac91a | /USACOTrain/gift1.cpp | 541f3e52eea15fe910ba78c60b121f75e66a8cba | [] | no_license | Xiao-Jian/ACM | 0e3e3f3dd13f20d1763aa8bb99aea882ea5585c4 | b2a737a529f453b5a86c72b501254c6d6f90b280 | refs/heads/master | 2020-05-27T08:42:25.986536 | 2015-07-06T07:08:23 | 2015-07-06T07:08:23 | 35,941,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | gift1.cpp | /*
ID: xiaojia5
LANG: C++
TASK: gift1
*/
#include <fstream>
#include <string>
#include <cstring>
using namespace std;
ifstream fin("gift1.in");
ofstream fout("gift1.out");
int main()
{
static int ans[10];
int np,i,j,p,mon,ng;
string a[10],give,rec;
fin>>np;
for (i=0;i<np;i++)
fin>>a[i];
for (i=0;i<np;i++) {... |
f0df59baf1a46692095aa3564700761762da754a | f39fbc00e7584a3e93f92534ca016fd951110cf1 | /src/v/raft/tests/coordinated_recovery_throttle_test.cc | 0f28372f0375ca0fb0ba8acd951b8c4b2b5d0aa5 | [] | no_license | redpanda-data/redpanda | 93234ff70348d3ed131bdc2d121fc8dcb7bffca9 | bee41676303c0e5fb161256b844bb14a135de8cd | refs/heads/dev | 2023-08-27T21:40:47.107399 | 2023-08-26T11:45:30 | 2023-08-26T11:45:30 | 309,512,982 | 4,297 | 308 | null | 2023-09-14T20:36:21 | 2020-11-02T22:43:36 | C++ | UTF-8 | C++ | false | false | 9,581 | cc | coordinated_recovery_throttle_test.cc | // Copyright 2023 Redpanda Data, Inc.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.md
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Versi... |
569252fec5bade4ad0b3530f6cbacf6507f40159 | e941ab124e39befc946aa80e50f55a5d0e8dcb62 | /Readers/brukerBAF/BAFConverter.cpp | e94508c0e4fd5dceb4135b02208a0d83b940c5f1 | [
"Apache-2.0"
] | permissive | PNNL-Comp-Mass-Spec/DeconEngineV2 | 5b609dcb7bbbe96fc8484f834f5b09c1b5fb31bb | 3b075a169e8cd48d44b85b96bafdca28c2f7f862 | refs/heads/master | 2021-11-20T03:29:33.794183 | 2021-10-27T04:15:46 | 2021-10-27T04:15:46 | 22,492,622 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 17,300 | cpp | BAFConverter.cpp | /*---------------------------------------------------------------------------
## File:
## @@(#) BAFConverter.cpp
## Author:
## Robert M. Hubley rhubley@systemsbiology.org
## - based on the example application supplied by Bruker
## in the CDAL library.
## Description:
## Con... |
804fac1159222e813695602844ae433d75670ae9 | 0a9c86bd80cd0238b4ad46eb14141f8764c4d13d | /game/CrateComponent.cpp | f62c1a555bd02df89cc02f15ddef146ffc74205c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sd2017/TriggerTime | 744665719f68d0b7fe107ff537db046ec12ce671 | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | refs/heads/master | 2023-08-18T12:29:23.032342 | 2021-09-18T10:35:56 | 2021-09-18T10:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,065 | cpp | CrateComponent.cpp | /*
* Copyright (c) 2014, Stanislav Vorobiov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of ... |
137725efb812642ab60cad378cd1ad176c29d199 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch/2.89/mag(U) | 1f165e5e76821ca27fb9a6bb5f7b9753e0c0cf7f | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83,850 | mag(U) | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
6b50318c909e52e992b5e1fad9f03941e934f790 | a8583da1df40ca5f29eb3bfb92ba68ca2dcfaa04 | /HitachiApp/main.cpp | 409ba02b32c73e8f80f2d81ae622b6aed44bfad1 | [] | no_license | FilipBascarevic/HitaciCameraConfiguration | 2c43a0aead0dd40b544f9de6f9b939b209fb0ad0 | 9f29fdae0d449e1ba5aafbaeccae532cc9e2bc4c | refs/heads/master | 2020-07-22T05:43:06.089885 | 2019-09-08T09:35:59 | 2019-09-08T09:35:59 | 199,052,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | main.cpp | #include <QCoreApplication>
#include "hitachiapi.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
hitachiAPI hitaci;
hitaci.open("COM1");
quint16 level = 7;
hitaci.ZoomPositionGet(level);
return a.exec();
}
|
4fda022f6ee2c7900ee41c18c48d66e191d966ec | 31f8f7388ae6af6d282b6251b855c2ff39f2f9ea | /hw1/test_program/src/message.cpp | 8494a7b5c17f66205fe8b43b78bb2a6ac271be83 | [] | no_license | lspss89221/NTU-2016-FOOP | f3da334ac8ffae52e7592920c2071650d8b24051 | d532a14ddef25d5a9d289f94d94011220cab2f34 | refs/heads/master | 2021-05-08T04:58:39.165012 | 2017-10-26T23:19:22 | 2017-10-26T23:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,454 | cpp | message.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <unistd.h>
#include "card.h"
#include "message.h"
#include "table.h"
using namespace std;
extern map<char, int> suit_inv_table;
extern map<string, int> num_... |
a91be687ea024d2ef65956c32ee2e77d5922eb3a | df17ceea4b4c19ca20e29e98b7c3c2b3984a4442 | /Euler_9.cpp | baf33565622d15e6d787934c8004adec3fd707a5 | [] | no_license | NasarTarique/PROJECT-EULER | adf399a7c8f337f92b6b92404ef78123ee2d5252 | 8931bdcb85b0d5827f08334e74da1e3fd1dade83 | refs/heads/master | 2020-06-24T04:53:35.650265 | 2019-08-09T10:15:41 | 2019-08-09T10:15:41 | 198,853,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | Euler_9.cpp | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
int i=1,j=1,product;
for(i=1;i<=1000;i++)
for(j=1;j<=1000;j++)
if((i+j+sqrt((i*i)+(j*j)))==1000)
{
cout<<" a="<<i<<"\n b="<<j<<"\n c="<<sqrt((i*i)+(j*j));
... |
cc64f0e85ab0947a89da477d94d8f89a28b5cb4a | 01f4d9aa92683ddcc358b83d3dc4e59e9cf3b4a4 | /getTwoDimensionalArray.cpp | e034996632c86cb3ad317b7d3e71090232a6f86d | [] | no_license | yanjusong/CPP-Study | 543d5506923d4980be8827691ff8561f3472cda2 | 7004c6f12584097a471bbca4b49a874612a51766 | refs/heads/master | 2021-01-20T15:04:58.599108 | 2019-05-15T15:39:42 | 2019-05-15T15:39:42 | 69,138,972 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,112 | cpp | getTwoDimensionalArray.cpp | #include <iostream>
using namespace std;
struct A
{
int data;
A() : data(1)
{
cout << "A() called" << endl;
}
~A()
{
cout << "~A() called" << endl;
}
};
A** getTwoDimensionalArray1(unsigned int row, unsigned int col)
{
A **p = new A* [row];
for(int i = 0; i < row... |
b4db2b364cbd25d22df5f6aa1e1b99642fa7f2d9 | aaa56e0dea5e33b562eab28cc6535ee1ee0af121 | /src/drivers/arMotionstarDriver.cpp | 0209f91858bc6e38677571f34344dbc9e48d2e36 | [
"LicenseRef-scancode-x11-opengl"
] | permissive | IllinoisSimulatorLab/szg | 19357a9867d0d2b18ca384f9830820b101fd0bfe | b9f9a2380107450c2f181ac6372427a0112b5ffe | refs/heads/main | 2022-02-09T23:15:24.015964 | 2016-06-02T19:28:59 | 2016-06-02T19:28:59 | 30,116,435 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,375 | cpp | arMotionstarDriver.cpp | //********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//
// This file includes modified sample code from
// Acension Technologies' bnsample.c.
//********************************************************
#include "arPreco... |
6253cf2e1be921e15d3fd636ab95cbadaed49abe | e7f65a2fb4a85acdc26865883268333c17b3d791 | /intern/src/switchwidget.h | e64840af1784190de21a1b295322d6007c87f7ae | [] | no_license | kek112/SmHoEzMa | 129dea4e58ac5099b9c7eae3840e9dab6c1f7bd1 | dab59f5047f1f61a70226661bd0f92139689357b | refs/heads/master | 2021-09-25T02:40:18.851821 | 2018-08-05T13:02:47 | 2018-08-05T13:02:47 | 153,416,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | switchwidget.h | #ifndef SWITCHWIDGET_H
#define SWITCHWIDGET_H
#include <QtWidgets>
/**
* @brief The CSwitchWidget class
* @details Subclasses the QAbstractButton class to create a Android like switch
*/
class CSwitchWidget : public QAbstractButton
{
Q_OBJECT
//needed for QPropertyAnimation
Q_PROPERTY(int offset READ ... |
6e8b099a416a3ca08adc1052a7ba17824ea51b3c | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/spirit/home/support/detail/lexer/parser/tree/selection_node.hpp | 9e765737a9bf5cbb256a9316614af71c26636c3d | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 105 | hpp | selection_node.hpp | #include "thirdparty/boost_1_58_0/boost/spirit/home/support/detail/lexer/parser/tree/selection_node.hpp"
|
cc26cd24993eb4ab84c8b2f407218aee99af2871 | a980ba973c6365b2b2f11a1af443191596ded453 | /examples/plugins/examplecryptoplugin/plugin.cpp | d93409f9f4b1e2b023692ce0650313a1a6eea115 | [
"LicenseRef-scancode-free-unknown",
"BSD-3-Clause"
] | permissive | sailfishos/sailfish-secrets | 44f724f1470e7b4bbfbd4c0ab4cb481cbc54f2e0 | 303687d1e4e71cf741b6aec3b35dd78c033b1ede | refs/heads/master | 2023-04-07T06:44:07.878773 | 2023-03-21T10:41:41 | 2023-03-21T10:41:41 | 109,001,458 | 27 | 16 | BSD-3-Clause | 2023-08-31T14:14:11 | 2017-10-31T13:43:11 | C++ | UTF-8 | C++ | false | false | 1,235 | cpp | plugin.cpp | /*
* Copyright (C) 2018 Jolla Ltd.
* Contact: Chris Adams <chris.adams@jollamobile.com>
* All rights reserved.
* BSD 3-Clause License, see LICENSE.
*/
#include "plugin.h"
#include <QStandardPaths>
#include <QString>
#include <QByteArray>
#include <QtDebug>
Q_PLUGIN_METADATA(IID Sailfish_Crypto_CryptoPlugin_IID... |
95c0f72eca761815f764c91648f0f10d377122df | 70d8c647d6fa157de13f8aeab21bf7f1e044e575 | /abel/ABEL4/LIB4/ABEL4LIB.INC | b14d784a2f526a864dbf8118912f3c15a541695d | [] | no_license | xinkaiwang/GAL | 8bdd37a92c9f51e39474e3ad0b0358542edc435c | bbc3a7c9c32e20406432236cc9f748d1113c8674 | refs/heads/master | 2021-01-06T04:48:48.575624 | 2020-03-23T02:07:10 | 2020-03-23T02:07:10 | 241,216,257 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,749 | inc | ABEL4LIB.INC | 4376
" VERSION 4.00A Copyright(C) 1990 Data I/O Corp.
"==============================================================================
" constant.inc
"
Z,C,K,X,U,D,P,H,L = .Z., .C., .K., .X., .U., .D., .P., 1, 0;
TRUE, FALSE = !0, 0;
" E0320.INC
MISER macro (a) { fuses [2912,2913] = [?a,?a]; };
... |
0c51f17ccef6e579c7ae750d0ac9fdc3824f62db | 9226b8f148dd5971dbef40fe359ed9aa276ac2d3 | /gearoenix/math/math-frustum.cpp | dca22a3a97a0378413e1fa025b5c1473e1259065 | [] | no_license | asdlei99/gearoenix | ff7fdd875c5ab3ebe9443473837e44df3e8e085e | 1be747da5d17f7f412deffff3497ed61db6c05ed | refs/heads/master | 2021-01-02T18:49:00.069672 | 2020-02-08T05:58:25 | 2020-02-08T05:58:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,329 | cpp | math-frustum.cpp | #include "math-frustum.hpp"
#include "../system/sys-log.hpp"
#include "math-sphere.hpp"
gearoenix::math::Frustum::Frustum(const Plane (&planes)[6]) noexcept
: planes { planes[0], planes[1], planes[2], planes[3], planes[4], planes[5] }
{
}
gearoenix::math::IntersectionStatus gearoenix::math::Frustum::check_interse... |
849108618918c6a00d9314c1b65c8ad13aae7563 | 6df45f4a51458cf480f3f05f1f326000b7d00a8f | /RBitMap.h | d4cea9bcbd5d04d8496c9ed16858cb5413d38c1a | [] | no_license | pangeo-capital/phone-soft | 4e96f2e7f463835cac19626f7bc12ad3b9efae71 | 38e9f7f741b73eddbf2801b5d44561457be855fb | refs/heads/master | 2020-04-23T21:26:32.927520 | 2019-02-19T12:49:48 | 2019-02-19T12:49:48 | 171,470,776 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,814 | h | RBitMap.h | #ifndef SC_RBITMAP_H
#define SC_RBITMAP_H
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <vector>
#include <map>
#ifndef UBYTE
typedef unsigned char UBYTE;
#endif
using namespace std;
#define BACKGR... |
2d740da7057a7a06f63d283fc5675e94816da405 | 8e6e8d6e28a14316089974386a6b481c7ac59a63 | /Codeforces/Manthan, Codefest 18 (rated, Div. 1 + Div. 2)/B.cpp | e776f0ff9be2ab78d08eed05d7a46db33c706fda | [] | no_license | sqwlly/ACM-solved-problem | 2301627e9cf7e8accbd731936cc494c2fd3d31f1 | 3509242792ea7bbd7d0a5989aeff712be57a4348 | refs/heads/master | 2021-06-05T03:02:46.655724 | 2020-02-19T04:58:32 | 2020-02-19T04:58:32 | 147,011,925 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | B.cpp | #include<bits/stdc++.h>
using namespace std;
const int N = 2e5+10;
int a[N];
int main() {
int n, k;
scanf("%d%d", &n, &k);
for (int i = 0; i < n; ++i) {
scanf("%d", a + i);
}
sort(a, a + n);
long long ans = 0;
for (int i = 0; i < n; ++i) {
if (i <= n / 2) {
if (a... |
fb2b8382c7f220c958c85a2b103d3f3700ec6061 | fcd31d6acad0c01ca13c1af75caa94a18d1e7ef0 | /time.h | b4e90b662bdae72b18f9c5e9509fded5883c5fba | [] | no_license | AlexDominguez18/VOCEX---CALL-CENTER | f5491a2673f2bc627d9914fe97ac9f993ee517be | 4796e63d2219c57ac30325c1ded5a9fb64c6c4c3 | refs/heads/master | 2022-06-24T12:02:25.586510 | 2020-05-10T02:33:08 | 2020-05-10T02:33:08 | 262,695,047 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | h | time.h | #ifndef TIME_H_INCLUDED
#define TIME_H_INCLUDED
#include <iostream>
#include <string>
class Time {
private:
int hour;
int minute;
int second;
bool isValid(const int& hour,const int& minute,const int& second) const;
public:
Time();
~Time();
Time(const Time&);
Time(cons... |
46d19ced2cfa88070f7f99f0dd395e3753bc2cda | 23dd07290eeb4798a5af9826aa92973fc2386d1b | /cpp/tide_chart.pb.cc | e22703dcb1e2eaac516c8c53f582fd9ef4ab0c98 | [] | no_license | mechadojo/tidecharts | f57bce5b1194894e087d86ad8844f676cf6e793e | ad3f490b2eedd6ad779f800d7f312ede052a620b | refs/heads/master | 2020-07-02T08:29:30.827624 | 2020-01-13T01:16:31 | 2020-01-13T01:16:31 | 201,473,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 980,674 | cc | tide_chart.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tide_chart.proto
#include "tide_chart.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#incl... |
a094dc7648638e3d321b5762d240820b48ad6527 | 8fb812170e1d66e2416838b30b44c1b59df07679 | /include/anpcode/eventdispatcher.h | fe1ee1c4727d345180b520db9ea2ce6201fe54b1 | [
"BSD-2-Clause"
] | permissive | antonp/anpcode | 6a38f8226377ca23078a80be28e1630794c885bd | 099992ce093180028842a1f02d9e060fe2446742 | refs/heads/master | 2016-09-10T13:09:51.264301 | 2012-11-05T13:46:25 | 2012-11-05T13:46:25 | 2,132,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,932 | h | eventdispatcher.h | /*
Copyright (c) 2010, Anton Petersson < anton (at) anp.nu >
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list ... |
4c415965cbdf691a59a57e1bb620c66d816f7ae4 | 365cac007075eba241a495246396fa96e04a91a1 | /HAETAEGameEngine_V01/HAETAEGameEngine_V01/Engine/Rendering/3D/GameObject.h | dea0037ae80f932ec876218e7478e26d44df3ee3 | [] | no_license | HAETAE0011/GameEngines | 243f598a7d6693b5e659fb6131e308a980317bef | 9e5c2f390e7184a6d6361fc756823fa1c28c1b7e | refs/heads/master | 2023-05-01T18:22:00.702185 | 2021-05-14T20:21:40 | 2021-05-14T20:21:40 | 300,065,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,384 | h | GameObject.h | #ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
#include "Model.h"
#include "../../Camera/FrustumCulling.h"
#include "Component.h"
class GameObject{
public:
GameObject(Model* model_, glm::vec3 position_ = glm::vec3());
~GameObject();
void Render(Camera* camera_);
void Update(float deltaTime_);
void UpdateCamera(Came... |
4f1be4d21ba81f54dff9e5e4851014e2b1ef7165 | e9622b0953199a0d922602954663a00ba53f2970 | /hydra_drive/arduino/HydraDriveEncoder/HydraDriveEncoder.ino | 0e6d9276e1647ba09b8d99bc044fbf3edb071dfb | [] | no_license | insaneinside/hydra | 2f1df2e979102ba4a4fd90c3d8f0b6e50a937f57 | cb5cc7a1c9ec0edb8a7008b9b37e20478117ddbb | refs/heads/master | 2021-01-10T19:23:34.218741 | 2014-05-17T06:31:38 | 2014-05-17T06:31:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,197 | ino | HydraDriveEncoder.ino | // -*- c++ -*-
/* DUBotics Hydra: low-level motor shaft encoder driver
* Copyright (C) 2014 DUBotics at the University of Washington
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either... |
be5947a49dc0c9838c3bc33fdb3cac538a1e9668 | dc4487f3eac73299191031e3ce59b87a3169045f | /interpreter/command/IfCommand.hpp | b8744916a42792cba8b098722994db894136b46e | [] | no_license | thiagofigcosta/miniPearlInterpretor | a28e455496e312b6d6f083f8d134a66b203ab345 | 565d33901f3335b50726f78cdb6a1f83332c6959 | refs/heads/master | 2021-07-08T14:47:24.074151 | 2017-10-06T20:08:22 | 2017-10-06T20:08:22 | 104,028,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | hpp | IfCommand.hpp | #ifndef IFCOMMAND_H
#define IFCOMMAND_H
#include "Command.hpp"
#include "../boolexpr/IfHead.hpp"
class IfCommand : public Command {
public:
explicit IfCommand(IfHead* cond, Command* then, int line);
explicit IfCommand(IfHead* cond, Command* then, Command* elsecmd, int line);
virtual ~IfCommand();
voi... |
1fea2d7a31e27e56fb4c093981d0af8d1556ff93 | 0157d8e876f74bddc9a091251a3f45f57dc01287 | /Sources/Runtime/GatherTapeSignal.h | 34ce00114f59e77d2eeea23253f9dcf16a9886bb | [] | no_license | Yariki/Prom_AC | c40d5833f25202b88c19e8a3d2731948ef9edbd7 | f69b11b2d1121d072faf42b1435c21f78b23ad02 | refs/heads/master | 2020-03-09T08:05:55.780763 | 2018-04-08T21:08:39 | 2018-04-08T21:08:39 | 128,681,392 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | h | GatherTapeSignal.h |
#if !defined(_GATHERTAPESIGNAL_H)
#define _GATHERTAPESIGNAL_H
#include "BaseSignal.h"
#include "SignalState.h"
class GatherTapeSignal : public BaseSignal {
public:
virtual void configureSignal();
};
#endif //_GATHERTAPESIGNAL_H
|
483b9d545b45fa0131df4a8328bf60c663d25ae6 | 895e1f0af56518c7956594f7c650211d9fc2467a | /labs/game_engine/dev/src/core/SceneSerializer.cpp | 0a81f235f956353328da5036d2bafc87be01edc8 | [] | no_license | lythm/orb3d | b6061ebf839381a35aaeab8baf08a38fcfe03a71 | 2defcbf86ef7dd2a27fe7bdc89bf709ed8bf2a79 | refs/heads/master | 2016-09-15T15:55:19.069094 | 2013-07-12T17:09:29 | 2013-07-12T17:09:55 | 4,442,482 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 186 | cpp | SceneSerializer.cpp | #include "core_pch.h"
#include "..\..\include\core\SceneSerializer.h"
namespace ld3d
{
SceneSerializer::SceneSerializer(void)
{
}
SceneSerializer::~SceneSerializer(void)
{
}
}
|
1d7de114acb1a65198baa73d4b9ac509eb0c3485 | 045ad86b79d87f501cfd8252ecd8cc3c1ac960dd | /MicroMiddleware/Net/AlmServer.h | e9164215d3189c561f881215f4ee0bcfa0b71156 | [
"MIT"
] | permissive | intact-software-systems/cpp-software-patterns | 9513e4d988342d88c100e4d85a0e58a3dbd9909e | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | refs/heads/master | 2020-04-08T08:22:25.073672 | 2018-11-26T14:19:49 | 2018-11-26T14:19:49 | 159,176,259 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | h | AlmServer.h | #ifndef MicroMiddleware_AlmServer_h_Included
#define MicroMiddleware_AlmServer_h_Included
#include"MicroMiddleware/IncludeExtLibs.h"
#include"MicroMiddleware/NetObjects/RpcIdentifier.h"
#include"MicroMiddleware/Export.h"
namespace MicroMiddleware
{
class RpcBase;
class DLL_STATE AlmServer
{
public:
AlmServer(std... |
0f1141e63f433d52aed21670daf7169243e536dc | ef0eafba0fd9f23f6bc62f316df035beb515c168 | /ytl/assembler/arch/ia_32/engine.hpp | 0e5b6d2d897bf443c1b55faaf45bd581ca01cd61 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yutopp/ytl | be183d014224911b1e3183d3428e5309d0691b78 | 8604952b85d0f48e46c9abb97c06082e2ab036a2 | refs/heads/master | 2020-05-23T16:14:30.271097 | 2012-06-03T15:00:47 | 2012-06-03T15:00:47 | 4,032,167 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,806 | hpp | engine.hpp | #ifndef YTL_ASSEMBLER_IA32_ENGINE_HPP
#define YTL_ASSEMBLER_IA32_ENGINE_HPP
#include <cassert>
#include <memory>
#include <iostream>
#include "../../config.hpp"
#include "../../exception.hpp"
#include "../pseudo_operations.hpp"
#include "registers.hpp"
#include "data_types.hpp"
#include "aliginment.hp... |
eb5763c00a9bb96613e1208ad10205cc5f8aa306 | 2d50ac8a097bb40bdf2a72df5ab3c36d16f5f76e | /sketch_jul13d.ino | f12d931a77ba0cf0506f530d8f5cb22b28321e9e | [] | no_license | xanatower/Ard | 607af0b9454c6da98030f65769039b00cd6d1f00 | 1f6b3f3ce4620ea82a2c2330b58243740600df05 | refs/heads/master | 2020-04-02T05:46:37.508252 | 2016-11-13T23:23:42 | 2016-11-13T23:23:42 | 63,288,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | ino | sketch_jul13d.ino | #include <Servo.h>
Servo myservo;
/*
Fading
This example shows how to fade an LED using the analogWrite() function.
The circuit:
* LED attached from digital pin 9 to ground.
Created 1 Nov 2008
Bdey David A. Mellis
modified 30 Aug 2011
By Tom Igoe
http://www.arduino.cc/en/Tutorial/Fading
This example ... |
7ad56ed1df7366c5d5a11f93ea7fc5b3f1f98996 | 2b56b1f07a80e8d31a5e945b80252509975f82de | /Interview/Interview/customSortString.hpp | 5e5830414203017b488302379656faf258d341d9 | [] | no_license | dailongchen/InterviewQuestions | cbbb390e87c40766befb34f717dd1247d0305607 | 9ec6cbf1c578cfcb9e2a616c3aea3002ecb9e83a | refs/heads/master | 2021-04-15T11:58:44.764966 | 2019-06-17T03:16:15 | 2019-06-17T03:16:15 | 126,446,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | hpp | customSortString.hpp | //
// customSortString.hpp
// Interview
//
// Created by Solon Chen on 15/03/2018.
// Copyright © 2018 Solon. All rights reserved.
//
#ifndef customSortString_hpp
#define customSortString_hpp
#include <string>
class CustomSortString {
public:
CustomSortString(const std::string& str);
std::string sort(co... |
6668788519554f44fc0b9ef06c8071344689d505 | ccd0591510544cb85b4ad0443683aa0a1b7d2c7e | /include/multitasking.h | 6112af6519e194b3c803caf544e4770307ded39f | [] | no_license | ljwwwiop/my_operator_system | e452da18c7ae22461c260174f1909900c2d4d4ec | ecc95de6782ff3346dbf0820e60fc16da8ba45af | refs/heads/master | 2023-07-10T07:40:51.424235 | 2021-08-19T08:55:49 | 2021-08-19T08:55:49 | 397,868,332 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | h | multitasking.h | #ifndef __MULTITASKING_H
#define __MULTITASKING_H
#include "common/types.h"
#include "gdt.h"
namespace myos{
struct CPUState{
common::uint32_t eax, ebx, ecx,edx,esi,edi,ebp;
common::uint32_t error,eip,cs,eflags,esp,ss;
}__attribute__((packed));
class Task{
friend class TaskMange... |
4cb8f800fdc9a202152d734796ffb1fdba284e7c | 3e51d26c73b5872d85cdbc40885e8e2bdb95863e | /src/Mesh.cpp | 5b2dc4dcb38757c454501bd95e53e58597465c73 | [] | no_license | cvybhu/FreeDeEngine | a99f14b84d875a3c740b4e8aff02f11dafaa4e56 | e4234f8d4fca50d586d0a2e40c482f0484fd8772 | refs/heads/master | 2021-06-25T08:40:15.158085 | 2020-10-14T17:51:49 | 2020-10-14T17:51:49 | 140,593,920 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,745 | cpp | Mesh.cpp | #include <Mesh.hpp>
#include <glm/glm.hpp>
#include <glad/glad.h>
#include <Storage.hpp>
#include <fstream>
#include <Logger.hpp>
void Mesh::calculateTangents()
{
for(int i = 0; i < (int)verts.size(); i += 3)
{
Vertex* curVerts = &verts[i];
glm::vec3 edge1 = curVerts[1].pos - curVerts[0].pos... |
f9c17fc5018e559e55ae5b1e8a5b4d6feb76d0e0 | 67c2e1ce81b343952e96b09e2eaf1ddc7f3888fc | /FrameworkWin/CommandLineInitializationWin.h | a91ec6d9870e06ba203f3969dd3d70446f1f4cb0 | [] | no_license | aclysma/Helium | 806c5a3954ecd162a1a7137562bd0f71e084423a | a009248596b2e537ccb8e7c3e587628b8bda8b7a | refs/heads/master | 2021-01-18T05:31:57.004647 | 2011-06-07T04:49:10 | 2011-06-07T04:49:10 | 1,301,697 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 993 | h | CommandLineInitializationWin.h | //----------------------------------------------------------------------------------------------------------------------
// CommandLineInitializationWin.h
//
// Copyright (C) 2010 WhiteMoon Dreams, Inc.
// All Rights Reserved
//--------------------------------------------------------------------------------------------... |
f3ecb76e4f6148735d1b79fbf83af8b5d7269ec4 | a63d60c270433e84398f6be4642feb7643c0c8b0 | /Seletiva IOI/Seletiva 2018/mst.cpp | 52da07cc46c4994a5f5bd4e6f24d07519545f85d | [] | no_license | luciocf/Problems | 70a97784c17a106cb9e0f0ec28ac57cf58fea8c7 | 19f6000e9e6a5fe483ad4bb17e9ba50644ac954a | refs/heads/master | 2023-08-21T10:54:18.574403 | 2021-10-29T03:45:16 | 2021-10-29T03:45:16 | 169,012,579 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,164 | cpp | mst.cpp | // Seletiva IOI 2018 - Marcos Soluções Tecnológicas
// Lúcio Cardoso
#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5+10;
const int maxm = 3e5+10;
typedef long long ll;
struct aresta
{
int u, v, w;
} edge[maxm];
struct node
{
ll soma;
int qtd;
} tree[4*maxn];
int n;
int pai[maxn], peso[maxn]... |
ca04a1483d8f6350d87dd18843ddb6401458c847 | 26a03dfaec683808812d9b139575c3dee342cf53 | /trunk/NetServer3.0/GuardFiled.h | 5b732debeb2dfe360be6fe181420084e63f7f8c1 | [] | no_license | BGCX262/zxterminal-svn-to-git | 75d5eb236d14ae3a45fb50f4a7605a8a14745a33 | 2684631af8362929421923376593a84119f5d400 | refs/heads/master | 2016-09-06T04:38:38.117778 | 2015-08-23T06:47:11 | 2015-08-23T06:47:11 | 41,311,556 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,823 | h | GuardFiled.h |
/*设备定义了安全防盗类的数据定义*/
#ifndef _GUARDFIELD_H_
#define _GUARDFIELD_H_
#include <afxtempl.h>
class CGuardData
{
public:
char EquimentId[15];
char szTime[20];
BYTE DataType; // 0:一般信息;1;回复信息;2报警信息;
int ProbeType ; //探针号; -1:无效 0:一般的数据;
UINT state; //状态;
CGuardData()
{
ZeroMemo... |
320e9351305ace54e879dc9a93270854a47cca31 | 5145c502fed5b2c91df4aed4bf1b6e65004092ea | /common/lib/gui/Gui3DVerticalSelector.cpp | 29e228bf87166b36ede7a3a50ac5280f5eb4df1e | [
"MIT"
] | permissive | petrocket/OgreGameKit | 7038b9f5fbf5ae26af17980d473fe17e86184dd7 | 581adb8824eb9896736334f2ab6010b891db8de8 | refs/heads/master | 2021-01-19T14:09:54.079178 | 2015-02-19T22:45:14 | 2015-02-19T22:45:14 | 20,369,111 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 6,770 | cpp | Gui3DVerticalSelector.cpp | /*
Gui3D
-------
Copyright (c) 2012 Valentin Frechaud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to d... |
efbc3edfacb87f7958e448040f2c715587923ed0 | 7916c16a7b060fd166dbf65fbc336f2e9a52eb7b | /RandomGen/DeadEndRemover.h | 79e13760d42f37f8851f2af28de55f3da60491b3 | [] | no_license | inzombiak/RandomMazeGen | 5584304b50afdf28f72d7be9ef80addcb1923294 | 419ef6567f21c71cb2768b4c59904c988335870b | refs/heads/master | 2021-06-18T00:28:11.111542 | 2017-06-18T21:45:18 | 2017-06-18T21:45:18 | 87,091,742 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 738 | h | DeadEndRemover.h | #ifndef DEAD_END_REMOVER_H
#define DEAD_END_REMOVER_H
#include "Tile.h"
#include "IThreadedSolver.h"
class DeadEndRemover : public IThreadedSolver
{
public:
void RemoveDeadEnds(std::vector<std::vector<Tile>>& tiles, const GameDefs::GenerateType& genType, int removalPercentage, unsigned seed, int sleepDuration);
p... |
889a64cda3723fcf176f3933fd22b452b33aeeaf | af8630866113c8e34a50180d6dbc81d1630c5877 | /G11_Project/CircleGauge.cpp | ca02dc390964c85c77b12333d35cd58453bfae5e | [] | no_license | GaneshTambat/G-11_Project | 5557b824b93f9f68a4d706754f1fcdcb3dec1855 | daf98b0c70e139b0de1ae3e2f806267c4f520eb4 | refs/heads/master | 2020-03-20T19:36:08.353761 | 2015-07-07T06:23:37 | 2015-07-07T06:23:37 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,621 | cpp | CircleGauge.cpp | //=============================================================================
//円形ゲージクラス
//=============================================================================
//=============================================================================
//インクルード
//==========================================================... |
0d2ece7a983ea12f022df2aedf6c14f4c33cc50a | 11fb9f7e3026bccf14d006521871441609ba157f | /check_on_off.cpp | e8b6857ec6cb78dca5ba9e5c2222f977e6285939 | [] | no_license | jdiazbb/jaire_opencv | f18b78beb66c41d2b917997368fcb3f67b696141 | b47ad1b52bd93889fa03508ce7234bb687a19c31 | refs/heads/master | 2021-07-19T23:15:08.587391 | 2017-10-27T11:45:23 | 2017-10-27T11:45:23 | 108,527,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,411 | cpp | check_on_off.cpp | #include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
using namespace std;
using namespace cv;
const char* image_label_on_off = "patrones/onoff.png";
const char* image_led_on = "patrones/led_on.png";
const char* image_led_off = "patrones/led_off.png";
... |
37f24b41c4b766f197bb9c3d43aa990d6460df8a | c760458041a7569f8a57e888c4b15a78e2eb2e90 | /parser/byte_stream.h | be888a3db246074c9bcb91a8c50cca2bd3e68f3e | [] | no_license | hagonzal/tiempo | 7ef25699ef3f7e782664a4a1192f82ff19967089 | 880bd65c4cca8b9038c15b3ed9e583011935f2a7 | refs/heads/master | 2016-09-05T13:28:50.827570 | 2012-07-22T18:00:50 | 2012-07-22T18:00:50 | 5,143,070 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,871 | h | byte_stream.h | // Copyright (c) 2012 The Tiempo Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
// Author: Hector Gonzalez (hagonzal@gmail.com)
#ifndef PARSER_BYTESTREAM_H_
#define PARSER_BYTESTREAM_... |
4f6769ddb7a4e46ae103e18a7bef69435ae2f768 | 123834f1b9b7bf07f8030d1ab268df38f4fcef67 | /libs/Microsoft.MixedReality.WebRTC.Native/test/test_utils.h | dc3631eadbcf65ffd48cf222a16d0016be1743c4 | [
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-or-later",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"ICU",
"LicenseRef-scancode-google-patent-license-webm",
"NAIST-2003",
"LicenseRef-scancode-openssl",
"Lic... | permissive | ryusei172525/UWP-VideoChat | e0d8ba4ef80dd86eb037087f089708fcb8e3003c | f9ca523679c17d30f3d91216b61aba4f36c8d33e | refs/heads/master | 2022-12-12T12:45:42.788264 | 2020-05-05T09:53:30 | 2020-05-05T09:53:30 | 260,609,669 | 0 | 1 | MIT | 2022-12-08T10:19:25 | 2020-05-02T03:56:43 | C# | UTF-8 | C++ | false | false | 543 | h | test_utils.h | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "../include/interop_api.h"
namespace TestUtils {
class TestBase : public ::testing::Test {
public:
void SetUp() override {
// Ensure there is no object alive before the test
ASSERT_EQ(0u, mrsReportLiveObjects()) << "Alive ... |
53ce716bb9f2d76d8bb1b25656b64206dd8113a7 | 9562f62ca0a97bf71d4dc900e8fbed3c944f8efe | /Carpeta Juego/MiProyecto1111111/P_A.cpp | ccf8a89a4ed1ccbed55ed305422577c135e5eff9 | [] | no_license | IvanPPG/INFO-II | 61ccfe725f97798451076f223cffbdcab65372aa | 5788aefe6339de7c544189008ea44550d8863b5a | refs/heads/main | 2023-01-05T22:21:56.217953 | 2020-10-30T22:17:23 | 2020-10-30T22:17:23 | 301,734,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | cpp | P_A.cpp | #include <SFML/Graphics.hpp>
#include <cmath>
#include "P_A.h"
#include "A4.h"
using namespace sf;
P_A::P_A(float x_p, float y_p, Texture &t) {
x = x_p;
y = y_p;
sp_a.setTexture(t);
}
void P_A::mov(float x, float y) {
this->x;
this->y += 0.00001;
if (this->x < 0) {
... |
753563377d1397180a865101859c049bd21cb308 | ce9d32adfcf68ffe0f98cc6453a3154c85e7b51c | /libraries/SimbleeVideoTutorials/examples/Simblee_UARTTemp/Simblee_UARTTemp.ino | 7cdbbb5a65880257b95216e1038749de0421bf87 | [] | no_license | biomurph/Simblee | cce1be3c5a7d39b3981435915b4a368141abbc2e | fabc773ca2d7d2dcc7533e10ce571a602c7f29f7 | refs/heads/master | 2021-01-25T00:49:03.572609 | 2019-08-02T20:47:59 | 2019-08-02T20:47:59 | 123,306,014 | 0 | 0 | null | 2019-08-02T20:45:08 | 2018-02-28T15:44:07 | C | UTF-8 | C++ | false | false | 1,411 | ino | Simblee_UARTTemp.ino | /*
* Copyright (c) 2017 RF Digital Corp. All Rights Reserved.
*
* The source code contained in this file and all intellectual property embodied in
* or covering the source code is the property of RF Digital Corp. or its licensors.
* Your right to use this source code and intellectual property is non-transferable,
... |
c0798fe683b9c5ef48e24c74753b1654776f3cf1 | 6d1ed237fbd738198c8d036d4ff437a5c0e38ae8 | /CompoT/Configs/ct_rscObjectBrowser.hpp | c57b79951736a60deb8ceb3cca997010827426e6 | [] | no_license | vitalymind/CompoT | cb5047cbb1b091c26a5fc7b6195aef352c867947 | 32624b115c85895cf7681889f92889f67699a622 | refs/heads/master | 2021-01-10T01:28:35.941566 | 2016-02-12T14:26:56 | 2016-02-12T14:26:56 | 46,651,030 | 5 | 2 | null | 2016-02-12T14:34:04 | 2015-11-22T07:36:02 | SQF | UTF-8 | C++ | false | false | 13,883 | hpp | ct_rscObjectBrowser.hpp | class ct_object_select
{
name = "ct_object_select";
idd = 25259;
movingEnable = false;
enableSimulation = true;
class controls
{
class main_background: ct_background_base
{
idc = -1;
text = "";
x = 0 * safezoneW + safezoneX;
y = 0 * safezoneH + safezoneY;
w = 1 * safezoneW;
h = 1 * safezon... |
526ddf59a06aa6ca77d1a57c46f34dd35d5ece33 | c77748372b1a7fd68da21516f4f5c2f10e42e920 | /test_Windows/Sourcecode/2017011071/UCT.cpp | 0c331e1a7fd7c95f3f305708e9a6e24fe270f7a1 | [] | no_license | dylanyang17/ConnectFour | 6b30dc8756f1f0ff66681678971d1358e7d06463 | 9099380ebfb0ee00c188d3695723bcf65f02382e | refs/heads/master | 2022-11-09T08:50:23.654820 | 2020-04-26T14:57:37 | 2020-04-26T14:57:37 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,774 | cpp | UCT.cpp | #include "UCT.h"
#include "Judge.h"
#include "Point.h"
#include "ChessBoard.h"
#include <ctime>
#include <random>
#include <cassert>
#include <cmath>
#define timeNow() ((double)clock()/CLOCKS_PER_SEC)
UCT::UCT(int m, int n, ChessBoard *chessBoard)
{
this->m = m;
this->n = n;
this->chessBoard = chessBoard;
this->no... |
31b8513ba28bc367a1f5689b7f5c854be26d4c45 | 005f6e37941b66536f6719a7bb94ab4d3d7cf418 | /src/prx_packages/tutorial/simulation/test_controller.cpp | 451efe3527524b3a6b0594b73590a16480af3f4a | [] | no_license | warehouse-picking-automation-challenges/ru_pracsys | c56b9a873218fefb91658e08b74c4a1bc7e16628 | 786ce2e3e0d70d01c951028a90c117a0f23d0804 | refs/heads/master | 2021-05-31T05:52:33.396310 | 2016-02-07T22:34:39 | 2016-02-07T22:34:39 | 39,845,771 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,491 | cpp | test_controller.cpp | /**
* @file test_controller.cpp
*
* @copyright Software License Agreement (BSD License)
* Copyright (c) 2013, Rutgers the State University of New Jersey, New Brunswick
* All Rights Reserved.
* For a full description see the file named LICENSE.
*
* Authors: Andrew Dobson, Andrew Kimmel, Athanasios Krontiri... |
d255b86e934748ae9e3a44f2992a631c80cc97cb | e32710c56e37207ba7129f0fcec213b34108cbec | /retroshare-gui/src/gui/NetworkView.cpp | ea095a39e2a48b5017ed1903a266a9f3f684f81b | [] | no_license | sirjenster/RetroShare | 963f56b5662d3c41bf8421124c220c36dc6a38f1 | 47328a4ec9f1b26f84081cd674ced8e5046458cc | refs/heads/master | 2021-01-18T10:33:27.768840 | 2015-11-19T18:11:02 | 2015-11-19T18:11:02 | 42,929,480 | 2 | 0 | null | 2015-09-22T11:24:23 | 2015-09-22T11:24:23 | null | UTF-8 | C++ | false | false | 7,104 | cpp | NetworkView.cpp | /****************************************************************
* RetroShare is distributed under the following license:
*
* Copyright (C) 2008 Robert Fernie
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by th... |
7bdf995f3e037bfc731dcd5a1ff69eda60107347 | d1834094838ad2c1c027fb999b29e84890c8fcff | /ASD_5_1 - Sortowanie (quicksort).cpp | 02557e36730d33e7bacd15897d93c5d54c54efb2 | [] | no_license | xtr01/spoj | 5400888289ac8d2fc8dbe3a03462490e97d215a7 | 5f70ab468243b2482ef3cfe5fd4a14acb2c1af45 | refs/heads/master | 2020-04-09T15:42:22.671159 | 2019-05-24T10:37:59 | 2019-05-24T10:37:59 | 160,433,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | ASD_5_1 - Sortowanie (quicksort).cpp | #include <iostream>
using namespace std;
//Compiler version g++ 6.3.0
void quick_sort(int *tab, int lewy, int prawy)
{
if (prawy <= lewy) return;
int i = lewy - 1, j = prawy + 1,
pivot = tab[(lewy + prawy) / 2]; //wybieramy punkt odniesienia
while (1)
{
//szukam elementu wiekszego lub rownego ... |
c34c004b754733159bd9a696ca04f2ec16340691 | fea635a40861850271493fa59963a8071241f6d0 | /inc/tasks/paranoiatask.h | 809460d61d4cddc773966ace81163d25aa550177 | [] | no_license | ngc7293/qtparanoia | 0943a11a508d90a51cd56fb40cc134da5e3ac75c | 0bb8b46d91b182b685ef6d364d3a57b8f871251a | refs/heads/master | 2020-03-07T12:13:13.951466 | 2018-04-13T02:33:18 | 2018-04-13T02:33:18 | 127,473,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | h | paranoiatask.h | #ifndef PARANOIATASK_H
#define PARANOIATASK_H
#include "tasks/threadedtask.h"
#include <fstream>
#include "audiodisk.h"
class ParanoiaTask : public ThreadedTask {
Q_OBJECT
private:
AudioDisk* disk_;
public:
ParanoiaTask(AudioDisk* disk);
virtual ~ParanoiaTask();
protected:
virtual void run();... |
16607068ef5539d9d7bcf971930bb146f257924d | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoEgamma/EgammaTools/plugins/LowPtElectronsModifier.cc | 22b55a300e21c14dec51981986f0bf2fa5cf6d7c | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 3,253 | cc | LowPtElectronsModifier.cc | #include "CommonTools/CandAlgos/interface/ModifyObjectValueBase.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "RecoEgamma/EgammaToo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.