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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1562ed104aaa5925f337451edcd37a36a8ee3e55 | fcd63f3ea2b39d38c34538291d65afe0530a31f2 | /D2Hackit/Core/GameSendPacketToServer.cpp | 6010cd19e24946ea1be99884f7ac3ae76052c878 | [] | no_license | nooperation/d2es-stuff | 551d0de4e45c85656115515cfa597efad0d364c4 | 2d84c2c3b2ffa7cef367ffc32aae73bda4f6d03c | refs/heads/master | 2023-08-11T07:39:00.647535 | 2023-08-08T05:15:14 | 2023-08-08T05:15:14 | 28,574,701 | 17 | 10 | null | 2023-08-08T05:15:15 | 2014-12-29T00:05:03 | C++ | UTF-8 | C++ | false | false | 1,658 | cpp | GameSendPacketToServer.cpp | //////////////////////////////////////////////////////////////////////
// GameSendPacketToServer.cpp
// -------------------------------------------------------------------
//
// <thohell@home.se>
//////////////////////////////////////////////////////////////////////
#include "D2HackItServer.h"
///////////////////////... |
5de198f6792a50bbd58edc23b85163e6a0058094 | 5b0e18f23d61ed1a9ed293f8816a13cfb786ccfa | /FileDiggerWindows/FileDigger.h | 5a93154436aa5ec343001b5df205ae9e5d0128d3 | [] | no_license | seancam300/filedigger | ff92aebb0f6faed72ad70592ae2f488fb3006a5e | 70ec7997f675ae7657f41343f4f63ad902e1ebaa | refs/heads/master | 2020-12-25T01:05:40.937726 | 2013-03-05T22:00:53 | 2013-03-05T22:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,005 | h | FileDigger.h | /*
FileDigger is a program which takes a directory as input and recursively navigates through all subdirectories
and calls executions on files/directories. FileDigger takes a Shovel as input, which is used to abstract operations
on the directories and files visited during the recursive navigation. A user can impleme... |
bc13fbb16e7207c1738e7d5ad89818b1c36160dc | 9ca6885d197aaf6869e2080901b361b034e4cc37 | /CalibCalorimetry/HcalStandardModules/interface/HcalPedestalsValidation.h | d05f9871764acecea8acf1d5580dde6ab126112e | [] | no_license | ktf/cmssw-migration | 153ff14346b20086f908a370029aa96575a2c51a | 583340dd03481dff673a52a2075c8bb46fa22ac6 | refs/heads/master | 2020-07-25T15:37:45.528173 | 2013-07-11T04:54:56 | 2013-07-11T04:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,179 | h | HcalPedestalsValidation.h | #ifndef UserCode_HcalPedestalsValidation_H
#define UserCode_HcalPedestalsValidation_H
#include "DataFormats/Common/interface/RangeMap.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "RecoTBCalo/HcalPlotter/src/HcalQLPlotAnalAlgos.h"
#include "Data... |
275befa839a21f7c317979cc909405b6fb72b5de | 3dc606b781f43096460b6c9a89879033663116e6 | /hello.cpp | 448e49fb2b7ffb9508be6e536f24a45661af8222 | [] | no_license | bradgrantham/simple_cpu_2014 | 249fcfbbc158ff5e1c6828a49f431435d54e851b | aef91bed73e5cd51188d773442e1aff757271264 | refs/heads/master | 2020-05-16T12:32:54.641107 | 2014-06-10T21:29:52 | 2014-06-10T21:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,335 | cpp | hello.cpp | #include <cassert>
#include <cstdio>
#include <cstring>
#include "simple_cpu_2014.hpp"
#include "util.hpp"
void write_hello_program(memory& m, uint32_t base)
{
using namespace simple_cpu_2014;
uint32_t a = base;
auto append = [&] (uint32_t data) {
m.w(a, data);
a += 4;
};
append... |
38cc0274ebfc41fac252634aa7e09adf1eb70777 | a08f16f650e6158ac719527d15c804988818cbb5 | /Codeforce/joac.cpp | ec50ba1acb9ffcebf2c3a4bac504cb4343b5d29c | [] | no_license | emae18/pc-Key | d2651dad02ce268ea24ab845b8634eeb334515bb | 3b79a3bb16afebcbbda3f27a872e619a82f1ce0a | refs/heads/master | 2020-04-16T09:01:19.009218 | 2020-03-30T04:34:19 | 2020-03-30T04:34:19 | 165,447,519 | 0 | 0 | null | 2020-02-28T05:34:05 | 2019-01-12T23:43:31 | C++ | UTF-8 | C++ | false | false | 1,048 | cpp | joac.cpp | #include<bits/stdc++.h>
#define forin(i,n) for(int i=0;i<(int)n;i++)
using namespace std;
bool vis[100010];
bool vis2[100010];
vector<set<int> > ida(100010);
vector<set<int> > vuelta(100010);
vector<vector<int> > g(100010);
vector<vector<int> > gt(100010);
void dfs(int node,int act){
vis[node]=true;
ida[act].... |
0e6bc75c89ab7298b6133e8df14486476174c9ce | 2d22a2bf8e8588fc1c618ab70bcc3f577593b7ff | /Saturn.cpp | 11241ecebc8cd1357d59506db08ba7c9115287d4 | [] | no_license | shashikiran-sk/SaturnProject | da1a02b46bd97eedb6125a92d916c006ab2ab378 | 37b9dc83fc9f075d2e19103891df603b108ef9af | refs/heads/master | 2021-01-19T09:02:12.714112 | 2015-08-27T17:48:40 | 2015-08-27T17:48:40 | 35,114,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,919 | cpp | Saturn.cpp | #include <iostream>
#include <glut.h>
#include <GL/glu.h>
#include <GL/gl.h>
#include <SOIL.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
using namespace std;
class Planet{
public:
Planet();
GLuint GetTexture(const char *);
void BackGroundTexture();
void LongLat(float);
void Orbit(float, float);
v... |
756e2780660d8e4de947f7787fd4c462e7d517b3 | 5b854a190c2867c70c20d8488a45e3bdb7b6b265 | /C++ for C programmers/Week 4/homework3.cpp | 8f4a2cdb0a4917b15efa6152ba0f9a9427fb4ef8 | [] | no_license | Bhairavi-shah/Coursera_Courses | 57ebda9eb27f7283213b424cf4e709abfa762473 | 79cf12d63cc9ce157a348eef5be41c610042f837 | refs/heads/master | 2022-12-26T19:50:44.293024 | 2020-09-24T02:51:25 | 2020-09-24T02:51:25 | 264,389,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,595 | cpp | homework3.cpp | /* Kruskal's MST Algorithm*/
/* A of edges is maintained. The edges are sorted according to their weights. The least cost edge is
added to the MST if it does not create a cycle.
Each vertex is initially in the set of its own. Thus, we have used a parent[] array for this where,
each vertex is a parent of i... |
450d92fcba57adc58f04970673f22eeacac825c1 | d928143913c7b298b7bc637c2dcfa2ae617229e7 | /src/System/SoundSystem/ALSoundSource.cpp | 80c440de2f8f6a7b8b27616a07596dbffeeef140 | [] | no_license | hackerlank/Mengine | d7e649c29ab6cfd861bd85c75e514939ba7a09d6 | 108491a9ef86946fc4abed0662b0beafbde4fda4 | refs/heads/master | 2021-01-12T06:19:27.136456 | 2016-12-13T00:55:25 | 2016-12-13T00:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,411 | cpp | ALSoundSource.cpp |
#include "ALSoundBuffer.h"
#include "ALSoundBufferStream.h"
#include "ALSoundSource.h"
#include "ALSoundSystem.h"
//////////////////////////////////////////////////////////////////////////
ALSoundSource::ALSoundSource( ALSoundSystem* _soundSystem )
: m_soundBuffer( 0 )
, m_listener( 0 )
, m_alSource( 0 )
... |
7a7dbf4b9b14e6a9b22113112fab764a7d1e9998 | a640b8436bc87a6d346b3534be670bc9f83e3a1d | /BFRPT/main.cpp | ec8895598d221cd4cacc8fd23167d571ba0afaed | [
"Apache-2.0"
] | permissive | Freedom-git996/DataStruct | a5b63b1afffe82a78d86829fd8398421ad37989c | dfa1d4167c606447bf8025955996287e33a118e9 | refs/heads/master | 2022-10-22T15:03:48.483049 | 2020-06-14T05:59:23 | 2020-06-14T05:59:23 | 271,971,660 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,940 | cpp | main.cpp | #include <iostream>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <algorithm>
using namespace std;
const int N = 10005;
int a[N];
//插入排序
void InsertSort(int a[], int l, int r)
{
for(int i = l + 1; i <= r; i++)
{
if(a[i - 1] > a[i])
{
int t = a[i];
... |
1f39def10c88e6f64597a815b39c0bcd08f0f316 | 6b217c91fb859d34e6492dd580705d93a34aac1d | /src/DeviceManager/PCEDeviceManager.h | c2e92c2f78bf2f985791c2d88a47cb0bb860607e | [
"MIT"
] | permissive | hustztz/pointCloudEditor | 962ec79bb9ae144389f2a104d143bceeafee3cd2 | b2f30a6625bfe54f7d0025d52a0f7edc8cf419d7 | refs/heads/master | 2021-01-17T12:59:26.283943 | 2016-08-15T05:27:54 | 2016-08-15T05:27:54 | 65,616,703 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | h | PCEDeviceManager.h | #ifndef _PCEDeviceManager
#define _PCEDeviceManager
//
// Copyright (C) Tingzhu Zhou
//
// File: PCEDeviceManager.h
//
// Dependency Graph Node: PCEDeviceManager
//
// Author: Tingzhu Zhou
//
#include "PCEMacros.h"
//Forwards
class PCEDeviceCacheImp;
// PCEDeviceManager thread class
class PCEDeviceManage... |
f27b9816e1fc2692366d78197a6013e3f0aeb18f | 7fbd9ca81b082f3d7b5d4b41ade2986ef66d7b99 | /landmine.hpp | 3bad8972d4938b7c373dee4c68da1a0d1c966569 | [] | no_license | dingyiyi0226/BoomBoomKing | 7e44d0b62e0e274430911963148203de18b68fe3 | f111af86f0c4d8172607a75df7a72998a9b80e6b | refs/heads/master | 2021-06-25T00:51:08.039507 | 2020-12-12T08:29:06 | 2020-12-12T08:29:06 | 166,642,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | hpp | landmine.hpp | //
// mine.hpp
// boomboomking
//
// Created by dingyiyi on 2017/12/29.
// Copyright © 2017年 dingyiyi. All rights reserved.
//
#ifndef landmine_hpp
#define landmine_hpp
#include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
extern int SCREEN_WIDTH ;
extern int SCREEN_HEIGHT;
extern SDL_Renderer* g... |
b8a08ac039fed5f9409d4cfd8d81910e51cae2de | b53795b88ab0201e48c5dc5737e97dfd27e07b22 | /tools/DumpProto/dump_proto/ItemCSVReader.cpp | 131fbdfbcc13d68916abeaeb238cdd8656aee1b9 | [] | no_license | davidkm2/globalmetin | 9cc63395974eb74b5784a1bf5e733622c7303aa4 | d1a21b549c68e311416544e03ca6218351e12d2f | refs/heads/main | 2023-05-27T08:10:08.506239 | 2021-05-24T01:57:37 | 2021-05-24T01:57:37 | 370,181,109 | 2 | 1 | null | null | null | null | UHC | C++ | false | false | 37,337 | cpp | ItemCSVReader.cpp | #include "ItemCSVReader.h"
#include <math.h>
bool bDebugFlag = false;
void writeDebug(const char* szMsg, int iInput, int type_value)
{
static char __buf[512];
static FILE * f1 = NULL;
if (NULL == f1)
fopen_s(&f1, "debug.log", "a+");
if (type_value)
_snprintf(__buf, sizeof(__buf), "ERROR: (%d->%d) ... |
6c62ecb676b1af3523385ed185d9115b14fe8f48 | 3ab13bc300061353bdb121f20aa8dbf46c0c8c0d | /Source/AnalysisObject.cpp | 7b47cff95a1b4fc95f37a44c4208a0b01de43827 | [] | no_license | kaipyroami/sieve | fa6149c86fb34524ea01d53bd3e138dc355b1bc0 | 1acb1e587c17e5ddaa6126280b00cb36ecede3a2 | refs/heads/master | 2023-03-08T12:12:59.549102 | 2021-02-22T22:07:09 | 2021-02-22T22:07:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,981 | cpp | AnalysisObject.cpp | /*
==============================================================================
AnalysisObject.cpp
Created: 7 Aug 2017 6:59:38pm
Author: Jordie Shier
==============================================================================
*/
#include "AnalysisObject.h"
AnalysisObject::Analysis... |
6cb3c8b7bc355ca9602927d95b7ca2f810943094 | 89d5fb0cd03407bfdf86c25a6843ed0f211afcdc | /graph/worker_helper.cc | 798aea0806e3be14bd0b242e1f3f67213bc1114b | [] | no_license | lidongze0629/GraphAM | 2011daf1011ffc581227ad685bcf487f244825b6 | d0bfd0ea9b1c4177837876c2cedede3b00a51004 | refs/heads/master | 2020-03-19T20:05:12.515064 | 2018-06-21T08:17:33 | 2018-06-21T08:17:33 | 136,887,553 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | cc | worker_helper.cc | #include "graph/worker_helper.h"
namespace graph {
void WorkerHelper::PrintSummary(const WorkerHelper &worker_helper) {
LOG(INFO) << "-----------------------------------";
LOG(INFO) << "query info: " << worker_helper.get_query_info_();
LOG(INFO) << "load graph time: " << worker_helper.get_time_load_graph()
... |
50ea4197a774f394899f4f85a6ddfe275c913f6e | 6b82de44a58ab3a651dfb46bb78640ed6c764a75 | /POS/POS/pos.cpp | 1e235881ab7e1e51b52c44ce773915d6ce42356f | [] | no_license | Konvie/C-warehouse | 47700404873af292cfc687a67a9b43be5bdec294 | 54ec0bc18393658c8e01b72719f49e0fff70bc94 | refs/heads/master | 2023-06-02T01:53:01.671261 | 2021-06-24T13:06:12 | 2021-06-24T13:06:12 | 373,390,047 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 971 | cpp | pos.cpp | #include<iostream>
#include"Commodity.h"
using namespace std;
int main() {
//用户输入产品的upc
cout << "请输入一个商品的信息:" << endl;
char upc[4] = {}; //注意:这里规定了upc的格式为vxx,也就是具有局限性的选择
cin >> upc;
//创建类
CCommodity commodity1;
CCommodity commodity2;
char v01[] = "v01";
char v02[] = "v02";
char name1[] = "彗星";
char name2[]... |
d1eba0d74fb42cf8511168cd1e21984ab3aefec8 | 3ea34c23f90326359c3c64281680a7ee237ff0f2 | /Data/1406/E | b7bfac4b3cd01923068ef397c04d39d2498332a1 | [] | no_license | lcnbr/EM | c6b90c02ba08422809e94882917c87ae81b501a2 | aec19cb6e07e6659786e92db0ccbe4f3d0b6c317 | refs/heads/master | 2023-04-28T20:25:40.955518 | 2020-02-16T23:14:07 | 2020-02-16T23:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80,889 | E | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
... | |
7b88d2541b8b20e5add6c51ecee0094f171b2b04 | f8d76935f342abceff51a90a2844110ac57a4d2e | /solution/srm457_thesquaredivtwo.cpp | 2a243f964901a59581eab8b6cb0d3b55ed1bbaec | [] | no_license | rick-qiu/topcoder | b36cc5bc571f1cbc7be18fdc863a1800deeb5de1 | 04adddbdc49e35e10090d33618be90fc8d3b8e7d | refs/heads/master | 2021-01-01T05:59:41.264459 | 2014-05-22T06:14:43 | 2014-05-22T06:14:43 | 11,315,215 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275,012 | cpp | srm457_thesquaredivtwo.cpp | /*******************************************************************************
* Automatically generated code for TopCode SRM Problem
* Problem URL: http://community.topcoder.com/stat?c=problem_statement&pm=10299
*******************************************************************************/
#include <vector>
... |
4d2fe7ed9198b5d31f24329c0412f55b79907c5e | ec12fa9a16f2ade4eaba79bdaf1492bf755f45db | /markerWS.cxx | 1069e29f85c1bbd006c08941f3df60cbb9ec3bd1 | [] | no_license | richardbeare/IFTwatershed | b95fa2850baf712bc8ca8b3fbbbe6517b7a1f35b | cebde1eb6f6d0a6f4daa7aea061739f7453feec0 | refs/heads/master | 2020-05-15T04:45:43.543898 | 2016-02-10T02:26:34 | 2016-02-10T02:26:34 | 12,100,850 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,412 | cxx | markerWS.cxx | #include <itkGradientMagnitudeRecursiveGaussianImageFilter.h>
#include <itkMorphologicalWatershedFromMarkersImageFilter.h>
#include <itkMorphologicalGradientImageFilter.h>
#include <itkSubtractImageFilter.h>
#include <itkFlatStructuringElement.h>
#include <itkOrientImageFilter.h>
#include "tclap/CmdLine.h"
#include "io... |
93bb2e15818da6bfc1590f60ae71f755e455f741 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/b3/4d271cd1c1f8bb/main.cpp | 470cfe5264718b660ad2e372b28f409cf9fcd34a | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,293 | cpp | main.cpp | #include <iostream>
#include <map>
#include <utility>
#include <string>
#include <tuple>
#include <functional>
class JsonParser
{
using Position = std::string::size_type;
private:
std::string str;
std::string::size_type pos = 0;
bool consume(char expected) {
//... |
7cc715bb8051f03e19354e7935ebad5f92b95a7f | 5fcacbc63db76625cc60ffc9d6ed58a91f134ea4 | /vxl/vxl-1.13.0/contrib/oxl/oxp/oxp_mpeg_codec.h | 081976b673b690b08baead6ad15896a6bdd4e914 | [] | no_license | EasonZhu/rcc | c809956eb13fb732d1b2c8035db177991e3530aa | d230b542fa97da22271b200e3be7441b56786091 | refs/heads/master | 2021-01-15T20:28:26.541784 | 2013-05-14T07:18:12 | 2013-05-14T07:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | h | oxp_mpeg_codec.h | #ifndef oxp_mpeg_codec_h
#define oxp_mpeg_codec_h
//:
// \file
// \author awf
// \date Dec 2001
#include <vcl_string.h>
struct oxp_mpeg_codec_data;
//: Allows user to load MPEG files as vxl video.
// use set_demux if mpeg is a VOB
class oxp_mpeg_codec {
public:
oxp_mpeg_codec();
~oxp_mpeg_codec();
//---------... |
76136542331f73a6fbc92b4bdf2d122034544f52 | 29081733528cf9517561fc216d38381068744fc9 | /main.cpp | e19411627c057af18437b09c3bbe72b63f0db36b | [] | no_license | tsla42/fracop | 3627d8ed4dbf292ab4291d309143b3ad9ec1ebf2 | ab2b362a02beb14ab120ed920b8f26c8cdb49729 | refs/heads/master | 2023-01-11T11:39:30.641383 | 2020-11-03T13:03:33 | 2020-11-03T13:03:33 | 309,684,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | cpp | main.cpp | #include <iostream>
using namespace std;
int gcd(int a, int b) {
a=abs(a);
b=abs(b);
while (a>0 && b>0) {
if (a>b) a=a%b;
else b=b%a;
}
return (a+b) ;
}
int main() {
int N, a1, p1, a2, p2, ar, par;
char oper;
cin >> N;
for (int i=0; i<N; i++) {
cin >> oper >> a1 >> p1 >> a2 >> p2 ;
... |
492115544c4c64aeee5e35b5cb8fde4702879a15 | a6c5e6d41c2f3145b1f37896e2b95115abb39528 | /ElectruxProgLang_Old/src/LangInterpreter/LanguageInterpreter.cpp | 4b54b8b80140865abb77a0214fefa9c43e0bba73 | [
"BSD-3-Clause"
] | permissive | Electrux/CCPP-Code | 08c35d02ac7608c5ff3b97e19eced6b273bcb043 | 3c5e5b866cf050c11bced9651b112eb31dd2465d | refs/heads/master | 2022-03-22T20:53:55.861967 | 2019-12-22T13:27:45 | 2019-12-22T13:27:45 | 111,432,476 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,161 | cpp | LanguageInterpreter.cpp | #include <iostream>
#include <vector>
#include <string>
#include <climits>
#include "../../include/Commands.hpp"
#include "../../include/FileParser.hpp"
#include "../../include/StringFuncs.hpp"
#include "../../include/LangInterpreter/LanguageInterpreter.hpp"
Interpreter::Interpreter( FileParser & parser ) : lines( p... |
71d5b8f3eddd693fe423eae4120d19657850cdc8 | 30cd10efd8b20dbcb17bf3ef2132c57a59149f8e | /Core/BFFT/frutil/error.cpp | da903deb73a0204d4fd45b65520f79c17b46d2c1 | [] | no_license | Black-Forest-Formula-Team/VCU-STM32F767ZI | d7d9249b031eca8f702c40270184e156daa985b7 | ffe92ba199c0fe85670d4f52470944ca7f5f7021 | refs/heads/master | 2023-07-18T06:18:46.672326 | 2021-06-22T21:18:56 | 2021-06-22T21:18:56 | 227,360,309 | 1 | 1 | null | 2021-08-28T13:30:05 | 2019-12-11T12:25:29 | HTML | UTF-8 | C++ | false | false | 161 | cpp | error.cpp | /*
* error.cpp
*
* Created on: 16.09.2020
* Author: Alex
*/
#include "error.hpp"
void error(const char* msg)
{
// TODO: implement.
throw msg;
}
|
a96f142e5fa6bdaa06ff5d082a7cdfefb530fd42 | c6bddd88916e6c8697a9e02485bd22c58d76bcec | /GeneratedPlaceholders/UMG/MovieSceneMarginTrack.cpp | 459ca640bb06c92a5185aa58cca8c807a0af88b5 | [] | no_license | GIRU-GIRU/Mordhau-Unofficial-SDK | 18d13d62d746a838820e387907d13b0a37aed654 | f831d7355cf553b81fb6e82468b3abf68f7955aa | refs/heads/master | 2020-07-06T03:36:48.908227 | 2020-04-22T13:54:00 | 2020-04-22T13:54:00 | 202,872,898 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 36 | cpp | MovieSceneMarginTrack.cpp | #include "MovieSceneMarginTrack.h"
|
012d2e768b0b7bc830b7b11af1e53f54512c81e6 | 19b4aea6c829b272ae29692ccc51f9ab8dcf573f | /src/winrt/impl/Windows.System.Diagnostics.Telemetry.0.h | a1e32a0cba7b012e010e5915f2e976faa8ae3b5f | [
"MIT"
] | permissive | liquidboy/X | 9665573b6e30dff8912ab64a8daf08f9f3176628 | bf94a0af4dd06ab6c66027afdcda88eda0b4ae47 | refs/heads/master | 2022-12-10T17:41:15.490231 | 2021-12-07T01:31:38 | 2021-12-07T01:31:38 | 51,222,325 | 29 | 9 | null | 2021-08-04T21:30:44 | 2016-02-06T21:16:04 | C++ | UTF-8 | C++ | false | false | 6,815 | h | Windows.System.Diagnostics.Telemetry.0.h | // C++/WinRT v1.0.170906.1
// Copyright (c) 2017 Microsoft Corporation. All rights reserved.
#pragma once
WINRT_EXPORT namespace winrt::Windows::System::Diagnostics::Telemetry {
enum class PlatformTelemetryRegistrationStatus : int32_t
{
Success = 0,
SettingsOutOfRange = 1,
UnknownFailure = 2,
};
struct... |
2220ffa23f6429677895bf137d6c8b02b52b51cb | 6e22d7679ebeb092232de6052ced81c7d8ab97a6 | /ISocket/NBServer/Server.cpp | 3ccc85a2c03a830c58a19eeae187efbb26e195ba | [] | no_license | chengguixing/iArt | e3de63161bd91a18522612d6320453431824061d | c2d60e36f2f2a6a04b2188f20e7264cfc5d05dc4 | refs/heads/master | 2021-01-02T09:27:11.010862 | 2014-06-28T12:34:56 | 2014-06-28T12:34:56 | 22,207,953 | 4 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 7,187 | cpp | Server.cpp | #include <winsock2.h>
#include <iostream>
#include <list>
#include "Client.h"
using namespace std;
#pragma comment(lib, "ws2_32.lib")
typedef list<CClient*> CLIENTLIST;
#define SERVERPORT 5556
#define SERVER_SETUP_FAIL 1
#define TIMEFOR_THREAD_EXIT 5000
#define TIMEFOR_THREAD_HELP 1500
#define TIMEFOR_THREAD_SLEE... |
cbf6f16e367116d1773f4ce006bb201810dc7d02 | 1a558156784f8fba83d80ea1e79c4c92efa52748 | /book_chap1.4/UVA10018.cpp | 7a3d13ef967f2fcc973017b2fcaa3a7fd4d697f8 | [] | no_license | guipingxie1/book_problems | b45ca6e6f29757da31fe63b9cd58eca26b07361b | 30083291d0554fc68debee68998821c5c1232b0a | refs/heads/master | 2021-01-09T20:17:15.879380 | 2017-03-05T21:57:37 | 2017-03-05T21:57:37 | 65,775,051 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | UVA10018.cpp | #include <bits/stdc++.h>
using namespace std;
bool is_pali(unsigned int n) {
string s = to_string(n);
int len = s.length();
for (int i = 0; i < len / 2; ++i)
if (s[i] != s[len - i - 1])
return false;
return true;
}
unsigned int add_rev(unsigned int n) {
unsigned int copy = n;
unsigned int rev =... |
cd5911364817c9eb3284c7fd897d6e2a4c9966ed | db9eabd20a64aa424df1ae2976c705eab10ef000 | /shared_lib/include/integrate.hpp | f008ae46586f3a68cca7e5707f6466db262be3f5 | [
"MIT"
] | permissive | trmigor/Acronis | fc35ea356f0941e60035a02ba9d0b8f005dd7986 | d7c47d79495a2c615dd8b577e42534d20f51de42 | refs/heads/main | 2023-01-28T18:06:44.782560 | 2020-12-11T13:47:39 | 2020-12-11T13:47:39 | 184,704,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | hpp | integrate.hpp | // "Copyright [2020] <Taraymovich Igor>"
#ifndef SHARED_LIB_INCLUDE_INTEGRATE_HPP_
#define SHARED_LIB_INCLUDE_INTEGRATE_HPP_
namespace integrate {
typedef double func(double);
double Integrate(func F, double left, double right, double eps);
} // namespace integrate
#endif // SHARED_LIB_INCLUDE_INTEGRATE_HPP_
|
fdf83ffe4afb9af3915cf4609f84d9747f2c18c6 | 90756ae5db7a78aef3d5d2a6fd445c1c3c31ca6d | /Sorting/BubbleSort.h | b2e6d51f212389559161e6b02c515adbb1e0f289 | [] | no_license | alex-levin/Problem-Solving-in-Data-Structures-and-Algorithms-using-Cpp | 9303450f24a3062886c035527643bb60cfda9cd6 | 11491d487919fedec0dc361d5f8cf4acfc83715e | refs/heads/master | 2023-04-03T12:47:03.703587 | 2021-04-17T11:14:09 | 2021-04-17T11:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | h | BubbleSort.h | #pragma once
#include <string>
#include <vector>
#include <iostream>
class BubbleSort
{
private:
std::vector<int>& arr;
bool less(int value1, int value2);
bool more(int value1, int value2);
public:
BubbleSort(std::vector<int> &data);
virtual void sort();
virtual void sort2();
};
|
5d20c7379a33ba027f70f1ed6ba32b0c2ac687f4 | 40ebf653a4219843dbb37e771cc43ec4a28fc982 | /Src/Config/InstanceListDoc.h | 6950c22471cc91e23f1698d74f607065841eeba7 | [
"MIT"
] | permissive | claudiofahey/seriallogger | 66ea152dd4633e9b93210788b812624f10938a4e | 776a4ffad31f359f6243e9302a6f953404a577ca | refs/heads/master | 2021-07-15T22:25:47.667191 | 2017-10-21T20:24:35 | 2017-10-21T20:24:35 | 107,812,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,036 | h | InstanceListDoc.h | /*****************************************************************************
InstanceListDoc.h
Serial Logger Service
Copyright (C) 2002 by Mu-Consulting
The use of this source file is restricted as described in the License.txt
file that accompanies it. Any modififications to this file must retain
this ... |
0d3919e6f7d5d0583fd50a5a11e62c2d7c619dc7 | 7495e64fdc16caa575e8b2822ea42df59b664e5a | /branch/1.0.2/src/protocol/metadata/uploadfilereply.cc | d97d5f07a37894f6a76ec53900efb61f33270ddf | [] | no_license | patrickpclee/codfs | dda6a8668c4e157118c7f7773676d88a2d4b0ffe | f3765f148adaecc1c45b132d2453cc74f7a2712f | refs/heads/master | 2021-01-01T20:06:15.538155 | 2015-03-31T09:45:55 | 2015-03-31T09:45:55 | 26,440,466 | 11 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,383 | cc | uploadfilereply.cc | #include <iostream>
#include "uploadfilereply.hh"
#include "uploadfilerequest.hh"
#include "../../protocol/message.pb.h"
#include "../../common/enums.hh"
#include "../../common/memorypool.hh"
#include "../../common/debug.hh"
UploadFileReplyMsg::UploadFileReplyMsg(Communicator* communicator) :
Message(communicator) ... |
da66dd47ba9f81252aa37208267300301124e7b2 | ccf0d38f0e4e53ba7acddc01fd66c42e248a263c | /org/chartacaeli/caa/CAAVSOP87C_Neptune_jni.cxx | 6c144c86e9ce23b6f878ccfae3fc5ab1f2030447 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | otabuzzman/chartacaeli-app | 28b89c0f4ebb95d92a5a45d18755a0b1bdf6d206 | 881b4cf280a80b3ff7e4ff80f55aafa73607071b | refs/heads/master | 2023-05-10T19:33:30.697791 | 2023-05-05T20:42:59 | 2023-05-05T20:42:59 | 49,746,695 | 2 | 0 | MIT | 2020-11-09T13:31:44 | 2016-01-15T21:45:11 | Java | UTF-8 | C++ | false | false | 2,067 | cxx | CAAVSOP87C_Neptune_jni.cxx | // created by cxxwrap -- DO NOT EDIT
#include "jni.h"
#include "AAVSOP87C_NEP.h"
#ifdef __cplusplus
extern "C" {
#endif
JNIEXPORT jdouble JNICALL Java_org_chartacaeli_caa_CAAVSOP87C_1Neptune__1_1m0(JNIEnv* __env, jclass, jlong __imp, jdouble JD)
{
CAAVSOP87C_Neptune* __obj = (CAAVSOP87C_Neptune*) __imp;
double __retval... |
50edf9a6d5b6ecdf3f4efecb35c2dc42b474f713 | aad28fa1140e713c8591db5a383ac5f6605f743b | /302 Делится ли на 5 и 10/Делится ли на 5 и 10.cpp | 66a737af2f2162a7e2aa0fcb3578aa901025365a | [] | no_license | DaniilMuntyan/Solutions_e-olymp | d7ad45357d4f999c853efefcd47c39bc17e33664 | 7a318572e13f2e6103a2ade49c8ce9c5210caad9 | refs/heads/master | 2021-02-28T15:22:58.506994 | 2020-03-07T21:42:50 | 2020-03-07T21:42:50 | 245,708,666 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | Делится ли на 5 и 10.cpp | #include <bits/stdc++.h>
using namespace std;
#define int long long
main()
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
string s;
cin >> s;
if((s[s.length()-1]-'0')%5 == 0) cout << "Yes" << endl;
else cout << "No" << endl;
if((s[s.length()-1]-'0')%10 == 0)cout << "... |
e46f32b0f82c657e73a3d0c00c98bc3e505bb279 | fdd403309cb95f6ed64f6ff752fcf6632244ab5e | /colon.h | 048f6311ca6e1a5b1e7de9e36956550917bc4633 | [] | no_license | RuibinMa/ColonVisualization | 003ac7b5e942e3b91bca20271b69864e2bca823b | f5950d12fb2617b294d234da08b59a8359a59b24 | refs/heads/master | 2021-07-07T10:15:00.885794 | 2021-05-09T23:47:54 | 2021-05-09T23:47:54 | 76,731,262 | 1 | 1 | null | 2017-09-11T19:12:41 | 2016-12-17T15:24:42 | C++ | UTF-8 | C++ | false | false | 722 | h | colon.h | #ifndef COLON_H
#define COLON_H
#include "object.h"
#include <vtkSmoothPolyDataFilter.h>
#include <vtkDecimatePro.h>
#include <vtkFillHolesFilter.h>
#include <vtkPolyDataConnectivityFilter.h>
#include <vtkExtractSelection.h>
#include <vtkSelection.h>
#include <vtkSelectionNode.h>
class Colon : public Object
{
private... |
cd515e0f558ba2dc417a2bc3b29e2a1e45a22a54 | c69b947d86d17145d772d879f01add25017d3d44 | /v1_2/v1_2.ino | 426c3bdcfbd4d5b1f4ff519d1aa2e2790d52a503 | [] | no_license | unsmec134273/4stYuyuan | 5a12169e88f141cc916a0bca7fcc7da9367d7100 | ea6ef4922a35d94bbc1146ff3c8dd8a319c99c01 | refs/heads/master | 2020-06-13T22:25:59.050754 | 2016-11-28T15:19:59 | 2016-11-28T15:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,779 | ino | v1_2.ino | #include <Arduino.h>
#include "line.h"
#include "motor.h"
#include "remote.h"
#include "sensor.h"
#include "env_val.h"
// #include "HMC5883L.h"
#include <Wire.h>
#include <EEPROM.h>
#include "debug.h"
/*******************各类flag*************/
bool remote_flag=1; //标志遥控状态 1为需要遥控,0为停止遥控
bool car_pos_flag;
bool xunxian... |
6853f6843a2e218b8a1e1e4256d31fd88b95b8d2 | 2b0694f0563192e2d148d130164e94faf3b4e12f | /CppPrimer4th/11/elim-dups.cpp | 38a86e75308a1f4081cf193d4061e8f50743971e | [] | no_license | bxh7425014/BookCode | 4757956275cf540e9996b9064d981f6da75c9602 | 8996b36e689861d55662d15c5db8b0eb498c864b | refs/heads/master | 2020-05-23T00:48:51.430340 | 2017-02-06T01:04:25 | 2017-02-06T01:04:25 | 84,735,079 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,352 | cpp | elim-dups.cpp | /*
* This file contains code from "C++ Primer, Fourth Edition", by Stanley B.
* Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the
* copyright and warranty notices given in that book:
*
* "Copyright (c) 2005 by Objectwrite, Inc., Jose Lajoie, and Barbara E. Moo."
*
*
* "The authors and publis... |
c908ccfe034c40ee51abf25126bdc123c7c15019 | f8bfb5129396a42c2de76adfebc078c0cad11aa5 | /AdventofCode18/headers/Day9.h | e6f267518ff9752bc9e132501560a8fc7204488c | [] | no_license | metinsuloglu/AdventofCode18 | 02ea8e788d22f8e3499f18048a3d7594b7fde172 | 2fe662e1545bca0ce786f02a0536392954ff13f6 | refs/heads/master | 2020-04-09T01:42:01.590692 | 2018-12-31T15:14:58 | 2018-12-31T15:14:58 | 159,913,853 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | Day9.h | //
// Advent of Code 2018
// Day 9: Marble Mania
//
// adventofcode.com
//
// Metin Suloglu, Dec 2018
//
#ifndef Day9_h
#define Day9_h
#include "AoCDay.h"
class Day9 {
public:
static void run(int);
static long maxGameScore(int, int);
};
#endif /* Day9_h */
|
eae50bc81bfca6ae0c53fbdcd3375d8aa457f447 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/waveFoam/firstSuccessfullTest/14.8/p_rgh | c32c97dee3420fa3cd339f7885efc1b44deb8fae | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196,324 | p_rgh | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
f8bb6679564c6a4e61cbe2bc0a3e31ef54c0f8ca | 7dbc16b5310ca2c6c8784cd0d203dad8e89c355b | /Source/BoardGame/BoardGamePlayerController.cpp | a53fe28b1028f8fd6951af548823aec32b4b7048 | [] | no_license | Celito/BoardGame | 70d8e56d46ef34d29ff816175953086b08483e5b | fa78f4445000b240702f7a2c307b4d56eca4f479 | refs/heads/master | 2016-09-03T06:36:34.609099 | 2015-09-25T02:42:43 | 2015-09-25T02:42:43 | 42,142,041 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,726 | cpp | BoardGamePlayerController.cpp | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "BoardGame.h"
#include "BoardGamePlayerController.h"
#include "BoardGameCharacter.h"
#include "AI/Navigation/NavigationSystem.h"
#include "BGCore.h"
#include "BitsManager.h"
ABoardGamePlayerController::ABoardGamePlayerController()
{
bShowMouseCurs... |
e0273756010c153ee01c497a91c20908252e57a3 | 2f0b898dd66ef2e35030a857896fdfca52747d1c | /Codeforces/702/E/e.cpp | 9ee66817c480d0a89fb7e06bf532b642ae7b748d | [] | no_license | DonaldoAyala/cp-solved-problems | b9b3ec27c001606ca73e029d9cb112b6ca6b9e44 | 1772f7815c7f2d59244c9210429113053c18a120 | refs/heads/main | 2023-07-01T10:03:57.405832 | 2021-08-16T01:42:51 | 2021-08-16T01:42:51 | 393,878,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | cpp | e.cpp | #include <bits/stdc++.h>
#define lli long long
using namespace std;
void solve() {
int n; cin >> n;
vector<pair<int,int>> v(n);
for ( int i = 0 ; i < n ; i++ ) {
cin >> v[i].first;
v[i].second = i + 1;
}
sort(v.begin(), v.end());
vector<lli> ps(n + 7);
for ( int i = 0 ; i ... |
0989d7e793fb131fcf92315c7a2b3d926b41363e | 665d5a84fea2df6b3181b0819a0d74bfa93741aa | /sdl_4/Rectangle.cpp | 13cf5aec05c8b6dd2f34955c12e11d3ba649c042 | [] | no_license | csusbdt/202-2017-fall | 8b4b67213f7331a072291130fc3497b687873d9c | 013bfe0efc612a972bbc30813802458bc0eb83d6 | refs/heads/master | 2021-01-01T06:51:53.304168 | 2017-11-30T02:43:02 | 2017-11-30T02:43:02 | 97,531,983 | 1 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | Rectangle.cpp | #include "Rectangle.h"
extern SDL_Renderer * renderer;
Rectangle::Rectangle(double w, double h, double x, double y)
: w(w), h(h), x(x), y(y), dx(0), dy(0), red(255), green(255), blue(255) {
}
void Rectangle::setVelocity(double dx, double dy) {
this->dx = dx;
this->dy = dy;
}
void Rectangle::setColor(unsigned char... |
387a041e176663d8b7de3921a388deb15943f80f | 3a1b0c4b7fb1c06f7e21e8902b0afa1a370ecab6 | /KinectSportStatsGenerator/src/ThreeDStatsGeneration.cpp | bad0608698dc276d52bac0a75064eea55dfbba72 | [] | no_license | Chao-Jiang/TableTennisStatsGeneratorXboxKinect | fd83f4f79e7c4d87a540ecee6524353e48049b26 | a5bf77aa5ee50c99d6d238059f0d818166a04b28 | refs/heads/master | 2021-05-27T10:20:16.253714 | 2013-10-07T16:32:29 | 2013-10-07T16:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,753 | cpp | ThreeDStatsGeneration.cpp | #include "ThreeDStatsGeneration.h"
//#include <Spline.hpp>
// to serve as comparison function object for vector SORT
bool compare3FOnX(cv::Point3f i, cv::Point3f j){ return (i.x < j.x);}
ThreeDStatsGeneration::ThreeDStatsGeneration()
{
m_quadFitX = new QuadCurveFitUtility();
m_quadFitY = new QuadCurveFitUtil... |
8bc08cffe5844b2bcca66e5e1ec04ee7dc735480 | 253d0e0fad18b5b70c8e77092b08d687b07c0802 | /src/util/shared_mutex.h | 5d700010e104a0f49cc330d0a036fc1165a211e3 | [
"MIT"
] | permissive | umr-dbs/mapping-core | bb57c12c54515f0476e0363b44eaaaf761817f72 | 1651e1c1bc887214d9f525536f6bdf79a8c464de | refs/heads/master | 2021-03-24T12:33:56.089250 | 2020-06-25T18:57:30 | 2020-06-25T18:57:30 | 105,520,887 | 0 | 3 | MIT | 2020-06-25T18:57:31 | 2017-10-02T10:05:04 | C++ | UTF-8 | C++ | false | false | 2,516 | h | shared_mutex.h | /**
* These classes implement a shared mutex.
* A shared mutex can be held by either a single exclusive lock, or by multiple shared locks.
* It is most commonly used for synchronization between reader/writer roles.
*
* Several implementations exist:
* - boost::shared_lock, which requires -lboost_system as a runti... |
88cde8ba3d53389933dc440ebb08b09c7aa21588 | 1f96558b386bf95df13d495d65eb8d9eef09c302 | /MCMC/kde.h | f43a832b6b598a2acaaa0195115afd6a59b4c0a0 | [] | no_license | uwssg/ModifiedAPS | 0695c50486c5068650d978b1ecc7bc6337c2b915 | 48bb1ce52fe0cfc07b37e20ffed8ed352efd8e71 | refs/heads/master | 2020-08-27T03:27:23.899289 | 2014-12-07T22:48:17 | 2014-12-07T22:48:17 | 23,408,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | h | kde.h | #ifndef KDE_H
#define KDE_H
#include "../kd.h"
#include "../goto_tools.h"
class kde{
public:
kde();
~kde();
void set_data(array_2d<double>*);
void plot_density(int,double,int,double,double,char*,int);
void plot_density(double,char*);
void plot_boundary(int,double,int,double,double,char*,int)... |
21415a2ce2106627007dabb7e513ce957e1fd7a1 | da67d51959a8d5a7874418657e79aed8206a7c9c | /stream/new.h | 4f4fcc1bfd03baa1848c2fbbe246c423ec37e6d1 | [
"Apache-2.0"
] | permissive | lvan100/cppstream | 5eee7df66c164aa3c1947d63e5f1e2b44b1c0651 | f249def7aa089767ad643fda556a1db7b610c235 | refs/heads/master | 2021-01-11T17:55:23.758632 | 2018-11-16T09:21:31 | 2018-11-16T09:21:31 | 79,875,078 | 2 | 0 | null | 2017-02-05T01:21:13 | 2017-01-24T03:31:32 | C++ | GB18030 | C++ | false | false | 1,822 | h | new.h | #pragma once
#include <stdio.h>
#include <malloc.h>
#include <string.h>
/**
* 内存分配节点
*/
struct MemNode {
/**
* 内存分配所在的函数
*/
char* func = nullptr;
/**
* 内存分配所在的文件
*/
char* file = nullptr;
/**
* 内存分配的位置
*/
void* ptr = nullptr;
/**
* 内存分配的大小
*/
size_t size = 0;
/**
* 内存分配所在的行号
*/
int... |
f0046acdc2376947795a56f24eaf2a0c3838a48d | 18ea78ce66f9381a0a80bb016abf4acc24025b7b | /Algorithms/AlgoEx01.h | 1e073f13a376e9f275f9588cc87655906a9a37d9 | [] | no_license | vnaurora/Coding | 8b06c87b779e342096ac69745796cecdae85f3ad | f3b91e8a4f12bfc188f609f3a614af6bdc62a403 | refs/heads/master | 2020-04-12T06:40:33.663602 | 2017-04-03T17:12:18 | 2017-04-03T17:12:18 | 62,931,947 | 0 | 0 | null | 2017-04-03T17:12:19 | 2016-07-09T04:25:58 | C++ | UTF-8 | C++ | false | false | 3,091 | h | AlgoEx01.h | /**
* @file AlgoEx01.h
*
* Copyright (c) 2016 NHQ.
*
* @brief
* Algorithm exercise codes (part 01)
*/
#ifndef ALGO_EX_01_H
#define ALGO_EX_01_H
#include <utility>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_set>
#include <unordered_map>
struct TreeNode
{
int val;
TreeNode *lef... |
719649ec8e51bbdb94187706d381d190465a1c38 | 67cf5d1d7ea62ca9e7b35c42c042efcf1c77ff36 | /mosixFastProjections/new/ProjImageOut.h | 997d246d230a4bc364bf1571e318bbd1edb234c6 | [
"MIT"
] | permissive | bpass/cegis | d3c84d2d29a084105b4c207391ddc6ace0cdf398 | 6c849e41974b8ff844f78e260de26d644c956afb | refs/heads/master | 2020-04-03T18:57:58.102939 | 2013-04-24T22:07:54 | 2013-04-24T22:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,474 | h | ProjImageOut.h | #ifndef __USGSMOSIX_PROJIAMGEOUT_H_
#define __USGSMOSIX_PROJIMAGEOUT_H_
/*!
*
* \author Mark Schisler
*
* \date $Date: 2005/09/08 16:41:22 $
*
* \version 0.1
*
* \file ProjImageOut.h
*
* \brief Header file for ProjImageOut class.
*
* \note This library is free software and is distributed under
* the ... |
ca345399cfab8f90a3e2f0f606fd38e85f6558d4 | 5849eb43c42ab5086389c573b8a449195af8d559 | /samwidget/glwidget.h | 7c4dc39107285c620bede50d26668fe515bbdc18 | [] | no_license | macetw/tylerlearning | d64e8b9cf3c114cdef315d1d833b97c79f6dc8b9 | ad8fe1fa7b1e25e7f54fb0ed0252cbe10e977f84 | refs/heads/master | 2023-05-13T04:02:04.008020 | 2021-07-12T14:23:29 | 2021-07-12T14:23:29 | 64,959,485 | 0 | 0 | null | 2023-05-01T22:44:15 | 2016-08-04T18:51:53 | C++ | UTF-8 | C++ | false | false | 1,999 | h | glwidget.h | /****************************************************************************
**
** Copyright (C) 2005-2008 Trolltech ASA. All rights reserved.
**
** This file is part of the example classes of the Qt Toolkit.
**
** Licensees holding a valid Qt License Agreement may use this file in
** accordance with the rights, respo... |
0a76663c3c9ace20ca4d060715320bb3da9388f3 | 96a3ca36ab47d4f1d16d16327296fa084faa6d10 | /src/tuto03SimpleVTK/src/jni/main.cxx | 59ef0e7cf83ca3afefc8255414603fb00d5ab0a8 | [] | no_license | FredChamp/JDEV2015 | 9c6691f9e9917aab4d992f561596ee0695a39b7e | 8961db10f4336cdfbddfb14d00458d0c5d23e72d | refs/heads/master | 2021-01-17T06:10:53.136009 | 2016-09-16T09:23:41 | 2016-09-16T09:23:41 | 36,663,761 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,030 | cxx | main.cxx | /*
* Copyright (C) 2010 The Android Open Source Project
*
* 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 l... |
358b32a8fee1a22483859c692fd96ffeec5afee7 | 3da0b0276bc8c3d7d1bcdbabfb0e763a38d3a24c | /zju.finished/2406.cpp | 666abf9a181480a5d257a2a26aebd1c2df868a60 | [] | no_license | usherfu/zoj | 4af6de9798bcb0ffa9dbb7f773b903f630e06617 | 8bb41d209b54292d6f596c5be55babd781610a52 | refs/heads/master | 2021-05-28T11:21:55.965737 | 2009-12-15T07:58:33 | 2009-12-15T07:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,840 | cpp | 2406.cpp | #include<iostream>
using namespace std;
enum {
SIZ = 24,
};
struct Node {
int dis;
int cnt;
int v[SIZ];
};
struct cmp{
bool operator()(Node*l, Node*r) const{
if(l->dis != r->dis)
return l->dis < r->dis;
for(int i=0;i<l->cnt&&i<r->cnt;i++){
if(l->v[i]!=r->v[i])... |
79802a12d11bb2b9e43e73c18e9c55174c248c8a | 272251b2685e16bf073eb70d7b3baebe628a5211 | /wx_sizer/main.cpp | e6b1445587a16fe3bafc801780a91adde95fe465 | [] | no_license | huiliu/Learn | f33bef135fb7109e08a7144bada42231e4de952f | 47456c3b2a2bc97ad30d202bc5c8c7d86586bdfc | refs/heads/master | 2021-01-17T09:36:04.526501 | 2020-10-12T16:34:54 | 2020-10-12T16:34:54 | 41,966,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | cpp | main.cpp | #include "FrameSizer.h"
#include <wx/wx.h>
#include "trie.h"
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
bool MyApp::OnInit()
{
wxFrame* pFrame = new FrameSizer("FrameSizer");
pFrame->Show(true);
return true;
}
IMPLEMENT_APP(MyApp);
|
44b9ec0707ad390ba405f0eb2e2441f1df717bd7 | 180e38a6e5dbb130a4f048d19634560094bbb5ab | /one/day02/string/main.cpp | cdfd8f943d9c59fae7ea113bfd963220425a371d | [] | no_license | grahamitdev/CPlusPlus | ceb743010b68c141d1d913bc55eaa2e2ae264f4f | 593e9ba67037b9985594359af26f3c650c2acb60 | refs/heads/master | 2021-07-05T15:36:56.807614 | 2017-09-28T14:29:06 | 2017-09-28T14:29:06 | 103,336,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
int main(void)
{
string s1;
string s2;
cin >> s1;
cin >> s2;
if(s1 == s2)
{
cout <<s1<<"==" <<s2<<endl;
}
else if(s1 > s2)
{
cout << "s1: "<<s1 <<" Max " << endl;
}
else
{
cout << "s2: " <<s2<<" Max" << endl;
}
if(s1.size()==s2.size())
{... |
ed430a30df6da2a7925fa3a2f8d9879f4db88464 | 4c1c8ff89a121e8c4371beb759643bf943f85bf4 | /BENITO program/robot/receptor_v_06/funcion_movimiento.ino | 1a9aced3a8d3f9756bd0dbb2a52b862999ff343f | [] | no_license | ebludt/BENITO | 6020867eb953170888e6d014e7b6e093b5274e00 | fb56297e20a79ab8fde679323c041717c3be21b8 | refs/heads/master | 2021-06-06T14:44:14.498352 | 2017-04-02T15:05:26 | 2017-04-02T15:05:26 | 29,688,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,418 | ino | funcion_movimiento.ino | //se colocan todas las funciones que afectan al movimiento del vehiculo
// funcion que detiene todos los motores
void alto(){
analogWrite(PinMIF,0);
analogWrite(PinMIR,0);
analogWrite(PinMDF,0);
analogWrite(PinMDR,0);
}
//Funcion que controla el movimiento
void movimiento(){
long vely;
float... |
e0b8b53e4e6266d8b268deb5b9910769735fe378 | 9849167497afec1c2a523c2c7f58a1c2a045d82e | /model/singlechain.cc | 3c310b35dac7b55c6fe930155590ad844082cace | [] | no_license | wendao/polyMC | 49fe231c749d2e5968b179e3825c1a3a3c530541 | 0e9a155c3f307b21160e1ac4f0eea1a9d6a1186d | refs/heads/master | 2021-01-01T15:13:00.913148 | 2015-09-17T06:39:53 | 2015-09-17T06:39:53 | 4,401,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,217 | cc | singlechain.cc |
#include <tools/CReader.hh>
#include <model/singlechain.hh>
#include <tools/math.hh>
#include <cstdio>
#include <cmath>
#define LBOND 1.01
#define LBOND22 (4.0*LBOND*LBOND)
#define RBALL 1.00
#define MIN_D2 1E-6
tools::RandomNumber sc_RG(1950);
using namespace tools;
namespace model
{
SingleChain... |
0be713c0efaead651430f8e2bf27f56530992164 | 09b2ce03a5f729880d514a497da073001abba91d | /inst_combine/example_1/main.cpp | a0ead3082d6b37db493befeb551c1f29775a6738 | [] | no_license | duke-gh/CompilerHintsExamples | d6f3eb25a962f2a6a944714d0c4435052b460809 | ca8ffb3729d48199b7259371c83ba5032c0cca93 | refs/heads/master | 2020-12-19T16:19:58.122061 | 2020-01-23T12:22:27 | 2020-01-23T12:22:27 | 235,787,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | cpp | main.cpp | #include <iostream>
float get_res(float a, float b, float c, float d, float e) {
return a * d + b * e + c * e;
}
int main() {
float a = 500000000.0f;
float b = -500000000.0f;
float c = 1.0f;
std::cout << get_res(a, b, c, 1.0f, 1.0f) << std::endl;
return 0;
} |
99efe9e23ac6f0e93d8980726f6ef2200f2a9875 | 3830afe706fe47f03c3fc6cebb91ae6e91839b86 | /student.cc | e8bf9f83c6dc2896243db9d9b2f64ae255f05342 | [] | no_license | abhinav-kipper/OOP_course | 264ca936e9afec974f0cfbaf51cd0d7d44b228a2 | 424dd2435565a995ed10e75e416ca75f675a1d4c | refs/heads/master | 2020-03-23T10:58:03.063159 | 2018-07-18T18:26:47 | 2018-07-18T18:26:47 | 141,473,771 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,878 | cc | student.cc | #include<iostream>
using namespace std;
class student
{
private:
int marks ;
public:
student()
{
marks=0;
}
student(int m)
{
marks=m;
}
student max(student s1,student s2);
student max(student s1);
student max(student s1,student s2,student s3);
... |
d61f9e2103509133714afa36994d85fc3e93d47a | 63a54bc72b5860fa51117334b80c4e8e027258dd | /SpaceBomber/Linux/game/Errors/game_errors.hh | 47dd7a8d6109306ec0d5beae562549d3a1362a88 | [
"MIT"
] | permissive | Epitech-Strasbourg-CT/Epitech-Computer-Science-School-Projects | b90e12137b56902e2862f956844a64b85164e724 | 43065b7230534a8ba08793dadbf99ce07ac9af3a | refs/heads/master | 2022-02-11T21:59:20.801001 | 2019-08-07T01:16:48 | 2019-08-07T01:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | hh | game_errors.hh | //
// game_errors.hpp for in /home/denesys/rendu/Semestre_4/C++/cpp_indie_studio/game/Errors
//
// Made by Simon Julie
// Login <denesys@epitech.net>
//
// Started on Mon May 16 15:21:51 2016 Simon Julie
// Last update Mon May 16 15:35:09 2016 Simon Julie
//
#ifndef _GAME_ERRORS_HH_
# define _GAME_ERRORS_HH_
#i... |
ca6efbb59d4ffa0d0cc85a3e66368f9f04309e19 | 127b4bb0893d5ca8fb066e9e2d770538240432ea | /yellowfellow-ac/SPOJ/VFMUL/14096807_AC_740ms_843776kB.cpp | 3f35529fc5f762192dfb40a0a27f35b9430599ac | [] | no_license | kuningfellow/Kuburan-CP | 5481f3f7fce9471acd108dc601adc183c9105672 | 2dc8bbc8c18a8746d32a4a20910b717c066d0d41 | refs/heads/master | 2020-04-24T15:13:40.853652 | 2019-12-24T07:21:38 | 2019-12-24T07:21:38 | 172,057,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,326 | cpp | 14096807_AC_740ms_843776kB.cpp | #include <bits/stdc++.h>
using namespace std;
const double pi=acos(-1);
struct comp{
double re;
double im;
comp operator*(const comp& a)const{
comp ret;
ret.re=re*a.re - im*a.im;
ret.im=im*a.re + re*a.im;
return ret;
}
comp operator+(const comp& a)const{
comp ret;
ret.re=re+a.re;
ret.im=im+a.im;
re... |
4a75a8b11648c46efdc6876739d223a5f7c8cf5b | ae57727f03d310af328681a2be1d2bf23817c9bb | /LogicWave/src/lib/UI/ShaderManagement.h | 188508027a1aefaacafa37a2b74d7351ee72642d | [] | no_license | wakewakame/LogicWave | e23d034f9c63a784c28f3c4365f3ae7f503a4e51 | 26094aa418340958a876f710174798b1f82170a1 | refs/heads/master | 2021-01-20T13:56:19.886495 | 2017-07-20T12:26:37 | 2017-07-20T12:26:37 | 90,539,816 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 964 | h | ShaderManagement.h | #pragma once
#include "define.h"
#include <string.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <memory>
//シェーダ管理クラス
class ShaderManagement {
private:
//デフォルトバーテックスシェーダのID
GLuint NormalVertexShaderID;
//デフォルトフラグメントシェーダのID
GLuint NormalFragmentShaderID;
//デフォルトシェーダのID
GLuint NormalProgra... |
14d1d34c6f687da7d637bb2c4c84fa1a267540bc | 44e66a6173127222fe385841921d11441d686002 | /TravellersApp/src/TravelState.cpp | ac9ce36346b4a007e0085f695e9bea774be12584 | [] | no_license | Kalelzar/TravellersApp | 20b118f5046e94526bf858ced1ad7b21dbfa3faa | f9a4a4130d49d4295ad1de36a4107ee6962986bb | refs/heads/master | 2022-10-14T01:51:10.526188 | 2020-06-14T18:18:00 | 2020-06-14T18:18:00 | 267,499,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,686 | cpp | TravelState.cpp | #include "TravelState.hpp"
#include <cstring>
#include <filesystem>
bool Travel::TravelState::login(const char *username, const char *password) {
if (loggedInUser) {
std::cerr << "Already logged in into " << loggedInUser->getName()
<< std::endl;
return true;
}
auto userNameInd = csv.getKey... |
b25feec484fe8c81dafb3b53bd2b9760b3721737 | 26cc428b3d87f0cd0f1a2e6a51e9da25cd0b651a | /upperPosition/Blasius_4/upwind/0.95/p | 76769542e4a2184e3ed405962a785ce004b3df86 | [] | no_license | CagriMetin/BlasiusProblem | 8f4fe708df8f3332d054b233d99a33fbb3c15c2a | 32c4aafd6ddd6ba4c39aef04d01b77a9106125b2 | refs/heads/master | 2020-12-24T19:37:14.665700 | 2016-12-27T19:13:04 | 2016-12-27T19:13:04 | 57,833,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,304 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | |
ea6766eb2dc4440de4f893bb8819016aef2ae5c7 | 3e527475bb2e78a0eaad393c747ab497dbcae198 | /Source/Array.inl | 3c17460d23a96455b73dc4cf18765342f25b3c1d | [] | no_license | griffin-lora/WiiEngine | 6c60affc341482dd644531e2ba89f5b11577768c | 515c0d9eab7c05ecd155732f9e922df7dc7c1aec | refs/heads/master | 2023-08-31T14:58:29.442407 | 2021-08-13T17:52:55 | 2021-08-13T17:52:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | inl | Array.inl | #include "Wii/io.h"
#include "Array.h"
template<typename T>
Array<T>::~Array() {
if (buf != nullptr) {
free(buf);
}
}
template<typename T>
T& Array<T>::operator[](size_t index) {
return buf[index];
}
template<typename T>
T& Array<T>::SafeIndex(size_t index) {
if (index >= size) {
Erro... |
0840c364eb1859919f590e34e43a90f78eaf9524 | 85d388e0d2890d7f0a3ac04ab4f58afb606bcd02 | /CustomerOrder.cpp | 7a00daa52fb29fd1324eb891dc52fa591ed20e55 | [] | no_license | khadinhnguyen/An_Assembly_Line_Simulation_OOP345_Final | 9028e0701b79eb250e59ee76da95856d2a21e72f | d785877ce792d736ede0fcd05efedfedf42a2c2e | refs/heads/master | 2023-05-05T21:51:43.229746 | 2021-03-29T03:25:41 | 2021-03-29T03:25:41 | 347,520,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,620 | cpp | CustomerOrder.cpp | //==============================================
// Name: Kha Nguyen
// Student Number: 165869199
// Email: knguyen93@myseneca.ca
// Date: Mar 21,2021
// I confirm that I am the only author of this file and the content was created entirely by me
//===========================================... |
bfa4106717fcff4e211c10cbda9f77c911bdda26 | 09cf4d5c230e55c246693fe6fb9fe344c15d9750 | /test/gc/gc.cpp | e97b5f97048aa2a037db1be110e0725ab0485845 | [
"ISC"
] | permissive | Gwenio/synafis | c47fc130607fc0a4efac09d34d4fec4646d07648 | 37176e965318ae555fdc542fc87ffb79866f770f | refs/heads/master | 2020-03-19T17:09:15.891340 | 2019-02-26T18:41:21 | 2019-02-26T18:41:21 | 136,746,457 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,693 | cpp | gc.cpp |
/*
ISC License (ISC)
Copyright 2019 Adam Armstrong
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
f9e458a9a126d04d0287c73717fb9fb8e84b173c | fa345d30d723c9cbdb750235c832bb3af635d77f | /FindRightNextNode.cpp | f188b6c07e432ef98b4bb018fe18be0bb7240c3b | [] | no_license | AparnaChinya/100DaysOfCode | 03c50ff1dc7e003f7c3510ee1c40f2c0588021ec | 436ff8302eaeea705d92de4dc8c5a763b84b3348 | refs/heads/master | 2021-07-18T13:24:06.102900 | 2018-12-07T06:04:29 | 2018-12-07T06:04:29 | 72,006,131 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,752 | cpp | FindRightNextNode.cpp | /* 117. Populating Next Right Pointers in Each Node II
Given a binary tree
struct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
}
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL.
Initially, all next po... |
13461b324c743de5e58140c1c67e97fcd317fe6c | 7aa3571da1cf834f9c6b658faf41327efa6e7003 | /src/GridAStarSearch.cpp | 2fe24b495643ddd27c2b9edfe110cbca94836760 | [] | no_license | luuklsl/VRMaze | 0ab71ec5e2bfe50f1f26a8a6e79c5526c828320d | 4e93078f4f07e12c9cd7bf5b0de41dfa1dc602ff | refs/heads/master | 2021-01-11T21:40:43.928942 | 2017-01-25T13:08:41 | 2017-01-25T13:08:41 | 78,832,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,360 | cpp | GridAStarSearch.cpp | ////
//// GridAStartSearch.cpp
//// SearchStragies
////
//// Created by David Stritzl on 08/11/2016.
////
////
////--Luuk Lenders s1568892
////--Luc Schoot Uiterkamp s1555537
//
#include "Grid.hpp"
#include <iostream>
#include "PriorityQueue.hpp"
// score comparison class for priority queue
class FScoreComp... |
2830c30377ba854603ccdff5fe2db027d3b7c6f1 | 1db7be9d64f21f191a5c4099c202d3e631a488f7 | /Common/interface/NtuData.h | bb6d193f43cc24aa498ff394b053296293f6c2e2 | [] | no_license | tpmccauley/NtuAnalysis | 8f3ae275b2dabe48ea65d401baaf78cece8793e7 | d9d826acd73df3ff768897a25aa57221d99448b2 | refs/heads/master | 2021-08-19T20:36:32.491197 | 2020-07-15T09:49:02 | 2020-07-15T09:49:02 | 175,816,436 | 0 | 0 | null | 2019-03-15T12:29:58 | 2019-03-15T12:29:55 | C++ | UTF-8 | C++ | false | false | 651 | h | NtuData.h | #ifndef NtuData_H
#define NtuData_H
#include "NtuAnalysis/Common/interface/NtuUtil.h"
#include "NtuAnalysis/Common/interface/NtuEventHeader.h"
#include <string>
#include <vector>
template<class T>
class NtuData: public NtuUtil<T>,
public virtual NtuEventHeader {
public:
typedef T number;
protec... |
6759f5eabd12d9589c6f9c55a59138d3f71b6f26 | 59b6b0ea4b3700cf4a6db0af6ca5b867e9a35fa5 | /SECTION4_OPERATOR_OVERLOADING/operator2.cpp | 6e5d35d1354edf6d067559b33d73050d3a02063d | [] | no_license | codenuri/CPPBASIC | 7b6da8a8a49620fdf741b5aab606675805920b70 | 05604ff5af3e91e1c7dc06fb00236f72093cf76c | refs/heads/main | 2023-08-17T17:02:48.126041 | 2023-08-08T06:22:10 | 2023-08-08T06:22:10 | 115,345,879 | 10 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | operator2.cpp | class Point
{
int x{0};
int y{0};
public:
Point() = default;
Point(int x, int y) : x{x}, y{y} {}
friend Point operator+(const Point& p1, const Point& p2);
};
Point operator+(const Point& p1, const Point& p2)
{
Point pt{p1.x + p2.x, p1.y + p2.y};
return pt;
}
int main()
{
Point p1{1, 1};
... |
9ecd3b81ce24275b5c520282e2f2d37853563dda | 03136edc42725997484bb62dc66317565b63fe07 | /Sorting/QuickSort/median.cpp | 9e69082a953e7699199a8199e25e5e4642eb263f | [] | no_license | NitinShaily/CEC-Practice_problems | 1a0092bdd0417b16f5ae564cbf7b93d7a67be59b | bbb860cc883f4e87ad9d910de3f45eff49b2f593 | refs/heads/main | 2023-09-01T22:14:41.793218 | 2021-10-07T15:16:59 | 2021-10-07T15:16:59 | 341,974,670 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,157 | cpp | median.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
int partition(int *arr, int l, int r){
int rnd = rand()%(r-l+1)+l;
swap(arr[rnd], arr[r]);
int pivot = arr[r];
int i=l-1, j=l;
for(j=l; j<r; j++ ){
if(arr[j]<=pivot){
i++;
swap(arr[i], arr[j]);
}
... |
2b8a38d6452970ecd17a8863fe623c7b46feb17a | ccb6d2726b7522af43004875e2e233bc1088774a | /carma/pipeline/visBrickReader.cc | f8b55c3324577ede17683c8a30d5ed15f4c3957d | [
"FSFUL"
] | permissive | mpound/carma | a9ab28ed45b3114972d3f72bcc522c0010e80b42 | 9e317271eec071c1a53dca8b11af31320f69417b | refs/heads/master | 2020-06-01T11:43:47.397953 | 2019-06-07T15:05:57 | 2019-06-07T15:05:57 | 190,763,870 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,889 | cc | visBrickReader.cc | // $Id: visBrickReader.cc,v 1.4 2012/08/14 22:03:17 eml Exp $
#include "carma/correlator/lib/CorrelatorBand.h"
#include "carma/correlator/lib/CorrelatorData.h"
#include "carma/correlator/lib/CorrelatorHeader.h"
#include "carma/pipeline/VisBrickReader.h"
#include "carma/util/complexManip.h"
#include "carma/util/ErrorEx... |
876b143356ff082f6559083e505144b79d50972e | bcee5e56a826c3b801414498fa0a91353be6c492 | /src/ftxui/dom/vbox_test.cpp | 770c8d0b495ac78b9f4c1d91ec3032577ca4a964 | [
"MIT"
] | permissive | lineCode/FTXUI | d02dca919124d1733e6ab59eefacaf67d060a4f1 | 0aabc258a947b4a01edffe08b588cb0448308bb6 | refs/heads/master | 2022-07-24T07:32:37.592000 | 2020-05-14T17:12:35 | 2020-05-14T17:12:35 | 265,161,411 | 1 | 0 | MIT | 2020-05-19T06:13:20 | 2020-05-19T06:13:20 | null | UTF-8 | C++ | false | false | 2,000 | cpp | vbox_test.cpp | // Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include "ftxui/dom/elements.hpp"
#include "ftxui/screen/screen.hpp"
#include "gtest/gtest.h"
using namespace ftxui;
using namespace ftxui;
TEST(VBoxTest, Screen... |
4eb04c998b341254cbd1da939eb8af1141dcc16a | 40309eeec624d810a93f833d509f10eb0b36d052 | /Lab 05/lab_05_01_characterUsingBitmapFont.cpp | 9d7eca1df3dfa007e7a93270495b0e13745368ea | [] | no_license | abirAbuAsim/Computer-Graphics-Lab | 95e14f80f8379275b4ebc9ecb0110b089283617d | 04ff521075372bc0cc969408d32c45f84ee17f6c | refs/heads/master | 2021-06-04T00:38:48.491731 | 2016-06-18T17:07:18 | 2016-06-18T17:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | cpp | lab_05_01_characterUsingBitmapFont.cpp | #include<bits/stdc++.h>
#include<graphics.h>
using namespace std;
int main(){
int bitmapA[7][5] = {0, 0, 0, 0, 0,
0, 0, 1, 0, 0,
0, 1, 0, 1, 0,
0, 1, 0, 1, 0,
0, 1, 1, 1, 0,
0, 1, 0, 1, 0,
... |
03715f6ffff373f2313f1464c96cd2a0d8c3f7ed | 79ce1482f0d02355855c0d8e2bfa30ceeb5692d7 | /src/crypto/sha1.cpp | d0f3a304c39c23000750e0b430b13bdd78f81ef3 | [] | no_license | ISusu/node | 613b1ad0cb912bbea9f8e8db38328a9619c91655 | bcda4590c2cd33b38805ddffe1ca676d58adcf22 | refs/heads/master | 2020-04-03T10:05:21.382894 | 2016-06-17T02:33:12 | 2016-06-17T02:33:12 | 61,185,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,154 | cpp | sha1.cpp | /******************************************************************************
* Copyright (C) 671643387@qq.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 Li... |
27132f8e8b7f2823e2d6276eb6b6221d1342526c | b59ea350e86ddc76d844a1cd490aff04272ebe90 | /MFC_SocketChatting/Client/ConnectDlg.h | 60142cf4ae1d844a33a2dd90ec75ca21ebea5e3f | [] | no_license | DONGILHAN/Study | 3526c6c35392f1dfb07c9bb2f275c91d9b718dd8 | 74c231ca33663dcc180d76c00367463b404f808e | refs/heads/main | 2023-04-24T08:56:22.884750 | 2021-05-11T08:41:46 | 2021-05-11T08:41:46 | 356,493,158 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 533 | h | ConnectDlg.h | #pragma once
// CConnectDlg 대화 상자입니다.
class CConnectDlg : public CDialogEx
{
DECLARE_DYNAMIC(CConnectDlg)
public:
CConnectDlg(CWnd* pParent = NULL); // 표준 생성자입니다.
virtual ~CConnectDlg();
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_CONNECT_DLG };
#endif
protected:
virtual voi... |
f9e63de3e18853ba05c00e0a8cf0f8a820982919 | 99ce4468156385f824403db5dadb562f6be9d01b | /src/poutreBase/src/poutreType.cpp | bac77ea0225b7bbe7a4b28f170a46ae5ff9e0fed | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ThomasRetornaz/poutre | 324d0c0171d3f929d835b4d7855dd968cc6066e5 | 21717ce1da24515dd208f711d6e7c38095ba8ecf | refs/heads/master | 2023-01-16T02:41:22.757110 | 2020-11-07T15:03:36 | 2020-11-07T15:03:36 | 194,576,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,180 | cpp | poutreType.cpp | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
//==============================================================================
// Copyright (c) 2015 - Thomas Retornaz ... |
b1cd6a2bc403db3b6ca27f4f2e4979d46d5093b5 | 3441fb8dfe747df1d7d11fe152e98bbe39a9ccab | /CHI_TECH/ChiPhysics/chi_physics_constrdestr.cpp | 4c6f724f876a3b5e275e0efe1ff76807b53a72d5 | [] | no_license | quincy-huhn98/chi-tech | 5a2a247e28c819366a9a773030354c781e458ba0 | fecbb6d8b5d03fdb6fac55da1dd26a4e1438540b | refs/heads/development | 2021-01-09T02:11:27.893645 | 2020-02-04T16:23:35 | 2020-02-04T16:23:35 | 242,212,718 | 0 | 0 | null | 2020-02-21T19:13:21 | 2020-02-21T19:13:21 | null | UTF-8 | C++ | false | false | 778 | cpp | chi_physics_constrdestr.cpp | #include "chi_physics.h"
#include <petscksp.h>
//############################################################################# Default constructor
/** Default constructor.*/
ChiPhysics::ChiPhysics() noexcept
{
this->physicsTimestep=16.66667;
//this->physicsTimestep=1000;
this->physicsTimeCost=0;
for (int k=0;k<10... |
340e4bc30805367988a5c59a451370b20dbd1f11 | 7d9fb41ba445a19384ace2f9a3809c26d6aa2417 | /receiver/accel/accel.ino | 85374843b2ccd65e445d8e05859577a31810ed20 | [] | no_license | froqstar/arduino_sketchbook | 65dbe27684d40670bc9e5abab92cf1d323c60c02 | 43842424aba3a1f9a1e0fcdd20a441bc6b486b03 | refs/heads/master | 2020-06-02T11:52:27.455741 | 2015-11-25T21:47:42 | 2015-11-25T21:47:42 | 25,155,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,871 | ino | accel.ino | // MPU-6050 Short Example Sketch
// By Arduino User JohnChi
// August 17, 2014
// Public Domain
#include<Wire.h>
#define RAD_TO_DEG 57.2958279088
const int MPU=0x68; // I2C address of the MPU-6050
//int AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;
//angles
float angle_x;
float angle_y;
float angle_z;
//calibration values
float... |
22d98b961a7403982587b05fdbbdc982d50c9a37 | a8b2ab984cf02660efce5a7696cd3218d7023883 | /cpp/224.basic-calculator.cpp | ad3420e893a252085ba7cec9772245239c228806 | [
"MIT"
] | permissive | vermouth1992/Leetcode | b445f51de3540ef453fb594f04d5c9d9ad934c0c | 386e794861f37c17cfea0c8baa3f544c8e5ca7a8 | refs/heads/master | 2022-11-07T13:04:00.393597 | 2022-10-28T02:59:22 | 2022-10-28T02:59:22 | 100,220,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,777 | cpp | 224.basic-calculator.cpp | /*
* @lc app=leetcode id=224 lang=cpp
*
* [224] Basic Calculator
*
* https://leetcode.com/problems/basic-calculator/description/
*
* algorithms
* Hard (38.42%)
* Total Accepted: 240K
* Total Submissions: 611.9K
* Testcase Example: '"1 + 1"'
*
* Given a string s representing a valid expression, implemen... |
8e540f7efa34bf11399953bce1786db008b58816 | b232c155fdc64aa070b6e289eb707605a1283100 | /optimizationmethods/src/aboutprogramimpl.cpp | 440be89b15ace623fa0339227ec4743137a2203a | [] | no_license | Eliminationzx/optimizationmethods | a1a14418e41429da06cace035ce4caee1e8a82f6 | d582bab5018a5b7d5c6a50db5487a41f87ef264e | refs/heads/master | 2021-01-01T05:14:46.791159 | 2012-05-14T01:08:21 | 2012-05-14T01:08:21 | 56,564,250 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | aboutprogramimpl.cpp | #include "aboutprogramimpl.h"
#include "licenzodlgimpl.h"
//
aboutProgramImpl::aboutProgramImpl( QWidget * parent, Qt::WFlags f)
: QDialog(parent, f){
setupUi(this);
}
//
void aboutProgramImpl::on_label_4_linkActivated(QString link){
LicenzoDlgImpl * l = new LicenzoDlgImpl(this);
l->resize(900, 600);
l->exec();... |
89f7d979b29e8022f8ff8beff5e52a94e4f90be7 | 90727910959238d5e2057339115302479a266728 | /source/support__bioinformatics.cpp | ef3849b280ca8a07cd57f0336a500ca14a74b965 | [] | no_license | gpnewcomb/uORF_database | b3b96e3e0afbc4f3d6fb87c6f228616ed652e21a | 034e6a426e55f72a56a068502c5f9df7c0686516 | refs/heads/master | 2020-05-30T15:11:41.650718 | 2015-01-17T00:17:05 | 2015-01-17T00:17:05 | 24,239,771 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 75,078 | cpp | support__bioinformatics.cpp | //==============================================================================
// Project : uORF
// Name : support__general.cpp
// Author : Garin Newcomb
// Email : gpnewcomb@live.com
// Version : See "Revision History" below
// Copyright : Copyright 2014 University of Nebraska-Lincoln
/... |
4074fbc4017ce1916b949a1715ab204c3aeb2f5b | 3f3dc430ce4d1fdc07a824d57aba812b422c40aa | /project4/Project4_Marufa.cpp | ade69ce1687b498c1a6ca3e93b1b0fd081735666 | [] | no_license | tasneemasust/Graphics | 2b2bc254170e984a1c620895681b32225cb6c937 | 1cd66ca91a1c400ada445c392d90fc33c8fc30a2 | refs/heads/master | 2021-01-10T02:47:41.022029 | 2016-03-25T22:41:44 | 2016-03-25T22:41:44 | 54,745,394 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 35,687 | cpp | Project4_Marufa.cpp | // Project#4.cpp
// OS : Ubuntu 14.0
// Language: C++
/*
Marufa Rahmi
Std ID: W1128039
Course: COEN 290
*/
/* This program is the 4th project of COEN 290
This program renders four spheres, three planes and a triangle mesh
using recursive ray tracing and Textures mapping.
*/
#include<iostream>
#include<s... |
f6807481fe6824474d397d6c70c738a6f8564626 | 3971d1406e61b98a66662f485502f15979fbaac1 | /Search/binarySearch.cpp | adc0fd8e4cb72f2b316b5b922874965a02fc90fc | [] | no_license | jtj8412/algorithm | 257792ffa5ab3919b11f674404aeea5b731e73ec | aeb5c68328590811bbcee881409dc92a0197885d | refs/heads/main | 2023-08-25T03:16:04.629802 | 2021-10-30T14:38:18 | 2021-10-30T14:38:18 | 405,570,353 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 689 | cpp | binarySearch.cpp | //----------------------------------------------------------------------------------
// [ BinarySearch ]
//
// 시간복잡도: O(log₂n)
//----------------------------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
int logic(int* arr, int n, int val) {
int l = 0, r = n ... |
d6ed19dc81baae40923781dcc2becfae19f37004 | 8da4cb19ce3b5e1b485a4e86766f985deb2f57ee | /Task2_12.h | e734a0102ecf94168de597e2935ff3a4e1465fa3 | [] | no_license | Gradess2019/Learning-Cpp | 9ed9c7bdfacc0ca833de41a9125a64679c9d95bf | ac6e2c0c0c6f20591394e495fa8da2bedd91ca5a | refs/heads/master | 2020-03-12T02:38:03.732079 | 2019-02-12T14:11:32 | 2019-02-12T14:11:32 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 606 | h | Task2_12.h | #pragma once
#include <iostream>
using namespace std;
class Task2_12
{
public:
Task2_12();
~Task2_12();
public: void startTask(){
float decpounds;
int pounds;
float decfrac;
cout << "Введите число десятичных фунтов: ";
cin >> decpounds;
pounds = static_cast<int>(decpounds);
decfrac = (decpounds - pounds)*2.4f... |
c668a0a42b8ca15b49a147cc8605f63b43025693 | 33089e94d5a1719125d04bffcaf28ecf596ba989 | /isabot.cpp | 189ea0c966230428665dd2632f2229270bea9694 | [] | no_license | AdamHostin/ISA2020 | 469b278b8a4e4c5f0ba2cae6b21a3c08fdbfbc01 | 2d633f0086093eb6ea18ff4df30a4044c07d951a | refs/heads/main | 2022-12-23T05:53:39.629115 | 2020-10-01T18:06:13 | 2020-10-01T18:06:13 | 300,377,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,403 | cpp | isabot.cpp | #include "isabot.hpp"
void Print_help(){
printf("description\n");
printf("Program echo messages that are not send by it or other bots in #isa-bot discord chanell\n\n");
printf("options\n");
printf("-v [verbose]\tprints output to terminal (default format \"<channel> - <username>: <message>\")\n");
printf("-t [t... |
575cb29e31267d6dc714c6a32692b0266b085511 | ae2cabd8b4fbf93dc7b1a2dbda457d83f385b90f | /system/core/devmgr/vfs-rpc.cpp | 89fd8698ce452a8ed5105ec9553463a0f3080f24 | [
"BSD-3-Clause",
"MIT"
] | permissive | kangdazhi/zircon | 125c2fba7c5001eabab17cbed5cb8357dc338efb | b52941358da52bd60a71e023e6f3f9719e28264f | refs/heads/master | 2021-08-22T13:29:12.305156 | 2017-11-28T23:19:03 | 2017-11-30T02:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,477 | cpp | vfs-rpc.cpp | // Copyright 2016 The Fuchsia 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 <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <threads.h>
#include <fs/vfs.h>
#include <zircon/device/device.h>
#... |
b28a3cab0e21ffa44319f68b82711bcae701d6b0 | 81bac5701e8aa37a79a2bd767ed64dfebb403005 | /UI mode/eBussiness/clothingshowdialog.h | 08dae617984d09c96f0f2ebf5593f0bcf5d4d6c5 | [] | no_license | Jetereting/Cpp-Course-Design | c5f711f36f7f4fc6c1ac19c4c7f5f1ad83169637 | 59b81fd439d5065c234475925c1e1f757934c93c | refs/heads/master | 2020-04-24T00:56:45.574090 | 2017-12-15T12:11:03 | 2017-12-15T12:11:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | h | clothingshowdialog.h | #ifndef CLOTHINGSHOWDIALOG_H
#define CLOTHINGSHOWDIALOG_H
#include <QDialog>
namespace Ui {
class ClothingShowDialog;
}
class ClothingShowDialog : public QDialog
{
Q_OBJECT
public:
explicit ClothingShowDialog(QWidget *parent = 0);
~ClothingShowDialog();
void output();// 输出表格
private slots:
void... |
6391f8d1dce1d21e0b8d0f9bed35819892ac75f2 | 67f958f7de2352ff8eb02b13ea4719398f114417 | /WinApp-snake/MsgFunctions.cpp | 79401dc9c0abb9015e22928f729663a7a7da55ff | [] | no_license | alvkeke/Gluttonous-Snake | 12a073c5261491230b89b7e204a6ba5262d1b2ca | c5873b45ef19983fe0601cc45355290dd3e23076 | refs/heads/master | 2020-03-26T03:41:20.366761 | 2018-08-12T12:59:08 | 2018-08-12T12:59:08 | 144,466,397 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,823 | cpp | MsgFunctions.cpp | #include "MsgFunctions.h"
#include "Snake.h"
#include "main.h"
snake *s; //A pointer of a snake
food foodNor, foodSpe;
void OnClose(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
PostQuitMessage(0); //Post Quit Message to the Application to exit.
}
void OnCreate(HWND hWnd, UINT msg, WPARAM w... |
d0d6afa4e9f1667051073d0dac82cb1de1de70ad | 721ecafc8ab45066f3661cbde2257f6016f5b3a8 | /spoj/iopc1207.cpp | 0ad2debcd8e33d3f4019ba39fc75ef4659ce29ac | [] | no_license | dr0pdb/competitive | 8651ba9722ec260aeb40ef4faf5698e6ebd75d4b | fd0d17d96f934d1724069c4e737fee37a5874887 | refs/heads/master | 2022-04-08T02:14:39.203196 | 2020-02-15T19:05:38 | 2020-02-15T19:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,328 | cpp | iopc1207.cpp | #include<bits/stdc++.h>
#define FOR(i,a,b) for(long long i = (long long)(a); i < (long long)(b); i++)
#define RFOR(i,a,b) for(long long i = (long long)(a); i >= (long long)(b); i--)
#define MIN3(a,b,c) (a)<(b)?((a)<(c)?(a):(c)):((b)<(c)?(b):(c))
#define MAX(a,b) (a)>(b)?(a):(b)
#define MIN2(a,b) (a)<(b)?(a):(b)
using n... |
1c2c94ff619c2aa657dd199f84339dc9660367b8 | ff61f6b01406ee48e45f567dbda4c5a0c9fdd881 | /Abstract-VM/src/OperandFactory.cpp | 5d8f7ea1432bbe3dffc302b7fbb5b5c3e99aff80 | [] | no_license | pkolomiy/UNIT_Factory | 2f2b63038c9d80222efe50a67b09e09fbe9ef83a | 10720faca0a9a9edddf1002f8bd9149ee1a95cc5 | refs/heads/master | 2021-06-04T15:15:33.613855 | 2020-01-17T22:48:44 | 2020-01-17T22:48:44 | 96,305,960 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,206 | cpp | OperandFactory.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* OperandFactory.cpp :+: :+: :+: ... |
cfa489c47b9fbc0dcd26c7766f1954eaa0d92946 | 6334cd34fdbbde4fcec955ca82e1d87519caf0aa | /floats.cpp | b93af2d2a396f41e858a4a52595a0affb462a62f | [] | no_license | anshul-pinto/Cplusplus | 73a59009a0082f471f09e6dde47e7a88984163a5 | cb8d95daccdee6d9e8ef4f979cc1035a70b2cfb0 | refs/heads/master | 2020-12-28T00:03:55.204015 | 2020-06-04T12:31:39 | 2020-06-04T12:31:39 | 238,114,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 673 | cpp | floats.cpp | #include <iostream>
#include <limits.h>
#include <iomanip>
using namespace std;
int main(){
float val = 12.00756;
cout <<setprecision(9)<< fixed << "Value of pi is :" << val<< endl;
cout <<"size of float is "<< sizeof(val)<<endl;
double val2 = 12.008975322;
cout <<setprecision(15)<< fixed << "Value of pi is :"... |
b3f4049dfa9bdbffffcb4e25a15538a197c41ba1 | 5f4b7850caed77bf1d2ca8d5125dc21099b79209 | /Chapter 6-Data structure basis/$ 6.1.cpp | f4fe14a962a1cea6d2dd63f04926384e574972f6 | [] | no_license | Inuyashaaaaa/IntroductionToAlgorithmicContests | 92720cffae226b6951aa389a14fcaacb94b3c275 | 55c69843f42162ed3b8f661c20f451c1174bfff1 | refs/heads/master | 2020-06-20T00:24:10.893652 | 2020-03-14T06:32:12 | 2020-03-14T06:32:12 | 196,926,192 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,758 | cpp | $ 6.1.cpp | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<queue>
#include<string>
#include<sstream>
#include<cstring>
using namespace std;
int Lockid = 0; //0表示没lock 正整数表示成功执行lock的程序
int var[26];
struct Program {
int id;
int line; //行数
int nowLine; //当前行数
string s[30]; //程序
};
deque<Program> wai... |
384a1f55cb91d5a0f603d956bf321dfb2b25bf06 | 4b221f6da04e251f82b18b50a5a5f2940cf95eaa | /Timus/1247/main.cpp | 331872e9409673883f0ab21b8afe0c67e718604b | [] | no_license | dmikarpoff/CompetProg | 793ea52d7cfc4ad04776caac2ea56be5fe791546 | f95c88f91d31edbb61c92b5b923ce76fe19c6c8b | refs/heads/master | 2023-06-09T11:33:11.456774 | 2023-06-02T22:40:46 | 2023-06-02T22:40:46 | 122,370,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 483 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int s, n;
cin >> s >> n;
int sum = 0;
int min_sum = 0;
for (int i = 0; i < s; ++i)
{
int t;
cin >> t;
sum += t - 1;
if (sum - min_sum > n)
{
// cout << sum << " " << min_sum << " " << n... |
7566bd4dbd5cff38590a89bb9860a5cd9f8de930 | eda62f12ce9358a16ca3489a0a9586a32942c760 | /test/main.cpp | 1b78226aee18bf7a99b2a42705f200d3d29424c9 | [] | no_license | zzh-wisdom/MerkleTree | e8d37a66f333526a599e467de72afa3f41b7a79a | ae93a477602e177bd71096bef0f3948bcec7b6d1 | refs/heads/master | 2023-02-03T13:56:12.817011 | 2020-12-22T05:59:22 | 2020-12-22T05:59:22 | 321,357,449 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,710 | cpp | main.cpp | #include<openssl/sha.h>
#include<string>
#include<math.h>
#include<iostream>
#include "../src/merkle_tree.h"
#include "../util/hash.h"
#include "../util/coding.h"
using namespace std;
/**
* @brief 估计bloom filter需要的hash函数个数
*
* @param m bitset 的大小
* @param n key 的个数
* @return int
*/
int EstimateHashFunNum(int... |
d946cb2617a3906b8c6546009cfb65e37e43cca8 | a21a7caf56134ba0173dd48558fdea2844554810 | /distance.cpp | 1557b7b7d8bc98c3d3eb4f8076ae8fc005299f5d | [] | no_license | luqmanarifin/mersenne-twister | 785929c7a7cfb4764b3632bc1210b3375c9c579c | 8ad25d98a43564bd2974ac9b7b85d7d2b1d52134 | refs/heads/master | 2021-01-01T04:50:48.013880 | 2016-05-22T13:47:51 | 2016-05-22T13:47:51 | 59,348,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | cpp | distance.cpp | #include "twister.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 1e4;
const int mod = N * N;
int dist(int a, int b) {
int ai = a / N;
int aj = a % N;
int bi = b / N;
int bj = b % N;
return (ai - bi)*(ai - bi) + (aj - bj)*(aj - bj);
}
int main() {
srand(time(0));
vector<int> d;
int mi... |
45751769b4ec58cbe781622ada33c078950c51c9 | c57819bebe1a3e1d305ae0cb869cdcc48c7181d1 | /src/qt/src/gui/dialogs/qpagesetupdialog.cpp | ebedcfcca44450feeee052eb6fdec2f2bd251294 | [
"LGPL-2.1-only",
"Qt-LGPL-exception-1.1",
"LicenseRef-scancode-generic-exception",
"GPL-3.0-only",
"GPL-1.0-or-later",
"GFDL-1.3-only",
"BSD-3-Clause"
] | permissive | blowery/phantomjs | 255829570e90a28d1cd597192e20314578ef0276 | f929d2b04a29ff6c3c5b47cd08a8f741b1335c72 | refs/heads/master | 2023-04-08T01:22:35.426692 | 2012-10-11T17:43:24 | 2012-10-11T17:43:24 | 6,177,895 | 1 | 0 | BSD-3-Clause | 2023-04-03T23:09:40 | 2012-10-11T17:39:25 | C++ | UTF-8 | C++ | false | false | 6,299 | cpp | qpagesetupdialog.cpp | /****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... |
6f3f35938bf0504137134b0e13bc816a8c7c0fe6 | 689f2575ddb786278e468a91783115d7520dc87a | /src/Core/Animation/HandleWeight.hpp | 1dd3d019cc7c0d24c0d83b00cf8809477cae903d | [
"Apache-2.0"
] | permissive | RobertL31/Radium-Engine | aff73de343a4c4c8f19bd594b87feb92e934425d | 1356bdac71d2ebb7992809d1c94404e5d5998469 | refs/heads/master | 2022-06-10T10:30:27.880436 | 2020-04-24T09:52:09 | 2020-04-24T14:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,167 | hpp | HandleWeight.hpp | #ifndef HANDLE_WEIGHT_H
#define HANDLE_WEIGHT_H
#include <Core/Containers/AlignedStdVector.hpp>
#include <Core/Types.hpp>
#include <map>
namespace Ra {
namespace Core {
namespace Animation {
// Taken from the ISL. TODO: Keep only one version
using SkinningWeights = std::map<int, float>;
using Weights = std::... |
52ba09eb26cf0f1f795a044cecd071cb1fccae0e | 46ce9e33c14b2b36194dabc7af362b96113cdbf3 | /programers/2020kakao_blind/Parenthesis_conversion.cpp | 89f00e520a295f9bbc5c7b77150532c682eb312e | [] | no_license | dnfwlq8054/coding_test | 23e536d00b925a5c157c99afc4359e56dc321ce8 | 50400908137b50496e35263c0b2c99b8e6a28a3c | refs/heads/master | 2023-08-28T06:15:46.289764 | 2021-10-10T10:36:20 | 2021-10-10T10:36:20 | 292,021,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | cpp | Parenthesis_conversion.cpp | #include <string>
#include <vector>
#include <stack>
using namespace std;
int index;
bool check(const string& p){
int left = 0, right = 0;
bool ret = true;
stack<char> s;
for(int i = 0; i < p.size(); i++){
if(p[i] == '('){
left++;
s.push('(');
}else{
... |
7c3c97ad9869546e5d12227e87295762a3e162e1 | 15b107d7e2f2fad7e056450fd51e5f9f9a582893 | /include/Board.hpp | fa92402c29d91aca2c5217222da7005af6cd1108 | [] | no_license | deck16/SFMLSnake | c76f49933f29de7eedead1141e434780ab5571c7 | 57416d023747db1ec03e305cb4d95be4b78ade9b | refs/heads/master | 2020-04-25T23:20:57.941182 | 2019-03-10T07:01:12 | 2019-03-10T07:01:12 | 173,142,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | hpp | Board.hpp | #pragma once
#include "Graphics.hpp"
#include "Location.hpp"
class Board
{
public:
Board(Graphics& gfx);
void DrawCell(const Location& loc, sf::Color c);
void DrawBorders();
public:
static constexpr int dim = 20;
static constexpr int width = 30;
static constexpr int height = 20;
static cons... |
4c58c45b48422d4db19bff10dca7888c84be44c3 | a418de7c7f9f7d9ab0d7a2c7db5eadb35f85961c | /Underworld/Player.cpp | 24b32b165cf8b6e4a2abd33b0732fe7ebbd5b5b0 | [] | no_license | robbiewoods05/Underworld | 9c82ae00f3c866bec8bbb3148e0e7b403268a8b4 | d1fa0e3918351fbe6fb159ccbc68b63b11d64329 | refs/heads/master | 2021-01-19T17:42:44.165742 | 2012-05-15T17:51:42 | 2012-05-15T17:51:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | cpp | Player.cpp | #include "main.h"
#include "Player.h"
Player::Player()
{
lives = 3;
speed = 5;
x = 0;
y = (HEIGHT - 40);
score = 0;
jumping = false;
gravityDefault = 5.0f; /* Raise this for higher jumps */
gravity = gravityDefault;
jumpVelocity = 0.2f;
}
void Player::draw()
{
al_draw_filled_rectangle(x, y, x + 40, y + 40, ... |
d1f2618a955fac2d9d9b966ff8823a35c509cd67 | 8f2e84e1e495ea2f71ee4802e801f3d189dbc5fb | /DesignPattern/DesignPattern/Strategy.cpp | a23b2834cfdb3785319b953941afcf6306d69745 | [] | no_license | sxhkit/DesignPattern | ace786f7359160462c7669e3e95c43cec0620279 | 40781e17837155e6c454dedec7fc1789a77ee252 | refs/heads/master | 2021-01-22T23:48:51.708962 | 2017-04-13T07:15:27 | 2017-04-13T07:15:27 | 85,672,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | cpp | Strategy.cpp | #include "Strategy.h"
StrategyA::StrategyA()
{
}
StrategyA::~StrategyA()
{
}
void StrategyA::Operator(){
printf("use Strategy A!\n");
}
StrategyB::StrategyB() {
}
StrategyB::~StrategyB()
{
}
void StrategyB::Operator()
{
printf("use Strategy B!\n");
}
NewSence::NewSence(Strategy * s)
{
_strategy = s;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.