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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9182bb5276cb21e5ffbee0ab1760fa0dfa077997 | 099f2181439ba42a5fbeb774a182faf3db9bad8c | /problems/041-first-missing-positive.cpp | 3345f55d6f693d61ca52593f08362a6ac54a9fe0 | [] | no_license | luchenqun/leet-code | 76a9193e315975b094225d15f0281d0d462c2ee7 | 38b3f660e5173ad175b8451a730bf4ee3f03a66b | refs/heads/master | 2021-07-09T09:49:36.068938 | 2019-01-15T07:15:22 | 2019-01-15T07:15:22 | 102,130,497 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | 041-first-missing-positive.cpp | /*
* [41] First Missing Positive
*
* https://leetcode-cn.com/problems/first-missing-positive/description/
* https://leetcode.com/problems/first-missing-positive/discuss/
*
* algorithms
* Hard (28.19%)
* Total Accepted: 882
* Total Submissions: 3.1K
* Testcase Example: '[1,2,0]'
*
* 给定一个未排序的整数数组,找出其中没有出现... |
101fc4ac3cf3ed321b25b73673f82ce73eb988ea | 0fcbef4b0cde82093e4d9409b7ff4194cd93237d | /source/Hyundo/week20/1865.cpp | e10c4d9e6220b983bdaf15141e5301b051538463 | [] | no_license | BreakAlgorithm/algorithm-study | 53bc141ae12933b1bee794b987ac6d0dedf8c29f | 3fa739b68c8bd1ce22888ae8d773a09300f87589 | refs/heads/master | 2023-03-07T18:06:12.873979 | 2021-02-24T01:52:21 | 2021-02-24T01:52:21 | 284,370,387 | 0 | 6 | null | 2021-02-21T06:08:58 | 2020-08-02T01:44:19 | C++ | UHC | C++ | false | false | 1,998 | cpp | 1865.cpp | #include<iostream>
#include<vector>
#define INF 999999
using namespace std;
void solution(int N, int M, int W) {
//N개의 간선 목적지/가중치
vector<vector<pair<int, int>>> edge(N + 1);
//각 지점의 초기값을 무한의 값으로 설정
vector<int> dis(N + 1, INF);
dis.at(1) = 0; //첫번째 위치를 0으로 설정
//각 도로 정보 저장
for (int i = 0; i < M; i++) {
in... |
e6f4b1a94bf267e61c941a9672bbe612d1708cbf | ab60cf7ed7c5b7c5808624eebffd773dc2a678a6 | /shared/utility/type_traits/has_id.hpp | 5957d6484a78046451adb6c4de77d3722333e07c | [] | no_license | NUbots/NUbots | a5faa92669e866abed7b075359faa05e6dc61911 | e42a510a67684027fbd581ff696cc31af5047455 | refs/heads/main | 2023-09-02T19:32:50.457094 | 2023-09-01T19:54:01 | 2023-09-01T19:54:01 | 23,809,180 | 34 | 20 | null | 2023-09-12T12:55:08 | 2014-09-08T21:30:48 | C++ | UTF-8 | C++ | false | false | 787 | hpp | has_id.hpp | #ifndef UTILITY_TYPE_TRAITS_HAS_ID_HPP
#define UTILITY_TYPE_TRAITS_HAS_ID_HPP
#include <cstdint>
#include <type_traits>
namespace utility::type_traits {
/**
* @brief SFINAE struct to test if the passed class has an ID field used for subtyping
*
* @tparam T the class to check
*/
template <... |
34b4f31dcf2dc3d752a19557dadc314d0b7ca15c | 551ee69b784715c8e4c869730dee65dce9e23874 | /include/Config.h | 9ab6ce2f704b84f52ea619ab5e4dadbd5f9e4a5b | [] | no_license | wangi1112/Woowa | 3a69995f647dc4f2295585218bca628f0b23cfc9 | 9ea77472ec8f01ff8f85ea50a3fdfd70bc4038b5 | refs/heads/master | 2021-07-03T12:19:34.407935 | 2017-09-27T00:49:11 | 2017-09-27T00:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159 | h | Config.h |
#ifndef __WW_CONFIG_HEADER__
#define __WW_CONFIG_HEADER__
namespace ww {
class Config {
public:
static void parse(int argc, char** argv);
};
}
#endif
|
140b980f126d0284996af34dbd92fc8386b9049b | dd91ea0a9b143371cfb186eaa74333da9488510d | /shared/libebm/tests/rehydrate_booster.cpp | db62accc8449cec78d06605e65d963bb4b92073d | [
"MIT"
] | permissive | interpretml/interpret | 6c6ef2f2e6a6bb9c43633251089385cc44affe16 | e6f38ea195aecbbd9d28c7183a83c65ada16e1ae | refs/heads/develop | 2023-09-03T17:42:50.611413 | 2023-08-28T18:16:10 | 2023-08-28T18:16:10 | 184,704,903 | 3,731 | 472 | MIT | 2023-08-15T04:31:34 | 2019-05-03T05:47:52 | C++ | UTF-8 | C++ | false | false | 4,521 | cpp | rehydrate_booster.cpp | // Copyright (c) 2023 The InterpretML Contributors
// Licensed under the MIT license.
// Author: Paul Koch <code@koch.ninja>
#include "precompiled_header_test.hpp"
#include "libebm.h"
#include "libebm_test.hpp"
static constexpr TestPriority k_filePriority = TestPriority::Rehydration;
TEST_CASE("Test Rehydration, bo... |
9cd515f4e6bc240da1cb0a5b429f2d24fac386f7 | f8084337fd563fbac18871c47756c47abd7d606b | /app/src/main/cpp/processimg_neon.cpp | b4ae8efc876efc7afd3235e88f50aa4ee1c5e3e8 | [] | no_license | jfrz38/CannyEdges-android | 35eaab5dc76ccbd91c2c95440bfb1480e3bdc29d | 05a91517aba0e61f740fa6839f855ac6e56cfa3e | refs/heads/master | 2022-11-06T18:39:38.848505 | 2020-06-24T18:00:53 | 2020-06-24T18:00:53 | 270,904,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,489 | cpp | processimg_neon.cpp | #include <jni.h>
#include <string>
#include <android/log.h>
#include <omp.h>
#define MAX_NUM_THREADS 16
typedef struct paramST { // Estructura de datos para asignar trabajo a cada hebra.
const unsigned char * data;
int * pixels;
int width;
int height;
int my_id;
int nthr;
int * matrix;
i... |
5b74736c5c417ab83dec9609c75175d4668f5f44 | 5c364c06003ec3d6b9b2a8b91eaab6d0293ff907 | /pintia.com/PAT1029卡内存的题目/main.cpp | d2cb1881409d468b47a2eeeb98d81857a1fa847c | [] | no_license | majiaoliya/acm | aa3d4b9679ac8f7ace28c2f4b5a21dc2d6421b71 | c0aa06b08547e6d75ea5a4b7db3cfe5e7f9bed83 | refs/heads/master | 2020-09-17T01:51:16.950731 | 2020-04-29T15:02:05 | 2020-04-29T15:02:05 | 223,952,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,208 | cpp | main.cpp | //#include <iostream>
//#include <vector>
//#include <math.h>
//#include <algorithm>
//#define MAXN 10086
//using namespace std;
//int main() {
// freopen("test", "r", stdin);
//
// int n, x;
// scanf("%d", &n);
// vector<int> v;
// for(int i=1; i<=n; i++) {
// scanf("%d", &x);
// vector<int>::iterator it = lower_b... |
c521f76cfe7ee62e89ff9a68e36b66af492b7272 | 2fcb53dca3c5b907e6e13dd5474d84e2a77d3939 | /autotests/kconfig_compiler/kconfigcompiler_test.h | c8242cfdc71df6f84315dbe9a3a22be3a865494b | [] | no_license | KDE/kconfig | 08013e2b21a80dc46bd2ec851ee1935f3ba50406 | 157825bd4ee5879f881e4883f5ad078956246f31 | refs/heads/master | 2023-08-04T06:34:05.524445 | 2023-08-02T22:15:47 | 2023-08-03T14:20:19 | 42,721,797 | 27 | 10 | null | 2023-03-06T13:22:12 | 2015-09-18T12:49:06 | C++ | UTF-8 | C++ | false | false | 678 | h | kconfigcompiler_test.h | /*
Tests for KConfig Compiler
SPDX-FileCopyrightText: 2005 Duncan Mac-Vicar <duncan@kde.org>
SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KCONFIGCOMPILER_TEST_H
#define KCONFIGCOMPILER_TEST_H
#include <QFile>
#include <QObject>
class... |
dc1ba4b1e88a0fd3da4b625e13e6882723940ee8 | 88cb3511223db861ffc167159456250310e62578 | /searchInRotatedArray/searchInRotatedArray/Solution.cpp | d2077f5cb9ff4db465c61027a014d62ca89e3aec | [] | no_license | sunRainPenguin/CPPSamples | d8114e783090fe3dab1f31cc639e25dcecf032a4 | 99c936338a16f87f7c58587bced74eacadba29d5 | refs/heads/master | 2021-07-18T13:52:11.609916 | 2017-11-24T14:40:24 | 2017-11-24T14:40:24 | 94,881,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | Solution.cpp | #include "Solution.h"
int main()
{
Solution solution;
//vector<int> input = { 4,5,6,7,0,1,2 };
//vector<int> input = { 1,2,4,5,6,7,0 };
vector<int> input = { 1 };
cout << solution.search(input, 0) << endl;
return 0;
} |
c448f51194441c255f1699349a66fc89bcaef8c4 | 705f0fdbfcff1d908c1370b4b7328dddd5933df0 | /SIAs_c++/GPU_LFA/main.cpp | 1662529b7e9eb82ab82397d386b6b65db99edc8d | [] | no_license | DJI007/GpuSIAsForTPRPSE | 41fe0862e0fd766780cad123d5b2671f832039e2 | 4778e532e0f6ae0c24f555835d7937c3b8805fad | refs/heads/master | 2020-09-14T01:18:27.381213 | 2019-10-30T11:05:51 | 2019-10-30T11:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,917 | cpp | main.cpp | /*
GPU version of Firefly
*/
#include "mat_rw.h"
#include "g_firefly.cuh"
/*
* Host code
*/
int main()
{
//READ data from MAT-file
std::vector<float> in_vector;
std::vector<float> xmax;
std::vector<float> xmin;
std::vector<float> zern;
matread("for_c.mat", "in_vector", in_vector); //make sure .mat is fl... |
ddf50cddbd4f34933f14aacd3507976f827382e2 | f90372c080cbd63ab6da7fc0deb310327335972f | /Mathematics/Matrix/MatrixTree/[HEOI2015]小Z的房间(Matrix-Tree).cpp | 88c2dd8845c087cf53636e4f30f2405fdc3f23b5 | [] | no_license | EbolaEmperor/OI-Learning | 7382b2c7d72516dd4cd1ac129348c2d7ff546645 | 14b3d5efbf671e39421258cbfd65e9e21991faec | refs/heads/master | 2020-04-01T19:40:44.675796 | 2019-07-13T13:12:50 | 2019-07-13T13:12:50 | 153,566,156 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | cpp | [HEOI2015]小Z的房间(Matrix-Tree).cpp | #include<bits/stdc++.h>
#define ha 1000000000
using namespace std;
int Gauss(int (*A)[100],int n)
{
int res=1;
for(int i=1;i<n;i++)
for(int j=i+1;j<n;j++)
while(A[j][i])
{
int t=A[i][i]/A[j][i];res=-res;
for(int k=1;k<n;k++)
{
int tmp=(A[i][k]-1ll*A[j][k]*t%ha+ha)%ha;
A[i][k]=A[j][k];A[... |
5777dc5509c122f215f94619485e0368eb8ab256 | 57802854f605124e6ef763a50b32e77e3068b7d5 | /SW Expert 3/Project2/10200.cpp | 7e0690901160b2f77a76e057fedf03335084c36a | [] | no_license | eeees/programming | f967077c4fa91f187bb01b783bde5f225ad7efbe | 6f043de7db495a41ff0bf9eb60d9a8fabd15e389 | refs/heads/master | 2021-08-16T06:47:26.706252 | 2020-09-06T13:16:17 | 2020-09-06T13:16:17 | 218,319,715 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 674 | cpp | 10200.cpp | //ÇÕ »©±â n
#include<iostream>
using namespace std;
int checkAllMin(int n, int a, int b) {
int sum = 0, result = 0;
sum = a + b;
result = n - sum;
if (result > 0) {
return 0;
}
else {
if (result == 0) {
return n;
}
else {
return abs(result);
}
}
}
int checkAllMax(int n, int a, int b){
if (a... |
aef4a02e07f92905ce75a73524af18f69fa476f4 | f2500e0c6f7858ca980028078a0db32649f60928 | /experimental/remoting/iree/remoting/protocol_v1/hal_stub.cc | d13ef87cac262d721b6f6b69b7716297639d746a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LLVM-exception"
] | permissive | JakopinA/iree | 8a91bc3b2d43c230fcd58cf32a8a00745de47808 | 53c87b8521f8012e19b9b25fca648f7309c3fe72 | refs/heads/main | 2023-07-09T17:34:38.284587 | 2020-12-18T19:13:59 | 2021-08-19T20:35:33 | 395,440,207 | 0 | 0 | Apache-2.0 | 2021-08-12T20:48:16 | 2021-08-12T20:48:15 | null | UTF-8 | C++ | false | false | 1,623 | cc | hal_stub.cc | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
bac6111cdc810ebe5103594abb00cd07333e8630 | 34e17284d0e37aa8a28864c14782c7e8f4032a3c | /Tree/Binary Search Tree/src/Tree.cpp | f1c9f894662889a3fdbd74652c85b0e3578feb7d | [] | no_license | InfiniteLoopify/data-structures | ab57b92f7391ed74bcf53a8b90d79bef6a9b72d3 | 8513fda112873c5043d4828f88553cc7ef7774f5 | refs/heads/master | 2022-08-27T02:40:00.978538 | 2020-05-24T20:52:12 | 2020-05-24T20:52:12 | 266,052,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,220 | cpp | Tree.cpp | #include <iostream>
#include "Tree.h"
Tree::Tree() : m_root(nullptr), m_nodeCount(0) {}
Tree::~Tree(){}
Node*& Tree::getsetRoot() {return m_root;}
Node* Tree::getRoot() {return m_root;}
int Tree::find(int key)
{
Node *iter = m_root;
while(true)
{
if(iter == nullptr)
ret... |
f021e5cf8a7e0dee780011bf9443576a35539089 | 3f5fbaeaaf62da1e4f9bfb7b349cf7a3a6e4efcb | /LeetCode Submissions/Subtract the Product and Sum of Digits of an Integer.cpp | 075fc49c7fab2cf0767e04499b41fec653ee7853 | [] | no_license | dipesh-m/Data-Structures-and-Algorithms | f91cd3e3a71c46dc6ffe22dac6be22d454d01ec3 | f3dfd6f1e0f9c0124d589ecdb60e7e0e26eb28fc | refs/heads/master | 2023-05-26T05:14:19.258994 | 2021-05-26T16:41:11 | 2021-05-26T16:41:11 | 276,396,488 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 272 | cpp | Subtract the Product and Sum of Digits of an Integer.cpp | class Solution {
public:
int subtractProductAndSum(int n) {
int sum=0, product=1;
while(n>0)
{
int digit=n%10;
sum+=digit;
product*=digit;
n/=10;
}
return product-sum;
}
};
|
7d58157c479f1104269b8613c1dcb1cdb3596ec9 | 670cbaa3ff43f3743ed20856c08f9ab0a526e24a | /Homework/Assignment_3/Gaddis 8th_ Chapter 4_ Problem 8/main.cpp | ff9233c2a8b2975283fd47ccc68285b0569414fd | [] | no_license | bm2698651/MorenoBrenda_CIS5_47948 | 0ca4bb5b5ed1956c5ce87283644906dee565890f | 2f71de1a30eb8f060297f6b97c234d70f048a2f9 | refs/heads/master | 2020-04-06T17:23:57.446171 | 2018-12-14T07:56:01 | 2018-12-14T07:56:01 | 157,657,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,247 | cpp | main.cpp | /*Color Mixer
*The colors red, blue, and yellow are known as the primary colors because that
*cannot be made by mixing other colors. When you mix two primary colors, you
*get a secondary color, as shown here:
*When you mix red and blue, you get purple.
*When you mix red and yellow, you get orange.
*When you mix ... |
30d5cd1bd8b9fc3659b28c568da554a9471f610d | ca9a44ec620353ed6d8a186512cfcb8dfac5fe38 | /evolution/penalty/penalty.h | 0f9e8bbcbc2e60f990126d9207def73b02e8bfc9 | [] | no_license | ZackMisso/FractureEvolutionResearch | b6b80a49ac14b15d7f46224f46f62bb4c5c318d5 | 01e823b077dfc20c43a89ec14ec6cace596283fa | refs/heads/master | 2021-01-10T14:42:52.935514 | 2016-04-11T10:59:27 | 2016-04-11T10:59:27 | 53,983,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | h | penalty.h | #ifndef __PENALTY_H__
#define __PENALTY_H__
#include "../../globalInclude.h"
#include "../individual.h"
#include "../constraints/constraint.h"
class Penalty {
private:
Constraint* constraint;
real multiplier;
public:
Penalty();
~Penalty();
real applyPenalty(Individual* individual,real fitness);
// getter ... |
66ae7e7a617a4659034b2fd55102682734d6c7ed | d6952997af6070cc83937ac1a511568bbad66577 | /Project1/Synthesizer.h | 4b19c7044ad6447a4ace525e1ac77197a6f11296 | [] | no_license | Naveen-Gunasekaran-26/SimpleSynth | b1b95d9c79f40e08a7162a597a06d1d14cf78175 | b2f0870c5e7428f3f2ea9c15d1b95531f5b1c5f4 | refs/heads/main | 2023-08-25T16:58:07.050206 | 2021-10-09T07:04:02 | 2021-10-09T07:04:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 671 | h | Synthesizer.h | #pragma once
#include<vector>
#include<SDL.h>
#include"SoundGenerator.h"
struct SynthData {
double* time;
double sampleDeltaTime;
std::vector<SoundGenerator*> soundGenerators;
//std::vector<SynthMiddleware*> middleware;
};
class Synthesizer {
public:
Synthesizer(unsigned int samplingRates = 48000, unsigned in... |
76dbc01d83a2586076c565a22ea2f7f692ee9c3d | e7e9fd5aa50fb8a2ef6b30084f46d11a53d56850 | /src/common/net.cpp | 4954fc0e161c4d611b6c8fefd90ba0e0767a4a7a | [] | no_license | timvdalen/OGO-2.3 | f03515ec833409424502935aecf2ee3911540190 | c833100b81602a2bb1faef1ea516b98c33e76440 | refs/heads/master | 2021-01-10T21:17:20.486219 | 2012-07-06T11:22:34 | 2012-07-06T11:22:34 | 4,124,418 | 0 | 1 | null | 2016-10-01T08:48:42 | 2012-04-24T12:35:09 | C++ | UTF-8 | C++ | false | false | 14,503 | cpp | net.cpp | /*
* Network module -- see header file
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
#ifndef WIN32
#define WIN32 1
#endif
#endif
#ifdef WIN32
#define _WIN32_WINNT 0x0501
#include <winsock2.h>
#include <ws2tcpip.h>
#include <pthread.h>
#define ssize_t signed long int
#defin... |
3dbe423a9c99c090b8028e983ac7c03ef4b4c94e | dd3d11771fd5affedf06f9fcf174bc83a3f2b139 | /BotCore/DofusProtocol/PartyMemberInStandardFightMessage.cpp | 3f2156d680a54d1aa646df946bf9196c99ab9402 | [] | no_license | Arkwell9112/arkwBot | d3f77ad3874e831594bd5712705983618e94f258 | 859f78dd5c777077b3005870800cb62eec1a9587 | refs/heads/master | 2023-03-17T12:45:07.560436 | 2021-03-16T11:22:35 | 2021-03-16T11:22:35 | 338,042,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | cpp | PartyMemberInStandardFightMessage.cpp | #include "PartyMemberInStandardFightMessage.h"
void PartyMemberInStandardFightMessage::deserialize(ICustomDataInput &input) {
this->deserializeAs_PartyMemberInStandardFightMessage(input);
}
void PartyMemberInStandardFightMessage::deserializeAs_PartyMemberInStandardFightMessage(ICustomDataInput &input) {
Abstr... |
49279a92bf39f181a79996d36d0ca30e85f5e4e1 | 0d9c7b3fabae7322aa97cd022d5de30a350ae3f8 | /src/transaction.h | 270bc90381837b249465ebc79f7cfc4db9cc1f3e | [] | no_license | zixiaoqt/Bit-Park | 9639b78bf131777ed500c1a7e93c18960fe6eb16 | 9b397feb171fb90c00c64af14af63e9bd7d5f889 | refs/heads/master | 2016-09-13T19:50:29.911646 | 2016-04-14T06:43:56 | 2016-04-14T06:43:56 | 56,211,792 | 3 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 7,815 | h | transaction.h | #ifndef _PARKINGSERVER_TRANSACTION_
#define _PARKINGSERVER_TRANSACTION_
#include "http_server.h"
#include "userterminal_server.h"
#include "device_tcp_server.h"
#include "options.h"
#include "device.h"
#include "database.h"
#include <list>
#include <boost/thread.hpp>
namespace parkingserver {
namespace dts = device_tc... |
dc3cb48af15e13c3532ee5d95dbcfe7baf6fba02 | 1148c822918f02eb40b8cebc9be22c65054e2038 | /ClosetProgram/Closet.cpp | 9598164a94872173760fd0a77ed975182b9330a6 | [] | no_license | SirRolf/ClosetProgram | bc4d3038f12f9468a56efe16995ab0e6883bd351 | 65c5311892dc6f2f4073c8e6cc6f3d90b406c5a7 | refs/heads/master | 2020-05-20T13:34:54.819016 | 2019-05-08T12:30:11 | 2019-05-08T12:30:11 | 185,601,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | Closet.cpp | #include "pch.h"
#include "Closet.hpp"
Closet::Closet(int aCapacity)
:capacity(aCapacity)
{
drawers = new std::list<Drawer*>();
}
Closet::~Closet()
{
}
void Closet::AddDrawer(Drawer* aDrawer)
{
//???
for (int i = 0; i < capacity; i++)
{
drawers->push_back(aDrawer);
}
}
|
8a841ea9eeec6a3da9d0386f33e43b2a56a55dd9 | b2f31a8dd5675da82fc74ce613a6b78e59addc95 | /MotLB/src/graphics/TriangleBatch.h | 57cf448ef486a6400949860b27baf7939d2eda62 | [] | no_license | samuelxyz/motlb | d2d0d99680b57840a7a4b8c343f0cd753ea8e235 | f7b919d17bc01c86602651ddc9a16cbcbdc16ef7 | refs/heads/master | 2020-03-23T18:59:14.772758 | 2018-09-07T14:52:37 | 2018-09-07T14:52:37 | 141,946,608 | 0 | 0 | null | 2018-08-07T20:07:23 | 2018-07-23T01:35:36 | C | UTF-8 | C++ | false | false | 1,100 | h | TriangleBatch.h | /*
* TriangleBatch.h
*
* Created on: Aug 6, 2018
* Author: Samuel Tan
*/
#ifndef TRIANGLEBATCH_H_
#define TRIANGLEBATCH_H_
#include <IndexBuffer.h>
#include <ShaderProgram.h>
#include <VertexArray.h>
#include <VertexBuffer.h>
#include "../Values.h"
namespace graphics
{
class Triang... |
b9eb3df53017c1372149a67349bc3f75a8cae970 | 08fae5bd7f16809b84cf6463693732f2308ab4da | /ETS/EtsEod/EtsEodServer/EodCalcOptTheoClosePrice.cpp | a2a7dca2be63e05d53d31e3e0a7e37502071ac2e | [] | no_license | psallandre/IVRM | a7738c31534e1bbff32ded5cfc7330c52b378f19 | 5a674d10caba23b126e9bcea982dee30eee72ee1 | refs/heads/master | 2021-01-21T03:22:33.658311 | 2014-09-24T11:47:10 | 2014-09-24T11:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,172 | cpp | EodCalcOptTheoClosePrice.cpp | #include "StdAfx.h"
#include "EodCalcOptTheoClosePrice.h"
namespace EOD
{
DWORD CEodStepCalcOptTheoClosePrice::Stop()
{
return CThread::Stop();
}
EodStepsMaskEnum CEodStepCalcOptTheoClosePrice::StepMask()
{
return enSmEmpty;
}
EodStepsMaskEnum CEodStepCalcOptTheoClosePrice::GetStartMask()
{
return enSmEmpty;
}
... |
1b003acf9c6b6c21bf54621b7af790fa08160b28 | 4b620510a309aa5c02ba120b8c3db3d4a3018a24 | /src/blockdevice.cpp | 5a696a4ebcef616c00f26c8112fe567684a18245 | [
"Unlicense"
] | permissive | DerNiccoo/MyFS | ca9b54413eff89d89617c9456e380e5d52ba84c4 | 4f5784d7c7683df846d3792283e6792c8123abf2 | refs/heads/master | 2021-09-04T09:25:12.931096 | 2018-01-17T18:03:41 | 2018-01-17T18:03:41 | 111,678,870 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,419 | cpp | blockdevice.cpp | //
// blockdevice.cpp
// myfs
//
// Created by Oliver Waldhorst on 09.10.17.
// Copyright © 2017 Oliver Waldhorst. All rights reserved.
//
#include <cstdlib>
#include <cassert>
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "macr... |
0c722b28543006a3f7a3d9d85d9362a2d52f324e | 91ac3071b9e5de4ad796c884ab1d945234d79dc7 | /Basic Implementation/string/WORDreplaceIN_STRING.cpp | ec1bc4e0dfa544dfcb7e4e9b0045286b196f2fa9 | [] | no_license | anshumanvarshney/CODE | aa22950acf1aed4a694774454716dd5acff38143 | a93bb1f20a246948d178a1a59d1ce99945c063f6 | refs/heads/master | 2021-05-04T12:15:56.879649 | 2018-02-05T10:48:21 | 2018-02-05T10:48:21 | 120,291,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | WORDreplaceIN_STRING.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[100],b[100],c[100],d[100];
int n,m,l,i,k=0,j=0;
cout<<"\nEnter the text :";
cin.getline(a,100);
cout<<"\nEnter the pattern to be replaced :";
cin.getline(b,100);
cout<<"\nEnter the replaced pattern :";
cin.getline(c,100);
cout<<... |
faebbf2920494fe85eaf432757935546e8e7bd70 | f2e04f4327917241430ead9b61acb76483d22749 | /sorting/binarySearch.cpp | a6a5c7e7a393f2bee680226a9e2b4c2fdb07eee8 | [
"MIT"
] | permissive | trilliwon/Algorithms | 9fd2a365d85ff292f4e2916ec27c3709bad3c19c | 7e2bc2a0915e88fb5c6d0603e5800a2bf0634aad | refs/heads/master | 2021-06-25T13:51:27.188489 | 2020-10-22T15:00:10 | 2020-10-22T15:00:10 | 51,704,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,687 | cpp | binarySearch.cpp | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define MAX_SIZE 101
void swap(int *, int *);
void sort(int [], int);
int compare(int x, int y) {
if (x < y) return -1;
else if (x == y) return 0;
else return 1;
}
int binarySearch(int list[], int searchnum, int left, int right) {
int middle;
while (... |
732ee2b4295ec6cce4c530e2aae9b947d73d8f7f | 94e82b1025da7ebee1003a76477cb0e72484fbc1 | /Model Viewer/EventDispatcher.h | f7176f6e7d9703adcdd3115bb1c057f7b9c33a12 | [] | no_license | Callum5042/Model-Viewer | b0f14076aff3ca3b414298982d58032c3a93c6c3 | 356a593e89570a9118330dbef165c121129a9835 | refs/heads/master | 2023-02-13T08:06:55.307646 | 2021-01-14T22:45:59 | 2021-01-14T22:45:59 | 322,382,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,125 | h | EventDispatcher.h | #pragma once
#include "Pch.h"
// Mouse data
struct MouseData
{
int x = 0;
int y = 0;
int xrel = 0;
int yrel = 0;
Uint32 state = 0;
};
// Window events
class WindowListener
{
public:
WindowListener() = default;
virtual ~WindowListener() = default;
virtual void OnResize(int width, int height) {}
};
// Quit ev... |
f1258167795f2330977a680faf0906c2244299d0 | 1c69a3334d02b467a2366066f02bbb5a8ed9b0a0 | /H-Queues/C-Priority/queuePTst.cpp | 31455744630fdbe85f48893aa26794547d0c015b | [] | no_license | pauldepalma/CPSC122 | 60af6e62fa77935e5dacab54f41b9ecf9a269526 | 70adefe738a7f8023c2042c8434dc28c7f151ab4 | refs/heads/master | 2022-12-29T20:46:19.610524 | 2022-12-10T20:17:53 | 2022-12-10T20:17:53 | 203,269,810 | 6 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 241 | cpp | queuePTst.cpp | #include <iostream>
using namespace std;
#include "queueP.h"
int main()
{
PQueue* que = new PQueue;
/*
for (int i = 5; i >= 0; i--)
que->Enqueue(i);
que->Dequeue();
que->Print();
cout << que->Peek() << endl;
*/
delete que;
}
|
64ad64595fc9cf65d82eef0e3a97708184b6c272 | ad3aca50419e0e6d7c75f4ad53c3c4b7663cfa61 | /leetcode_coins_distribution.cpp | 5275fa32d28434fafa3cf36eeafeb6997ad3d611 | [] | no_license | md-qubais/leetcode_submissions | 10580ee272d92708dc21905137aa139dde5bf17d | 3b9c396b5e8fd728059579a3d841a8c7f12512e4 | refs/heads/main | 2023-04-13T20:04:38.374338 | 2021-04-22T11:28:57 | 2021-04-22T11:28:57 | 360,495,145 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | leetcode_coins_distribution.cpp | class Solution {
public:
pair<int,int> count(TreeNode*root){
pair<int,int> p;
if(root==NULL){
p.first=0;
p.second=0;
return p;
}
pair<int,int> p1=count(root->left);
pair<int,int> p2=count(root->right);
p.first=p1.first+p2.first+1;
p.second=p1.second+p2.second+root->val;
return p;
}
... |
a48b2614717e7b80fb505ec8a38712861a192ff0 | eac290c13afe1f0c97cc7614ac71687f67f10c4f | /Exit.cpp | 530cf2a031348af27ffe637d8c4a767d17b484f6 | [] | no_license | littlegustv/ignited | d39515ac9d0c19b23d8d0041f45dcee52fb60145 | 5b38eb9f080d399a5c8e7529d1591c9142469513 | refs/heads/master | 2019-01-21T18:27:41.704942 | 2015-07-24T19:24:56 | 2015-07-24T19:24:56 | 39,652,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | cpp | Exit.cpp | #include "Exit.h"
Exit::Exit(int x, int y, int toLevel, void(*gotolevel)(int,int,int,bool), int playerX, int playerY, bool locked, bool play)
{
GameObject::Init(x, y, 0, 0, 16, 16);
SetID(EXIT, 0);
SetID(SOLID, 1);
SetID(INTERACT, 2);
Exit::toLevel = toLevel;
Exit::GoToLevel = gotolevel;
Exit::toX = playerX;
... |
24c6ddc176afd1c77ea5b68a64175d88b3a5875e | 55f2702a3a09e47f154330bae0ffa33f191c9eac | /edit_window.cpp | 0bcb088844ac7c9a1d2065ab8cd12d347dac3bd2 | [] | no_license | hcheng761/AggieSnap | bf6f6ecaab97bb503def058b67539761f66738e1 | 8742d47bbc1132e54c13f41b050b62c67ca8fe0c | refs/heads/master | 2021-01-10T11:36:58.466230 | 2016-03-02T18:18:43 | 2016-03-02T18:18:43 | 52,985,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,126 | cpp | edit_window.cpp | #include "std_lib_facilities_3.h"
#include "edit_window.h"
#include "input_window.h"
#include "global_variables.h"
#include <fstream>
// MW CHANGES ----------------------------------
#include <iostream>
#include <string>
// ---------------------------------------------
using namespace Graph_lib;
//------------------... |
029b90e59d985ea777f618b974217f7d14a9342e | 81de1f1f62154bcb59cbf3e40e1998f74c46d35f | /NOPserver - 05.2004/Handlers/Unit.cpp | 1e89f7f46e485b20b22361f5753f586fa63fe08d | [] | no_license | M4th3m4tic4l/wow-emulator-archive | 872ea550524821e52568c1bf3e3fe3d5b0b32c6c | 75caaf4f5958dca3de6a4f35a1a54d5ee47a82e6 | refs/heads/master | 2023-07-29T09:06:17.391951 | 2021-09-16T12:35:29 | 2021-09-16T12:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,938 | cpp | Unit.cpp | #include "Unit.h"
/* We NEED to send these when we send an Object Update
w/ type create about anyone (Unit) */
const wxUint8 CreateReqSize_Unit = 7;
const wxUint32 CreateReqItems_Unit[CreateReqSize_Unit] = {
UNIT_FACTION_TEMPLATE, UNIT_BASE_ATTACKTIME,
UNIT_BASE_ATTACKTIME+1, UNIT_BOUNDING... |
1f863dbd5250ae004d72746bb3be57d7a116e02b | d854b4d92d4efc6a930adbf26af7859dea75e6a5 | /coin_change.cpp | b6a7b85e9e5e3f10374ad99bded08fd23ed7f5e9 | [] | no_license | hao-pt/data_structures_and_algorithms | 9c9c049d91569b85693801ed9247df9361f918e0 | 679cb8a6acbdb31abfb36daf91ed609467af0e83 | refs/heads/main | 2023-03-26T18:45:21.395335 | 2021-03-26T15:10:51 | 2021-03-26T15:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,772 | cpp | coin_change.cpp | #include <iostream>
using namespace std;
int** arr2D_alloc(int m, int n){
int *data = NULL, **a = NULL;
void *buf = NULL;
size_t sz1, sz2;
sz1 = m*sizeof(int*);
sz2 = m*size_t(n)*sizeof(int);
buf = calloc(sz1 + sz2, 1);
if (buf == NULL)
return NULL;
a = (int**)buf;
a[0] = data = (int*)((char*)buf + sz1);
f... |
8a8f587d984969c3b6394a500b24129646ce46e6 | 1e185cf4b9f73b6f2bba9d0bf63e281d8211fef0 | /active_3d_planning_fiesta/src/map/fiesta_interface.cpp | ab78c841672fe3cba648a00e458764ac33b566bd | [
"BSD-3-Clause"
] | permissive | arnovaill/mav_active_3d_planning | 2571605fc53a3c53a264861076ee0efcfdb87ed4 | 87fc238ea766889220c9310170ac66439014abe3 | refs/heads/master | 2022-12-11T05:25:28.974229 | 2020-09-04T14:35:26 | 2020-09-04T14:35:26 | 292,001,763 | 0 | 0 | BSD-3-Clause | 2020-09-01T13:13:12 | 2020-09-01T13:13:11 | null | UTF-8 | C++ | false | false | 3,523 | cpp | fiesta_interface.cpp | #include "active_3d_planning_fiesta/map/fiesta_interface.h"
#include "active_3d_planning_core/data/system_constraints.h"
namespace active_3d_planning {
namespace map {
ModuleFactoryRegistry::Registration<FiestaMap> FiestaMap::registration("FiestaMap");
FiestaMap::FiestaMap(PlannerI &planner) : O... |
999ad3f38600e3fde55273782b6a2ece810cf959 | 7bb00eea506d129c94cede3001d437f4ebc4b16f | /20180327/Source/2d/Line2d.cpp | 4e957c32c7150e00d597a45eb1f275c0d5a27bc7 | [] | no_license | jhd41/ToolFrame | 3e5c82b5a5c41e1ba844b93c3df6dfc5a41572d9 | 250c7d4371eca95acc1a579f2b861a1c94dfe9e4 | refs/heads/master | 2020-03-15T03:04:58.371922 | 2018-05-03T03:01:10 | 2018-05-03T03:03:05 | 131,933,829 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,008 | cpp | Line2d.cpp | #include "Line2d.h"
#include "ToolFrame.h"
NS_TOOL_FRAME_BEGIN
CLine2d::CLine2d(void)
{
}
CLine2d::CLine2d( const CPoint2d& pt1,const CPoint2d& pt2 )
{
SetPoint1(pt1);
SetPoint2(pt2);
}
CLine2d::CLine2d( const CLine2d& line )
{
SetPoint1(line.GetPoint1());
SetPoint2(line.GetPoint2());
}
CLine2d::~CLine2d(void)... |
b66bd26d9f04eac476540de7b5206c225f1f05c1 | 8134e49b7c40c1a489de2cd4e7b8855f328b0fac | /wallet/laser/connection.cpp | b11de0bd1b783ca13898411c0910b97a6456706d | [
"Apache-2.0"
] | permissive | BeamMW/beam | 3efa193b22965397da26c1af2aebb2c045194d4d | 956a71ad4fedc5130cbbbced4359d38534f8a7a5 | refs/heads/master | 2023-09-01T12:00:09.204471 | 2023-08-31T09:22:40 | 2023-08-31T09:22:40 | 125,412,400 | 671 | 233 | Apache-2.0 | 2023-08-18T12:47:41 | 2018-03-15T18:49:06 | C++ | UTF-8 | C++ | false | false | 3,798 | cpp | connection.cpp | // Copyright 2019 The Beam Team
//
// 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 agreed to in... |
18ca6c7bcde7328c11d830528366171334260592 | dfa92d0a97f6f10a67b13da7ea49641c30e60d29 | /Source/Window/PlatformWindow.cpp | 040108f39ba97d265c58075cb7d17bd2c48154ce | [
"MIT"
] | permissive | wobbier/MitchEngine | 78a49f4f730fc03db1a9d122fb4cea849be2d850 | 7de012e3a5e926f1ffe6e6fa1c35ab8be63809b2 | refs/heads/master | 2023-07-20T12:33:04.584972 | 2023-03-26T23:20:41 | 2023-03-26T23:20:41 | 35,710,842 | 28 | 4 | MIT | 2023-03-27T00:06:58 | 2015-05-16T05:11:11 | C | UTF-8 | C++ | false | false | 2,499 | cpp | PlatformWindow.cpp | #include "PCH.h"
#include "PlatformWindow.h"
#include <SDL.h>
#include <SDL_syswm.h>
#include <ImGui/ImGuiRenderer.h>
#include <imgui.h>
PlatformWindow::PlatformWindow(PlatformWindowParams& InParams)
: Params(InParams)
, Buffer(BGFX_INVALID_HANDLE)
{
}
void PlatformWindow::Create()
{
WindowPtr = SDL_CreateWindow(... |
95d1c94d3e21e3a006a127b9d1db6f14add788a8 | 48383a2959bb131fc5c104153786347ef77f8bb8 | /SuperReads_RNA/global-1/jellyfish/include/jellyfish/large_hash_array.hpp | 2a49c9f522315661a9e202f8923c6d3af6acec83 | [
"GPL-3.0-only",
"LicenseRef-scancode-free-unknown",
"MIT",
"GPL-1.0-or-later",
"GPL-3.0-or-later"
] | permissive | gpertea/stringtie | 1d0402ca2b5a004df1012c153d495a485e9e2ffd | 545ec76fed1de4c826dc3c96256076ea372ad427 | refs/heads/master | 2023-03-03T02:33:27.977486 | 2023-03-02T21:25:02 | 2023-03-02T21:25:02 | 25,170,618 | 319 | 82 | MIT | 2022-12-05T14:44:24 | 2014-10-13T17:59:11 | C++ | UTF-8 | C++ | false | false | 38,489 | hpp | large_hash_array.hpp | /* This file is part of Jellyfish.
Jellyfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Jellyfish is distributed ... |
a5d48acb9d7680fb8a8358224a01f49acfa5d67d | b56b004530bd1815b7ae1b52d2f38e3fab64c076 | /src/particle_filter.cpp | eae618ba1bf18c231e579500b581b5d47db4d6d0 | [
"MIT"
] | permissive | joustava/CarND-Kidnapped-Vehicle-Project | a8fd5dfe5759a9c6d8c4f60c21d2f65be4687039 | 4e9c4a0161f85ba0f3c7ff50493b17252f666879 | refs/heads/main | 2023-02-25T16:19:31.739197 | 2021-01-22T16:58:42 | 2021-01-22T16:58:42 | 329,076,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,197 | cpp | particle_filter.cpp | /**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*
* Edited by
* Joost Oostdijk
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "help... |
1a0bc3929e5a8142becf9a3b6b6193a325ed2958 | abbb1e132b3d339ba2173129085f252e2f3311dc | /docs/template_extension/op.cpp | 8e450eb6c2e05199ee6bd47c9403d805b6c8e0a1 | [
"Intel",
"Apache-2.0"
] | permissive | 0xF6/openvino | 56cce18f1eb448e25053fd364bcbc1da9f34debc | 2e6c95f389b195f6d3ff8597147d1f817433cfb3 | refs/heads/master | 2022-12-24T02:49:56.686062 | 2020-09-22T16:05:34 | 2020-09-22T16:05:34 | 297,745,570 | 2 | 0 | Apache-2.0 | 2020-09-22T19:03:06 | 2020-09-22T19:03:04 | null | UTF-8 | C++ | false | false | 1,076 | cpp | op.cpp | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "op.hpp"
using namespace TemplateExtension;
constexpr ngraph::NodeTypeInfo Operation::type_info;
//! [op:ctor]
Operation::Operation(const ngraph::Output<ngraph::Node> &arg, int64_t add) : Op({arg}), add(add) {
constructor_... |
e2dc572c302174d826fae674a0b9a76d3bf963f1 | 926be6cac667168db041b1820adc6437f8fc58d3 | /src/testcases/app_simple_sat.cpp | 5052061189ea44cfd2e25f1398bd18243b038cd4 | [
"Apache-2.0"
] | permissive | idealab-isu/de-la-mo | 951b3dc7d0533ff6bf5267d9a3a6a5c19ff98606 | ddd2293a8d6ecca1b92386dbecfa0b2631dff1df | refs/heads/master | 2020-03-29T17:55:59.136921 | 2019-07-18T05:26:22 | 2019-07-18T05:26:22 | 150,186,180 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,296 | cpp | app_simple_sat.cpp | #include "testcase_includes.h"
int main(int argc, char** argv)
{
// Read ACIS license file
char* unlock_str = nullptr;
if (!read_license_file("license.dat", unlock_str))
{
std::cout << "ERROR: Unable to read license file!" << std::endl;
pause();
exit(EXIT_FAILURE);
}
// Define thickness
double thickness... |
176bf5e909005e51e22d0d539c7025e46b29f0f3 | be6e5e911973d930d8e8f1bf2b0497dccadc0b15 | /c/Animals_switch/Animals_switch.cpp | 73c627ce055be259fb796796588d91952eba3469 | [] | no_license | rik2home/doc | e89c373d208289dd76ff0963e835a122ad5e91e5 | 88e6657638b90d1138add703408b51089b70bc14 | refs/heads/master | 2023-03-07T22:37:43.167774 | 2023-02-18T15:22:35 | 2023-02-18T15:22:35 | 94,766,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | cpp | Animals_switch.cpp | #include <iostream>
using namespace std;
void main()
{
int bull, calf, cow, goat, chicken, cat, dog, kitten;
int animal;
cout << "Select an animal:\n"
<< "1. Bull\n"
<< "2. Calf\n"
<< "3. Cow\n"
<< "4. Goat\n"
<< "5. Chicken\n"
<< "6. Cat\n"
<< "7. Dog\n"
<< "8. Kitten\n"
<< "Your choise... |
7d6de7c264ed859ebc3a0affa3308c001d9cbd66 | 21a37aa4b957f4919d52d4e1d4d5f18e0ae4fb7c | /code/1483/main.cpp | 70e222bf38d74e770616828fd7140dfb8a43f2de | [] | no_license | liuzuyang/my_repository | 20e1c2cbc93bc8cb434193a4feec22351ef68b00 | d97d6e71b85e667b9f8d924a044d21a670604749 | refs/heads/master | 2020-04-05T15:14:14.472810 | 2018-11-10T08:02:40 | 2018-11-10T09:19:56 | 156,960,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,397 | cpp | main.cpp | #include <iostream>
#include <functional>
#include <string>
#include <map>
#include <initializer_list>
#include <utility>
template <typename T>
class add
{
public:
T operator()(T t1, T t2){return t1 + t2;}
};
template <typename T>
T sub(T t1, T t2)
{
return t1 - t2;
}
template <typename T>
using map_f = std::map... |
3de1e326e29981442f9ac7d26e23a3ff0d3a0af2 | 86649243aeb1acdd3d58c629f39df3a5df93d79e | /CashFlow.hpp | 688aa7bb25b2ce1b65839c77781935539dd23052 | [] | no_license | gsm262/BondOptions | 486c7f7a44ed7ae4f881e8f67f0b77534505856f | abe24c08e78e387740ceac810dcfcbad07fcfe64 | refs/heads/master | 2021-01-17T18:00:08.351687 | 2016-11-22T13:04:18 | 2016-11-22T13:04:18 | 70,864,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,034 | hpp | CashFlow.hpp | //
// CashFlow.hpp
// BondOptions
//
// Created by George McWilliams on 9/25/16.
// Copyright © 2016 George McWilliams. All rights reserved.
//
#ifndef CashFlow_hpp
#define CashFlow_hpp
#include <stdio.h>
#include <vector>
#include "math.h"
#include "Date.hpp"
class IndividualCashFlow {
friend class CashFlow... |
f0002501c17e98c7b966f8a125cacbddbf596f51 | bf4e88770beb734b660680375365172796150301 | /LppWeb_Compiler/LppWeb_Compiler/Parser/Statements/statementsinode.h | 5a05f75b2a11f530a107e4c36a2b04ff10d157d2 | [] | no_license | Siwady/LppWeb-Compiler | 01ddece1e527cae723098bba604e5b34bd571d9a | 32c7921696baa3eb5c470cae42840da3431a575f | refs/heads/master | 2021-01-21T03:56:10.739218 | 2015-09-27T04:51:23 | 2015-09-27T04:51:23 | 39,653,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | statementsinode.h | #ifndef STATEMENTSINODE_H
#define STATEMENTSINODE_H
#include "statementnode.h"
#include <list>
#include "../Expressions/expressionnode.h"
using namespace std;
class StatementSiNode : public StatementNode
{
public:
void Interpret() override;
~StatementSiNode() override;
ExpressionNode* Expression;
list<Statement... |
59ad1ed4a91c5143e0e867316a8c2acb7c6e70db | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_21213.cpp | 39800ef680135eb8700dd19a8564d45c75acde82 | [] | 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 | 4,620 | cpp | Kitware_CMake_repos_basic_block_block_21213.cpp | (utf8_codepoint >= '@' && utf8_codepoint <= '~' &&
(handle->tty.wr.ansi_csi_argc > 0 || utf8_codepoint != '[')) {
int x, y, d;
/* Command byte */
switch (utf8_codepoint) {
case 'A':
/* cursor up */
FLUSH_TEXT();
... |
ca78c3ab359c6722c06fb5101ee3b0ab1b910e8d | f2c7905a3b2956413bf3089c2ef80c8a6efdd97c | /tests/greedy_preconditioner_tests.cc | 6cb1553ee41e35e9b6582c3e226c075e1b3b0859 | [] | no_license | zwelchWI/cyclus | ae4f6f565e6307383c226946f10f5cd357669ae6 | faa4262cc479b0cefaafa0621f21232cd39cc90c | refs/heads/master | 2021-01-22T08:48:15.998012 | 2014-02-13T13:08:11 | 2014-02-13T13:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,392 | cc | greedy_preconditioner_tests.cc | #include <gtest/gtest.h>
#include "exchange_graph.h"
#include "greedy_preconditioner.h"
using cyclus::ExchangeNode;
using cyclus::ExchangeGraph;
using cyclus::GreedyPreconditioner;
using cyclus::RequestGroup;
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TEST(ConditionerTests, Cond... |
3ed82f20ec7ca0034244fe88465041ab6c4e39c9 | 24d4d4fbdf5138fdf360c177f3a10ecfb7e271d6 | /dune/proba/proba.hh | 2e2985d8e1752dfd925c3a0742e7e27c8ea0be1c | [] | no_license | ivana173/proba | d96c02f8f264094c48e5c693d6ca64cb4702cdc7 | 3d7a4dfcac79cc59906b5749656500c4f0e31f09 | refs/heads/master | 2022-11-21T00:26:17.554312 | 2020-07-23T20:48:02 | 2020-07-23T20:48:02 | 279,408,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80 | hh | proba.hh | #ifndef PROBA_HH
#define PROBA_HH
// add your classes here
#endif // PROBA_HH
|
5971e08141afdca8f05dfafe6b2877faa339ef5e | 8a0db776be69e9b969eedd599032fa673411e8ec | /BOJ/hooney/1260.cpp | 628ab511e40f80ea4edd72a8b29cc8b0a8297b1d | [] | no_license | cd06114/CodingTestStudy | 1b0af69840d138e13c2fad3e28021acef264bd66 | db71dc88abd6520b21e06c69828193ea3eb7a568 | refs/heads/master | 2023-03-09T18:35:53.133827 | 2021-02-23T16:05:44 | 2021-02-23T16:05:44 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,752 | cpp | 1260.cpp | /******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug... |
49c8c20ac3f238236f5a3ab3032c2a910db3cbe8 | adabd654a552bf0624254b05f7f5434cb6ddb0ca | /crush/gamewindow.h | 955156db4d33fec43873372faba56efdf6103b35 | [] | no_license | c14016057/pd2-project3 | 16d3037e48dfc1663155c5eafd51960a5809ecf6 | c3a74be6ecce89c330c4e96dd9727a32109fa463 | refs/heads/master | 2021-05-29T03:03:57.760250 | 2015-06-28T15:40:40 | 2015-06-28T15:40:40 | 38,203,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | h | gamewindow.h | #ifndef GAMEWINDOW_H
#define GAMEWINDOW_H
#include <QWidget>
#include"square.h"
#include<ctime>
#include"rowsquare.h"
#include"colsquare.h"
#include"blocksquare.h"
#include"rainbowsquare.h"
#include"resultwindow.h"
namespace Ui {
class gamewindow;
}
class gamewindow : public QWidget
{
Q_OBJECT
public:
explic... |
35033485e5ef8e08aa0bf84c9b1308957b23ca39 | ee8d778be557b7d2b6fd4f55b8e91c5a3bf7c0da | /em4r-hardware/arduino/apps/em4rctrl/table.cpp | adb946261b9ead9f4b0befe32a92681b9023e4d8 | [] | no_license | LRRD/Em4R | 2f109e7ccb7a986d4285d2507e756ffdd24edb53 | 9da4d2d026af294a0eb6434248f6e0f4f6d79d24 | refs/heads/master | 2021-07-24T20:34:19.807998 | 2018-10-29T15:25:29 | 2018-10-29T15:25:29 | 130,109,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,327 | cpp | table.cpp | #include "table.h"
#include "debug.h"
Table::Table(bool interp_, const entry_t* table_) :
interp(interp_),
table(table_),
entries(0)
{
// Count entries.
const entry_t* scan = table_;
while ((scan->x != END_OF_TABLE_XY) || (scan->y != END_OF_TABLE_XY)) {
entries++;
scan++;
}
// A table must have at least t... |
03d0a994b2e422cdf4732bea6669f876d9cf9fd5 | f3cfd7f0c1c6db92b2c8e0e2753d2d4234f75bdb | /yacynth/src/effects/FxChorus.h | 78e0b6643cbf160aaa0cb959a26f40970e615886 | [] | no_license | styac/audio | 8998c52afab51f59dfb4453770038baa8e85b41d | 0a5b9ca550c922994b8815f2823989fbadb45310 | refs/heads/master | 2020-05-22T00:00:12.164792 | 2019-01-23T21:21:40 | 2019-01-23T21:21:40 | 54,407,623 | 0 | 1 | null | 2016-06-12T16:28:44 | 2016-03-21T17:02:07 | C++ | UTF-8 | C++ | false | false | 5,294 | h | FxChorus.h | #pragma once
/*
* Copyright (C) 2016 Istvan Simon -- stevens37 at gmail dot 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) an... |
375bcac1fcc5ca63f37f79c91d87a9c5bc38947b | 37b1cc093229626cb58199379f39b6b1ec6f6fb0 | /src/cpu/kernels/CpuDirectConv2dOutputStageKernel.cpp | 93ad5e5ebacd3bb64de6ad0ea31bad5d61c67f31 | [
"MIT",
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | ARM-software/ComputeLibrary | d4dfccb6a75b9f7bb79ae6c61b2338d519497211 | 874e0c7b3fe93a6764ecb2d8cfad924af19a9d25 | refs/heads/main | 2023-09-04T07:01:32.449866 | 2023-08-23T13:06:10 | 2023-08-23T13:06:10 | 84,570,214 | 2,706 | 810 | MIT | 2023-01-16T16:04:32 | 2017-03-10T14:51:43 | C++ | UTF-8 | C++ | false | false | 19,693 | cpp | CpuDirectConv2dOutputStageKernel.cpp | /*
* Copyright (c) 2017-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* ri... |
554429f9ba10e5f93551867b3bdee17e36dbed4b | 2c97fc62eab1f78c4a5d1a83826a75209ebb6d39 | /1比赛题目/codeforces round 498 div 3/D.cpp | d83e6a09c42838e3cd13382ea6f0b799a878028d | [] | no_license | GaisaiYuno/My-OI-Code-1 | f32932f1004e593ffee0b0e97cffd25d9e2851bf | c57ec4e2aaa1d770ee9490a42710d1cf71a153f2 | refs/heads/master | 2020-12-31T23:13:46.913582 | 2020-02-08T01:09:46 | 2020-02-08T01:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | D.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#define maxn 100005
using namespace std;
int n;
char a[maxn],b[maxn];
int main(){
scanf("%d",&n);
scanf("%s",a+1);
scanf("%s",b+1);
int ans=0;
if(n%2==1&&a[n/2]!=b[n/2]){
ans++;
}
for(int i=1;i<=n-i+1;i++){
if(b[i]!=b[n-i+1]){
if(a[i]!=b[n-i+1]&&a[i]!=... |
13bb22b97c1ade2510ff039bd3adec0e04729a88 | 3256f9eafd798d8bfbe1d6448a3ef522bc6bc95e | /hashing/vertical_tree.cpp | 3965ecd220d3b29cb0f5b6ce37bffaeb926cbb32 | [] | no_license | prayaglehana/Coding-Problems | b28fda44385473abacf478aa981f3c398aefe42d | 45e3f2331368701d7bdb5c26dbd2f3dc756eb13b | refs/heads/master | 2020-07-05T08:46:46.432954 | 2019-08-15T20:53:39 | 2019-08-15T20:53:39 | 202,594,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | cpp | vertical_tree.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
map <int,vector<int>> m;
void showVector(vector<int> v){
cout<<"show vector ";
for(int x:v)cout<<x<<" ";
cout<<endl;
}
void buildMap(int *ar,int h,int i,int N){
if(i>N) return;
if(ar[i]!=-1){
vector <int> v;
if(m.find(... |
92c780501f3bb1a11fcc27e8a642def57b324911 | 8980dce8a36c26ca293abd2c3c2c4557bdaa3dd4 | /DSbasis/BST.cpp | ad99570c4010669bc105a2b8efd538c4486cfc56 | [] | no_license | PanAndy/jobs | 041d3f956a01b035262df0cde28881b44891771b | 0cbaf48973b7dfdbb013fb5816afc6c0ca73d50c | refs/heads/master | 2022-12-03T11:58:00.706685 | 2020-08-24T06:24:47 | 2020-08-24T06:24:47 | 288,958,290 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,663 | cpp | BST.cpp | #include<iostream>
#include<vector>
using namespace std;
struct node{
int val;
int flag;
node* left;
node* right;
node(int x):left(NULL),right(NULL),val(x), flag(0){}
node():left(NULL),right(NULL){}
};
//返回的是构造的二叉排序树的根结点
node* build_BST(node* root, int val)
{
if(root==NULL){
retu... |
d45145fb5b4f50e77764f1c7b97428baf588c5e8 | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/boost/1.78.0/boost/random/uniform_int.hpp | 4362652593ded9858618a6ad1e1384041c954674 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 2,909 | hpp | uniform_int.hpp | /* boost random/uniform_int.hpp header file
*
* Copyright Jens Maurer 2000-2001
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* See http://www.boost.org for most recent version including documentation.
*... |
c1075b54507de90a80498772c3092720b243f061 | 039179a1902c48aa34550987097b3bcbcaee64ca | /src/SkeyeEngine/Component.h | 0cca914ac14fcdd11f856913613777b2f802787e | [] | no_license | IamSkeye/SkeyeEngine | 0622b8bea89023076eefc81de4ef29535736c7d3 | 409ce99f6f129fc454f296ab5919c91ee81decc0 | refs/heads/master | 2020-08-06T03:21:38.198192 | 2020-01-17T12:15:11 | 2020-01-17T12:15:11 | 212,814,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | h | Component.h | #ifndef _COMPONENT_H_
#define _COMPONENT_H_
#pragma once
#include <memory>
/**
* Parent class for all our components
* Helps link them to Entity class
*/
namespace Skeye
{
class Core;
class Entity;
class Keyboard;
class Environment;
class Transform;
class Component
{
friend class Entity;
privat... |
5401802d4d0877690be34160489ca28b4827f84c | b058a701a42e0402c945c62b80934f29e569960f | /Nevada.cpp | 0b9bc1878b4e5de624c19a2e631475b7083f68d5 | [] | no_license | calista95/Oregon-Trail | ccb9fb8fc4f59b0f1540a4fce79a4008cfa8631d | fd822b0e17fe44535d0f1502ab2e5ac30ca8f530 | refs/heads/master | 2020-03-08T13:41:10.791791 | 2019-04-11T00:29:56 | 2019-04-11T00:29:56 | 128,164,140 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,911 | cpp | Nevada.cpp | /*******************************************************************************File: Nevada.cpp
Name: Calista Wong
Description: This is the implementation file for the Nevada derived class.
*****************************************************************************/
#include <iostream>
#include <cstdlib>
#include ... |
79a2e849784d11b011c97a04b50ea4c6ceae3a5e | 79969657ad3454038faba3006d404144e3a22f25 | /test/SharedPointerTest2.cpp | 5f1a24b79a48512e93dd1de55f8179956bc7ebee | [
"Apache-2.0"
] | permissive | blue3k/SharedPointer | da8533561c79692f80a3b8885f69be0c3d6cf75e | ac78243b6ec498962d7567f7c5522cc3f408a56c | refs/heads/master | 2016-09-06T04:09:27.366618 | 2015-03-23T23:13:31 | 2015-03-23T23:13:31 | 26,155,926 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,231 | cpp | SharedPointerTest2.cpp | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2013 Blue3k
//
// Author : KyungKun Ko
//
// Description : Test 2
//
////////////////////////////////////////////////////////////////////////////////
#include "Common\Typedefs.h"
#include "SharedPointer.... |
8913ce8949604ccebe0828e4e9e17afa14f371fa | 6c4e5003298e0d5ff47426f91d402eaaff38a689 | /sdl-tutorial/sdltutorial/Enemy.cpp | d4f58e806b2be4a7fe4a99571d107a9af459b986 | [] | no_license | iamsidv/sdl-samples | b1484cdaffbe729fa9b6940baf597a5b073303b1 | f549b92641a1707c5c9ca3c7091aabdb629b8bb0 | refs/heads/master | 2020-05-31T14:32:13.470514 | 2019-06-29T20:59:43 | 2019-06-29T20:59:43 | 190,331,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | cpp | Enemy.cpp | //
// Enemy.cpp
// sdltutorial
//
// Created by Siddharth on 26/06/19.
// Copyright © 2019 Siddharth. All rights reserved.
//
#include "Enemy.h"
Enemy::Enemy(const LoaderParams* pParams):SDLGameObject(pParams){
}
void Enemy::update(){
m_x+=1;
m_currentFrame = int((SDL_GetTicks()/1000)% 2);
}
void E... |
4e12e577241b033f81695c673f17c181514a484d | bf5fa529e397307e1027aa185cd10069a45b9764 | /codeforce/1427D.cpp | e15727c29c9c8b12cabed9b5ac04c99e0bbb65d3 | [] | no_license | tjd229/Algorithm | e7324f052a64ec4a4efe9d62a043874e2b6d1e67 | 2754f4687166629768a7fbb5b1ceda744e6186f0 | refs/heads/master | 2022-09-13T23:13:00.272343 | 2022-09-11T07:53:47 | 2022-09-11T07:53:47 | 102,236,930 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,559 | cpp | 1427D.cpp | //implementation, djs
#include <stdio.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <memory.h>
#include <set>
#include <map>
#include <queue>
#include <unordered_map>
#define ll long long
#define pii pair<int,int>
using namespace std;
int c[53],d[53];
int p[53]... |
d419f093167ac20ffa9dae02afe88f5460e6e90e | c97b7dd61e049b95a49d794f077c274b7955cff4 | /server/server/CmdFrame.h | fd45977e8666fcd9a5f3813245f4a8c938ef7268 | [] | no_license | ilvuos/ipc | b341a7b07ae3d03c4ddf385c1839dad29226461a | a23bbbe7d6f1e16610e970e0b81b74a2b478dce9 | refs/heads/master | 2020-06-28T04:50:30.757524 | 2017-07-14T12:35:15 | 2017-07-14T12:35:15 | 97,089,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | h | CmdFrame.h | #pragma once
#include "FrameObject.h"
class CCmdFrame :
public CFrameObject
{
public:
CCmdFrame();
~CCmdFrame();
};
|
922662a1037138704478f71e435faafe08a1ecf7 | e1ad8df32760159d8d48112cb733ca52e917339b | /Source/DataManagement/StateChecker.cpp | 064807ed0432f7883418dda9dbd0d6db480767c7 | [] | no_license | joncode/Montage | b3e2c17194b2863ba2ea2e2b3fb3486faa58e134 | 189f1c4119aeba03ed73c1385d4cfcc3a6c1b662 | refs/heads/master | 2023-04-05T10:54:17.551077 | 2021-03-24T09:37:27 | 2021-03-24T09:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,227 | cpp | StateChecker.cpp | #include "StateChecker.h"
#include <algorithm>
#include <stdexcept>
void StateChecker::checkTypeIsValid(const juce::ValueTree &state,
juce::Identifier identifier)
{
if(!state.hasType(identifier)) {
throw std::invalid_argument("Received ValueTree type must be " +
... |
730d19bc459f469eafec7aeab7a5499dceedec79 | 08d2e2ee0c81e2f27c4362a50980decb891d1bf4 | /C_C++/oop_assignment/contest/week2Contest/first46.cpp | 20d87adcff7984fbd962ad8c2ca632f77b572e01 | [
"Apache-2.0"
] | permissive | oneofsunshine/program_learning | 25712503a31235e7cb57b3a41236191f423d1c7f | 5afc2e5e6e7a6604d4bd9c8e102822e1cf751c0b | refs/heads/master | 2021-09-08T06:07:41.461883 | 2021-09-07T08:18:50 | 2021-09-07T08:18:50 | 111,559,860 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | first46.cpp | #include <iostream>
using namespace std;
class A {
int val;
public:
A(int n) { val = n; }
int GetVal() { return val; }
};
class B: public A {
private:
int val;
public:
B(int n):val(n+2),A(n+4) { }
int GetVal() { return val; }
};
int main() {
B b1(2);
c... |
273cbfa7d7f2888b345626d4327773761a9ae189 | 01103a7d4c2be369eff107a29574ad6c9cd8f22b | /test/testStlVector.cc | 5f08b0cadff89febe1d188542dbbc52d9809b65a | [] | no_license | luffyhwl/ClySTL | c673f0e31a87494621e52ea28c5497e235d54940 | f28cc5c627e125289f34bae50355099da6e4ebfa | refs/heads/master | 2021-05-30T23:52:42.835081 | 2016-03-06T12:52:44 | 2016-03-06T12:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 60 | cc | testStlVector.cc | #include "../Container/vector.h"
int main()
{
return 0;
}
|
761d153fb0a2d0b1db02ef9ab24b51bfb0e98407 | 0805048a435d3f72215dab3850a6deebb0905c9a | /lambda/lambdas.cpp | 05fab86f9a61f30395e52582ad0fea262705b87a | [] | no_license | bbarekas/my-lib | 1888e7ab141af02ffe506b1b7822e7958b4bdcad | 16d4990c23064641daf8b872283e32ef43d2a0cc | refs/heads/main | 2023-04-20T03:50:37.454282 | 2021-05-08T14:57:33 | 2021-05-08T14:57:33 | 357,086,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,111 | cpp | lambdas.cpp | /**
* lamdas.cpp
*
* Created by bbarekas on 14-Apr-21.
*
**/
#include <algorithm>
#include <array>
#include <iostream>
#include <string_view>
#include <functional> // for std::greater
static bool containsNut(std::string_view str) // static means internal linkage in this context
{
//std::prin... |
1d10f151bfacdac18c96810522889b464ee58d28 | 2bd2f7d4d8d5ed017b6f217f33f8c0077250f772 | /list_4.cpp | d5bc50030b5f86891c759133b882d1d098a324a2 | [] | no_license | namdlog/NAL-COS473 | e535c7fe84bd72f05459e40f38182ce23cb9d2d6 | 50383aceec119601fd4e34e9e202708bdca550bb | refs/heads/main | 2023-01-03T15:47:54.545387 | 2020-10-25T16:41:49 | 2020-10-25T16:41:49 | 306,983,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,669 | cpp | list_4.cpp | #include "Matrix.h"
#include "matrix_utils.h"
#include "Function.h"
#include <math.h>
#include <utility>
#include <vector>
#include "interface.h"
#include <algorithm>
using vectors = std::vector<double>;
double derivative(double function(double x), double x)
{
double h = pow(10,-10);
double top = function(... |
0eea93901a076d64cee6fe5dc6fdc79aec4236e8 | 0a4653fe762283a08daba1aca84c03abf81655ad | /Leetcode Daily Challenge/May-2021/08. Super Palindromes.cpp | aa078e3effb91866330d402f5e0120aac6ca037c | [
"MIT"
] | permissive | VanshikaSingh10/DataStructures-Algorithms | d532d4ffaa1599b5af8c9971c366352de1a379ff | ded6796e7fb8520e8e8eb4342e534f370d9c9e9e | refs/heads/master | 2023-08-02T18:28:02.099995 | 2021-10-05T10:49:20 | 2021-10-05T10:49:20 | 413,772,801 | 0 | 0 | MIT | 2021-10-05T10:35:45 | 2021-10-05T10:35:45 | null | UTF-8 | C++ | false | false | 1,951 | cpp | 08. Super Palindromes.cpp | /*
Super Palindromes
=================
Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome.
Given two positive integers left and right represented as strings, return the number of super-palindromes integers in the inclusive range [left, right].
Example ... |
bc17cc0f7a0bc264843038f1ae3ebcd4e3d5d9ae | f0c04d720a27000a3e5b47dd4eb47c3e1ad24edd | /Ryno Engine/Headers/Managers/InputManager.h | 693c2bacc35253e16c499af8f36a3a0f751ab76c | [] | no_license | Ceffa/Ryno-Engine | 30a0d4a7107681eeb4206325bb10bc29f889f059 | 94db0fb654e854eaf79429032aa8c3c0b16452b2 | refs/heads/master | 2020-12-29T18:47:44.865994 | 2018-01-10T10:17:05 | 2018-01-10T10:17:05 | 45,530,828 | 39 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | h | InputManager.h | #pragma once
#include <unordered_map>
#include "Global.h"
#include <GLM/glm.hpp>
#include <GLM/gtx/string_cast.hpp>
#include <SDL\SDL.h>
#define CONTROLLER_DEADZONE 8000
#define CONTROLLER_RANGE 32768
enum InputDevice{ KEYBOARD = 0x00000000, MOUSE = 0x22222222, CONTROLLER = 0x44444444 };
namespace Ryno{
enum In... |
82ac6a47af285970c0f926c9689747cf9e06765f | 06763520a5823ff58a7e79c5ad981e52e1fd8f23 | /test/circuittool.cpp | 09b9dcd9a0b36ffa1452cc483fe004abea3811c0 | [] | no_license | Zeeshan2901/consumer_data_privacy_gca | 1b2df29c613b9ee7927169d692ddfde276aca196 | 466aff67e12c801563aa38a0bfac4488aa755de6 | refs/heads/master | 2022-11-07T02:25:41.981109 | 2020-06-21T20:46:47 | 2020-06-21T20:46:47 | 202,814,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,150 | cpp | circuittool.cpp | #include <emp-tool/emp-tool.h>
#include "dependencies/emp-ag2pc/emp-ag2pc/2pc.h"
using namespace std;
using namespace emp;
const string circuit_file_location = macro_xstr(EMP_CIRCUIT_PATH);
int main(int argc, char** argv) {
/* Edit this string to
* your corresponding input output directory !!
* Hardcoding it t... |
fee41e6536570bcfe7c4d55a7a57e051a6068c63 | 21583026a7c1de0e443e09f1b7575010714c9144 | /include/engine/Physics/Collider/Collider.h | fec318632502ec99cafb2e3a57a582e9f66c155a | [
"MIT"
] | permissive | nocis/Physzy | 23c7c7b6a3ba6fc7aaf88e7d010606d3180dd21c | 0421aa35ca5611c85b0e4ad1679bb161b57a555b | refs/heads/master | 2022-12-17T02:14:34.951330 | 2020-09-22T09:52:28 | 2020-09-22T09:52:59 | 294,249,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | h | Collider.h | //
// Created by jared on 9/15/20.
//
#ifndef PHYSZY_COLLIDER_H
#define PHYSZY_COLLIDER_H
#include <memory>
namespace PHYSZY {
class Collider {
};
using ColliderPtr = std::shared_ptr<Collider>;
}
#endif //PHYSZY_COLLIDER_H
|
79452f5d44312e120c354f3901ae6a6e244aaaa3 | 21a6a551104cab2d913f217963882dfb14338587 | /shaders/shaders.cpp | 2cd446e6e04b36ad259a5234e071a5f8a47bcb34 | [] | no_license | lamiral/Tanks | 636d0d474406ba78324dfbfa04c6b1da870982c4 | 1e89033b26279850250f3d124faaa1418de805b2 | refs/heads/master | 2021-01-19T07:20:22.372345 | 2017-04-07T10:49:37 | 2017-04-07T10:49:37 | 87,536,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,456 | cpp | shaders.cpp | #include "shaders.h"
shaders::shaders()
{
this->program = 0;
vs = 0;
fs = 0;
}
shaders::~shaders()
{
glUseProgram(0);
glDeleteProgram(this->program);
}
void shaders::error_shader(uint &shader)
{
int compile_status = 0;
glGetShaderiv(shader,GL_COMPILE_STATUS,&compile_status);
if(!compile_status)
{
char log... |
fe0f6f19ebe9d366a537d2d6f64f13259d5aa9bc | c9677e540add03dd54a4a113ded4b01569dcce46 | /tools/zax/zax.hpp | bb8911411bb56116328deba86fa7d7ff59a0cd65 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sekuryti/zafl | 6199e84e0c5f4cadc19251ecd92d146665393800 | 691d2c3e78a840bf02b23e1e915c2fac06125fc7 | refs/heads/master | 2023-08-15T18:13:37.642229 | 2021-09-24T17:33:16 | 2021-09-24T17:33:16 | 410,492,586 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,398 | hpp | zax.hpp | // @HEADER_LANG C++
// @HEADER_COMPONENT zafl
// @HEADER_BEGIN
/*
Copyright (c) 2018-2021 Zephyr Software LLC
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
(1) Redistributions of source code must retain the above cop... |
658a3409824e95297e3b4ffe294657ed2b45cf52 | 0a30c611e2d224a2258656a656ae41acd768f348 | /100 Tangerine Juice/Account.h | 4951836f236d2063ca5607e7b5b5368498620b24 | [] | no_license | AzureeDev/100-Tangerine-Juice | 8418bf3df4821eaec31113fa9c2ec37617850f63 | d75215326bcf3e25d20e9a75d27b19ccd4915239 | refs/heads/master | 2023-04-28T15:17:12.174502 | 2019-12-09T12:22:08 | 2019-12-09T12:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | h | Account.h | #pragma once
#include <string>
#include <vector>
using std::string, std::vector, std::stoi;
class Account
{
private:
string accountName = "";
unsigned accountLevel = 0;
unsigned accountExperience = 0;
int accountStars = 0;
string accountFavoriteUnit = "";
public:
void init();
bool accountCreated() const;
str... |
dcb03bad3090c7d92bbf9864635ec5bb367cc8d1 | c7b1d547065896a5959812e549b8eec58e519fc5 | /spilib/program.cpp | 2c69b05aba31c5450bb685ae209ff29da582adbd | [] | no_license | Sebazzz/lsbasi | 413146a3b277cddd7f74b8ff63424e7f28c734b5 | 6112a589672fbde480a0afceeb33eaf510f929b8 | refs/heads/master | 2023-03-12T02:55:38.974666 | 2023-02-25T14:39:04 | 2023-02-25T14:39:04 | 222,300,145 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,582 | cpp | program.cpp | #include "pch.h"
#include "program.h"
#include "ast_node_visitor.h"
ast::program::program(program_identifier id, block_ptr block, token token): ast_node(std::move(token)),
m_identifier(std::move(id)),
... |
a13b7015a368fddf07e6a475753a8cc5893c654b | a696549255433a0d499d7c5dda18d3128ab66055 | /src/clustering/immediate_consistency/remote_replicator_client.hpp | 66b17a15109779da0cace9ab4fc710ae4169c16f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dk-dev/rethinkdb | 90cdfdff672a2693842f779d21d60d87c290a39d | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | refs/heads/next | 2022-03-14T15:43:50.758116 | 2021-11-30T02:49:09 | 2022-02-20T22:47:44 | 12,976,019 | 0 | 0 | Apache-2.0 | 2022-02-21T01:10:42 | 2013-09-20T14:50:36 | C++ | UTF-8 | C++ | false | false | 9,013 | hpp | remote_replicator_client.hpp | // Copyright 2010-2015 RethinkDB, all rights reserved.
#ifndef CLUSTERING_IMMEDIATE_CONSISTENCY_REMOTE_REPLICATOR_CLIENT_HPP_
#define CLUSTERING_IMMEDIATE_CONSISTENCY_REMOTE_REPLICATOR_CLIENT_HPP_
#include <queue>
#include "clustering/generic/registrant.hpp"
#include "clustering/immediate_consistency/backfill_throttl... |
a836a87b7ed7a42a1a044c6bd840dda995642199 | 0b05d9bcf78dc864e8d481ac20fd1714cb9936a0 | /sistemas_distribuidos/client_servidor-cpp/TratadorThread.cpp | 1e481f9fee98ce6e1b71ab9ae39326d638a26900 | [] | no_license | wellington34226/TrabalhosUERJ | 46ddc18c39adb88eb06891f52942aac8560b6fc7 | 762c31a34d5ba60baba6ccd696b4af8d361917cd | refs/heads/master | 2020-04-04T14:25:53.099965 | 2018-11-04T06:13:47 | 2018-11-04T06:13:47 | 155,998,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226 | cpp | TratadorThread.cpp | #include "TratadorThread.hpp"
TratadorThread::TratadorThread(udp_socket::Socket_udp * ssocket,struct sockaddr_in destino,const string mensagem){
ssocket->enviar_msg(&destino,mensagem.c_str(),(size_t)mensagem.length());
}
|
4b14241151844dc9243fe663efac9c4c2b8449b8 | 2581eeb031964fab7f187620de6728a5a82f26a4 | /hideg/gf.cpp | f673011d93f6a8252b09f16add0a07bb2d24d5e6 | [] | no_license | mazonka/code | 396843d0adb7c7c6094238e7282aa29662869ed0 | 736cce5e63da3c53855cde7d10cc2a0f54d7f3b6 | refs/heads/master | 2023-08-16T19:48:36.005642 | 2023-08-09T04:07:14 | 2023-08-09T04:07:14 | 134,244,964 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 13,908 | cpp | gf.cpp |
#include <iostream>
#include <fstream>
#include <sstream>
#include <filesystem>
#include <cstdlib>
#include "gf.h"
#include "olu.h"
#include "hash.h"
#include "gfu.h"
using std::cout;
namespace fs = std::filesystem;
using vs = ivec<string>;
string g_ver = "gf, v1.6.3, Oleg Mazonka 2022-2023";
i... |
f1d3ccda6a6fd7c577646b442d6d831a71bf4b72 | ba3e1a64b6a56469bb89fcb697acf5cbb51a9aca | /2-1/cpp/report_2/2.cpp | f9a2fc6035fdf8ead9b56a200f67aa8ba98760de | [] | no_license | himitery/dankook | c5a2df9c989a31c4470212e7f6165ea4292f0b62 | 9f5208c7d9f2001794c67f4f27f45490ea260d4d | refs/heads/master | 2023-06-08T21:23:22.394774 | 2021-06-27T20:00:39 | 2021-06-27T20:00:39 | 330,082,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,441 | cpp | 2.cpp | #include <cstring>
#include <iostream>
#define DEFAULT_ARRAY_SIZE 80
using namespace std;
int get_array_size(char *arr);
void rev_str(char *);
void rev_str(char *, char *);
int main(int argc, char **argv) {
char str[DEFAULT_ARRAY_SIZE];
char s1[DEFAULT_ARRAY_SIZE], s2[DEFAULT_ARRAY_SIZE];
if (argc >= 2)
... |
c2045951347a814d1a93bc4b3ebea1bf78774a24 | 7b7c1d9dbb9d2da7be522ea3b858066d7c527845 | /Codeforces/1105B - Zuhair and Strings.cpp | b49412ae2b56e044fec3e43671206867cf57a651 | [] | no_license | cyyself/OILife | 97893cf7e1d3de61517b0ddd5e6a064700886667 | 9190e45c6a660bf2e1db6d08d84ddf26eccd85dc | refs/heads/master | 2021-06-03T10:02:33.627522 | 2021-04-17T09:27:49 | 2021-04-17T09:27:49 | 101,148,852 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | cpp | 1105B - Zuhair and Strings.cpp | #include <bits/stdc++.h>
using namespace std;
char s[200005];
int cnt[26];
int pre[200005];
int main() {
int n,k;
scanf("%d%d",&n,&k);
scanf("%s",s+1);
for (int i=1;i<=n;i++) {
if (s[i] == s[i-1]) pre[i] = pre[i-1] + 1;
else pre[i] = 1;
if (pre[i] >= k) {
pre[i] -= k;
cnt[s[i]-'a'] ++;
}
}
int ans =... |
c60ec3f4f280f5d0c45aacab1a6598ecf07b188e | 7d79e79900deb3d8e9aac308457e4aa1137ca6a1 | /subtraction.cpp | 1badc91634a63f54d719b1e09622d989655707b7 | [] | no_license | mramanindia/codechefsoluctions | 47b4986d337f42ad3e3e91bdadf34886e89cc07c | 42e39bb456a57ed28b660a3be4bf5dc708905fcb | refs/heads/master | 2023-03-13T10:08:26.694260 | 2021-03-02T17:18:36 | 2021-03-02T17:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | subtraction.cpp | #include<bits/stdc++.h>
#define Int long long int
using namespace std;
void solve()
{
Int n,k;
cin>>n>>k;
while(k--)
{
if(n%10==0)
{
n=n/10;
}
else
{
n=n-1;
}
}
cout<<n<<endl;
}
int main()
{
solve();
}
|
d34a02d439db5a8cbbab4dc7021f31181feffed4 | 99b7e655672a8bb100394131e5f61917420e34ef | /camera_object.h | bdc7c4c8f2809218f9a6966c6f57c4561cab2b46 | [] | no_license | enneking/raptor_engine | a42749b87ccf14f7a99062bc9c39308cf127e91f | 2d3cb22a4350663e787f9a128a349831a346409a | refs/heads/master | 2020-05-04T21:55:09.780583 | 2019-04-09T22:29:27 | 2019-04-09T22:29:27 | 179,493,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | h | camera_object.h |
#pragma once
#include "update_object.h"
#include "non_copyable.h"
#include "matrices_helpers.h"
#include "observer.h"
class CameraObject : public UpdateObject
{
friend class CameraManager;
public:
CameraObject();
struct TransformMatrices {
Eigen::Matrix4f view_matrix;
Eigen::Matrix4f projection_matr... |
5663ca9ab2f16f4356a7756b5569fc8b23872c64 | b4a12e9d90ead42b5134015dc86b974062ede235 | /main .cpp | 640ab888a174e0e7498cc852ce5491874eda49ba | [] | no_license | ishrat98/sms-spam-detection | b32f5c10e2b1af0a09ea633fa837884380555313 | 2bd423067da20f0c7ffe955860c5774595c8e857 | refs/heads/master | 2018-07-21T00:51:01.545490 | 2018-07-05T12:51:45 | 2018-07-05T12:51:45 | 119,804,625 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,970 | cpp | main .cpp | #include<bits/stdc++.h>
using namespace std;
void makeSmaller(string &s){
int i=0;
while(i!=s.length()){
if(s[i]>='A' && s[i]<='Z'){
s[i] = s[i]+32;
}
else if(s[i]<'A' || (s[i]>'Z' && s[i]<'a') || s[i]>'z'){
s[i]=' ';
}
i++;
}
}
int main(void)
{
vector< map<string,int> >frequency;
vect... |
e25062be904cc627f6a52abda599f5ef2efa40dd | 59aeba8719c713dbd4bf6aba6825fb7516868867 | /Little_Room/Little_Room/Classes/Data/Model/BlockModel.h | d28e3232ae31e2cc8d9217b7034205273c5d4a01 | [] | no_license | SteelBalllRun/workspace | b7bb6d73449d0c4a71f2343e211595c139d9d5e9 | 837fb19b6b352ca034529bc98b1f6b367925ce5d | refs/heads/master | 2016-09-05T20:24:07.318255 | 2013-02-16T05:03:59 | 2013-02-16T05:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | h | BlockModel.h | //
// BlockModel.h
// Little_Room
//
// Created by 舒 方昊 on 13-2-13.
//
//
#ifndef __Little_Room__BlockModel__
#define __Little_Room__BlockModel__
#include <iostream>
#include "cocos2d.h"
typedef enum
{
DIRECTION_0,
DIRECTION_45,
DIRECTION_90,
DIRECTION_135,
DIRECTION_180
}BlockDirection;
clas... |
f98cd6d1d8e44aa0ea96912e601a546221b88671 | 58ef25b9982347ed8a6f62cbe3c724df3c4386c2 | /Dickbutt/Dickbutt/Player.h | 878e85d6c7ac92602cf42191f999af6aaee51853 | [] | no_license | Rahvinsix/TeamSneakyJuice | acad33f7ab6fa3837a721a988d1786b1235fdf69 | fd4b43608b777449c8d38f80fcf9bcb5fa4442ef | refs/heads/master | 2020-12-11T09:26:30.185417 | 2014-01-26T14:10:16 | 2014-01-26T14:10:16 | 16,213,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | h | Player.h | #pragma once
#include "gameobject.h"
#include "Input.h"
class Player :
public GameObject
{
public:
Player(void);
~Player(void);
void Update(float timeElapsed);
bool _playerFacing;
void DrawPlayer(sf::RenderWindow* window);
bool _onLadder;
void VerticalCollision();
void Death(void);
void setSpawn(sf::Vector2f ... |
d05b9dbb4a07a7fd6318c13194a954240f05b2ea | 62a413dcd8c1252b4c8e9e417a43132c609ebe79 | /vSLAM/ch9project/0.2/include/myslam/visual_odometry.h | 574de1540e57c6ffbc8c1b69c9d3f53a4aeb4a41 | [] | no_license | robot-Yang/Ewenwan_vision | edf37aeaac6be65df33f74037817aed3d706b636 | a9b356636988ee920be5933155cd3d7c7559e201 | refs/heads/master | 2020-04-23T22:58:25.300708 | 2019-02-19T15:03:55 | 2019-02-19T15:03:55 | 171,519,603 | 11 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,232 | h | visual_odometry.h | /* myslam::VisualOdometry
* ORB特征点 描述子 汉明字符串距离匹配得到 特征点对
* 其中 一幅图像的2D像素点 根据 深度信息和 相机内参数 转化成 3D点,组成2D-3D点对
* 使用随机采样序列的 PnP算法求解 转换矩阵 根据 符合 转换矩阵的内点数量判断 求解得到的 转换矩阵的好坏
* 把第一帧图像设为 世界坐标系原点
* 以后的每一帧通过 与上一帧的转换矩阵 转换到世界坐标系下
* 根据得到的 转换矩阵,若 旋转向量 和 平移矩阵 的大小都超过一定限度,则认为该帧是一个关键帧
* 保存3D坐标 和 对应的描述子
*/
/*视觉里程记*/
#ifndef VISUALODOM... |
89ea4a7123c63516eafad607e12328760dec22f8 | b5b9e65c9f6ce8686e5358debb33ea5083514d24 | /mainwindow.h | fc98e2a0990fb9926edfcc67e948fe7098188d9a | [] | no_license | UpsadGuo/Snake | e1ba8c5084525df5ec506852578cb5f40b1031cc | 7fa31c15f4c8aa2d86b723584d8dd8d5ac985503 | refs/heads/master | 2021-06-28T11:33:26.359227 | 2017-09-18T14:36:07 | 2017-09-18T14:36:07 | 103,937,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class QGraphicsView;
class QGraphicsScene;
class GameController;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void adjustViewSize();
private:
void initView(... |
a13806e24c6f71c00c9463937e5fac5524b0f83a | 485003035ae6dbab60ffa280de2cde1736123048 | /leetcode/set_matrix_zeroes.cc | ad17c2a765ad01d15c1ae76d8ee2965aa7901bda | [] | no_license | yeyue910107/algorithm | 96d900219ebf86e06b3ee6ca0b558b82155195c4 | 5aa96ab4843cbb6815744042676c84a487193d39 | refs/heads/master | 2021-01-10T01:12:56.529233 | 2014-02-28T13:06:49 | 2014-02-28T13:06:49 | 8,578,205 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | cc | set_matrix_zeroes.cc | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
void setZeroes(vector<vector<int> > &matrix) {
int m = matrix.size();
if (m == 0) return;
int n = matrix[0].size(), mm, nn, i, j;
if (n == 0) return;
bool flag = false;
for (i = 0; i < m; i++) {
for (j = 0; j < n; j++) ... |
e73390a4c74bd32696bd113ae2cf850f1dc0841a | c1e8c2cf8f62b6fbe97d459fb9ce75a150166fa8 | /console/main.cpp | b11aa7b2282dd22e7654a7ff59f4cf8806856fde | [] | no_license | tectronics/light-of-fantasy-console | 4998d76bde4fe2e9c55ecbb941d9d1959ba77ea1 | 131fcc65a7b6b7e29ba95979f6195a80393b836a | refs/heads/master | 2018-01-11T15:17:03.113767 | 2014-06-09T18:11:21 | 2014-06-09T18:11:21 | 47,051,240 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,381 | cpp | main.cpp | //MAIN_CPP
//LAST MODIF 7/12/2008
#include <iostream>
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include "main.h"
#include "CBegin.h"
#include "CCHARACTER.h"
#include "INITIALISATION.h"
//#include "C:/Program Files/CodeBlocks/MinGW/include/SDL.h"
using namespace std;
void credit()
{
... |
31d36e2f6dee6d69bf11986eac31a0c445b6809c | fc00f5bc88817404feed3713e9ac94734f0520fe | /ProvaForms/ProvaForms/ProvaForms.cpp | ac3f26e81a98857a57767dd55f2a12f0e123f225 | [] | no_license | JofreFaraudo/PrimeraWindowsApp | 7565e658fc50375f4d34ca73d614e098c2a30dae | 870c0402c8f0494571e377f24e6504edb4936361 | refs/heads/master | 2020-07-29T00:41:18.715188 | 2019-09-19T16:40:33 | 2019-09-19T16:40:33 | 209,601,548 | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 13,964 | cpp | ProvaForms.cpp | // ProvaForms.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "ProvaForms.h"
#pragma comment(lib, "comctl32.lib") // For toolbar
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
WCHAR szTitle[MAX_LOADSTRING... |
6bfeae0e36ad239d0da5ecace747909de93f20e6 | c44042298a58df2634aa8797ea6a5a4ced61800a | /mainwindow.cpp | 4e6125430b1f1caa25d3141d9542a36688445c6a | [] | no_license | timvisee/ProAmp | edabe5dc177093fa8fc2e2e35d4c24d76be884d3 | a3731aa5b5bfc3d1a2253323f9d62cc8c47eeb9c | refs/heads/master | 2023-08-24T11:43:37.449743 | 2014-07-23T07:37:37 | 2014-07-23T07:37:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "proamp.h"
#include "ui_mainwindow.h"
#include "aboutdialog.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) {
ui->setupUi(this);
// Initialize
this->init();
}
/**
* Initialize the window
* @brief MainWindow::init
* @return True ... |
aa4300fa6aa35725cd81bcd4459ca60c5dd85b07 | e9e6091ac4a262893a152390daccf259b7c7e285 | /KEMField/Source/Interface/Fields/Magnetic/src/KMagnetostaticConstantField.cc | 5092d2b720e333f2118a8e4e312d4a17ec8e3ddd | [] | no_license | wdconinc/Kassiopeia | 10c7568a0e20fc9004c8dfbf4b0cd50e6b3657f2 | b6b742b657b29ce2a9b18a40b14c0f9e1435d802 | refs/heads/main | 2022-08-02T11:17:20.735642 | 2022-05-16T16:05:42 | 2022-05-16T16:05:42 | 234,416,178 | 0 | 0 | null | 2021-04-18T21:02:45 | 2020-01-16T21:33:38 | C++ | UTF-8 | C++ | false | false | 1,253 | cc | KMagnetostaticConstantField.cc | #include "KMagnetostaticConstantField.hh"
namespace KEMField
{
KMagnetostaticConstantField::KMagnetostaticConstantField() = default;
KMagnetostaticConstantField::KMagnetostaticConstantField(const KFieldVector& aField) : fFieldVector(aField) {}
/** We choose A(r) = 1/2 * B x r as the magnetic potential.
* This is a... |
ea9120fdea399f62bccc083408328ecc45a895e6 | 6204fae696932f831d18b77bc1ebcc2cb1bff1df | /spoj/ASSIST.cc | eff16971b0d6e4c8e4dd9ec52d1c60db9e69905c | [] | no_license | Pentagon03/competitive-programming | 3e725bab66ba75f5e8c8489bada41c5ee51fed91 | 8ca7cec0ff7bb7c096d4b8d7100840cef6ae0c99 | refs/heads/master | 2022-11-15T15:36:18.595463 | 2020-07-02T15:27:37 | 2020-07-02T15:27:37 | 287,737,119 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | cc | ASSIST.cc | #include <cstdio>
#include <cstring>
#include <cstdlib>
#define lson (rt<<1)
#define rson (rt<<1|1)
#define mid ((l+r)>>1)
const int MAXN=3005;
const int SIZE=34005;
int tree[SIZE*4];
int tmp[SIZE];
int ans[MAXN];
int N;
void build(int rt, int l, int r)
{
tree[rt]=r-l+1;
if (l==r) return;
build(lson, l, mid);
b... |
b1d4bca219d57771521596537f9dafe541cb21e3 | d9b1c78c5c0f15a91d7b4db7136567a9ec470a2e | /boost/numeric/mtl/operation/operators.hpp | fdc1d89a65a7459320bcd0b36b24cefbc7370ef5 | [
"MTLL"
] | permissive | simunova/mtl4 | eff9f8c0dca66cd2a3a2573b24a287be38f9f02a | 09d8523d59baf5fdec29f3509a63babc2763af4a | refs/heads/master | 2021-06-19T08:36:42.145155 | 2021-03-05T20:58:21 | 2021-03-05T20:58:21 | 177,810,098 | 28 | 18 | null | 2021-03-05T20:58:21 | 2019-03-26T14:53:13 | C++ | UTF-8 | C++ | false | false | 4,505 | hpp | operators.hpp | // Software License for MTL
//
// Copyright (c) 2007 The Trustees of Indiana University.
// 2008 Dresden University of Technology and the Trustees of Indiana University.
// 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and And... |
6efe88406216be606aa9985789cf31486c80cb2e | c2f26903dd9d8d503653def891e7246522302a4a | /Code/QtSupport/QMRCDisplayWidget.cpp | cdbc5ba0fced6770be5b55801f8cd23454615d13 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | limzh00/OpenMBIR-TEM | 6b34f2bf30f15cefd68055292874aa2e3f38f87d | e58618f0709fa51f34c97ca551e47a3a6bbde0bf | refs/heads/master | 2022-04-12T11:03:16.149201 | 2020-04-03T21:37:16 | 2020-04-03T21:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,249 | cpp | QMRCDisplayWidget.cpp | /* ============================================================================
* Copyright (c) 2012 Michael A. Jackson (BlueQuartz Software)
* Copyright (c) 2012 Singanallur Venkatakrishnan (Purdue University)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modificati... |
e47bbe0ee1aca41e0408cea8cd22f1d4ee76b706 | 5d230697f33e198859ed2b8871793e67b5580d07 | /source/activated.cc | 0bb627044c0f6c072027944138afce6beab1d404 | [] | no_license | MuhammadAsiff/Wizardy-Game | 428bb3bdf3d094d7d6be86860794cc123e5b57e4 | 149f61513d5a973ef23e6c3bd0455cf843545b2f | refs/heads/main | 2023-06-07T08:05:17.628575 | 2021-07-06T00:35:16 | 2021-07-06T00:35:16 | 383,296,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cc | activated.cc | #include "activated.h"
using namespace std;
Activated::Activated(string &name, int cost, int owner, string &description, Minion *minion): Ability{name, cost, owner, description, minion} {
type = Type::ActivatedAbility;
}
|
71468e07b103f70b48904d503da69a146a16d2b4 | d8418b2bd7d372439b6b9e96e7fa2c1f4b2418a6 | /PythonBinding/MPM_Grid_Py.cpp | 4b9b75f13efe23583412194b4e446113ab66694d | [] | no_license | Karthikvw/MPM_2D | a0f4503d2b3965112e6dc1e5318fdf682d40bb34 | 240ef6115361a35745f12db454027e64d148aa99 | refs/heads/main | 2023-04-24T07:36:31.192365 | 2021-05-06T18:42:51 | 2021-05-06T18:42:51 | 339,118,811 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,209 | cpp | MPM_Grid_Py.cpp | //C++ header
#include<memory>
#include<iostream>
#include<string>
#include<vector>
#include<array>
#include<iomanip>
//Pybind11 header
#include<pybind11/pybind11.h>
#include<pybind11/iostream.h>
#include<pybind11/numpy.h>
#include<pybind11/stl.h>
namespace py = pybind11;
#include<MPM_Grid.hpp> //Header of th... |
1f759573b7255a715364d3a2507dfed608016808 | 67f7af3488c2d6f1dce6f51c8319c55f8a46d692 | /source/Patient.h | 10c190b75474124dc719296a18ff98fa2589fe2a | [] | no_license | elephantsguideme/SimulationProject | 2e2dc5b76493d3d22cdcf88ec66a22a76a236bf7 | 22ffd7027a044e935f5887ae18b32bcc9c73ac30 | refs/heads/master | 2020-03-13T02:03:30.682472 | 2018-06-20T00:37:17 | 2018-06-20T00:37:17 | 130,916,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | Patient.h | #pragma once
class Patient
{
public:
explicit Patient(int amount_of_blood_needed, int time_of_arrival);
~Patient() = default;
int get_amount_of_blood() const { return amount_of_blood_needed_; }
int get_time_of_arrival() const { return time_of_arrival; }
void DonateBlood() { amount_of_blood_needed_--; }
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.