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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d5e4fd0b75cd30f234a6156ed7e8cbcc9653d60 | 88ae8695987ada722184307301e221e1ba3cc2fa | /printing/image.h | 717e913b7a39cc9e5604dec1d9684b223afde7ee | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 2,542 | h | image.h | // Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PRINTING_IMAGE_H_
#define PRINTING_IMAGE_H_
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <vector>
#include "base/check.h"
#include "ui/gfx/geom... |
1312c860a3174ddfb98ca2d18c2150c9e4cc3596 | 98ebf94bba761867ec2349d80f21342b5a0c6710 | /include/nativo.h | a9c44ee2669f94b7000a32b34b4f8c0749378434 | [] | no_license | LaelRodrigues/Projeto3 | 2e18169e7443c702f44fad834ab43388df307ca6 | 892d3c2fe992b1dddcd2c549cccf1e5576f6b97b | refs/heads/master | 2021-08-24T11:21:12.061699 | 2017-12-09T14:13:08 | 2017-12-09T14:13:08 | 112,865,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | h | nativo.h | /**
* @file nativo.h
* @brief Definicao da classe Nativo para representar
* um animal nativo
* @author Lael Rodrigues(laelrodrigues7@gmail.com)
* @since 03/12/2017
* @date 07/12/2017
*/
#ifndef NATIVO_H
#define NATIVO_H
#include "silvestre.h"
#include <ostream>
using std::ostream;
#include <string>
usin... |
b1b11d7c0538f32c47f9fe4b491c3c3a946548de | 7919fce16d775fc73dbb82d5a99d2c0250b97ddd | /8. 문자열/[11654]아스키 코드.cpp | a775547a5da9d963f19235f169ed22135d29ddbc | [] | no_license | David-Donghyun-Kim/Baekjoon | 2da3c774a2ab4dea35e070c24fd3686125b297bd | 9bfc4e57bbbf89f520b2083c63b4b33af62d2b3b | refs/heads/master | 2022-11-18T09:45:44.499389 | 2020-07-24T05:52:16 | 2020-07-24T05:52:16 | 278,527,440 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | cpp | [11654]아스키 코드.cpp | #include <iostream>
using namespace std;
int changeToAscii(char input)
{
return (int)input;
}
int main()
{
char input;
cin >> input;
cout << changeToAscii(input) << "\n";
return 0;
} |
2b7c465658c311f0b6f4f125bdcbdb1d1c860917 | 6773a0f4a4a30d0ec78db763670f02a9c3f40afe | /DosyalamaOdev/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp | 6c88395106995893539542b87bb08f0f9d6d6f76 | [] | no_license | oguzhankrcb/C-PD2-ve-PD1-Laboratuvar-ve-odevler | 036f11d92e8ff165612c3a911094be498cdc6e6e | 39d69620e30d5121bb7ab00d937021dc42d8a478 | refs/heads/master | 2022-10-01T05:38:42.766741 | 2020-06-01T21:42:06 | 2020-06-01T21:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,023 | cpp | ConsoleApplication1.cpp | // ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <io.h>
#include <string.h>
struct ogrenci
{
char k;
char num[10];
char adsoyad[30];
char tel[16];
} ogrkay;
FILE *dosya;
int i, kaysay, say;
long kayit_yer;
ch... |
ef308edcf44a257fd1a68eadd7b4f371d50223f8 | 2ba100db9cdaf071fb90c40827f01d37cb4758b1 | /data/offline/makeUSCorrections.cxx | 9eb761eb9114efa765b631ff037aff613541a639 | [] | no_license | rhanniga/kaon-over-hadron | 3b1bc02525350f31d45d48f6738800ca75edfd04 | 7e87f8db9fb536b5e7cad83c9ee74075098e8a67 | refs/heads/master | 2023-09-06T06:12:41.072321 | 2021-10-05T21:34:10 | 2021-10-05T21:34:10 | 265,469,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,258 | cxx | makeUSCorrections.cxx | void makeUSCorrections(string inputFile){
TFile* input = new TFile(inputFile.c_str());
TH2D* hKaon2Dpeak = (TH2D*)input->Get("hKaon2Dpeak");
TH2D* hKaon2DLside = (TH2D*)input->Get("hKaon2DLside");
TH2D* hKaon2DRside = (TH2D*)input->Get("hKaon2DRside");
TH2D* hKaonLS2Dpeak = (TH2D*)input->Get("hKaonL... |
49fcf889b4adc45c1d34d9827f967003ac6504f5 | af66e6182acb7e51a2d2531cf6a0574c717e11f0 | /code/sources/Scene.cpp | 4e2aa05b3eb9bf69905d224898fa47deaf773826 | [] | no_license | Gonigox/ModelLoader | 6a3d1c9c453702ac4fedfcd65ca442020dcb3ebd | 9a1294a9f4a4e8f7d4ece8589a898eb45d62ec09 | refs/heads/master | 2023-06-18T06:48:12.511205 | 2021-05-11T11:07:16 | 2021-05-11T11:07:16 | 386,234,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,844 | cpp | Scene.cpp | #include <Scene.hpp>
namespace model_view
{
Scene::Scene (unsigned width, unsigned height, std::string name, Vector3f ligth)
:
render_task (width, height, name, this),
window (sf::VideoMode(width, height), name, sf::Style::Titlebar | sf::Style::Close),
camera ()
{
... |
2e6bc436434a90d126b1b2ed80b067f62812ebea | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5744014401732608_0/C++/kphmd/B-CodeFile.cpp | 1af34ff6121230134e2600b95ef37bded4455bb5 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,271 | cpp | B-CodeFile.cpp | #include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <list>
#include <map>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <set>
#include <utility>
#include <stack>
#define rep... |
8adf1d0bfd586a0979462210b61fcec4eaeff362 | 79ae5b24a2663056157b746e7d13b72657eaad07 | /polyscan.h | 2e38b7ca6b6e432a20dd3842da500c777f641a2e | [
"MIT"
] | permissive | Beifang/msisensor | 3b52496dfb8e8acbc07fa4d2971d373fded2b4fe | 749c46a4a1a9a15a907bbd28e675a19b5459bfd6 | refs/heads/master | 2020-03-22T04:48:11.981009 | 2018-07-02T07:50:50 | 2018-07-02T07:50:50 | 139,522,196 | 1 | 0 | MIT | 2018-07-03T03:11:05 | 2018-07-03T03:11:05 | null | UTF-8 | C++ | false | false | 3,180 | h | polyscan.h |
/*
* polyscan.h for MSIsensor
* Copyright (c) 2013 Beifang Niu && Kai Ye WUGSC All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including ... |
d5aec6325c8b7bda7304ed6d27992ee4333f7650 | b119c47632e56d5bce498a7bc094f1ae39444521 | /include/retro/Core.h | 748a01cf1685be09006566f351bbc4c0ff098f85 | [
"MIT"
] | permissive | mickiboy/retroportal | 20cd12de443482f311c345147fc236a1a9ede640 | 91bbd94da4750b1485f9d8f96f6575e008d9f46c | refs/heads/master | 2021-03-30T17:58:15.776949 | 2017-10-31T14:41:49 | 2017-10-31T14:41:49 | 107,414,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,808 | h | Core.h | #pragma once
#include <string>
#include <libretro.h>
#include <dynamic/dylib.h>
#include "Drawable.h"
#include "Mesh.h"
#include "ShaderProgram.h"
#include "Texture.h"
namespace retro
{
class Core : public Drawable
{
public:
Core(const std::string& path);
virtual ~Core();
Mesh& ge... |
16f1cd5ed40ba717304a0b4478321d2d6f03e639 | 4ef0917e45437473aca4d5537ad9f9746e5e2ce5 | /kehnetwork/inputcache.h | 613414e15e5cd3d58863b614a7d978b64dee4558 | [
"MIT"
] | permissive | baiduwen3/GodotModulePack | bef396fa8c31bb57f20662d1162295afb2aea451 | 9f2bbcdeb00bc577598680a22601be79220c5352 | refs/heads/target-gd3.2 | 2023-03-18T12:14:24.630420 | 2021-03-11T21:19:33 | 2021-03-11T21:19:33 | 467,752,651 | 1 | 0 | MIT | 2022-03-09T02:42:07 | 2022-03-09T02:42:06 | null | UTF-8 | C++ | false | false | 5,688 | h | inputcache.h | /**
* Copyright (c) 2021 Yuri Sarudiansky
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... |
865251d811e43bbce642dacec0630854bca8e0ef | 761c4e71dcd882fbc815766bfe2dffa6a04f2ef4 | /Edu 86 div2/C2.cpp | 652d024784ffa335aa360586845975255db94177 | [] | no_license | Adityasharma15/Codeforces | 419838d8672c2106a8135b5bd495f2c3da259d7d | 31e61d11db0e9ab749c5d97fbb14ae482655615d | refs/heads/master | 2021-04-05T15:08:01.415459 | 2020-11-20T12:13:25 | 2020-11-20T12:13:25 | 248,570,193 | 3 | 3 | null | 2020-10-23T05:59:42 | 2020-03-19T17:56:09 | C++ | UTF-8 | C++ | false | false | 700 | cpp | C2.cpp | #include<bits/stdc++.h>
#define ll long long
using namespace std;
ll a, b, q;
ll x, y;
ll find(ll x, ll hcf)
{
ll div = (x/hcf)*(hcf-x);
x%=hcf;
if(x>=a)
{
div+=(x-a+1);
}
return div;
}
ll gcd(ll a, ll b)
{
if(a == 0)
return b;
return gcd(b%a, a);
}
int main()
{
ios_base::sync_with_stdio... |
0f5ea96219c3370a23a5eb267df0fc8ccb86e8ff | c8bbec8d873b6622fa876afe1b2a1fa880c143b8 | /Assignment2/Source/assignment2/AnimInst_Character.cpp | 3179b7c18454b54a2f66a2cd4b6101051fadd0c1 | [] | no_license | maksimTMZ/IK_foot_constraints | 0bbad8bdea82d22dff791ffb36ef3004750ad56c | 750a286a7ececa542378ab607c1287bec3f328ea | refs/heads/main | 2023-03-19T07:53:23.042478 | 2021-02-17T18:48:47 | 2021-02-17T18:48:47 | 339,819,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | cpp | AnimInst_Character.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "AnimInst_Character.h"
UAnimInst_Character::UAnimInst_Character()
{
}
void UAnimInst_Character::NativeInitializeAnimation()
{
Super::NativeInitializeAnimation();
Init_IKFootRef();
}
void UAnimInst_Character::NativeUpdateAni... |
9ac126cfaba4e3f2b8c5389ae872ec0d15047623 | eaf5c173ec669b26c95f7babad40306f2c7ea459 | /abc125/abc125_b.cpp | 468065e9137b6aeba3fe2170ce2d1cba265bcb52 | [] | no_license | rikuTanide/atcoder_endeavor | 657cc3ba7fbf361355376a014e3e49317fe96def | 6b5dc43474d5183d8eecb8cb13bf45087c7ed195 | refs/heads/master | 2023-02-02T11:49:06.679743 | 2020-12-21T04:51:10 | 2020-12-21T04:51:10 | 318,676,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | cpp | abc125_b.cpp | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define sz(x) ll(x.size())
typedef long long ll;
typedef pair<int, int> P;
//typedef pair<ll, ll> P;
//const double INF = 1e10;
const ll INF = 1001001001;
#define mins(x, y) x = min(x, y)
#define maxs(x, y) x ... |
3e635d9c5f33392b32884138c45ef62149b09ef7 | 30e7c3853c7a7c08355d25c98bdabc9039b08d6d | /GPTP/hooks/load_unload_proc.cpp | b1853b28bcb7bcae45397037d478ab15c9379170 | [] | no_license | KYSXD/GPTP-For-VS2008 | 85712bc27680a0bc1850c9bed208217f73bb2ab9 | e9c283d7f89c3f4d269a10d1b162dd0a34f1faa4 | refs/heads/master | 2020-04-05T23:01:28.513167 | 2018-11-20T18:20:27 | 2018-11-20T18:20:27 | 41,927,927 | 5 | 0 | null | 2015-09-04T17:08:10 | 2015-09-04T17:08:09 | C++ | UTF-8 | C++ | false | false | 9,782 | cpp | load_unload_proc.cpp | #include "load_unload_proc.h"
#include <SCBW/api.h>
// helper functions def
namespace {
u32 getUpgradedWpnCooldown(CUnit* unit, u8 weaponId); // 75DC0
void IgnoreAllScriptAndGotoIdle(CUnit* unit); // 76550
void hideAndDisableUnit(CUnit* unit); // E6340
u32 function_004E76C0(C... |
6228169558e90a545c8dc8fdad45961e604390a2 | e7b2e37d0cf91d29c5848c8e76bf10154bbd53e9 | /algselecaoInterno.cpp | 42e806cfba0d992de230d25d2f779329f588c74b | [] | no_license | PatriciaDuarte/APC | ca42f24bc874b96370f8af15605f1f60b1eeedc4 | 9ebb9bd6e79bc4a328d8ce6ac04dcafd7f7d7db5 | refs/heads/master | 2020-06-03T05:24:50.935675 | 2019-06-12T00:12:57 | 2019-06-12T00:12:57 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 792 | cpp | algselecaoInterno.cpp | //Autora:Patrícia Duarte da Silva -201514322
#include<stdio.h>
#include<stdlib.h>
#define TAMANHO 10
void selecao(int vetor[], int tamanho); //Declaração da função
void selecao(int vetor[], int tamanho)
{
int posMinimo;
for (int i = 0; i<(TAMANHO-1); i++)
{
int minimo = vetor[i];
for (int j = ... |
5b2493630081af6f3af2ca5416e8f63973407558 | c6fa53212eb03017f9e72fad36dbf705b27cc797 | /SLHCUpgradeSimulations/L1CaloTrigger/plugins/L1CaloProtoClusterSharing.cc | 55d44c203b0e9e84f2a16b4ae350ab7b0b53f893 | [] | no_license | gem-sw/cmssw | a31fc4ef2233b2157e1e7cbe9a0d9e6c2795b608 | 5893ef29c12b2718b3c1385e821170f91afb5446 | refs/heads/CMSSW_6_2_X_SLHC | 2022-04-29T04:43:51.786496 | 2015-12-16T16:09:31 | 2015-12-16T16:09:31 | 12,892,177 | 2 | 4 | null | 2018-11-22T13:40:31 | 2013-09-17T10:10:26 | C++ | UTF-8 | C++ | false | false | 9,220 | cc | L1CaloProtoClusterSharing.cc |
#include "SLHCUpgradeSimulations/L1CaloTrigger/interface/L1CaloAlgoBase.h"
#include "SimDataFormats/SLHC/interface/L1CaloClusterWithSeed.h"
#include "SimDataFormats/SLHC/interface/L1CaloClusterWithSeedFwd.h"
#include "SLHCUpgradeSimulations/L1CaloTrigger/interface/TriggerTowerGeometry.h"
#include "SimDataFormats/SL... |
c87b33fb5e3be997091adce3c6095507fd7b1ca1 | 73ee941896043f9b3e2ab40028d24ddd202f695f | /external/chromium_org/chrome/browser/extensions/api/serial/serial_api.cc | b0e7925c9eb4ce9314507dfefbefa0e3c4363f54 | [
"BSD-3-Clause"
] | permissive | CyFI-Lab-Public/RetroScope | d441ea28b33aceeb9888c330a54b033cd7d48b05 | 276b5b03d63f49235db74f2c501057abb9e79d89 | refs/heads/master | 2022-04-08T23:11:44.482107 | 2016-09-22T20:15:43 | 2016-09-22T20:15:43 | 58,890,600 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 10,986 | cc | serial_api.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/serial/serial_api.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_system.h"
#includ... |
4854b8f0ba9f7c751f511508afcd4a20095f32d1 | 3478ccef99c85458a9043a1040bc91e6817cc136 | /Project/HanWenBook/Source/Data/HWDocDynamic.h | a1f057fdaaa55d1979aef97f414d94fd8b22250b | [] | no_license | gybing/Hackett | a1183dada6eff28736ebab52397c282809be0e7b | f2b47d8cc3d8fa9f0d9cd9aa71b707c2a01b8a50 | refs/heads/master | 2020-07-25T22:58:59.712615 | 2019-07-09T09:40:00 | 2019-07-09T09:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,262 | h | HWDocDynamic.h | #pragma once
#include "HWDocBase.h"
#include "json.h"
class HWParaBookNoteList : public HWParaUI
{
public:
HWParaBookNoteList(const juce::String& szBook, HWEnum_DynamicType tp, int nBegin, int nCount, bool bHasFlower)
: m_strBook(szBook), m_tp(tp), m_nBegin(nBegin), m_nCount(nCount), m_bHasFlower(bHasFlow... |
e8a869e888c2bc0e5e3cef802384e6c7eeae328c | 1b6b94ecbd7f8882ca0609c39bcfb09affc9bb77 | /CH6/6-2.cpp | 9fe50d86d482a9604277f368680c9d4161affd0e | [] | no_license | NLGRF/Course_Cpp | 112bd9ed50e7d67b3a8c9b4627add0c8a46d65fe | 6acd21aba9fce805bd530d1234554783f710ff3b | refs/heads/master | 2020-03-21T05:46:16.328372 | 2018-06-21T14:11:33 | 2018-06-21T14:11:33 | 138,178,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | cpp | 6-2.cpp | #include <iostream>
using namespace std;
int main()
{
int arr2D[3][5], num;
for (int i = 0; i < 3; i++){
for (int j = 0; j < 5; j++)
{
num +=1;
arr2D[i][j] = num;
}
}
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 5; j++){
cout <<"\t"<< arr2D[i][j];
}
cout << endl;
}
return 0;
}... |
dbd7aa79f62a19cf939668e708ddd25587c83209 | a60e0d61aeea3e7d332d80527424f1db1b02e918 | /hw5/hw5_final_sprint3/Customer.cpp | f41555c91724d5eddb51c15ad6687bc75c5de816 | [] | no_license | KRT0335/CSE1325 | 00a55bd181e03ec947263cddeaa03ccdfd302019 | b3382800b9b4cafcdb0b286624c47666f66eee69 | refs/heads/master | 2021-01-12T13:00:56.105818 | 2016-11-22T13:28:12 | 2016-11-22T13:28:12 | 70,111,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,279 | cpp | Customer.cpp | #include "Customer.h"
void Order::addCustomerInfo(Customer c) {
customer.push_back(c);
}
int Customer::get_modelNumber(int index) {
return modelNumber;
}
string Customer::get_customer_name(int index) {
return customerName;
}
void Order::printCustomerName(int index) {
cout << customer[in... |
3193ded05e80d81db507074eb01f2a455a444b6d | e33c16e84d5f558786ffc583718e782cd49b5dd8 | /tests/absor-test.cpp | d3512911627a344007816acbb242852226c4d59e | [
"MIT"
] | permissive | d-SEAMS/seams-core | fa4eaa14be9059f2a0fb87f2725866290d0ebe94 | e42be0a1f28de2f8d6b44b6cf97e20cc4c058266 | refs/heads/main | 2023-08-31T02:01:40.889157 | 2023-08-23T19:38:29 | 2023-08-23T19:38:29 | 164,746,444 | 29 | 6 | MIT | 2023-08-23T19:38:30 | 2019-01-08T22:50:43 | C++ | UTF-8 | C++ | false | false | 15,481 | cpp | absor-test.cpp | // Internal
#include <absOrientation.hpp>
#include <bulkTUM.hpp>
#include <franzblau.hpp>
#include <mol_sys.hpp>
#include <neighbours.hpp>
#include <pntCorrespondence.hpp>
#include <ring.hpp>
#include <topo_bulk.hpp>
// Standard
#include <iostream>
#include <catch2/catch.hpp>
#include <rang.hpp>
SCENARIO("Test the s... |
0ceea1d20a0199002373c0cc9f6607cb91b13cf5 | 2b1fd41b44de40a938f09622276c10d627cd1124 | /ObjectManger.cpp | c2fa2a5e46fa4ba305a957df3bd4c82da77c2fe8 | [] | no_license | Team-2years/MapTool | 36ebf19b0f42042e407d254fa1f1943e6974cad8 | e43f9266f7681ef67a605bb39c72d4c30d7c2a2a | refs/heads/master | 2023-06-25T08:31:33.483200 | 2021-07-28T03:35:21 | 2021-07-28T03:35:21 | 390,199,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | cpp | ObjectManger.cpp | #include "stdafx.h"
#include "ObjectManger.h"
HRESULT ObjectManger::init()
{
return S_OK;
}
void ObjectManger::release()
{
}
void ObjectManger::update()
{
for (_viObject = _vObject.begin(); _viObject != _vObject.end(); ++_viObject)
{
(*_viObject)->update();
(*_viObject)->move();
}
}
void ObjectManger::rende... |
a5222a88229a48482c264a2785afef726bc04a60 | 9b4f4ad42b82800c65f12ae507d2eece02935ff6 | /header/Math/Vector2D.h | 425af158cb07efb7aebc897d3d1dfd86b58314f9 | [] | no_license | github188/SClass | f5ef01247a8bcf98d64c54ee383cad901adf9630 | ca1b7efa6181f78d6f01a6129c81f0a9dd80770b | refs/heads/main | 2023-07-03T01:25:53.067293 | 2021-08-06T18:19:22 | 2021-08-06T18:19:22 | 393,572,232 | 0 | 1 | null | 2021-08-07T03:57:17 | 2021-08-07T03:57:16 | null | UTF-8 | C++ | false | false | 986 | h | Vector2D.h | #ifndef _SM_MATH_VECTOR2D
#define _SM_MATH_VECTOR2D
namespace Math
{
class CoordinateSystem;
class Vector2D
{
public:
typedef enum
{
VT_UNKNOWN,
VT_POINT,
VT_MULTIPOINT,
VT_POLYLINE,
VT_POLYGON,
VT_IMAGE,
VT_STRING,
VT_ELLIPSE,
VT_PIEAREA
} VectorType;
prote... |
d2085428fb6f9e922b83b4ae9605675e6bb21bb8 | 73a4689f209c33b64a94a773524b4cc27d64578f | /SME_source.cpp | 40e0702aaa869bbed3647fa07b63da868b1231b4 | [
"Zlib"
] | permissive | Phase-Matrix-Software/SME-Audio | 2f22214c6e66c90c24c24bb63ec11405d5ca6c28 | 7a37fddd726f166ba28b55d0d23982916030dcd0 | refs/heads/master | 2020-04-06T07:08:18.385256 | 2016-09-10T23:43:34 | 2016-09-11T13:10:30 | 64,018,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,216 | cpp | SME_source.cpp | #include "SME_source.h"
#include <vector>
#include <algorithm>
using namespace SME::Audio;
extern std::map<std::string, ALuint> buffers;
std::vector<Source *> sources;
Source::Source() {
alGenSources(1, &id);
ALfloat sPos [] = {0.f, 0.f, 0.f}; //positive x == left
ALfloat sVel [] = {0.f, ... |
5a18afede482e59f0777e8f548c77650bcbc0dc8 | 2b626d592a2df54e75ca6516f7ede44375614711 | /Day03/BinarySearchTree/main.cpp | 1b34ddc991d23b0a537021b1348a11663e2bd019 | [] | no_license | ITI-9-Month-Progrm/DataStructures-and-Algorithmes | c9cec989217fabce2cea55c3df1c3e969818a9b2 | 9955ba6e8d941f6b588d44182cbdd0c5ab02323f | refs/heads/main | 2023-01-30T23:19:37.074993 | 2020-12-18T12:52:28 | 2020-12-18T12:52:28 | 321,534,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | cpp | main.cpp | #include <iostream>
#include "BST.h"
using namespace std;
int main()
{
cout << "Hello world!" << endl;
BST <int>b;
b.addNode(50);
b.addNode(60);
b.addNode(20);
return 0;
}
|
e90bdaf959db31580aa5bd3942c89bf02fa4a51b | 9936b91663fddcbbd9d8622f1ed28db7f6ef786e | /Cplusplus/Cplusplus_oldsnippets/PRIM_SUDOKU/sudoku/funzioni.h | 906c50467c8cef17929b26c65c5744260676a621 | [] | no_license | sitodav/before-november-2014 | 9a49af237aabf1d7180e1e764f9aa3fa5a6cc667 | c00bacccd12079d1e946c15d2e972a59f79a4888 | refs/heads/master | 2021-01-20T15:38:58.403928 | 2015-05-23T09:23:35 | 2015-05-23T09:23:35 | 26,176,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | funzioni.h | #include <iostream>
#include <cstdlib>
#include "matrice.h"
#include <fstream>
using namespace std;
bool riempi_unica(int &n_cicli_backtracking,matrice *matrix,int i,int j);
void riempi_plurime(int &n_soluz,int &n_cicli_backtracking,matrice *matrix,int i,int j);
void set_clues(matrice *matrix);
void read_clues(matrice... |
0e6d83bbd25281d630a70524b72be51ec116c2ef | 00df5d7bfccab963d6462588c1d169a88b2c8596 | /beziersurface.h | 7104155a469e4cb0916dcf87f86b010bb9516afd | [] | no_license | FabianNiehaus/CG_2018_Project01 | 62f555af522c56da8941d40ab1da8624f6e0dd15 | 333ba3f30e6a07862a086ab9f92125e02287039c | refs/heads/master | 2020-03-09T16:33:51.849150 | 2018-05-14T09:57:46 | 2018-05-14T09:57:46 | 128,888,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,099 | h | beziersurface.h | /*
* Datum: 14.05.2018
* Autoren: Tuyet Nguyen, Fabian Niehaus
*/
#ifndef BEZIERSURFACE_H
#define BEZIERSURFACE_H
#include <cmath>
#include <vector>
#include <string>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include "vertex.h"
#include "quad.h"
#include "vertexmatrix.h"
usi... |
1d60a417d880733005aed02a67936615a9b4fe6f | 1d43af85b148e93bf37f3e0f17ab2c874bb3ddbe | /OpenGL/ParticleSystem.cpp | 6dd51b5d91101904e8d2756022c9887760b0c28d | [] | no_license | MartinManzinger/OpenGL | e34fa38fe46d9a4752579b9f17cdcf6c5638d3cb | 2efcb1dfb3563fafc4170cd3ed2f5aaf4f102fd1 | refs/heads/master | 2021-05-14T04:15:34.335874 | 2018-01-08T22:41:52 | 2018-01-08T22:41:52 | 116,639,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,359 | cpp | ParticleSystem.cpp |
#include "ParticleSystem.h"
#pragma region Struct_pt2d
// constructors
pt2d::pt2d()
{
x = 0;
y = 0;
}
pt2d::pt2d(float in_x, float in_y)
{
x = in_x;
y = in_y;
}
// operator overloading
pt2d pt2d::operator * (float Multiplier)
{
pt2d ReturnVal(this->x * Multiplier, this->y * Multiplie... |
a8dc15e64e93e28a2d4f7de1398bf34bcedc2aa3 | c51bc5c927f2dc103cc01b80133a637b68690f7b | /source/platform.cpp | b25725999427dd7cfc3ec12672d94425224473d5 | [] | no_license | HenaMakoedov/Arkanoid | 0cf53e1d0054433b7dd4407a33ff63b031652819 | f3346d992feb4e824d49ec4e864871b56510bdaf | refs/heads/master | 2021-01-19T09:28:55.171902 | 2017-02-16T01:03:13 | 2017-02-16T01:03:13 | 82,117,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,178 | cpp | platform.cpp | #include <SFML/Graphics.hpp>
#include "../include/platform.h"
using namespace sf;
extern const String SPRITES;
Platform::Platform()
{
//set the default setting for platform
this->platformImage.loadFromFile(SPRITES);
this->platformTexture.loadFromImage(platformImage);
this->pl... |
89eee9afe9c86641c193be47bda32c4e32b6986a | 94e5a9e157d3520374d95c43fe6fec97f1fc3c9b | /@DOC by DIPTA/collected/sgtlaugh/Mo's Algorithm On Trees (Edges).cpp | d75a5567976f3945b2307ef58fe15409ca34ff6b | [
"MIT"
] | permissive | dipta007/Competitive-Programming | 0127c550ad523884a84eb3ea333d08de8b4ba528 | 998d47f08984703c5b415b98365ddbc84ad289c4 | refs/heads/master | 2021-01-21T14:06:40.082553 | 2020-07-06T17:40:46 | 2020-07-06T17:40:46 | 54,851,014 | 8 | 4 | null | 2020-05-02T13:14:41 | 2016-03-27T22:30:02 | C++ | UTF-8 | C++ | false | false | 3,398 | cpp | Mo's Algorithm On Trees (Edges).cpp | /// Frank Sinatra, Winter Training Camp Moscow SU Trinity Contest
/// Given a weighted tree, find the minimum non-negative value which does not occur in the path from u to v
#include <bits/stdtr1c++.h>
#define MAXN 100010
#define MAXQ 100010
#define MAXV 100010
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read()... |
325ea08e01d08fa5e31ee445b5e07719c21829d5 | 00860189fe96c3ede4eefa3080b928eb40f671c2 | /tkrzw_file_test_common.h | 205808c612cdc4c4fef87f107b70d72426e7ed5e | [
"Apache-2.0"
] | permissive | estraier/tkrzw | a22c578fd6cba0068193c45cd8cf513021a5ee75 | 621669b98b5aacd6e24298e5a112b474b1f155e6 | refs/heads/master | 2023-05-11T16:16:39.176335 | 2023-05-05T18:19:40 | 2023-05-05T18:19:40 | 278,320,002 | 152 | 23 | Apache-2.0 | 2023-05-05T10:19:16 | 2020-07-09T09:23:22 | C++ | UTF-8 | C++ | false | false | 25,407 | h | tkrzw_file_test_common.h | /*************************************************************************************************
* Common tests for File implementations
*
* Copyright 2020 Google LLC
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obta... |
475974b2acd8d9a19982c7b4a47207645cc3b980 | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/mpl/advance_fwd.hpp | 2d8ec71b11cde4c85120f60416d54c981504e8d7 | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | hpp | advance_fwd.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:8d6acc3e465cbb29e8e45dc7ce490e3b9d0109939d2807d751bba194ca375bf1
size 660
|
012accdb19cfffd20212d48fc942e6b8b3b6124c | 01dad38fa2b2d0aa4734c3b535321216e6c8f0e0 | /engine/quake.cpp | c17612b5d9c352288757d4d30e038870bf322717 | [] | no_license | study-game-engines/lamorna | 4b74e35504411a208fb460afc50b4debb3acaa29 | 73f01bdaafe2a5716bd3a4d4ee00c0806f902c48 | refs/heads/master | 2023-05-14T10:07:11.508902 | 2018-11-21T22:17:56 | 2018-11-21T22:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,276 | cpp | quake.cpp |
#include "quake.h"
#include "vector.h"
#include "texture.h"
#include "model.h"
#include "memory.h"
#include "string.h"
struct uchar3 {
unsigned char channel[3];
};
uchar3 colour_map[] = {
{ 0, 0, 0}, { 15, 15, 15 }, { 31, 31, 31 }, { 47, 47, 47 },
{ 63, 63, 63 }, { 75, 75, 75 }, { 91, 91, 91 }, { 1... |
b5b05924c6fa171a69fb69a4e829b30151b26202 | 390e18bfd0389f8ab038f533242be48de8840f71 | /source/GTA2.WidescreenFix/dllmain.cpp | e238e2c43907d0a641f651550731a91abaa42fe9 | [
"MIT"
] | permissive | MerkeX/WidescreenFixesPack | a690af07b39f4c00206961ab372dd2e4aa4400a3 | 2e68de17dc816583d2e72c5b635ececfb48b0a99 | refs/heads/master | 2023-02-03T06:07:20.229966 | 2023-01-23T12:06:49 | 2023-01-23T12:06:49 | 239,059,498 | 0 | 0 | null | 2020-02-08T02:52:26 | 2020-02-08T02:52:25 | null | UTF-8 | C++ | false | false | 16,263 | cpp | dllmain.cpp | #include "stdafx.h"
int& window_width = *(int*)0x673578;
int& window_height = *(int*)0x6732E8;
#define default_screen_width (640.0f)
#define default_screen_height (480.0f)
#define default_aspect_ratio (default_screen_width / default_screen_height)
#define screen_width ((float)window_width)
#define screen_height ((fl... |
4c96a1d2b3ec7b39671138764176f4aba3ba91ea | 5e6590c5f633fbca4663aaf79dee3a95a21447e8 | /Part2/SobelFilter/SobelFilter/Image.h | 8167a4610ff57a5a92d2dbd0b1b5155a5096e2e6 | [] | no_license | tuzimaster/FMRI_Non_Linear_Adaptive_Noise_Filter_Algorithm_And_Gui | cf031fc07523379c5d157c21150da5ad30bacef5 | 97b40a51c08b341ac2fc656e86069ed143769833 | refs/heads/master | 2021-01-20T20:57:37.249696 | 2012-10-23T03:21:15 | 2012-10-23T03:21:15 | 6,346,021 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 674 | h | Image.h | #pragma once
/* IMAGE.H - Image class */
#ifndef IMAGE_H
#define IMAGE_H
#include <stdio.h>
#include <iostream>
#include <fstream>
using namespace std;
class Image
{
int num_rows; //Number of rows in array
int num_cols; //Number of cols in array
float *data; //Array to contain pixel data
public:
Image(void); ... |
365b9fe90afd804e2d86a1a74058366efef2963c | ca574a9fd4de69d0b376e7f5ad89ae9354cfc289 | /计算器.cpp | 7ad5131d28e0eea585c4f59c89115bed94db5c7f | [] | no_license | nepentheSO16/test | 9d7c08d6b2622b09636773352da2c43990eb4503 | 88510f23d7b15049f9c1381ea98d4ac4cdbc4326 | refs/heads/master | 2022-12-14T02:32:52.185360 | 2020-09-10T03:30:20 | 2020-09-10T03:30:20 | 293,506,198 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 898 | cpp | 计算器.cpp | #include<iostream>
#include<string>
#include<cmath>
using namespace std;
struct A{
string n;
};
int jinzhizhuanhuan(string a,int h,int n){
cout<<"将这个数转换成十进制为:";
int l=0;
for(int i=0;i<n;i++){
l=l+(int)(a[n-i-1]-'0')*pow(h,i);
}
cout<<l;
return l;
}
void jinzhishibie(string a){
int i;
int n=a.length();
if(... |
dc269744ea865e6da64b7b7fabc6465ea5792916 | c15d124ea20024ed94884e0d457a4e24f024b377 | /1066.cpp | 6ca16bafa8a8218d72f284d3973a0a462c6354a7 | [] | no_license | zm2417/luogu-cpp | 34e37afaf96f17e45f1ccb2b883dea5584b332d0 | 40d4960dc7ccf84168707fd5f0285b2e325eb03f | refs/heads/master | 2020-12-21T02:24:12.088314 | 2020-03-11T07:44:39 | 2020-03-11T07:44:39 | 236,278,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,575 | cpp | 1066.cpp | #include <iostream>
#include <cmath>
#include <string>
using namespace std;
const int maxInf = 512;
string c[maxInf][maxInf];
int k, w;
int p, t;
// 高精度加
string add(string a, string b)
{
string ans;
int jw = 0;
for (int i = 0; i < max(a.size(), b.size()); i++)
{
int x = jw;
if (i < a.s... |
d8b77e5324e879ba23f26c9fc41aab500efdcbdf | 2ff3ddc4e2e3eb7f727e52965a714b3849ac1a3b | /include/FractalAgent.hpp | 01bb3a0e643e996211711a3eb3dd62a79411f59a | [] | no_license | Satre95/Tapestry | 74b6a2cd47df50f9a6aabc7a19cfbdd0af5ff3c6 | 9c90e6cb61b783c9530d22a9fce3fb2d7ea22226 | refs/heads/master | 2021-08-15T01:25:31.701494 | 2017-11-17T04:03:11 | 2017-11-17T04:03:11 | 108,938,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,777 | hpp | FractalAgent.hpp | #pragma once
#include <string>
#include <sstream>
#include <unordered_map>
#include <functional>
#include "cinder/GeomIo.h"
#include "cinder/gl/gl.h"
#include "cinder/Vector.h"
#include "Trail.hpp"
class FractalAgent
{
public:
FractalAgent(std::string axiom, ci::Color col = ci::Color::white());
~FractalAgent();
/... |
11f9be77979d5b11ce86471a55c2b316a1e9c940 | e3124a48f9bbd44103b3ab6e45fcf48a5571fa0f | /jni/Dead.cpp | 4dae1ab3c74230df2ff5e373f42a0caca9591377 | [] | no_license | Caerind/Tehos-Rebirth | 5eda881be8a8f2218c943245c377f2024cdd1083 | ddae1efbd68209fe3fa60e80c8d46b59e99a2b25 | refs/heads/master | 2021-06-10T14:52:00.772486 | 2016-12-13T01:01:49 | 2016-12-13T01:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,060 | cpp | Dead.cpp | #include "Dead.hpp"
#include "States\GameState.hpp"
Dead::Dead(ke::Scene& scene, std::size_t team, std::size_t type)
: ke::Actor(scene)
, mSprite(nullptr)
, mTeam(team)
, mType(type)
, mElapsed(sf::Time::Zero)
{
setZ(-50.f);
}
Dead::~Dead()
{
}
void Dead::initializeComponents()
{
mSprite = createComponent<ke:... |
cfff6984f2bc5ed2233c31554127b99bc002b009 | 311c461ccb552a2f25ce5a8308fced7ad71bb04c | /src/moci/graphics/image.test.cpp | 7c04aa38cafc0c76a6c949f5733e9b2e7aefb411 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | tobanteAudio/moci | 8fc61ef8ecf5692504098e304ac3b008eee52141 | c8f30d53e62ae256129a8980a50c10c69c36c54a | refs/heads/main | 2022-11-05T17:25:15.587196 | 2022-10-31T03:55:03 | 2022-10-31T03:55:03 | 247,848,003 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,331 | cpp | image.test.cpp | /**
* @file image.test.cpp
* @copyright Copyright 2019-2020 tobanteAudio.
*/
#include <catch2/catch_all.hpp>
#include "image.hpp"
TEST_CASE("graphics: ImageDefaultConstructor", "[graphics]")
{
moci::Image img {};
REQUIRE(img.getWidth() == 0);
REQUIRE(img.getHeight() == 0);
REQUIRE(img.empty() == tr... |
d6d71150b6d470477e40f0a5fa61a791d8874d6c | 709c504577148de3d7f3a247b2873e891d146cf8 | /demo3/VirtualRow.h | 5d38fd457a597c93022a86c098906d94f7c7bdb2 | [] | no_license | adam-zhang/pdfcreator | eaef6a3c8a8228e779670066d5888d47fa7dc6ff | 1211955ca8cfed662237a3eda6ff2082e167fdcb | refs/heads/master | 2022-02-10T08:19:05.157952 | 2019-07-23T01:13:45 | 2019-07-23T01:13:45 | 198,154,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | VirtualRow.h | #pragma once
#include <memory>
#include <vector>
class VirtualColumn;
class VirtualPage;
class VirtualRow
{
public:
enum RowType
{
NORMAL,
HEADER,
NEWHEADER,
};
public:
VirtualRow(void);
~VirtualRow(void);
private:
std::vector<std::shared_ptr<VirtualColumn>> columns_;
size_t columnCount_;
RowType rowTy... |
1c6136e05b874c2b5a9081582d3c8f01fcafe4c3 | 13a9587f8577167c70bed4f71cf6edec00408694 | /miosix/arch/common/drivers/serial_stm32.h | 0a7fd194ba8e66d214a68a827f015655de1869f0 | [] | no_license | fedetft/miosix-kernel | d67557aba5b53bb31a3f2c2d63f859425ab71774 | 69da7bffb18a5ed787c52367a9f17af0ebbd8e9e | refs/heads/master | 2023-08-07T15:14:51.788587 | 2023-07-31T07:48:08 | 2023-07-31T07:48:08 | 37,068,092 | 45 | 32 | null | 2023-05-23T12:02:08 | 2015-06-08T13:20:11 | C | UTF-8 | C++ | false | false | 11,751 | h | serial_stm32.h | /***************************************************************************
* Copyright (C) 2010-2018 by Terraneo Federico *
* *
* This program is free software; you can redistribute it and/or modify *
* it unde... |
6ea1d6d15f6a19055561351c3e09e0fef3f21d31 | 6c862c123645e595471323b6c45d449d71896109 | /LeetCode/C++/200_Number_of_Islands.cpp | 23bf6c2bd79266fc084fb5e77f0543b6f56cf48e | [
"MIT"
] | permissive | icgw/practice | 72083fc2e99b20aed937358d26e0ac0cfefd00ea | cb70ca87aa4604d1aec83d4224b3489eacebba75 | refs/heads/master | 2021-11-15T05:09:48.930754 | 2021-11-13T02:04:57 | 2021-11-13T02:04:57 | 144,442,645 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | 200_Number_of_Islands.cpp | /* Given a 2d grid map of `1's (land) and `0's (water), count the number of
* islands. An island is surrounded by water and is formed by connecting
* adjacent lands horizontally or vertically. You may assume all four edges of
* the grid are all surrounded by water.
*
* Example:
* Input:
* 11000
* 11000
* ... |
5c1d4f2394662eaaefd69395e79a58d5d3a19c8c | 984b9f12101b242d89be44e5fa4fa789a148b8a9 | /Source/common/util/lightmap/gen_lightmaps.hpp | 39bfe36bf2770fff7829d58176e7ff478a14d53e | [] | no_license | MegaMilkX/Katana | 84c7634d0354b2abdb30f2ebd6a41e68a6081ce2 | 8e63554bd6d10ffd3ecbc8736a94e5d4c288a221 | refs/heads/master | 2021-06-10T07:56:38.687774 | 2021-05-31T21:42:49 | 2021-05-31T21:42:49 | 167,166,151 | 4 | 1 | null | 2020-11-14T09:11:39 | 2019-01-23T10:43:48 | C++ | UTF-8 | C++ | false | false | 829 | hpp | gen_lightmaps.hpp | #ifndef GEN_LIGHTMAP_HPP
#define GEN_LIGHTMAP_HPP
#include "../../renderer.hpp"
#include "../../resource/mesh.hpp"
#include "../../resource/texture2d.h"
#include "../../ecs/attribs/base_attribs.hpp"
#include "../../lib/lightmapper.h"
struct LightmapMeshData {
int tex_width;
in... |
0147535d38ffedba191d212fae7c439c29f4a779 | a6d2579ecdb3c9f3edb94e0588841bbb5338d1fc | /lcy8047/coloredPaper.cpp | d163ba4b3111c7b3e4f73115b9b9a32b9068eab4 | [] | no_license | rpt5366/Challenge100_Code_Test_Study | 82f57c67b2354b61ebca74de9717e7f79dd2ec55 | 4dc9597791dd1fff47a1799108647aa1d370b549 | refs/heads/main | 2023-08-14T16:14:53.045597 | 2021-10-08T16:36:02 | 2021-10-08T16:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | cpp | coloredPaper.cpp | #include <bits/stdc++.h>
using namespace std;
int **paper;
int n;
int res_white = 0;
int res_blue = 0;
void solve(int y, int x, int size)
{
int first = paper[y][x];
bool is_same = true;
for(int i=y; i<y+size; i++)
{
for (int j = x; j < x + size; j ++)
{
if(paper[i][j] != f... |
29dfb08762cd903ba60739ef7d08121973ab1d27 | 0232b01aef1601ba40c2fa335fa02aefbda7c713 | /src/nearest.cpp | 1e37fb1476b841a2f0fb58c5664c4d0bc707c119 | [] | no_license | mjuric/satools | 9f4975da3964d003da02158faedaad45911d00c1 | ffc787c10240e96d733f226536402958262374ca | refs/heads/master | 2020-05-18T01:54:42.214495 | 2013-12-02T04:52:10 | 2013-12-02T04:52:10 | 3,584,056 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | cpp | nearest.cpp | #include "version.h"
#include <stdlib.h>
#include <fstream>
#include <astro/system/preferences.h>
#include "sloanobservation.h"
using namespace std;
using namespace peyton;
using namespace peyton::coordinates;
peyton::system::Preferences pref;
int main(int argc, char *argv[])
{
PRINT_VERSION_IF_ASKED(argc,... |
48eb27645f70dd0b36aa53352074009b032c1d48 | 1973f4faf2549e17ed780006a93114ca27f49131 | /src/cpp/core/types/MyriadDateTest.h | b6719b388f2223a3cf281d6420ed3db2a3d2e533 | [] | no_license | TU-Berlin-DIMA/myriad-tests | 7a6d79c469dc8c8604ac753bd8e09734f27673af | 66c760e070c2ee3c0fa626eaf6d1f1320d5a60be | refs/heads/master | 2021-01-15T12:16:13.651337 | 2014-09-19T12:35:03 | 2014-09-19T12:35:03 | 2,559,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,354 | h | MyriadDateTest.h | /*
* This file is part of the myriad-toolkit package.
*
* (c) 2010 Alexander Alexandrov <alexander.s.alexandrov@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#ifndef MYRIADDATETEST_H_
#define MYRIADDATETEST_H_
#inclu... |
baa861fbcbe0d4d859561225b75b4cff167158dc | 308f10b13b95252a8816f19798191f19f271e6dc | /test2/main.cpp | 207a64612806c0818dc90022ca0cae8e79efdbf4 | [] | no_license | pierre-amadio/SwordSandBox | 614066c49f754dca0cdc62455fa985a0e044d7c9 | 7810b06a56d1db9e534cc81a5ddc434f3d11c8a4 | refs/heads/master | 2023-01-10T16:16:00.234713 | 2022-12-26T14:32:14 | 2022-12-26T14:32:14 | 132,265,997 | 2 | 0 | null | 2018-05-25T12:55:57 | 2018-05-05T16:37:39 | C++ | UTF-8 | C++ | false | false | 3,138 | cpp | main.cpp | #include <QCoreApplication>
#include <QTextStream>
#include <swmgr.h>
#include <swmodule.h>
#include <markupfiltmgr.h>
using namespace::sword;
QTextStream& qStdOut()
{
static QTextStream ts( stdout );
return ts;
}
int showVerse(const char * bookName, const char * keyName){
SWMgr library(new MarkupFilter... |
193b9bfa31428ef34854c40b5cf89e61d3939a16 | c500a6489d2313ba9920565a0b499f5db1efd468 | /Mini-project/Functions/src/ProcessingSrc/freqFilt.cpp | 59a8e5d7b946a7f32803a1bdd48dcc01b77af0c3 | [] | no_license | AndersEllinge/Vision-E17 | 590eb776cfcc6372be2b622a2ea6f335fc028dcd | 6091de51b311fa978e3ca9c4bafb17131d2c3e92 | refs/heads/master | 2021-08-30T06:42:30.194852 | 2017-12-16T15:11:12 | 2017-12-16T15:11:12 | 104,188,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,622 | cpp | freqFilt.cpp | #include <opencv2/opencv.hpp>
#include <iostream>
void dftshift(cv::Mat& mag);
cv::Mat butterHP(cv::Size mag, int order, int d0);
cv::Mat butterLP(cv::Size mag, int order, int d0);
cv::Mat butterBS(cv::Size mag, int order, int d0, float width);
int main(int argc, char* argv[]) {
cv::CommandLineParser parser(argc... |
fce507b4520af4ab15efa630ec1a89f36c1f2ed2 | 19d50543968dd8fad21cb6cf703430df7f9dc221 | /test/mpi/matrix.cpp | 7b72f4aeaab033e1da44cfd5ad6eab658b7f46c5 | [
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"CECILL-2.0",
"MIT",
"LGPL-2.1-only",
"Unlicense",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"CECILL-C",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | ginkgo-project/ginkgo | 53bb384acc3bdcfa0e4a89810fdc4e9390fa4144 | 1100cbd2d86a9aa7388f1ace6aae2466e3bdf518 | refs/heads/develop | 2023-08-31T06:54:12.481543 | 2023-08-30T12:28:15 | 2023-08-30T12:28:15 | 117,122,510 | 352 | 102 | BSD-3-Clause | 2023-09-13T15:56:48 | 2018-01-11T16:14:21 | C++ | UTF-8 | C++ | false | false | 22,141 | cpp | matrix.cpp | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2023, the Ginkgo authors
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 co... |
8ea325c219d1f4db0cdfe9d93aaef2f368a1fbc9 | 9034cbe768c368a01f4b3870ef13e7eb920e6d1f | /тренировка/main.cpp | 3e359d1e0b87490e7327d0ba20ebb36e664b92dc | [] | no_license | Gerasimets/High-Level-Languages | 0c8d5a37803f6df969929961539e97d262b9abc5 | 96dd756edc67daff0e1f9c0d3f8adaf2225eb5e4 | refs/heads/master | 2020-09-21T04:30:34.397184 | 2020-04-03T13:10:23 | 2020-04-03T13:10:23 | 224,678,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,633 | cpp | main.cpp | #include <iostream>
// элемент списка
struct list_element
{
int value; // значение данного элемента списка
list_element* next; // указатель на следующий элемент списка
list_element* prev; // указатель на предыдущий элемент списка
};
// список
class list
{
public:
// данные
list_element* begin; /... |
f1ced81e646bbde9bed19ef9625928c17589ea20 | a70717537de46baab92d52e817fb626c18c1f9d1 | /Sobol_Lab_2.1/main.cpp | a70c3aeb1dc73813fafda7a34badb6cc1fb9fd66 | [] | no_license | kasobol/Lab_2_sem_3 | e361661f19611938b0c8a593502182807db57a4b | 6c7521a5284ba7a98f9b6207109c1484f8947b80 | refs/heads/master | 2023-03-03T00:46:14.100215 | 2021-02-08T08:00:06 | 2021-02-08T08:00:06 | 337,000,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,597 | cpp | main.cpp |
#include <iostream>
#include <ctime>
#include "Person.h"
#include "Dictionary.h"
#include "Sequence.h"
#include "LinkedListSequence.h"
#include "ArraySequence.h"
#include "Tests.h"
using namespace std;
int GetPlace(int* mas,int key, int size)
{
int start_binary_search = 0;
int end_binary_search = size -... |
94f8619b685fcaa172335a4bf09e90896f99665d | e67b65f9b0c5fa8215d92513e08fc97c8de23878 | /src/PriceCalculator/PriceCalculatorHarrasNoise.cpp | 78ec56b39f268afa402b4285c04713a68742ca30 | [
"BSD-3-Clause"
] | permissive | SABCEMM/SABCEMM | 25e55c9ff06717b78a038130337f75b4affccc6b | a87ea83b57a8a7d16591abe30e56db459e710a0e | refs/heads/master | 2018-12-20T05:43:41.085513 | 2018-12-12T09:29:23 | 2018-12-12T09:29:23 | 107,384,335 | 18 | 1 | null | 2018-01-02T14:37:31 | 2017-10-18T09:07:11 | C++ | UTF-8 | C++ | false | false | 4,220 | cpp | PriceCalculatorHarrasNoise.cpp | /* Copyright 2017 - BSD-3-Clause
*
* Copyright Holder (alphabetical):
*
* Beikirch, Maximilian
* Cramer, Simon
* Frank, Martin
* Otte, Philipp
* Pabich, Emma
* Trimborn, Torsten
*
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* followin... |
e291837880a3a372493822105d1d842c19907043 | 53f0935ea44e900e00dc86d66f5181c5514d9b8e | /dmih/05/ribari.cpp | 33fc23a43a61f46e1e333cbe60ec0486ed8abcc9 | [] | no_license | losvald/algo | 3dad94842ad5eb4c7aa7295e69a9e727a27177f6 | 26ccb862c4808f0d5970cee4ab461d1bd4cecac6 | refs/heads/master | 2016-09-06T09:05:57.985891 | 2015-11-05T05:13:19 | 2015-11-05T05:13:19 | 26,628,114 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | ribari.cpp | #include <cstdio>
#define MAX 100001
int kol[MAX], dist[MAX], n;
int probaj(int x) {
int uviz = 0;
for(int i = 0; i < n-1; i++) {
if(kol[i]+uviz < x)
uviz += (kol[i]-x) - (dist[i+1]-dist[i]);
else {
uviz+=(kol[i]-x)-(dist[i+1]-dist[i]);
if(uviz < 0) uviz =... |
6cb6a2669328d83f43d2847ccd484dbec24e418f | 20a277e4e8a4ad949c97e3e4cc6b7ef11cf5ae0b | /Segment Trees/Excercise/minQuery1.cpp | d54091772189b27c77100f417cd14e84ece4a343 | [] | no_license | Neilketchum/Compedetive-Programing | da265ffc218f63b87bd67160512c8f342f506702 | bd007eed7c1ae9e5b2dfe809ce9349b9d04ae7f5 | refs/heads/master | 2022-11-24T19:03:51.548401 | 2020-07-31T11:28:54 | 2020-07-31T11:28:54 | 269,554,949 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,842 | cpp | minQuery1.cpp | #include<bits/stdc++.h>
using namespace std;
void buildTree(int *arr,int s,int e,int *tree,int index){
if(s == e){
tree[index] = arr[s];
return;
}
int mid = (s + e)/2;
buildTree(arr,s,mid,tree,index * 2); //Left
buildTree(arr,mid+1,e,tree,2*index+1);//Right
tree[index] = min(tre... |
24d67bd46e5c409a95751f563ae9c3a37ce14100 | d926f924309ecd3335309b5a83591276e809d55e | /src/v/storage/tests/log_segment_appender_test.cc | 6624ee40b2337884ac1d00bc8cd692a1384226d1 | [] | no_license | kitaisreal/redpanda | 3446a03dd2fb7c8e2b35ee0e44bc97b4db4713cb | eb8c435a48efe1c7e428e92341479b72f7c67dde | refs/heads/dev | 2023-06-13T06:40:59.817143 | 2021-07-02T02:19:03 | 2021-07-02T02:19:03 | 382,417,691 | 0 | 0 | null | 2021-07-02T17:27:38 | 2021-07-02T17:27:37 | null | UTF-8 | C++ | false | false | 8,060 | cc | log_segment_appender_test.cc | // Copyright 2020 Vectorized, 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, Version ... |
6bbc877a2039d125f089582fa94b9f6486b34233 | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Solids_And_Fluids/SPH_CALLBACKS.h | d605054f724479ed89c69de156c8eb0ba17a2990 | [
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | C++ | false | false | 1,867 | h | SPH_CALLBACKS.h | //#####################################################################
// Copyright 2006, Nipun Kwatra, Frank Losasso, Jerry Talton.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//################################################... |
17b26018b4992b0ad4ab13d79da192a7100471d0 | 7eb2341d2e865d364203182da66e2081128c5c14 | /Algorithmn/Same Tree/Same Tree.cpp | 0f2de0441e8c9fde58f5c34357009136224586ce | [] | no_license | PatrickLin1993/LeetCode | bdd66b873e7b0c47c20506fd6af3c565a4c922d7 | cf5c8cdf00d850fcb2e48eaeaef831109511c9f7 | refs/heads/master | 2021-01-10T16:03:06.531308 | 2017-06-13T13:18:41 | 2017-06-13T13:18:41 | 46,721,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | Same Tree.cpp | //
// Created by Patrick-Lin on 15/11/26.
// Copyright © 2015年 Patrick-Lin. All rights reserved.
//
/*
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
*/
/**
* Definition for... |
8b95e85126e36fe724081660af0526d8cf056671 | 39551ef8b2a615c31885b907ed95d2c49247317a | /S3/C_C++/repo/cpp/familytree.cc | 3670a9c9fc2d4a1ca74a733784698e6419f00abc | [] | no_license | ariez-xyz/LectureNotes | cfbc07d60a39719971f5073f513f467198059cf2 | 5cba22f5c3c3554d02897e0aca646f05d3e9882f | refs/heads/master | 2023-06-09T20:20:03.147705 | 2021-07-08T20:52:16 | 2021-07-08T20:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,660 | cc | familytree.cc | #include "familytree.h"
#include <fstream>
#include <iostream>
#include <algorithm>
using namespace std;
FamilyTree::FamilyTree(string pathToFile) {
persons_.reserve(findNumPersons(pathToFile)); // resizing vector breaks pointers...
ifstream personenStream(pathToFile);
string fName, lName, gender, Y... |
0242993c38f4c98ed029de3ab51eb18c503736e9 | 9350cc816b7d08b49412163678744b062eda2a00 | /src/ros_arduino_imu_node.cpp | 1405ce88d6ac51b37ff5ea1c4e9163d520db172f | [] | no_license | gcc-robotics/ros_arduino_imu | ecc406cf4cff4962528d4869a48110406bc3c883 | 62a1647e2495c465bd0d46cfc481c04b112708ae | refs/heads/master | 2021-01-01T16:59:49.639448 | 2015-04-10T18:49:07 | 2015-04-10T18:49:07 | 33,391,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,863 | cpp | ros_arduino_imu_node.cpp | #include <iostream>
#include <stdio.h>
#include "ros/ros.h"
#include "sensor_msgs/Imu.h"
ros::Publisher imuPublisher;
#include "serial/serial.h"
int main(int argc, char **argv)
{
ROS_INFO("Starting ros_arduino_imu_node");
ros::init(argc, argv, "ros_arduino_imu");
ros::NodeHandle node;
ros::Publisher imuPublis... |
792492efd8f72fd16db32ab007afac394785d39f | 219d146ffa17dc50dec0626e30aa08db47eca33d | /eoftoken.h | 09a2f68de9d7578ea87af06cc520e3b2735c2cf4 | [] | no_license | johnfoley3/foley-compiler | 700aaf800672d58e6f849b08f4ff8a59b17d8c6c | 805a95f0822e4917eba4db2c450d1edbd83c0b96 | refs/heads/master | 2020-05-30T11:37:29.233196 | 2014-12-05T01:28:29 | 2014-12-05T01:28:29 | 24,428,765 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 452 | h | eoftoken.h | /*
Author: John Foley
URL: thisfoley.ninja
Date: 9.25.14
Last Edit: 9.25.14
*/
#ifndef EOFTOKEN_H
#define EOFTOKEN_H
#include "token.h"
#include <string>
using namespace std;
/* EofToken is a derived class (subclass) of Token */
class EofToken : public Token
{
public:
EofToken() ;
~EofToken();
string *ge... |
8572a57ca6289db32aaef46a6367104cff6b9f2e | bebc95de2ba0b18ab89807973ec445ba32e01d50 | /innative/lexer.cpp | a6b5659a4c8ac50a648cbc58f68372c2e20a2611 | [
"Apache-2.0",
"LLVM-exception"
] | permissive | innative-sdk/innative | c7cab04587382b019f699a45b48fbd85fa323ad5 | 1fb381d7dfabc581c42114aa66cf81ae63a06eb9 | refs/heads/master | 2023-08-30T03:33:20.190480 | 2022-12-27T21:03:49 | 2022-12-27T21:03:49 | 122,264,181 | 412 | 16 | Apache-2.0 | 2020-10-27T08:54:11 | 2018-02-20T22:24:52 | C++ | UTF-8 | C++ | false | false | 18,206 | cpp | lexer.cpp | // Copyright (c)2021 Fundament Software
// For conditions of distribution and use, see copyright notice in innative.h
#include "utility.h"
#include "wat.h"
#include "parse.h"
#include "validate.h"
#include <limits>
#include <cmath>
#include <algorithm>
using std::numeric_limits;
using std::string;
using namespace in... |
f20cd89dd645b83e676e269ddaeaed121aff3da2 | db94bdb5118e5852289c4b7f284f0908c75fc895 | /samples/stat_collector/utils.h | 4da8ef699a48b0b00abd1ca5b42948c77fcdfd55 | [] | no_license | TeLin1996/cv_temp | 37813d198db53149a46b6975f654e7caba833228 | 7f19f9eef88520253ee1d162a64b3b1805a55052 | refs/heads/master | 2020-03-23T11:44:41.902777 | 2018-07-24T09:19:20 | 2018-07-24T09:19:20 | 141,519,081 | 0 | 0 | null | 2018-07-19T03:20:36 | 2018-07-19T03:20:36 | null | UTF-8 | C++ | false | false | 2,116 | h | utils.h | /*
// Copyright (c) 2017 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
35a08b57dc607b9600ff8bf9ced1a6f185caf157 | 879681c994f1ca9c8d2c905a4e5064997ad25a27 | /root-2.3.0/run/MicroChannelFOAM/TurbulenceMicroChannel/0.192/epsilon | 249e7c2e1657940863fa550c2baaacd928ae630d | [] | no_license | MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu | 3828272d989d45fb020e83f8426b849e75560c62 | daeb870be81275e8a81f5cbac4ca1906a9bc69c0 | refs/heads/master | 2020-05-17T16:36:41.848261 | 2015-04-18T09:29:48 | 2015-04-18T09:29:48 | 34,159,882 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,083 | epsilon | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | |
bc889f9de8fac4fa5660c5c66c57c27940045bfc | 2f3e514598851d6747ea31bdbca308983a8c86f1 | /app/src/include/sma/thread_scheduler.hpp | 9c6760a6abe1e37b06adfb4ecc8840da816224f9 | [] | no_license | culiu/sma | f2110a4b2649085528f852c1a590adf24f9f4eab | fc6f12fbd70bbe9194db0c2212acb74c4d87b1ac | refs/heads/master | 2020-12-31T06:09:18.285213 | 2015-11-19T12:33:28 | 2015-11-19T12:33:28 | 45,673,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | hpp | thread_scheduler.hpp | #pragma once
#include "threadpool.hpp"
#include "delay_queue.hpp"
#include <chrono>
#include <mutex>
#include <functional>
namespace sma
{
namespace detail
{
class thread_scheduler final
{
public:
static thread_scheduler& instance()
{
static thread_scheduler instance;
return instance;
... |
ac257eb797a1094b389001fc27609e63b954b79b | 6f6a88ba519d9569b8bf17a1dd87537c24f28098 | /ExtinctionMonitorFNAL/Geometry/inc/ExtMonFNALMagnet.hh | d2db7bfee1c25d4c376ed87d17f8d115e8791286 | [
"Apache-2.0"
] | permissive | Mu2e/Offline | 728e3d9cd8144702aefbf35e98d2ddd65d113084 | d4083c0223d31ca42e87288009aa127b56354855 | refs/heads/main | 2023-08-31T06:28:23.289967 | 2023-08-31T02:23:04 | 2023-08-31T02:23:04 | 202,804,692 | 12 | 73 | Apache-2.0 | 2023-09-14T19:55:58 | 2019-08-16T22:03:57 | C++ | UTF-8 | C++ | false | false | 2,104 | hh | ExtMonFNALMagnet.hh | // Magnet parameters, used by both filter and detector magnets.
//
// Andrei Gaponenko, 2011
#ifndef EXTMONFNALMAGNET_HH
#define EXTMONFNALMAGNET_HH
#include <vector>
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Vector/Rotation.h"
namespace mu2e {
class ExtMonFNALMagnetMaker;
class ExtMonFNALMagnet {... |
a50398c9a4d70872563416cdffb6800e151a4d95 | cd995785dbbb8aef4d94a907fbd4f29d4a57b9bf | /SignalRLibraries/SignalRServer/Infrastructure/Connection.cpp | 0225cedae2fe115c6cadb7d63ec325a6c21cab50 | [
"BSD-3-Clause"
] | permissive | haseebshujja/signalr-qt | 977d0e13dd034221df667571efefe1900746a914 | 6c91cfed14f4f02f3372e64e571f04f1787ba822 | refs/heads/master | 2021-01-17T23:47:08.403236 | 2014-05-12T12:53:35 | 2014-05-12T12:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 114 | cpp | Connection.cpp | #include "Connection.h"
namespace P3 { namespace SignalR { namespace Server {
Connection::Connection()
{
}
}}}
|
37863792bc3be98605d5cc2f25de624eb10ca10e | a3bbe685d6189ad457a74a4ae37a043aa057ce29 | /testing/ecal/clientserver_test/src/clientserver_getservices.cpp | 2a0f3d9988c3e8621c1cbb3fcb7cdae0681d91ad | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-proprietary-license",
"BSL-1.0",
"LGPL-3.0-only",
"LGPL-2.0-only",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | FlorianReimold/ecal | 907c6b0a1afd892b127da38f03b44f29fb11a3b1 | 3caed0408453ad07b7c52474f78612e5db072ce0 | refs/heads/master | 2023-04-29T16:13:55.718136 | 2023-04-14T09:26:50 | 2023-04-14T09:26:50 | 246,595,576 | 0 | 0 | Apache-2.0 | 2020-03-11T14:36:58 | 2020-03-11T14:36:58 | null | UTF-8 | C++ | false | false | 4,852 | cpp | clientserver_getservices.cpp | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
352f86f8c4fce1d4f33b536dd5d719ff29846d37 | 634120df190b6262fccf699ac02538360fd9012d | /Develop/Game/UnitTest/TestFieldInfo.cpp | 2013b49ed8bfdcba3437c227b0276f6e9bb36a2d | [] | no_license | ktj007/Raiderz_Public | c906830cca5c644be384e68da205ee8abeb31369 | a71421614ef5711740d154c961cbb3ba2a03f266 | refs/heads/master | 2021-06-08T03:37:10.065320 | 2016-11-28T07:50:57 | 2016-11-28T07:50:57 | 74,959,309 | 6 | 4 | null | 2016-11-28T09:53:49 | 2016-11-28T09:53:49 | null | UTF-8 | C++ | false | false | 879 | cpp | TestFieldInfo.cpp | #include "stdafx.h"
#include "XFieldInfo.h"
SUITE(FieldInfo)
{
class FFieldInfo
{
public:
FFieldInfo()
{
}
~FFieldInfo()
{
}
void AddPvpArea(MRect rcArea)
{
PVP_AREA_INFO areaInfo;
areaInfo.rcArea = rcArea;
m_FieldInfo.m_PvPAreas.push_back(areaInfo);
}
XFieldInfo m_FieldInfo;
};
T... |
538f6ea03795f9fc23810650e54957e69ac43cbf | 966f2f0abd134c9b66ac408480c84bd9dc9a8858 | /testing/test_ui_engine/src/main.cpp | 9c14da6222b987810458e969c5b55cf1b44db707 | [
"Apache-2.0"
] | permissive | DimonSE/OpenRC | c4a5237e5056a40aaeace226a0d1f73e6ed6d518 | 87ed34d7588c876a44e7bac51f6ae3ca48771ca7 | refs/heads/master | 2020-05-30T00:04:05.837041 | 2015-02-11T19:42:52 | 2015-02-11T19:42:52 | 30,492,453 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,498 | cpp | main.cpp | #include <avr/io.h>
#include <stdlib.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include "../../../src/def.h"
#include "../../../src/Graphic.h"
#include "../../../src/UI_Engine.h"
#include "../../../src/Tasks.h"
#include <util/delay.h>
static volatile uint8_t KbdStat = 0;
//
// Interrupt
//
... |
9ca3cfe19b06e7e046e1f0461fb0ce831df460da | 932c87114caf22cb821d590788f0a6dba51fe354 | /src/entities/csprite3d.cpp | 131eb75cdeaa49843ea4c937c61bd472b7e8eb4a | [
"MIT"
] | permissive | meoblast001/citrine | bef772ecf0c95d57b92af55a0405087a05e9acf6 | 9e97484d33860213555d865ec81b301c59b0657c | refs/heads/master | 2021-01-20T17:54:23.277007 | 2016-06-26T22:00:32 | 2016-06-26T22:00:32 | 62,010,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | csprite3d.cpp | /*
Copyright (C) 2010 Braden Walters
This software may be modified and distributed under the terms of the MIT
license. See the LICENSE file for details.
*/
#include "csprite3d.h"
using namespace Citrine;
SmartPointer<Texture> Citrine::Sprite3D::GetTexture()
{
return texture;
}
void Citrine::Sprite3D::SetTexture(S... |
26da823378863a69e7efa19806f6fe8ad854aaac | 3e0405e67a035d3b9ce31a6e83bd805b6dc94041 | /src/windows/kernel/nt/syscall/types/token_information/TOKEN_OWNER_IMPL.cc | fa07cec47fcb0fcecc81875efdff5286c8a8539e | [
"Apache-2.0"
] | permissive | IntroVirt/IntroVirt | 33ec7fab4424656717d6ccb9ee87ba77e8f69b1f | e0953d1c9a12b6e501f6a876a07d188b7b80254a | refs/heads/main | 2022-12-22T05:47:27.038862 | 2022-12-15T22:52:21 | 2022-12-16T00:50:10 | 339,445,106 | 46 | 10 | Apache-2.0 | 2022-12-08T17:01:42 | 2021-02-16T15:37:13 | C++ | UTF-8 | C++ | false | false | 2,470 | cc | TOKEN_OWNER_IMPL.cc | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
1d354af58ceeda23eda6fd60419b9fee71874f88 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/4b/307cbf8e876540/main.cpp | 830036a3a5d9debeaedcee4f9dbf631537b6e4a2 | [] | 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 | 473 | cpp | main.cpp | #include <cassert>
#include <cmath>
struct precondition_call { };
struct in_call { };
template<typename F>
void operator+(precondition_call const&, F&& f) {
f();
}
template<typename F>
void operator+(in_call const&, F&& f) {
}
#define REQUIRE { precondition_call() + [&]
#define IN() (); in_call() +
#define... |
6f3cece9fd35f985beb9ff74321e3315fc5876f2 | f8588bc44fcf34d5ee90a1dd7d2200295d0f5ca4 | /算法提高/ADV-158.新建Microsoft Word文档.cpp | 614f45b73fe7c0b8c7c47b9cbff7d022fc54edee | [] | no_license | makixi/-OJ | cc389e8cd6c4d144c7456a89ed3692dee68a53de | 766228236b60579e4c794f5d55cd242f56e3b32f | refs/heads/master | 2021-09-08T15:58:46.474371 | 2018-03-11T01:27:40 | 2018-03-11T01:27:40 | 108,692,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | ADV-158.新建Microsoft Word文档.cpp | #include<iostream>
#include<cstring>
#include<string>
#include<algorithm>
using namespace std;
bool num[2015];
int curr=1;
void findnext(){
for(int i=curr+1;true;++i)
if(!num[i]){
curr=i;break;
}
}
int main(){
int n;
scanf("%d",&n);
while(n--){
string op;
cin>>op;
if(op[0]=='N'){
cout<<curr<<"\n";
... |
cc55c85d6cc9c52662cc6c23f042e9921256c36d | ff2d7d46222a142c00062a1a1bac7ccfb991e5a3 | /SD_Micro/SD_Micro.ino | 628ec25be453adae389cc21c0269d346c99758b7 | [] | no_license | boeingnut/ArduinoProject | 041975b1a6f590e1d68a8cfb6b089ca4d8ad8d2c | e25e0a0a186b97a80bff7f7efaf029d017dbdd66 | refs/heads/master | 2020-03-07T13:35:15.266170 | 2018-03-31T06:58:36 | 2018-03-31T06:58:36 | 127,504,785 | 0 | 3 | null | 2019-10-30T15:30:36 | 2018-03-31T06:15:15 | C | UTF-8 | C++ | false | false | 739 | ino | SD_Micro.ino | #include <SPI.h>
#include <SD.h>
File datafile;
void setup() {
Serial.begin(9600);
//Serial1.begin(9600);
pinMode(10, OUTPUT);
// see if the card is present and can be initialized:
if (!SD.begin(10)) {
Serial.println("Card failed, or not present");
// don't do anything more:
while (... |
fdb77b6fbc3e0feae040700ab8ec601e4f137932 | c1ff552e9be0baffd41786e86841fd726c43bb90 | /Top 100 most liked problems/palindromLinkedList.cpp | eb6b1c05a24653b9f0ce113c757e5f76ddfd0592 | [] | no_license | Rashi-Singh1/LeetCode | 4defe54fb8b90898c8c3576e5c2cc89ad8a9aee6 | 1cd4fa2c779340d8701138894894820654f444c5 | refs/heads/master | 2023-01-10T22:22:18.607348 | 2020-11-02T14:26:41 | 2020-11-02T14:26:41 | 225,888,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,272 | cpp | palindromLinkedList.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* getReverse(... |
620cc43518be2eaf72c04c2c6bcda55a87775984 | 621fb41f3e9956f8fbb42d738a0264e28ee0f09c | /lua_wrapper/lua_wrapper/MetaUtility.h | 7eb163bae14c5a78041154019e430c15071fc4df | [
"MIT"
] | permissive | androlua/lua-cpp-wrapper | f266f99a8067a7b76ec2dc0fc0e0a4a08217f75d | 9cb39e2c9275e3dfdf9942a4942b3003f861351f | refs/heads/master | 2020-03-20T20:40:29.569719 | 2018-04-21T16:07:58 | 2018-04-21T16:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,049 | h | MetaUtility.h | #pragma once
#include <tuple>
#include "MacroDefBase.h"
SHARELIB_BEGIN_NAMESPACE
//----把指针或引用统一转化为引用-------------------------------------------------------------------------------
namespace Internal
{
template<class T,
bool isPointer = std::is_pointer<typename std::remove_reference<T>::type>... |
5b405a80068323d938ea856cc9457d5202c312b2 | 1245ab5de0f08f18fcb95011b88db264cd2f52f2 | /fem-dt-stokes-test/solverfactory.cpp | 110a3e151b4339aad55f12a1e464ec91ddcbe144 | [] | no_license | zhc/fem-dt-stokes-test | b9f4a25e63aca9b7449af609da58484bf133ac1c | e0e6e168b8e48eb0d7209013eb0e4f8008cf3db3 | refs/heads/master | 2020-05-21T12:51:10.917378 | 2013-08-15T01:07:18 | 2013-08-15T01:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,514 | cpp | solverfactory.cpp | #include "solverfactory.h"
#include "cnscheme.h"
#include "drscheme.h"
#include "prscheme.h"
#include "lbscheme.h"
#include "imscheme.h"
#include "vrscheme.h"
#include <map>
SolverFactory::SolverFactory(Settings &settings) : _settings(settings)
{
}
BaseSolver *SolverFactory::createEx()
{
_settings.prepareEx();
... |
fe9d7db74d9c9c73282c2377cadbf92f9b36befd | 7afe50d5d02ba4930daf3d6ffaa8075fb8f77c58 | /DPL/Topic_5/5_B.cpp | 91bf0e25767ad8ee30a22a24414333e79ac4aa4a | [] | no_license | Zu-rin/AOJ-Courses | 48dcd2789590227d17952a522f3b81e10e96ba87 | 9eb7cbc079613b922af24846aa2c248a48506e4a | refs/heads/master | 2023-03-18T10:14:14.239598 | 2021-02-26T05:45:10 | 2021-02-26T05:45:10 | 303,151,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | 5_B.cpp | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#define rep(i, n) for(i = 0; i < (n); i++)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
#define MOD 1000000007
#define PI 3.14159265358979323846
#define INF 1 << 30
using namespace std;
typedef long long ll;
typedef pai... |
89a05d235518e9b76571a89f2954181c8ac84bf7 | 69005ab4c8cc5d88d7996d47ac8def0b28730b95 | /msvc-cluster-realistic-1000/src/dir_6/perf348.cpp | f3bc794ee5fdb5d8d1b01edba0bd094e121ae494 | [] | no_license | sakerbuild/performance-comparisons | ed603c9ffa0d34983a7da74f7b2b731dc3350d7e | 78cd8d7896c4b0255ec77304762471e6cab95411 | refs/heads/master | 2020-12-02T19:14:57.865537 | 2020-05-11T14:09:40 | 2020-05-11T14:09:40 | 231,092,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | perf348.cpp | #include <Windows.h>
#include <vector>
#include <inc_9/header_192.h>
static_assert(sizeof(GenClass_192) > 0, "failed");
#include <inc_1/header_38.h>
static_assert(sizeof(GenClass_38) > 0, "failed");
#include <inc_4/header_94.h>
static_assert(sizeof(GenClass_94) > 0, "failed");
#include <inc_8/header_167.h>
sta... |
7868900b614d0aeb45c208fd1ba963f0311189ae | 30f8f7477c38d2c4e0b995f28a96e7732dfe651e | /tests/fsm_retx_win.cc | 073ecb4388541c392815e4ae4a92e7d8d67f9ecb | [] | no_license | KinglittleQ/cs144 | 86e79d96759237ab303efcf6c693ceb23d739fb6 | 13fe156c60c7faf72f69fe3c15b90f624d64ee31 | refs/heads/master | 2022-12-17T01:38:18.389694 | 2020-09-08T06:21:47 | 2020-09-08T06:26:29 | 271,963,190 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,972 | cc | fsm_retx_win.cc | #include "fsm_retx.hh"
#include "tcp_config.hh"
#include "util.hh"
#include <algorithm>
#include <cstdlib>
#include <iostream>
using namespace std;
using State = TCPTestHarness::State;
int main() {
try {
TCPConfig cfg{};
cfg.recv_capacity = 65000;
auto rd = get_random_generator();
... |
73fed9ec1efc694e9045dc20e4292ea2bf337aa4 | 7a5a2709a34d08a91911e875779e22af19ec70c0 | /cone.cpp | 4c9f7aecb417a093b23f1d65b655d3b051267fa1 | [] | no_license | shawnto/EyeSimulation | ef674abd359ca9d9b3f9415d08fa29130cc82035 | 7357087da81e0aa2d5058b75cd2c9a7569ffd4b0 | refs/heads/main | 2023-03-12T08:04:08.011135 | 2021-02-26T06:28:56 | 2021-02-26T06:28:56 | 342,484,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,952 | cpp | cone.cpp | #include "cone.h"
Cone::Cone() {
texture = NULL;
pixels = NULL;
pitch = NULL;
this->roiBounds = cv::Rect();
}
Cone::Cone(cv::Rect roiBounds){
texture = NULL;
pixels = NULL;
pitch = NULL;
this->roiBounds = roiBounds;
}
Cone::~Cone() {
free();
}
void Cone::free() {
if (texture != NULL) {
SDL_DestroyTextu... |
bb2c8a51bcdb464aeb3c48282be10f0ede593e01 | 13204a429a75d37b4645bce4dd947731400700ec | /Controll/Controll.ino | 98dbb3cbcc0735c9cee06c1bc283eed4a37b349c | [] | no_license | ISHAN-SACHINTHA/Arduino-projects | 5c3a04e534215e386d406d9b9eb49c6d3d438672 | 2c2753c1ac88623398950e79d01016233d70177c | refs/heads/main | 2023-02-03T15:05:51.071894 | 2020-12-15T04:06:46 | 2020-12-15T04:06:46 | 321,547,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 961 | ino | Controll.ino | int incomingByte = 0; // for incoming serial data
void setup()
{
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
}
void loop()
{
// send data only when you receive data:
if (Serial.available() > 0)
{ // read the incomi... |
d3fcedbd661ab3a95a12b57658b53effd13d5deb | 4d332a73a20a3eb86bcb34d4b09fc100c3f11325 | /07_Distance2Servo/07_Distance2Servo.ino | c9a1962489e57638768055366acd6932f3881209 | [] | no_license | sktomor/fluid-networks | ff4b287e407d1c2966b67ab2982938832b34cb48 | 9548735d705ce51f4edbb2e4189d33d1905958f8 | refs/heads/master | 2023-04-07T17:49:51.543480 | 2021-04-15T17:26:59 | 2021-04-15T17:26:59 | 357,229,007 | 1 | 0 | null | 2021-04-15T17:27:00 | 2021-04-12T14:40:51 | null | UTF-8 | C++ | false | false | 1,132 | ino | 07_Distance2Servo.ino | /*
Example taken from Seeestudio Wiki
for the Grove Ultrasonic Ranger
https://wiki.seeedstudio.com/Grove-Ultrasonic_Ranger/
adapted to work with Arduino Grove Carrier (on MKR1010)
https://www.arduino.cc/en/Guide/MKRConnectorCarrier
and with Servo
by Davide Gomba
Library here
https://github.com/Se... |
2ad8f950f5f0163805ab9990ba6af92677e35d58 | 5a3c37ff858defe9716dcba3d8fb23ad701d4d45 | /Survival_Days.cpp | f50360c19c8a2953373455d291b7b9168a50a579 | [] | no_license | Ashish-A-Kulkarni/HackerRank_SE-A_Assignment | 04775e9f0dc76fb2f8cfbe71b2d961deb566c6b6 | 64140adfc4b45027dc8cfac52086124b5161068e | refs/heads/master | 2022-10-16T03:43:59.106474 | 2020-06-08T13:47:50 | 2020-06-08T13:47:50 | 270,680,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | cpp | Survival_Days.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int x, y;
cin >> x >> y;
if (x == 7 && y == 3)
{
cout << "9\n";
}
else
{
int a = 0, b, c = x % y;
b = x / y;
a =... |
0631bb9626ee261899f15b3a64f7af6dabd43fb7 | 83c33d30a207ede9eb38568fef840147c4b452f1 | /include/uc/libmitdb.h | ea56fbd93d6235920f211c0bf185c110cbcd66d0 | [] | no_license | guohong365/ZN3000 | f10a7c3255a4c29fd2c47b35eb649efa3eee7ce4 | 5cb466884887da4bcd3db7e57bd52be76f984efd | refs/heads/master | 2020-03-29T04:51:02.645262 | 2019-07-02T14:39:09 | 2019-07-02T14:39:09 | 149,551,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | h | libmitdb.h | #pragma once
#include <uc/libuc.h>
#ifdef LIBMITDB_EXPORTS
#define LIB_MITDB_API __declspec(dllexport)
#define LIB_MITDB_CLASS __declspec(dllexport)
#define LIB_MITDB_EXTERN
#else
#define LIB_MITDB_API __declspec(dllimport)
#define LIB_MITDB_CLASS __declspec(dllimport)
#define LIB_MITDB_EXTERN extern
#endif
namespac... |
33ea5662ade5b763ddbe1f93b9ac1f1a851e7b09 | 93176e72508a8b04769ee55bece71095d814ec38 | /Testing/Code/BasicFilters/otbStreamingInnerProductVectorImageFilter.cxx | e9a3abd0d6f6d8c510223b57df1c102da12ba739 | [] | no_license | inglada/OTB | a0171a19be1428c0f3654c48fe5c35442934cf13 | 8b6d8a7df9d54c2b13189e00ba8fcb070e78e916 | refs/heads/master | 2021-01-19T09:23:47.919676 | 2011-06-29T17:29:21 | 2011-06-29T17:29:21 | 1,982,100 | 4 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,798 | cxx | otbStreamingInnerProductVectorImageFilter.cxx | /*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY... |
a5a7e6b51b026eae0aeacc9c314c17c094c993d8 | 59b2d9114592a1151713996a8888456a7fbfe56c | /hdu/1521.cpp | d19edee22997cdf0eb5c62cc5b0241377f3aace0 | [] | no_license | 111qqz/ACM-ICPC | 8a8e8f5653d8b6dc43524ef96b2cf473135e28bf | 0a1022bf13ddf1c1e3a705efcc4a12df506f5ed2 | refs/heads/master | 2022-04-02T21:43:33.759517 | 2020-01-18T14:14:07 | 2020-01-18T14:14:07 | 98,531,401 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | cpp | 1521.cpp | /* ***********************************************
Author :111qqz
Created Time :2016年02月27日 星期六 19时48分31秒
File Name :code/hdu/1521.cpp
************************************************ */
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#inc... |
309fd7d97648bc9312764d1b23354a36a6815e9e | 83b23e966934902b08205f4aa4d60eb68e0dd395 | /hozzavalo.h | 05f449ffa09e0fd75e2e359c9456558b5b790c0a | [] | no_license | Shaat123/nhf | a0c4e2cd85eaa543688256b73bc67c32c695bd90 | 1527ca33ae1b93cfdf5eaf3989b45be0f677202f | refs/heads/master | 2020-04-08T21:01:13.650558 | 2015-05-08T14:03:27 | 2015-05-08T14:03:27 | 35,282,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | h | hozzavalo.h | #ifndef HOZZAVALO_H_INCLUDED
#define HOZZAVALO_H_INCLUDED
#include <iostream>
#include "String.h"
#include "memtrace.h"
class Hozzavalo{
int sorszam;
double mennyiseg;
String mertekegyseg;
String anyag;
public:
Hozzavalo():sorszam(0), mennyiseg(0), mertekegyseg(), anyag(){}
Hozzavalo(int s, double... |
62aca8a6503963b52d1db8743eb2dbe4f79495ef | 9a67cfce5187e0c88c52b72cf0fab15e0af43e58 | /src/SequenceView.cpp | d7646c9d872cb2323a086f21f677b081581acd6f | [] | no_license | helenginn/breathalyser | 0e4e2dce5d1ff1c3a1b819d2de4ded3e3e130c0b | 152e3cbb9995475c86fdd71bad17bc37ca5c3d52 | refs/heads/master | 2023-04-08T18:46:28.447279 | 2021-04-17T16:03:29 | 2021-04-17T16:03:29 | 330,400,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,882 | cpp | SequenceView.cpp | // breathalyser
// Copyright (C) 2019 Helen Ginn
//
// 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 version 3 of the License, or
// (at your option) any later version.
//
// This pro... |
055d0881795498ec4e5fad9b65509b98fef8ee6a | a3cc0a92c2fc07efaf763441673ede7d435d7bc7 | /8 recursion/subsetsof array.cpp | 2faa6f67675eff06292062010bea3b56d123278f | [] | no_license | codeboy47/Coding-Problems | 73abbf820f35093bcc591eecd304964d640882a3 | eefe6a246abf81705aafc325035e5c419239eee2 | refs/heads/master | 2021-06-11T11:58:11.044063 | 2017-01-14T20:39:18 | 2017-01-14T20:39:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | subsetsof array.cpp | #include<iostream>
using namespace std;
void subsets(int *a,int n,int index,int *s){
if(*a==0){
for(int i=0;i<index;i++){
cout<<s[i];
}
cout<<endl;
return ;
}
//cout<<*a<<" ";
subsets(a+1,n,index,s);
s[index]=*a;
s[index+1]=0;
subsets(a... |
103f87c257732e5c8bc4f807e75d43feae1720a9 | 4221155626b6aafa7ece33cd094070517a88b129 | /Data.cpp | 2312c86d4edaee494b72bb59e874e31f81c01cce | [] | no_license | alexandremendoncaalvaro/temperatura-aqui | 8d57e3adbc5efe456985e7fe30404f86b522e486 | 8b40a736ca5ad033d63027c1507a7a8dcd0a147a | refs/heads/master | 2020-04-24T15:18:17.657653 | 2019-02-24T23:04:44 | 2019-02-24T23:04:44 | 172,060,528 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,046 | cpp | Data.cpp | #include "Data.h"
bool Parameters::mountFileSystem()
{
Serial.print(F("Mounting system file.."));
if (!SPIFFS.begin())
{
Serial.println(F("Fail!"));
return false;
}
Serial.println(F("OK!"));
return true;
}
bool Parameters::loadParameters()
{
Serial.print(F("Load parameters from config file..."));
File co... |
9da9a5da4e05d3bcbd724dfdbb80a266b8f5701e | 8096035ff91117f760419362ec008aaf3154610c | /Examples/iostreams_225/iostreams_225.cpp | 4169d7f52ba7e0348649c015b9eafc45d847fd4c | [] | no_license | kk2491/CPP_Quick_Tour | 15f64f66df1e99f1dcf5774d7f4127ab2f8640d4 | acbd781864ce02bbe0e27e60eaedac729c8aa4fc | refs/heads/main | 2023-07-19T19:03:16.769720 | 2021-01-21T09:17:27 | 2021-01-21T09:17:27 | 316,258,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 671 | cpp | iostreams_225.cpp | #include <iostream>
#include <fstream>
#include <string>
int main() {
std::ifstream in_file;
std::string str;
int num_1;
double num_2;
in_file.open("check.txt");
if (!in_file.is_open()) {
std::cerr << "Not open" << std::endl;
return 1;
}
std::cout << "File is open" <... |
d906fc72abfd8f8447a518af12aec77c4f940b9e | 3a35ec06045139d57b9013006e83fd9ad09f7e82 | /emulator/src/fun.cpp | 8c2ef76957629c9b27881c8460494985954ddb7a | [] | no_license | Agerran/gluonvm | f1d6b80fa6bab071acbc5bda5240e639b375309a | 142b07182c8c02ebc9087fe5c257e1948c85939f | refs/heads/master | 2021-01-20T06:55:09.144876 | 2015-11-09T00:52:23 | 2015-11-09T00:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | cpp | fun.cpp | #include "fun.h"
#include <string.h>
#include "heap.h"
namespace gluon {
namespace fun {
BoxedFun* box_fun(FunEntry* fe, Word* mem, Term pid, Term* frozen) {
BoxedFun* bf = (BoxedFun*)mem;
// pack nfree and arity, then create_subtag() will shift it and tag as
// boxedfun
bf->hdr =
term_tag::BoxedFun::c... |
4b8ad6e6d8266e7fa60a8f138df62a813b3a8447 | 0d4864ca111609a82e95f0cfe79d0816073c3244 | /include/bloombergdata.h | f1b16fff4eadd2e28747e87eedd83c8c85fa645b | [] | no_license | Ilya-Grigoryan/Cornerstone_FVM | 1c5772894474c07fab6219ede9219faf8c43760f | 4dc88655aae1b9b013505b480b67caa8a9f6ef94 | refs/heads/master | 2020-04-27T18:27:21.437077 | 2014-02-13T21:07:20 | 2014-02-13T21:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,629 | h | bloombergdata.h | #pragma once
#define PX_CLOSE_QTD "PX_CLOSE_QTD"
#define PX_CLOSE_1D "PX_CLOSE_1D"
#define T12M_DIL_EPS_CONT_OPS "T12M_DIL_EPS_CONT_OPS"
#define IS_AVG_NUM_SH_FOR_EPS "IS_AVG_NUM_SH_FOR_EPS"
#define ARD_DEPREC_DEPLETION_AMORT "ARD_DEPREC_DEPLETION_AMORT"
#define BS_SH_OUT "BS_SH_OUT"
#define BS_TOT_... |
a00ddb5abeb2c92c05cedfc8aec187bc54717a45 | 4b4a48bfd4dfaa27c5c4e1fecf719766a82a92a6 | /LIB/WXRTL/XRWIN.CPP | d55ceb9d28b5e7b826d82f6326c5c5b7b347865b | [] | no_license | codecandiescom/ktelnet-V2.00.950 | 1b062c56ecfc98a8f026addc9dfc29b401b5b5f9 | 95be69fee6bba4a0266ed6daace705f5cc5ae040 | refs/heads/master | 2020-04-20T20:47:54.683641 | 2019-02-04T14:10:40 | 2019-02-04T14:10:40 | 169,088,045 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 11,755 | cpp | XRWIN.CPP | /*
* Copyright (c) 1998-2000 Thomas Nyström and Stacken Computer Club
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
d6892309d9a0f875865f707b3594c3921170e09f | d214c56f712243db8d2eae85a21e36076db8533e | /Source/BuildingEscape/ButonForDoor.cpp | 69a45ab1c506e78ba95fcc64c9ad77f5adbe78bd | [] | no_license | arnoldlam/BuildingEscape | 3e38cd8259ec6b3a2d17395a9fa2bc8a6093e8cc | 9615e164ee8137c9d3cd95c6ed8c5e7788d399c7 | refs/heads/master | 2022-08-31T18:14:42.037883 | 2020-05-30T20:35:19 | 2020-05-30T20:35:19 | 266,670,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,860 | cpp | ButonForDoor.cpp | // Copyright Arnold Lam 2020
#include "ButonForDoor.h"
#define OUT
// Sets default values for this component's properties
UButonForDoor::UButonForDoor()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you d... |
bfedbc073eac6bac82b8b0ff4fb002cc2f97bdc5 | bc2e98046dbc1af5bd104e42a22d5238f21d5d8e | /Segundo semestre orientada a objetos/ConstructorCopia/ConstructorCopia/Copia.cpp | 59cfcee62054ac3da4d10b5afba0fcd5b23d37df | [] | no_license | cycasmi/proyectos-VS | 559da543711a77d3daf0c08030c8104385e95803 | c09a77528c8c0053a1c66061659ea4950f317d92 | refs/heads/master | 2021-07-20T22:31:53.285920 | 2017-10-27T22:26:46 | 2017-10-27T22:26:46 | 108,600,737 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 296 | cpp | Copia.cpp | #include "Copia.h"
int main()
{
Copia Y;
Copia W = Y.llamadaAcopia(Y); //Se imprime 3 veces pork al ponerle que es igual, se manda a llamar. Al usar la funcion y la tercera por el return.
//LLamada explícita: copia Z = Y;
//Llamada por el valor
//Llamada por el parámetro
return 0;
}
|
b98b7d7d4dcab5bad87b5c430ad7e8d368cc5efc | 2a64ce7a3a641f9af701fb485012612f4a59537e | /exercise/网易2018校招内推编程题集合/code6.cpp | aedaf3815f229de024f553b1ed5a5f9b389e613b | [] | no_license | yehuohan/ln-misc | 2e1fd13d1421c936a9b12d13754c9b7c78c091bb | 5609be2f8317ae124b20050cbaaebe6a609ceef0 | refs/heads/master | 2021-12-07T14:27:09.749711 | 2021-10-06T14:01:42 | 2021-10-06T14:01:42 | 222,347,295 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,253 | cpp | code6.cpp |
/*
[编程题] 堆棋子
时间限制:1秒
空间限制:32768K
小易将n个棋子摆放在一张无限大的棋盘上。第i个棋子放在第x[i]行y[i]列。同一个格子允许放置多个棋子。每一次操作小易可以把一个棋子拿起并将其移动到原格子的上、下、左、右的任意一个格子中。小易想知道要让棋盘上出现有一个格子中至少有i(1 ≤ i ≤ n)个棋子所需要的最少操作次数.
输入描述:
输入包括三行,第一行一个整数n(1 ≤ n ≤ 50),表示棋子的个数
第二行为n个棋子的横坐标x[i](1 ≤ x[i] ≤ 10^9)
第三行为n个棋子的纵坐标y[i](1 ≤ y[i] ≤ 10^9)
输出描述:
输出n个整数,第i个表示棋盘上有一个格子至少... |
78938bde48c749d6b8f7244bd68638efe91fb32a | b7459eedf94fd446bc4327fc6b7a79cc2be3f96e | /NativeDll/src/game/Entity.cpp | ad90fc25fadcaad9443ccd7b7066e2dddd27797e | [
"MIT"
] | permissive | inkimagine/Ghurund | dbfc8109e7ce1896254bb48f9fccca01633ba765 | 4d69149a7077b71656562f63504a79222979bd12 | refs/heads/master | 2020-09-15T23:44:37.083154 | 2019-09-08T22:29:11 | 2019-09-09T18:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,803 | cpp | Entity.cpp | #include "ecs/Entity.h"
#include "../Float3.h"
using namespace Ghurund;
extern "C" __declspec(dllexport) const PointerArray<Parameter*>* ParameterProvider_getParameters(ParameterProvider* _this) {
return &_this->getParameters();
}
extern "C" __declspec(dllexport) void ParameterProvider_initParameters(ParameterPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.