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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6df3d9ed50bad1dcf3c725e3c8443513a03ea0d6 | 04055826bd19f255fe2c38f2dfec9d84b016b2aa | /com level/source/cppfiles/howtoplay.cpp | a87df1e4fba3bb0dd2cbf4ca6d9963099246312b | [] | no_license | feisabel/Labirinth | d2f2b4c7de511b86abf30b583e3acf38d400ba85 | 15ed752cf4539f4c35b65eb9584e84939ecbd5e1 | refs/heads/master | 2021-01-23T03:21:25.529224 | 2014-11-25T02:43:22 | 2014-11-25T02:43:22 | 86,070,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,523 | cpp | howtoplay.cpp | #include "../menu.h"
#include "../classmain.h"
#include "../scene_manager.h"
howToPlay::howToPlay() //Construtor padrão
{
if (!background.loadFromFile("resources/images/how_to_play1.png")) // carrega imagem da textura
{
std::cout << "erro de textura" << std::endl;
return;
}
spriteBackgr... |
d90c2e3ce90cc2c2df724c77aaa686d5c15a0572 | 1c9d04a9352e6d86480f9e0947f930db042d8e80 | /src/libs/config/qa/qa_config_change_handler.cpp | 615c9b8fcb432a2161fac095cdf23d0d62fc0332 | [] | no_license | fawkesrobotics/fawkes | 2c9de0cdb1dfcc951806434fe08458de5a670c8a | ad8adc34f9c73ace1e6a6517624f7c7089f62832 | refs/heads/master | 2023-08-31T01:36:15.690865 | 2023-07-04T17:05:55 | 2023-07-04T17:05:55 | 1,030,824 | 62 | 26 | null | 2023-07-04T17:05:57 | 2010-10-28T04:22:55 | C++ | UTF-8 | C++ | false | false | 5,390 | cpp | qa_config_change_handler.cpp |
/***************************************************************************
* qa_config_change_handler.cpp - QA for configuration change handlers
*
* Created: Mon Nov 12 19:11:06 2007
* Copyright 2006-2007 Tim Niemueller [www.niemueller.de]
*
****************************************************************... |
1dce0beda52b9b2c6e19c7357f2b84b5b0bfebe5 | 27db716ae91a2ffb94d947b8bc1b87399a1ca333 | /adamO.cpp | aae7983394b6af859f321fe4bc18253e536e7d3d | [] | no_license | nlarson2/F-TSW-KOD-R-2 | 41fb93c891d3a6e4874c629a6e058ebbc67d3ce5 | 46af6087f1fe296bd4673e9a9ac3c0021023175a | refs/heads/master | 2020-04-22T20:02:46.087648 | 2019-05-09T08:29:57 | 2019-05-09T08:29:57 | 170,628,731 | 1 | 1 | null | 2019-05-09T01:58:44 | 2019-02-14T04:47:18 | C++ | UTF-8 | C++ | false | false | 13,573 | cpp | adamO.cpp | #ifndef ADAMO_CPP
#define ADAMO_CPP
// Adam Ostlund
// This file is for displaying the User Interface.
// Last Update: May 3, 2019
#include "adamO.h"
#include "nicholasJo.h"
#include "brandonH.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glx.h>
#include "fonts.h"
#... |
1fc60a2731852edab5220c68a0843e2e1b9f0a7d | 050c8a810d34fe125aecae582f9adfd0625356c6 | /siruri1/siruri1.cpp | 48389d73e07a6c14b66cdd27174ba5f48acb8428 | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cpp | siruri1.cpp | #include<fstream>
#include<algorithm>
using namespace std;
ifstream f("siruri1.in");
ofstream g("siruri1.out");
int n;
int main()
{
f>>n;
int x[n],y[n],i,j,d[n],mini=1;
for(i=0;i<n;i++)
{
f>>x[i];
d[i]=x[i];
}
sort(d,d+n);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
... |
fd4ef01ab063b113dfa8b0bf7adb83093f148636 | 204b6773cc5c22a6362c39e6936983e7332482e5 | /legend/legend/src/util/loader/texture_loader.h | c8f5b6db69ba2aeaf9307cd9f25e29355afa114c | [] | no_license | matsumoto0112/create_legend | d67632bd071c78d820499085974303a744c365da | 1c84381cbb056bcce2525c67bd3e9de857c05c80 | refs/heads/develop | 2022-12-17T16:03:58.642327 | 2020-09-14T04:40:07 | 2020-09-14T04:40:07 | 274,089,531 | 1 | 0 | null | 2020-09-14T02:18:54 | 2020-06-22T09:03:26 | C++ | SHIFT_JIS | C++ | false | false | 1,264 | h | texture_loader.h | #ifndef LEGEND_UTIL_LOADER_TEXTURE_LOADER_H_
#define LEGEND_UTIL_LOADER_TEXTURE_LOADER_H_
/**
* @file texture_loader.h
* @brief テクスチャ読み込みクラス定義
*/
namespace legend {
namespace util {
namespace loader {
namespace texture_loader {
/**
* @brief 読み込んだテクスチャデータ
*/
struct LoadedTextureData {
//! テクスチャ名
std::wstring... |
352e29d27d77e30a1913b12e7e15aee02cf26904 | 93697624e5bff8c25fec6c8e7ffad73da03e396e | /src/router/node.cpp | d59c6666659071848f20c1bd7a0c5a15778b0cc2 | [] | no_license | alfanick/xbee868-routing | 6b836af82f4334b29e1f467d6951ccfefc0310dd | 0bee55e8a5775502daf6c46c08f168e1aee907fd | refs/heads/master | 2021-01-19T11:35:52.839758 | 2015-02-03T20:31:47 | 2015-02-03T20:31:47 | 28,773,036 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | cpp | node.cpp | #include "node.h"
#include <stdlib.h>
#include <string.h>
namespace PUT {
namespace CS {
namespace XbeeRouting {
Node::~Node() {
}
}
}
}
|
0658e8dced897338203bd88233bb30a61f07ee68 | 1a66c4e2a129411ed6825a8719885cea2f3be9bd | /Subsets-II.cpp | 6e67e8ef2c25d734b48bb5ded812cd07b7649818 | [] | no_license | fabregas4fan/leetcode | 2fff5d4fb083c041371246ebd4b574aab61f9340 | f6240b471d2c8996221f26377e4cf9998ce74c9b | refs/heads/master | 2016-09-05T18:28:34.379584 | 2014-10-27T01:39:13 | 2014-10-27T01:39:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 805 | cpp | Subsets-II.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
class Solution {
public:
vector<vector<int> > subsetsWithDup(vector<int> &S);
void dfs(vector<int> &S,int index,vector<vector<int> > &result,vector<int> &res);
};
vector<vector<int> > Solution::subsetsWithDup(vector<int... |
fcead6e11ae87ff1763bdc0b21ca07852596f19d | 5f30897ec79f5ff410d11fd2f056644d2ee43933 | /Skill/DFSAndSimilar/LeetCode/1483.cpp | 900159eefef6bdfa95607be549abc5da55352f0f | [] | no_license | Puneethnaik/CompetitiveCoding | d86f8323d65e70c260e101e6a53bf67ac284d36d | 97848e4ed51335220e7e96bbe23321f2a6ae7698 | refs/heads/main | 2023-07-26T23:05:08.807849 | 2021-09-05T04:48:28 | 2021-09-05T04:48:28 | 388,463,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,408 | cpp | 1483.cpp | #include <bits/stdc++.h>
#define FOR(i, a, b) for(int i = a ; i < b ; i++)
#define FORN(i, n) FOR(i, 0, n)
#define vti vector<int>
#define vt(x) vector<x>
#define all(x) x.begin(), x.end()
#define read(x) cin >> x
using namespace std;
class TreeAncestor {
public:
vector<vector<int> > par;
TreeAncestor(int n, ... |
d8e529f4bf79a9ae06e536747cc04cd86c0621cd | ef93cf419a898f3d34b9b7c25127264f0c964332 | /Source/LabyrinthOfCollosia/Private/AI/BehaviorTree/Services/TlocServiceCheckDistance.cpp | ab70cf003a443b0b6e53aff2df37d8debfab8ed9 | [] | no_license | deb8192/LabyrinthOfCollosia | 1350076bbc4219e105f38b1ea1f051987f17280e | 11e15c48d717ee9c803da8a8bf8dd43c65c13a58 | refs/heads/master | 2022-09-25T11:22:42.043127 | 2020-05-30T23:31:59 | 2020-05-30T23:31:59 | 218,283,333 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,808 | cpp | TlocServiceCheckDistance.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "../Public/AI/BehaviorTree/Services/TlocServiceCheckDistance.h"
#include "../Public/Characters/TlocHumanPlayer.h"
#include "BehaviorTree/BlackboardComponent.h"
void UTlocServiceCheckDistance::TickNode(UBehaviorTreeComponent& Owne... |
6be505e049f672fa7f9407c7e6973e1b89363069 | 07cbe159795612509c2e7e59eb9c8ff6c6ed6b0d | /partitioned/RayleighBenard/consistencyTest/Ra_1e+05_turbExnerFoam_X1_Y50_constThetaBC/tStep0.005_0.01/theta | 22d86d4a4e7adba80b4b0b762267ac102f6836c2 | [] | no_license | AtmosFOAM/danRun | aacaaf8a22e47d1eb6390190cb98fbe846001e7a | 94d19c4992053d7bd860923e9605c0cbb77ca8a2 | refs/heads/master | 2021-03-22T04:32:10.679600 | 2020-12-03T21:09:40 | 2020-12-03T21:09:40 | 118,792,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,843 | theta | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*-----... | |
e60d33c2fdd0bb7d023caf35231d2e7e42e35d3a | bc6c37cf0469c6b2778707b76227558b3a040718 | /PTC/4a.cpp | 7d3878b512000eb8f7a29703caad0e9afa23b609 | [] | no_license | zeroplusone/AlgorithmPractice | 241530a5c989f6321543f7bd07a393c405cdf2e6 | 7fe9182d943bc2066f7fd31cc05096be79dc12cb | refs/heads/master | 2022-01-28T21:57:04.393943 | 2022-01-26T13:46:43 | 2022-01-26T13:46:43 | 84,074,414 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | 4a.cpp | #include <cstdio>
#include <iostream>
#include <cstring>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
int t,a,b;
scanf("%d",&t);
for(int i=0;i<t;++i)
{
scanf("%d %d",&a,&b);
if(a>b)
printf(">\n");
else if(a<b)
printf("<\n");
else
printf("=\n");
}
r... |
d92bfda6c8e68077ae56108917928c123cff28de | 4d2465f1ea7127683dc6465ad66b558409bc2671 | /src/Game/States/WinState.h | e4bc97c2d7f2a79e20c34ea0afecd608615e5076 | [] | no_license | Mercrist/PacMan | cb28653e4ce0bfad7348bdd17ec549b42bb57779 | 72a513b055f71a6d7e44e6d27909d9466b112ed3 | refs/heads/master | 2023-05-03T03:33:33.068823 | 2021-05-25T15:56:29 | 2021-05-25T15:56:29 | 367,454,180 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | h | WinState.h | #pragma once
#include "State.h"
#include "Button.h"
#include "Animation.h"
class WinState : public State {
private:
ofImage img2;
Button *NewButton; //new Button Button object that presents onto the secreen to start a new game
Animation* anim;
ofSoundPlayer music;
public:
WinState();
~WinState();
void tick();
... |
3d9a3b78956cc3da4d3c25dae63cc021469c2da5 | 8ae887afac7903c6dd3b0ddfec69a100524510d5 | /api/trpc_package.cpp | fcad4964964c4a7e3e036424ae27203120a9ae0f | [] | no_license | liuyinqi2013/relay_proxy | 5787350fe9ece9bb36e42767e8cc86a4e754a9e1 | 3abb9ad23e19d5f277b901b720dced6759ccafac | refs/heads/master | 2020-04-13T13:35:08.474978 | 2018-12-27T02:17:32 | 2018-12-27T02:17:32 | 163,235,191 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,655 | cpp | trpc_package.cpp | /*
功能:
1. trpc远程过程调用的包格式类定义
Created by Song, 2003-02
Change list:
*/
#include <stdio.h>
#include "trpc_package.h"
void
CTrpcPackage::Print()
{
fprintf(stdout, "iLen: %d\n", GetLen());
fprintf(stdout, "iVersion: %d\n", GetVersion());
fprintf(stdout, "iSeqNo: %d\n", GetSeqNo());
fprintf(stdo... |
441b5a6dff60edeee8835f1a4be4f4546dffa907 | 13af8cf84dd504fb9b29e3d83dc530fa8f95f7ed | /LPLab17/LP_asm01c.cpp | c6c6d6123cdcb942e385c68be06b762f21d7c1d7 | [] | no_license | DimonMobile/YAP | 443c14c79ba245d71eaa8f12d11f026ed97aa115 | 60ef7f1e9aab084763652f33e4a0b9274425382b | refs/heads/master | 2020-03-28T11:14:59.188415 | 2018-11-20T06:32:45 | 2018-11-20T06:32:45 | 148,192,686 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | LP_asm01c.cpp | #include <cstdio>
extern "C" int getmin(int *a, int n);
extern "C" int getmax(int *a, int n);
int main()
{
int a[] = {5,423,432,32,42,23,432,13,42,12,325};
int min = getmin(a, 10);
int max = getmax(a, 10);
printf("getmax-getmin = %d\n", max-min);
return 0;
}
|
e72780f5e907960daac5338593285faf45928201 | 7635701a155cdf7df79a3f3ddecf3102b7c7cde2 | /week 1_Q3.cpp | 9c07b1ef907b3432ceb72b26cd4a6952e1f1c49b | [] | no_license | satyajitsethi/Liftoff-c_assingment | ce2164dac669c5113788115d24fb74ca992abcbb | 7619d613151bf971b44619afe324676021e74455 | refs/heads/main | 2023-03-01T04:56:45.878732 | 2021-02-07T14:10:25 | 2021-02-07T14:10:25 | 336,564,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | week 1_Q3.cpp | #include <stdio.h>
int main ()
{
float r;
double d,c,a;
printf("Enter radius of circle:");
scanf("%f", &r);
d=2*r;
printf("Diameter of circle = %.2f units \n",d);
c=2*3.14*r;
printf("Circumference of circle = %.2f units \n",c);
a=3.14*(r*r);
printf("Area of circle = %... |
005da1f494cf0295801ac7be0f9b2ade1c2a6818 | 22c487202dbc77c4080776c19015fc5cbaca7ec8 | /src/train.cpp | 6485b0d3e6cb922345d3c938fe82c6b6091e142e | [] | no_license | pbogren/trains | c3bcc733af5b965a251abe0ae6078885104da06a | ace55debd1852168b7d4ef2cd26c41ec1832a651 | refs/heads/main | 2023-05-26T20:32:43.517312 | 2021-06-11T12:47:47 | 2021-06-11T12:47:47 | 376,023,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,330 | cpp | train.cpp | #include "train.h"
#include "time_point.h"
#include <algorithm>
#include <stdexcept>
#include <string>
#include <utility> // move
#include <limits>
namespace pabo::train {
//
// Private helpers
//
bool isEmptyAndType(const Train::Slot& s, Train::CarType match)
{
const auto& [type, car] = s;
return type == m... |
ada7ccc99c4fdf6b1f0c542fa3d61133e4953fe2 | 2780006e63a1295e12bec5b5f768d43ea5e5072d | /src/utility/RemoteUpdate.h | ef00af8a2e365037ccde4dd4a6e30574541f5ebf | [] | no_license | OpenDevice/opendevice-lib-arduino | 7e720a4ffea53cf398886308b9bff2af55f46b13 | 722c7880cd8b218c1fdcc3b38101a4c407fed42d | refs/heads/master | 2020-12-25T15:19:03.435478 | 2020-07-21T22:19:29 | 2020-07-21T22:19:29 | 34,213,327 | 8 | 8 | null | 2016-07-11T23:03:03 | 2015-04-19T15:59:06 | C++ | UTF-8 | C++ | false | false | 2,105 | h | RemoteUpdate.h | #ifndef LIBRARIES_OPENDEVICE_SRC_RemoteUpdateClass_H_
#define LIBRARIES_OPENDEVICE_SRC_RemoteUpdateClass_H_
#include "config.h"
#include "utility/Logger.h"
namespace od {
class RemoteUpdateClass
{
public:
RemoteUpdateClass();
~RemoteUpdateClass();
void begin(){
#ifdef __ARDUINO_OTA_H
L... |
5423d80411933e45a4771911352acf2cbd4554e0 | 03bde7f58d51cfd65707ee8bb55eae54ed745db5 | /120. Triangle/solution.cpp | bae0c28ad14dc4ac4868636ac950014e91b08fa6 | [] | no_license | humbert0u0/leetcoderepo | b04736d45a0938fbd388b37d81aaa997d85a065b | b370a504c3ce0e702c593bf956dee71a1f4f1013 | HEAD | 2018-09-10T22:37:40.638508 | 2018-06-18T02:40:07 | 2018-06-18T02:40:07 | 109,574,242 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,026 | cpp | solution.cpp | #define min(x,y) x<y?x:y
class Solution {
public:
int minimumTotal(vector<vector<int>>& triangle) {
vector<int> tmp;
vector<int> res;
if(triangle.size() == 0)
return 0;
if(triangle.size() == 1)
{
tmp = triangle.back();
return tmp[0];
... |
542f3d46ae1b3cc817bc6e4aec8dfb0bc6a94cf9 | c4270321848d8da394f171e907a9246f9ac48cdf | /2018/01/poo/classes abstratas/barco.h | 737fbcc071395ed648c838c2aa39209dd75e30d4 | [] | no_license | marlovi/aulas | 99a83d2364a3e5573fd3fb8d58b696fb1d835ae4 | a8b22d506105217b196e9354a2b06fdd74758203 | refs/heads/master | 2023-01-08T03:22:24.067025 | 2019-11-12T00:23:44 | 2019-11-12T00:23:44 | 98,063,832 | 10 | 11 | null | 2023-01-04T12:26:56 | 2017-07-22T23:41:20 | JavaScript | UTF-8 | C++ | false | false | 161 | h | barco.h | #ifndef BARCO_H
#define BARCO_H
#include "veiculo.h"
class Barco: public Veiculo{
private:
public:
void dirigir();
};
#endif |
de330ffaf85bb020873726400ee08a2b62fd11eb | e85db75c9c26dbe70bac6cfea7c29948cdd591b5 | /Widget2_KreditcardChecker/eventhandler.h | 174e45b6487c593f06c20fedc6acaf190d545f10 | [] | no_license | AchimGrolimund/HF-ICT-GUI | 69840af0977b8d3b0f94eded8d84248afc01c78f | 383293e3c4e3ea0efa51c960feecb711aa71c67b | refs/heads/master | 2021-09-15T12:56:35.793810 | 2018-06-02T07:22:08 | 2018-06-02T07:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | h | eventhandler.h | #ifndef EVENTHANDLER_H
#define EVENTHANDLER_H
#include <QObject>
class MainWidget;
class EventHandler : public QObject {
Q_OBJECT
private:
MainWidget *parent;
public:
EventHandler(MainWidget *parent);
public slots:
void onCheckButtonClicked();
};
#endif // EVENTHANDLER_H
|
f7b264bf3a6d569d7bb043ec9135c3afb9e3c8ba | f2256d80323f1b8b32a4a282faaf807ee76ddd58 | /p228_局部作用域.cpp | c9222bec93d178344c91c6fa97ca7bbd70feb807 | [
"MIT"
] | permissive | nnngu/my_first_cpp_book | 005d58adf0b2a8214739c1d3e4e8d3c70718d449 | 5674a6c78b3facf03a10176fdf0a40997fbe4884 | refs/heads/master | 2020-11-26T07:31:16.480866 | 2020-02-01T11:51:55 | 2020-02-01T11:51:55 | 229,003,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | cpp | p228_局部作用域.cpp | int GetSum(void)
{
// 整体函数体是一个局部作用域
int nTotal = 0;
for (int i = 0; i < 100; ++i)
{
// 函数体中的 for 循环体,是函数体所嵌套的一个子局部作用域
// 在父作用域函数体中定义的变量,在子作用域中同样可见
nTotal += i;
}
// 在作用域中定义的变量,在整个作用域都可见
return nTotal;
}
// 人为地在代码中添加一个局部作用域
void foo(void)
{
int nNum = 0;
{
int nNum;
nNum = 1;
cout<<"在局部作用域中输出:"<<... |
a80ffc8aba8bdf6126566bedef2c683f6143c552 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-chime-sdk-identity/include/aws/chime-sdk-identity/model/PutAppInstanceUserExpirationSettingsResult.h | 3a33223327d6244897ba3682595acf4bf9480f85 | [
"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 | 4,681 | h | PutAppInstanceUserExpirationSettingsResult.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/chime-sdk-identity/ChimeSDKIdentity_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/chime-sdk-identity/model/ExpirationSettings.h>
#include <utilit... |
b929064c6d9b638b4822b1a2f099840e2d1db86f | f14f1fb63b15e716b150c245eb0802e39701a678 | /aula07_sources/Fila07_IF.cpp | 5421b5eeb07828e7de6ad14cd54d04237a40138f | [] | no_license | EdsonMateus1/codigos-em-C-C-faculdade | 331e834abe8f61c55e8ff84e25913fa19f8380bd | 89c3cc0ce4ca45a33278cccb7630d3bc09b4fbfe | refs/heads/master | 2022-11-03T03:39:59.590885 | 2020-06-18T21:23:54 | 2020-06-18T21:23:54 | 273,053,286 | 2 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,254 | cpp | Fila07_IF.cpp | #include <stdio.h>
#include <stdlib.h>
// Definição da Estrutura
typedef struct tipoCliente cliente;
struct tipoCliente {
int codigo;
float valor;
struct tipoCliente *prox;
};
int tam;
void inicializa(cliente *inicio, cliente *fim);
void insere(cliente **inicio, cliente **fim);
void imprime(cliente *inic... |
67baad0c9b72763a25ab836601756123bffb5afc | 989c2552b2b9727a99dd661d000f89cbdded19de | /benchmark/OpenSpaceToolkit/Astrodynamics/Access.benchmark.cpp | 18c50b4163daa32244ed334ea189a879f6fd5639 | [
"LGPL-2.0-or-later",
"MPL-2.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | open-space-collective/open-space-toolkit-astrodynamics | d57d3a441757779dd2573c68cdb1e5e70d2a131c | 8b45943bca57d7667c7171f4e581673f335e6255 | refs/heads/main | 2023-09-03T19:14:40.106871 | 2023-09-01T15:20:30 | 2023-09-01T15:20:30 | 136,835,751 | 25 | 9 | Apache-2.0 | 2023-09-14T21:27:21 | 2018-06-10T18:47:24 | C++ | UTF-8 | C++ | false | false | 3,533 | cpp | Access.benchmark.cpp | /// Apache License 2.0
#include "benchmark/benchmark.h"
#include <OpenSpaceToolkit/Core/Containers/Array.hpp>
#include <OpenSpaceToolkit/Core/Types/Shared.hpp>
#include <OpenSpaceToolkit/Mathematics/Objects/Interval.hpp>
#include <OpenSpaceToolkit/Physics/Coordinate/Spherical/LLA.hpp>
#include <OpenSpaceToolkit/Phy... |
be052f2d6b95d208319566e6e5ac9182a7c9d1a7 | 1b9e8b56a726d9907c947a6c3c1fb5f82686ecea | /Lab2.1/lab21.cpp | cb4ed00058e9ee896a8875811a503a3f635abd6a | [] | no_license | sofiia-pavl/lab02_repos | ef4be03209817527ef0b87c88990c71242c1d478 | 9402c32c825cc9327b851c21aab6828d873cd7dc | refs/heads/master | 2022-12-27T18:25:08.538352 | 2020-10-10T09:40:58 | 2020-10-10T09:40:58 | 302,857,741 | 0 | 0 | null | 2020-10-10T09:40:59 | 2020-10-10T08:51:06 | C++ | UTF-8 | C++ | false | false | 391 | cpp | lab21.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
double a;
// double z1;
double z2;
cout << "a = "; cin >> a;
// z1 = pow(((1 + a + a * a) / (2 * a + a * a) + 2 - (1 - a + a * a) / (2 * a - a * a)), -1) * (5 - 2 * a * a);
z2 = (4 - a * a) / 2;
cout << endl;
// cout << "z1 = " << z... |
2587ca1258c27f57a8d9313f4d9674f7c4f23c88 | 02d16a1ec2ca61524e7730ee1ce2cf1252836faf | /reflective/density/dense_fixed_queue.h | 7acd5c73a0844398842bf2f6ac5eac20cecd629f | [] | no_license | giucamp/rreflective | 06b006f5e2e72a66dcdea942e0897b4f448d634d | 1be0bad35f3e66bc127a86df8a1e61c575b9b4df | refs/heads/master | 2020-12-20T10:44:02.922496 | 2016-04-15T05:58:55 | 2016-04-15T05:58:55 | 38,154,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,969 | h | dense_fixed_queue.h |
#pragma once
#include <memory> // std::allocator
#include <utility> // std::forward
#include <type_traits> // std::is_constructible, ...
#include "element_type.h"
namespace reflective
{
namespace details
{
template < typename ALLOCATOR, typename RUNTIME_TYPE >
class DenseFixedQueueImpl : private ALLOCATOR
{
... |
be582f9d7cd7a93469a5c743780469934ccc72f0 | e42da0512597824794fe341001dc6aa2c787d94c | /pmp/Mirim/Option.cpp | 00f9df65c53a6892abd1a10a6bc43d4a9a01119c | [] | no_license | mirimsoft/pmp | 7004577995d87052fbe02d4ba3685c63a7012f90 | 82773ecc0e0b92772dbab3110193a53fe95368f7 | refs/heads/master | 2016-09-06T05:04:43.591475 | 2014-03-15T12:11:09 | 2014-03-15T12:11:09 | 17,769,876 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,255 | cpp | Option.cpp | #include "Option.h"
ProPath Mirim::Option::ProductName = L"PMP 4.0.0.1";
ProPath Mirim::Option::ApplicationRoot = L"";
ProPath Mirim::Option::FilePath = L"";
Mirim::Option *Mirim::Option::_uniqueInstance = NULL;
namespace Mirim
{
Option::Option(void)
{
this->ShowAsm1 = true;
this->ShowPrt1 = true;
this->Sh... |
d48eca58975828c8a05a2891708e23a28ef3c830 | 87a2896f868dc13f89ecbb629d897f0ffe8a57e6 | /Code/379f.cpp | 96ff8d44081b21ed0ef9687adf5d3e555bb3420e | [] | no_license | sahashoo/Daily | a20a4bce60b0903fde23bea9d5244c65a9ea3928 | c209cf800cbae850e2233a149d3cc8181b49fb5e | refs/heads/master | 2020-04-23T04:31:13.770829 | 2019-02-15T20:00:34 | 2019-02-15T20:00:34 | 170,910,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | 379f.cpp | ///age yekam bekeshi beham is no problem ._.
#include<bits/stdc++.h>
#define ld long double
// #define int long long
#define F first
#define S second
using namespace std;
void null(){return ;}
const int maxn=1e6+7;
// const int INF=3e18+9237;
const int mod=1e9+7;
const int LG=22;
int anc[maxn][LG],h[maxn];
int LCA(int... |
2b399d1776a20aec7822f5cfaccab93ad996580c | ed1b1e2f35e18569aa19b63568431c65493b4fbe | /archsim/inc/instrumentation/AsyncWatcher.h | c2cd99b8c40230c06137b415bc4d0e021092f805 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yczheng-hit/gensim | cd215c6efc6357f1e375a90d7bda003e8288ed55 | 1c2c608d97ef8a90253b6f0567b43724ba553c6b | refs/heads/master | 2022-12-31T21:00:50.851259 | 2020-10-16T11:52:19 | 2020-10-16T11:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,188 | h | AsyncWatcher.h | /* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */
/*
* AsyncWatcher.h
*
* Created on: 25 Jun 2015
* Author: harry
*/
#ifndef INC_UTIL_ASYNCWATCHER_H_
#define INC_UTIL_ASYNCWATCHER_H_
#include "concurrent/Thread.h"
#include "concurrent/ThreadsafeQueue.h"
#include... |
00858347284432e98e0805dd38717ee996655b9e | dd558312098e086d7cb6ff238e2dfe8cd8aa8572 | /Source/BEXMLTextReader.cpp | fc84abebcdf45bb227bf74f938463877975df4e8 | [] | no_license | unibloc/BaseElements-Plugin | b730d75d3dbcd8cd731f415b5daea7baea65992d | 3b1fa0cba17b0e3a42f2e528e67b363c717dde18 | refs/heads/master | 2021-01-14T12:57:28.437218 | 2013-12-10T04:26:03 | 2013-12-10T04:26:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,232 | cpp | BEXMLTextReader.cpp | /*
BEXMLTextReader.cpp
BaseElements Plug-In
Copyright 2012 Goya. All rights reserved.
For conditions of distribution and use please see the copyright notice in BEPlugin.cpp
http://www.goya.com.au/baseelements/plugin
*/
#include "BEXMLTextReader.h"
#include <algorithm>
#include <string>
#include "boost/f... |
f6503401beb0e724f53a31c3b6aa2d1cf4074f70 | e44b39d795f3e604ab5a9698ecd4447332d0cc48 | /bc/d1.cpp | 15549df162c2ae5fc4ac7066ef40f8d7b7959f90 | [] | no_license | Ilovezilian/acm | 4cd2d114333107f750812ccd2380af99e21942bb | c9f2fe995aec41ca0912a16eeda939675c6cc620 | refs/heads/master | 2021-06-07T23:41:01.335060 | 2016-10-30T02:25:17 | 2016-10-30T02:25:17 | 39,359,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,188 | cpp | d1.cpp | /* ***********************************************
Author :Ilovezilian
Created Time :2015/7/27 20:08:45
File Name :d1.cpp
************************************************ */
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#incl... |
499e67f4a15824b5cc067e3f2833bc6c5a4b9cce | 0f2ae7177d250e3c048dc2ca5141a7c2a09f06a5 | /061_Rotate_List/test.cpp | f1a940377f80858bf33e2a35884340e4198f397b | [] | no_license | MichaelHGitHub/LCA51to100 | aa4130a952bfa78a1b9ac3dfbd35f020f61b1235 | d3328a234915d32620f02ad2efbbfc223f1b434b | refs/heads/main | 2023-09-01T16:02:46.202826 | 2021-10-03T15:23:25 | 2021-10-03T15:23:25 | 352,446,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | cpp | test.cpp | #include "header.h"
void PrepareTestData(vector<TD_L_I_L>& testData)
{
TD_L_I_L data;
data.input = GenerateLinkedList({ 1,2,3,4,5 });
data.input2 = 2;
data.output = GenerateLinkedList({ 4,5,1,2,3 });
testData.push_back(data);
data.input = GenerateLinkedList({ 0,1,2 });
data.in... |
cda43e0a48b01073ae11e13dcb5e8e93f3da2a72 | 753d227672ea94c55c7d43002f6e7a7f67ed59a0 | /Draw.hpp | 6cbbb52499658e0933f8de88c1f9b4d3553ffb29 | [] | no_license | Yatinu1234/covid69 | c37bcae8ffadcdcb139be3fa0f85ea7a5553fc63 | 7b60d79f366f94d8f69d1a1dd8d3ce2ccbf8bc82 | refs/heads/main | 2023-02-09T13:40:07.939679 | 2021-01-02T21:11:20 | 2021-01-02T21:11:20 | 326,267,485 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,062 | hpp | Draw.hpp | #pragma once
class nkDraw
{
public:
nk_context* CopyContext;
struct nk_font_atlas* atlas;
void SetBuffer(nk_command_buffer* buffer);
void SetOverlaySize(float X, float Y);
float* GetOverlaySize();
void DrawCicle(int Radius, int x, int y, int rx, int gx, int bx, int ax);
void DrawFOV(int Radius);
void nkDrawTex... |
92dc2c2bb5e270c37561d77c4bde9d137126fdfb | ef647be3eedf9567ea92829759d271e344b716dd | /RenderingX12/XUSG/Advanced/XUSGCharacter.h | 7f2262b4df736394f4ab068e742ac4bb069ec68b | [] | no_license | alexanderyyg/RenderingX12 | 7e0c96f39125259a5f269664b4c8de35861b728b | f4c63a89e9717acb2fafa5f2a52d12cd6ab84bfc | refs/heads/master | 2020-09-22T01:55:46.753946 | 2019-11-30T08:48:03 | 2019-11-30T08:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,066 | h | XUSGCharacter.h | //--------------------------------------------------------------------------------------
// By Stars XU Tianchen
//--------------------------------------------------------------------------------------
#pragma once
#include "Core/XUSGComputeState.h"
#include "XUSGModel.h"
namespace XUSG
{
class Character :
public... |
fc4edeff9715001d61d22da6e0c879bdebcd49ea | a9b0094409350e7fbd0a05233044c2154d15ed77 | /src/Main.cc | 6e32a7aa01eee82b8350a2d8829a8dc7540299c7 | [] | no_license | lilinj2000/sun | ab67c76d198155667d356e17c14afaa613bcb7af | 9c29f3ad473987e73b797483e1a0a78dd5549f4f | refs/heads/master | 2020-02-26T13:56:32.826041 | 2017-10-30T09:10:03 | 2017-10-30T09:10:03 | 60,672,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,007 | cc | Main.cc | // Copyright (c) 2010
// All rights reserved.
#include <memory>
#include <iostream>
#include "Server.hh"
#include "soil/json.hh"
#include "soil/Log.hh"
#include "args.hxx"
int main(int argc, char* argv[]) {
args::ArgumentParser parser("The fema's load test program.");
args::HelpFlag help(
parser,
"hel... |
05e79e4cd9bbce80f0562401c015ea181735f20d | 814568751dccd74638cee34a371bef0ccf739e72 | /tfcc/mkl/gemm/tfcc_mklmatmulkernel.h | 8433c04f4798ad299685ce27e597759a761f6a35 | [
"BSD-3-Clause"
] | permissive | zjjnevergg/WeChat-TFCC | 03010e67b4d8427e0b5174b06e8f198e1e515e27 | fe76438cb9a632e65e999680f19443bfcf27957e | refs/heads/master | 2023-06-07T02:16:49.703797 | 2021-07-06T23:05:38 | 2021-07-06T23:10:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,211 | h | tfcc_mklmatmulkernel.h | // Copyright 2021 Wechat Group, Tencent
//
// 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 agr... |
4c372aea7f39e2e1c433d4127a02e381b8542068 | c66129d551456ea813f1e09ba93b7c6cf38307fb | /Game.h | 544dda3d3e5d7286a5c3d38ecd682dfb2c85834a | [] | no_license | DanielBuzkov/trivia | 1ddade85e722c0197e193ee29de0b89f18f6cb4e | a930dcd71946c8653d290c17775544f213d4b61d | refs/heads/master | 2022-12-30T09:45:12.358012 | 2018-06-26T20:32:44 | 2018-06-26T20:32:44 | 299,983,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | h | Game.h | #pragma once
//unclear
#include "Question.h"
#include "Protocol.h"
#include "LoggedUser.h"
#include <vector>
#include <map>
class Game
{
private:
vector<Question> m_questions;
map<LoggedUser, GameData> m_players;
public:
void getQuestionsForUser(LoggedUser); //param type was User
void submitAnswer();
void rem... |
73dca3e2c6b3abde8d376204e3b2f3fb46093785 | 237ccc5bdcf48c7893456bf8e5f745dfa9b0bb57 | /StructuringElement.cpp | 5de361cfa59021aa76e169256d945a99bbb601a6 | [] | no_license | rickie95/MorphOpsCUDA | 4479fcf597b30a2969ae9fdff000bcc244b14526 | 031f3a60b99853ed430c68810efe98995375279c | refs/heads/master | 2020-04-09T17:59:25.904686 | 2019-01-12T18:09:19 | 2019-01-12T18:09:19 | 160,498,202 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,679 | cpp | StructuringElement.cpp | #include "StructuringElement.h"
#include <stdlib.h>
#include <stdio.h>
#include <cmath>
// CLASS StructElem: base class.
StructElem::StructElem() {}
StructElem::StructElem(int radius_x, int radius_y){
this->radius_x = radius_x;
this->radius_y = radius_y;
this->width = 2 * radius_x + 1 ;
this->height ... |
30e089eedda5bf42c6d7c737f411ff89ed5a1f39 | 398f2fc3d2aa4eb7b2bbdf25943c97535bd2d17d | /Markov random fields/GraphCut/GraphCutMex.cpp | 0806d9e5510e4246601fcabe5fd5a19f950afccd | [] | no_license | jakejhansen/Advanced_Image_Analysis_02503 | 7697daa8f3faa3a5d4e92efec1c72e20742fd801 | 200061486ee7817b63761555412a0653bd7b7024 | refs/heads/master | 2021-09-22T09:06:05.339418 | 2018-05-28T23:56:37 | 2018-05-28T23:56:37 | 126,198,166 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,415 | cpp | GraphCutMex.cpp | #include <math.h>
#include "mex.h"
#include "graph.h"
#include <vector>
void
mexFunction(int nout, mxArray *out[],
int nin, const mxArray *in[])
{
if (nin != 3)
mexErrMsgTxt("Three arguments are required (nNodes,TerminalWeights,EdgeWeights)") ;
if (nout > 2)
mexErrMsgTxt("Too m... |
bc05b2cc2a2a595d58956c5b5adeac7809ea018a | c4a71c9813d8ea5b688e8f762258a1021e8f659e | /src/tracker/torrentracker.h | c10c6d8a723cebeec4b9b821a81c648ebd7f472e | [] | no_license | HoTaeWang/CuteTorrent | 1960627f30600f80af205f9e6458b274d9a4c175 | d599ffb65af9cd79c15260a35d8ceaa88efc6d6c | refs/heads/master | 2021-01-21T09:02:59.325799 | 2016-01-01T15:52:24 | 2016-01-01T15:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | h | torrentracker.h | #ifndef TORRENTRACKER_H
#define TORRENTRACKER_H
#include <QObject>
#include "trackercommon.h"
#include "ServiceCommon.h"
class TrackerRequestHandler;
class HttpListener;
class TorrentTracker : public QObject, public Singleton<TorrentTracker>
{
friend class Singleton<TorrentTracker>;
Q_OBJECT
private:
HttpListener*... |
b32766726a0808a549cb337e54b6728b0c15994e | 4cb98b7fe0654a928deea9ead312eb0861e4e73c | /VS/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_21.cpp | 0526560a661a9968bee742c462698b4a7b076c24 | [] | no_license | Tuan-Mai/ComputingInAR-FinalProject | 3e78feb6b9deda1512d01b924b790811cd0c2197 | 930c6b1fccbf1e2c7a0d2257abaff8acd4cbf97e | refs/heads/master | 2020-04-08T12:52:16.130981 | 2018-12-10T17:31:31 | 2018-12-10T17:31:31 | 159,365,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126,652 | cpp | Bulk_Generics_21.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... |
4e8b3141970f4ea5723d6f9b10403d50e39aea26 | 1f0cc5e85e47bdd8d2cf6217ed533978dc9767a2 | /Practice4-5/Pointers_Pr7/Pointers_Pr7.cpp | f80bb06f934090ae09e6cee4b939c0cb18e6446d | [] | no_license | sobol-mo/KHPI_Progr_Fundamentals-2 | 5cc2f8cb05b521cbf472e55673b9cb9fc66004ba | a9e0d5d1c619b08ec93aaaef187d82da98c36da1 | refs/heads/main | 2023-04-04T20:28:10.887316 | 2021-03-31T09:20:48 | 2021-03-31T09:20:48 | 334,115,341 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,609 | cpp | Pointers_Pr7.cpp | /*
Покажчики. Приклад 7
В одновимірному динамічному масиві знайти
індекс і адресу максимального елемента
використовуючи абсолютну адресацію
*/
#include <iostream>
#include <time.h> /* time */
#include <Windows.h>
using namespace std;
void main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
srand(time(NU... |
cb449284ff31aa4fb6f8a0cd4b92e00d20b4e876 | 8a1d056a516831d99ccb4eb52053d1cffd97c9e9 | /src/gamed/game_module/skill/template/model_action.h | ca174db58db87cebfce2132eaeec7a5857bb5810 | [] | no_license | 289/a | b964481d2552f11f300b1199062ca62b71edf76e | 43d28da99387ba225b476fe51bd7a13245f49d5e | refs/heads/master | 2020-04-17T04:22:23.226951 | 2018-03-21T14:17:08 | 2018-03-21T14:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,516 | h | model_action.h | #ifndef SKILL_DATATEMPL_MODEL_ACTION_H_
#define SKILL_DATATEMPL_MODEL_ACTION_H_
#include <stdint.h>
#include "shared/net/packet/base_packet.h"
#include "shared/net/packet/packet_util.h"
#include "shared/net/packet/bytebuffer.h"
namespace skill
{
struct ActionInfo
{
int32_t frame_num;
std::vector<int8_t> atta... |
351536c3eeabddcd9212d06be2352e97201af3cb | 7e66195564b4338d836d2a416e50b897d506e976 | /task 117.cpp | 235379619ba2655a47638fcb73783ffdf5f4d96f | [] | no_license | ZhaziraD/Zhazira | e3facf98a681a1236fed44bc40001cd037cf3c7f | a04cd8924ef4626ea80e31cfa5ad19b775a0d259 | refs/heads/master | 2020-09-14T09:36:38.660887 | 2019-11-23T19:22:41 | 2019-11-23T19:22:41 | 223,092,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | cpp | task 117.cpp | #include <iostream>
using namespace std;
int main()
{
int n, sum=0;
cin>>n;
int a[n];
for (int i=1; i<=n; i++){
cin>>a[i];
}
for (int i=1; i<=n; i++){
if (a[i]==0) break;
sum+=a[i];
}
cout<<sum;
}
|
dcc62d0dfb541f6ff9beef10b65b18f4aa2d0cb1 | 0b19bacbb73113240ea862aa2e6aaf22b773a741 | /rainbow/src/Scene/Tileset.h | c6fc79e95211080dabe5d4dca193f5dc96a09edb | [] | no_license | fredakilla/Rainbow | b1a64415b2dfa7c3a13ddb3c77a1b2026b3b7f25 | 096af7d74473a68de4787693c365e98a52a39ff1 | refs/heads/master | 2020-04-06T10:47:34.105551 | 2018-11-27T12:55:52 | 2018-11-27T12:55:52 | 157,392,000 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 715 | h | Tileset.h | #pragma once
#include "../Core/Serializable.h"
namespace rainbow
{
/**
* Defines a text renderer.
*/
class Tileset : public Serializable
{
friend class Activator;
public:
/**
* Constructor.
*/
Tileset();
/**
* Destructor.
*/
~Tileset();
protected:
/**
* @se... |
f84f7953bd734e2d0660eeeed101b0595a68c19e | 39a1d46fdf2acb22759774a027a09aa9d10103ba | /inference-engine/tests/functional/plugin/conformance/subgraphs_dumper/include/matchers/base_matcher.hpp | bb75c373246f10516816bf03b9741189ebc74168 | [
"Apache-2.0"
] | permissive | mashoujiang/openvino | 32c9c325ffe44f93a15e87305affd6099d40f3bc | bc3642538190a622265560be6d88096a18d8a842 | refs/heads/master | 2023-07-28T19:39:36.803623 | 2021-07-16T15:55:05 | 2021-07-16T15:55:05 | 355,786,209 | 1 | 3 | Apache-2.0 | 2021-06-30T01:32:47 | 2021-04-08T06:22:16 | C++ | UTF-8 | C++ | false | false | 2,764 | hpp | base_matcher.hpp | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <utility>
#include "ngraph/node.hpp"
#include "pugixml.hpp"
#include "functional_test_utils/include/functional_test_utils/layer_test_utils/op_info.hpp"
namespace SubgraphsDumper {
class MatchersManager;
c... |
4034cf741fb1ecf5ef192aeabf5c68dc45f99cf6 | e637d734d7970005f5ed18f4f624445ae0210ac6 | /GradiusCopy/Big_Core.cpp | 78fca1915da597c046d68235208ad4283971dcef | [] | no_license | kcj08021/GradiusCopy | 30e7ccc37e741935dd8c081841c74deb399e34ee | 144df0e4952aa08e18b3de5c6f0f32cb1df8899a | refs/heads/master | 2022-09-08T05:05:14.988075 | 2020-05-25T00:10:31 | 2020-05-25T00:10:31 | 266,646,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,257 | cpp | Big_Core.cpp | #include "pch.h"
#include "Big_Core.h"
#include "EnemyBullet.h"
Big_Core::Big_Core(): m_Cooltime(0){
}
Big_Core::~Big_Core(){
Release();
}
void Big_Core::Initialize(){
m_tInfo.fX = 650.f;
m_tInfo.fY = 300.f;
m_tInfo.fCX = 162.f;
m_tInfo.fCY = 162.f;
m_Cooltime = 20;
m_fSpeed = 3.f;
m_iDam... |
83ecfaced21dddaac82071a08e8b874cf92a0d5c | 34ad3762042b4e957463286da2921c6478f4810c | /src/util/unique_ptr.h | d2f812bfb2e68c3ffe2e3f51a4839dd39d50a60b | [
"BSD-3-Clause"
] | permissive | DalavanCloud/berrydb | 6192d0530a140e750e3110cb5e21d91224ce6334 | c5122027334a375422e90cc0eb5c528a8d9bdb91 | refs/heads/master | 2020-04-17T14:11:45.598555 | 2019-01-20T07:04:58 | 2019-01-20T07:04:58 | 166,647,382 | 1 | 0 | null | 2019-01-20T10:10:24 | 2019-01-20T10:10:23 | null | UTF-8 | C++ | false | false | 1,306 | h | unique_ptr.h | // Copyright 2017 The BerryDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BERRYDB_UTIL_UNIQUE_PTR_H_
#define BERRYDB_UTIL_UNIQUE_PTR_H_
#include <memory>
#include "./platform_deleter.h"
#include "berrydb/platform.h"
na... |
0521026e8c02b4ecac19be8aa36b2782cf134046 | 195281d2f41720d40133a24fe17e460e59dba816 | /src/src_bksafe/beikesafe/Checkbase/GetComputerInfo.h | c32c57d0a2e845d3f154cd456ed44c8dad02229f | [
"Apache-2.0"
] | permissive | killbug2004/ksm | 3e0547437e1f48d14558ab2ec10fad4f367d2a93 | 6229edcf7376d4da13f4865310fda3b581063eb5 | refs/heads/master | 2017-10-03T03:04:03.675891 | 2015-03-20T10:08:22 | 2015-03-20T10:08:31 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,369 | h | GetComputerInfo.h | #include <stdio.h>
#include <windows.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <tchar.h>
#ifdef _UNICODE
#endif
using namespace std;
#pragma comment(lib, "wsock32.lib")
#define KEY_SET_INFO _T("SYSTEM\\ControlSet001\\Services\\Tcpip\\Parameters")
#define KEY_NAME _T("Domain")
#define MA... |
f918cc4d8b1d89eac66c449d7a459a6614291809 | 77b25fa438b6f2736e60885603bb303b36ba7cd5 | /lab5_queue/add_remove_opposite/queue_driver.cpp | 246aabe55c9a8434309d285eee508e6917e4d971 | [] | no_license | robotcorner/CPE212-Data-Structures-Cpp | f6d43b7e4a5273c61e32f2268ac1064562518ce7 | 4df24b8f84a3877305257bf61b2a939a471cea2d | refs/heads/master | 2022-02-26T18:29:39.631846 | 2019-11-11T16:18:58 | 2019-11-11T16:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | cpp | queue_driver.cpp | #include "queue.h"
#include <iostream>
using namespace std;
int main()
{
int item;
Queue A_queue(100);
cout << endl << "old methods" << endl << endl;
for(int i=0;i<10;i++)
{
cout << "pushed item was " << i << endl;
A_queue.Enqueue(i);
}
for(int i=0;i<10;i++)
{
A_queue.Dequeue(item);
cout << "retu... |
5d639cbd20e38e541b86a175219f23eb58bdbb7f | 1ecf4c8714005f961361f4de2d317efa9ce7e1de | /Algorithm Trainings from Yandex (September 2021)/Linear Search/E-diplomas.cpp | c43f7a160f7fd5b6dbe93b349d391a8852b22117 | [
"Unlicense"
] | permissive | successful-try/- | e4aca86bd819bf6a0e459e8a6edcc59827c0d241 | c0b8196f036db7916194536684c04f2091785a34 | refs/heads/main | 2023-08-24T10:06:03.523959 | 2021-11-01T04:31:23 | 2021-11-01T04:31:23 | 373,467,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | E-diplomas.cpp | #include <iostream>
#include <math.h>
#include <vector>
#include <algorithm>
#include <array>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
int x;
int sec=0;
int max_folder = 0;
for(int i=0;i<N;++i){
cin >> x;
if(x > max_folder){
max... |
ad5998dd9e827efb1cfd4b9a7dedd54bc825cd05 | ddcabf7de24bbb4a2383cf19524f4a1af1ff51db | /src/ReadFiles.cpp | 943ddc8e035b3ef6199717dd81149053bb0989d2 | [
"MIT"
] | permissive | Isurwars/Correlation | 5028fb07a9cd00b3078dd11c9f8340341f58e988 | 1fe7dbf2566317703317ca6b0335002a0c9f3a10 | refs/heads/main | 2023-04-18T22:24:01.308651 | 2022-08-15T18:15:42 | 2022-08-15T18:15:42 | 266,740,288 | 17 | 7 | MIT | 2022-05-20T11:32:07 | 2020-05-25T09:36:38 | C++ | UTF-8 | C++ | false | false | 18,280 | cpp | ReadFiles.cpp | /* ---------------------------------------------------------------------
* Correlation: An Analysis Tool for Liquids and for Amorphous Solids
* Copyright (c) 2013-2021 Isaías Rodríguez <isurwars@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the MIT Lice... |
2ccf628f7da9bc2e7448f0758f64cee94b5e0f39 | d217d87eda5567d220bab15e49094d688c77eb08 | /src/components/ActionComponent.cpp | 48d189f9ebe6345bc686e042cb254ee345650b7e | [] | no_license | TheNinthFox/icw | daf9fcc87631686b45059ee20faa76432f87aed1 | ec4f9c1dc80b1b993f36ae23de9bf927dbe361d4 | refs/heads/master | 2020-04-15T04:40:22.306440 | 2014-10-19T19:59:11 | 2014-10-19T19:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | ActionComponent.cpp | #include <lib/gameobjects/GameObject.hpp>
#include "lib/components/ActionComponent.hpp"
ActionComponent::ActionComponent( GameObject* gameObject ) :
mActions()
, mGameObject( gameObject )
{
this->setType( "ActionComponent" );
}
void ActionComponent::update( GameObject* object, sf::Time dt )
{
}
... |
9ba1de4d485add81d821b58d61e3b8932757e36d | b4aa7fbe0c78a36e0f75c7223f6c84529bbbdb90 | /lec4_task/queue.cpp | b9591fc17ca667b1ba0efd4e693bb7cbdaf80a09 | [] | no_license | SputnikLee/DataStructuresAndAlgorithms | ad14ca2ed0dd2aac0a3a5a4105dbf6af2cd91cf9 | f02162ec2dd53b68c1275b6ecff6873de0a5effd | refs/heads/master | 2020-05-23T00:53:30.277048 | 2019-05-14T08:15:09 | 2019-05-14T08:15:09 | 186,578,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,240 | cpp | queue.cpp | #include "queue.h"
#include <stdlib.h>
#include <stdio.h>
bool CreateQueue(Queue *queue, int size) {
if (size <= 0)
return false;
queue->values = (double *) malloc(sizeof(double) * size);
queue->front = 0;
queue->rear = -1;
queue->counter = 0;
queue->maxSize = size;
return true;
}
/... |
1524cafd876e0ca6e9134302ada5cabd16ffa1f2 | 1724439e1f3b8e92874ba9f1d67cc4211890a4e4 | /module03/ex00/Point.cpp | 2648d156415dd1cc4a4c268742436ae98590ab76 | [] | no_license | evelon/CPP-Module | 3aac6d1ff8bea2ea0f400832c35dc86057d0d704 | 7534e7d420360a19e411cbd450654f1fdb168552 | refs/heads/main | 2023-04-25T04:17:20.169564 | 2021-05-10T11:21:48 | 2021-05-10T11:21:48 | 358,794,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,527 | cpp | Point.cpp | #include "Point.hpp"
Point::Point():
num(0) {}
Point::Point(unsigned int un):
num(un)
{
if (num >= 100)
this->num = 100;
}
Point::~Point() {}
Point::Point(Point const& point)
{
this->num = point.num;
}
Point& Point::operator=(Point const& point)
{
this->num = point.num;
return (*this);
}
Point Point::oper... |
4a967f50f50fa324154f9f8e311f66f37b3de198 | 2ab05fc523d0e5defb90a9e443c33118aa50dd8f | /fo/sort/sort1.cpp | 79a3f1f6588100bc06ef6e540599e375d728272b | [] | no_license | NetworkRanger/cpp-stdlib | 4d16464b0ae8a4681ca7a10bb08d07db8c6f375c | 3c19b96ce59add163bf7c57ea893e03883957ec8 | refs/heads/master | 2020-03-07T08:27:00.182650 | 2018-06-20T14:40:24 | 2018-06-20T14:40:24 | 127,378,662 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | sort1.cpp | #include <iostream>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
class Person{
public:
string firstname()const;
string lastname()const;
};
//class for function predicate
//-operator() returns whether a person is less than another person
class PersonSortCriterion{
public:
bool operat... |
b361c0501296964df0e0892fbfe173d7bee9f439 | cc6f5216f460f06bdc047fed39ac0e7cebd73cfa | /NTHU_OJ_Codes/9018_-_Tree.cpp | a292e3a9025ba0ca6ba4e76a76bf72431de96e38 | [] | no_license | henryyang42/C_CPP_Codes | e90d01b03f248c0fbac55542c3c39083ff8a6fe2 | 8d4a686f49f4d565427f68b46039ad5d5626dc38 | refs/heads/master | 2021-01-18T21:43:28.614381 | 2016-04-10T05:38:00 | 2016-04-10T05:38:00 | 16,172,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | cpp | 9018_-_Tree.cpp | #include<stdio.h>
#include<string.h>
char map[1001][1001] = {0}, ct[1001] = {0};
int fg;
void dfs(int a){
if(fg++)
putchar(32);
ct[a] = 1;
printf("%d", a);
int i;
for(i = 0; i < 1001; i++)
if(map[a][i] && !ct[i])
dfs(i);
}
int main(){
int n, i, a, b;
while(scanf("%d", &n) > 0, n){
fg = ... |
0854b20d32b96077bb4ba6dfdc88e702f2b71581 | 0721eb716ff41621d4b5f55cf1b33a00d3014974 | /makeCode/Chapter01/myCode/Game.h | 44c418784bce73521950455863f9421c3de26e11 | [] | no_license | shigeuchi0901/gamingProg | 13a40525e43f9c28fd640c06507250cfa675c189 | afbc9dc794b4f6b6da0f6ff4a0443a94031071b3 | refs/heads/master | 2023-08-14T14:23:00.282661 | 2021-10-04T23:24:45 | 2021-10-04T23:24:45 | 392,527,266 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,898 | h | Game.h | // 自作:Game インクルード
// 2021/08/28
// 重複インクルードを防ぐ
#pragma once
// SDLライブラリをインクルード
#include<SDL.h>
#include<vector>
// ******************************************
// 構造体宣言
// ******************************************
// ベクトル
struct Vector2
{
float x;
float y;
};
// 色彩情報
struct RGB
{
Uint8 r;
Uint8 g;
Uint8 b;
U... |
db33a14794ac7ad6b4a4061e3ef9d2448c8e90f9 | ca598ff79fd13a8855d96284eca1cd2c42c9f565 | /src/MappedCSR.h | 86715951b6221cd52f4887da575c92da758460e3 | [] | no_license | eleakin/reco | e82c105cd40754d7c928a5572ee2f9e030a3181c | d4b3a10920106be8ce26d741409705b62c546986 | refs/heads/master | 2021-01-25T12:37:49.518260 | 2018-02-17T08:26:52 | 2018-02-17T08:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | h | MappedCSR.h | #include <cstdint>
#include <stddef.h>
template< typename T>
class MappedCSR {
public:
MappedCSR();
MappedCSR(std::uint32_t n_rows,
std::uint32_t n_cols,
size_t nnz,
std::uint32_t * j,
std::uint32_t * p,
T * x):
n_rows(n_rows), n_cols(n_cols), nnz(nnz),... |
cf8ee4a47f6a78a554dbf2ce70e7773d62ff4741 | f5d0f2bdeda7d45bc206a0b31ddbb9d078576f66 | /content/epPerson.h | 033cd8e1dd4efa3c6d7cbe3ba2bb6bff6219855d | [] | no_license | duanwujie/epserver | 9f2e905169bfc91193c9e9e1dbcb0eefdebea92e | 32c757148ba6ca58a28de310f984294264a5de5a | refs/heads/master | 2016-09-06T02:12:23.554129 | 2014-01-13T01:57:01 | 2014-01-13T01:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,838 | h | epPerson.h | /**
* @file epPerson.h
* @brief 人物基类。
* @author nvngliu@gmail.com
* @version 1.0
* @date 2014-01-08
*/
#ifndef __EPPERSON_H__
#define __EPPERSON_H__
#include <iostream>
/**
* @brief 人物基类。
*/
class epPerson {
public :
epPerson (void);
virtual ~epPerson(void);
/**
* @name set
... |
90a84848eedddd2701760ab3513479e3ac4321fb | dcb1f00dd38014e0e1d37bed60fa412e29f71140 | /wrapper/Core/JobProcessor.h | 727ec9120f42578024c06d93cc2cdfb4907b66f5 | [] | no_license | hualaw/ServerWebkit | 1ed5ac2845ec18ab9d7a7a08cdf610575938ad00 | be4c9a47b7c4edaf40a195b058c75903016a45bb | refs/heads/master | 2020-03-28T14:29:52.963519 | 2018-09-12T14:27:08 | 2018-09-12T14:27:08 | 148,492,820 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | h | JobProcessor.h | #ifndef _SERVER_WEBKIT_WRAPPER_JOBPROCESSOR_H_
#define _SERVER_WEBKIT_WRAPPER_JOBPROCESSOR_H_
#include <QTimer>
#include "SWGlobal.h"
#include "ProtocolAnalyzer.h"
class JobProcessor: public QObject
{
Q_OBJECT
public:
JobProcessor(QObject *parent = 0);
~JobProcessor();
void clearParams();
public slots:
v... |
874b2055d83cb2bbd86d3393c494485b94bf155e | 553e05ae32b4a2ad15c2b4dcca419773bc86e069 | /10_02_jumpFloor/JumpFloor.cpp | f913e45f4ff874f40b0c296c7307305603daa231 | [] | no_license | MaggieLee01/Coding | 52d825647aa3190bac28d7e9528a74e169ea25f6 | 6369b38fc01c0f7f8920c0d3f6188f5a91211caa | refs/heads/master | 2020-11-28T02:55:15.248215 | 2020-08-29T00:47:24 | 2020-08-29T00:47:24 | 229,686,797 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,139 | cpp | JumpFloor.cpp | //剑指offer扩展题目,基于斐波那契数列题目
//已通过牛客网测试系统
#include<iostream>
#include<vector>
//一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法。
int JumpFloor(int number)
{
if (number <= 0) return 0;
std::vector<int> dict(2, 0);
dict[0] = 1;
dict[1] = 2;
if (number < 3) return dict[number - 1];
int sum = 0;
for (int i = 3; i <= number... |
66847179c45ea1063396a1c3ec47d6342fdf0200 | b0d31ca03064c51c4c3cb1050061bcc77d5241be | /SML/SMLRunner.h | eaec9667ed5af1aebf7eada597b08326a416e96a | [] | no_license | GEslinger/LinuxClass | 443b993555b20a118727afc49b00a0139f34e0d6 | 51e7e1daf30c330b62c4f03163c781cbb597e8c3 | refs/heads/master | 2021-01-18T17:37:41.432564 | 2017-12-13T15:40:52 | 2017-12-13T15:40:52 | 100,492,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | h | SMLRunner.h | #include <string>
#define inspect(x) std::cerr << #x << " is " << x << " in file " << __FILE__ << " at line " << __LINE__ << std::endl
using namespace std;
class SMLRunner{
public:
SMLRunner();
bool loadFile(string fname);
bool exec();
void reset();
private:
bool isWord(int w) const;
int getCommand(int w) const;... |
9dbfdd12fd10a3ac99c5aa03417e8449d40bd79f | a56774dfacf9b73c8fba294eca5eaab3ce942f90 | /src/gpu/ocl/xe_hp_1st_bwd_convolution.cpp | f6e7ae58625b7750f449383cb8d72b10486c0e38 | [
"Intel",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | sakulish/oneDNN | 7dbf2b712aac93295d476d41d3b4f07c91e9110f | 049a42b0152e0acca2169f0a45e948ef2d76a01d | refs/heads/master | 2023-08-29T04:50:23.756401 | 2021-11-15T16:30:33 | 2021-11-15T19:00:50 | 255,316,755 | 0 | 0 | Apache-2.0 | 2020-04-13T12:15:24 | 2020-04-13T12:15:23 | null | UTF-8 | C++ | false | false | 14,710 | cpp | xe_hp_1st_bwd_convolution.cpp | /*******************************************************************************
* Copyright 2021 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.o... |
52d39b19ee9fb9ed02764ef8b810321453d512e6 | 7bb0495ae6c0a9bee1b3903c4a92cadff8fbef96 | /start_siritori.cpp | 0981665d1a9bac4289b76481e85f0d487705934a | [
"MIT"
] | permissive | TakuKitamura/siritori | 829f4681751836b1cca5848abb429d87bace0da0 | c5463b71723590572d92496129176edf8720b4bb | refs/heads/master | 2021-04-06T09:30:33.834501 | 2018-03-11T11:42:13 | 2018-03-11T11:42:13 | 124,750,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,796 | cpp | start_siritori.cpp | #include "siritori_machine.h"
#include <iostream>
#include <cstdlib>
#include <string>
#include <random>
#include <vector>
#include <iomanip>
using namespace std;
//コマンドライン引数により、通常プレイか学習するかの処理を分岐させる
int main(int argc, char *argv[]){
Siritori ins;
string arg1;
//コマンドライン引数が2つある時
if(argc == 2){
//第二コマンドライ... |
5cbe3256bd0165cd840108a97233f5afffc96482 | b65acdd4e28bac5b0b0cc088bded08cc80437ad8 | /MVSProg/Task48/Project1/Project1/Main.cpp | d3f18b35d4596955f449d6e913deb7e7fe68e431 | [] | no_license | YulianStrus/Examples-of-academic-homeworks | 44794bb234626319810f444a3115557b4e59d54f | f2fb2b5e02f069ff8f0cbc1a95c472ad2becad4c | refs/heads/master | 2023-05-27T16:09:41.220326 | 2021-06-02T10:04:07 | 2021-06-02T10:04:07 | 313,245,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,378 | cpp | Main.cpp | #include "iostream"
#include <ctime>
using namespace std;
class Array
{
int *Arr;
int size;
public:
Array() { size = 5, Arr = new int[size]; }
Array(int s) { size = s, Arr = new int[size]; }
Array(const Array & other)
{
this->size = other.size, this->Arr = new int[size];
for (int i=0; i<size; i++)
{
... |
af512d41609d05e2ac6f263a0b4575c67dc74c0b | e370e5b2263a13d60766d2422c2d29614a645fd3 | /lib/cocos2d-x/scripting/lua/cocos2dx_support/platform/android/CCLuaJavaBridge.h | afc2bb95d85d22ae31e66a5843c933d076880b16 | [
"MIT"
] | permissive | zrong/quick-cocos2d-x | 77dcb7655fd98a0e3ec9a78c69247921889556a5 | dab1f61b6cf8b35e9bf65041d351f16c68262416 | refs/heads/zrong | 2020-12-11T05:25:45.329451 | 2014-09-16T09:21:26 | 2014-09-16T09:21:26 | 14,011,821 | 57 | 78 | null | 2014-04-24T06:47:48 | 2013-10-31T08:53:36 | C | UTF-8 | C++ | false | false | 4,372 | h | CCLuaJavaBridge.h |
#ifndef __LUA_JAVA_BRIDGE_H_
#define __LUA_JAVA_BRIDGE_H_
#include <jni.h>
#include <string>
#include <vector>
#include <map>
#include "cocos2d.h"
#include "platform/android/jni/JniHelper.h"
using namespace std;
extern "C" {
#include "lua.h"
}
using namespace cocos2d;
#define LUAJ_ERR_OK 0
#define... |
8c0c9d63e529d4dae9db75ca0eed6090a1b8c1b7 | ce674a1838dda07477faf351e9bf45f3cecf1728 | /Oscillator.cpp | faf10ab785adabf4bf7882a3256f0139770d06c3 | [] | no_license | egorrrkkkaaa/vkrSynth | 49c4688ac02343a4e94a0eb132841f085f5a62e5 | 809527b724e78858260d16c7997b13a277c44147 | refs/heads/main | 2023-03-17T17:24:32.075834 | 2021-03-11T21:39:46 | 2021-03-11T21:39:46 | 346,043,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,857 | cpp | Oscillator.cpp |
#include "Oscillator.h"
double Oscillator::mSampleRate = 44100.0;
void Oscillator::SetType(Type mode)
{
mType = mode;
}
void Oscillator::setFrequency(double frequency)
{
mFrequency = frequency;
updateIncrement();
}
void Oscillator::setSampleRate(double sampleRate)
{
mSampleRate = sampleRate;
... |
be4e29584fe669b3d0431127d71f66b3f538f376 | c8958958e5802f3e04ce88bd4064eacb98ce2f97 | /键值映射.cpp | 5a90dd12800a94fe61f89eade85185d616a21be2 | [] | no_license | Kiids/OJ_Practice | 08e5ea99066421bfaf5b71e59eea24e282e39a24 | e7d36ddb1664635d27db3c37bec952970b77dcb0 | refs/heads/master | 2023-09-01T11:38:28.834187 | 2023-06-30T17:12:18 | 2023-06-30T17:12:18 | 217,068,695 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,000 | cpp | 键值映射.cpp | /*
设计一个 map ,满足以下几点:
字符串表示键,整数表示值
返回具有前缀等于给定字符串的键的值的总和
实现一个 MapSum 类:
MapSum() 初始化 MapSum 对象
void insert(String key, int val) 插入 key-val 键值对,字符串表示键 key ,整数表示值 val 。如果键 key 已经存在,那么原来的键值对?key-value?将被替代成新的键值对。
int sum(string prefix) 返回所有以该前缀 prefix 开头的键 key 的值的总和。
示例 1:
输入:
["MapSum", "insert", "sum", "insert", "sum"]
[[... |
95c7d55cfdad771327b3629302588f52b82eaa9e | a5abdeeeaaea0e1337a2b5d78f53949c6797ca9a | /CS260/Labs/lab03/lab03.cpp | 1c962901e799f88d2d384ee6eb2684b107b9d664 | [] | no_license | mollynova/Undergraduate_Work | 0afc43a724c74cb565bc09156484155f003e59dd | 7e2d1a07f42d445919d1aa0f8dcbcc73c24b03ad | refs/heads/master | 2021-01-11T20:48:20.680098 | 2017-03-25T03:43:38 | 2017-03-25T03:43:38 | 79,188,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | lab03.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main()
{
// Declare variables
int cinStartBalance = 0;
int cinInterestRate = 0;
int cinNoYears = 0;
double endBalance = 0;
double StartBalance = 0;
double InterestRate = 0;
// Get data
cout << "Enter starting balance: ";
cin >> cinStartBalance;
cout << ... |
d79e75dfb71750597ad534ff5411153ca3a9fe5c | 39ca78ecf06ed2e12c0923b580f4fdfa90138b76 | /lab1/LAB1/MyRadixSort.cpp | 2ec30b7c632ea73e0a83d6dc87d0f1f1d79e35eb | [] | no_license | timxag/DA | 258f05c96e8846eaaef1d066bcf6ca899804aa51 | 6f2507c5133940fae5ea89d1c1f8ac986f97f43b | refs/heads/master | 2020-04-27T12:38:42.428187 | 2019-03-19T15:17:52 | 2019-03-19T15:17:52 | 174,338,857 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | MyRadixSort.cpp | #include "MyRadixSort.h"
void MyRadixSort(TItem ** input, const unsigned int * size) {
TItem* output = (TItem *) malloc(*size * sizeof(TItem));
int digit[DIGIT_SIZE];
for (int i = 0; i < DIGIT_SIZE; i++) {
digit[i] = 0;
}
int idx = 0;
int countMoveToLeft = 3;
unsigned int buffer = 0... |
d716b30bd4284d155f9901bc2734e958bccf40cd | a78ce6dbca90fc5521d6f645c0df5284f7e8047c | /76901697/answer.cpp | 4ee6856a29ab84ccef7b81679c74d51af6172214 | [] | no_license | eddelbuettel/stackoverflow | 9bf5cdc097510cb7239290dcb58255f3aa762b9f | de57106c911095509013e47dba8a9893fdaa3f46 | refs/heads/master | 2023-08-18T05:11:41.956688 | 2023-08-14T19:42:50 | 2023-08-14T19:42:50 | 157,002,433 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 180 | cpp | answer.cpp |
#include <Rcpp/Rcpp>
// [[Rcpp::export]]
Rcpp::NumericVector myrep(Rcpp::NumericVector x, int n) {
return Rcpp::rep(x, n);
}
/*** R
x <- c(1, 2, 3, 4)
n <- 3
myrep(x, n)
*/
|
069672690c3a27f00d9ba6cf07af4eaa1c58ed1e | 7aaa95672f5ebf8bee8bf71d3308563e5a8e46e6 | /webapp/WEB-INF/views/Include/CourseDateTime/Time/Time__KUKA17_RD.inc | 621ff40a90954e50716cb5b421e0759b97380d52 | [] | no_license | huxx-j/BitHomepage | cd7ef799f756d3f181efa10326704b8434a59011 | cab6903a5e4fb0790a8c48648b533875f8904b6b | refs/heads/master | 2020-03-26T18:26:18.183384 | 2018-09-12T08:07:58 | 2018-09-12T08:07:58 | 144,576,573 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 81 | inc | Time__KUKA17_RD.inc | 08:50 ~ 18:00 (그룹스터디 포함 22:00까지)<br/>
- 총 960시간(6개월)
|
cda681013e310fd8d6a14298630d98a9d2041886 | 16c21c25152876dcf88f6951d738e5c2e8a85072 | /Classes/Data/UserDataManager.h | 71ee431fe1f87b5a6e98f1b015cd479d6960dd59 | [] | no_license | lovekill/cocoslean | 429ecf318054971d55cef06f16972891e2270ba4 | 3fd2eebd48872d274680f35877c9c6c9c58b8e85 | refs/heads/master | 2020-05-16T23:31:48.844559 | 2015-01-19T11:42:21 | 2015-01-19T11:42:21 | 28,776,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,103 | h | UserDataManager.h | #ifndef __UserDataManager__
#define __UserDataManager__
#include "../GameInclude.h"
#define Target_Count 10
class UserDataManager
{
private:
static UserDataManager* instance;
static int target[10];
int originalMaxScore;
int originalStage;
int playingScore;
int playingStage;
int playingTa... |
3c1fa375fdcc259ca3983ad8a1625851350d1851 | 333a006838b7142a5f16f3cc480186a52fb22123 | /1218_Getline_Three-Calçados/main.cpp | 292e905ce2a30380b78e752924b5f6a783dc947e | [] | no_license | AlvimPedro/Algoritimo_Estrutura_de_Dados | d02a2f315a2e4899f7a3c8b8e23bcb90289774ef | 50d861c0fa9e03b96c38f3898b67c3753c1c9f3e | refs/heads/master | 2023-01-04T11:21:48.794003 | 2020-11-04T17:25:04 | 2020-11-04T17:25:04 | 310,070,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,580 | cpp | main.cpp | #include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
class sapatos{
public:
string n;
int contn;
int contm;
int contf;
sapatos(){
n = " ";
contn = 0;
contm = 0;
contf = 0;
}
void setn(string nn){
n = nn;
contn = 0;
con... |
9f12ee300a8d49f08e578132e5a74b5895e71ddd | 4218cc8ea49bd0244c78db7282b792d54488d0f2 | /PJJ 2011/pesta_bebek.cpp | 22281a4e1cec41516715afd67f8e7de4decf9763 | [] | no_license | irff/cp-codes | 436678ce0d1939e6103c983eb1907078df391808 | 5c0c3a7710fff48751b4307f3ad0f135d25ea180 | refs/heads/master | 2020-03-29T14:36:34.904213 | 2014-10-19T18:27:02 | 2014-10-19T18:27:02 | 25,435,733 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | pesta_bebek.cpp | #include <cstdio>
#include <algorithm>
#include <string>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
#define R(i,_a,_b) for(int i=int(_a);i<int(_b);i++)
int n;
string s[1200];
int main() {
scanf("%d", &n);
getline(cin,s[1001]);
R(i,0,n) {
getline(... |
5108aa7fcfdd3c548a0c731f58a0d9e99feaa104 | fc808fd9736ceb27c1371c01c353f53950b21367 | /include/pipet/extra/cxstring.h | 7b805cd1190f44f8b4569b36efc82f582c06f946 | [
"Apache-2.0"
] | permissive | kenavolic/pipet | da9c88c13ed8828ef3fc602ee8a06168b25d8cb1 | 8b323b8410e5126c96fb5b1cb38376d0e78a650a | refs/heads/master | 2020-04-25T18:36:01.802910 | 2019-06-04T10:59:18 | 2019-06-04T10:59:18 | 172,989,463 | 78 | 3 | Apache-2.0 | 2019-06-04T10:59:19 | 2019-02-27T21:00:24 | C++ | UTF-8 | C++ | false | false | 1,469 | h | cxstring.h | // Copyright 2018 Ken Avolic <kenavolic@none.com>
//
// 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 app... |
10910533a8c37ddb327ad05b26233c04dd2bf524 | e75cc18f64db23b9c1d304c39fb74ed083d9feee | /assignment-8/Set.h | cce1fd3de18452ef2880eebbb1d366c3ea58f558 | [] | no_license | ChrisProgramming2018/cpp-course | 0b790e29ca239639dac70fa163d8af186ba7f7c7 | 398c0da3e49e67440ab663bb61d45eaf2dd56d2a | refs/heads/master | 2020-04-06T12:20:27.792277 | 2018-12-22T14:42:30 | 2018-12-22T14:42:30 | 157,451,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | h | Set.h | // Copyright 2018
// Computer Science
// Author: Christian Leininger christianleininger@gmx.de
#ifndef ASSIGNMENT_8_SET_H_
#define ASSIGNMENT_8_SET_H_
#include <gtest/gtest.h>
template<class T>
class Set {
private:
int _size;
T* _elements;
FRIEND_TEST(SetTest, constructorT);
FRIEND_TEST(SetTest, insertT);... |
eefbd7667c67d7e2f3e4e0913c0571fed8fbd0e1 | 014c74aac6e6e6e7e86a39eecc299c6a3f89d702 | /includes/ara/com/e2e/checker_interface.h | 66495b740670136d972cd3c82efe55b410368515 | [] | no_license | xuanwolanxue/ucm_client | 927e0ee25816b2f6b64a5755a5baca0a91bf5b5d | 130f87bff609ad78bbd4224a5781f9999ce36c01 | refs/heads/master | 2023-03-15T21:10:05.574505 | 2020-02-17T12:17:38 | 2020-02-17T12:17:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,301 | h | checker_interface.h | // --------------------------------------------------------------------------
// | _ _ _______ .----. _____ _____ |
// | /\ | | | |__ __| . ____ . / ____| /\ | __ \ |
// | / \ | | | | | | . / __ \ . | (___ / \ | |__) | |
// | ... |
8296414d5665bcd4a31e79ff3b4b333e19df0329 | 3106e5274aca54c9c9884a2a10589ea8e5040b8d | /DirectX11 sebbansEngine VS2019/Mouse/Mouse.cpp | f3abc9c9aff6a833d6d56d421f4ed6fec8d67b65 | [] | no_license | relinkz/DirectX11-sebbansEngine-VS2019 | 0ada5376da6da78be09019c63f9525e8685d1268 | 0e43392cc2fb2af0ff2af7ca5018561b3d7233fa | refs/heads/master | 2023-08-23T17:07:35.874862 | 2021-10-17T15:27:39 | 2021-10-17T15:27:39 | 408,106,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,955 | cpp | Mouse.cpp | #include "Mouse.h"
void Mouse::OnLeftPressed(const MousePoint& mousePos)
{
m_leftIsDown = true;
m_eventBuffer.push({ MouseEvent::EventType::LPress, mousePos });
}
void Mouse::OnLeftReleased(const MousePoint& mousePos)
{
m_leftIsDown = false;
m_eventBuffer.push({ MouseEvent::EventType::LRelease, mousePos });
}
vo... |
e4fc901b0a4807986cb2ee90d3eb0028ce746233 | 87e1bea1a6d4325d922d47bd73302005e26ca01d | /graph/coloring.cpp | 9576ba60976a642c9d6d2f7134957d039accdabb | [] | no_license | nazfisa/Problem-Solving | 2daaedbc71aadd01dc535eb36d456bff32a7953d | d890ef25d8cb36930dcad116c9d3de7abb9c907e | refs/heads/master | 2021-06-12T18:08:23.647474 | 2020-04-09T13:56:07 | 2020-04-09T13:56:07 | 254,376,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,492 | cpp | coloring.cpp | #include<bits/stdc++.h>
using namespace std;
vector<int>adj[10000];
int visited[10000];
int Colored[10000];
void bfs(int s,int n)
{
int flag=0;
for(int i=0; i<n; i++)
{
visited[i]=0;
Colored[i]=0;
}
queue<int>q;
q.push(s);
visited[s]=1;
Colored[s]=1;
while(!q.empt... |
df755b7e579a12d65a622c13e2437526e3ac62ff | 47a4b9901faf9742273b02ba14444d8d555b65a4 | /CodeChef/WSITES012.cpp | 74016ad81025711e56529cc0f08b82fb8ac18404 | [] | no_license | Aulene/Competitive-Programming-Solutions | a028b7b96e024d8547e2ff66801e5377d7fb76cd | 81d2705263313755399f2e3b6e01e029d40f61a6 | refs/heads/master | 2021-06-27T20:03:53.657351 | 2019-04-25T19:48:29 | 2019-04-25T19:48:29 | 101,798,734 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,714 | cpp | WSITES012.cpp | #include<iostream>
#include<fstream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<climits>
#include<algorithm>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<set>
#include<list>
using namespace std;
struct TrieNode
{
struct TrieNode *children[26];
bool isLeaf;
};
struct ... |
bb016b2697f2becbe06d3d293dabf40b00810875 | bc0fc80e9abc95935f9c51f57716e900ee9975b1 | /app/src/main/cpp/com_wind_ndk_opengles_n_PngDecoder.cpp | e4395a01a8940a37451add3018c47a56fdbdfe47 | [] | no_license | yqyzxd/ndk-opengles | 8d73cb0d59c5f6db53db18895359e6b9e51f69e0 | 3458a59f4fdb785727d94e092c5a0bdf4b3caf3c | refs/heads/master | 2023-04-08T02:11:11.356144 | 2023-03-29T09:21:20 | 2023-03-29T09:21:20 | 235,065,639 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,589 | cpp | com_wind_ndk_opengles_n_PngDecoder.cpp | #include <jni.h>
#include <android/asset_manager_jni.h>
#include <string.h>
#include "libpng/png_decoder.h"
#include "pngdecoder/file_png_decoder.h"
#include "pngdecoder/asset_png_decoder.h"
#include "common/jniutil.h"
#include "global.h"
#include "GLLooper.h"
//
// Created by wind on 2023/3/28.
//
extern "C"
JNIEXPO... |
ba8a292af6fd805952db922ec1fcb5fe30b49a11 | 8606dc001bc49ef5476f4bbf31806587b225e894 | /src/states/HouseChoiceInfoMenu.cpp | e8ebaada26f7615474e6a8e2dfca22f20d8df3b9 | [] | no_license | libeastwood/doonlunacy | df0d4c660cdbfba2ecb7380200bb9a6ba867924e | 9bd2db8ff30dabbdbfea0a15041a1ee3a929511b | refs/heads/master | 2021-01-10T08:09:12.438084 | 2015-10-22T08:12:56 | 2015-10-22T08:12:56 | 43,048,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,050 | cpp | HouseChoiceInfoMenu.cpp | #include "states/HouseChoiceInfoMenu.h"
#include "DataCache.h"
#include "GameData.h"
#include "Gfx.h"
#include "gui2/Frame.h"
#include "gui2/Label.h"
#include "gui2/Button.h"
#include <eastwood/StringFile.h>
#include <string>
#include <boost/bind.hpp>
HouseChoiceInfoMenuState::HouseChoiceInfoMenuState(HOUSETYPE ne... |
ce576b9b50185b1ba24abc12c08f6b34f951499e | 6b28df12d3a45c20a19503e0eeb3649460d587f9 | /data/873.cpp | 969e0c9dd87ea606ed1b33d7e10318b4d1280f1b | [
"MIT"
] | permissive | TianyiChen/rdcpp-data | 9bb1f0319de5a22c601192c3eef33e4024b172fe | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | refs/heads/master | 2021-04-15T09:26:01.359253 | 2018-03-21T18:57:09 | 2018-03-21T18:57:09 | 126,216,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,147 | cpp | 873.cpp | int TFH,wFQ
,YjYKD
,H3 ,
qWBl//sDt
,hvAI,Nm ,
EGJn , FKDVS,
CXKB
,
Ub0oXb ,TR , dV
,PXt ,
d3ql7,vLaA
,
VoAeM ,O5Vq
,
DH5Rg4,tRQLi, //6gcVR
hEkML//
, ia ,M0 ,Ua,
UYeR ,ZMj1
,
Qtm ,JCfR ,x/*2EKl*/,
fbEp,nK , AFxr ,K, d0h/*TF*/
,
RO2, ro4b ,Yjl
,
SLD
/*P0*/,Q5Yz, y7yY
,Ec , ozI ,GZ ,LTE, uS
... |
d872f11427af07e5cab1d77f184d0e74d6b179e4 | 17fa06a77a97d899be65b3cf915f8bbe14ad82fe | /1035.cpp | 71a17f73b0d3ad850e16c88da2eaa9e1784e52f4 | [] | no_license | tahuruzzoha-tuhin/CP-Solving | f3954c700903a0e8f24674b2c69056b2c5df35eb | 18293e22f9ddaa16a688dafb48a5a4b391782a5e | refs/heads/main | 2023-01-31T02:45:02.472680 | 2020-12-14T12:25:21 | 2020-12-14T12:25:21 | 304,370,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 710 | cpp | 1035.cpp | // Problem: Selection Test 1
// Contest: URI Online Judge - Beginner
// URL: https://www.urionlinejudge.com.br/judge/en/problems/view/1035
// Memory Limit: 1024 MB
// Time Limit: 1000 ms
//
// Powered by CP Editor (https://cpeditor.org)
/*
Read 4 integer values A, B, C and D. Then if B is greater than C and D is grea... |
eccc5f2229c07048738dbd3c1cfdf952d8d2e404 | 2d5c49c5171055727b7d28fdcab3bfe96a376f92 | /lightoj/1141 - Number Transformation.cpp | fcf6322143ff433ad3ed26a3f06b02b6beb0073d | [] | no_license | mahfuzmohammad/ProblemSolving | 70dfe2b5f23e1934adcf3e96228e84a2abf89f75 | 324d02d0a81c3521833b9ed2670c084adad536f0 | refs/heads/master | 2021-01-10T07:48:40.895308 | 2015-07-24T22:52:17 | 2015-07-24T22:52:17 | 36,975,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,195 | cpp | 1141 - Number Transformation.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#include <cmath>
#include <stack>
#include <queue>
#include <algorithm>
#define SIZE 1000000
#define IMPOSSIBLE 100000
using namespace std;
int cost[102][1002];
bool arr[SIZE + 1];
vector<int> primes;
vector<int> primFact[10... |
db92ebf6086117a307177ea6bac27e06751be1ba | 5249775f7a72ddeae332c36651461484711456e9 | /esp8266-firmware/src/config.cpp | 314d7e756eb5660db7ef52b6719d6e65c42544d2 | [] | no_license | jzcruiser/WakeUpLight | 14139c47a6394eb6869aa4ffd36a990cdc83bfe0 | f798e91af33c5de1fd87b09db17a539a0a8054c1 | refs/heads/master | 2021-06-14T17:43:55.503546 | 2016-12-13T10:39:25 | 2016-12-13T10:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,064 | cpp | config.cpp |
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <FS.h>
#include <ArduinoOTA.h>
#include "config.h"
#include "alarm.h"
void loadSettings() {
}
/**
* Reads the wifi settings from wifi_conf.txt where the ssid
* and password must be saved as ssid:password
**/
boo... |
dd155b2dc671dc1b62eaab9f30263b425fdaaad3 | cded010b2c75394834cc9aa4ba667e4d8bcb4aa3 | /origin_solution/2.3.7622.cpp | fb2d0bf0eaa205f18a8d41447137050697a342d2 | [
"MIT"
] | permissive | hsefz2018/NOIP-openjudge | 8a8a7ed4c68a341ee84465af7b271bea3e8d78bb | b606d399b780959caadcf0094b90fa9163f30029 | refs/heads/master | 2020-04-11T09:11:19.557091 | 2016-11-18T14:14:49 | 2016-11-18T14:14:49 | 40,962,056 | 12 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,279 | cpp | 2.3.7622.cpp | // Submission #3463146
#include <cstdio>
#include <algorithm>
#include <utility>
static const int MAXN = 131072;
namespace fenwick {
int n;
int f[MAXN] = { 0 };
#define lowbit(__x) ((__x) & -(__x))
void add(int idx, int inc)
{
while (idx <= n) {
f[idx] += inc;
idx += lowbit(idx);
}
}
// [1, e... |
17a9b00b1a95221ddd9821536c7c24f4350695a4 | 6489a8cc4a7c591cd073b5820a5cfc8dbcc6c0b5 | /X-Ray/CSE_Abstract.h | 6f6cd493dc929ad4c3c89d27336db085875ff8f1 | [] | no_license | Alex009/soProject | c6e744e8140078a09b6325f6df9f4ae40df35ddc | 975879900610cffd021f800caf057bd42b557ee1 | refs/heads/master | 2023-03-07T00:26:20.541740 | 2021-02-17T11:58:11 | 2021-02-17T11:58:11 | 339,708,580 | 2 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 177 | h | CSE_Abstract.h | /*
* S.T.A.L.K.E.R.- CSE_Abstract class
* Disassembly by:
* 009 (Михайлов Алексей)
*/
class CSE_Abstract
{
public:
CSE_Abstract(void);
~CSE_Abstract(void);
}; |
17b047cb1d376ce9aeab47edf8c39b96223cace2 | dcf87b85c4874ffa4a186a444e9b4b8ec30666d1 | /arch/operands.hpp | 08802e312df147fb16237a88e88318d2256ee468 | [
"BSD-3-Clause"
] | permissive | jilvan1234/VTIL-Architecture | 9b3e78c5566a6c0e0f5b16c718351d5911045053 | eee8e00139d5cb893b02d4d45decd64c8f767494 | refs/heads/master | 2022-04-21T19:20:15.458016 | 2020-04-23T12:24:00 | 2020-04-23T12:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,005 | hpp | operands.hpp | // Copyright (c) 2020 Can Boluk and contributors of the VTIL Project
// 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... |
f2bd2bffd5ef83180d1bb94f81485d87bb3b440f | 671d9db359dc1bafbb505e4f5904d8abb9817424 | /SDKs/SourceDir/Windows Kits/10/Source/10.0.17763.0/ucrt/convert/atoldbl.cpp | abd260026a56a6fc7926345882744654333673ac | [] | no_license | tritao/WindowsSDK | f22659f39de23192b95806c06ad2b5850b1df5bd | 07983c7ba4f6861d15e23f195744c60c0c249ce0 | refs/heads/master | 2021-08-17T16:48:33.611875 | 2020-04-19T23:20:31 | 2020-04-21T23:39:58 | 166,725,918 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 27,713 | cpp | atoldbl.cpp | //
// atoldbl.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The _atoldbl and _atoldbl_l functions, which convert a string representation
// of a floating point number into a 10-byte _LDOUBLE object.
//
#include <corecrt_internal.h>
#include <float.h>
#include <corecrt_internal... |
660e652bd2de7f095fc74912739bd387a194c0ca | fe2836176ca940977734312801f647c12e32a297 | /etutor/Solved/AR26/main.cpp | 6275caeabc6e0be753b48d1f34605e4fc4b869ba | [] | no_license | henrybear327/Sandbox | ef26d96bc5cbcdc1ce04bf507e19212ca3ceb064 | d77627dd713035ab89c755a515da95ecb1b1121b | refs/heads/master | 2022-12-25T16:11:03.363028 | 2022-12-10T21:08:41 | 2022-12-10T21:08:41 | 53,817,848 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | main.cpp | #include <cstdio>
#include <cstring>
int main()
{
int n, m;
scanf("%d %d", &n, &m);
char inp[100000];
fgets(inp, 100000, stdin);
int b = 0, g = 0;
for (int i = 0; i < n; i++) {
fgets(inp, 100000, stdin);
int len = strlen(inp) - 1;
for (int j = 0; j < len; j++) {
... |
d60ea457e36fecde51f7b0597dc7cc0b59fbf231 | 7c3735966c62a401f3450f5b584118004be84e06 | /src/Lab/PilusSexuel.cpp | 809218851693cb1900f35f18df8322220e791c46 | [] | no_license | YannDubs/modellingBacterias | d10fdc35ccb3410347a1a4507dc7d8fcd61a6726 | 7d44c4090bdfdab2a889f4ad8c8abd7d0542087c | refs/heads/master | 2020-06-13T04:29:38.699017 | 2017-01-04T22:17:59 | 2017-01-04T22:17:59 | 75,448,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | PilusSexuel.cpp | #include "PilusSexuel.hpp"
#include "Utility/Utility.hpp"
//CONSCTRUCTEUR
PilusSexuel::PilusSexuel (Vec2d const& position, double const& radius)
: CircularBody (position, radius)
{}
//METHODES VIRTUELLE OVERRIDE
void PilusSexuel
::drawOn (sf::RenderTarget& target, MutableColor const& color) const
{
auto const... |
809623db3d49ca2f86dc6f5a7014af3d2d4b0de5 | a39fa273e79917c9172d970d66d09c97804bccdd | /C++ Builder example/CBuilder6(BCB6)彻底研究/Charp4/Unit4_3.h | fb40b5999a681e1481984c92d90c41dd739de98c | [] | no_license | jash-git/Jash-good-idea-20210419-001 | 617f54765b265c75671a5362b4d2cf51f8b36bbf | d93be27fb6a61946ea302a149c50745a0879c415 | refs/heads/master | 2023-05-03T07:27:00.701673 | 2021-05-18T01:34:00 | 2021-05-18T01:34:00 | 359,301,299 | 14 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,464 | h | Unit4_3.h | //---------------------------------------------------------------------------
#ifndef Unit4_3H
#define Unit4_3H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ImgL... |
eb971aa897429b8c447626466053b33a64ae7fa0 | b14d5833a79518a40d302e5eb40ed5da193cf1b2 | /cpp/extern/xercesc++/2.6.0/src/xercesc/util/Compilers/GCCDefs.cpp | 58d65de1e52b28cfca2f0452efea5fdcf64ff919 | [
"Apache-2.0"
] | permissive | andyburke/bitflood | dcb3fb62dad7fa5e20cf9f1d58aaa94be30e82bf | fca6c0b635d07da4e6c7fbfa032921c827a981d6 | refs/heads/master | 2016-09-10T02:14:35.564530 | 2011-11-17T09:51:49 | 2011-11-17T09:51:49 | 2,794,411 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,242 | cpp | GCCDefs.cpp |
/*
* Copyright 1999-2000,2004 The Apache Software Foundation.
*
* 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
*
* Un... |
dc5ce4ed46a8ef5490aeb570dd5183ec07a2f553 | 7d5538864d38167b2cb66764b4ea5c85bee0c918 | /atcoder/abc/163/a.cpp | afac63cf59b518995e883e10ab8c61788665e753 | [] | no_license | iPolyomino/contest | ec63acef925bf4a9b562aab46fc247d0fe7a71b9 | 96bea95174cc320f0620da322a25668ac5c500cd | refs/heads/master | 2023-07-09T01:19:33.026494 | 2023-06-24T01:06:13 | 2023-06-24T01:06:13 | 163,596,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 133 | cpp | a.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
double R;
cin >> R;
printf("%.10f\n", 2.0 * M_PI * R);
return 0;
}
|
a0c9347163f1d62010d78038c56e5f2e7ecc4497 | 23147784ffa77ebe32d3ae72fc4e7e6d5ba3eac9 | /Cannonball_b_3_4/cannonball.cpp | 0193fc813d4bf6214e90be3cef428dad6f0ca0ad | [] | no_license | vincemansel/Cpp_Daily_Code | 27bccaf9ca47eb47fb4890f5fd3d010ca0e3d4e8 | a93a8f3273988edf6860b750d28f1f28685f60c4 | refs/heads/master | 2021-01-25T08:42:58.871871 | 2011-10-27T05:16:27 | 2011-10-27T05:16:27 | 2,457,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | cannonball.cpp | //
// cannonball.cpp
// cannonball
//
// Created by Vince Mansel on 10/10/11.
// Copyright 2011 Wave Ocean Software. All rights reserved.
//
#include <iostream>
#include "simpio.h"
int Cannonball(int height);
int main() {
while (true) {
cout << "Enter height: ";
int height = GetInteger();
... |
c981fb7b2fd650fde81fcec12d981450b09d0a73 | acc79864d3ee7ac32d332b116ac2f8b705fb484b | /sources/plugins/scs/scscodecompleter.h | e7ca49d34a50a953184f077ae2dfbafc97c2ab93 | [
"MIT"
] | permissive | deniskoronchik/kbe | 9f1cc708ae652ca8c920ae01b33f277d464a0500 | b9840b35377107eed837e38e78ee6408dd115040 | refs/heads/master | 2021-01-19T05:50:32.797057 | 2018-11-11T14:08:07 | 2018-11-11T14:08:07 | 2,690,935 | 8 | 40 | null | null | null | null | UTF-8 | C++ | false | false | 509 | h | scscodecompleter.h | /*
* This source file is part of an OSTIS project. For the latest info, see http://ostis.net
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#pragma once
#include <QObject>
#include <QCompleter>
class SCsCodeCompleter : public QCompleter
... |
96f95f2184ff2b4425fa85013e039262c02d1779 | 6a398157faf845f48f2df2c7d43d5052a571db26 | /src/RandomSample.cpp | 4f3aad94798f80a46e4eb0d843f22636bf5512f2 | [] | no_license | wentaoy2/SimpleRayTracer | 9acf104d9dd5fcc41e9917a63f1bf732f0ce9589 | 303aa48f94b598885a044881801a4f2c74128118 | refs/heads/master | 2020-04-02T17:45:50.023750 | 2019-09-09T22:22:20 | 2019-09-09T22:22:20 | 154,670,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,450 | cpp | RandomSample.cpp |
#include <string>
#include "RandomSample.h"
#include <fstream>
#include <iostream>
#include <random>
#include <stdlib.h>
#include <Eigen/Dense>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
using namespace Eigen;
float randomFloat(float a, float b) {
float random = ((float)rand()) / (float)R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.