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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98f504b3e270532740a0eba27a4f6945050c4558 | e35d91399bc4be7ed5f5a1b6c59f0f5e066678c7 | /hash_algorithms/sha2.cpp | 57a24f756369670aa0404a2e8511d81732b30770 | [] | no_license | vcrom/Hashes | 3c8405cde2c3142587581330f1f5eea85640a93f | 524a73d1bb2b4058fe8c7d5812d1c2e857d65129 | refs/heads/master | 2020-12-02T11:33:36.279145 | 2017-10-24T23:02:01 | 2017-10-24T23:02:01 | 96,650,925 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,195 | cpp | sha2.cpp | #include "sha2.h"
#include "hash_utils.h"
#include <iomanip>
#include <iostream>
#include <sstream>
#include <algorithm>
//#define PRINT_Sha2_CONSUMED_DATA
//#define PRINT_Sha2_PROCESSED_DATA
using namespace hash_utils;
namespace
{
constexpr std::array<uint32_t, 64> k_values = {
0x428a2f98, 0x71374491, 0xb5c0f... |
9539abc01abdd9c4ec2d1b5967ed985be249ac79 | 87b46c8731ea22cd5e25d4ccde3a93133803048e | /compress.cpp | e2250cd1cbbfe27f65c199a8482e17f011011cc9 | [] | no_license | xjvelazquez/Bit-Compression | 01f6c16b85b540e333f532d9d9cb98922788fd88 | 1ab63010cac5d3018697f168224e8e122b23f301 | refs/heads/master | 2020-03-17T16:00:12.172854 | 2018-05-26T01:18:29 | 2018-05-26T01:18:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,501 | cpp | compress.cpp | #include "HCTree.h"
#include "HCNode.h"
#include "BitOutputStream.h"
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
using namespace std;
int main(int argc, char* argv[]){
std::cout << "Argv 1: " << argv[1] << endl;
if (argv[1] == NULL || argv[2] == NULL){
std::cout << "No input/ou... |
46594dd90900846e3460b91e60bfd40e8d6da665 | e3e10d8861e6addf1fd352feee2f574deeb3d703 | /Ray_Tracing/TestScene.cpp | 3847e4dcf179105f62420de950b154c1fe5f6675 | [
"MIT"
] | permissive | jaxfrank/Ray-Tracer | 2040ec836a6a54cb0bd757dc606532b36f5999e0 | d700352197ca19039b45c7b4b9eeef0ec158ba25 | refs/heads/master | 2021-01-17T06:43:12.885871 | 2016-05-13T03:25:32 | 2016-05-13T03:25:32 | 57,099,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,784 | cpp | TestScene.cpp | #include "TestScene.h"
#include <iostream>
#include <glm\gtc\random.hpp>
#include <glm\glm.hpp>
#include <glm\gtx\rotate_vector.hpp>
#include "Camera.h"
#include "Window.h"
#include "Time.h"
#include "TriangleRenderer.h"
TestScene::TestScene(Window* window, std::string name):
Scene(window, name)
{}
TestScene::~Te... |
ec18d1ca1bf64df12a354b51c83284fa74c5b7cd | dc3b1b231ee872d5d4d2e2433ed8a2d8fb740307 | /chapter14/ex16_StrBlob.h | a39e4579ebc0cebe00bd38557a186fc167d7001c | [] | no_license | coder-e1adbc/CppPrimer | d2b62b49f20892c5e53a78de0c807b168373bfc6 | 33ffd4fc39f4bccf4e107aec2d8dc6ed4e9d7447 | refs/heads/master | 2021-01-17T08:54:23.438341 | 2016-08-13T03:21:08 | 2016-08-13T03:21:08 | 61,343,967 | 0 | 0 | null | 2016-06-29T14:37:16 | 2016-06-17T03:49:23 | C++ | UTF-8 | C++ | false | false | 2,318 | h | ex16_StrBlob.h | #ifndef STRBLOB_H
#define STRBLOB_H
#include <vector>
#include <string>
#include <memory>
#include <initializer_list>
#include <stdexcept>
class StrBlobPtr;
class ConstStrBlobPtr;
class StrBlob {
friend class StrBlobPtr;
friend class ConstStrBlobPtr;
friend bool operator==(const StrBlob &, const StrBlob &);
friend b... |
7a91fc73e5ca63e380f3b4c934f3a86721aa14cb | 9559d029b7b74a2023f934e3988722770c7c8ca7 | /Source/TutDrome/Missle.h | ff382e079e20d887d42f908e47debc4c47c89d94 | [] | no_license | litar77/TutDrome | e87fcb9992c4426f28d7e8874504438ffce6a77a | 5ce5c71004229f841c1dcff60fc4af210d859c81 | refs/heads/main | 2023-03-11T05:18:49.311727 | 2021-02-24T05:25:03 | 2021-02-24T05:25:03 | 323,014,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,047 | h | Missle.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Missle.generated.h"
UCLASS()
class TUTDROME_API AMissle : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
A... |
d4cfb0d274daeb4e67f69e17911da39f39e107f2 | b32b94b936f87d8b2fcc823040a4df43f6590614 | /Codechef/1.cpp | b9103bc1a92c9339272f81d8772b1989abf0eb64 | [] | no_license | nitish1402/OPC | e856e9d00664741f2f533706cd4c6702b9ff1759 | 98f2e8dfe78ca8b5bc09a92bcbed1a5d4304a71f | refs/heads/master | 2016-09-06T08:14:04.967108 | 2014-03-26T09:01:40 | 2014-03-26T09:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,944 | cpp | 1.cpp | #include <cstdlib>
#include <stdio.h>
#include <cstring>
#include <complex>
#include <vector>
#include <cmath>
#include <ctime>
#include <iostream>
#include <numeric>
#include <algorithm>
#include <map>
#include <utility>
#include <set>
#include <stack>
#include <queue>
#include <iomanip>
#include <locale>
#include <ss... |
5598f13bf4d28f68946361a4f6bf780c7a57fe5e | 7dfe696720fdd5fc50320a5182ed0768095a080d | /Coursework/Week02/Chapter07/7-4-7_Summarize-Survey-Results/7-4-7_Summarize-Survey-Results.cpp | 217f7b0347fb8387088d471a04d4874c72dd14e9 | [] | no_license | BryantVail/Cpp_COP2224_70645_Fall2020 | 6a3d4de1ca2333228eefe04b4cd4ed511ee8994b | 3fbc6e8b16bec8d719381501b841ada015f0db74 | refs/heads/master | 2023-06-18T16:46:10.420362 | 2021-07-12T03:05:34 | 2021-07-12T03:05:34 | 293,118,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,065 | cpp | 7-4-7_Summarize-Survey-Results.cpp | // 7-4-7_Summarize-Survey-Results.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <iomanip>
#include <array>
using namespace std;
int main()
{
// array sizes
const size_t responseSize{ 20 };
const size_t frequencySize{ 6 };
// sur... |
f91e32eda81b089d5e2b28179005ac8689e148a8 | 7ec6bbd1ff6600be1de4e8a41bcea38ba8fc7079 | /Math/source/omMatrix4D.cpp | bdb978d631e231799ecaab855957f0260b322a65 | [] | no_license | ruulaasz/Diablito | 6f51c8e2724ff3ff6ff63622ab6eeeddd2c6b922 | 92a1b9b0b89fbb4cdb2009acc85d4dff38c29d38 | refs/heads/master | 2021-01-22T23:10:26.286830 | 2017-06-08T03:56:47 | 2017-06-08T03:56:47 | 92,801,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,653 | cpp | omMatrix4D.cpp | //////////////////////////////////////////////////////////////////////////
/// //
// @file omMatrix4D.cpp //
// @Author Raul Portillo (ruulaasz_@hotmail.com) //
// @date 2015/17/10 //
// @brief Definition of omMatrix4D Class //
// @bug No known bugs. ... |
010a0a81d01dd7d0bb6faa0d2a4d09658ffa1d47 | d4d36e6dd3713eb2e1bde7b483f54bd63c6c7316 | /Source/BasementEvolve/BasementEvolve.cpp | c2136d4c38036949b244ce99ef677ae001c4d3af | [] | no_license | Ravenill/BasementEvolve | 218f1ac7f203993a1f62854dbf7f253a02c51c8a | 574dd10d46b11863146034b67de10fda4dc43dad | refs/heads/master | 2021-04-27T21:22:35.647223 | 2018-04-17T11:26:24 | 2018-04-17T11:26:24 | 122,383,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | BasementEvolve.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "BasementEvolve.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, BasementEvolve, "BasementEvolve" );
DEFINE_LOG_CATEGORY(LogBasementEvolve)
|
e227ac946105d683e21b73964bd03bfdcb3b8bb2 | aa35ac84695af6132dc8f1e8de46bb6868f58ceb | /ZPH3D/H3DEngine/include/Utility/CommonCode/HippoUtil/camera/ModelViewCamera.h | a74e82e82e80d3d4a364e3ddba715575c670f4f9 | [] | no_license | spawn66336/H3DEngine_Demo | 0e93432b95d7de91492cac9b73bc5bd6e27151e7 | fb1fc076e646e35fcad84c3cde5b1e33c2d19935 | refs/heads/master | 2021-03-19T13:29:46.254202 | 2013-09-17T06:02:27 | 2013-09-17T06:02:27 | 12,609,723 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,424 | h | ModelViewCamera.h | /********************************************************************
created: 2011/12/23
created: 23:12:2011 23:59
filename: f:\TestHippo\TestHippo\HIPPO_FrameWork\camera\ModelViewCamera.h
file path: f:\TestHippo\TestHippo\HIPPO_FrameWork\camera
file base: ModelViewCamera
file ext: h
author: sssa2000
pur... |
bbb8417ada8f129cf436dea9c259931cac000f85 | 0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8 | /CS AdminKit/development2/include/kca/bl/agentbusinesslogic.h | 7fc891dcfb80af9a3f3f8b1606eb51de0dc9218f | [] | no_license | seth1002/antivirus-1 | 9dfbadc68e16e51f141ac8b3bb283c1d25792572 | 3752a3b20e1a8390f0889f6192ee6b851e99e8a4 | refs/heads/master | 2020-07-15T00:30:19.131934 | 2016-07-21T13:59:11 | 2016-07-21T13:59:11 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 7,413 | h | agentbusinesslogic.h | /*!
* (C) 2003 Kaspersky Lab
*
* \file AgentBusinessLogic.h
* \author Andrew Kazachkov
* \date 06.02.2003 13:36:41
* \brief
*
*/
#ifndef __AGENTBUSINESSLOGIC_H__bR49iSQI7uKcEdBS3DcmQ3
#define __AGENTBUSINESSLOGIC_H__bR49iSQI7uKcEdBS3DcmQ3
#include <kca/prcp/componentproxy.h>
#define KLBLAG... |
a5091683863afbad6cf8d184ab96188d5a8fcf93 | 98157b3124db71ca0ffe4e77060f25503aa7617f | /hackerrank/world-codesprint-5/longest-increasing-subsequence-arrays.cpp | ca7d61c50097244ec5a804488406c30c8dd7165a | [] | no_license | wiwitrifai/competitive-programming | c4130004cd32ae857a7a1e8d670484e236073741 | f4b0044182f1d9280841c01e7eca4ad882875bca | refs/heads/master | 2022-10-24T05:31:46.176752 | 2022-09-02T07:08:05 | 2022-09-02T07:08:35 | 59,357,984 | 37 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 738 | cpp | longest-increasing-subsequence-arrays.cpp | #include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int N = 5e5 + 5;
long long inv[N];
long long powmod(long long b, long long p) {
long long ret = 1;
while(p) {
if(p&1)
ret = (ret * b) % mod;
b = (b * b) % mod;
p >>= 1;
}
return ret;
}
int main() {
for(int i = ... |
cf3e5c7927d216c07ecf24244edd7a7e48452807 | 66deb611781cae17567efc4fd3717426d7df5e85 | /pcmanager/src/src_bksafe/beikesafe/bksafeprotectionnotifywnd.h | 4c5c811c73f203817f96bdda157709afe1ef82f3 | [
"Apache-2.0"
] | permissive | heguoxing98/knoss-pcmanager | 4671548e14b8b080f2d3a9f678327b06bf9660c9 | 283ca2e3b671caa85590b0f80da2440a3fab7205 | refs/heads/master | 2023-03-19T02:11:01.833194 | 2020-01-03T01:45:24 | 2020-01-03T01:45:24 | 504,422,245 | 1 | 0 | null | 2022-06-17T06:40:03 | 2022-06-17T06:40:02 | null | GB18030 | C++ | false | false | 11,735 | h | bksafeprotectionnotifywnd.h | #pragma once
#include <safemon\safemonitor.h>
#include <safemon\safetrayshell.h>
#include "trayruncommmon.h"
#include "kpfw/arpsetting_public.h"
#include "beikesafearpdlg.h"
#include "arpinstallcheck.h"
#include "runoptimize/restorerunitem.h" /* for CRestoreRunner */
typedef CWinTraits<WS_POPUP, 0> CBkSafe... |
48e1e158e8d4717e33cc683fe281e384b3344f02 | 4a2522dc08c4983d7a5e0630f8da08af0f2c44b1 | /src/interpreter/interpret_error.h | 545e81a1ca58aa734eb9464623bf95efa7c4d0f9 | [] | no_license | Microflame/Interpreter | 0e9d73bb1c90cf487872eab9093c3e9e616283e2 | 8056d73b2097de843be91ae725626cb9b4119ddc | refs/heads/master | 2023-04-04T10:05:36.627564 | 2021-11-24T22:09:46 | 2021-11-24T22:09:46 | 229,469,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | h | interpret_error.h | #pragma once
#include <stdexcept>
#include "scanner/token.h"
namespace interpreter
{
class InterpretError: public std::exception
{
public:
InterpretError() = delete;
InterpretError(const scanner::Token& token, const std::string& message)
: token_(token),
message_(message)
{
}
const char* what(... |
6897861e4977eb7c2c9e1c89e7a5c09a9e70d3d2 | b90fe31f1800fe9457b9cb933213b17228a85da8 | /LeetCode/189 Rotate Array/djuffin.cpp | 31d97766b8693d2d73f63e8206072371ccc0aae9 | [] | no_license | Djuffin/project-euler | f232ba329aa49f21d6b5f1d8be2ca9ef136e7212 | b8160c20f8f55c6a5ef745e8821ea0e1c5d74b6f | refs/heads/master | 2021-06-07T20:41:40.581422 | 2019-05-20T07:02:11 | 2019-05-20T07:02:11 | 328,948 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | cpp | djuffin.cpp | class Solution {
int64_t gcd(int64_t a, int64_t b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
int64_t lcm(int64_t a, int64_t b) {
return a * b / gcd(a, b);
}
public:
void rotate(vector<int>& nums, int k) {
int n = nums.size();
... |
54acb8c80f000f86ad1a29c0a40daecda1285687 | 23d01d942c97a31e46529c4371e98aa0c757ecd1 | /apps/legacy/tg-xe/cxxhello.cpp | 7e94da3531c6906dce13d72b78a9345fddba0c17 | [
"BSD-2-Clause"
] | permissive | ModeladoFoundation/ocr-apps | f538bc31282f56d43a952610a8f4ec6bacd88e67 | c0179d63574e7bb01f940aceaa7fe1c85fea5902 | refs/heads/master | 2021-09-02T23:41:54.190248 | 2017-08-30T01:48:39 | 2017-08-30T01:49:30 | 116,198,341 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 598 | cpp | cxxhello.cpp | #include <iostream>
extern struct _reent * _REENT;
using namespace std;
class foo {
int m1;
float m2;
char * m3;
public:
foo( int a1, float a2, int a3 );
~foo();
float M2() { return m2; }
};
foo static_foo( 1, 1.0, 1 );
foo::foo( int a1, float a2, int a3 ) : m1(a1), m2(a2)
{
m3 = new ch... |
e2c314a34a93b2890f4066b26b11ac9567a13cd3 | b5d603a1251ba0dc24151ecb33a6d6d458e19890 | /Ejercicio 58 by Braulio.cpp | 3659a0d3b6e14c2a14b843c68e6176c897b74113 | [
"MIT"
] | permissive | Charlie-Ramirez-Animation-Studios-de-MX/Proyecto-Final | 9b1fcd002633e77ec4a8d50691cea3ced24f9e81 | 2f9b823dc1ba2a5276472b4c850f25e7b39b830d | refs/heads/master | 2020-09-10T23:26:16.430052 | 2020-05-02T21:50:08 | 2020-05-02T21:50:08 | 260,777,524 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | Ejercicio 58 by Braulio.cpp | #include <stdio.h>
#include <iostream>
using namespace std;
int i, n, sum, j;
int main(){
cout<<"Limite de numeros: "; cin>>n;
cout<<"\n";
for(i=1;i<=n;i++){
sum= 0;
for(j=1;j<=(i/2);j++){
if((i%j)==0){
sum+= j;
}
}
if(sum==i){
cout<<i<<" Es un numero perfecto"<<en... |
96c0611ffa4c8286027ed179fac80ecae90d2108 | 01d8c5790aee06d3c661dbc81be5cd0655981608 | /SubComponents/Sum.cpp | fa45ffec3198dbd2af9b5005c5be8c48683f4dc0 | [] | no_license | SachsA/Nanotekspice | 7a8c019bf1b09f26a52164210566853bf434f2d3 | c237cb6f8c413fe3992d0ec146f188d3cd0b0d2d | refs/heads/master | 2020-03-15T20:25:55.003083 | 2019-12-02T16:27:56 | 2019-12-02T16:27:56 | 132,332,404 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,956 | cpp | Sum.cpp | //
// EPITECH PROJECT, 2018
// Nano Tek Spice
// File description:
// Sum Cpp
//
#include "ErrorsPin.hpp"
#include "ErrorsLink.hpp"
#include "Sum.hpp"
Sum::Sum() : _name("none")
{
}
Sum::Sum(const std::string &value) : _name(value)
{
}
Sum::~Sum()
{
}
///////////////// SETTERS //////////////////
void Sum::setLink(... |
da92de0a9318dc567940c491e3e34c5a093d6acf | e23e36c6514daa68d14d040d55341f34a853ba8e | /Meet The Scout/FabricaObstaculo.cpp | 465e3786a2237edde14226a7ed5e745ca042a5ad | [] | no_license | adilcoelho/meet-the-scout | d42ca99d5359eecf9c69597e9f0a77ddac87274a | 81097f1833e632f2af8ea76c1fe77c3ab2156b79 | refs/heads/master | 2021-05-12T16:07:58.631249 | 2018-01-10T19:51:12 | 2018-01-10T19:51:12 | 117,001,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 145 | cpp | FabricaObstaculo.cpp | #include "stdafx.h"
#include "FabricaObstaculo.h"
FabricaObstaculo::FabricaObstaculo()
{
}
FabricaObstaculo::~FabricaObstaculo()
{
}
|
6482292eac3a4b7d3d1bc00337321d7aa5b88733 | 04feb1f6bd9c3a84bc6178be88fe41d63737fe77 | /DetAutomat/Automat.h | 43865d166fb050e84563d6019c2c61a5445e7ac4 | [] | no_license | Tyson44-rus/DetAutomat | a12fc26fb809ddbc0da97442aa34be4768f9a859 | 2c1a0a55d56ec949d4886908ac27a64bcd6cb6ef | refs/heads/master | 2022-12-31T14:21:58.203509 | 2020-10-20T10:48:00 | 2020-10-20T10:48:00 | 304,913,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,265 | h | Automat.h | #pragma once
#include <fstream>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
struct jump {
string Left;
string Center;
string Right;
};
class Automat {
public:
typedef string T_state;
typedef pair < T_state, s... |
b31c5d5b4eb62ba74904e5cc12bfceb77a65b16f | 3aa9a68026ab10ced85dec559b6b4dfcb74ae251 | /leetCode/max-consecutive-ones/Accepted/9-21-2021, 8_25_34 PM/Solution.cpp | cc68616440206a3136a95d0a50fd1626a9bcc7c7 | [] | no_license | kushuu/competitive_programming_all | 10eee29c3ca0656a2ffa37b142df680c3a022f1b | 5edaec66d2179a012832698035bdfb0957dbd806 | refs/heads/master | 2023-08-17T15:09:48.492816 | 2021-10-04T20:09:37 | 2021-10-04T20:09:37 | 334,891,360 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | Solution.cpp | // https://leetcode.com/problems/max-consecutive-ones
class Solution {
public:
int findMaxConsecutiveOnes(vector<int>& nums) {
int ans = 0, temp = 0;
for(auto i : nums) {
if(i) temp++;
else {
ans = max(ans, temp);
temp = 0;
}
... |
0db449fb4805a37753d91a537c3e47644533ba4c | ebb42934ee5096c84e41bde9965d99c573e57557 | /main.cpp | f301417728be3e9a3c6b9d5f3f3f09d54587e132 | [] | no_license | anumehaagrawal/ZooZoo-animation-using-OpenGl | 162fe493e11cdbcf081231135512f8a2ce479219 | 6d8727ab8b203b7acde54287663844a73adad429 | refs/heads/master | 2020-03-10T04:02:06.199351 | 2018-04-17T19:33:08 | 2018-04-17T19:33:08 | 129,181,727 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,394 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <math.h>
#include <GL/glut.h>
#define PI 3.1415927
int rightHandAngle = 180;
bool mouseLeftState = false;
bool mouseRightState = false;
int rightHandMove = 2;
int leftLegMove = 1; // If right mouse clicked, left leg will move by 1... |
d6a08f65bea3a45cb66bb3742dd4cf25e9775dcf | 498b3133fff9f502a81dd1a54dd977d276ed3167 | /src/InitialConditions.cpp | de5d0845466fc9e5851423bfcc6f3278d46f6c00 | [
"MIT"
] | permissive | danOSU/KTIso | 8b78fe3d39f14a802a3f14fade850d63c35a2c8b | bc65bbb4f03ed22b7a84e120a2079d3015e4a20a | refs/heads/master | 2021-08-29T05:15:31.168040 | 2021-03-20T21:57:43 | 2021-03-20T21:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,618 | cpp | InitialConditions.cpp | #pragma once
#include <math.h>
#include <stdlib.h>
#include <fstream>
#include <string>
#include <vector>
#include <random>
#include "Parameter.h"
#define THETA_FUNCTION(X) ((float)X < (float)0 ? (float)0 : (float)1)
//this creates the initial F function, a function of spatial coordinates and momentum phip and velocit... |
e36c2373ee634373eeaa8f711ec1e744ed4b26f9 | f92b42b1f183870d1685c1b8514d0be002fd79a7 | /OTHERS/Copa UCI 2008/AB.CPP | 4e5e23d02db15be4759481b02f2160e72d521189 | [] | no_license | reiniermujica/algorithms-and-contests | 7075f17b2d8e62c0bec5571bc394b5587552e8f2 | 7ce665cb26d7b97d99789a0704dd98fcfd3acf3c | refs/heads/master | 2020-03-21T11:43:42.073645 | 2018-07-27T21:19:43 | 2018-07-27T21:19:43 | 138,519,203 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | cpp | AB.CPP | /*
Reinier Cesar Mujica
2/06/08
"Sequencia AB"
Copa UCI 2008 1ra Edicion
*/
#include <cstdio>
#include <vector>
#include <string>
using namespace std;
const int
MAXN = 30002;
int N, M, i, j;
int cont[2];
char C[MAXN];
vector < int > V;
int do_work( int start, int end ) {
if ( start > end) {
V.push... |
1a7f7073d4b80bc70aa740763742ea4877ed155a | 16137a5967061c2f1d7d1ac5465949d9a343c3dc | /cpp_code/classtemplates/templps.cc | d3417fbebb0e7274606976f24c21144b92d72427 | [] | no_license | MIPT-ILab/cpp-lects-rus | 330f977b93f67771b118ad03ee7b38c3615deef3 | ba8412dbf4c8f3bee7c6344a89e0780ee1dd38f2 | refs/heads/master | 2022-07-28T07:36:59.831016 | 2022-07-20T08:34:26 | 2022-07-20T08:34:26 | 104,261,623 | 27 | 4 | null | 2021-02-04T21:39:23 | 2017-09-20T19:56:44 | TeX | UTF-8 | C++ | false | false | 850 | cc | templps.cc | #include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
template <typename T> struct X {
void print() { cout << "X<T>" << endl; }
};
/*
template <typename T> struct X<vector<T>> {
void print() { cout << "X<vector<T>>" << endl; }
};
*/
template <template<clas... |
128c2db8ee10a43a6ecb3fa6063ef54b5191c431 | 24464093cb411f7fdd5524e261c07e8af06e1fda | /gymnasie_arbete/shaders.h | da2c5ca434c2e6a83ab941696928720343f64781 | [] | no_license | itggot-lukas-lonnbro/gymnasie_arbete | 3cbe9f04bd492058d1ad46ef0f1ab702ffebbc64 | 707c76c5e77a5c1eb31dacac86097eaf1005a0e3 | refs/heads/master | 2021-05-11T07:24:54.224598 | 2018-01-18T18:01:14 | 2018-01-18T18:01:14 | 118,018,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | h | shaders.h | #pragma once
#include <string>
#include <GL\glew.h>
class shaders
{
public:
shaders();
~shaders();
void init(const std::string& vertexName, const std::string& fragmentName);
void useShader();
void unUseShader();
void setFloat(const std::string&, float);
void setFloat3f(const std::string &name, float value[])... |
4a8cc5c88d289307fc8fb9f566e4755d4d0d191f | d4806c7b9b492f3886a93af61937168b880fd1d1 | /headers/CConnection.h | 54afeb57a21510f9ea25db05406c941638d4b575 | [] | no_license | darkSasori/CPQ | 4a2c7cdb114a5d832107c9a1c2a962866aaf3976 | efae49a86ecb07857bd8b40c512ae645f80d7bd0 | refs/heads/master | 2020-12-24T16:14:53.936818 | 2011-07-04T07:25:50 | 2011-07-04T07:25:50 | 1,994,064 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | h | CConnection.h | #ifndef __CCONNECTION_H__
#define __CCONNECTION_H__
#include "../headers/Headers.h"
#include "../headers/CExceptionConnection.h"
#include "../headers/CResult.h"
#include "../headers/CSingleton.h"
#include "../headers/CLogger.h"
class CResult;
class CConnection : public CSingleton<CConnection>
{
private:
PGconn *m... |
faf2354516b9dcdc578e927b68917a67a39a45e9 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h | 3391c92ed242cac43fed2c271d86bbf57187c7a4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-sun-iiop"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 1,078 | h | discriminant_cs.h | /* -*- c++ -*- */
//=============================================================================
/**
* @file discriminant_cs.h
*
* Visitor for the Union class.
* This one generates code for the discriminant of the Union in the client
* stubs.
*
* @author Aniruddha Gokhale
*/
//=====================... |
ebe59801e814e69582c8a493c085c818028dddc6 | 2394a2a559a11ad5f234365f9854e7f30d0eff3e | /Codeforces/364B.cpp | e2ef2a593155ac142936cd779bd7407d32b6af1a | [] | no_license | mahadi18/ProblemSolving | a35d77fa7f468c03772ac68af5be4d9fc0beb11a | 88a12f67054304e75cf361d73d17f86d9b0764db | refs/heads/master | 2020-12-24T10:54:52.201323 | 2016-11-07T21:22:07 | 2016-11-07T21:22:07 | 73,121,708 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,393 | cpp | 364B.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll n, m, r=0, c=0;
cin>>n>>m;
ll row[n+5], col[n+5];
ll tot = n*n, bad;
memset(row, 0, sizeof(row));
memset(col, 0, sizeof(col));
for(ll i=1; i<=m; i++)
{
//cout<<endl;
ll x, y;
c... |
5e844bdd4f27a31c555a0b8f534992f419649bd5 | 831ec03d2c55693fe95dd4dcbcbebb7c4853dea9 | /glfw03_lines/Program.cpp | 1240994f257643c062d43034c409f41d0d7000c5 | [] | no_license | FrankEndriss/opengltest | f0f4842e6be849c9da876c0d1e3fd8fb669ba39a | e038c625514b140042e181402980c4cf8508cad9 | refs/heads/master | 2021-09-01T15:03:07.219661 | 2017-12-27T15:37:18 | 2017-12-27T15:37:18 | 112,651,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,113 | cpp | Program.cpp | /*
* Program.cpp
*/
#include "Program.h"
#include <cstring>
#include <malloc.h>
#include "Shader.h"
#include <iostream>
using namespace std;
#include "logging.h"
Program::Program() {
program=glCreateProgram();
fShader=NULL;
vShader=NULL;
uniforms=0;
}
Program::~Program() {
if(fShader)
delete fShader;
if(vS... |
32aa89c985c0de365c1c85d806003105d0c5f293 | 97c3bd28c4c91b09d6adcc101999b939ac13882f | /vao.hpp | 3909beaabab31f3eed089a1988cbf5c5af7af0fd | [] | no_license | vvoland/Tank | 102bbc8655042f3e9e66179b97b6bda436ae5bb6 | 607ad0bf232a582ec63bf8ac08edde8927a666c0 | refs/heads/master | 2022-11-23T01:06:29.039386 | 2020-05-19T20:00:03 | 2020-07-22T11:25:48 | 166,100,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | hpp | vao.hpp | #pragma once
#include <string>
#include <GL/glew.h>
#include <vector>
#include <memory>
class Vbo;
class Vao
{
public:
Vao();
Vao(Vao&& other) noexcept;
Vao(const Vao& other) = delete;
Vao& operator=(Vao&& vbo) noexcept;
~Vao();
void bind() const;
GLuint id... |
b6c35fbd151a7256ce393c0f23e296d27dd47a22 | 501ae38f729138a3ceba91abd10721dd9029fc7c | /BalancedBinaryTree.cpp | 8cb07168423b209235885dd90e22fb33597e81eb | [] | no_license | shreyansh-sawarn/Data-Structures-And-Algorithms | 6d0e6f5ef4a0ddd8caede69e423333d9ba2c6163 | 88d7857849871d6b855940b30a5fc469ac99daf6 | refs/heads/master | 2023-01-02T02:45:08.190503 | 2020-10-24T17:00:47 | 2020-10-24T17:00:47 | 151,791,268 | 4 | 5 | null | 2020-10-17T07:26:52 | 2018-10-06T00:27:56 | C++ | UTF-8 | C++ | false | false | 1,165 | cpp | BalancedBinaryTree.cpp | // Checking if a binary tree is height balanced in C++
#include <iostream>
using namespace std;
#define bool int
class node {
public:
int item;
node *left;
node *right;
};
// Create anew node
node *newNode(int item) {
node *Node = new node();
Node->item = item;
Node->left = NULL;
Node->right = NULL... |
9a852800bdac5d15ced3df15fff3a2ba70556675 | 76171660651f1c680d5b5a380c07635de5b2367c | /SH6_43_msh3/0.6/p | e259160cbcc8f005dcc59ad5ab87ea9cf0fd95f5 | [] | no_license | lisegaAM/SH_Paper1 | 3cd0cac0d95cc60d296268e65e2dd6fed4cc6127 | 12ceadba5c58c563ccac236b965b4b917ac47551 | refs/heads/master | 2021-04-27T19:44:19.527187 | 2018-02-21T16:16:50 | 2018-02-21T16:16:50 | 122,360,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83,632 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.x |
... | |
99a96696a56c2cde8671ae6e622d20e4ea43818d | 21202e11fc8de460cf602fbb5bedc760ea147dec | /src/MusicFrame.cpp | 50e9f81b13fa0a8091090c27eeb4b2747c600305 | [] | no_license | the-iron-ryan/Dance-LED-Setup | 59f9894363b023e11bd77e79a7c2281449046908 | 98d75b705751ef2b6b470fb046c890b040c88d7d | refs/heads/master | 2020-08-06T08:19:09.431444 | 2020-04-17T06:41:15 | 2020-04-17T06:41:15 | 212,904,772 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | cpp | MusicFrame.cpp | #include "MusicFrame.h"
MusicFrame::MusicFrame(long tick):
creationTick(tick),
creationTime(millis())
{
// Cycle reset pin
digitalWrite(MusicFrame::RESET_PIN, HIGH);
digitalWrite(MusicFrame::RESET_PIN, LOW);
for(int band = 0; band < MusicFrame::NUM_CHANNELS; band++)
{
digitalWrite(... |
8c0e08707d6f1482354c8047cc6bed707a68003b | 6337f084a414c60836c6a5c735e8d38a27b7af6d | /CS3-0.4/CS3/CS3/3.Comm/Comm.cpp | 801b8407c0323ebef0146f34248b2f8b052ff2ca | [] | no_license | banzhiyan007/CS3_Command | bd987b6ec5f360a8e589adf8aa9d00a10eb01342 | 82d24ed799d8a7efbf9a08c349795b180f812d47 | refs/heads/master | 2021-07-19T13:15:27.209143 | 2017-10-24T05:07:09 | 2017-10-24T05:07:09 | 108,078,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | cpp | Comm.cpp | #include <mbed.h>
#include "comm.h"
#define FIFO_RX_COMM_SIZE 1024
#define FIFO_TX_COMM_SIZE 512
COMM *comm;
Fifo *fifo_tx_comm;
Fifo *fifo_rx_comm;
REG_BUFFER(FIFO_TX_COMM,fifo_tx_comm,"RX");
REG_BUFFER(FIFO_RX_COMM,fifo_rx_comm,"TX");
VAR_REG_U32(OS_INFO_SEND,OS_INFO_SEND,0,"OS_INFO_SEND");
extern Thread *os_in... |
8e416b766e72c0e6aac3410d96f3c91f67a4f18c | b58a98748d8874ec3e70280a27a26df458940a39 | /dbms/include/DB/DataStreams/JSONEachRowRowOutputStream.h | 6ca1b33563f53bceec5c71c0fbe1912d192fd6a1 | [
"Apache-2.0"
] | permissive | Har01d/ClickHouse | b11eb072e15065dd2c4b9c3a8cbcf982982469c9 | 5081d192eece26611b1acac37658c07ec2d9d553 | refs/heads/master | 2021-01-22T20:34:51.876304 | 2016-08-17T03:24:26 | 2016-08-17T03:24:26 | 65,872,059 | 3 | 1 | null | 2016-08-17T03:24:26 | 2016-08-17T03:12:40 | C++ | UTF-8 | C++ | false | false | 778 | h | JSONEachRowRowOutputStream.h | #pragma once
#include <DB/Core/Block.h>
#include <DB/IO/WriteBuffer.h>
#include <DB/DataStreams/IRowOutputStream.h>
namespace DB
{
/** Поток для вывода данных в формате JSON, по объекту на каждую строчку.
* Не валидирует UTF-8.
*/
class JSONEachRowRowOutputStream : public IRowOutputStream
{
public:
JSONEachRow... |
4324b80a7191696b35eb00bd468040ced4d7f138 | af1e9266459d033fffc77dbfa9b6b05951fb9436 | /ETv2/Payload.cpp | 7df8761a2aeac658009d1f7ca41299719016f0cc | [] | no_license | Team-Firebugs/icarus | 81b966c92bf96e298c65c4cff9abd10fedb75d62 | 1567e1e45a3cca174c79151bee4680742d4aaf6c | refs/heads/master | 2021-05-26T22:40:36.666307 | 2013-06-09T08:48:19 | 2013-06-09T08:48:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,688 | cpp | Payload.cpp | /*
Copyright (C) 2013 George Nicolaou <george[at]preaver.[dot]com>
Copyright (C) 2013 Glafkos Charalambous <glafkos[at]gmail.[dot]com>
This file is part of Exploitation Toolkit Icarus (ETI) Library.
Exploitation Toolkit Icarus (ETI) Library is free software: you can redistribute
it and/or modify it under the terms... |
d0a56962f3e2386de027b46b774c97f5bb6654ac | e795cb7558f89846d2c1c68be877a4454a09f596 | /response/response.cpp | 75e2dc39c6dcda76cce1c87ecc8006422ba69d0e | [] | no_license | VGB-Devs/velocity-server | e2ff01e6c9f43957f8e94d05b2d23a2bf19e3dc1 | 72a2b775cda81c8517207b91b882f30cc1f14288 | refs/heads/main | 2023-02-05T16:01:17.512825 | 2020-12-30T02:23:55 | 2020-12-30T02:23:55 | 324,659,412 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | cpp | response.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <sys/socket.h>
#include <unistd.h>
#include "../include/response/Response.hpp"
Response::Response(int socketID) {
this->response = "";
this->bytes = "";
this->_data = "";
this->_status = "200";
this->_contentType = "t... |
1a4a909e644c3ade7dc3e16c63d89859d4f6c629 | a75ee16dd583f16b97c0165d08e5ce8ca208ed01 | /FG_GP_C_Asteroids/PlayerCollider.h | 0a2a49fb1782858795b656690faf1277d023f310 | [] | no_license | FutureGamesTony/FG_GP_C_Asteroids | 881809a8438227297866b6e8998c0736e39fdab2 | 29ff3228aa3eba04570644415cca90f6891e6542 | refs/heads/main | 2023-04-04T05:11:38.306390 | 2021-03-14T19:07:48 | 2021-03-14T19:07:48 | 341,156,841 | 0 | 0 | null | 2021-03-02T09:42:31 | 2021-02-22T10:09:19 | C | UTF-8 | C++ | false | false | 1,077 | h | PlayerCollider.h | #pragma once
#include "ICollider.h"
#include "EngingConfig.h"
class PlayerCollider : public ICollider
{
public:// LazyFoo
PlayerCollider(EngineConfig::EntityType entity_type, Size size, Position setPosition, Movement setMovement, SDL_Rect* collider);
~PlayerCollider();
//Initializes the variables
void Cre... |
e4029664cc20ed21374d56642641ae587a74d3d6 | 6ffcfa84dd43ede1c25b162dc0a98663b7e56243 | /mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp | 2e2e3b94a34a91e3d0633c06c05be3dc6e923b6f | [
"LLVM-exception",
"Apache-2.0"
] | permissive | c3lang/llvm-project | afbef29e8b570fe82cc87f19eef57da8d877ef09 | 393b7a1e0306927dcd54cb9f6c7939251da4d266 | refs/heads/main | 2023-03-09T19:07:31.737607 | 2021-03-02T12:29:31 | 2021-03-02T12:34:54 | 343,720,178 | 1 | 0 | null | 2021-03-02T09:39:50 | 2021-03-02T09:39:50 | null | UTF-8 | C++ | false | false | 6,471 | cpp | Detensorize.cpp | //===- Detensorize.cpp - Linalg transformations as patterns ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===--------------------------------... |
fb5e3e9e9a42092af72ecb0f527198366ab86b13 | 1aaaf8af0d720b00c03454cc105e3e99ebdd993b | /1502 [NOI2005]月下柠檬树(自适应Simpson).cpp | 071f2164553a26849d85abdf65ddb22075079c6a | [
"Apache-2.0"
] | permissive | wwt17/BZOJ | 2b6858fb68c3654a9c18861f1e3775c825e539fd | b8b41adf84cd91f68616149dcfdf374b9721b11c | refs/heads/master | 2021-01-20T17:26:29.071661 | 2018-10-02T17:02:35 | 2018-10-02T17:02:35 | 63,025,417 | 12 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,630 | cpp | 1502 [NOI2005]月下柠檬树(自适应Simpson).cpp | #include <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
typedef double db;
#define sqr(x) ((x)*(x))
const int N=505;
const db eps=1e-6;
int n;
db alpha,tana,d[N],s[N],r[N];
struct tpz{
db x1,y1,x2,y2;
} t[N];
inline bool inside(int a,int b,db d){
return d+r[b]<=r[a];
}
inline db calc(db x){
... |
189002b1b5f436bf209e084d81c8b6d421173ad2 | eeca3a684c1bdd9c6457752d12c681b79a050348 | /QuickSort.cpp | 4a596c62d6ac99ca740e5692cc2c94388b4a6fab | [] | no_license | suliutree/Data-Struct-and-Algorithm | 3bd7613aaf9ad99451f26eebe60dda0fef991c3a | 99d1a1025115a80f24f3ee815a8f9dbcc9fe1305 | refs/heads/master | 2021-01-21T13:41:45.215578 | 2020-05-11T11:54:14 | 2020-05-11T11:54:14 | 38,430,333 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cpp | QuickSort.cpp | #include <iostream>
using namespace std;
int partition(int array[], int left, int right)
{
int pivot = array[right];
while (left != right)
{
while (array[left] <= pivot && left < right)
left++;
if (left < right)
swap(array[left], array[right--]);
while (array[right] >= pivot && left < right)
right... |
2e0bcab8014222ff7f892204faf25c610a2de760 | 4be3405a9b952e48a47fc4556a849f63a61f6821 | /HandleThread.hpp | 5b86e802c373b3dd06dc729fb2c5390418902553 | [] | no_license | sergeibulavintsev/ddmlib_old_project | 847b20ede2e34d944651a74716288b9c59fe65c3 | acc67a88b14c765bd4884f406f938fb514f61f6c | refs/heads/master | 2022-04-16T12:40:38.861155 | 2020-04-17T10:05:47 | 2020-04-17T10:05:47 | 256,467,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,150 | hpp | HandleThread.hpp | /*
* HandleThread.hpp
*
* Created on: Feb 16, 2012
* Author: sergey bulavintsev
*/
#ifndef HANDLETHREAD_HPP_
#define HANDLETHREAD_HPP_
#include "ddmlib.hpp"
#include "ChunkHandler.hpp"
class ByteBuffer;
namespace ddmlib {
class Client;
class DDMLIB_LOCAL HandleThread: public ChunkHan... |
167280bc2cea087cae2d1110ffbbc98722e1bf45 | 8618c39f1b39009b6f1cb0f660c0b84374592322 | /Projet/src/map.c.cpp | 27074c1af3f7495fdc7479be63c87d0eab118e7b | [] | no_license | FlavioPEIXOTO/Project_LangC | c5c57166caedb290d654cc4b846c1e9a4fac6c48 | 0bb2575c8f71aa75139908c6e15b7ce4a8ea8ac7 | refs/heads/master | 2022-04-06T08:04:49.779789 | 2020-03-11T16:21:17 | 2020-03-11T16:21:17 | 234,062,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 82 | cpp | map.c.cpp | #include "map.c.h"
map.c::map.c()
{
//ctor
}
map.c::~map.c()
{
//dtor
}
|
f8b7a12e16a58fd268dbf5698529530773fb341b | e976dbf26b93fef63213887e378ffa93e24febb9 | /source/ExternalDLL/ExternalDLL/IntensityImageStudent.cpp | a959a0372e6cef17329273befb840a72d67d1ae7 | [] | no_license | BIGduzy/HU-Vision-1718-NickMichel | 8e09016f5c9672f7970606f463f8ec1d3e26a392 | 14d26269ae674abf3dcdf1c24e78ac5c5f96b729 | refs/heads/master | 2021-05-02T04:52:50.587522 | 2018-04-15T15:51:44 | 2018-04-15T15:51:44 | 120,910,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,470 | cpp | IntensityImageStudent.cpp | #include "IntensityImageStudent.h"
IntensityImageStudent::IntensityImageStudent() : IntensityImage() {}
IntensityImageStudent::IntensityImageStudent(const IntensityImageStudent &other):
IntensityImage(other.getWidth(), other.getHeight()),
pixels(other.pixels)
{
for (int i = 0; i<getWidth()*getHeight(); ++i) {
pi... |
9daa6480e048ce96ad747990500583905924c335 | c76b2bd5904b5dfe543773eb565ddb9e71ede437 | /SpringDamper.cpp | 13272066d60ee4eee27d5e37a79890d83ecdc41a | [] | no_license | juanramirez64/Cloth-Simulation | 63fbea75e49893f6b4e8ec39fd8778f5aa7abf29 | 1b3cb0fcaf9a99bd4f8f52cc975b914b884e5783 | refs/heads/main | 2023-03-31T23:32:16.699764 | 2021-04-07T02:46:50 | 2021-04-07T02:46:50 | 355,358,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | cpp | SpringDamper.cpp | #include "SpringDamper.h"
/*
* Constructor.
*/
SpringDamper::SpringDamper(GLint index, GLfloat springConstant, GLfloat dampingConstant,
GLfloat restLength, Particle* particle1, Particle* particle2) : index(index),
springConstant(springConstant), dampingConstant(dampingConstant),
restLength(restLength), P1(particl... |
f2b26f769f22b01f7e6d454faf8519408840aee2 | 581d6eeb48dbd442dca27c1fa83689c58ffea2c9 | /Sources/Elastos/Frameworks/Droid/Base/Services/Server/inc/input/NativeInputApplicationHandle.h | 6b55d773cd49de43b62bc691beec21cdce009456 | [
"Apache-2.0"
] | permissive | TheTypoMaster/ElastosRDK5_0 | bda12b56271f38dfb0726a4b62cdacf1aa0729a7 | e59ba505e0732c903fb57a9f5755d900a33a80ab | refs/heads/master | 2021-01-20T21:00:59.528682 | 2015-09-19T21:29:08 | 2015-09-19T21:29:08 | 42,790,116 | 0 | 0 | null | 2015-09-19T21:23:27 | 2015-09-19T21:23:26 | null | UTF-8 | C++ | false | false | 847 | h | NativeInputApplicationHandle.h |
#ifndef __ELASTOS_DROID_SERVER_INPUT_NATIVEINPUTAPPLICATIONHANDLE_H__
#define __ELASTOS_DROID_SERVER_INPUT_NATIVEINPUTAPPLICATIONHANDLE_H__
#include <input/InputApplication.h>
namespace Elastos {
namespace Droid {
namespace Server {
namespace Input {
class InputApplicationHandle;
class NativeInputApplicationHandle... |
c4945c87e4540b57d57ab29ad3ace9fcf9d2840d | 8f6718be70f87a2520db46904f59f295da499a6a | /Game/HealingZone.h | 17f1ce8ee76195cc7c42380049ba7969a4ad566a | [] | no_license | ydl1991/Adventure-Land | 9f75c23bb01993ea8aafb6e895c4c3057733776a | e56a306d5b2d8d0972a96564bed430bafccb7960 | refs/heads/main | 2023-04-24T10:57:32.341708 | 2021-05-03T20:17:16 | 2021-05-03T20:17:16 | 364,048,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | h | HealingZone.h | #pragma once
#include "ZoneBase.h"
class HealingZone : public ZoneBase
{
public:
HealingZone(ObjectSpawnInfo objectSpawnInfo);
~HealingZone();
// virtual
virtual void Init() override;
virtual void Tick(float deltaTime) override;
virtual void HandleBeginOverlap(ObjectBase* pOtherCollider) override;
virtual void... |
1fa409406a7e51d35588905f3ae50414c9fe6902 | 3c339fa082b2ed728aa263d657aa4d23bee18d1e | /jni/game/Movepoint.cpp | 4cc68fd3fdcdaa55e63822f7aa139011209b63b4 | [] | no_license | Francklyi/Game-Shot | 08cb173872ec9aa3492e1df91706c758c1c919ad | 18d27fe044125e761fe2004d55b2bb05d7359cd1 | refs/heads/master | 2021-01-10T17:25:18.739544 | 2015-11-19T03:28:56 | 2015-11-19T03:28:56 | 46,415,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,603 | cpp | Movepoint.cpp | #include "Movepoint.h"
Movepoint::Movepoint()
:shapeType(0)
,stepSum(1)
,step(0)
,moveType(Movepoint::MOVE_PERSISTENT)
,frameSum(200)
,delay(0)
,delayNow(0)
,movePathType(PATH_LINE)
,direct(DIRECT_CB)
,numCirclePoints(20)
,offsetFrame(0)
,offsetFNow(0)
,Entity()
{
}
Movepoint::~Movepoint()
{
... |
66f3f1443cc9894eacc9742510e7e62fa9dc1862 | 99bd624695eed76a9d865758b467b980a7654e67 | /Opencv/Class21_HoughLines/code/hough.h | 58b851138b03767c72940b9124ec0d16bca304de | [] | no_license | SupremeDin/My_Material | 927bfae8f12479937a18519d349c420644d670bf | e600c777612fba3b9d068b4ffc2977a368d97818 | refs/heads/master | 2020-06-20T00:48:44.042113 | 2019-07-15T06:30:16 | 2019-07-15T06:30:16 | 196,929,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | h | hough.h | //Declaration!
//DO NOT USE "using namespace XX"
#ifndef HOUGH_H
#define HOUGH_H
#include<opencv2/opencv.hpp>
#include <vector>
class LineFinder
{
private:
std::vector<cv::Vec2f> lines;
double deltaRho;
double deltaTheta;
int minVote;
public:
LineFinder();//first,there is a default constructor
... |
0315b56aad63224407ad6b6043986feb5d2a819a | e3a97b316fdf07b170341da206163a865f9e812c | /sprokit/processes/core/image_writer_process.cxx | d71ebeec8c9c0c7ada70648b9023a5c16ca9b3f8 | [
"BSD-3-Clause"
] | permissive | Kitware/kwiver | 09133ede9d05c33212839cc29d396aa8ca21baaf | a422409b83f78f31cda486e448e8009513e75427 | refs/heads/master | 2023-08-28T10:41:58.077148 | 2023-07-28T21:18:52 | 2023-07-28T21:18:52 | 23,229,909 | 191 | 92 | NOASSERTION | 2023-06-26T17:18:20 | 2014-08-22T15:22:20 | C++ | UTF-8 | C++ | false | false | 5,283 | cxx | image_writer_process.cxx | // This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
#include "image_writer_process.h"
#include <vital/vital_types.h>
#include <vital/types/image_container.h>
#include <vit... |
ee07dd24abdda844780067275b5e5302e6037a5c | c11485499c9b62481dfdfe56fa39374e36876dcd | /build/lua-gameplay/src/AI.cpp | 3bb88c0780460c9f8bfd595efebb639ad631ecb7 | [] | no_license | mengtest/TH_Game | 92c519f8e83a4bf5bce64edc9fe718a16427555c | f36d0c07571b31a128eae322408c480b6ad1f70a | refs/heads/master | 2022-12-09T14:11:54.539133 | 2020-08-26T16:25:27 | 2020-08-26T16:25:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | cpp | AI.cpp | #include "AI.h"
Pawn* AI::getPawnByHp(int combatId, int playerId, bool highest)
{
return nullptr;
}
Pawn* AI::getPawnByHpCond(int combatId, int playerId, int value, int greater)
{
return nullptr;
}
|
5de78778fb058aa8f3f17f41260fc406c9258ca5 | aa4565e477946917b30ee5d01ede8ee0916aba5a | /src/server/scripts/Kalimdor/Firelands/boss_belthtilac.cpp | 317361d78b7762843f1e0ce62dd981ec8608e605 | [] | no_license | mmoglider/GlideCore | 2b157953188f9c83b2b0ede86c469b10790cdc2d | 76b4a7562210f6fa60326d44fbc7a2640e416351 | refs/heads/master | 2016-09-06T18:46:57.294884 | 2014-04-25T03:03:57 | 2014-04-25T03:03:57 | 15,888,600 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,279 | cpp | boss_belthtilac.cpp | /*
* Copyright (C) 2013 OpenEmulator <http://www.openemulator.com/>
*
* 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 2 of the License, or (at your
* option) any later versi... |
0b88ada6f5675bcc4795e4e397ca5faf1b4ba698 | ccfdebd0c48315952b3bd348e74abde08caf5d85 | /OpenCV/Filtros.cpp | 4aa9c66905db1eb429ae2895084d433da5e2a2e2 | [] | no_license | gb-brag/Comp_Grafica | 0f1ba7aae33ad709cce32fd8c7d959c2363e3d3e | f6e18d24198e0f5200458429e0ff43b741a064da | refs/heads/main | 2023-01-24T23:03:10.452272 | 2020-11-22T20:27:30 | 2020-11-22T20:27:30 | 305,229,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | cpp | Filtros.cpp |
#include <iostream>
#include <fstream>
#include <string>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
using namespace std;
using namespace cv;
int main(void) {
Mat image;
Mat imgblur, imggaussian, imgmedian;
string filename;
int ... |
c5cd1587572d1283f108723a212d6ea6e55df9df | b4d1fc90b1c88f355c0cc165d73eebca4727d09b | /libcef/browser/browser_context_keyed_service_factories.cc | 8730bfb43e52cb2def9b006ce2694c954d737144 | [
"BSD-3-Clause"
] | permissive | chromiumembedded/cef | f03bee5fbd8745500490ac90fcba45616a29be6e | f808926fbda17c7678e21f1403d6f996e9a95138 | refs/heads/master | 2023-09-01T20:37:38.750882 | 2023-08-31T17:16:46 | 2023-08-31T17:28:27 | 87,006,077 | 2,600 | 454 | NOASSERTION | 2023-07-21T11:39:49 | 2017-04-02T18:19:23 | C++ | UTF-8 | C++ | false | false | 1,981 | cc | browser_context_keyed_service_factories.cc | // Copyright 2015 The Chromium Embedded Framework 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 "libcef/browser/browser_context_keyed_service_factories.h"
#include "libcef/common/extensions/extensions_util.h"
#include "ba... |
800ec745240b6b63040cf79fd35ca6a81920e3c3 | b81424733ba7aa22971017a2b723cebdb79e2ff9 | /B5904/B5904.cpp | adfec0c78627b740c139a4cc155e741ac131569e | [] | no_license | tongnamuu/Algorithm-PS | 1d8ee70c60da9bafdae7c820872e685fdf2b28fa | 464b68c34bb07f9e1e00e4b5475c6f0240cd20d4 | refs/heads/master | 2022-06-04T01:57:29.432141 | 2022-04-08T11:52:01 | 2022-04-08T11:52:01 | 164,219,701 | 0 | 1 | null | 2019-03-28T03:43:13 | 2019-01-05T13:58:05 | C++ | UTF-8 | C++ | false | false | 822 | cpp | B5904.cpp | #include <iostream>
#include <string>
using namespace std;
char solve(long long len, int idx, int k) {
if (len == 3) {
if (idx == 0) return 'm';
else return 'o';
}
int f = (len - (k + 3)) / 2;
int s = f + k + 3;
if (idx < f) {
return solve(f, idx, k - 1);
}
else if (i... |
1a1b11bb7ed1db46ee6aa8ae0f488d1da0a88ec4 | 8a13adc8856f3ad6a184141999c58ac7a2ec214b | /src/serverctl/CommandBuilder.h | 8e4aab495d8aef78f495b26e9545f227fe7bfb62 | [] | no_license | netromdk/backup | 92c689b90dbaf1e9c2ab6ac013c0853e91fec2c1 | 9629be1a1170ca17781f9c765cd8b5bbc9713040 | refs/heads/master | 2016-09-06T17:34:49.403251 | 2012-04-29T14:23:57 | 2012-04-29T14:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | h | CommandBuilder.h | #ifndef COMMAND_BUILDER_H
#define COMMAND_BUILDER_H
#include "cmd/CommandTreeNode.h"
using namespace cmd;
class HelpContext;
class AgentContext;
class CommandBuilder {
public:
CommandBuilder();
virtual ~CommandBuilder();
const CommandTreeNode *getRootNode() const { return tree; }
private:
void build();
... |
168d3065322e57e52b917c5b607a39ec3ecfc19e | 05b696c8d7c6439cdd08bbbab7b352e9593298a9 | /LabWork1/CBallsArray.h | 26b7c6b1dbc824a3c312e0bbfd819060e2bfef10 | [] | no_license | KPEKZ/WinApi32 | 8fa323e1829d9188b9c2ba56c55f2d621e5415c7 | 148a7f509ba6d1421a0865054e828153b458b2ae | refs/heads/master | 2022-12-03T04:25:08.698601 | 2020-05-31T18:45:52 | 2020-05-31T18:45:52 | 266,629,840 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 946 | h | CBallsArray.h | #pragma once
#include <Windows.h>
#include <windowsx.h>
#include "CBall.h"
#include "CColoredBall.h"
#include "CBallsTimeLmited.h"
#include "Trap.h"
#include "wind.h"
#include <typeinfo>
class CBallsArray
{
HWND HwndG;
HWND Hwnd;
int count;
int count1;
int max_balls;
double gF;
public:
CBall** balls;
CBalls... |
8a2afebab9c72da9b86ea4d6e26a1d5f2cff8ffc | ad40f31ec3086f40065b9cf66655704324bb744e | /Binary_Search_Tree/SortedLLtoBST.cpp | 94cb941c6994054df6baf60d474adabeaf28de39 | [] | no_license | mukundkedia/DSA | 6791a14db7ccbfd83335a09780f4987092729ce5 | d015943870e30eae91e497135cfb0baa90ed1234 | refs/heads/main | 2023-06-11T16:25:55.263185 | 2021-07-07T11:24:27 | 2021-07-07T11:24:27 | 304,045,048 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | SortedLLtoBST.cpp | //https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/
//PC
class Solution {
public:
TreeNode* sortedListToBST(ListNode* head) {
if(!head){
return NULL;
}
if(!head->next){
return new TreeNode(head->val);
}
ListNode* temp = NULL;
... |
743a6334c80ba325e208a73ff913b44b52cb2ef2 | 88f5250c2781064f63cdc1b2740c843ff1b619df | /Codeforces_#580_Div2_02.cpp | aa09ab361cc3098b98a3ffc9a3dc62d4feb0a7f6 | [] | no_license | evga7/codeforces | 7203820c000cd058b85b89b4752726d4c818c1e9 | 3382c97ff69347edd05c142526ccf95ccdf47738 | refs/heads/master | 2020-07-15T10:25:59.559803 | 2019-10-09T12:32:54 | 2019-10-09T12:32:54 | 205,542,976 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,564 | cpp | Codeforces_#580_Div2_02.cpp | /*
¹®Á¦
B. Make Product Equal One
time limit per test1 second
memory limit per test256 megabytes
inputstandard input
outputstandard output
You are given n numbers a1,a2,¡¦,an. With a cost of one coin you can perform the following operation:
Choose one of these numbers and add or subtract 1 from it.
In particular, we ... |
ec7997a4bdfb44bf2e65937f089fe37ff4242745 | da56ead4e5e082408510e9e01df0fc7e4e455314 | /Engine/src/SoundPlayer.h | 1236b4501018b7dc87729395a75e5d110a7f17f1 | [] | no_license | thyde1/Wobba | db5f2ea1f4c007b3db73e8eaadd52f8cd5c67c6a | b4c009fb5441d3940d8153ef21ef4c19a5e1d520 | refs/heads/master | 2023-01-07T01:12:05.801155 | 2020-10-28T21:13:13 | 2020-10-28T21:13:13 | 274,194,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | h | SoundPlayer.h | #pragma once
#include "Engine.h"
#include "SDL_mixer.h"
class SoundPlayer : public Component {
public:
SoundPlayer(const char *wavFile);
void play();
private:
const char *wavFile;
int currentChannel = -1;
};
|
8c78264bf069becadba2477a2043eea3dbf7d861 | fb9b42c9d01d55eb46b4e51d2184a41caffa5ac1 | /Trees/test.cc | d695cd3b9248d8c4e38804bca3408b13e25657f4 | [] | no_license | Priyadarshanvijay/Codingblocks-2018 | d60ca31b050b4c5bdced1fe8b26d2e57497ae44e | 963b722d0d665f241b359edd4e9cb4c1f5b19458 | refs/heads/master | 2020-05-25T06:40:55.695887 | 2020-01-30T11:39:59 | 2020-01-30T11:39:59 | 187,669,993 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cc | test.cc | #include <iostream>
using namespace std;
int main()
{
char x[10];
cin >> x;
cout<<x<<endl;
return 0;
} |
06a65b84862614c7c03a6356e533e415a9c6859d | b371d4deaeed862492c735bbd1e06b3876b32a28 | /Source/Main.cpp | a6301bd631674aef8123880c11ad7c43aefeff9a | [] | no_license | PhantomGamesDevelopment/Galactic-2D | 1353cb596baa523c04b05db20229ba9dcb7708e9 | 01b7fc19a1b831ddc665534ad53933a2539bf211 | refs/heads/master | 2021-01-19T16:22:00.627199 | 2015-04-30T22:42:52 | 2015-04-30T22:42:52 | 22,177,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,389 | cpp | Main.cpp | /**
* Galactic 2D
* Source/Main.cpp
* The primary entry point of the engine software
* (C) 2014-2015 Phantom Games Development - 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 S... |
3eb33c2ed8125c067e076288d95d7dadda7131c9 | 0c15cc538d15ead4483f40dfb424da437eca9e47 | /NewScene.cpp | 36f90ef36675c088f2b7658112f923c2ea117fe8 | [] | no_license | Johan08/cocos2d-x-3.2-ui- | 0c00d13bf773c2fca2a1b3dbf494b0c941f630e4 | bf7da0e2a689d5e1b133de3767f887133dc19e34 | refs/heads/master | 2021-01-19T18:32:06.493725 | 2015-08-03T21:00:18 | 2015-08-03T21:00:18 | 40,147,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,737 | cpp | NewScene.cpp | #include "NewScene.h"
#include "HelloWorldScene.h"
USING_NS_CC;
USING_NS_CC_EXT;
Scene* NewScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = NewScene::create();
// add layer as a child to scene
sce... |
39b1ba9477697a579cd5ac918fed1a364cc57e9b | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_new_log_3800.cpp | 32ca1161540398e0969b12ba3f92eb9f3dbe3ee0 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | cpp | httpd_new_log_3800.cpp | ap_log_error(APLOG_MARK, APLOG_ERR, errno, ap_server_conf, APLOGNO(01240)
"Couldn't unlink unix domain socket %s",
sockname); |
d5981d7d531d75a2e0dbf451ccddffe2206abf8e | b130b4067ff123e57cf29742d2be0f6ebf8bd1b5 | /elevator_trouble.cpp | cd34d3d9ab6aec5a408d507b6ad4c6b6b2586a08 | [] | no_license | vineetjai/Spoj | 880e3e12e59670255cb5a5adaa2ee32767bd314a | 25533f3290cae299e2052aebd173fda6fe383545 | refs/heads/master | 2022-06-24T12:04:10.261699 | 2022-05-15T13:18:26 | 2022-05-15T13:18:26 | 78,276,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | elevator_trouble.cpp | #include<iostream>
#include<cmath>
#include<math.h>
using namespace std;
long long int euclid_gcd(int a,int b){
if(b==0) return a;
long long int c = a%b;
return euclid_gcd(b,c);
}
int main(){
long long f,s,g,u,d,gc,z,x,y;
cin>>f>>s>>g>>u>>d;
if(u!=0 && d!=0){
gc=euclid_gcd(u,d);
if(int(abs(g-s))%gc==0){
... |
82d1d387e8eb394cbcf8505fd773f2f7f67ad8b3 | 61858fad0231c89e504fac0e61c588743d5866ca | /Final Project/Q3/q3_maxProfit.cpp | 8808184696c6cc121933a7deec4db84097362d60 | [] | no_license | pazara18/algo-ii-hws | f9e86139ba44181fed902ee135448ca35e533548 | 094ce37f6501cddcaba79eb31046183a628c3523 | refs/heads/main | 2023-06-11T10:30:10.379561 | 2021-07-05T16:06:11 | 2021-07-05T16:06:11 | 383,195,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,277 | cpp | q3_maxProfit.cpp | /*
* q3_maxProfit_skeleton.cpp
*
* Created on: June 14th, 2021
* Author: Ugur Unal
* Modified on: June 26th, 2021
* Student: Abdulkadir Pazar
* Student ID: 150180028
*/
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <set>
#include <utility>
#incl... |
f30f65aa7aa07cd10585ca0ee7df051689f6436a | d99ab6e8586f76c6e6bdec1b2fba73e7d892f5e8 | /ACM/CodeSprint Elims/Untitled7.cpp | 89d11badc477b089c604b18313a5d8e3515f818b | [] | no_license | jindalshivam09/cppcodes | 661d368c77793a0c8170397711c1eec9eeff1e27 | c2913c4d3e144de7a0a60749b675e2f661d5b07b | refs/heads/master | 2021-05-16T02:39:47.452998 | 2020-07-26T18:45:42 | 2020-07-26T18:45:42 | 23,185,118 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | Untitled7.cpp | #include<bits/stdc++.h>
using namespace std;
#define MAX 21
int n,k ;
vector<vector<int> > matrix(MAX,vector<int>(MAX)) , sum(MAX,vector<int>(MAX));
map<pair<int,int>,int> memo ;
#define MAX 1000000009
int funct(int index, int num) {
// cout << index << " " << num << endl;
if(index > n)
return 0 ;
if(memo.count(... |
939054019de9f005fbdf6e8b9fba4664dae1ba66 | 9a33566bdd5fd8a1a7f40b27f69ad8d1118f8f18 | /epoch/ayla/src/ayla/serialization/glm_serializer.cc | 9f5b5684d6f1c45d47f8c0859aad04202ea7e2fd | [
"MIT"
] | permissive | nwalablessing/vize | d0968f6208d608d9b158f0b21b0d063a12a45c81 | 042c16f96d8790303563be6787200558e1ec00b2 | refs/heads/master | 2023-05-31T15:39:02.877681 | 2019-12-22T14:09:02 | 2019-12-22T14:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,773 | cc | glm_serializer.cc | #include "ayla/serialization/glm_serializer.hpp"
#include "ayla/serialization/boost/explicit_instantiation_macros.hpp"
#include "ayla/config.hpp"
#include <boost/serialization/nvp.hpp>
namespace boost {
namespace serialization {
template<class Archive>
void serialize(Archive &ar, glm::vec2& vector, const unsigned i... |
0cb63b9cb3837274473b0cf70375c9df94d0b186 | 21a880dcdf84fd0c812f8506763a689fde297ba7 | /src/ctp/exchange/ctpcommunicator.cc | 5fbb884c0c04f9bfcb0c16fd464f7d43737ef537 | [] | no_license | chenlucan/fix_handler | 91df9037eeb675b0c7ea6f22d541da74b220092f | 765462ff1a85567f43f63e04c29dbc9546a6c2e1 | refs/heads/master | 2021-03-22T02:07:39.016551 | 2017-08-01T02:02:20 | 2017-08-01T02:02:20 | 84,138,943 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,763 | cc | ctpcommunicator.cc | #include <unistd.h>
#include <time.h>
#include <boost/container/flat_map.hpp>
#include "ctpcommunicator.h"
#include "core/assist/logger.h"
namespace fh
{
namespace ctp
{
namespace exchange
{
CCtpCommunicator::CCtpCommunicator(core::exchange::ExchangeListenerI *strategy,const std::string &config_file)
... |
bbf87f456a2517c9aad2942cbf22e002365516a6 | f009245299705562b151dd012882cf7f18e6c0c0 | /Testbed/Tests/ContinuousTest.cpp | edbd0427638adc1c04ea11fd6a157d600046d477 | [
"Zlib"
] | permissive | louis-langholtz/PlayRho | 9c4e203de846fc95bb2ea6956cfa625408af3598 | e14ba5bb23df73399343bd15d0ed102b2545f446 | refs/heads/master | 2023-08-17T20:45:44.571239 | 2023-08-16T01:21:25 | 2023-08-17T15:46:17 | 96,907,873 | 110 | 25 | Zlib | 2023-09-13T14:22:38 | 2017-07-11T15:22:02 | C++ | UTF-8 | C++ | false | false | 2,945 | cpp | ContinuousTest.cpp | /*
* Original work Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2023 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* a... |
436b8fb62f0bf162e712cd70d840be88a25dd52d | 90d39aa2f36783b89a17e0687980b1139b6c71ce | /SPOJ/PPATH.cpp | 33959dbbca4b0f4755eb1bbab0bd5a309a9aed63 | [] | no_license | nims11/coding | 634983b21ad98694ef9badf56ec8dfc950f33539 | 390d64aff1f0149e740629c64e1d00cd5fb59042 | refs/heads/master | 2021-03-22T08:15:29.770903 | 2018-05-28T23:27:37 | 2018-05-28T23:27:37 | 247,346,971 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,744 | cpp | PPATH.cpp | /*
Nimesh Ghelani (nims11)
*/
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<queue>
#include<vector>
#include<cmath>
#define in_T int t;for(scanf("%d",&t);t--;)
#define in_I(a) scanf("%d",&a)
#define in_F(a) scanf("%lf",&a)
#define in_L(a) scanf("%lld",&a)
#define in_S(a) scanf("%s",&a)
... |
43d5521f52dcd6831872f27443182d8e6611aab3 | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/compiler/xla/service/constant_value.cc | 54e23552f21aad6d144e46ae7b4058265b322a3e | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | C++ | false | false | 3,309 | cc | constant_value.cc | /* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
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 a... |
4a261b63e312d57a476de6c5f06c086e4801c48b | 26135a1362f8cb9638cc9649ec9cc2a11e2cd66e | /src/Dialect/ONNX/ONNXOps/RNN/RNN.cpp | dbd7440fc9838a31b3368f81786edbb107d317d3 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | onnx/onnx-mlir | 81003870714bf743aac7b08666563552aac34a5b | 8919cf3198e8e98960d95b1fb163a58f43c52070 | refs/heads/main | 2023-08-28T13:18:14.750654 | 2023-08-28T09:57:10 | 2023-08-28T09:57:10 | 241,400,276 | 590 | 286 | Apache-2.0 | 2023-09-14T18:46:19 | 2020-02-18T15:43:43 | C++ | UTF-8 | C++ | false | false | 7,448 | cpp | RNN.cpp | /*
* SPDX-License-Identifier: Apache-2.0
*/
//===------------------ RNN.cpp - ONNX Operations ------------------------===//
//
// Copyright 2019-2022 The IBM Research Authors.
//
// =============================================================================
//
// This file provides definition of ONNX dialect RNN o... |
00a0724023211bfb1b46e70a14c9735440ab1b40 | af4785d06675b6e8ee0b37d6621c3cef2a7025d3 | /TTSIoT_Class5/ParticlePublish_analog.ino | 08ef83575982b95a1c8f1755a0ca0874c2ff3885 | [] | no_license | jlosaw/TTS-EP-IoT | 50d88e93b65b16e9f30542944ff7b364b4988752 | f429e094c9673f370c4e3461bfddacad6e8da46e | refs/heads/master | 2020-03-30T00:11:21.310598 | 2019-01-31T15:39:47 | 2019-01-31T15:39:47 | 150,509,852 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,513 | ino | ParticlePublish_analog.ino |
// -----------------------------------------
// Analog Value to Particle Variable
// -----------------------------------------
/* In this example, we're going to add a continiually
updating state based on an analog reading. This will be pushed to the Particle console via
a simple command called particle publish.
We... |
e4dba50f495f96e7c043fcc913db060c36d08280 | 436b5baf399543abd7bcaa26174e09d7e344dc94 | /quiz/continuemax.cpp | 111f1500f6413bcdd0d5ff0ef900ced94d235130 | [] | no_license | jkl09/intev | 5e4f302ce6c0a6d1d858a3e0e38cc73d1c46b2b4 | 53d0795ffdc2a2ce913b6d85c58dfda73f76d18e | refs/heads/master | 2021-05-29T15:46:14.912865 | 2015-09-11T07:20:50 | 2015-09-11T07:20:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | continuemax.cpp | /*
* @Author: root
* @Date: 2015-07-04 22:45:11
* @Last Modified by: root
* @Last Modified time: 2015-07-04 23:14:53
find continue max substr in str
*/
#include <iostream>
#include <string.h>
using namespace std;
int ContinueMax(char *str,char *substr)
{
if (NULL == str)
{
return 0;
}
int len = strlen(s... |
b12f1b043b8d2b7a97552a28385b6de5c43d5e23 | 7569fed919a32f108e6f0f26ef43736d6550f189 | /AdvancingFrontSurfaceReconstruction.cpp | 10ca24ec608bcd3710a72d0f7f00bacbfd7139a7 | [] | no_license | liukaizheng/AdvancingFrontSurfaceReconstruction | 97a13b3e0677857966c857f17e1c384513f12ef8 | 6130b3d0ed439657d8a9e160f0e90b75ad801cbc | refs/heads/master | 2020-09-13T21:12:42.199302 | 2019-12-19T07:11:23 | 2019-12-19T07:11:23 | 222,904,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,975 | cpp | AdvancingFrontSurfaceReconstruction.cpp | #include "AdvancingFrontSurfaceReconstruction.h"
#include "Delaunay3D.h"
#include "PreTypeDefine.h"
#include "Plausibility.h"
#include "SortMatrix.h"
#include "FaceToOrientedFace.h"
#include "TetrahedronCenter.h"
#include "TriangleCircleRadius.h"
#include "DelaunayRadius.h"
#include <ctime>
#include <algorithm>
#includ... |
56be74803e3a5084570940a9d3f8e6686ce52a1d | 0e08da5eac5c1d3387546725c8cfcd54add98edc | /MPM/MPM/Vec3.h | 3b1bf369189cf3f1ff305d695c376cc35c4cc164 | [] | no_license | clucasa/MPMViz | 5eb16817f5411ceede6aecd02b2867ea40b9826d | 1563bab8393aed8887529a27ee23267deb6a0a7c | refs/heads/master | 2021-01-19T14:36:22.800108 | 2014-10-24T03:18:54 | 2014-10-24T03:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | h | Vec3.h | // Vec3.h - Zander Clucas 2014
// Handles all Vec3 functionality
#ifndef VEC3_H
#define VEC3_H
#include <stdio.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <cmath>
#include <glew.h>
class Vec3
{
public:
GLfloat x, y, z;
public:
Vec3( GLfloat=0, GLfloat=0, GLfloat=0 );
Vec... |
45afdfc1c077aa4eb6f1e331b1d241cb9f29c54c | 588c5b577049374ffc2b079156109d09e4be9a61 | /imexport.h | 368cf0843397592fc11f5067356ea76c53ac9350 | [] | no_license | u3556490/ENGG1340-49 | b9b124292208e8d4debc6c481976d89e2697ce01 | bda1144af22fc0cfabd1351ec1133140bba27d00 | refs/heads/master | 2020-04-30T22:25:11.225741 | 2019-04-27T13:18:35 | 2019-04-27T13:18:35 | 177,118,541 | 0 | 1 | null | 2019-04-20T13:55:05 | 2019-03-22T10:15:50 | C++ | UTF-8 | C++ | false | false | 737 | h | imexport.h | #ifndef DBIEPORT
#define DBIEPORT
#include "main.h"
#include <vector>
// -----------------------------
// function import_file: reads an address from the user and imports a
// whole inventory from that address.
// @params none
// @return vector<Commodity>: the inventory obtained
// -----------------------------
std::v... |
87901bc5e69d5b2668cff6c4b8f7898a5a1243d0 | 88d1ce3add86f8ced0df9d0d8411359592acaa4a | /labo 7/arreglo2.cpp | 0d6a7700e624b6cdeccffe0278790e18930c795a | [] | no_license | kevnefeg/Labosfunda | cf5f75bbe1c25a464908832943491182170a4dfa | 3919b51b521ad72d27ab9f541af920c333c713b0 | refs/heads/master | 2022-12-03T20:18:31.991618 | 2020-08-21T04:36:38 | 2020-08-21T04:36:38 | 249,773,463 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cpp | arreglo2.cpp | #include <iostream>
#include <conio.h>
using namespace std;
//cantida de elementos impares
int arreglo[] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29,
31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67,
69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99};
int ... |
510c1418c1f951a52f674ac3bfeac9abe33b87ae | 7619baf942a24e5f1c3c776126d5b3e9286f1341 | /KeywordsColoring2/source/cwprocess.cpp | 3cb90b950a33fe413bf0e7d4c22c0af3b0adafee | [] | no_license | sillsdev/CarlaLegacy | 2fe9c6f35f065e7167bfd4135dd5e48be3ad23be | 553ae08a7ca6c24cffcdeaf85846df63125a57fd | refs/heads/master | 2022-11-15T04:57:18.629339 | 2022-09-27T14:18:15 | 2022-09-27T14:18:15 | 6,128,324 | 10 | 8 | null | 2022-11-09T21:43:38 | 2012-10-08T17:33:08 | XSLT | UTF-8 | C++ | false | false | 12,822 | cpp | cwprocess.cpp | // CWProcess.cpp: implementation of the CCWProcess class.
//
// 2.0.4 19-Jan-2000 hab Fix getBatchName so it allows for more than 9 processes
// 2.1.0 07-Mar-2000 hab Added processInformationFile
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "../resource.h" // will... |
258105937ece351e89a2e132b5f197ba82f6de2f | 1b8805aea65e2230d5f66bfef366f3fab54fa6d6 | /src/ComponentDispatcher/MessageHandles/Implementation/CComponentDispatcherPortConfigAllocTypeHandle.cpp | 5ae3c4e2eb0c1089a57c06bb92663a11e17a0b92 | [] | no_license | aplced/il_module | 153f3623203e021ab46de8792f9775e3d58cda5d | 0f15408a5473df608d9e99c15085477e1d42ff0f | refs/heads/master | 2020-05-30T00:48:19.272345 | 2012-12-11T13:59:06 | 2012-12-11T13:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,424 | cpp | CComponentDispatcherPortConfigAllocTypeHandle.cpp | #include "inc/ComponentDispatcher/MessageHandles/Implementation/CComponentDispatcherPortConfigAllocTypeHandle.h"
TIMM_OSAL_ERRORTYPE CComponentDispatcherPortConfigAllocTypeHandle::Process(void* pMessage)
{
COMXComponent* compHdl;
COMXPortHandle* portData;
omxPortAllocMethodSetUp_t* allocType;
memAllocStr... |
214a5cd4379a0630d97435abadf25213057391e4 | f956dbb991ceca512df6d8f6d20b202f069c5394 | /src/Lethe/Core/Collect/ArrayRef.h | 29dfc7999fe3d0dfd6d2b4edc5f70dd7226a4bd3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ntoskrnl7/lethe | bdda532a1273f683f6a101ee72e7e1863e4c7916 | c1a9bb45063f5148dc6cf681ce907dcbb468f5e6 | refs/heads/master | 2021-03-04T12:38:33.943621 | 2020-03-08T17:32:01 | 2020-03-08T17:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,043 | h | ArrayRef.h | #pragma once
#include "../Sys/Types.h"
namespace lethe
{
template<typename T, typename S = Int>
class ArrayRef
{
public:
ArrayRef();
ArrayRef(T *ptr, S nsize);
void Init(T *ptr, S nsize);
const T *GetData() const;
T *GetData();
S GetSize() const;
const T &operator[](S index) const;
T &operator[](S index);... |
43441efa089b7290f940cf39818bf16c1195faa9 | 5d7403f86ce2611df053a196edbb63900bd1623b | /Задача№9/Задача№9/DynamicArray.cpp | dae7a55333e2834f1b659cba583968c996250828 | [] | no_license | tulenpodsoysom/Exam | b90e37cde8e4d1c00339109b5049ba3a3fefba39 | 2ca852415b7e97a0f98e85d7fa7f51f676959417 | refs/heads/master | 2023-06-09T18:15:17.054044 | 2021-06-29T10:57:54 | 2021-06-29T10:57:54 | 381,325,781 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 766 | cpp | DynamicArray.cpp | #include "DynamicArray.h"
#include <ostream>
DynamicArray::DynamicArray()
{
_array = nullptr;
}
DynamicArray::~DynamicArray()
{
delete[] _array;
}
void DynamicArray::insert(int in)
{
_amount++;
if (_array != nullptr)
{
int* buffer = _array;
_array = new int[_amount];
for (int i = 0; i < _amount-1; i++)
... |
8bab805e623d4634afa157b0e5fa650cef956ad9 | eb1ff3bb16c4c276f4732c21491fdb41bcda2d1a | /src/Client/RemotePlayer.h | ac73fa78aab00e5111881eb6e7925f3e35ba8924 | [] | no_license | benHodadov/Reversi | 2dcaf339f44bd72aa7bf46fae3691744d99c9321 | 1e7bcec0023f4446d8706b641fc6784eabb6b58f | refs/heads/master | 2021-09-02T05:03:21.044325 | 2017-12-30T16:04:14 | 2017-12-30T16:04:14 | 112,382,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 964 | h | RemotePlayer.h | //
// Created by ben-hodadov on 07/12/17.
//
#ifndef REVERSITEST_REMOTEPLAYER_H
#define REVERSITEST_REMOTEPLAYER_H
#include "Player.h"
#include "Client.h"
class RemotePlayer : public Player{
public:
/**
* Constructor - create a new remote player class.
* @param _s char
*/
RemotePlayer(char _... |
22d1b49825b19868146d0222ac4a8558b86d9ec6 | 263bf6aa8ace1b498809c49d7ff07f39976d4771 | /Test/Parser expresions/sy.hpp | 935b98c87eeccac01760e13b8c057dcfa8819d21 | [] | no_license | FedeVerstraeten/pgm-conformal-map | e96778541ec12c59d514cb6a839c5fae8fa7f915 | 2151468c86342d335ee379f2cd798bc18ebab918 | refs/heads/master | 2020-09-27T19:01:09.102288 | 2014-11-22T22:51:32 | 2014-11-22T22:51:32 | 226,586,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,164 | hpp | sy.hpp | #ifndef SY_HPP_INCLUDED
#define SY_HPP_INCLUDED
#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <cctype>
#include <cstdlib>
#include "common.hpp"
/*** Definiciones ***/
#define MAXOPERATION 6
/*** Tabla de asociatividad de operadores ***/
enum {
ASSOC_NONE=0,
ASSO... |
c2057933ae6c55328d6a7d4c733110d7759925aa | e47e2263ca0b60d0c8327f74b4d4078deadea430 | /tess-two/jni/com_googlecode_tesseract_android/src/classify/picofeat.cpp | a4a39263cfd0b4ee5417203b323ca922a6ec2553 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rmtheis/tess-two | 43ed1bdcceee88df696efdee7c3965572ff2121f | ab4cab1bd9794aacb74162aff339daa921a68c3f | refs/heads/master | 2023-03-10T08:27:42.539055 | 2022-03-17T11:21:24 | 2022-03-17T11:21:24 | 2,581,357 | 3,632 | 1,331 | Apache-2.0 | 2019-10-20T00:51:50 | 2011-10-15T11:14:00 | C | UTF-8 | C++ | false | false | 10,127 | cpp | picofeat.cpp | /******************************************************************************
** Filename: picofeat.c
** Purpose: Definition of pico-features.
** Author: Dan Johnson
** History: 9/4/90, DSJ, Created.
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Licensed under the Apache License, Versio... |
71884667992244a9c3d88025819dd4a0b66dcdf0 | c0f0941e3d6f62dbe6932da3d428ae2afed53b43 | /offline/packages/trackreco/PHCASeeding.h | ca0493c132ed11795c300511805906797d42578b | [] | no_license | sPHENIX-Collaboration/coresoftware | ffbb1bd5c107f45c1b3574996aba6693169281ea | 19748d09d1997dfc21522e8e3816246691f46512 | refs/heads/master | 2023-08-03T15:55:20.018519 | 2023-08-01T23:33:03 | 2023-08-01T23:33:03 | 34,742,432 | 39 | 208 | null | 2023-09-14T20:25:46 | 2015-04-28T16:29:55 | C++ | UTF-8 | C++ | false | false | 5,841 | h | PHCASeeding.h | #ifndef TRACKRECO_PHCASEEDING_H
#define TRACKRECO_PHCASEEDING_H
/*!
* \file PHCASeeding.cc
* \brief Track seeding using ALICE-style "cellular automaton" (CA) algorithm
* \detail
* \author Michael Peters & Christof Roland
*/
//begin
#include "PHTrackSeeding.h" // for PHTrackSeeding
#include "ALICEKF.h"... |
78ec692ec0576ce059d5ce3847a33a5c2357f02a | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /cpp/ql/test/library-tests/files/files1.cpp | 210c5586e7ac2522ef741394c3e6754ad23963a7 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | C++ | false | false | 84 | cpp | files1.cpp | #include "files1.h"
void swap(int* p, int* q)
{
int t = *p;
*p = *q;
*q = t;
}
|
ffebd517f4eecf483e55a1663066cf9a0fd2d2bd | 0c7551bf55705451ca8cc298b09934af0ca6e84b | /160A.cpp | acecbb85a544e2ce66b87de6e674e039f8ad5c96 | [] | no_license | yungkyle19/codeforces-solutions | 97c9e655659ece660138ed9b41d1b8dc9a9020c3 | b156285a8149b7a7b4f08fba276fb2f32b356c3f | refs/heads/master | 2022-12-29T02:17:15.100549 | 2020-10-18T13:32:00 | 2020-10-18T13:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | cpp | 160A.cpp | // Written By Deepesh Nimma
// Problem: 160A Codeforces
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define space " "
#define end1 "\n"
#define ar array
int n, i, a[100], sum = 0, ans = 0, cnt = 0;
int main() {
cin >> n;
for(i = 0; i < n; ++i) {
cin >> a[i];
}
... |
0294e8158f54bda73f1b7ec3dbd0541669d34705 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir29315/dir29712/dir30926/dir32551/dir32552/dir32801/file32814.cpp | 01a99243e7fc92bb750e357ed693b611f688e487 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file32814.cpp | #ifndef file32814
#error "macro file32814 must be defined"
#endif
static const char* file32814String = "file32814"; |
160b2b3108678cce4f53f757440cac727a75f405 | 24437e399a6da6dc9ebcfb15fea9c1a7bfcac8cb | /prueva promedio.cpp | 3803600b189265210f5e6340c08197c769a1a8fc | [] | no_license | IvonneTurcios-98/Clases-Programacion | 6c37bcf57a7a35ee3c6fa189b34dec42a703f608 | 4eccccc92cfd08e4ce047edc54ad869c79a661bc | refs/heads/master | 2020-03-30T17:08:39.633241 | 2018-10-03T16:35:34 | 2018-10-03T16:35:34 | 151,442,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,552 | cpp | prueva promedio.cpp | //Programa realizado por:
//Carmen Ivonne Turcios Martinez
//Numero de DUE:
//TM18012
//programa para calcular el promedio de notas de un alumno
//librerias obligatorias utilizadas
#include <iostream> //Esta libreria ha sido utilizado para operaciones de entrada/salida.
#include <math.h> //Esta libreria ha... |
8c175ceae036acf67b34cab215cf69acc174533e | 7f16d42e71a7550d1848fa6d31d8133486760768 | /Laplacian2D.h | 927bbe01dbca5fda82d61e962cbade23b242acd2 | [] | no_license | TERMMK2/TER-2A | 03215c6c966bf2a17c70b470399d41c4a07041a6 | 144e151dc74498737dd8a8c72aa3f85abb471bde | refs/heads/master | 2021-09-14T09:58:48.754342 | 2018-05-11T14:32:37 | 2018-05-11T14:32:37 | 117,685,449 | 1 | 1 | null | 2018-01-16T13:18:55 | 2018-01-16T13:12:40 | null | UTF-8 | C++ | false | false | 3,594 | h | Laplacian2D.h | #include "Sparse"
#include "Dense"
#include <cmath>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <memory>
#include "Datafile.h"
class Laplacian2D // pas fini de modifier
{
protected: // Les attributs de la classe
double _x_min, _x_max, _y_min, _y_max, _h_x, _h_y, _a, _delt... |
3a1d4858a68fcb5cc69cf16e5fd3094bece6c14a | 01ded2a5d31233d0f978dd877aebe222b484afd2 | /Source/Server/Basic_V1.0/WinMonitorCLIB.1.0/WinMonitorXmlUtility.h | 9918544c06aaf01aaf109e71e0cb1ecaa8f867db | [
"MIT"
] | permissive | avarghesein/WinMonitor | 5b4bc55c0f9032114ac1488fc7782f8ec1664877 | 2ba872758708ef1b74d7b2cc4a93a39e6e3aa1fd | refs/heads/master | 2020-04-14T17:40:42.376580 | 2019-01-03T18:07:54 | 2019-01-03T18:07:54 | 163,989,661 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,909 | h | WinMonitorXmlUtility.h |
#define INCLUDED "true"
#import<msxml.dll> named_guids
#include<TCHAR.H>
#include <comip.h>
using namespace MSXML;
struct IXmlUtility
{
public:
virtual TCHAR *GetError(void)=0;
virtual bool SetTokenSeperator(TCHAR *TokenSeperator=_T("/"))=0;
virtual bool CreateNewXmlDocument(_bstr_t NewXML_FullFile... |
7d513de85163b9eb5b42f306ffb88f5dcdcfadb8 | 7fbf9b52a4b7890115f25678683d713c7ea32d83 | /Source/Mach/Public/MachHeavyCharacter.h | cc96a56944ba90820e3acc2a63df53aaf4059c11 | [] | no_license | epic-studio/Mach | e3de281074932f5b5c775491233488343057ffa0 | 87697db336562ce686d18620ca21e3f24967c56c | refs/heads/master | 2021-01-02T09:03:52.527783 | 2016-11-20T21:34:19 | 2016-11-20T21:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | h | MachHeavyCharacter.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "MachCharacter.h"
#include "MachHeavyCharacter.generated.h"
/**
*
*/
UCLASS()
class MACH_API AMachHeavyCharacter : public AMachCharacter
{
GENERATED_UCLASS_BODY()
UPROPERTY(VisibleAnywhere, Category=Heavy)
cla... |
2f50fe7c512e4360d7b9bc7901db27dca277ac14 | b30dd565b55f4b5e97efa617d940270738f8e410 | /src/util/Side.cpp | e9344450f7611de54176b7bdcb4f56ded954c66d | [] | no_license | TrashPandit/Vex4911B2 | eacc1db5d507dedf7434cb1ef69faa710f86a656 | 461c8defad6ddce4aff46b9b44c2d9a25b933df0 | refs/heads/master | 2020-08-05T20:38:25.896934 | 2020-02-05T00:42:07 | 2020-02-05T00:42:07 | 212,701,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | Side.cpp | #include "util/Side.hpp"
#include "cmath"
Side::Side(pros::Motor * front_, pros::Motor * back_, bool flipped_){
front = front_;
back = back_;
flipped = flipped_;
}
void Side::move_relative(double inches, int speed){
if(flipped){
front->move_relative(-inches * ticksPerInch,speed);
back->move_relative(... |
3bbf0032b9c5ce541402f9127cbf6ba6ee87e42c | 2f723bd4f4e8e38c764eadeee4c4590bee77ed55 | /examples/Example3/main.cpp | a691f35336737e3661764f6da03e8c14298d6233 | [] | no_license | anthony2445/UOIT-Graphics | 3de841199475d2ca5fb4eb1dc66ea30bbca12062 | fab15d43831d84003ad19c254fee838194953fed | refs/heads/master | 2021-01-20T06:26:08.263996 | 2017-04-30T22:18:28 | 2017-04-30T22:18:28 | 89,878,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,259 | cpp | main.cpp | /************************************************
*
* Example Three
*
* A basic OpenGL program that draws a
* triangle on the screen with colour computed using
* a simple diffuse light model. This program illustrates
* the addition of normal vectors to the vertex array.
*
********************... |
f9a4bc880f757eb9df4002656c0cd3098016c6ad | ead0d52c5423bbcfdda6a780cd9c740b57d1ad57 | /util/uProfile.cpp | 4915586c3f4389db7a30f6644cb0118f6ef7d42b | [] | no_license | nitoyon/winamp-zipmp3plugin | 20ff82d178e7319ba06ac38776492b3965680a31 | cc7054d2f564ce6f510ab32e4388f5035d6fb6df | refs/heads/master | 2021-01-13T02:15:57.053472 | 2003-12-08T12:35:45 | 2003-12-08T12:35:45 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 12,779 | cpp | uProfile.cpp |
// uProfile.cpp
// 設定ファイルを扱うユーティリティー関数群
//============================================================================//
// 概要:なし。
// 補足:なし。
//============================================================================//
#include "uProfile.h"
/**********************************************************************... |
4686f088d4a5b562a735f02a355288ec369c39fd | 34bec7e199061f67fb1c8d86ac6e8055cef6de38 | /World.cpp | 7b1a9d13d9711a70f00ec9252a4755826a490cb9 | [] | no_license | miquelgalianallorca/IngSoftware1 | 248506477d6eff816c681f5ee5c400f3ac116b56 | 8091f6b8569e1f8214ee13886ec7a38321b0830b | refs/heads/master | 2021-09-01T10:45:10.886155 | 2017-12-26T15:22:41 | 2017-12-26T15:22:41 | 110,733,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,799 | cpp | World.cpp | #include "stdafx.h"
#include "Utils.h"
#include "World.h"
#include "Bullet.h"
#include "Enemy.h"
#include "Mushroom.h"
#include "Player.h"
#include "MeteoManager.h"
World::World() {
enemySpawnTime = 20;
mushroomSpawnTime = 20;
enemyTimer = 0;
mushroomTimer = 0;
player = nullptr;
meteoMa... |
64aab52300e84a40351cd0ba45f301cef670b5b2 | e2847929f485edb74dda23e63dff0b59e93998d2 | /0206.reverse-linked-list/reverse-linked-list.cpp | ecff2aee8ca37f71780e61cca1d96bbee60db807 | [] | no_license | hbsun2113/LeetCodeCrawler | 36b068641fa0b485ac51c2cd151498ce7c27599f | 43507e04eb41160ecfd859de41fd42d798431d00 | refs/heads/master | 2020-05-23T21:11:32.158160 | 2019-10-18T07:20:39 | 2019-10-18T07:20:39 | 186,947,546 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,409 | cpp | reverse-linked-list.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
// 多刷,这次写得挺快的,都是一把过,而且我觉得很规范:
// 这种东西感觉不是每次硬写的,要记住大致思路。
// 比如递归法记住每次是返回头节点;迭代法是最外面需要定义两个节点(curr和pre),while里面需要记录下一个节点(next),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.