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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
431418aec7f3411113cd7d8c1ea4b3831a24cefc | b56c6e4fe34ec4cb105a2675de9039a064d09e6a | /QTOpenGL/MyGLWidget.h | d15314e8a93adadce7939c396af15224188b121d | [] | no_license | angelamyu/2DAnimator | 9ee973ec7a4e1bb3e23f4f58361383295cdca2e1 | e723b8c90211e92a1bdf28403b1e1bc4837e7976 | refs/heads/master | 2016-08-05T05:31:34.727776 | 2012-10-25T21:24:29 | 2012-10-25T21:24:29 | 6,394,757 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,414 | h | MyGLWidget.h | #ifndef MYGLWIDGET
#define MYGLWIDGET
#include "glew.h"
#include "gMatrix3.h"
#include "gVector3.h"
#include "rPolygon.h"
#include "Square.h"
#include "Circle.h"
#include "Character.h"
#include <sstream>
#include <QGLWidget>
#include <qmessagebox.h>
class MyGLWidget : public QGLWidget {
Q_OBJECT
protected:
void ini... |
1e4465a05ae00d67ba35577d2932d6a42788e639 | 57d123a5f68b1e8095d5239eb7c3af28784e0799 | /OJ——work/work_nine/长方形排序.cpp | e7af82026aeffdb9ae65e31df60093b39bc34c50 | [] | no_license | Floweryu/DataStructuresAlgorithms | dda159afe3b8327deecfa3a8f72a62cf16d1d538 | e61a424dcca1913c0e5ef4fae15b5945dbd04d9b | refs/heads/master | 2022-03-26T04:22:07.849883 | 2019-12-18T07:52:11 | 2019-12-18T07:52:11 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,132 | cpp | 长方形排序.cpp | #include <iostream>
#include <algorithm>
using namespace std;
#define MAX_NUM 10001
struct SqList
{
int number;
int length;
int wide;
};
bool cmp(SqList a, SqList b) //把小的放前面排序
{
if (a.number != b.number)
return a.number < b.number;
else if(a.length != b.length)
return ... |
a1957d578890ec617bc6b06144f18ffdca6ec84e | f770e781b429478abc301893d8557b8b519bf110 | /hindsight/WriterDebuggerEventHandler.hpp | 2eafad4a06ca1e77b48940f9a95e8acc6aa9ee1f | [
"MIT"
] | permissive | Imagine-Programming/hindsight | f0a9b9a715ce7ed4c61c0f24fabfae1488ccdb7e | 720813cd3598378662d5798cf7a5036703a148b3 | refs/heads/master | 2023-03-18T04:40:08.431750 | 2021-03-15T11:14:41 | 2021-03-15T11:14:41 | 274,485,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,819 | hpp | WriterDebuggerEventHandler.hpp | #pragma once
#ifndef writer_debugger_event_handler_h
#define writer_debugger_event_handler_h
#include "IDebuggerEventHandler.hpp"
#include "BinaryLogFile.hpp"
#include <fstream>
#include <type_traits>
namespace Hindsight {
namespace Debugger {
namespace EventHandler {
/// <summary>
/// An implementa... |
ffa7236ee44f0ffe1d455844c70d7b381774ba58 | 1f70194130fe378a1e3d88181bac705caffdd9a6 | /Editor/MainFrame.h | 19813e8d5e34ebe5f3241444cd65cfb2958293ac | [] | no_license | pthiben/Helium | 3ac988ef47d896f727fd9d96a27d03b217f1e109 | 45cc99296634429eb69b213e1826ad9a5731f187 | refs/heads/master | 2021-01-18T08:41:52.078150 | 2010-08-19T20:57:21 | 2010-08-19T20:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,257 | h | MainFrame.h | #pragma once
#include "Editor/EditorGenerated.h"
#include "DirectoryPanel.h"
#include "HelpPanel.h"
#include "ProjectPanel.h"
#include "LayersPanel.h"
#include "PropertiesPanel.h"
#include "ToolbarPanel.h"
#include "TypesPanel.h"
#include "ViewPanel.h"
#include "Core/Scene/PropertiesManager.h"
#include "Core/Scene/... |
4b711ace299525029c6b8a5c5d99d0838dd601ec | 42e6b2003c19a4152a27370e0eeb1014b27ed8b3 | /src/nexmark_hot_items_fw/GroupbyAuction.cpp | bbfca0c68ce7e4cd4c79fd98c8a880a792906dac | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | DonTassettitos/AIR | 71510f43a4fbaf1ccf4f2a1fa843ca64c4a79d6e | 92c93f05d6f15095d403dcbbe7ebe16563198697 | refs/heads/master | 2022-12-18T11:15:59.051265 | 2020-09-16T11:43:20 | 2020-09-16T11:43:20 | 296,014,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,904 | cpp | GroupbyAuction.cpp | /**
* Copyright (c) 2020 University of Luxembourg. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list... |
9bb8a8e04bb0dea5178acc5772c05b0fdf112c36 | 190cfe853208fa287aa2539f1dd4e729f5235091 | /HospitalFee/FMOutpatientInsuranceCost80A.cpp | d2fd0dde4e26c275ecc7ea90f0d427c4841445cf | [] | no_license | smithgold53/HMSReportForms | d8cacb7de1509995b46be16bc5a99ca9104dbea1 | 7f426de1a3f8b7bad956c62ba61306a3969accf2 | refs/heads/master | 2020-05-18T09:24:39.420731 | 2015-05-06T09:47:03 | 2015-05-06T09:47:03 | 34,946,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 61,078 | cpp | FMOutpatientInsuranceCost80A.cpp | #include "stdafx.h"
#include "FMOutpatientInsuranceCost80A.h"
#include "HMSMainFrame.h"
#include "ReportDocument.h"
#include "Excel.h"
/*static void _OnYearChangeFnc(CWnd *pWnd){
((CFMOutpatientInsuranceCost80A *)pWnd)->OnYearChange();
} */
/*static void _OnYearSetfocusFnc(CWnd *pWnd){
((CFMOutpatientInsuranceCost80... |
9914af0a3d4e2df50ee71e29feb93c7c998add8d | a051be3b44d59ad841acdc8c2d641d7027694a5b | /src/util/file/mapped_file.cpp | 019fd5d371b2d318192b8060e81f9da4c767ecc4 | [] | no_license | chpatton013/crash | 66663b3f4284c6f44a1de9063a47d6be45f29955 | 9825e0a90b1aefd26300a1cba5adb8c63f670a07 | refs/heads/master | 2021-01-22T23:26:16.311322 | 2015-06-26T17:16:28 | 2015-06-26T17:16:28 | 23,650,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,866 | cpp | mapped_file.cpp | #include <crash/util/file/mapped_file.hpp>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <algorithm>
#include <cmath>
#include <boost/filesystem.hpp>
#include <boost/system/error_code.hpp>
using namespace crash::util;
MappedFile::MappedFile(const std::string& path) :
... |
6675a735502668ed07d221c2b8269c01906479f6 | 7d56928145d415ff3e50bd14e66cbc44906201bc | /ScareBearPi/ScareBearPi/WebServer.cpp | e0f144d8a2df97c043cd4ab89673335bdad5c95d | [] | no_license | mrmarss/ScareBear | 0b87e1bcb00db786802fe812d7aaa2464f7d2b2c | 054402fd326133cf60d0aa1e340cee3175a8c0cd | refs/heads/master | 2021-01-10T06:11:30.588622 | 2015-11-01T18:48:09 | 2015-11-01T18:48:09 | 45,269,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,438 | cpp | WebServer.cpp | //
// WebServer.cpp
// ScareBearPi
//
// Created by Doug on 11/1/15.
// Copyright (c) 2015 Doug Roeper. All rights reserved.
//
#include "WebServer.h"
#include "WebSession.h"
#include "WebPage.h"
#include <iostream>
/**
* Invalid method page.
*/
#define METHOD_ERROR "<html><head><title>Illegal request</title>... |
3becadd66c8d178bbec5a100636e1e1e6f4674b6 | b932134deff2e82f984c267c26b47ce74c521ef5 | /leetcode/908. Smallest Range I.cpp | aee185ef6497066f13fa884dcba240002c83eb21 | [
"MIT"
] | permissive | chamow97/Interview-Prep | db234e0df0bfa6b3358d73ac187d6a132fa14595 | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | refs/heads/master | 2022-11-06T07:06:54.705258 | 2020-06-21T07:29:14 | 2020-06-21T07:29:14 | 112,472,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | 908. Smallest Range I.cpp | class Solution {
public:
int smallestRangeI(vector<int>& A, int k) {
sort(A.begin(), A.end());
int n = A.size();
A[0] += k;
A[n - 1] -= k;
int ans = A[n - 1] - A[0];
if(ans < 0)
{
ans = 0;
}
return ans;
}
}; |
93c5f61e236f5f2f312c0a3f9b87bcfce0cbf311 | 557b60baadca1744a761b61a2dcd44f083f4f77d | /src/raii.cpp | c1fe56646de348486f2bd2186849e0cf15995a6b | [] | no_license | slashdotted/corsocpp_tp_2021 | c7705e5945f7c487ab128e30e143034a07299784 | 11160fbf0b98aae231a1805c2b95c2cff287e47f | refs/heads/master | 2023-05-22T14:40:52.838768 | 2021-06-07T12:04:39 | 2021-06-07T12:04:39 | 342,510,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | cpp | raii.cpp | #include "raii.h"
#include <iostream>
#include <string>
struct A {
A() { std::cout << "Costruzione di A\n"; }
~A() { std::cout << "Distruzione di A\n"; }
};
struct B {
B(const std::string &n)
: nome{n}, a{new A} { // RAII Resource Acquisition Is Initialization
// (acquisisco n... |
253c77620bf2749de975b57332643753d844914a | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/tools/graph_transforms/sparsify_gather.cc | de13abbefe26dd56fbda981cf567d48741c34d79 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | C++ | false | false | 23,510 | cc | sparsify_gather.cc | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
9c0e6cf701847fe1f1771d64cadebb3e1e4ab777 | f6f8cfcd6c4f09772f99e4a6fe6a244e3499dac5 | /Validation.h | 49daa1f22c7070afeffd192367b5768c438619a7 | [
"Apache-2.0"
] | permissive | trackreco/mkFit | eedceb76639fce2cd6893a332e27fe43c7aed36b | ba37025247ff72c8edd2baea02b5b4ac335bdede | refs/heads/devel | 2022-02-11T01:07:33.040657 | 2021-12-14T18:07:59 | 2021-12-14T18:07:59 | 17,191,259 | 11 | 12 | Apache-2.0 | 2022-04-09T01:39:47 | 2014-02-25T22:59:21 | C++ | UTF-8 | C++ | false | false | 1,825 | h | Validation.h | #ifndef _validation_
#define _validation_
#include "Track.h"
namespace mkfit {
class Event;
// Fit Validation objects -- mplex only
struct FitVal
{
public:
FitVal() {}
FitVal(float ppz, float eppz, float ppphi, float eppphi,
float upt, float eupt, float umphi, float eumphi, float umeta, float eumeta) :
ppz(... |
8edba380464018b518d9b2414f2a0a379f2b8440 | ae35ab4d2ce60e0efc72d4d3a6eb76bfacd7eef0 | /adult/scripts/08_history.swap.inc | c342a34618003bd5a5989492457761990e6cb983 | [] | no_license | qq674684107/hdp_ims | a72594e9ffa1019541eb1adfd842f1f386017a5e | f060203b5eef99295d86682c35be599c6cc42d31 | refs/heads/master | 2020-05-15T18:20:00.969739 | 2017-01-09T05:38:02 | 2017-01-09T05:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39 | inc | 08_history.swap.inc | ../../video/scripts/08_history.swap.inc |
ebbc172cc3b2b007b7f60c35dc1bb13470e4e5fc | ab4c33df512a280756b611291fa8e74f23801d2f | /ex02-01/Rational.h | b776ee84f3a1af187e78140ee31048aad964019c | [] | no_license | meirl1/cpluspluslab | a496b05c602b896a4a6c979acefd22630571c6ea | 8c7a15cab9763eb2b3ccd91ead5398f7aa196bbb | refs/heads/master | 2023-04-22T03:50:32.466918 | 2021-05-18T13:27:11 | 2021-05-18T13:27:11 | 343,748,724 | 1 | 1 | null | 2021-03-04T19:13:13 | 2021-03-02T11:20:44 | C++ | UTF-8 | C++ | false | false | 255 | h | Rational.h | #pragma once
class Rational
{
int numerator;
int denominator;
public:
Rational(int _numerator = 0, int _denominator = 1);
void setNumerator(int _numerator);
void setDenominator(int _denominator);
int getNumerator() const;
int getDenominator();
};
|
12c6a28829572d2bdf9f329e43de4917b9a49574 | 836560ade457e4ae270aadbcee4761474eeacb30 | /include/model.h | cedf4c4deacf4905d1e3b917298f585d4ed50b36 | [] | no_license | weigert/MicroClimate | 830ec0598da809f495e0c0f794510d19c9b15838 | 8fa73f2a43bd5b7537a0b113b1c441f6e08ea6bc | refs/heads/master | 2022-11-27T22:36:07.127469 | 2020-08-05T06:54:48 | 2020-08-05T06:54:48 | 284,885,032 | 28 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,974 | h | model.h | //Model Stuff
int SEED = 10;
double scale = 15.0;
glm::vec2 dim = glm::vec2(100);
noise::module::Perlin perlin;
//View Stuff
const int WIDTH = 1200;
const int HEIGHT = 800;
glm::vec3 viewPos = glm::vec3(50, 0, 50);
float zoom = 0.1;
float zoomInc = 0.001;
float rotation = 0.0f;
glm::vec3 cameraPos = glm::vec3(50, 60,... |
e057447a71ecdb8c391634a3553bc8454f777bd3 | 98f9f977a39843e5f7719062f43011ebfd169e42 | /Plugins/org.commontk.configadmin/ctkCMEventDispatcher.cpp | 7ff58297f1bcebd6ed02d8e5c2c98a29bd6c36da | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | txdy077345/CTK | 71cab2d77193d09340afe7a50e5dddc3ea66a06d | 7cd253376139ea73f0450e1bad75bab41aa1b507 | refs/heads/master | 2023-05-27T19:20:21.825916 | 2023-04-29T16:35:03 | 2023-04-29T16:35:03 | 276,658,777 | 1 | 0 | Apache-2.0 | 2020-07-02T13:50:30 | 2020-07-02T13:50:29 | null | UTF-8 | C++ | false | false | 3,156 | cpp | ctkCMEventDispatcher.cpp | /*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... |
3c9a85e8eb77dac814618396696668c8a6a475e7 | f51ef9e7249f42bb339996e9e024f1cd7433049a | /Chapter1/prob_04.cpp | e0f3ed71512bd0e66525c1251fd0de86a441f2e6 | [] | no_license | kstar/CtCI-Testcases | 8c414c9ba0136ea40cd331e8d7e482e14131f3e5 | c8e16e725bccad64d11d978316d4d1ecb3ce90f1 | refs/heads/master | 2021-01-13T12:17:38.445104 | 2017-01-07T12:47:28 | 2017-01-07T12:47:28 | 78,273,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | cpp | prob_04.cpp | /***************************************************************************
prob_04.cpp -
-------------------
begin : Mon 10 Oct 2016 03:30:45 CDT
copyright : (c) 2016 by Akarsh Simha
email : akarsh.simha@k... |
1433d6b40c8859a1b65e3b67b4e841e91ecc8ac7 | dcc4cf1b34bbe254d976447ae957388d7507a70f | /games-generated/Crash Course Game/Export/mac64/cpp/obj/include/openfl/events/JoystickEvent.h | 92ddb2a015785a7d60ac343874835ecd5491908c | [
"MIT"
] | permissive | dylanmarcus/stencylworks | fe2bfd4e0bf16915bc9a7babcb681d7de5365dd5 | 06bc44e5d04101f61c70cabd64b23c69ef043c43 | refs/heads/master | 2020-12-25T23:47:22.985344 | 2015-04-22T02:21:18 | 2015-04-22T02:21:18 | 34,361,979 | 1 | 0 | null | 2015-04-22T02:21:18 | 2015-04-22T01:40:02 | C++ | UTF-8 | C++ | false | false | 1,698 | h | JoystickEvent.h | #ifndef INCLUDED_openfl_events_JoystickEvent
#define INCLUDED_openfl_events_JoystickEvent
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#include <flash/events/Event.h>
HX_DECLARE_CLASS2(flash,events,Event)
HX_DECLARE_CLASS2(openfl,events,JoystickEvent)
namespace openfl{
namespace events{
class HXCPP_CLASS_ATTRIBUTES J... |
3603d29d264417a3d32edcb95451387669e3d79f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /net/filter/source_stream.cc | f31a83863f8f7923ed89098c2350e5bf546a798b | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 388 | cc | source_stream.cc | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/filter/source_stream.h"
namespace net {
SourceStream::SourceStream(SourceType type) : type_(type) {}
SourceStream::~SourceStream() = default;
std::string Sour... |
7ac47b7f7ceb6513cae18fe9824ba21cf512e6db | 11130633fe59b222da0696dc05e72ac30871a573 | /Problem_Solving/baekjoon/BFS/1018_repaint_chess_board/repaintBoard.cpp | c1e7bce597248baf620e9ad9679f3b1787d762bc | [] | no_license | Jin-SukKim/Algorithm | 024aa77c6bf63666910a1eb03407e808a05307ec | 5f2a14fe1f64032126df55b1eadc1580a32735f3 | refs/heads/master | 2023-09-01T20:50:13.150780 | 2023-09-01T07:54:32 | 2023-09-01T07:54:32 | 263,555,962 | 4 | 0 | null | 2023-02-14T14:36:38 | 2020-05-13T07:24:51 | C++ | UTF-8 | C++ | false | false | 1,008 | cpp | repaintBoard.cpp | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
int fixLine(std::string& s, std::vector<char> &pattern, int j)
{
int count = 0;
for (int m = j; m < j + 8; m++)
{
if (s[m] != pattern[m % 2])
count++;
}
return count;
}
int countBoard(std::vector<std::string>& board, int i, int j)
... |
b11c6853bd51d8f822584f959c8c534519eb7021 | c4be633d1d95cfce6b94669bc59352efc75d18fc | /BuilderBlackJack/Game.h | 46a4d437700f5fff176ed35b92ef1ae78de87a27 | [] | no_license | dmkrch/Blackjack | 8a3b03b50f9dccd143bf09523629e202ef9e3037 | ff647f9fa25ec486c09729f8ba89b394bbd1f1e6 | refs/heads/master | 2022-11-07T06:31:26.572741 | 2020-06-17T17:46:40 | 2020-06-17T17:46:40 | 273,040,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | h | Game.h | #include <vector>
#include "Player.h"
#include <string>
#include <vcl.h>
#include "Main.h"
#ifndef GameH
#define GameH
class Game
{
private:
int rounds;
double bet_money; // ammount of money that player must bet
std::vector<Player> players;
public:
Game();
/* Function makes preparationos to the game */
void... |
7853b4573fc04494f19fd58497234c79e32126c2 | bf343216edcf9fb689cd2ef38d1ddf23138559b0 | /dstSIMDMatrix.h | 3f8835e129e58732445335d158de60bf32170c2f | [
"ISC"
] | permissive | hglm/DataSetTurbo | 17a5a54b44c09941f237fe39ab1602e2ecf31a69 | 37d901cbfbeeaa52230d34b20adaac27a2f3432b | refs/heads/master | 2021-01-01T05:41:23.829160 | 2015-05-02T09:08:48 | 2015-05-02T09:08:48 | 27,776,710 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,888 | h | dstSIMDMatrix.h | /*
Copyright (c) 2014 Harm Hanemaaijer <fgenfb@yahoo.com>
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 D... |
576582eef3159ca6476cc1c807b66287182bce59 | fd3f046382bc78baf573d164d0911ae7ab71571c | /sources/Pawn.cpp | 7e8c5d6b56065939203c3ad17272655cd2713e57 | [] | no_license | Minik7k2/Chinczyk | e7d7c6c799b65702312455c9f0b797e0bdbd5879 | 99ae7e0bf075c700f7e2100ac52c49155359e3d2 | refs/heads/main | 2023-02-24T02:35:48.377607 | 2021-01-28T20:09:12 | 2021-01-28T20:09:12 | 330,653,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | cpp | Pawn.cpp | #include <iostream>
#include <SFML/Graphics.hpp>
#include "Pawn.hpp"
#include <string>
using namespace std;
using namespace sf;
Pawn::Pawn()
{
}
void Pawn::draw(RenderWindow &window)
{
window.draw(pawnFigure);
}
void Pawn::set_color(int color)
{
pawnColor = color;
loadTexture();
}
void Pawn::loadTexture()
{
... |
b1519631dd8e6e4d411484eb3c0cd0f446c0129b | 88cc420e751989fe8811851aa74e067d57360740 | /Skyrim/src/FormComponents/Condition.cpp | 306dd67e7cff038d6bdca155bb5a237df08100e7 | [] | no_license | clayne/SKSEPlugins-powerof3 | 3085a213b07df78f4d915d9e53637a40a8245116 | 2d55e7f0966bfd23c330ef05a692213965554eda | refs/heads/master | 2022-05-21T00:10:29.886599 | 2019-11-03T19:37:32 | 2019-11-03T19:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | Condition.cpp | #include "Skyrim/FormComponents/Condition.h"
Condition::ComparisonFlags::ComparisonFlags() :
isOR(false),
usesAliases(false),
global(false),
usePackData(false),
swapTarget(false),
opCode(Opcode::kOpcode_Equal)
{}
Condition::Node::Node() :
next(nullptr),
comparisonValue(0.0),
handle(0),
unk0C(0),
functionID... |
9b34e69ef3477078febdc76c7cb0c58d7d781c8d | 230dc58a7f0a82cd11e3bef4a0ba56e3a341c5ad | /Timer.cpp | 18a681fbc536f7bd9f8e29dfd4c2c7182e10bd93 | [] | no_license | Zantiki/NetProg | 6ea026c7d6f8239c7c45fffd307d7c57eca73272 | 0641292603871259b2da2eb75083cfee4c9acdcc | refs/heads/master | 2021-01-01T00:53:26.273406 | 2020-03-05T09:44:27 | 2020-03-05T09:44:27 | 239,106,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | cpp | Timer.cpp | //
// Created by Jakob on unknown date.
//
#pragma once
#include <chrono>
using namespace std;
class Timer
{
private:
chrono::high_resolution_clock::time_point start;
chrono::high_resolution_clock::time_point end;
public:
void set()
{
start = chrono::high_resolution_clock::now();
re... |
a883f8cbf28a957c3316752921c019890a8d643d | 6f04702ec9347d69feacb0a7f4d9fd21beaae387 | /bit manipulation/power^2.cpp | c6e29202b67b0558fefdddf5c4485318670aab43 | [] | no_license | MohdOwais22/DSA-cpp | b45889e80bab9462a17e9f39a7c205792b05edb0 | 22662241a1fffdad52722d579276df25ab473761 | refs/heads/main | 2023-09-01T23:05:16.966131 | 2021-10-26T15:59:28 | 2021-10-26T15:59:28 | 413,727,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | cpp | power^2.cpp | //wap to check if given no. is power of 2
#include <iostream>
using namespace std;
bool isPower2(int n){
return (n && !(n & (n-1)));
}
int main(){
cout<<isPower2(11)<<endl;
return 0;
} |
7b7d8d68cf0adb100273fad3933e0e5cb1e39567 | 78297bc868d588dd7a16cfea059ef7365ba18622 | /lib/administration/zone/src/zone_administration.cpp | 8430ffaae0eaae8f1ab539f51f7075733711b18b | [
"BSD-3-Clause"
] | permissive | irods/irods | ab72a41fdf05a4a905c3e3a97bb7ba3c2a6ae52d | f3ccaa842218e477395ebcf553639134433b63ee | refs/heads/main | 2023-09-01T20:12:33.322002 | 2023-08-23T18:22:59 | 2023-08-31T13:41:31 | 14,724,975 | 381 | 167 | NOASSERTION | 2023-09-11T18:18:14 | 2013-11-26T18:10:18 | C++ | UTF-8 | C++ | false | false | 4,009 | cpp | zone_administration.cpp | #include "irods/zone_administration.hpp"
#ifdef IRODS_ZONE_ADMINISTRATION_ENABLE_SERVER_SIDE_API
// The server maintains a list of the zones known to the system.
// The library takes advantage of this information where possible to avoid
// unnecessary network and database operations.
extern zoneInfo* ZoneInfoHead; // ... |
b95f2f1e4c5eb58110c0f92ec68db2131efce380 | 9d8e31db923601fa448871aa439aca7fb1bfca87 | /StepWay/source/Platform/OpenGL/GLShader.cpp | 09f69567fe36017971b5af98cc0b85c8bf89289f | [] | no_license | sashabusse/StepWay | 19b6fad6bf02e3bf2f03ca34ea87f9d07bc388a8 | c3746f5b54a68a9f1026bb538ed4da510d8225af | refs/heads/master | 2021-06-28T08:50:55.859426 | 2020-10-09T14:25:27 | 2020-10-09T14:25:27 | 167,834,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,268 | cpp | GLShader.cpp | #include "StepWayPCH.h"
#include "GLShader.h"
#include "ErrorHandling.h"
#include "glm/gtc/type_ptr.hpp"
//remove
#include <iostream>
#include <fstream>
namespace StepWay
{
namespace Graphics
{
namespace OpenGL
{
GLShader::GLShader():
m_Program(NULL)
{
}
void GLShader::SetUpFromSource(const st... |
818588ce023ad90efc3de5be3a08d85e1d25c114 | 639aa908a9cfc8cd7b969e328e092d3e847187ee | /src/using_markers_rviz/src/MarkerBasicControls.cpp | cfe7cec60cef66b44ba4bd007dda3258bba1473b | [] | no_license | pengboyemo/Ros | 4f34eea65d8154bd2eb248bf62712deb1b059864 | a2ca990fff76414d83ca5c3a622f53493e2deb9b | refs/heads/master | 2022-05-01T10:53:34.194307 | 2022-04-01T07:44:03 | 2022-04-01T07:44:03 | 228,379,978 | 0 | 0 | null | 2019-12-16T12:14:14 | 2019-12-16T12:14:13 | null | UTF-8 | C++ | false | false | 21,148 | cpp | MarkerBasicControls.cpp | #include <ros/ros.h> //系统文件
#include <interactive_markers/interactive_marker_server.h>
//// 可视化交互 物体 interactive marker类型 visualization_msgs::InteractiveMarker
#include <interactive_markers/menu_handler.h>
//鼠标下拉菜单库
#include <tf/transform_broadcaster.h>//坐标变换库
#include <tf/tf.h>
#include <math.h> //数学函数库
using names... |
406901cf42442f0746de3e26a30714162d820872 | 23c88b6e0d21a68689dbef1cf89ef284947c2497 | /BattleTank/Source/BattleTank/Private/TankMovementComponent.cpp | 6684889c1ec45fb28778a29428f6245a76e7acb0 | [] | no_license | mikeohl/Battle-Tank | 2137be209b09206585e6222d94fdeeefa1645057 | 4cc1a8cfa7027642559e98551078472b7d6a2be8 | refs/heads/master | 2020-03-15T23:17:02.943413 | 2019-08-06T15:08:53 | 2019-08-06T15:08:53 | 132,387,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,311 | cpp | TankMovementComponent.cpp | // Copyright Michael Ohl 2018-2019
#include "TankMovementComponent.h"
#include "TankTrack.h"
void UTankMovementComponent::InitializeTracks(UTankTrack* LeftTrackToSet, UTankTrack* RightTrackToSet)
{
LeftTrack = LeftTrackToSet;
RightTrack = RightTrackToSet;
}
void UTankMovementComponent::Move(float In... |
619f17609be8693702c377dd7f96846c2873d10c | d76db7ad41bd606b2e7c4ef9ff1cef135626954e | /AISimulation/src/TestEnvironment/Physics/Collision/DistanceTo.h | 994590ff59068bb37f52387c6eddd339914b04d4 | [] | no_license | agarzonp/AISimulation | 02ca2af09e723638be53af3f28d75afb43359f72 | 9fbbd4e8e453b9a6fcd34624a97ae64c8299774b | refs/heads/master | 2021-09-15T10:57:56.917612 | 2018-05-31T07:03:58 | 2018-05-31T07:03:58 | 121,757,789 | 1 | 0 | null | 2018-05-09T23:31:29 | 2018-02-16T14:08:23 | C++ | UTF-8 | C++ | false | false | 283 | h | DistanceTo.h | #ifndef DISTANCE_TO_H
#define DISTANCE_TO_H
class DistanceTo
{
public:
// Distance from point to plane
static float Plane(const MathGeom::Vector3& point, const PlaneCollider& plane)
{
return glm::dot(point, plane.normal) - plane.d;
}
};
#endif // !DISTANCE_FROM_POINT_TO_H
|
3833bb364c5712b8ed16f4794fa8a29dd05508f6 | 4cba6096a61c0ccda0adfa0e3de6b9402c93a005 | /gimp/data/blueprints/back/usr/include/c++/7/ext/pb_ds/detail/trie_policy/sample_trie_access_traits.hpp | b0f41693028b5283bb26dc8f482f9ac369b44477 | [] | no_license | StanfordSNR/gg-results | da3de3ce52235c187c6178b0ceab32df2526abf5 | 16ac020603e4b1ef96b2d8c27d1683724cbb30b8 | refs/heads/master | 2021-08-06T16:11:06.747488 | 2019-01-05T21:41:24 | 2019-01-05T21:41:24 | 103,858,663 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 163 | hpp | sample_trie_access_traits.hpp | // GGHASH:VycTFzwl2OoMuqSQKL4Etkr6McP8KYR6ngFbrPC_FWec00000a99
#ifndef PB_DS_SAMPLE_TRIE_E_ACCESS_TRAITS_HPP
#define PB_DS_SAMPLE_TRIE_E_ACCESS_TRAITS_HPP
#endif
|
a7fc50237415013052cd522dd06625bb2c2d7bd7 | 911bcc69ad209abeae1b48fd05f616ed9f56f66b | /code/bsformula.h | 62322842a6073f6845e5919702380ed59174c9a1 | [] | no_license | Juice-2020/Implied-Tree-Pricer | 38e31f8a0a740295b6de2cd28f534305e1ddd0ca | f6bdac651260578c11c00166af4259c3de116fb4 | refs/heads/master | 2022-12-16T03:33:16.129497 | 2020-09-20T08:17:00 | 2020-09-20T08:17:00 | 297,028,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,406 | h | bsformula.h | //
// BSformula.h
// Implied Tree
//
// Created by 陈家豪 on 2020/4/13.
// Copyright © 2020 陈家豪. All rights reserved.
//
#ifndef BSformula_h
#define BSformula_h
#include <iostream>
#include <cmath> // for std::exp()
#include <cassert> // for assertion on inputs
enum OptType{C, P};
double cnorm(double x);
double bsf... |
d22d2577305b70c1c294af991d6627a26d76be55 | 9870e11c26c15aec3cc13bc910e711367749a7ff | /TC/tc_tchs_1_500.cpp | 3d833ddd450d1f29ab5d7cda1b6957fe1027cc1c | [] | no_license | liuq901/code | 56eddb81972d00f2b733121505555b7c7cbc2544 | fcbfba70338d3d10bad2a4c08f59d501761c205a | refs/heads/master | 2021-01-15T23:50:10.570996 | 2016-01-16T16:14:18 | 2016-01-16T16:14:18 | 12,918,517 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,955 | cpp | tc_tchs_1_500.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cctype>
#include <ctime>
#include <cstdarg>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <queue>
#include <set>
#include <map>
#... |
79ac3d4b219a1fdb9b998cd98f1671f6ba1cdbeb | fe833387af9d007043af2a596ec9d151fe422ee4 | /QDbusSender/send.cpp | c2df7bf1d9dba62233b13dfc29ce2eac702c8415 | [] | no_license | SeanLee00/qtPathview | 5ad739b8d098636d00b03e1d2d50a9ec35ded14a | b9072b1cf21e40e0faaa1eb34311785442a5b800 | refs/heads/master | 2023-02-23T07:32:14.713297 | 2021-01-25T03:50:00 | 2021-01-25T03:50:00 | 332,268,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,161 | cpp | send.cpp | #include "send.h"
#include <QTime>
#include <QRandomGenerator>
SEND::SEND(QObject *parent)
{
careateRandomNumber();
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
timer->start(1000);
//
WorkerThread t;
t.start();
}
void SEND::careateRandomNumber()... |
599107a2a799fae5bdbb3c5fabd7a97f17eaf705 | b1e740d32f7c47358821469547fade2657596231 | /AirPollution/Group.cpp | a9d134e90ba1fd571f77c7c31de9d9e0d768829f | [] | no_license | FelixHoer/AirPollution | cd5edf7b29e06b2f0eccda25228b10691556da7e | c389846bfd460a5dda008c97a648f17697a5afde | refs/heads/master | 2016-09-06T01:10:39.868052 | 2015-01-24T15:55:45 | 2015-01-26T14:40:47 | 26,930,156 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,221 | cpp | Group.cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <glm/glm.hpp>
#include "Window.h"
#include "Group.h"
Group::Group()
{}
Group::Group(char* name) : Node(name)
{}
void Group::addChild(Node* child)
{
child->setParent(this);
children.push_back(child);
recalculateBoundingSphere();
}
void Group:... |
13944f54b08e06d4b3419a0018d4e1ba7c72a796 | 71501709864eff17c873abbb97ffabbeba4cb5e3 | /llvm13.0.0/libc/src/string/memcpy.cpp | 5e70e00db1b9173bfb3920cabade7d8f5f79d89f | [
"Apache-2.0",
"LLVM-exception",
"NCSA"
] | permissive | LEA0317/LLVM-VideoCore4 | d08ba6e6f26f7893709d3285bdbd67442b3e1651 | 7ae2304339760685e8b5556aacc7e9eee91de05c | refs/heads/master | 2022-06-22T15:15:52.112867 | 2022-06-09T08:45:24 | 2022-06-09T08:45:24 | 189,765,789 | 1 | 0 | NOASSERTION | 2019-06-01T18:31:29 | 2019-06-01T18:31:29 | null | UTF-8 | C++ | false | false | 2,441 | cpp | memcpy.cpp | //===-- Implementation of memcpy ------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
580ecac4656489a444b5dc4d374d1c7966ae4f9d | 04a07a5a707b09c92a7704a01b6f6c1ad7c77012 | /src/exstl.cpp | 4a310a65b12002df21066960591166fd3253a2db | [] | no_license | centixkadon/libexstl | 0d5bea01d1439098568a4ec5c3fc346d969a9a19 | 5129434adb4bad25e039ca9fa06b98d23c2e0a5e | refs/heads/master | 2021-04-15T04:45:45.125008 | 2018-04-15T16:33:36 | 2018-04-15T16:33:36 | 126,823,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | cpp | exstl.cpp |
#include "exstl.hpp"
namespace std {
thread_ostream tout(cout);
thread_endl_type tendl(tout.endl());
namespace chrono {
tick_diff::tick_diff(string const & str) : _str(str), _tick(high_resolution_clock::now()), _diff(0.0) {
_str = _str.substr(0, tick_diff_length);
_str += string(tick_diff_length - ... |
894b6fd449ab3fc8f750d8a8182cda2e4e63be63 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_949_httpd-2.4.18.cpp | 3b8404f303c3ff035863524d8a0ad95e65f790b1 | [] | 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 | 246 | cpp | httpd_repos_function_949_httpd-2.4.18.cpp | static const char *expr_var_fn(ap_expr_eval_ctx_t *ctx, const void *data)
{
char *var = (char *)data;
SSLConnRec *sslconn = ssl_get_effective_config(ctx->c);
return sslconn ? ssl_var_lookup_ssl(ctx->p, sslconn, ctx->r, var) : NULL;
} |
07db64acbf04601bf702ddd7ebc1250bc1ffa95c | b61d6293c1e09cc4482a9dbb5993ea5f22a3edd3 | /Project/Engine/Primitives.h | 6a7dc7359d14eb1a3f8f2f93748b011408e857b9 | [] | no_license | Freedomhan/3D-Game-Engine | c4e56e9328297afcb46769bda578cdeb97e188d7 | c2b7dfa752e0cdca13d7203b594228966fa2c0e1 | refs/heads/master | 2021-01-25T14:32:37.332171 | 2016-10-28T01:54:40 | 2016-10-28T01:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | h | Primitives.h | //Protection
#pragma once
//For data types
#include <GL\glew.h>
//Cleaner
static class cPrimitives
{
public:
static const GLfloat CUBE_VERT_DATA[24]; //This stores default shape data - Formatting is: x, y, z
static const GLushort CUBE_ELEMENT_DATA[36]; //Contain faces, by joining verts
static const GLfloat CUBE_UV... |
fbb87f995ef61616f9747f33dacffd957954f9e0 | 345862d6b503d624d17abce4855d2da066ee91df | /editor02/FPSCamera.h | 4efa9a6fb77cbf208065b5cf4ddbb24cd2e01a4d | [] | no_license | trezor555/Editor | 04b6dbd01aaffbcd5b6243a3ef5cce3576b82e11 | badd28a35d35d57e3aee217733aeb0a548ff4bc1 | refs/heads/master | 2021-01-17T10:20:11.238029 | 2016-07-26T22:17:58 | 2016-07-26T22:17:58 | 56,427,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | h | FPSCamera.h | #ifndef FPSCAMERA_H
#define FPSCAMERA_H
#define GLEW_STATIC
#include <glm.hpp>
#include <GL/glew.h>
#include "BoundingBox.h"
class FPSCamera
{
public:
FPSCamera(float ScreenWidth, float ScreenHeight);
FPSCamera(float ScreenWidth, float ScreenHeight, glm::vec3 cameraPos, glm::vec3 cameraFront, glm::vec3 cameraUp);
vo... |
64aa8bd2032cad59027a851257c75fc99777fdec | aeecb7f226ffa7c68b793455c1b8cc59acd89c32 | /PathFinding/HybridAstar/Heuristics/HolonomicHeuristic.hpp | 7a04b5943fdc0c0c10eb321200452e2b17cce9d1 | [] | no_license | zhangzhecqut/carmen_hybrid_astar | 72de9c46b377f4a15be1c7bc26a6ba414a6736e6 | a538f7b7dec724a8eca37fc2a5f211cee3de979e | refs/heads/master | 2021-09-25T04:14:17.128854 | 2018-10-18T01:27:06 | 2018-10-18T01:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,198 | hpp | HolonomicHeuristic.hpp | /*
// Author: josiasalexandre@gmail.com
// Based on the Matt Bradley's Masters Degree thesis and work
// Copyright (c) 2012 Matt Bradley
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software... |
29c75059ffbff03a706ee30e85b5ebd91602da28 | 7ab3757bde602ebe0b2f9e49d7e1d5f672ee150a | /easyeditor/include/ee/Camera.h | e7b0fbd837df0b677c2f06452f61585e7bcc85e1 | [
"MIT"
] | permissive | brucelevis/easyeditor | 310dc05084b06de48067acd7ef5d6882fd5b7bba | d0bb660a491c7d990b0dae5b6fa4188d793444d9 | refs/heads/master | 2021-01-16T18:36:37.012604 | 2016-08-11T11:25:20 | 2016-08-11T11:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 602 | h | Camera.h | #ifndef _EASYEDITOR_CAMERA_H_
#define _EASYEDITOR_CAMERA_H_
#include <SM_Vector.h>
#include <string>
namespace ee
{
class Camera
{
public:
virtual ~Camera() {}
virtual std::string Type() const = 0;
virtual void Reset() = 0;
virtual sm::vec2 TransPosScreenToProject(int x, int y, int width, int height) const = ... |
0193e8c9d487dd4d2c8e9bdd3b477b253396b61e | 900be47870a62b8055b99edac9e1b0f6c6f0dc35 | /Source/Core/Platform/Guid.h | ca78ad42544316a212e0d22c3f4d101e73494bab | [] | no_license | simeks/pluto | e24fa1809eb06aeb8d41126402ab3825dae0f9d2 | 9f28fce900cbc8d7ebb56b79a9b6eaebb8141a67 | refs/heads/master | 2021-03-28T20:23:49.109098 | 2018-02-22T13:59:03 | 2018-02-22T13:59:03 | 75,561,384 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,743 | h | Guid.h | #ifndef __CORE_PLATFORM_GUID_H__
#define __CORE_PLATFORM_GUID_H__
#include <Core/Common.h>
/// Represents a globally unique identifier
struct Guid
{
Guid()
{
d1 = d2 = d3 = 0;
for (int i = 0; i < 8; ++i)
d4[i] = 0;
}
uint32_t d1;
uint16_t d2;
uint16_t d3;
uint8... |
9be9bc50e6eab7664187436ddd73260da8d49505 | 4cc67026ec3948d9100500adddafb148fb665649 | /HuffmanNode.h | 3f516d1f3a4db059fc628cb9d69a49d33af22580 | [] | no_license | shiweixian2/HuffmanTest | f0ca97cf486056fdbb76cef69f5038c12a9e3d2b | ea56e521512f6db79dcdb5683cd8ecf4a02a8a8f | refs/heads/master | 2021-01-10T03:46:51.082624 | 2016-02-28T08:21:36 | 2016-02-28T08:21:36 | 52,707,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | h | HuffmanNode.h | /**
* @author 石炜贤
* @date 2016/02/27
*
* 构建霍夫曼树,使用最小堆
*/
#ifndef HUFFMANTEST_HUFFMANNODE_H
#define HUFFMANTEST_HUFFMANNODE_H
template <class T>
class HuffmanNode{
public:
T key; //权值
HuffmanNode *left; //左孩子
HuffmanNode *right; //右孩子
HuffmanNode *parent; //父节点
/**
* 构造函数
*/
Hu... |
1abeab8fd4f5b9d8caae0df7432df41896d16f68 | 917f7bf53f08a43a6b0d49aacc782e35bbc2a17c | /Boss.h | de4307622d105cc4f39613152fa6890dbe5c979a | [] | no_license | deonquentinzoss/Type.Start- | 43ed9a7ccfbb919946446919301675b5df726f01 | 90a6d0df18705360d24aed14ffa25c648029aeef | refs/heads/main | 2023-04-27T00:36:10.318344 | 2021-05-30T05:00:22 | 2021-05-30T05:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,019 | h | Boss.h | #include "Object.h"
#include "Setup.h"
#ifndef Boss_h
#define Boss_h
class Boss
{
public:
Boss(SDL_Renderer* renderer)
{
this->renderer = renderer;
blinkTime = SDL_GetTicks();
walkTime = SDL_GetTicks();
setupClips();
loadFont();
}
~Boss()
{
free();
}... |
a141a2244eb8c82cb9f383efc03113750e0c56c1 | 164731f7b7932fc5d2eea480727274f5de6bcb2b | /WrapperRSA.h | ed09535455f9eecde2374c0ac2eea8c722a2ba6d | [] | no_license | dengkangyang/WrapperRSA | 9c887558a1733887574f4be11753c6dd72ba2069 | fe1eb30437a5b554e2fe95112c69a9b81eea4a27 | refs/heads/master | 2021-09-01T12:30:15.431372 | 2017-12-27T01:38:00 | 2017-12-27T01:38:00 | 115,467,102 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,212 | h | WrapperRSA.h |
/*
对openssl RSA算法的封装
RSA算法基础知识:
RSA算法是由 Rivest,Shamir和Adleman在1978年提出发一种公匙密码算法.
RSA算法是第一个设计完善的公匙密码算法. 该算法的数学基础是Euler定理, 并建立在大整数分解困难性之上.
即: 将两个大素数乘起来上相对容易的, 而分解两个大素数的积是计算上不可行的.
RSA算法描述:
密匙生成:
找两个随机的大素数p和q, 计算n=pq 和 f(n)=(p-1)(q-1) ;
选择随机数e(一般用0x10001), 满足e与 f(n)互素.
计算 d = exp( e, -1 ) mo... |
49672780bc16d3e2a37982e68e1fc50dbe744a28 | 2ad44872929570ec56666024ca4acdef3ba8f7fe | /src/Entity.h | 8426e941a7c8355ace6ac44d397b673fdb5b70ff | [] | no_license | lakritidis/SHTECLib | 4978b4df89b1e2b0232a69831f0be4c4035960e2 | d87f45cdb543e47df47102ff9dd4209d6ef1f97b | refs/heads/master | 2023-02-22T13:26:09.664520 | 2023-02-20T08:27:00 | 2023-02-20T08:27:00 | 276,211,074 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,650 | h | Entity.h | #ifndef ENTITY_H
#define ENTITY_H
class Entity {
protected:
uint32_t id;
uint16_t type;
_score_t weight;
uint32_t real_cluster_id;
/// The following three elements constitute the Entity's Feature Vector. We implement it in
/// this way and not as a separate class, in order to avoid an additio... |
f5a1bbb33d24ec385b9c061e12577f93443edadf | 218978f926542320cb7287d8c8dffbca4c10cd28 | /TextureBrush/renderer/Geo2D.h | b638363ea16015be2860ff74b20022c66a8b5211 | [] | no_license | m-Just/TextureBrush | 5d0b36f3d103794baf81a041b91af224781a423d | 785111e56b9ba9c5490b1da086438b382c9b1a64 | refs/heads/master | 2021-01-19T06:43:20.199910 | 2016-07-30T12:32:30 | 2016-07-30T12:32:30 | 62,200,567 | 0 | 2 | null | 2016-07-27T07:40:16 | 2016-06-29T06:15:28 | C++ | UTF-8 | C++ | false | false | 3,924 | h | Geo2D.h | #pragma once
#include "../preHeader.h"
class Geo2D
{
public:
/* general */
static void InterpLinear(glm::vec2 & v, double t, const glm::vec2 & v0, const glm::vec2 & v1);
/* reflection over line */
static void PointReflectionOverLine(glm::vec2 & v, const glm::vec2 & p, const glm::vec2 & v1, const glm::vec2 & ... |
d9cbb22d8a2f1281b2795d26312bb5e32b15a1d7 | 04276306714223096567cf2587dc028f8afc1ce2 | /CompilerCreationTool/Grammar/GrammarProductionFactory.h | 9de340128f5bc519a92b5db9add97266cc8a6d11 | [
"MIT"
] | permissive | vstdio/CompilerCreationTool | 5523eb2a74b3d41f31bf7a69599fb9b2112ae9c9 | 03500f95e9c90f23685457124842d3feda2e821f | refs/heads/master | 2022-02-09T15:12:24.921436 | 2019-06-09T18:05:05 | 2019-06-09T18:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | h | GrammarProductionFactory.h | #pragma once
#include "IGrammarProductionFactory.h"
namespace grammarlib
{
class GrammarProductionFactory : public IGrammarProductionFactory
{
public:
std::unique_ptr<IGrammarProduction> CreateProduction(const std::string& line) override;
};
}
|
b74ce0ce0d94e6131d239db6528306db4627d7bf | 35a83cad99b5e69540ccd647d6e0be9735d0035a | /Building-the-Matrix/src/ImageLoader.cpp | a407d2090e66d2cd941d48a7a699e798b8bdd09e | [] | no_license | bencatterall/Building-the-Matrix | 144d94c2b193f9081f39094ce625c345f4d591b8 | a61bcd1aff306035e4954b4631ca9b7dc77681b4 | refs/heads/master | 2021-05-03T14:22:58.316805 | 2015-03-02T00:45:25 | 2015-03-02T00:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | cpp | ImageLoader.cpp | #include "ImageLoader.hpp"
#include "../Dependencies/LodePNG/lodepng.hpp"
#include <iostream>
#include <string>
#include <vector>
std::vector<unsigned char> ImageLoader::loadImage(std::string filename, unsigned int& width, unsigned int& height) {
//raw pixels in RGBA format
//4 bytes per pixel
std::vector<unsigned... |
65a93bb461af507b3d26d8e3ad9cd8397d1fd902 | 19194c2f2c07ab3537f994acfbf6b34ea9b55ae7 | /android-31/android/app/RemoteInput.def.hpp | effe84e7742275d15e7abb83b7f4712693e9b863 | [
"GPL-3.0-only"
] | permissive | YJBeetle/QtAndroidAPI | e372609e9db0f96602da31b8417c9f5972315cae | ace3f0ea2678967393b5eb8e4edba7fa2ca6a50c | refs/heads/Qt6 | 2023-08-05T03:14:11.842336 | 2023-07-24T08:35:31 | 2023-07-24T08:35:31 | 249,539,770 | 19 | 4 | Apache-2.0 | 2022-03-14T12:15:32 | 2020-03-23T20:42:54 | C++ | UTF-8 | C++ | false | false | 1,857 | hpp | RemoteInput.def.hpp | #pragma once
#include "../../JObject.hpp"
class JArray;
class JArray;
namespace android::content
{
class Intent;
}
namespace android::os
{
class Bundle;
}
namespace android::os
{
class Parcel;
}
class JString;
class JString;
namespace android::app
{
class RemoteInput : public JObject
{
public:
// Fields
st... |
76c9e4e617fcb86bd96f04bddb63c3727e8353cb | 5644c43e8df5d16c7b4ffec19aafc2b3ffdd69cb | /SDKD_2018_Spring_Team_Contest_F/D.cpp | ec8d67d37285c247309c4ec3bef24f3d287536a6 | [] | no_license | ShiliXu1997/ACM_Code | cd7f8a414cb72d305df3836a0e3196a84d246137 | 69245f2f99c3b4af85cc9b7bbc4a9666e3cf8e0e | refs/heads/master | 2020-04-17T04:09:30.934796 | 2020-02-26T07:26:43 | 2020-02-26T07:26:43 | 166,216,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | D.cpp | //************************************************************************
// File Name: D.cpp
// Author: Shili_Xu
// E-Mail: shili_xu@qq.com
// Created Time: 2018年04月07日 星期六 13时36分27秒
//************************************************************************
#include <cstdio>
#include <cstring>
#include <algorithm>
... |
f0794fa97b61ca56bc0ae0d5b661772a71360858 | db6b3891c6f872c1c156797ba3e0c0a67a905203 | /lib/Rest/EndpointList.h | ab4d48d9c10ccc64ea8ab35dc5d96b84844f4f15 | [
"Apache-2.0"
] | permissive | AALEKH/arangodb | 119c23a957dc381c7c15d4116c1621cb3b3bbea7 | d193c2ff915c749c7838c8225fe6e2c90a324b4d | refs/heads/velocystream | 2021-01-09T05:11:06.964249 | 2016-05-22T18:37:31 | 2016-05-22T18:37:31 | 50,135,630 | 0 | 0 | null | 2016-03-03T07:57:14 | 2016-01-21T20:46:45 | C++ | UTF-8 | C++ | false | false | 4,662 | h | EndpointList.h | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
1485385c53d4aa3f834049561a8848c16d8f869f | d96567f03bbd1e2bc70393c65272fcabb6c50467 | /LDeque.cpp | 7d662e85df5fa2361154dd2c72d539171b15928b | [] | no_license | bryanlopezrr/NotationConverter | b6df258b9f2fd5aa732b03b536bf4b415da0c463 | d9bad49c321b183fa137877f2f3772bdd4fafeea | refs/heads/master | 2020-06-03T05:54:01.556839 | 2019-06-12T00:32:53 | 2019-06-12T00:32:53 | 191,469,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,266 | cpp | LDeque.cpp | #include "LDeque.hpp"
/*FYE: Functions were provided by the lecture notes given by Dr. Oropallo on this particular
implementation of a deque data structure*/
//CONSTRUCTOR/DESTRUCTOR
//----------------------------------------------------------------------------------------->
LDeque::LDeque() : D(), n(0) {}
LDe... |
b03416d0ecd2acb57267ee8e12577f200bae4d08 | 101d466d0b709e713c7fceeb64930428ac21d894 | /链表中倒数第k个结点/链表中倒数第k个结点/链表中倒数第k个结点.cpp | 87aee0d37632ff8f9f15d0a765fad810fa03d3b9 | [] | no_license | jfyh5388/SwordOffer | 3a37adfa903b80c0728c3a6e60f830962ee2ed86 | a1798946067e0e559430ced17bfde95e94ca7c58 | refs/heads/master | 2021-01-23T05:50:53.312671 | 2018-07-08T02:35:43 | 2018-07-08T02:35:43 | 102,478,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | 链表中倒数第k个结点.cpp | #include<iostream>
using namespace std;
struct ListNode {
int val;
struct ListNode *next;
ListNode(int x) :
val(x), next(NULL) {
}
};
class Solution {
public:
ListNode* FindKthToTail(ListNode* pListHead, unsigned int k) {
unsigned int j=1;
ListNode *p1=pListHead;
ListNode *p2=pListHead;... |
0307b0c9f7b631f7dca9f8848f4db73ff01625d0 | fe1ca47c8095776eabc1d43f784e6139308b4451 | /src/featbin/multiply-vectors.cc | 8bbe54e4f368859fadc1ca7258d7c07f9c26d3a5 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | hhadian/kaldi | 8d281c6d536fba9e9b13b7f25ef697b4013b26d8 | 054af6bda820a96dd8d026d144a5263314f31dd3 | refs/heads/master | 2022-02-27T01:41:23.517680 | 2021-12-18T16:23:52 | 2021-12-18T16:23:52 | 44,244,555 | 13 | 4 | NOASSERTION | 2018-11-16T19:51:57 | 2015-10-14T11:55:09 | Shell | UTF-8 | C++ | false | false | 6,052 | cc | multiply-vectors.cc | // featbin/multiply-vectors.cc
// Copyright 2020 Ivan Medennikov (STC-innovations Ltd)
// See ../../COPYING for clarification regarding multiple authors
//
// 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 o... |
1dbe65e13a2111c2f3a45267217d5703bc251bbe | 493fde66d377d35cdf0f66e4f9357907dc689bcc | /crypto/symmetric_encryptor_unittest.cc | 4001cdcc118820372c2c7fcafd17cd8d855be2c3 | [] | no_license | wqx081/mpr_crypto_system | 46a8c9724c5381847a4068372710d7855b0b2fd0 | 4e09446beb1d9d6b665b276771fb5f0a05fffd79 | refs/heads/master | 2020-04-06T07:07:49.361926 | 2016-08-30T12:34:27 | 2016-08-30T12:34:27 | 64,392,801 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,590 | cc | symmetric_encryptor_unittest.cc | #include "crypto/symmetric_key.h"
#include "crypto/symmetric_encryptor.h"
#include "crypto/symmetric_crypt.h"
#include "base/string_encode.h"
#ifdef MPR_SM4_TEST
#include "third_party/libsm4/MPRSymmCrypt.h"
#endif // MPR_SM4_TEST
#include "base/file.h"
#include "base/file_path.h"
#include "base/file_util.h"
#includ... |
fd5ce9062b7b56e4668157addf030fd5eeb88b45 | 1fd4702fef8fd03fbc909e60cba68c6fa7cc963b | /rush00/Map.cpp | 78fdc62f616e50aa4eafe28ad6fe5dd24966a936 | [] | no_license | vplotton/cpp_pool | b46c4021794cf74d7597c7bb7e3c27b6e90722b6 | 0a920563869f57dcbd3127d25c32d3f5c693f597 | refs/heads/master | 2021-05-01T12:39:48.403465 | 2015-05-08T10:19:50 | 2015-05-08T10:19:50 | 28,803,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | cpp | Map.cpp | #include "Map.hpp"
Map::Map()
{
}
Map::Map(Map const & src)
{
*this = src;
}
Map::~Map()
{
}
Map & Map::operator=(Map const & rhs)
{
if (this != &rhs)
{
/* my implementation, don't forget to change this. */
}
return (*this);
}
std::ostream & operator<<(std::ostream & o, Map const & i)
{
o << "Don't forget ... |
fd881cbf62d163acbde012a23ea3b5d72d668457 | be59d364aca6796e57118a208ee0fdc3c94ec8a6 | /packages/node-libofx/OpenSP-1.5.2/include/InternalInputSource.h | 9e19fa779c5dde52cfe2cffc6398972af3832a3e | [
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"MIT"
] | permissive | actualbudget/actual | 94e983d23df6eeb564fa8b5ff3b9cc63f06dec97 | 63c3d07cb9d6e71ab61f7925ffcaafff870382c6 | refs/heads/master | 2023-09-04T07:06:53.208119 | 2023-09-03T23:15:44 | 2023-09-03T23:15:44 | 486,815,039 | 7,738 | 724 | MIT | 2023-09-14T02:11:25 | 2022-04-29T02:41:34 | TypeScript | UTF-8 | C++ | false | false | 1,345 | h | InternalInputSource.h | // Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#ifndef InternalInputSource_INCLUDED
#define InternalInputSource_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include <stddef.h>
#include "InputSource.h"
#include "Allocator.h"
#include "StringC.h"
#include "types.h"
#ifdef SP_... |
0a4eaff8e484de11230259ea1761ac2b5133f6df | 1791461e6740f81c2dd6704ae6a899a6707ee6b1 | /Contest/The 10th Ji Shou University Campus/F.cpp | 6a2d9a5ecccd143e1d68e541cd823f878cf0e082 | [
"MIT"
] | permissive | HeRaNO/OI-ICPC-Codes | b12569caa94828c4bedda99d88303eb6344f5d6e | 4f542bb921914abd4e2ee7e17d8d93c1c91495e4 | refs/heads/master | 2023-08-06T10:46:32.714133 | 2023-07-26T08:10:44 | 2023-07-26T08:10:44 | 163,658,110 | 22 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | F.cpp | #include <bits/stdc++.h>
#define MAXN 1000005
using namespace std;
int T,n,prime[MAXN], phi[MAXN], mu[MAXN];
bool not_prime[MAXN];
int tot;
inline void LinearShaker(int n)
{
phi[1] = 1LL;
mu[1] = 1LL;
for (int i = 2; i <= n; i++)
{
if (!not_prime[i])
{
prime[++tot] = i;
phi[i] = i - 1;
mu[i] = -1;
... |
8adb5b7480b39331f7eba52f4a0e84c9b3d17925 | 6ee255175a0fd90f5929fd77305f3551063adbba | /4 in a row.cpp | ba00f49ad9cf7ca90e1428c3e185ba90666fc9de | [] | no_license | ludioo/game-4-in-a-row | d4f3db950776676d1aa39a4f29897859f3bd22a2 | 1f81bd33e986db432d7db1e5feca28c3a837b682 | refs/heads/master | 2021-08-31T02:16:21.239856 | 2017-12-20T06:45:49 | 2017-12-20T06:45:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,223 | cpp | 4 in a row.cpp | #include <iostream>
using namespace std;
char pemenang = ' ';
char map[20][20] = {
{"[=^=^=^=^=^=^=^=]"},
{"| | | | | | | | |"},
{"<=#=#=#=#=#=#=#=>"},
{"| | | | | | | | |"},
{"<=#=#=#=#=#=#=#=>"},
{"| | | | | | | | |"},
{"<=#=#=#=#=#=#=#=>"},
{"| | | | | | | | |"},
{"<=#=#=#=#=#=#=#=>"},
{"| |... |
fee3c981f6508e9b5cf09b45aa8ddd4edf82ef46 | a6fb0d94906aeb8b0a41f03e172faf58cfcfb1de | /Project2_string/test_less_than.cpp | 7e6606dd1dea4d86e99e78606adcb403eafcdcd8 | [] | no_license | atennan3/cs23001 | 1c61a04df6c831794b7d2085e8dd4b2245b37382 | e069f7917450a981e0f93a36563bfbacd63a385d | refs/heads/master | 2021-04-27T09:10:52.837912 | 2018-02-22T21:16:37 | 2018-02-22T21:16:37 | 122,508,747 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | test_less_than.cpp | // Tests less than
#include "string.hpp"
#include <cassert>
#include <iostream>
//===========================================================================
int main ()
{
{
// Setup
String str1,
str2;
// Test & Verify
assert(str1 <= str2);
}
{
// Setup
String str1 = "a",
... |
47b9e372c37614542ee1252999775a33c3d4c733 | 406d0b58e2f1e536add8d441f4da6446d64a34af | /skeleton.hpp | 816f7b0e81584c35cb17c5a3babd24487fe31230 | [] | no_license | shinarit/wiz | 2eb3051cc8a5497d21c0db5420b5dc8afdd3d85f | fc97002d2e928dfb6128545e87182b22d61a5147 | refs/heads/master | 2016-09-15T22:17:57.105410 | 2012-09-21T15:00:00 | 2012-09-21T15:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,220 | hpp | skeleton.hpp | //
// author: Kovacs Marton
// email: tetra666@gmail.com
// license: whatever. note my name
//
// skeleton.hpp
//
// skeleton for communicating with the game server
// cobra style
//
#ifndef SKELETON_H
#define SKELETON_H
#include <vector>
#include <utility>
#include <istream>
#include <ostream>
struct Coordinate
{
... |
374c69f003664a99d2fad928ebfa0d184e199827 | e56108a490f9420fa24b8f3644e05e567800aa0e | /test/URI/Test.Encoding.cpp | 26187bef07f3e5c393787e3749561b2fa70f55fd | [
"MIT"
] | permissive | kurocha/uri | 80d07235b54498c2b1fa6921ba945b20345bf96a | b920d01de5323126eaf539d4217d357b47fde64e | refs/heads/master | 2021-06-27T01:07:15.341496 | 2019-09-19T11:26:02 | 2019-09-19T11:26:02 | 97,460,273 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,249 | cpp | Test.Encoding.cpp | //
// Test.Encoding.cpp
// This file is part of the "URI" project and released under the MIT License.
//
// Created by Samuel Williams on 17/7/2017.
// Copyright, 2017, by Samuel Williams. All rights reserved.
//
#include <UnitTest/UnitTest.hpp>
#include <URI/Encoding.hpp>
#include <map>
namespace URI
{
UnitTe... |
1df562954771240c47ea9747caca3c7e83815eb8 | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bseg/boxm2/vecf/tests/test_orbit.cxx | c67e23fca056458804eb9ea5f7dc1552a9120bb4 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 2,073 | cxx | test_orbit.cxx | //:
// \file
// \author J.L. Mundy
// \date 11/19/14
#include <iostream>
#include <fstream>
#include "testlib/testlib_test.h"
#ifdef _MSC_VER
# include "vcl_msvc_warnings.h"
#endif
#include "vgl/vgl_box_3d.h"
#include "vnl/vnl_vector_fixed.h"
#include "vil/vil_image_view.h"
#include "vil/vil_save.h"
#include "vil/vi... |
ee6324ab9c679eddf8f9ebbcfb894dcbe27453da | 8d88c774dd7979401f434c1b0e35e4cb9a42938e | /380.Insert Delete GetRandom O(1).cpp | bc808229c5d66fb2a40d61e38905fe57fe10f3d6 | [] | no_license | yycccccccc/Leetcode | 15a76eca96f6d5420416d806b5372bdf2c55efbf | 8e879cc1495e47f1230e968b941543326cb28f38 | refs/heads/master | 2020-05-27T08:09:58.411710 | 2019-03-28T06:46:43 | 2019-03-28T06:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,550 | cpp | 380.Insert Delete GetRandom O(1).cpp | 题意:
设计一个数组结构能够执行插入,删除和获取随机数字的操作。
方法一:set
思路:
1.用set获取随机数组的操作不是线性的,但是为了熟悉一下set的操作。
2.set的特点是有序和去重,key按照递增排序;unordered_set的特点是去重,key是无序的。
3.set中插入操作是insert(),删除操作是erase(),判断set中有没有想找的值可以用count()来查找,也可以用s.find(值)!=s.end(),表示已经查找到。
4.set需要用迭代器来遍历,可以是从set.begin()开始,到不等于s.end()为止
也可以设置一个迭代器,用advance()函数对迭代器进行偏移操作,advance(it,... |
582c85d696733e4844221baa8e34d57b35b132b3 | da487a14017908e4c65dd63f3629b1f744181166 | /lib/r2ca_lib.cpp | 44d434b87a29fea79bb1fe08e3d68ef4b744572d | [] | no_license | hori-takeshi/rtos_arduino | 81584009c663568294fca20ffe90514bc5054e07 | d6eb9b7fba0ad2462db2419b8379cb7649fe1310 | refs/heads/master | 2023-02-05T10:34:32.860098 | 2020-05-30T01:52:06 | 2020-05-30T01:52:06 | 267,990,886 | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 7,270 | cpp | r2ca_lib.cpp | #include "r2ca.h"
#include "r2ca_lib.h"
extern "C" {
extern void yield(void);
extern void r2ca_ena_int(uint_t intno);
extern void r2ca_dis_int(uint_t intno);
}
#ifdef R2CA_ENABLE_PROFILING
volatile uint32_t r2ca_idle_result;
volatile uint32_t r2ca_isr_result;
volatile uint32_t r2ca_dispatch_result;
volatile uint32_t ... |
d3404bfde3a33c0652ae7453ea5ce75fbde5b662 | 9a888c6ddd86c1938cd672c5f2ac24e928e48665 | /EDITCTLS/SIMPLE/SIMPLE.CPP | 1b5b357e7535e6b3001b0b9eeb3ce6f09f5c37e2 | [
"BSD-3-Clause"
] | permissive | OS2World/DEV-SAMPLES-BOOK-Power_GUI_Programming_with_VisualAge_for_Cpp | 228390f4876520bb72afd5a25fc985fb6ea82de8 | 919dfa422daf18d2bbb924213a0a813c06565720 | refs/heads/master | 2020-05-29T18:33:38.074186 | 2019-05-29T22:02:13 | 2019-05-29T22:02:13 | 189,303,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | cpp | SIMPLE.CPP | //************************************************************
// Edit Controls - Simple Edit Example
//
// Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
// Copyright (c) 1997 John Wiley & Sons, Inc.
// All Rights Reserved.
//************************************************************
#include <iapp.hpp>
#inclu... |
b78ba3cb44171d1646ca808a3ae0637916083242 | 0d7ab97cf6d58ba24f4c8d6228fb46e38df69478 | /src/sp.hpp | 125a584b7b876bd9929a733a5560111b25397d69 | [] | no_license | cheng-hsiang-chiu/sequence_pair_floorplan | d0851d23fffd160391837a320ea6bea32ab75f92 | 9520ada7e5d4ea62e98c394581d5ed1ac05fcf3d | refs/heads/master | 2023-03-01T12:52:51.463319 | 2021-01-29T01:04:02 | 2021-01-29T01:04:02 | 328,098,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,018 | hpp | sp.hpp | #include <iostream>
#include <vector>
#include <random>
#include <map>
#include <chrono>
#include <fstream>
#include <queue>
#include <utility>
#include <algorithm>
#include <iterator>
#include <cassert>
#define SP_FROZEN_TEMPERATURE 0.1
#define SP_MAX_ITERATIONS_PER_TEMPERATURE 1000
#define SP_RANDOM_MOVES 60
#defin... |
fd4679e0aa770dcfaf8ca6222960d5e2413025f3 | 0ebf0dffca0c1c32684cccb7465157ce35a07355 | /xa_nnlib/test/tf_micro_lite/test/tensorflow/tensorflow/lite/experimental/micro/simple_tensor_allocator.cpp | ef1082df3de1181fc47339775b14fb393bce5810 | [
"LicenseRef-scancode-other-permissive"
] | permissive | nyadla-sys/nnlib-hifi4 | 19b0cd947e58ae4c0577bedc8b388238999d9419 | 13b1ac756a48f763f02c936e0a87feeabbb808b9 | refs/heads/master | 2021-05-25T21:13:31.680706 | 2020-05-08T22:25:37 | 2020-05-08T22:25:37 | 253,921,342 | 0 | 0 | null | 2020-04-07T21:57:59 | 2020-04-07T21:57:59 | null | UTF-8 | C++ | false | false | 7,008 | cpp | simple_tensor_allocator.cpp | /*******************************************************************************
* Copyright (c) 2018-2020 Cadence Design Systems, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to use this Software with Ca... |
30a89539b5af02faf976117cb5414849a47972bd | 85a50ab1eef4724ee83ec19c5af708b02cb0dfc3 | /include/Talon/Graphics/InputClassification.h | 2c7769b66ca1eff51590cc062d264f064317529b | [] | no_license | mattrudder/Talon | 5ca428dbcd4e5c5879978640205fb43c3074aca4 | 650cc522f7854bd52da308042b42a2a4bb1ca728 | refs/heads/master | 2021-01-21T19:35:09.831748 | 2012-07-26T16:01:00 | 2012-07-26T16:01:00 | 3,830,382 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 133 | h | InputClassification.h |
#pragma once
#include <Talon/TalonPublic.h>
namespace Talon
{
enum class InputClassification
{
PerVertex,
PerInstance,
};
} |
e9717b2c17f4dd54ee5b9473b71aca1b5000a6cc | e76014ab83cd6b16779d3436c1f32d0eaad4fa4b | /GameController.cc | 7dfffb9aa6095ba5f11451fda8d74f6f088c6846 | [] | no_license | JoshJWight/NemesisHeist | c2a84f7a8e752daf6290af3d68ae93af0944595f | 558b9b013928ea06508ae3b28b98fb599ab70e12 | refs/heads/master | 2022-12-29T02:26:20.650733 | 2020-10-15T01:04:31 | 2020-10-15T01:04:31 | 302,820,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,240 | cc | GameController.cc | #include "GameController.hh"
#include <SFML/Window/Keyboard.hpp>
GameController::GameController()
: m_graphics(800, 600)
{
m_player.reset(new GameObject);
m_player->pos = point_t(0, 0);
m_player->colliderType = CIRCLE;
m_player->size = point_t(10, 10);
m_player->sprite.setTexture(TextureBank::g... |
9b720d38c8a6f847d71b4000fb80dc860043c727 | 751fe73c7a0188dfe27c9fe78c0410b137db91fb | /redis/test/rediscpp/RedisZset.h | 8b6860cd8265e4ef93bf788f66853fedf35840bc | [] | no_license | longshadian/estl | 0b1380e9dacfc4e193e1bb19401de28dd135fedf | 3dba7a84abc8dbf999ababa977279e929a0a6623 | refs/heads/master | 2021-07-09T19:29:06.402311 | 2021-04-05T14:16:21 | 2021-04-05T14:16:21 | 12,356,617 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 870 | h | RedisZset.h | #pragma once
#include "RedisType.h"
namespace rediscpp {
class RedisZset
{
public:
RedisZset(ContextGuard& context);
~RedisZset() = default;
long long ZADD(Buffer key, long long score, Buffer value);
//有序集合范围内的成员和分数
std::vector<Buffer> ZRANGE(Buffer key, int start, int end);
... |
1f2c635d6e7822bbddb4e007bf07d44211a28063 | 31559c6769749852992379766e9d4ae992bc7e6d | /Particle System/src/standard/EmitterWithinSphere.hpp | b1e76946569ad0c918335fc2bfc3bb6ffac14414 | [] | no_license | Grevor/OSM2-Particle-System | 84161b1f3c270a0971380eb90ca69faf90b2fb1b | 7d62eeec1b53218a75e148a66f9bce4dc4b61319 | refs/heads/master | 2021-01-22T05:33:12.892385 | 2014-06-08T16:12:27 | 2014-06-08T16:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | hpp | EmitterWithinSphere.hpp | /*
* EmitterWithinSphere.hpp
*
* Created on: 7 maj 2014
*/
#ifndef EMITTERWITHINSPHERE_HPP_
#define EMITTERWITHINSPHERE_HPP_
#include "../utilities/Emitter.h"
#include <Eigen/Eigen>
#include "StandardParticle.hpp"
#include <boost/random.hpp>
#include <time.h>
using namespace boost;
class Emitt... |
872409fea34740c4962a8b64ecac0c810dbab0c4 | d1b5b63d453b3b54a61f894404b63f3e41b42889 | /main.cpp | 19636e73487a7bdd9ba13f61e5a1d1ad3822cdf2 | [] | no_license | raslandarawsheh/homework | 47c7e996d4a51a957d90e9af6cddd8d6beeadffd | a6a173fccd041087a5b3b046becc8119a690bc07 | refs/heads/master | 2020-07-22T10:24:20.701112 | 2019-09-09T00:42:14 | 2019-09-09T01:12:41 | 207,167,233 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,754 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netdb.h>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
using namespace c... |
ad329008ae7fb6e51fd15c3c9ae9f5ea7f1dd841 | 535b8599d2185c847631afc1576e067a0d060fe3 | /leetcode/leetcode96-Unique-Binary-Search-Trees.cc | 53feb8ed9f349ce64fdd9cf18a2b552017453077 | [] | no_license | pingyu/magical-codes | d5ae4313287369d4bb61da44c334dcaf418d1da8 | 104f078fd19445f11478b96a3b0fb0c99b3be9f5 | refs/heads/master | 2022-06-18T01:19:52.100654 | 2022-05-05T01:59:25 | 2022-05-05T01:59:25 | 175,943,330 | 0 | 0 | null | 2022-06-17T01:37:24 | 2019-03-16T07:57:49 | C++ | UTF-8 | C++ | false | false | 790 | cc | leetcode96-Unique-Binary-Search-Trees.cc | #include <bits/stdc++.h>
using std::cout;
using std::cin;
class Solution {
public:
int numTrees(int n) {
std::vector<int> vec(n+1);
vec[1] = 1;
for (int i=2; i<=n; i++) {
vec[i] = 2 * vec[i - 1];
if (i >= 3) {
for (int j=1; j<i - 1; j++) {
... |
5ada9bbdad4e027211c1dcf43a8af1aee5bfd1b5 | d9236f1b37663dcd8d935d8d76d9cd4cb24d9846 | /Kernel/Drivers/Device.cpp | 04759e2b33be8d1d3c568421169bfec266acd86d | [
"Apache-2.0"
] | permissive | UltraOS/UltraLegacy | 8f167531553d91d7d22ef22d761657bd084fd23f | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | refs/heads/master | 2023-08-23T22:31:11.572601 | 2021-10-29T19:48:54 | 2021-10-29T19:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | cpp | Device.cpp | #include "Device.h"
#include "DeviceManager.h"
namespace kernel {
Device::Device(Category category)
: m_category(category)
{
DeviceManager::the().register_self(this);
}
Device::~Device()
{
DeviceManager::the().unregister_self(this);
}
void Device::make_child_of(Device* parent)
{
DeviceManager::the()... |
bd8d81b26d4dba595f094e6944adba964b505321 | 8dee7f236ecccb1d2a8ca496a9826353f5bd9d78 | /include/bmp/extralifebmp2.h | c8dfe3c8568ff49e809a1597cbabe02bf1ce8bab | [
"MIT"
] | permissive | ant512/EarthShakerDS | 6675bc3f3df6923b56ef820ca8d748de57f5b52b | c23920bb96652570616059ee4b807e82617c2385 | refs/heads/master | 2020-05-18T13:14:12.995125 | 2015-02-08T06:05:01 | 2015-02-08T06:05:01 | 15,246,988 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 174 | h | extralifebmp2.h | #ifndef _EXTRALIFEBMP2_H_
#define _EXTRALIFEBMP2_H_
#include <bitmapwrapper.h>
class ExtraLifeBmp2 : public WoopsiGfx::BitmapWrapper {
public:
ExtraLifeBmp2();
};
#endif
|
1a893b7d38bf8b38cfb78764de3ac556eccc323d | 615a68de83307164408ddeb7f09ff33578c7647e | /Example/MyForm.h | a006fda9538b240fb50cd810b4439418fdde2a08 | [] | no_license | NazariiProshyn/SLAE-with-FinForms-interface | a6092d94dd3fc807e2955a004e710f18f706c91e | 39129867dc1110c5700518e4d0ace22d409e6c67 | refs/heads/master | 2022-12-01T11:53:31.220483 | 2020-08-20T00:45:56 | 2020-08-20T00:45:56 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,669 | h | MyForm.h | #pragma once
namespace Example {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Сводка для MyForm
/// </summary>
public ref class My... |
3eb1eb09828324bf073cacb29ef56b8334276650 | 8538c2c60ac5b59b3ccd3724892fa2a7d3612473 | /editor/Propertys/PropertyGUI.cpp | cfb634d1ded26c2e0ca8d47c689a0a4f77189db1 | [] | no_license | songchengjiang/Lutra | f514c9833740d0d6a4fac3097cca55dc8d6e37bc | 9af2c212c191035616637663f1d7a981000b26be | refs/heads/master | 2023-02-19T08:13:42.290764 | 2021-01-22T14:35:00 | 2021-01-22T14:35:00 | 326,599,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 105 | cpp | PropertyGUI.cpp | //
// PropertyGUI.cpp
// Editor
//
// Created by JasonCheng on 2021/1/9.
//
#include "PropertyGUI.h"
|
29e4a234888f7b0f5b9117acbc2a46a46ff0834e | 968cb6195b76d70f9d2046d8f43f29e7db7fb572 | /game_pause.cpp | 355d63ee78062d4af1d9952fd161ed50b244f53e | [] | no_license | KodFreedom/Impact | bb2e867b446fbbc4f9dd4dc7105ff5b541c492c5 | b1dfa8e80b235b67178431841a625f69c5eec135 | refs/heads/master | 2021-01-01T04:37:25.290972 | 2017-07-14T08:58:51 | 2017-07-14T08:58:51 | 97,211,582 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 11,294 | cpp | game_pause.cpp | //--------------------------------------------------------------------------------
//
// GamePause.cpp
// Author : Xu Wenjie
// Date : 2016-06-07
//--------------------------------------------------------------------------------
// Update :
//
//---------------------------------------------------------------------... |
46b71619bdfc0934de29b45ed5a39aef338259b3 | 599153c3b43f65e603d5ace2fdac954e66f187af | /vijos/1218.cpp | 323c47d4c6b2d629fd4c71440135df2d579e0f71 | [] | no_license | davidzyc/oi | d7c538df5520f36afc9f652fed6862f2658e5a3e | 88cfea0d3ce62a7ecd176a4285bbfeac419d6360 | refs/heads/master | 2021-05-12T11:49:26.147403 | 2019-10-25T14:18:03 | 2019-10-25T14:18:03 | 117,396,742 | 0 | 1 | null | 2018-01-14T12:22:38 | 2018-01-14T02:54:50 | C++ | UTF-8 | C++ | false | false | 1,394 | cpp | 1218.cpp | #include<cstdio>
#include<iostream>
#include<cstring>
#define MAXN 105
#define MAXM 10
#define INF 2100000000
using namespace std;
int dpmin[MAXM][MAXN], dpmax[MAXM][MAXN];
int main(){
int n, m, a[MAXN], s[MAXN] = {0}, ansmin, ansmax;
cin >> n >> m;
for(int i=1; i<=n; i++){
cin >> a[i];
s[i] = s[i-1] + ... |
3cebc72bbf3da9fa0a9eea2320c820ba4775fbff | 3bcb6548b63edbfaae717ffad00fde716e9fa104 | /test/sql/type_sql_test.cpp | 6c46359f13bf6dc4f475c505fcf4aeea01a373b5 | [
"Apache-2.0"
] | permissive | Handora/peloton | 9b06fea5723afef43ba7ebea895d260fb48ed93b | aa8f8dc64ff9adeb261224055c56f50defefb517 | refs/heads/master | 2020-03-28T08:07:50.556941 | 2018-10-20T07:40:08 | 2018-10-20T07:40:08 | 147,946,283 | 1 | 0 | Apache-2.0 | 2018-09-08T15:36:24 | 2018-09-08T15:36:24 | null | UTF-8 | C++ | false | false | 7,797 | cpp | type_sql_test.cpp | //===----------------------------------------------------------------------===//
//
// Peloton
//
// type_sql_test.cpp
//
// Identification: test/sql/type_sql_test.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===-------------------------------------------------... |
a03a1e7b45a2c1012df589c0f2ebc62abed05dcf | da1500e0d3040497614d5327d2461a22e934b4d8 | /third_party/skia/gm/simple_magnification.cpp | 45f9b575823a972a995af8e7110c549c257596d2 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0",
"MIT"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 4,925 | cpp | simple_magnification.cpp | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorPriv.h"
#include "incl... |
bd2993924a165f9b799b6009f3214510ad45f23b | 81528f582dd6d727bc0661723f0258e4e6ecc881 | /solutions/11349-SymmetricMatrix/11349.cpp | 2ded3f9b49aade35b0968becc845b35595658bbd | [] | no_license | remerson/uva | 6123e283b0b4762acc6a131df1c5ee5b8cb029a0 | d3a288d13657af45229421bfa6f3cbd3e8fa40c2 | refs/heads/master | 2023-07-22T17:20:27.577541 | 2023-07-15T21:01:05 | 2023-07-15T21:01:05 | 18,739,804 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,605 | cpp | 11349.cpp | #include <cstdio>
#include <cmath>
#include <queue>
#include <stack>
#include <algorithm>
#include <iostream>
#ifndef ONLINE_JUDGE
#define DEBUG(X) { X; }
//#define DEBUG_INPUT(X) { X; }
#define DEBUG_INPUT(X)
#else
#define DEBUG(X)
#define DEBUG_INPUT(X)
#endif
using namespace std;
const unsigned MAX_N = 128;
long... |
6c4284204833e9b65ec918bcc257f864a24a39f9 | 40aea90d4258ba94c4d49b61f17708376b2d6d74 | /microbit/slither/source/MoveService.cpp | da523fd830b006f5859b2e537fce9222911ad520 | [
"MIT"
] | permissive | novucs/microbit-slither | 0a82d8b85bd3efc86d1c96cccb2c3df0738fd4c1 | efe54520a180cdaee03fc212fada0766726a7d6b | refs/heads/master | 2021-04-15T16:45:58.170204 | 2019-01-27T12:22:34 | 2019-01-27T12:22:34 | 126,509,709 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,260 | cpp | MoveService.cpp | #include "MoveService.h"
namespace slither {
MoveService::MoveService(BLEDevice &ble) : ble(ble) {}
void MoveService::initialize() {
// Create the speed and direction characteristics.
GattCharacteristic directionCharacteristic(MoveDirectionCharacteristicUUID,
... |
c56e44eb0398e0dcd71f01c009934267f26cbb02 | ed933bfebfb7b587be8ab5920b9a99372da3508b | /abdul5.cpp | eb537776ab391f7b2cb90894105f4143ec85cf80 | [] | no_license | Yashvishnoi/C_PROGRAMS | 68736165cc433f3c14678eecb5e17b0c2a68ca65 | 94189d351658ecf43d0314e135c66f4fa891b6b1 | refs/heads/master | 2023-07-03T21:46:31.632933 | 2021-08-12T05:53:51 | 2021-08-12T05:53:51 | 241,179,064 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | cpp | abdul5.cpp | #include<iostream>
using namespace std;
int main()
{
float n,b,a,d;
cout<<"enter the basic salary percentage alowance percentage deduction";
cin>>b;
cin>>a;
cin>>d;
n=b+(b*a)/100+(b*d)/100;
cout<<"the net salary is "<<n;
return 0;
}
|
43b2186dfa89badf425a7fea0aab79cabbbb080e | ac2b22aa24a755ceb26c106612a97a5b49e1fd48 | /AEACD/AEACD.cpp | 4a72234bd5afca1f6418fd431a96de7bb3aaad17 | [] | no_license | UngureanuTeodor/AEACD | 8aefc2127d137609f5c8a5934dda8a8b0c0ad4cd | bc93021599fa1e8e027ed548f556a5b707a60266 | refs/heads/master | 2020-04-09T02:36:05.412327 | 2018-12-04T00:02:33 | 2018-12-04T00:02:33 | 159,947,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,019 | cpp | AEACD.cpp |
#include "stdafx.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "tesseract/baseapi.h"
#include <iostream>
#include "Preprocesare.cpp"
#include "Filtre.cpp"
#include "Tesseract.cpp"
using namespace cv;
using namespace std;
void main_andrei() {}
void Pas1_... |
b85930dbc38e5a59d88cfeb1446f07c3bb4172fe | ee924e1303ffcdb8e206b014bfe344209876feb3 | /C++STL/Prac4/zad3.cpp | ebb6964c132e22d74967e743c156e76ff61cacfd | [] | no_license | Stachnikov/Studia-II-UWR | 82ad018634037c295e0d7a61e51bf06c4723e6eb | 7b2f798e1836c20963affa664ba8ea05e1fb167e | refs/heads/master | 2020-05-16T07:10:18.068542 | 2020-04-08T14:29:47 | 2020-04-08T14:29:47 | 182,866,963 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 687 | cpp | zad3.cpp | #include <iostream>
#include <vector>
#include <string>
#include <list>
#include <set>
#include <algorithm>
int main(){
std::vector<double> v1 = {1.2 , 0.7, 0.1, 12.3, 31.1, 5.3, 9.4, 8.1, 1.8, 1.0};
std::set<int> s1 = {1, 2, 0, 4, -2, 42, 12, 8, 321, -123};
// Wyznacz redni¹ arytmetyczn¹ (dotyczy kolek... |
d4d31b4a453d2b7fc57b4db1e2b82dd95e9df375 | f08e8d5c45d7a39042f2217998170f7dea7036b7 | /Store/TransactionManager.h | 00a1bf64625f348467d4879f41c41564f216ad16 | [] | no_license | DeVonFire27/DTW_Inventory | ed3a770c180336cb67e3e2fe79ba0032410168b1 | 79237befc68970d54be19f4f5423c81e63ed4698 | refs/heads/master | 2021-01-10T18:02:58.251492 | 2016-04-02T01:00:04 | 2016-04-02T01:00:04 | 55,271,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | h | TransactionManager.h | #pragma once
#include "Store.h"
#include "SLList.h"
#include "Inventory.h"
class TransactionManager
{
struct Transaction
{
Item theItem;
bool bought;
};
Store theStore;
Inventory theInventory;
SLList<Transaction> theHistory;
unsigned int refunds;
void AddTransaction(Transaction t);
public:... |
dca43aa33a9280e31c8de2a964c6d1c73d2f2f5b | 3992fa91db2f7293dc5089c9dedb3bb2f8ef0059 | /src/bullet.hpp | 85c51716ec2148a048abc631491088db52037e75 | [] | no_license | danniely/2d_zombie_game | 4e2d61540adb09aaf697a5f30560dfe35ebfd815 | 50dc38c5fb5075fccf8427897125085c034bd589 | refs/heads/master | 2020-09-28T08:39:47.449647 | 2019-12-08T21:51:39 | 2019-12-08T21:51:39 | 226,736,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 762 | hpp | bullet.hpp | //
// bullet.hpp
// fantastic-finale-danniely
//
// Created by user on 11/19/19.
//
#ifndef bullet_hpp
#define bullet_hpp
#include <stdio.h>
#include "ofMain.h"
#include <iostream>
#include <math.h>
class bullet{
public:
bullet();
bullet(float x, float y, float dir_x, float dir_y, float angle);
~bulle... |
afc0da6e3c8a1ded820b168737e9ad09c64ef1e3 | cd1e9c722a7fadf5b40be36ebeb894f00b7bd2f0 | /chromium/ppapi/proxy/ppb_url_loader_proxy.h | 523488b35b103c6005ad5525b17be49a20d2395f | [
"BSD-3-Clause"
] | permissive | collinjackson/gles2-bc-nacl | 7621ed984d39b2b77b3dff92cb5212b9a3b3ddb9 | dcd4dd9608cb3976b4294c7277a3fcb7f8184a16 | refs/heads/master | 2021-01-01T17:16:22.874626 | 2011-02-19T22:24:46 | 2011-02-19T22:24:46 | 1,387,543 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,731 | h | ppb_url_loader_proxy.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PPAPI_PPB_URL_LOADER_PROXY_H_
#define PPAPI_PPB_URL_LOADER_PROXY_H_
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_instance... |
16ca0e58af28bbb8a6d411ba3d412312ae83dba5 | 165ac3afde4c1b3d27fb97b2a87b328127df43a3 | /Vulkan/TextureLoader.cpp | b56ffa95f5ccb6f0ff9839803b59ae554dce07f8 | [
"LicenseRef-scancode-public-domain"
] | permissive | Alphonse-xu/dissertation | 484c3487d8bde4ad40c652d823d176a01b98c9aa | 2a71e4ab7493419c18a3108ccf6544c797a66a8a | refs/heads/master | 2021-01-04T03:55:18.302396 | 2019-11-14T07:35:10 | 2019-11-14T07:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,376 | cpp | TextureLoader.cpp | #include "TextureLoader.h"
#include "../Shared/nv_dds.h"
#include "Image2D.h"
#include "LogicDevice.h"
#include "DeviceMemory.h"
using namespace QZL;
const std::string TextureLoader::kPath = "../Assets/Textures/";
const std::string TextureLoader::kExt = ".dds";
TextureLoader::TextureLoader(const LogicDevice* logicDe... |
73a43f24088b204e7bd9c9cc9354c1120e8ad0b6 | 89376968953265afbb1b39f3ce4c096a746eb8f8 | /TP6/exo1.cpp | c0e98d4158cf5fcf1a391a7a83ff7f8563e370f8 | [] | no_license | leogenot/AlgoProg | 27d57262deb214f915b741eef080a40b4e8f1885 | 11acded5c19d131fd0435c3906f0f591c3844956 | refs/heads/master | 2023-04-15T00:18:46.332168 | 2021-04-16T10:24:32 | 2021-04-16T10:24:32 | 344,190,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,136 | cpp | exo1.cpp | #include "tp6.h"
#include <QApplication>
#include <time.h>
MainWindow* w = nullptr;
void Graph::buildFromAdjenciesMatrix(int **adjacencies, int nodeCount)
{
/**
* Make a graph from a matrix
* first create all nodes, add it to the graph then connect them
* this->appendNewNode
* this->nodes[... |
021b5f8c407a860e075af008709d24c840019a2d | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/EFT/BoostedVh/Tools/addrecome.cc | 37d0d67c65154d71414e0aca31dbd1ac3b903b9b | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | C++ | false | false | 5,783 | cc | addrecome.cc |
#include "LatinoAnalysis/MultiDraw/interface/TTreeFunction.h"
#include "LatinoAnalysis/MultiDraw/interface/FunctionLibrary.h"
#include "TSystem.h"
#include "iostream"
#include "vector"
#include "TLorentzVector.h"
#include "TMath.h"
#include "JHUGenMELA/MELA/interface/Mela.h"
#include "TSystem.h"
#include <map>
#includ... |
1337c591ef38957d95d40def97fecfd1b32c0bf4 | 3693a4c271684c2b6d913ea694b100806ed28dbd | /Classes/Models/Characters/States/StateHandlers/Enemies/Enemy/StateHandlerBuilder.h | 4850dcab211b5ec9f8bad779ec88b1430d34e26a | [
"MIT"
] | permissive | HectorHernandezMarques/NinjaNoMeiyo | 1f99d13a66a3203df5a3dbb55cc8d86ffca53394 | 4ae0b99e12d172a34e84de990e47817deed632e2 | refs/heads/master | 2021-03-24T12:16:15.388635 | 2018-06-04T23:31:25 | 2018-06-04T23:31:25 | 84,374,001 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 740 | h | StateHandlerBuilder.h | #ifndef NINJANOMEIYO_MODELS_CHARACTERS_STATES_STATEHANDLERS_ENEMIES_ENEMY_STATEHANDLERBUILDER_H
#define NINJANOMEIYO_MODELS_CHARACTERS_STATES_STATEHANDLERS_ENEMIES_ENEMY_STATEHANDLERBUILDER_H
#include "../../../../Enemies/Enemy.h"
#include "./EnemyStateHandler.h"
namespace NinjaNoMeiyo {
namespace Models {
namespa... |
9bf969ea0403d9d1ab0981e8b72173720399cf16 | 236fe7ae958a1fb4c2ab7e4d911e4336695751b9 | /include/esp_cxx/httpd/mongoose_event_manager.h | 70e7c084272bf190ae3ce336d7b5408e6ccf34cb | [
"BSD-3-Clause"
] | permissive | awong-dev/esp_cxx | 1aeaca919a0663bf0e39b46a91843c8da240ffba | 9a80ec04a9bf9bbf75806d1f8c14303101f23a84 | refs/heads/master | 2020-06-11T17:15:49.906776 | 2019-12-27T07:31:14 | 2019-12-27T07:31:14 | 194,034,320 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | h | mongoose_event_manager.h | #ifndef ESPCXX_HTTPD_EVENT_MANAGER_H_
#define ESPCXX_HTTPD_EVENT_MANAGER_H_
#include <array>
#include <functional>
#include "esp_cxx/event_manager.h"
#include "esp_cxx/task.h"
#include "mongoose.h"
namespace esp_cxx {
class HttpRequest;
class MongooseEventManager : public EventManager {
public:
MongooseEventMan... |
8925d9bc75072f94b76cc283ec1dfe5428640886 | e8a0f5c31572b2559213a5a1ddf7dad9bde5c7ab | /libs/full/include/include/hpx/memory.hpp | 12498300f24613005cc63be5905175839f89faf8 | [
"BSL-1.0",
"LicenseRef-scancode-free-unknown"
] | permissive | AnshMishra2001/hpx | 193d02aa13b26e07f5e9ec7be18afaee7651f2a4 | 00846a06bf2653c595b43aed3abe02c42998e230 | refs/heads/master | 2022-12-26T22:42:23.112970 | 2020-10-04T16:53:12 | 2020-10-04T16:53:12 | 301,199,192 | 0 | 0 | BSL-1.0 | 2020-10-11T13:42:55 | 2020-10-04T18:31:28 | null | UTF-8 | C++ | false | false | 872 | hpp | memory.hpp | // Copyright (c) 2020 ETH Zurich
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/parallel/memory.hpp>
#include <hpx/parallel/container_memory.... |
234b4bba7b5ff175fb0b644f4d46158413a4de61 | 9046787aaf7dd030af23dc583edbca8518bb5dfa | /Server/Server/Packet.h | 862718abc2cdc4136ff37b840487b790c004e5aa | [] | no_license | IvanNovgorodtsev/UDP-text-protocol | 013917edeedd99a7d01a6e8389dc5437937a1a12 | 1ec31b0dc08a0c099ed45fff09dc0dba5a479464 | refs/heads/master | 2021-08-28T09:00:52.028294 | 2017-12-11T19:25:11 | 2017-12-11T19:25:11 | 112,791,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | h | Packet.h | #pragma once
#include<string>
using namespace std;
class Packet
{
public:
string message;
int message_size = message.size();
Packet();
Packet(string OP, string PO, string dane, int liczba, string ID_name, int ID, string time_name, string time);
void setMessage(string m);
string getMessage();
void setTime(strin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.