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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25bad15a3b618a3089ad6116fbf797933a20fffc | 9396d9fb0d28de2d126061caff9ad7a8704d2464 | /TSorter.cpp | 0ce48928aca699ef6f73a994f05c642630b4d1d8 | [] | no_license | mmerali1/CS240-Lab5-TemplatedSorters | 8dfd58be3cdbc6d51fa8017f3389d34ec5f7355c | 7834cf83519f2259ebbc0d0baaa381d55f9ae7ee | refs/heads/master | 2021-07-16T16:37:19.341292 | 2017-10-20T17:47:01 | 2017-10-20T17:47:01 | 107,708,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,570 | cpp | TSorter.cpp | #include <iostream>
using namespace std;
#include "TSorter.h"
template <class T>
void TSorter<T>::swap(typename vector<T>::iterator i, typename vector<T>::iterator j) {
T tmp;
tmp = *i;
*i = *j;
*j = tmp;
return;
}
template <class T>
TSorter<T>::TSorter() {
numElements = vec.size();
}
template <class... |
207a78a7c683247af371896c5b3912f3e4b57b5c | b28a4f0231dceec2a8c083f7a9a6bf5e739e1f93 | /src/statslab.hpp | c8d209f958c3f3733142d4de572e6df432689d96 | [
"MIT"
] | permissive | apetcho/statslab | e6bd865faeea7010859c04d62b9cd4bc4d20d5e2 | f3ba97bd8712ca02289e30feeaf8f1d6ff0c65ac | refs/heads/master | 2023-04-22T06:43:07.752236 | 2021-04-24T17:54:26 | 2021-04-24T17:54:26 | 314,516,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,395 | hpp | statslab.hpp | #ifndef _STATSLAB_H
#define _STATSLAB_H
#include<valarray>
#include<vector>
#include<array>
#include<string>
#include<exception>
#include<list>
namespace statslab {
class NormalDist; // forward declaration
class CenterInfo;
class DispersionInfo;
class ShapeInfo;
class SummaryTable;
class DescStats{
friend clas... |
e0274122de22ed8e34fbb4d05161d8ec14831f12 | 4a080d82d7819e4390f17d9e2c982e8a3ab50f63 | /ecoo14_S2_scratch.cpp | 54a979a322e58488f82cb3408d51b3a416ce8bdf | [] | no_license | qhadron/contest-solutions | dae8b1f8162618d9109b51015964f380311cd0c7 | 5f715e49777cbca6f334d476e0fb02788b8e9783 | refs/heads/master | 2021-01-10T04:44:27.300319 | 2016-01-11T23:20:56 | 2016-01-11T23:20:56 | 49,460,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,508 | cpp | ecoo14_S2_scratch.cpp | #include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int type[10] = {1,2,5,10,50,100,1000,10000,500000,1000000};
int main() {
char c;
int data[9];
int cnt[10];
for (int testcase = 0; testcase < 10; testcase++) {
memset(data,0,sizeof(data));
memset(cnt,0,sizeof(cn... |
473587040acda5b0fd7bf7f81b0442140df9ae4d | 5f77fc108cc12fcc99df01a64c1a52285ccab4fe | /okulprojesi/analiz/analiz_siniflari/ogrenci_analiz.cpp | 277f93ffc988524fcf082a7de6eb25d573dcfa5e | [] | no_license | RamazanBozkurt/OkulOtomasyonu | 2e44b0032df4af1f9602eb1b038154cea2f277ff | e4a1ddccf29e0b5ee1dac1193dfd987ada9e795f | refs/heads/main | 2023-03-25T22:04:11.219479 | 2021-03-28T12:52:35 | 2021-03-28T12:52:35 | 323,713,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,643 | cpp | ogrenci_analiz.cpp | #include "ogrenci_analiz.h"
#include <veritabani.h>
#include <QtMath>
ogrenci_analiz::ogrenci_analiz(QObject *parent) : QObject(parent){}
void ogrenci_analiz::Hesapla()
{ _analizSonucListesi.clear();
auto ogrenciler = VeriTabani::veritabani().ogrenci().ara([](OgrenciProfil::ptr){return true;});
... |
2165b067191633f817f88a32a14be73efa4e8115 | b31b9b6f3d47a845cfb2e2e4025d960862235882 | /Source/KitchenGuardians/SaveGameKitchenGuardian.cpp | ef6af48c3fe7c466918439c462c87e56d5920e1c | [] | no_license | Xazen/KitchenGuardians | 7b746e7e3e2c4f3ba37f04788abf668e2b2afaaf | d5e16d1d37d96fa27f6db9369548283673b17dca | refs/heads/master | 2021-06-19T16:29:12.579236 | 2016-07-24T18:33:30 | 2016-07-24T18:33:30 | 34,900,394 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,021 | cpp | SaveGameKitchenGuardian.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "KitchenGuardians.h"
#include "SaveGameKitchenGuardian.h"
USaveGameKitchenGuardian::USaveGameKitchenGuardian(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
wasRestart = false;
}
void USaveGameKitchen... |
3fbee3a90d52607a6e0e621e96a4943947eef72b | 4c02806175a78eba1b6e4b6115f3e4f17d4a5bae | /src/Tokenizer.cpp | f5f42d3efdea36bc51ad744b886c97cd975a4fc7 | [
"BSD-3-Clause"
] | permissive | A1-Triard/fetlang | c88322eae0ea3589f732796c7a0c0e0d6b332b12 | ee31da66b9b01f5ffe827958140baa6ed2a10081 | refs/heads/master | 2022-06-05T04:22:26.584869 | 2021-12-18T16:17:32 | 2021-12-18T16:47:37 | 117,335,134 | 1 | 0 | null | 2018-01-13T10:38:22 | 2018-01-13T10:38:22 | null | UTF-8 | C++ | false | false | 10,019 | cpp | Tokenizer.cpp | #include "Tokenizer.h"
#include <algorithm>
#include <sstream>
#include "FetlangManager.h"
#include "FractionParser.h"
Tokenizer::Tokenizer(const std::string& code) {
this->code = code;
have_tokenized = false;
}
std::vector<Token> Tokenizer::splitCode() {
std::vector<Token> tokens;
std::string token = "";
// R... |
53715bbe1681841b776fe0e2ccc76b533c091c3f | 13971e68bec98c2ced9869b6b7e8dac517c0a5ce | /Lab03/mergesort(1).cpp | 970e7533c7bad15e32c0e5be48b93787eece70f6 | [] | no_license | jaredml/CSE100 | da912496aafe6b97936c8668759288ccbc3b04e2 | 6358a7d95f65774ec0ec442ccdb006986b1a7b15 | refs/heads/master | 2021-01-10T23:03:58.571289 | 2017-03-15T18:03:19 | 2017-03-15T18:03:19 | 70,428,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | cpp | mergesort(1).cpp | //mergesort
#include <iostream>
using namespace std;
template <class T>
void merge_sort(T array[],int beg, int end){
if (beg == end){
return;
}
int mid = (beg+end)/2;
merge_sort(array,beg,mid);
merge_sort(array,mid+1,end);
int i = beg,j = mid+1;
int l = end-beg+1;
... |
ce379be6fedb92d35582cc6b4960dc78317da414 | 27c75711bbe10b3120c158971bb4e830af0c33e8 | /AsZ/2015.08.20/H.cpp | fb3879b4a6fe92cab4c606c0a05488e0c6697ead | [] | no_license | yl3i/ACM | 9d2f7a6f3faff905eb2ed6854c2dbf040a002372 | 29bb023cb13489bda7626f8105756ef64f89674f | refs/heads/master | 2021-05-22T02:00:56.486698 | 2020-04-04T05:45:10 | 2020-04-04T05:45:10 | 252,918,033 | 0 | 0 | null | 2020-04-04T05:36:11 | 2020-04-04T05:36:11 | null | UTF-8 | C++ | false | false | 827 | cpp | H.cpp | #include <bits/stdc++.h>
using namespace std;
const long long oo = (long long) 1e18;
long long ans;
typedef long long ll;
ll dfs(ll L, ll R)
{
if (R > ans) return oo;
if (L == 0) return R;
if (L < 0) return oo;
// cout << R;
if (R - L + 1 > L + 1)
return oo;
ll nl, nr, tmp = oo;
//lson
nl... |
2e95b5ca58ef9bfe0374aae7c3ef6471da1c55a1 | e91b7432ac78b5aae4d9b47d1d23fbe71e39f08f | /src/yars/configuration/xsd/graphviz/graph/XsdRegularExpressionGraphNode.h | 0100ed9969c995be9abbc76fe03382e50f73e3c7 | [
"MIT"
] | permissive | kzahedi/YARS | 90818b69c3fee12b3812b52f722ac52b728f064b | 48d9fe4178d699fba38114d3b299a228da41293d | refs/heads/master | 2020-05-21T03:29:48.826895 | 2019-04-24T13:44:25 | 2019-04-24T13:44:25 | 64,328,589 | 4 | 1 | null | 2017-02-23T19:55:08 | 2016-07-27T17:30:54 | C++ | UTF-8 | C++ | false | false | 745 | h | XsdRegularExpressionGraphNode.h | #ifndef __XSD_REGULAR_EXPRESSION_GRAPH_NODE_H__
#define __XSD_REGULAR_EXPRESSION_GRAPH_NODE_H__
#include <yars/configuration/xsd/graphviz/graph/XsdGraphNode.h>
#include <yars/configuration/xsd/specification/XsdRegularExpression.h>
#include <string>
#include <sstream>
using namespace std;
class XsdRegularExpressionG... |
997fe86bca315abb7576bc3a094a2128b23a7605 | 816387bfc88fd5832ee12715ec6f8ad4e3a721ee | /SearchingSorting/104SquareRoor.cpp | 8119728a6c32194bd4670f2a8d3ae51c937a2067 | [] | no_license | Siriayanur/DSA | 2710163f93e65878d0985307cc838128bfcfb8f5 | 11679a585b2aec2d5b1eeefb97e469ac6f95ef84 | refs/heads/master | 2023-06-18T04:54:38.886743 | 2021-07-17T12:37:50 | 2021-07-17T12:37:50 | 314,945,846 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | 104SquareRoor.cpp | #include <iostream>
#include <math.h>
using namespace std;
class Solution
{
public:
int countSquares(int n)
{
// code here
float a = sqrt(n);
if (floor(a) == a)
{
return a - 1;
}
return a;
}
}; |
3f490a742e21992b746f5c049a6586adf76a9e82 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/mutt/gumtree/mutt_repos_function_1463.cpp | cab7e231834427f7d90880771448163cf36f9f8b | [] | 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 | 142 | cpp | mutt_repos_function_1463.cpp | static int crypt_mod_pgp_check_traditional (FILE *fp, BODY *b, int tagged_only)
{
return pgp_gpgme_check_traditional (fp, b, tagged_only);
} |
2747321a52f52115c8e1f22dd43c59ea1f5c81b8 | 6c9c5133fb5328fc63d7c981077cf93d63901116 | /src/interconnect/test/TestScanRequest.h | 20dc623d1624ce61a3351dcae69856d8b5f88676 | [] | no_license | phrocker/BjarneClient | c6f41b2811376f9cb63d4aed8d96c650b1ac9579 | 7d8001140b141631f241e2053b9ea0f80081ba3e | refs/heads/master | 2021-01-20T11:44:19.555301 | 2017-02-02T16:38:44 | 2017-02-02T16:38:44 | 5,772,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,907 | h | TestScanRequest.h | /**
* Hello, this is BjarneClient, a free and open implementation of Accumulo
* and big table. This is meant to be the client that accesses Accumulo
* and BjarneTable -- the C++ implemenation of Accumulo. Copyright (C)
* 2013 -- BinaryStream LLC
*
* This program is free software: you can redistribute it and/or mo... |
10fb380ce07cd389d7bc7d42172b3525d536676f | 9c5ed15b94f72a1c8d61cdc4d817ef41ea0e4edd | /2016/January-June/sudest/main.cpp | 9cf42159cd800abc4585ca0ee88d8285c43e7648 | [] | no_license | caprariuap/infoarena | 6a2e74aa61472b4f9d429ad03710726d60856324 | a3a740d2c179f21b7177e5422072dfa61033437e | refs/heads/master | 2020-04-04T21:28:32.588930 | 2018-11-05T22:14:52 | 2018-11-05T22:14:52 | 156,287,370 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | cpp | main.cpp | #include <fstream>
using namespace std;
ifstream fin("sudest.in");
ofstream fout("sudest.out");
short n,a[102][102],nrpasi,pas[200];
struct pasii{short cx,cy;};pasii solutie[200],curent[200];
short p[102][102];
int dx[]={0,1};
int dy[]={1,0};
short smax;
short s;
int interior(int x,int y)
{if (x>=1&&x<=n&&y>=1&&y<=n)
r... |
ec85fb15a96b6c7b10026864693c3182f8650324 | d415e0e611c1aef5cc349c99e870623ed80117fd | /Pacote-Download/ProgramasVS/VariaveisLocais/VariavelLocalEscopo.cpp | c3cabf1f38870995a667eb0efeca040857c67665 | [
"MIT"
] | permissive | julianerf/CursoCpp | eb00bdd940b43b34dfbff011d0154f6d738ef5e8 | e596fb558c240c4c0c3b11a60591879c5cc74d42 | refs/heads/master | 2022-12-14T18:13:14.196503 | 2020-09-14T22:13:35 | 2020-09-14T22:13:35 | 295,543,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | VariavelLocalEscopo.cpp | #include <iostream>
int main()
{
int i;
for (int i = 0; i < 5; i++)
{
int j = i + 2;
std::cout << i << " " << j << std::endl;
}
system("PAUSE");
return 0;
} |
fd621a099312a0587008e7328bbdfd705c930c9d | 1fb357bb753988011e0f20c4ca8ec6227516b84b | /NewPhysics/src/NP_couplings.cpp | ceae2e8ce67a78ba6a9f2308a62d4b578d174c73 | [
"DOC"
] | permissive | silvest/HEPfit | 4240dcb05938596558394e97131872269cfa470e | cbda386f893ed9d8d2d3e6b35c0e81ec056b65d2 | refs/heads/master | 2023-08-05T08:22:20.891324 | 2023-05-19T09:12:45 | 2023-05-19T09:12:45 | 5,481,938 | 18 | 11 | null | 2022-05-15T19:53:40 | 2012-08-20T14:03:58 | C++ | UTF-8 | C++ | false | false | 59,036 | cpp | NP_couplings.cpp | /*
* Copyright (C) 2014 HEPfit Collaboration
*
*
* For the licensing terms see doc/COPYING.
*/
#include "NP_couplings.h"
#include "NPbase.h"
//----- Zff couplings observables ----------
/* -------------------------------------*/
deltagZveveL::deltagZveveL(const StandardModel& SM_i):
ThObservable(SM... |
61f3f0c1d0655eabe81d9726ad8f6dfbdad4a6f4 | 380b9a026d0e805879bdce274af09995606c6c52 | /original/original.ino | 198f98bb6ccf9062d8f684fe3a70f5316a0345ce | [] | no_license | gaspardpetit/KRIDADimmerSample | 6d83d95caa387db094ae15378a2d1daa12ccc0e1 | 13538eee358bfffde1c5d5057934e94f6f1bd7cd | refs/heads/master | 2021-01-22T18:51:08.286938 | 2016-05-24T19:41:01 | 2016-05-24T19:41:01 | 59,587,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,383 | ino | original.ino | //-----------------------------------------------
// Sample code provided by KRIDA Electronics
// https://www.facebook.com/krida.electronics/
//-----------------------------------------------
unsigned char AC_LOAD = 7; // Output to Opto Triac pin
unsigned char dimming = 3; // Dimming level (0-100)
unsigned char i;... |
b567fa694fd5a30c8728108c3af0378ac7226409 | 42229050e2a047c5e3f9e8ba1217c2abc578b0ed | /src/system_monitor.cpp | 4b8d78e8c4d858e5b6e4b30d502f46d477c64cf9 | [
"Apache-2.0"
] | permissive | Auterion/system_monitor_ros | 6a6c988ba25e3715d4070715b0d975dc64f66631 | 4ac4a9cd371210b6e54765e66adf91c74fb8a33d | refs/heads/master | 2021-08-17T03:06:42.852445 | 2021-07-28T16:40:10 | 2021-07-28T16:40:10 | 160,644,942 | 9 | 3 | Apache-2.0 | 2021-07-28T16:38:41 | 2018-12-06T08:41:34 | C++ | UTF-8 | C++ | false | false | 5,546 | cpp | system_monitor.cpp | /*
* system_monitor.cpp
*
* Created on: Aug 21, 2019
* Author: Jaeyoung Lim
*
*/
#include <system_monitor_ros/system_monitor.h>
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <numeric>
#include <sstream>
using namespace std::chrono_literals;
SystemMonitor::SystemMonitor() {
// Def... |
a6d7b487dd7e5e901473d9f3ca0e02a1dcfa4368 | b7128624d25b8a34431751fe504e3c8ad79ee0ce | /src/base/hsi/macroif.h | f847e179f37ced965f25b2e05bd6ef1ec4e6aef3 | [
"LicenseRef-scancode-x11-xconsortium-veillard",
"BSD-2-Clause"
] | permissive | DOORS-Framework/DOORS | e7a0e9d84064334822f20722ad48d9330ee9368f | 999343fc3a40d9c5ec6e8ef7b46cce95bc751fcd | refs/heads/master | 2022-03-31T16:07:06.960467 | 2019-12-23T15:06:31 | 2019-12-23T15:06:31 | 209,012,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,617 | h | macroif.h | // -*- C++ -*-
//
// Copyright 1999
// Telecom Lab, Lappeenranta University of Technology.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source c... |
95d7ae29fb0c6ca8c5010e6602ea9fb0cecd4734 | 45b0d5b7193bc468b927f0e42ba2a2a3a9df1698 | /sumaimparcpp.cpp | ad43df493e4cfe37903fbf2558aa4c0162a80257 | [] | no_license | laushahidi/FP_Laboratorio7_00365919 | 7012ee392c445a2a6815d1353887d26c9c83ecb0 | cbfd9032243548cb69d28ced7f01f915f07da201 | refs/heads/master | 2020-08-14T01:56:11.997668 | 2019-10-20T22:07:09 | 2019-10-20T22:07:09 | 215,076,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | sumaimparcpp.cpp | #include <iostream>
using namespace std;
int rango(int i){
int a, b, j, suma=0, inicio;
cout<<"\nInicio de rango "<<i<<": ";
cin>>a;
cout<<"Fin de rango "<<i<<": ";
cin>>b;
if(a%2!=0){
inicio=a;
}
else{
inicio=a+1;
}
for(j=inicio;j<=b;j=j+2){
suma+=j;
}
cout<<"Caso"<<i<<": "<<suma... |
3940fb7d645dd9ad41bed422dd3e002c5dbccc26 | 86dcea4619590879ad9b1938d80ffe0a035cd041 | /NeuroKernel/engine/layers/PoolingLayerCudaEngine.h | 88ac444cee2fbcaf1fce0ca858fb4657dd437578 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | smmzhang/NeuroStudio | aaa4826ef732963e4f748a46625a468a1ae810d3 | f505065d694a8614587e7cc243ede72c141bd80b | refs/heads/master | 2022-01-08T23:37:52.361831 | 2019-01-07T11:29:45 | 2019-01-07T11:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | h | PoolingLayerCudaEngine.h | #pragma once
#include "PoolingLayerEngine.h"
#include "core/cuda_platform.h"
namespace np
{
namespace engine
{
namespace layers
{
class PoolingLayerCudaEngine : public PoolingLayerEngine
{
public:
PoolingLayerCudaEngine(const NetworkParameter& net_param, const network::HiddenLayer& layer);
vir... |
3956828c1970c73ab230141b5ae87c49c3a42862 | 26939077b9131cbea8b6604bbcd93d1b69ed49d0 | /include/River/River/Graphics/Text/FontInstance.h | d88287beb115edfbb609955f5dda0d5b79ecc1f6 | [] | no_license | maltebp/StarFighter | 505859c052353999b75d32c97aea07011c106b8f | 32fddb374dde9404ccfdb5c66d5e5be39ff19562 | refs/heads/master | 2023-07-14T02:41:09.697483 | 2021-08-29T08:39:06 | 2021-08-29T08:39:06 | 306,422,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | h | FontInstance.h | #pragma once
#include <string>
#include <unordered_map>
#include "River/Graphics/Texture/Sprite.h"
namespace River {
class FontInstance {
public:
struct Glyph {
Texture* const texture;
const int bearingX, bearingY;
const int advance;
const int yMax, yMin;
Glyph(Texture* texture, int bearingX, in... |
6b1dbd495528890d4e850b4915dac4a4c5a994ab | 732a804c70b5253185271cf171ba8d44d6cb13bf | /List/List.h | c37e13fef5f8530561f303bec61d0c83aa393e15 | [] | no_license | hansionz/Cpp_Code | fc0823a074c58a67d310bc7045ac598717f4eb82 | ab8ccc30dc01e21af3a5bf3fe6360f56f49ba157 | refs/heads/master | 2020-04-04T09:27:19.583350 | 2019-05-24T14:39:45 | 2019-05-24T14:39:45 | 155,818,598 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,283 | h | List.h | #ifndef __LIST_H__
#define __LIST_H__
#include <iostream>
#include <vector>
#include <assert.h>
using namespace std;
/**
* 模拟实现STL中的list(双向带头循环链表)
*/
namespace zsc
{
template<class T>
//为什么不用struct而用class?
//如果不使用访问限定符使用struct,struct默认访问限定符为public
//如果使用访问此限定符使用class,class默认访问限定符为class
struct ListNode
... |
f63e25aa1df27498a9fb6d1f7cd93639e8128491 | 275cbbde1781b3ebb91f889ffffa575c19c60067 | /Homework2/cxx/src/tcpNode/TcpNodeMain.h | e314886c280a94784c0450d56473838ea6a736c1 | [] | no_license | davidliyutong/SPEIT-CS457 | 090ac9e1dcb8046f2e9aa498629b171460a50e09 | d6d3707345f2f5fff0e7fab207878af6db962132 | refs/heads/master | 2022-12-31T13:24:22.626307 | 2020-10-19T02:26:09 | 2020-10-19T02:26:09 | 293,683,962 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,023 | h | TcpNodeMain.h | //
// Created by liyutong on 2020/10/5. 头文件
//
#ifndef P2P_FILE_SHARE_TCPNODEMAIN_H
#define P2P_FILE_SHARE_TCPNODEMAIN_H
#include <cstring>
#include <arpa/inet.h>
#include <thread>
#include <map>
#include <deque>
#include <csignal>
#include "../common/macros.h"
#include "../common/MsgInterpreter.h"
#include "../commo... |
800de8440f47835d90e20e65bac07fe7d0dd17da | b3a44c8c5319afba2870928b976d4ae543ece143 | /mcucpp/ARM/MDR32Fx/usart.h | d4a29a4aa490fb1d236013d34f4209839540e0e3 | [
"BSD-3-Clause"
] | permissive | evugar/Mcucpp | 58446aedc37746ae89dc2e9c0d0f1dbe30aacbf6 | 202d98587e8b9584370a32c1bafa2c7315120c9e | refs/heads/master | 2021-07-11T19:07:39.871347 | 2020-07-21T19:01:42 | 2020-07-21T19:01:42 | 281,441,055 | 0 | 0 | NOASSERTION | 2020-07-21T15:52:45 | 2020-07-21T15:52:44 | null | UTF-8 | C++ | false | false | 2,812 | h | usart.h |
#pragma once
#include <clock.h>
#include <ioreg.h>
#include <iopins.h>
namespace Mcucpp
{
class UsartBase
{
public:
enum UsartMode
{
FifoEnabled = UART_LCR_H_FEN,
DataBits5 = 0 << UART_LCR_H_WLEN_Pos,
DataBits6 = 1 << UART_LCR_H_WLEN_Pos,
DataBits7 = 2 << UART_LCR_H_WLEN_Pos,
... |
87ee94618ff1c850fef3a89f3d62b65482472d37 | 1c4c28a8462d91afe69733fc9dac01daa17b3dcc | /BFS/1926.cpp | 2970a1c1b54c9c687c3e69719fe7f54622faf63c | [] | no_license | HimanshuKGP007/Source-Code | a4e44f0ac3590b12a5ab4dcf9c8b8a7c6b655006 | c3bebea98d889a0d838b133acd5a544533ab1272 | refs/heads/main | 2023-06-28T21:04:18.576367 | 2021-08-05T15:55:25 | 2021-08-05T15:55:25 | 386,203,723 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,762 | cpp | 1926.cpp | #define pb push_back
#define mp make_pair
#define fi first
#define se second
#define ins insert
#define vii vector<int>
#define pii pair<int,int>
const int N=101;
int dp[N][N];
bool check[N][N];
int n,m;
pii start;
int X[4]={0,1,0,-1};
int Y[4]={-1,0,1,0};
int ans=INT_MAX;
bool valid(int x,int y)
{
if(x>=0 && y>=... |
babae0c4febe947b5fce2a4ed2560e04312f51dc | aa64bc1ff0095318d2f9833db9d67932516364ec | /DBSCAN/Main.cpp | 820f983281a593561d2417cfc5bef5300efc9ab9 | [] | no_license | ma29579/DBSCAN | 8183a6c121e63a67514195f8fa4cc3cad713b179 | 3ae827805d035262995ee085feb8485cc6d38699 | refs/heads/master | 2020-08-22T06:59:17.146109 | 2019-10-20T10:17:55 | 2019-10-20T10:17:55 | 216,342,296 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,808 | cpp | Main.cpp | #include "Dataset.h"
#include <iostream>
#include <vector>
#include <sstream>
#include <fstream>
#include <cmath>
// Durch diese Funktion werden die zu analysierenden Datensätze der Zoo-Besucher eingelesen und in dem übergebenen Vektor für Zoo-Besucher abgelegt
void datenEinlesen(std::vector<Dataset*>& data, std::stri... |
5d02492de29c34b62002c80dcac6274aeb9f04fd | 080b649df23685d0967204af1aeb880d79e5fb5b | /1.两数之和.cpp | 7d1c98764f5d8b61c0c297a27b5cdd531ef88cd3 | [] | no_license | wang-y-z/leetcode-algorithm | 85d444a3269a8a4245ed7d480111541ac2caf16b | 1c5c3aff341b1ced0d8c7df163a24805da724ba0 | refs/heads/main | 2023-04-17T13:21:50.617568 | 2021-05-05T03:01:47 | 2021-05-05T03:01:47 | 321,834,298 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | 1.两数之和.cpp | /*
* @lc app=leetcode.cn id=1 lang=cpp
*
* [1] 两数之和
*/
// @lc code=start
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int,int> record;
vector<int> res;
for(int i=0;i<nums.size();i++){
int tmp=target-nums[i];
if(record... |
79347a960d38557e5aec930fdf613fa887f53770 | 64c3a10f23b7064214a161f0382caad90ed59d8b | /DT_Arduino/UNO/ledmatrix8x8/ledmatrix8x8.ino | 9c3ff3a14a6e71c449c70161cda9a968af0f5113 | [] | no_license | techHappyWater/SPI_between_RPi_and_STM32 | f74c09fee0890767b86b2922a5f3f0bedd8126bc | 214e9cd8272071330858a8ce799fe1caf9c9b402 | refs/heads/master | 2022-05-13T12:14:53.863116 | 2020-01-26T15:21:52 | 2020-01-26T15:21:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,071 | ino | ledmatrix8x8.ino | byte row[8]={9,10,11,12,13,14,15,16};
byte column[8]={1,2,3,4,5,6,7,8};
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
for (int i=0;i<=7;i++)
{
pinMode(row[i],OUTPUT);
pinMode(column[i],OUTPUT);
digitalWrite(row[i],LOW);
digitalWrite(column[i],LOW);
}}
void loop() {
// put... |
f5b0786b1cc3134d5b59f2b68d0f4685c5f4b630 | cd5953b74f164a741393dac24a760ce054d270ca | /lesson7/code1.cpp | cb863f680f715e78051790d07bc167bfb23a2a70 | [] | no_license | cy66666/xd0615 | 02bd8f3f9b3d31e252f3ec8832b8ff8fd0ac5b81 | 4d262f061777a85e3ca6a0101f0b08dfd55e7e4d | refs/heads/master | 2022-11-13T02:09:47.124395 | 2020-06-24T09:23:48 | 2020-06-24T09:23:48 | 272,459,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | code1.cpp | #include <MsTimer2.h>
int tick = 0;
void onTimer()
{
Serial.print("timer ");
Serial.println(tick++);
}
void setup()
{
Serial.begin(9600);
MsTimer2::set(1000, onTimer);
MsTimer2::start();
}
void loop()
{
}
|
63c69a9db1648d8e3461b34ad8093033a8e890fd | e1d5fbe7823d9e54e2717e7cb86bd36afe9e3d76 | /libraries/keybrd/l_ShiftManager.h | 3cb7103f178c50436807589b58ad42f0a28449bf | [
"MIT"
] | permissive | dualsky/keybrd | 8d1d7117de88b8efedbf8947b7dba8c96e04d955 | 696b6dd9c93b9e1597739db5efd74aa8e07baf28 | refs/heads/master | 2021-01-18T20:07:39.059986 | 2015-05-08T07:39:32 | 2015-05-08T07:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,294 | h | l_ShiftManager.h | #ifndef L_SHIFTMANAGER_H
#define L_SHIFTMANAGER_H
#include <Arduino.h>
#include <inttypes.h>
#include "l_Code_Shift.h"
/* Class l_ShiftManager is used on multi-layered keyboards.
* It is composed of an array of l_Code_Shift pointers, one for each shift key.
* It can manage any number of shift keys.
*
* l_ShiftMana... |
6667dc2329328c21fc3b6cf12b8760e070c745ba | 3a01bc40368b415eac43890febbe9c7777b9e86d | /Src/SkyProject/DrvD3D11/Systems/skyD3D11GfxDevice.cpp | 16c05431c1a74ac6e561aff1b4f5d130bbb538b0 | [] | no_license | gbarnes12/skyengine | a45b1094d54eb2259c51be59c50f14567189a3bb | c78861a5d3a1bd50f69321a71f529c217d4b31e9 | refs/heads/master | 2021-01-10T11:15:06.673814 | 2015-11-23T15:10:20 | 2015-11-23T15:10:20 | 46,712,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,791 | cpp | skyD3D11GfxDevice.cpp | #include "stdafx.h"
#include "skyD3D11GfxDevice.h"
//--------------------------------------------------------------------------------------------------------
skyResult skyD3D11GfxDevice::Spawn ( sGfxDeviceDesc a_sDesc, skyD3D11GfxDevice** a_pDevice)
{
ID3D11DeviceContext* l_pContext = nullptr;
ID3D11Device* l_pDevic... |
bc529af19e472d175f288be7de93ab67bc5b5b95 | 6bb87e58cc38de28b0e0b6d981bd8ba49244cfa9 | /P2T2/main.cpp | 136745c08790338c42fd04a90e82b2a9f657a773 | [] | no_license | szxie/CS308-Compiler | f4ed36f94faeeacb2a7af93a0c30679416ac6b3d | 6cd1a748c20c3b0423c8a357b15b083eb3d46ac8 | refs/heads/master | 2020-04-04T19:51:15.145873 | 2013-12-29T01:43:58 | 2013-12-29T01:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include "node.h"
using namespace std;
extern int yyparse();
extern FILE *yyin;
extern Node *program;
int main(int argc, char **argv)
{
yyin = fopen(argv[1], "r");
ofstream fout("test.s");
yyparse();
content* a = new content();
a->c... |
f1b7334fbf04baed1cc69045bc20da3884ee0807 | 18c1ae5aab30f9d003a6081a91d803142254738e | /src/chartsmodel.h | bba64cb00e9628abcdb807820fdbd60090040db6 | [] | no_license | nvek/testAIDRiller | 212a5b74660d678bbcc474fb8939d42a06efedec | 40499125f4a9038ace4e17158442061843ca5527 | refs/heads/master | 2020-08-22T22:16:13.094745 | 2019-10-21T07:37:23 | 2019-10-21T07:37:23 | 216,486,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | h | chartsmodel.h | #pragma once
#include "src/csvreader.h"
class ChartsModel
{
public:
// make coords
struct Point
{
qreal x;
qreal y;
qreal z;
};
QVector<Point> _points;
ChartsModel(const CSVReader::CSVRecords& data);
};
|
9e49374ea1e7ef9a0d836559706843686ce98ad3 | 6ef6837af1efb4a4ed8a890a9a98d132153ec673 | /test.cpp | 6a1705e940fc26899938703b58814e9fee7aa6ba | [] | no_license | japneet644/Random-codes | 8cfd76f4607b261bce75e3cc407eb83c189772af | 7b799707070ff0988745efe9973a2c704cbd8a68 | refs/heads/master | 2020-04-11T16:07:56.343529 | 2019-08-12T05:55:31 | 2019-08-12T05:55:31 | 161,913,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | test.cpp | #include<iostream>
using namespace std;
int modulo(int a,int b, int c)
{
if(b==1) return a%c;
int ans = modulo(a,b/2,c);
if(b%2==0) return (ans*ans)%c;
return (a*ans*ans)%c;
}
int main(int argc, char const *argv[]) {
if(5>3-1) std::cout << "ajbajma " << '\n';
}
|
f9d499096a7846e319d402ae4667503f915a733d | 7f62f204ffde7fed9c1cb69e2bd44de9203f14c8 | /DboServer/Server/GameServer/TqsAlgoAction_Wait.cpp | 7d233fc5b62ba07221c5ccb998a93d3851f6c335 | [] | no_license | 4l3dx/DBOGLOBAL | 9853c49f19882d3de10b5ca849ba53b44ab81a0c | c5828b24e99c649ae6a2953471ae57a653395ca2 | refs/heads/master | 2022-05-28T08:57:10.293378 | 2020-05-01T00:41:08 | 2020-05-01T00:41:08 | 259,094,679 | 3 | 3 | null | 2020-04-29T17:06:22 | 2020-04-26T17:43:08 | null | UTF-8 | C++ | false | false | 1,191 | cpp | TqsAlgoAction_Wait.cpp | #include "stdafx.h"
#include "TqsAlgoAction_Wait.h"
#include "TQSNodeAction_Wait.h"
CTqsAlgoAction_Wait::CTqsAlgoAction_Wait(CTqsAlgoObject* pObject) :
CTqsAlgoAction_Base(pObject, TQS_ALGOCONTROLID_ACTION_WAIT, "TQS_ALGOCONTROLID_ACTION_WAIT")
{
m_nCondCount = 100000;
}
CTqsAlgoAction_Wait::~CTqsAlgoAction_Wait... |
210aa2d909bd647659258a7edc60674e64f954c2 | e21c2723414b08cfda4b96140f0a7f837af8d2d2 | /Code(大一)/51nod/1102面积最大的矩形.cpp | f3049be09f86fb74e88ed041ba58076ac666d2a3 | [] | no_license | liarchgh/MyCode | e060da5489facf36523c5e58a8dbf1e4fecdc01e | 2f0ba2759caa5f732b6edb023af6fbc13e8c0916 | refs/heads/master | 2021-10-08T07:08:28.604123 | 2021-09-26T17:55:09 | 2021-09-26T17:55:09 | 73,447,793 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 946 | cpp | 1102面积最大的矩形.cpp | //思路很早就想到了 然而对时间复杂度的分析发生了错误 太过于谨慎了 计算得不够仔细 细节忽略了
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <fstream>
#include <iostream>
using namespace std;
const int mx = 50005;
int zhi[mx], l[mx] = {0}, r[mx] = {0};
int main() {
#ifndef ONLINE_JUDGE
freopen("C:\\in.txt", "r", stdin);
freopen("C:\\out.t... |
b1472db4dfbcd21ca6fad7970f52ee49d43d8bef | 0e8ae7bc3a8a282a09ff11344249d89ec3777f1e | /vcm/ui/win32/vcmSpin.h | 1eaf4ee811ed53d984c3b5403635ba85b3b88411 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | bbbradsmith/nsfplay | cbe082176fc0ecfbc01bb66e049d2cef8e2bbea6 | f563b9fe32df9ef0a94944026642d8ce5144c000 | refs/heads/master | 2023-07-21T21:09:21.386106 | 2023-07-06T23:48:52 | 2023-07-06T23:48:52 | 37,961,833 | 255 | 49 | null | 2023-06-22T05:59:48 | 2015-06-24T04:16:29 | C++ | SHIFT_JIS | C++ | false | false | 762 | h | vcmSpin.h | #pragma once
#include "afxwin.h"
#include "afxcmn.h"
// CvcmSpin ダイアログ
class CvcmSpin : public CvcmCtrl
{
DECLARE_DYNAMIC(CvcmSpin)
public:
vcm::VT_SPIN *m_vt;
CvcmSpin(const std::string &id, vcm::VT_SPIN *vt, CWnd* pParent = NULL); // 標準コンストラクタ
virtual ~CvcmSpin();
void ReadWork();
void... |
482c5f57e1da2c9c004a1c6df0a16f14be9d1427 | 69dd4bd4268e1c361d8b8d95f56b5b3f5264cc96 | /GPU Pro4/02_Rendering/06_Progressive Screen-space Multi-channel Surface Voxelization/src/SceneGraph/SceneGraph_Aux.cpp | 10ac7fddf056c97d832a5ee2e5374d5451436d30 | [
"MIT"
] | permissive | AnabaenaQing/Source-Code_ShaderX_GPU-Pro_GPU-Zen | 65c16710d1abb9207fd7e1116290336a64ddfc86 | f442622273c6c18da36b61906ec9acff3366a790 | refs/heads/master | 2022-12-15T00:40:42.931271 | 2020-09-07T16:48:25 | 2020-09-07T16:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,243 | cpp | SceneGraph_Aux.cpp | //////////////////////////////////////////////////////////////////////////////
// //
// Scene Graph 3D //
// Georgios Papaioannou, 2009 //
// ... |
e48076f951e127c90beca51da7eeaf462122a782 | 471f29d511854d157accb758fb60a9489765d9c3 | /VivenciaManager3/backupdialog.cpp | a25fd93b922a8b61d475e04686f822cfcb33e049 | [
"MIT"
] | permissive | vivencia/VivenciaManager3 | fb0c4612e4da65cdea70bcf863b5affe9de9addd | b26e1313febeb2b6e9be102c91afba13c2c609b5 | refs/heads/master | 2020-12-25T17:00:57.396371 | 2018-01-30T12:36:44 | 2018-01-30T12:36:44 | 48,883,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,079 | cpp | backupdialog.cpp | #include "backupdialog.h"
#include "global.h"
#include "vmlist.h"
#include "vivenciadb.h"
#include "vmcompress.h"
#include "configops.h"
#include "fileops.h"
#include "vmnotify.h"
#include "system_init.h"
#include "heapmanager.h"
#include "emailconfigdialog.h"
#include "crashrestore.h"
#include <QVBoxLayout>
#include ... |
b9352fb722b90ed916419f30b8e9992de935a3e7 | 9129ef1deab894e7ea70b0c1dd6a4d33d3ff35a6 | /examples/IntelliKeys/IntelliKeys.ino | 9541880856a0701cf0e42843b4d5890b9484ccd5 | [
"MIT"
] | permissive | gdsports/IntelliKeys_t36 | 8a8df1c179e1f58db7bea1b8bc7eb0270c1bf9d7 | 407297cc131aa3f6e7e336973e08bbfc41a08ad6 | refs/heads/master | 2020-04-10T21:41:25.429735 | 2018-12-20T02:20:08 | 2018-12-20T02:20:08 | 161,303,478 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,299 | ino | IntelliKeys.ino | /*
* Demonstrate the use of the Teensy 3.6 IntelliKeys (IK) USB host driver.
* Translate IK touch and switch events into USB keyboard and mouse inputs. The
* Teensy 3.6 has one USB host and one USB device port so it plugs in between
* the IK and the computer.
*/
#include <USBHost_t36.h>
#include <intellikeys.h>
#... |
6694ef4b5f685dbc0f056bc6adba80a94aa481a3 | de168fba98a45901c338c24eac35f7a3995485ff | /soar_bot/Bot.h | 77055e71edc151351d2f131f62a6b8f847336a2b | [
"Apache-2.0"
] | permissive | mtinkerhess/SoarAnts | e8d82c075d6eaf9dfb7cac6c839e036919aef4ba | 818ea70b7415430191c966e19ad89960aa671113 | refs/heads/master | 2016-09-06T07:32:09.820231 | 2012-03-13T04:25:22 | 2012-03-13T04:25:22 | 3,321,230 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 614 | h | Bot.h | #ifndef BOT_H_
#define BOT_H_
#include <fstream>
#include "State.h"
#include "sml_Client.h"
using namespace sml;
using namespace std;
/*
This struct represents your bot in the game of Ants
*/
struct Bot
{
State state;
Bot(const char *agent_name);
~Bot();
Kernel *kernel;
ofstream soar_log;
... |
013bed299a137076d4c05071e19535adbdf77d9c | 3d6771218a21f42aa519ea850d33728a4a7b0cef | /Goncharov/main.cpp | 24f3f74c946e08df3fa10c51865ee8457b6f1035 | [] | no_license | Aldirion/Goncharov | 926c3970a581be68fb97a06fb66632fc0ef3fe7a | f0f68d41080e3fac807513d8cc0f2b1b1d94911b | refs/heads/master | 2020-03-19T17:49:20.870935 | 2018-06-10T04:41:41 | 2018-06-10T04:41:41 | 136,779,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83 | cpp | main.cpp | #include "TWorker.h"
int main()
{
setlocale(LC_ALL, "rus");
demo();
return 0;
} |
77722765a8f79f09875e40718541299fd4561bfb | f27c36fe5c07c407f0bb26d0358c5c6537bd00b1 | /BinarySearch/ClosestBinarySearchTree.cpp | f88fd36b0db677ec064d897fa1b1a6b9c74601bb | [] | no_license | A1exrebys/tasks | 8f013cfd30c4a2298be84bcd5b0647155cc8ee07 | d8ad8896707780433b2418ba2f60bd6df668813c | refs/heads/master | 2020-04-26T12:18:55.540265 | 2019-03-26T19:13:34 | 2019-03-26T19:13:34 | 173,545,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | ClosestBinarySearchTree.cpp | #include <iostream>
using namespace std;
class Solution {
public:
int closestValue(TreeNode* root, double target) {
int min = root->val;
while (root != NULL) {
min = abs(target - root->val) < abs(min - target) ? root->val : min;
... |
040704c2a7ea39288bf91bacf83d7bcc7c623c6d | 4049a6686e7cecc41d334f517800ea7b66039606 | /2.1_sort3.cpp | d36a2aeefb77c01d3a8bbd2a1c276a2472633ad2 | [] | no_license | cnwsycf/usaco | 02dae1dcd6891e08c765601aa220fbb8c8198485 | 316b58938eecc5cdb42e207b8b3d582385104a12 | refs/heads/master | 2016-09-07T02:15:58.296833 | 2014-02-13T05:41:20 | 2014-02-13T05:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,626 | cpp | 2.1_sort3.cpp | /*
ID: LovelyBobo
PROG: sort3
LANG: C++
*/
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long lld;
void FPre(){
freopen("sort3.in", "r", stdin);
freopen("sort3.out", "w", stdout);
}
const int maxn = 1005;
int n, a[maxn], b[maxn];
int mp[4][4];
void Init(){
memset(... |
e290885c1351aa52aca30d521dd5853ebb84923e | 81367424de01ed24244148bb386d4869d6d62598 | /ordered_multiset/src/multiset.cc | ab1d3311c6acfc19c94b6f6ccf19da01b112e591 | [] | no_license | easy-testing/easytesting | eb0c0bc9ffc5d92d46be3a008dd28ccd539a16b2 | b98b49699d40d08a0c248d53df2036a10eb7ee74 | refs/heads/master | 2016-09-10T22:13:35.158396 | 2014-10-28T14:04:16 | 2014-10-28T14:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,105 | cc | multiset.cc | // Copyright 2014 Universidade Federal de Minas Gerais (UFMG)
#include "src/multiset.h"
// Define como os elementos da árvore serão organizados na memória.
struct Node {
SType key; // Valor da chave do nó.
int count; // Número de ocorrências da chave.
Node* left; // Ponteiro para o nó a esquerda.
Node* rig... |
19f6616237764d8215c269556b57cc059155b40e | 2f85ea1b415b0a5b14c3f67a43bc7c8266c2d1b3 | /Greedy/weightedjob.cpp | 5e6e27357fe915143fd8c4ab47601a7e48bd91a4 | [] | no_license | ratankumar19/Competitive-Programming | 960c565fcbf91c282bcfb0d8141ed85335985310 | d19f1678f4695b8057d619651a8c05310f212c5c | refs/heads/master | 2022-11-13T22:06:59.396406 | 2020-07-11T13:16:08 | 2020-07-11T13:16:08 | 278,863,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 988 | cpp | weightedjob.cpp | #include<bits/stdc++.h>
using namespace std;
struct job{
int start,finish,profit;
};
bool compare(struct job a,struct job b){
return a.finish<b.finish;
}
int binary(struct job arr[],int i){
int l=0;int h=i-1;
while(l<=h){
int mid=(l+h)/2;//
//jb value exist kree
if(arr[m... |
81938065afdb6d8b6d9f22d18def98051e90808c | 7746e5ffb24e2a8b699fd1d4663505450a8706fe | /ErrorsElement.cpp | 2a7493f4ed17f18edc94c12666197eab77b24052 | [] | no_license | abrioy/OneWaySync | 0a1cc3a8e5ee54de26e6af4f69c4399274a1b49c | 43887e8c941e4a25386910bebc7d96f101e7061c | refs/heads/master | 2021-01-22T14:15:16.554941 | 2014-09-03T16:52:51 | 2014-09-03T16:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,447 | cpp | ErrorsElement.cpp | #include "ErrorsElement.h"
#include "IOfunction.h"
using namespace std;
ErrorsElement::ErrorsElement(OperationType operation, std::String errorMessage, std::String elementPath, std::String optionalCopyPath)
{
Operation = operation;
ErrorMessage = errorMessage;
ElementPath = elementPath;
OptionalCopyPath = option... |
9f49ecfc45637b47dc013622289d147ead8df5db | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/38/e0682d8c446367/main.cpp | 41a73a51b956d68db7ec3b9cae266ab820331a0b | [] | 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 | 1,086 | cpp | main.cpp | #include <iostream>
#include <array>
const std::size_t SIZE = 10;
// int sequence
template <int... I>
struct sizes { using type = sizes <I...>; };
// construction of range [0, S] as int sequence
template <int S, int... I>
struct range_t : range_t <S - 1, S, I...> { };
template <int... I>
struct range_t <0, I...> : ... |
fd1fe9b8a584af762b7abc89485b4112b64ae1e7 | 875c93415211ff5f1fbaa92fffe008cb5856e985 | /xii/sir_practical_scripts/xi_revision/ques_9.cpp | a20c65288dfe8505c241fafdec936865cb4e0418 | [] | no_license | Uchiha-Senju/practicals | 384774c5db544f7b1bcabe7f952eabb4fbed91cd | f18a5d7df14ced5bb93306eda210d3c4c860a211 | refs/heads/master | 2022-04-05T18:23:02.522784 | 2020-01-28T15:59:03 | 2020-01-28T16:01:02 | 151,337,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,383 | cpp | ques_9.cpp | #include <iostream>
using namespace std;
int main() {
int size_arr, no_of_duplicates = 0;
cout << "Give size of array : "; cin >> size_arr;
int arr[size_arr];
bool arr_tracker[size_arr];
for (int i = 0; i < size_arr; ++i)
arr_tracker[i] = true;
// Get input
cout << "Enter array : ";
for (int i = ... |
db48621df16994934b00f1d7cdabec40e5bbd9ac | 198806ccd0b5a7d476c701be5943e9a7afacb7d0 | /xdaq/include/ws/addressing/Headers.h | 0efccf6eb1fc2e6bb7223b865b804806cb715d89 | [] | no_license | marcomuzio/EMULib_CLCT_Timing | df5999b5f1187725d7f5b6196ba566045ba60f55 | 04e930d46cadaa0c73b94a0c22e4478f55fac844 | refs/heads/master | 2021-01-16T13:47:26.141865 | 2014-08-14T12:04:33 | 2014-08-14T12:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,139 | h | Headers.h | // $Id: Headers.h,v 1.2 2008/07/18 15:27:43 gutleber Exp $
/*************************************************************************
* XDAQ Components for Distributed Data Acquisition *
* Copyright (C) 2000-2009, CERN. *
* All rights reserved. ... |
0cd2dffe217424999a39a8234474366714ea3283 | 87cef2edd1852a05de145a685de1122db57445a6 | /src/GnuplotDriver.cpp | 21b85f3ef803a12443e2101c69d2399b72a68770 | [
"MIT"
] | permissive | tbellosta/simplePlot | c132b67cba89790b45bc0b2b5ff6a3779dc9709e | ea44fc7f4472f3f43b516409235eb51ef3dfa968 | refs/heads/master | 2020-07-04T01:07:12.158571 | 2019-10-28T13:02:30 | 2019-10-28T13:02:30 | 202,105,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,402 | cpp | GnuplotDriver.cpp | //============================================================
//
// Type: simplePlot implementation file
//
// Author: Tommaso Bellosta
// Dipartimento di Scienze e Tecnologie Aerospaziali
// Politecnico di Milano
// Via La Masa 34, 20156 Mila... |
49bd58c6f1355bc4bea31911f97c1e586c6f1394 | bee6ec740d56b497070d02eec84cb6a7b55c6e95 | /src/ssa/ssa_unwinder.cpp | cf087b7c16e01440aa40e3a80cfe584be6817b7c | [] | no_license | neomatrix369/deltacheck | bee8704aa774f3e829ac260bea64cebf27fdeb73 | 0511ae2b09925f91d3b6b642792d2075b453b25e | refs/heads/master | 2021-06-01T09:09:54.441270 | 2016-03-09T07:32:39 | 2016-03-09T07:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,712 | cpp | ssa_unwinder.cpp | /*******************************************************************\
Module: SSA Unwinder
Author: Peter Schrammel
\*******************************************************************/
#include <iostream>
#include <util/i2string.h>
#include "ssa_unwinder.h"
/******************************************************... |
88d40a73d8ab91baee7318290b27ae0e0a7ebda0 | 6bb9a1de7df6cf72d93dd5b6fdc449a6109c8c05 | /d04/ex00/Peon.hpp | 4b6a3eac183e92c1d10a45d5783913262544902b | [] | no_license | enriquenc/cpp | b57afb279b465640bfe66cd6bd867448c69eb464 | 2b54745aaf1645437ccb2230a10161577456358f | refs/heads/master | 2020-03-30T13:04:35.202290 | 2018-10-14T19:07:17 | 2018-10-14T19:07:17 | 151,254,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | hpp | Peon.hpp | // ************************************************************************** //
// //
// ::: :::::::: //
// Peon.hpp :+: :+: :+: ... |
3de6ad437b994e99a487e3a3b6e690a00f6460ee | c27f72097c11f49faf6fa93291407c7edaaf8165 | /Vivid3D/Solution/Engine/VividEngine/VSceneEntity.cpp | 911594c77ec7a58774a550ae2d602e7808ad6dff | [
"Zlib"
] | permissive | VividCoder/Vivid3D | 9e363de82b41316947976803d797b45edd4b8929 | dec8215df1640be2e5b74fc50f537bbd474a5385 | refs/heads/master | 2022-07-22T11:33:49.932071 | 2020-05-20T02:02:31 | 2020-05-20T02:02:31 | 259,988,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | VSceneEntity.cpp | #include "pch.h"
#include "VSceneEntity.h"
using namespace Vivid::Scene::Nodes;
//using namespace Vivid::Scene::Nodes
VSceneEntity::VSceneEntity() {
meshes.resize(0);
rendermode = RenderMode::Lit;
}
bool VSceneEntity::RayToTri(float3 origin, float3 vec, float3& out) {
float sd = 1000.0f;
bool first = true;
... |
297b2ebeff5a42ba7a90e8c74fe0029780c7538a | 792ad26fd812df30bf9a4cc286cca43b87986685 | /poj 1363 Rails.cpp | 5f71dcb6440ac67ac9e3c05b8477ed8567fb1eae | [] | no_license | Clqsin45/acmrec | 39fbf6e02bb0c1414c05ad7c79bdfbc95dc26bf6 | 745b341f2e73d6b1dcf305ef466a3ed3df2e65cc | refs/heads/master | 2020-06-18T23:44:21.083754 | 2016-11-28T05:10:44 | 2016-11-28T05:10:44 | 74,934,363 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 481 | cpp | poj 1363 Rails.cpp | #include <stdio.h>
int stack[15004];
int main(void)
{
int t, n, i, j, top, in, flag, sign, x;
scanf("%d",&t);
while(t--){
scanf("%d",&n);
stack[0] = 0;
top = 1;
x = 1;
stack[top] = x;
flag = 1;
i = n;
while(i--){
scanf("%d", &in);
while(stack[top] != in){
if(x > n) {
... |
9a0b09ea17c26e23b344fda20d098f3f9629227d | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/include/functions/cummax.hpp | c0b35de4caf72a1a39c123c55a650fc07c8ae0eb | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 158 | hpp | cummax.hpp | #ifndef NT2_INCLUDE_FUNCTIONS_CUMMAX_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_CUMMAX_HPP_INCLUDED
#include <nt2/swar/include/functions/cummax.hpp>
#endif
|
19ba3c2bdc66e5f4be418394a590211abffa5d5f | 88aa223a99c9a2a1d94e0424f00fc554dfb0b19a | /20-type-template/implementation.h | b4747643a0803d9ba1abef0e96c99deccb3e56de | [] | no_license | ProjectsInCpp/NA-templates | 125b196d24ebab0d523f0db7d399f1787358a89a | 1ba1ac46671f820ceaf19107575a1ef9fff5993f | refs/heads/master | 2021-06-24T01:57:02.881799 | 2017-08-10T13:20:05 | 2017-08-10T13:20:05 | 99,815,586 | 0 | 0 | null | 2017-08-09T14:09:00 | 2017-08-09T14:09:00 | null | UTF-8 | C++ | false | false | 921 | h | implementation.h | #pragma once
#include <boost/optional.hpp>
template<typename T>
struct size_trait
{
static std::size_t size(const T& t)
{
return !!t;
}
};
template<typename T>
struct size_trait<boost::optional<T>>
{
static std::size_t size(const boost::optional<T> & t)
{
return !!t;
}
};
temp... |
ea5acaba6f38f2b2c7ffea9bed5fce78a61e61d4 | b2b2340172e133e5a0e59d26258ff135e03760ef | /Fournier_one.h | 1cdfe848c40ca2cfda4ea1d932ae0e6744a34359 | [] | no_license | JediWattson/open_cl_fft | 7dbb19a54794aa364ffea456bc87bdbd036c607c | 6ccf31fb0c8bece6acd6934290b2d256f2afa70c | refs/heads/master | 2021-01-17T05:05:03.479637 | 2017-03-04T00:25:52 | 2017-03-04T00:25:52 | 83,065,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143 | h | Fournier_one.h | #include "Driver_fft.h"
#ifndef FOURNIER_ONE
#define FOURNIER_ONE
class Fournier_one: public Driver_fft{
public:
void FFT_1();
};
#endif
|
0ff94c581344ac8a254314088317894d374cde9c | fcd63f3ea2b39d38c34538291d65afe0530a31f2 | /D2Hackit/Modules/filter/ItemFilter.cpp | 84092954e35a6190fb9408bd28654902e4bf4888 | [] | 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 | 10,272 | cpp | ItemFilter.cpp | #include <fstream>
#include "ItemFilter.h"
#define FILTER_SETTINGS_PATH ".\\plugin\\filter.ini"
bool ItemFilter::OnItemAction(ITEM &item)
{
switch(item.iAction)
{
case ITEM_ACTION_NEW_GROUND:
case ITEM_ACTION_OLD_GROUND:
case ITEM_ACTION_DROP:
{
return OnItemFind(item);
}
break;
}
return true;
}
... |
7907230b7e84cd6780ace29d0b253b2a6c0457be | b47810042bae260494a798b3da3f92009130ef44 | /程序设计与算法/1 计算导论与C语言基础/homework/39.cpp | 15a83f7ec26ecd5f3b334169092beb8b215f4191 | [] | no_license | GurayKilinc/Coursera | aa64799f033ecb3b1d70edec1b48d7b61c57bdd7 | affc8a7b7399703fc17310e8a250bab5a078ad79 | refs/heads/master | 2020-05-09T17:17:53.290456 | 2018-01-25T23:40:51 | 2018-01-25T23:40:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | cpp | 39.cpp | #include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
int main() {
char str[11] = {'\0'}, substr[4], out[14], max = 0;
int n = 0;
cin >> str >> substr;
for (int i=0; i<10; i++) {
if (max < str[i]) {
max = str[i];
n = i;
}
}
for (... |
2df45c651ec912a369a454e69122e3b42b353852 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-sso-admin/include/aws/sso-admin/model/UpdatePermissionSetRequest.h | e8a5c681c7e902ac37a6bede969670ecdb5758f0 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 11,960 | h | UpdatePermissionSetRequest.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
#include <aws/sso-admin/SSOAdminRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SSOAd... |
d348856d4f26a5fc9bba8cc2862b2dd30a9b9921 | 2f6bb7058eb0f8cddd8bee614a98234c4eb86294 | /src/offboard_pkg/src/offboard_node.cpp | 312f7a9b42acf5675844b04c380b3fbff76c9d6c | [] | no_license | Screw888/workspace | 6f97334aed801d5980dfa1eca1c6dd8cdccd1def | 375760070433a542f1b2d8399e9992c536a6c40e | refs/heads/master | 2020-09-26T18:05:24.991009 | 2019-12-06T09:05:58 | 2019-12-06T09:05:58 | 226,309,215 | 2 | 0 | null | 2019-12-06T10:57:29 | 2019-12-06T10:57:28 | null | UTF-8 | C++ | false | false | 4,148 | cpp | offboard_node.cpp | /**
* @file offb_node.cpp
* @brief Offboard control example node, written with MAVROS version 0.19.x, PX4 Pro Flight
* Stack and tested in Gazebo SITL
*/
#include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <mavros_msgs/CommandBool.h>
#include <mavros_msgs/SetMode.h>
#include <mavros_msgs/State.h>
... |
e04e0312d2c6408d3e7e091632469bc529e2aac2 | d12bc94c947bad3e490755189e70f76a619167c3 | /texture_mapping/HW9_Code_Part1/assignment9_part1.cpp | 89a63867eb16f31fb97fb072840aab9e24530d78 | [] | no_license | ShardulVinchurkar/interactive_computer_graphics | 1dcbc66162b7f237fefaa811a668549b9d108d94 | f5c098d8bb8ff1e12baf0d956c051c4d056ab5a5 | refs/heads/master | 2020-03-15T02:20:42.422304 | 2018-05-02T23:33:36 | 2018-05-02T23:33:36 | 131,915,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,666 | cpp | assignment9_part1.cpp | #define GLEW_STATIC
#include <string>
#include <fstream>
#include <iostream>
#include <vector>
#include "Angel.h"
#include <math.h>
#include <sstream>
using namespace std;
void
bufferGenerator(struct vec4 polygonPoints[],int polyPoints_size, struct vec4 colorPonts[],int colorPoints_size,
struct mat4 vie... |
bc17694dd578b829527d9d1e502c31ae7d48fc0f | d4c6151c86413dfd0881706a08aff5953a4aa28b | /zircon/system/fidl/fuchsia-hardware-display/gen/llcpp/include/fuchsia/hardware/display/llcpp/fidl.h | ecba2255c4dd13f369509aec2d446177a5b11ba3 | [
"BSD-3-Clause",
"MIT"
] | permissive | opensource-assist/fuschia | 64e0494fe0c299cf19a500925e115a75d6347a10 | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | refs/heads/master | 2022-11-02T02:11:41.392221 | 2019-12-27T00:43:47 | 2019-12-27T00:43:47 | 230,425,920 | 0 | 1 | BSD-3-Clause | 2022-10-03T10:28:51 | 2019-12-27T10:43:28 | C++ | UTF-8 | C++ | false | false | 230,955 | h | fidl.h | // WARNING: This file is machine generated by fidlgen.
#pragma once
#include <lib/fidl/internal.h>
#include <lib/fidl/txn_header.h>
#include <lib/fidl/llcpp/array.h>
#include <lib/fidl/llcpp/coding.h>
#include <lib/fidl/llcpp/connect_service.h>
#include <lib/fidl/llcpp/service_handler_interface.h>
#include <lib/fidl/... |
be41468dc02fba4b2b6a9b2cd7f19a8220f520c4 | 54360595202a856c974d10aebb7ee9c705c37421 | /Node.hpp | 3a5828443c5c5153d518417ec6f07cba1bb87999 | [] | no_license | mcf171/SocialNetWork | 2e238c4bbcd37446c11395b8100f5f7894ea0a4a | bf01abb8afb546acb1b1a1d07bf17890c19a3a7f | refs/heads/master | 2021-01-10T07:28:59.013002 | 2015-12-26T19:31:24 | 2015-12-26T19:31:24 | 48,357,772 | 0 | 1 | null | 2015-12-26T19:31:24 | 2015-12-21T07:37:26 | C++ | UTF-8 | C++ | false | false | 1,777 | hpp | Node.hpp | //
// Node.h
// SocialNetWork
//
// Created by 王珏 on 15/12/21.
// Copyright © 2015年 王珏. All rights reserved.
//
#ifndef Node_h
#define Node_h
#include <vector>
#include <map>
#include <iostream>
#include "ConstantFile.h"
using namespace std;
class Edge;
class Tree;
class Node{
publi... |
968d5a586987e87cf512a1fe64538a76542d5f66 | e1e93edc0edce83f673f502d25b67796708e2d51 | /include/pam_interface/driver.hxx | a073a59a9cc4b8de171e794a0776e91690c2f210 | [
"BSD-3-Clause"
] | permissive | intelligent-soft-robots/pam_interface | 3ca16b7ad0078eb0e810807505be67976d69865a | d40010b750dcf940018998603a6a870621e06d7c | refs/heads/master | 2023-04-12T04:27:11.985684 | 2023-04-05T09:39:53 | 2023-04-05T09:39:53 | 254,175,310 | 0 | 0 | BSD-3-Clause | 2023-04-05T09:39:55 | 2020-04-08T18:59:18 | C | UTF-8 | C++ | false | false | 1,367 | hxx | driver.hxx |
template <int NB_DOFS>
Driver<NB_DOFS>::Driver(const Configuration<NB_DOFS>& config)
: hw_interface_(nullptr), config_(config)
{
}
template <int NB_DOFS>
Driver<NB_DOFS>::~Driver()
{
hw_interface_->terminate();
}
/**
* Assigns passed pressures of pressure_action to each muscle
* of each degree of freedom v... |
d66a74b318aca1edbe57458c21b245aa8317e09a | 2e4fa73aad031a4affea34bbd495338cab898f67 | /1508.cpp | 67a88e0da9e9e327b5b285a012c8136317531655 | [] | no_license | linux-wang/jobdu-onlinejudge | ef9ecafeb0e6e312b664ede2a91c265779e9d2ab | e2b5186cbdc9daddca852ea23f3f0522b73b5dfd | refs/heads/master | 2021-01-10T08:45:33.831221 | 2016-03-28T10:56:07 | 2016-03-28T10:56:07 | 49,616,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,057 | cpp | 1508.cpp | /*
url:http://ac.jobdu.com/problem.php?pid=1508
*/
#include<string>
#include<vector>
#include<iostream>
using namespace std;
int is_number(char a)
{
if(a=='1'||a=='2'||a=='3'||a=='4'||a=='5'||a=='6'||a=='7'||a=='8'||a=='9'||a=='0')
return 1;
else
return 0;
}
int is_pm(char a)
{
if(a=='+'||a=='-')
retur... |
9a8814f06a26c091d43c092f9992df756d79621a | eb335b71da3dc313904a9d637d69fcbec00a1801 | /p2.cpp | 652ed5764d9102d21001a7d74cf1f59f67b94866 | [] | no_license | abhi7631/Cpp | ae85ac14277e9a86ff126f577362dcf9ffbea9e1 | 8e46254dfeee1c2b0291007dd9b29d7213bf2830 | refs/heads/master | 2020-03-13T15:52:13.561588 | 2019-04-18T17:20:36 | 2019-04-18T17:20:36 | 131,185,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | cpp | p2.cpp | #include<iostream>
#include<cmath>
using namespace std;
class Point
{
int xx,yy;
public:
~Point();
Point();
Point(double,double);
void show();
void show1();
void show3(double);
double sum(Point);
};
Point ::~Point()
{
}
Point ::Point()
{
xx=yy=0;
}
Point :... |
4b71b2b56021c1a1552319de6dabff7707388a02 | 9e23b764efe353f1b1b1022b81fc0384ddffa6fa | /framework/node.hpp | 12f39de210a5d747494c38ad54c1350da08853e6 | [
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | oanaucs/triangulation | 0e0697a9a071b6c7ec8831a7e1ae3d8202a4c8a0 | 356cc18273d935172312e210133cf18375231764 | refs/heads/master | 2021-06-09T20:15:39.560723 | 2017-02-08T10:42:59 | 2017-02-08T10:42:59 | 79,435,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | hpp | node.hpp | #ifndef NODE_HPP
#define NODE_HPP
#include <glm/vec2.hpp>
#include <vector>
class Node
{
public:
Node();
Node(int const number, glm::vec2 const coordinates);
~Node();
int getNumber();
glm::vec2 getCoordinates();
void setNumber(int const number);
void setCoordinates(glm::vec2 const coordinates);
private:
int m... |
c4b6763f1f4498c63638d2de9666b40d3570cd13 | 092f83af8daf07844bef4f5c61b1ca7d298488b8 | /libs/game/src/resources.cpp | 31433337a85e85dc091336104e29f3d280e1901d | [
"MIT"
] | permissive | tiaanl/red5 | 1fd0d1ab0f86f8f70fc27d8b7b072d1eb1e956ad | ea7593b38f61f64f8aeb7d58854106bd58c05736 | refs/heads/main | 2023-01-07T05:11:57.569662 | 2020-11-14T19:19:46 | 2020-11-14T19:19:46 | 305,490,400 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | cpp | resources.cpp | #include "game/resources.h"
namespace game {
Resources::Resources(fs::path resourceRoot) : m_resourceRoot{std::move(resourceRoot)} {}
bool Resources::addResourceFile(std::string_view resourceFileName) {
auto path = pathToResourceFile(resourceFileName);
auto entries = ResourceFile{path}.loadEntries();
for (au... |
fb80a06ee26048e89bdce4cba1706a1307815cf9 | a093c172823083b98ed177a7b95f21ac66f25c29 | /PGG Assignment 1/entities/Bullet.cpp | e36f19216a3e4c86ce4a5ae1449ef5eed404b313 | [] | no_license | RichardHancock/PGG-Assignment-1 | 431189d9a61f9a4d426bcfc4ed8954beee48b383 | f078517b44479fc171be4a8070deb77cf881f91b | refs/heads/master | 2020-04-17T10:46:39.055468 | 2015-01-19T03:08:27 | 2015-01-19T03:08:27 | 24,952,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | Bullet.cpp | #include "Bullet.h"
Bullet::Bullet(Texture* inputTexture, Vec2 inputPos, bool facingRight)
:EntityWithMotion(inputTexture, inputPos), facingRight(facingRight)
{
}
void Bullet::update(float dt)
{
pos += velocity * dt;
}
void Bullet::render()
{
(*sprite).draw(pos, facingRight);
}
|
8f681fa0b413ce1249dba0b37178b0bdabb83a02 | 377de437f4118aa170855469e30c1468c32bf344 | /source/Needleman/mainNW.cpp | 6dd3f8830668f50c9626484732b82afc6ed793b8 | [] | no_license | nuzelac/Bioinformatika-4Russians | 475da4a9808db7ca1788ede937939862080745f0 | a03967ec008bc6a228f6ab0e20e180b17e8bc9da | refs/heads/master | 2021-01-10T05:53:34.313601 | 2016-01-14T16:58:03 | 2016-01-14T16:58:03 | 49,661,582 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | cpp | mainNW.cpp | /*---------------------------------------------------------------
*
* main.c++ for nw program.
*
* Implements the Needleman-Wunsch algorithm
* for global nucleotide sequence alignment.
*
* Rolf Muertter, rolf@dslextreme.com
* 9/5/2006
*
---------------------------------------------------------------*/
#inclu... |
eb41adbbf7a2eb9148db2fd587bc59713448381e | c534c34d907cce01d6d45ef3725f8e564b37200a | /cs3/svn/Lab3/testCollection.cpp | fd403293d2d7e6fcfcf46597ab83d78ec5716e26 | [] | no_license | PJ-Leyden/cs_projects | 4b32904a22b9d0b326a05b261eed60d6001126bf | 46b40d9364d2eff7e205e8316bd33622ecbf607a | refs/heads/master | 2021-06-11T21:10:49.365719 | 2019-12-06T00:04:32 | 2019-12-06T00:04:32 | 149,900,613 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,562 | cpp | testCollection.cpp | // testing the implementation of templated list collection
// Mikhail Nesterenko
// 9/10/2015
#include <iostream>
#include <string>
#include "list.hpp" // template definition
using std::cout; using std::endl;
using std::string;
int main(){
// manipulating integers
Collection<int> cone;
cout << "Integer col... |
f71e640f4a1bb1108453a3689135327ec16d5ba3 | 827405b8f9a56632db9f78ea6709efb137738b9d | /CodingWebsites/LeetCode/CPP/Volume2/189.cpp | c704662fc7e3bde5c749226ddb6db7de79aa2a4c | [] | no_license | MingzhenY/code-warehouse | 2ae037a671f952201cf9ca13992e58718d11a704 | d87f0baa6529f76e41a448b8056e1f7ca0ab3fe7 | refs/heads/master | 2020-03-17T14:59:30.425939 | 2019-02-10T17:12:36 | 2019-02-10T17:12:36 | 133,694,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | cpp | 189.cpp | #include <cstdlib>
#include <cstdio>
#include <iostream>
#include <queue>
#include <algorithm>
#include <vector>
#include <cstring>
#include <list>
#include <cmath>
#include <queue>
#include <map>
#include <set>
using namespace std;
class Solution {
public:
void rotate(vector<int>& nums, int k) {
int n = n... |
bd39b2c746d83df72f84ef1f160c5b7b123b1e4f | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Alignment/TwoBodyDecay/interface/TwoBodyDecay.h | 3935fd0e50c15a16b442b204340f13fbc278de25 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 2,087 | h | TwoBodyDecay.h | #ifndef Alignment_TwoBodyDecay_TwoBodyDecay_h
#define Alignment_TwoBodyDecay_TwoBodyDecay_h
#include "Alignment/TwoBodyDecay/interface/TwoBodyDecayParameters.h"
#include "Alignment/TwoBodyDecay/interface/TwoBodyDecayVirtualMeasurement.h"
/** /class TwoBodyDecay
*
* Container-class for all information associated wi... |
7916eb97882ab2e5fcf94aef4836814142356e81 | 9c079c10fb9f90ff15181b3bdd50ea0435fbc0cd | /Codeforces/864B.cpp | 2df8ced159f3282420bb0937cc06f96d505bd7eb | [] | no_license | shihab122/Competitive-Programming | 73d5bd89a97f28c8358796367277c9234caaa9a4 | 37b94d267fa03edf02110fd930fb9d80fbbe6552 | refs/heads/master | 2023-04-02T20:57:50.685625 | 2023-03-25T09:47:13 | 2023-03-25T09:47:13 | 148,019,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | cpp | 864B.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,mx=0,c=0;
scanf("%d",&n);
string a;
cin>>a;
char v;
map<char,int>mymap;
for(int i=0;i<a.size();i++){
if(a[i]>='A'&&a[i]<='Z'){
mx=max(mx,c);
c=0;
mymap.clear();
}
else... |
21e16346caedaa9134060d16e007e7b79506277f | 4048dc505f87f5dc27fd8a8c920e51cd72e44aa2 | /applications/digedag.v2-CR/src/checkpoint.hpp | 827d6fea5296103294680d4bc8d1e689e79096b3 | [] | no_license | saga-project/saga-cpp-legacy-projects | 007af3860994a3f10c7163b4b271cccd7eb10eb8 | 2874ff6714776ee721a46f5b68f317e0d1dbfbf9 | refs/heads/master | 2023-04-05T00:47:38.636238 | 2023-03-31T14:47:42 | 2023-03-31T14:47:42 | 5,780,249 | 0 | 3 | null | 2023-03-31T14:47:43 | 2012-09-12T13:38:02 | TeX | UTF-8 | C++ | false | false | 2,362 | hpp | checkpoint.hpp | /*
# Copyright (c) 2010 Katerina Stamou (kstamou@cct.lsu.edu)
#
# 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)
*/
#ifndef DIGEDAG_CHECKPOINT_HPP
#define DIGEDAG_CHECKPOINT_HPP
#include <saga/saga.hpp>
#in... |
9444a0eeaea7b8158c71e302c0dcbc00b57e171e | 54f52c08f92c48072465ffea27551cc023ba3e0a | /src/gui/AdicionarEsferasSistematicamenteDialog.cpp | be89b94e00648856130256193b32bb4f930a7b4f | [] | no_license | lucassimao/Simulacao-Estereologica | e744a5a545a76af67095bb2bf079bcce8c4b0179 | 44ebd4720b3c7108d2106ff1a38a3e2e609db1de | refs/heads/master | 2020-05-17T13:29:55.260804 | 2012-02-26T15:19:52 | 2012-02-26T15:19:52 | 346,206 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 7,002 | cpp | AdicionarEsferasSistematicamenteDialog.cpp | #include <QDialog>
#include <QtGui>
#include <QDebug>
#include <QMessageBox>
#include "ColorListEditor.h"
#include "TextBoxDelegate.h"
#include "AdicionarEsferasSistematicamenteDialog.h"
#include "..\model\SimulacaoCaixa.h"
#include "..\model\atores\Esfera.h"
using namespace simulacao::gui;
using namespace simulacao::... |
6dc1eacb1da37d2c855d26eb6ab4b36088469203 | eb8a7687ff25da18b068eb7bd65b73574aa6f8d6 | /GuitarTabStudio/GuitarEventFactory.h | 5e76bf6737aa2d7fd595ae3ba8ae17988adee1dc | [] | no_license | stasokrosh/guitar-tab-studio | 3d8231275c636dd2432434df91b694e56ac45234 | 75087031c3df8247b776cd8054f56cd00f877be7 | refs/heads/master | 2021-09-13T10:46:43.638314 | 2018-04-28T14:39:45 | 2018-04-28T14:39:45 | 111,589,754 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | h | GuitarEventFactory.h | #pragma once
#include "EventFactory.h"
#include "GuitarEvent.h"
class GuitarEventFactory :
public EventFactory {
public:
GuitarEventFactory(Guitar* guitar);
~GuitarEventFactory();
virtual Event* createEvent(EventInfo eventInfo);
private:
Guitar* guitar;
};
|
4a27f9293a730865efb7535ffc157277a818bc21 | e572fe7da635214a975ab8aebd4a8e8565183d60 | /populating-next-right-pointers-in-each-node-ii.cpp | 299d0df7ea6a3b826f121bb3c035c30b633f1b78 | [] | no_license | LloydSSS/LintCode-LeetCode | 3713dc63019fbf4af8dbb9b21c72c1d03874893f | fb55572a219f51e015672768090cbda1edcef707 | refs/heads/master | 2020-12-25T22:58:26.399559 | 2015-09-14T16:09:18 | 2015-09-14T16:09:18 | 35,087,006 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | populating-next-right-pointers-in-each-node-ii.cpp | // https://leetcode.com/problems/populating-next-right-pointers-in-each-node/
// 一般二叉树
// 对于每个节点
// 如果它没有孩子,直接返回
// 如果有两个孩子,将左孩子的next指向右孩子
// 将剩下孩子的next指向父亲兄弟的第一个孩子
// 注意要处理右孩子,再处理左孩子否则上一步无法进行
#include "lc.h"
// Definition for binary tree with next pointer.
struct TreeLinkNode {
int val;
TreeLinkNode *left, *... |
53da79f81f767418cd7f55346e0f8f8e9b144fd0 | a696549255433a0d499d7c5dda18d3128ab66055 | /src/rdb_protocol/batching.hpp | 307517cb3e742e68e7fd529e9bc4cbc81b8ffb16 | [
"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 | 4,667 | hpp | batching.hpp | // Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_BATCHING_HPP_
#define RDB_PROTOCOL_BATCHING_HPP_
#include <utility>
#include "btree/keys.hpp"
#include "containers/archive/archive.hpp"
#include "containers/archive/versioned.hpp"
#include "containers/optional.hpp"
#include "rdb_protocol/datu... |
429b5ab3cb2505ece4bd79dc3932b74813dfe3bf | 5ddad2a210ea87f427f0ddc7b42c91464fa169a3 | /src/c/schemas/ModioModfile.cpp | 41d6dbf9c93fae2d6da34579c9f0e9b95c1b2023 | [
"MIT"
] | permissive | nlspartanNL/SDK | 877478fda8dc342c2f39453d9a5022c9e4a0b64c | 291f1e5869210baedbb5447f8f7388f50ec93950 | refs/heads/master | 2022-06-19T21:09:35.725926 | 2019-12-09T23:17:26 | 2019-12-09T23:17:26 | 236,233,205 | 1 | 0 | MIT | 2020-01-25T21:36:57 | 2020-01-25T21:36:56 | null | UTF-8 | C++ | false | false | 3,394 | cpp | ModioModfile.cpp | #include "c/schemas/ModioModfile.h"
extern "C"
{
void modioInitModfile(ModioModfile* modfile, nlohmann::json modfile_json)
{
modfile->id = 0;
if(modio::hasKey(modfile_json, "id"))
modfile->id = modfile_json["id"];
modfile->mod_id = 0;
if(modio::hasKey(modfile_json, "mod_id"))
modfile->... |
1e9c008c1e9aa3a32d15b8e7f720f4db331e6bc8 | 424c7098a182cb3f67f334765a225d0531a0d5a5 | /java/c/src/main/cpp/jni_wrapper.cc | cfb0af9bcbb0b1480859ca527f0df62b2f392888 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"JSON",
"OpenSSL",
"CC-BY-3.0",
"NTP",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"LLVM-exception",
"Zlib",
"CC-BY-4.0",
"LicenseRef-scancode-protobuf",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | romainfrancois/arrow | 08b7d1ae810438c8507c50ba33a9cabc35b4ee74 | 8cebc4948ab5c5792c20a3f463e2043e01c49828 | refs/heads/master | 2022-03-12T02:08:17.793883 | 2021-12-05T06:19:46 | 2021-12-05T06:19:46 | 124,081,421 | 16 | 3 | Apache-2.0 | 2018-03-06T13:21:29 | 2018-03-06T13:21:28 | null | UTF-8 | C++ | false | false | 7,840 | cc | jni_wrapper.cc | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
17755fa0af4868677414bf0cf16a5bbdb1e3a221 | 7c33f1ef83b4461f046ad712ec9839cc4a72173d | /lmc_emu/CPU.cpp | 8bc310476f6b2ad701cec5a27c22fa528d0bd545 | [] | no_license | Atem2069/lmc-emu | 727d7eeff05ff7625ee64fe39837fe08d6fa1f71 | 5f0774ea07dcd9bb45bcc09bad1efbc1af513ef2 | refs/heads/master | 2023-04-27T14:33:43.967859 | 2021-05-09T20:56:45 | 2021-05-09T20:56:45 | 363,627,823 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,151 | cpp | CPU.cpp | #include "CPU.h"
CPU::CPU(std::vector<int> memory, bool debug)
{
m_memory = memory;
m_PC = 0;
m_ACC = 0;
m_curInstruction = 0;
m_shouldRun = true;
m_debug = debug;
}
CPU::~CPU()
{
//todo
}
bool CPU::run()
{
while (m_shouldRun)
{
m_fetch();
m_decode();
}
std::cout << "CPU has halted! " << std::endl;
... |
1c4839bba4811a428ff95c9edc78d24a3bfd697f | 34fb2c48d29b4aac014571cbb0d4232896380742 | /数据结构/数据结构实验课文件/EXP4/代码3.24/20354012/task3.cpp | 9628e837aeffb34cd972ee220e38e7dd759c88ef | [] | no_license | dkhonker/sysu | 2aca46818fc9bf77ededa0d8922859c3cabbd1e7 | ef3b8d0f6d5bb03b408081c932716dbd37ad0a22 | refs/heads/master | 2023-06-17T01:09:03.174593 | 2021-07-14T04:27:07 | 2021-07-14T04:27:07 | 382,212,051 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 216 | cpp | task3.cpp | #include<stdio.h>
#include<string.h>
#define MAX 20001
char a[MAX];
int main()
{
int pos,len;
scanf("%d %d",&pos,&len);
getchar();
gets(a);
for(int i = pos;i<pos+len;i++)
printf("%c",a[i-1]);
return 0;
}
|
51ebe99af8ff7790f8e92b4abc2b3d521b410376 | 4d405f617444dd34e7cc95a940c4b5f75922fffe | /Source/SampleDirectory.h | 3d9364e3dc0e42821e43693e448495ef6a9ba91a | [] | no_license | Jacob-Rose/SamplifyPlus-JUCE | 2818edcd12119f9d48d308a5568b540e89c9dfd8 | 14fc9a59dee51bdcc08f61bf8b55054ea47f9a7d | refs/heads/master | 2023-04-07T18:38:03.468624 | 2023-03-25T21:39:17 | 2023-03-25T21:39:17 | 170,420,927 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,805 | h | SampleDirectory.h | /*
==============================================================================
SampleDirectory.h
Created: 13 Sep 2019 5:43:59pm
Author: jacob
==============================================================================
*/
#ifndef SAMPLEDIRECTORY_H
#define SAMPLEDIRECTORY_H
#include <JuceHeader.... |
52879bff619af3ea0ca279bb62428f60b5118b3c | d147d30ab7a9789c4fd7fb5e28cda35ce8ab334d | /csgo_internal/Draw.cpp | 29aee20ce761955ad82d3907cb2a9416bf0cd008 | [
"MIT"
] | permissive | XGOD4/REDHOOK | 3480ff27198065ba5f56bd07c2ffb78baaf638b6 | ee8d4addf2051c07defa6df494ce00cdddefd709 | refs/heads/master | 2020-03-06T22:04:31.323283 | 2018-03-31T21:40:42 | 2018-03-31T21:40:42 | 127,094,092 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,841 | cpp | Draw.cpp | #include "Cheat.h"
HFont F::Meme;
HFont F::ESP;
HFont F::Watermark;
void D::SetupFonts()
{
// fuck these non windows fonts
I::Surface->SetFontGlyphSet( F::Meme = I::Surface->Create_Font(), charenc( "Comic Sans MS" ), 30, FW_DONTCARE, NULL, NULL, FONTFLAG_ANTIALIAS );
I::Surface->SetFontGlyphSet( F::ESP = I::Surfac... |
7483b667c96f27f43abeb7a69d925933088a81c7 | 54ecc5086e465eea123604a9be10ffc013ba8cd0 | /src/random_piecewise_linear_distribution.cpp | b13e00457f1bfd8dc2f986bab0b7b345ee165bee | [
"MIT"
] | permissive | Toxe/test-cpp | 9786b97f05f725c38ee3db75e5a4858bd8fa7432 | 80bcfb9e6446253b6c48759aefa116ab3e71d29b | refs/heads/master | 2022-11-10T00:53:53.559649 | 2022-10-19T16:28:53 | 2022-10-19T16:28:53 | 242,742,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | random_piecewise_linear_distribution.cpp | #include <algorithm>
#include <array>
#include <iomanip>
#include <iostream>
#include <random>
#include <vector>
int main()
{
std::vector<float> intervals{ 0, 10, 20, 30, 40};
std::vector<float> densities{10, 2, 4, 4, 10};
std::random_device rd;
std::mt19937 gen(rd());
std::piecewise_linear_dis... |
0b02eef90970aeb18fd9136c5bc53270ff5a358f | 58163838aa787e8ed6899cf01bac71162fb9cee8 | /MBED Monitor/src/ReadingData.cpp | b53d833c26667f5a7404933d942dec3e1e2aa34c | [] | no_license | koson/WeatherStation | 6dcc84c62c323d54b5fa60ca84b0cad2dc97a336 | f4f1cf35c92a2219949a0cc57e10dbef13224c7e | refs/heads/master | 2021-01-18T11:16:01.276039 | 2014-06-28T23:45:49 | 2014-06-28T23:45:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,772 | cpp | ReadingData.cpp | /*
=======================================================================================================================
File : ReadingData.cpp
-----------------------------------------------------------------------------------------------------------------------
Author : Kleber Kruger
Email : kle... |
239a5ee6fcb37f81a50bf12830d3de602b353fb0 | bb38c44037a99d0a12a12d92059678f2faebbc80 | /src/gausskernel/optimizer/commands/packagecmds.cpp | b2d6c63ec2195e1c77bb5a4ca90042ad64b709d6 | [
"LicenseRef-scancode-mulanpsl-2.0-en",
"LicenseRef-scancode-unknown-license-reference",
"PostgreSQL",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"curl",
"GPL-1.0-or-later",
"LGPL-2.1-or-later",
"LGPL-2.1-only",
"CC-BY-4.0",
... | permissive | opengauss-mirror/openGauss-server | a9c5a62908643492347830826c56da49f0942796 | 310e84631c68c8bf37b004148b66f94064f701e4 | refs/heads/master | 2023-07-26T19:29:12.495484 | 2023-07-17T12:23:32 | 2023-07-17T12:23:32 | 276,117,477 | 591 | 208 | MulanPSL-2.0 | 2023-04-28T12:30:18 | 2020-06-30T14:08:59 | C++ | UTF-8 | C++ | false | false | 11,967 | cpp | packagecmds.cpp | /* -------------------------------------------------------------------------
*
* packagecmds.cpp
*
* Routines for CREATE and DROP PACKAGE commands and CREATE and DROP
* CAST commands.
*
* Portions Copyright (c) 2021 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Developme... |
4c843a66c1f775d1420340bfc73877c9fd93b646 | 24004e1c3b8005af26d5890091d3c207427a799e | /Win32/NXOPEN/NXOpen/Annotations_PmiFilterByPart.hxx | 6694bf598e956a9ae83e1867201f0d625eb78282 | [] | no_license | 15831944/PHStart | 068ca6f86b736a9cc857d7db391b2f20d2f52ba9 | f79280bca2ec7e5f344067ead05f98b7d592ae39 | refs/heads/master | 2022-02-20T04:07:46.994182 | 2019-09-29T06:15:37 | 2019-09-29T06:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,800 | hxx | Annotations_PmiFilterByPart.hxx | #ifndef NXOpen_ANNOTATIONS_PMIFILTERBYPART_HXX_INCLUDED
#define NXOpen_ANNOTATIONS_PMIFILTERBYPART_HXX_INCLUDED
//--------------------------------------------------------------------------
// Header for C++ interface to JA API
//--------------------------------------------------------------------------
//
// Source F... |
664ed928ab0697add7924f610d0e5a85b418d17f | e11b2493f55c60685c3ea76f900be73e6a454b2f | /C++ Primer/11_Associative_Containers/11_36.cpp | e7ee6773edc0ce6b5eff238341be66537c97e24a | [] | no_license | zpoint/Reading-Exercises-Notes | 29e566dd86d97eadb84d7bb6f8f640b85486557c | 31b38fe927232ba8e6f6a0e7ab9c58026eefcffb | refs/heads/master | 2021-06-04T08:12:42.777309 | 2021-04-19T02:12:22 | 2021-04-19T02:12:22 | 70,507,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | cpp | 11_36.cpp | #include <iostream>
#include <string>
/*
* Will throw a runtime error
*/
int main()
{
std::string str(" ");
std::cout << str.substr(1).size() << " " << str.substr(1) << std::endl;
return 0;
}
|
6b85e1dfb0ea4e99af0f9f4ba5a32161f13d2234 | 7bcc51362468098bbb9ddd241230e02cdbeea6e4 | /standard/src/StdConfig.cpp | 1e9400556eb37ac35ee5602bd3d5f13fef1395d4 | [
"ISC"
] | permissive | Marko10-000/clonk-rage | af4ac62b7227c00874ecd49431a29a984a417fbb | 230e715f2abe65966d5e5467cb18382062d1dec6 | refs/heads/master | 2021-01-18T07:29:38.108084 | 2015-09-07T01:34:56 | 2015-09-07T01:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,465 | cpp | StdConfig.cpp | /* Copyright (C) 1998-2000 Matthes Bender RedWolf Design */
/* Auto-registering data structures */
#include <Standard.h>
#include <StdRegistry.h>
#include <StdConfig.h>
#include <stdio.h>
CStdConfig::CStdConfig()
{
}
CStdConfig::~CStdConfig()
{
}
BOOL CStdConfig::Load(CStdConfigValue *pCfgMap, void *vpDat... |
1029a77b44741a60b2c309e865816faf6562dd81 | be379c5decf2b8a8a7aac102e489563ae0da8593 | /trunk/src/core/GameObject/CWayPoint.h | 6f358e4c23efe4176e8b7ace2fa5f4b5ed409c4c | [] | no_license | codeman001/gsleveleditor | 6050daf26d623af4f6ab9fa97f032d958fb4c5ae | d30e54874a4c7ae4fd0a364aa92a2082f73a5d7c | refs/heads/master | 2021-01-10T13:09:01.347502 | 2013-05-12T09:14:47 | 2013-05-12T09:14:47 | 44,381,635 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | h | CWayPoint.h | #ifndef _WAYPOINT_
#define _WAYPOINT_
#include "CGameObject.h"
class CWayPoint: public CGameObject
{
protected:
CWayPoint *m_next;
CWayPoint *m_back;
long m_timeWait;
public:
CWayPoint();
CWayPoint(CGameObject *parent);
virtual ~CWayPoint();
// setNext
// set the next way point
inl... |
7c21a9fd8cea73e28437f04a1753a49c017ce59a | ccbbe314cb8478868dd8c7de3937150379dacc29 | /lab11/lab11-2/main.cpp | 7bd41c8e22c0b5a11ebfb7366fcb2f5527f98418 | [] | no_license | AnmolAgarwal141/Ds-lab | 3d8430178653ab6bb6881e0547982a0ed9715368 | 70111c5eb83fb1f94b8d91cc7125934c28ba0c82 | refs/heads/master | 2020-06-07T21:42:48.247694 | 2019-06-21T13:05:13 | 2019-06-21T13:05:13 | 193,099,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,970 | cpp | main.cpp |
#include<iostream>
#include<process.h>
#include<conio.h>
using namespace std;
class bst
{
bst *lchild;
int data;
bst *rchild;
public:
bst(int ele=0)
{
lchild=NULL;
rchild=NULL;
data=ele;
}
void insert(int);
void display(bst *root);
bst *del();
};
bst *root=NULL;
void bst::insert(int ele)
{
bst *temp... |
cc73bd8b3d6ae6ca43d039b2ce881412f6a7399e | 3b379f81604986b5768a4420632ed1c27ce98242 | /leetcode37.cpp | cc194ade02af032f6e4e4562841d083cd0661e26 | [
"MIT"
] | permissive | SJTUGavinLiu/Leetcodes | a7866e945d5699be40012f527d2080047582b172 | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | refs/heads/master | 2021-07-24T03:26:56.258953 | 2020-07-19T03:59:09 | 2020-07-19T03:59:09 | 199,461,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,212 | cpp | leetcode37.cpp | #include<vector>
using namespace std;
/*
class Solution {
public:
void solveSudoku(vector<vector<char>>& board) {
result(board,0,0);
}
bool result(vector<vector<char>>& board,int row,int column)
{
if(row==9)
return true;
if(column==9)
return result(board,row+1,0);
... |
9088a135308c3143fa8f6c13271fc884cc1e15b6 | 28e8e80ce36427059d108277f11529a2ec18a89d | /CoOS/M3/CoOS_Signal.h | cc4b56440ead0e1585f52eca58e271206e27b2f9 | [] | no_license | AdrianGin/CoOS | 6e28da3200679a32e0d9fc1f63851a08cd14c932 | c76e124ebc7341c4e0d2d5326bde33771d6b77d3 | refs/heads/master | 2022-10-28T02:05:07.861718 | 2019-12-23T07:39:25 | 2019-12-23T07:39:25 | 273,622,561 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 792 | h | CoOS_Signal.h | /*
* CoOS_Signal.h
*
* Created on: 12/10/2019
* Author: AdrianDesk
*/
#ifndef SRC_COOS_COOS_SIGNAL_H_
#define SRC_COOS_COOS_SIGNAL_H_
#include "CoOS_Conf.h"
namespace CoOS {
class SignalFlags {
public:
typedef uint32_t Flags;
SignalFlags() : state(0) {}
inline void Set(Flags mask) {
do... |
5dcf7600dce1613411a2cab5d6c6cf19e9955664 | 01ed3ed38c5d61975ff616e1d15564299378fcdc | /test/classwork_test/10_assign_test/10_assign_tests.cpp | 78e374af3de220a1d0e939b90f7477667c8e3413 | [
"MIT"
] | permissive | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-AmyMichelle87 | 5e8f9c7614f9bd35d2ae52d6d694a00c4856d19d | 333ccf13f1045989110b38d6b337edcd229c68d4 | refs/heads/master | 2022-11-21T12:26:20.167368 | 2020-07-24T23:45:42 | 2020-07-24T23:45:42 | 268,945,653 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 855 | cpp | 10_assign_tests.cpp | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "employee.h"
#include "engineer.h"
#include "sales_employee.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
//this is correct syntax but the o... |
9b2d08d5bb1210114a4186defa11efa73ad18480 | f8c0512388d7bd2128beb4ffbd6a0d3c47396239 | /Playing With Strings/Solutions/luismo/J - Ada and Pet/J - Ada and Pet.cpp | 50634f40124f0862f6562e2d98792134413cc5b2 | [
"MIT"
] | permissive | luismoax/axon_training | 3b45080e6cc0e87f9089a26058b8cdcb3b21d913 | fe4a8cee81034f140650b6c21f723d339ea02c00 | refs/heads/master | 2020-05-20T07:34:04.794876 | 2019-08-20T15:26:17 | 2019-08-20T15:26:17 | 184,371,665 | 0 | 0 | null | 2019-05-01T05:08:43 | 2019-05-01T05:08:43 | null | UTF-8 | C++ | false | false | 1,314 | cpp | J - Ada and Pet.cpp | /*
Author: Luis Manuel D?az Bar?n (LUISMO)
Problem: Ada and the Pet
Online Judge:
Idea: Use Prefix Function
*/
#include<bits/stdc++.h>
// Types
#define ll long long
#define ull unsigned long long
// IO
#define sf scanf
#define pf printf
#define mkp make_pair
#define fi first
#define se second
#define endl "\n"
usi... |
29cbd485e0a5333d62e7b6f220515b23fc4e8be2 | 2740b47bbd8b70c69a9104591ce8284fe18b1d04 | /chap15/weatherballoon/weatherballoon.h | 911c74b7325709a04d97ab6c5a9183d1c5a3f10f | [
"MIT"
] | permissive | mutse/qt5-book-code | d427ce5d943bd4cbda08daacb1cf4d120eb75b31 | ffc8517e28f11864e049f1dc93d098365347387a | refs/heads/master | 2022-08-27T09:56:44.261403 | 2022-07-23T15:06:00 | 2022-07-23T15:06:00 | 8,292,311 | 492 | 211 | null | 2020-02-29T01:12:33 | 2013-02-19T14:57:57 | C++ | UTF-8 | C++ | false | false | 419 | h | weatherballoon.h | #ifndef WEATHERBALLOON_H
#define WEATHERBALLOON_H
#include <QPushButton>
#include <QTimer>
#include <QUdpSocket>
class WeatherBalloon : public QPushButton
{
Q_OBJECT
public:
WeatherBalloon(QWidget *parent = 0);
double temperature() const;
double humidity() const;
double altitude() const;
privat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.