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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ee4c30321907fb3e52710e4a1f7ec6a2fc59ac65 | 193f13a225f5f3948a4d3f99a6daf0c99372fc6d | /A2B Pathing System/pathing/ListIterator.h | 29370bf8adfb23fe9ae9a60fe28a3a0acba72fc2 | [] | no_license | nickwisner/Nitro-Pathing | 6b4ec9cbcfb90466b119503abac04e87365709aa | e7ff382e354a0e5f54af9381d33f66083118060b | refs/heads/master | 2020-06-15T06:44:11.823485 | 2011-06-03T22:26:23 | 2011-06-03T22:26:23 | 1,717,503 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,878 | h | ListIterator.h | /*************************************************************************
*
* Template:
* ListIterator
*
* Constructors:
* ListIterator() - Default constructor
* ListIterator(DoubleLinkedList*) - 1 Arg constructor; Copies the pointer
* to a list to traverse.
* ~ListIterator() - Destructor
* ListIterator(const... |
886a0f1199d2eef1a3f92e1a8f6b65611f3acc2c | 5c4aa89e33dddbb61c4b5c54c21cb8c9239ee9e5 | /cpp/subsequence.cpp | 81cb3bb1ce3b60bd73ef81cfdc0d05f51bd7beb0 | [] | no_license | mdmshf/codechef | c84e06f26a4b0dc988c928024b209ddba12fead5 | d5f57ef1d41531411cd01eced1a788a90f6b070f | refs/heads/master | 2020-03-18T11:58:07.066318 | 2019-04-27T09:17:59 | 2019-04-27T09:17:59 | 134,701,227 | 1 | 0 | null | 2018-10-28T15:19:39 | 2018-05-24T10:44:38 | Python | UTF-8 | C++ | false | false | 724 | cpp | subsequence.cpp | #include <stdio.h>
#include <math.h>
long long int c=0;long long int q;
void subsequence(long long int arr[], int n)
{
unsigned long long int p=1;
unsigned int s= pow(2, n);
for (int i=1;i<s;i++)
{
p=1;
for (int j = 0; j < n; j++)
{
if (i & (1<<j))
{
... |
f4e4834ceb2935f0bcc7b0e3c0af9abeea514052 | 5be9e0f2c327efda44cf635abf470c77ae8748cb | /servers/startup/startup.cc | 61f1031eaccfbdd58c25513a4e9e43834b0a23a5 | [
"Zlib"
] | permissive | qookei/quack | 4abe4d564f211588b6157978a13603eac53347cc | 47808580dda218cb47d0c9ca04b51eb24f1e2266 | refs/heads/master | 2020-06-04T09:04:45.062301 | 2020-03-22T00:49:37 | 2020-03-22T00:53:12 | 191,957,104 | 17 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cc | startup.cc | #include <stdint.h>
#include <duck/error.h>
#include <duck/calls.h>
extern "C" {
void _start(void) {
duck_set_identity("startup", 7);
duck_debug_log("hello, userspace world!", 23);
DUCK_CHECK(duck_debug_log(nullptr, 1024));
while(1);
}
}
|
5b234fd3745fc94ad3534f0f967092a76617f1cd | d508027427b9a11a6bab0722479ee8d7b7eda72b | /src/kernel/eventqueue.cpp | 0eb2de2e695e5f4adcf0df52ac5be2cbdf32da5a | [] | no_license | gaoyakun/atom3d | 421bc029ee005f501e0adb6daed778662eb73bac | 129adf3ceca175faa8acf715c05e3c8f099399fe | refs/heads/master | 2021-01-10T18:28:50.562540 | 2019-12-06T13:17:00 | 2019-12-06T13:17:00 | 56,327,530 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,641 | cpp | eventqueue.cpp | #include "stdafx.h"
#include "eventqueue.h"
#include "event.h"
ATOM_EventQueue::ATOM_EventQueue (void)
{
_eventQueueReading = ATOM_NEW(ATOM_DEQUE<ATOM_EventQueue::EventDispatchInfo>);
_eventQueueWriting = ATOM_NEW(ATOM_DEQUE<ATOM_EventQueue::EventDispatchInfo>);
}
ATOM_EventQueue::~ATOM_EventQueue (void)
{
clea... |
cf48b86bca006818c0115d4e20744c5e37c034b6 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/inetsrv/iis/svcs/staxcore/ifilter/mimefilt/cfactory.h | e4174c8e6a5c6a9d968cdb44b9529cc5d1a48eed | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 1,054 | h | cfactory.h | //+-------------------------------------------------------------------------
//
// Class: CMimeFilterCF
//
// Purpose: Class factory for Html filter class
//
//--------------------------------------------------------------------------
class CMimeFilterCF : public IClassFactory
{
public:
CMim... |
ae2d7fed8c4f1cd2445f0e322dae548068f5f71b | 7c06d7d592c2031f6f7abf4b1bfb09838d28da53 | /src/Psysl5Engine.h | 5e53c51accd0939d680792b62f7ccc8b13f8bfb2 | [] | no_license | shengsli/windepth | 9cb7c3828767217aa784a61a82b28ab387d477c1 | 7f1a8e72b89d37dff42566492e2c35e3d2af07e8 | refs/heads/master | 2020-05-16T21:45:58.039720 | 2019-04-24T22:39:11 | 2019-04-24T22:39:11 | 183,314,662 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,455 | h | Psysl5Engine.h | #pragma once
#include "BaseEngine.h"
#include "Psysl5TileManager.h"
#include "JPGImage.h"
#include <vector>
#include <iostream>
using namespace std;
class GameState;
class GameObject;
class BattleShip;
class SubmarineCommander;
class Psysl5Engine :
public BaseEngine
{
public:
int m_iPauseStarted;
vector<int> m_iInvi... |
ddbd0349780a88bce57a406c1ab347b1eefc73fa | 47bcadb5e6358f6d45a15927e5d9ded611b9d9ec | /src/CubeUpdater.cpp | 95ea1ce3bb378c9fe739f60463ba89ac684710a6 | [] | no_license | rubenvh/pixelsculptor.ogre3d | 9470b5da823da7e7449a8593e4169064179d2d26 | 19c504b796604b3050b97a9cbc1e43c25a57aac0 | refs/heads/master | 2021-01-23T15:41:59.285052 | 2012-08-22T19:21:16 | 2012-08-22T19:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,970 | cpp | CubeUpdater.cpp | #include "../include/CubeUpdater.h"
using namespace std;
using namespace Ogre;
CubeUpdater::CubeUpdater(Configuration* config): _config(config)
{
//ctor
is_first_update = true;
}
float CubeUpdater::get_color(uint8_t p)
{
return (float) p / 255.0f;
}
float CubeUpdater::scale_value(float oldvalue, float n... |
0eb60f5b61dcd809bf3eea2ce446a8926a2d95fb | c45ad771f109c736c6786a8c96a365a21ad78757 | /src/toolkit/io/KeyValueFileStorage.h | d031a3546b9ad8289b39629ac56dc3c2bf749df7 | [
"MIT"
] | permissive | whoozle/toolkit | acbedc35c4be85311c84abfd933fe85b35b544df | 564c816df543e46ba52c24afc0eb6c3c0f6bbcbb | refs/heads/master | 2023-06-24T03:54:20.225272 | 2023-06-20T15:36:13 | 2023-06-20T15:36:33 | 113,694,002 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | KeyValueFileStorage.h | #ifndef TOOLKIT_IO_KEY_VALUE_STORAGE_H__
#define TOOLKIT_IO_KEY_VALUE_STORAGE_H__
#include <toolkit/core/Buffer.h>
#include <toolkit/core/ByteArray.h>
#include <string>
namespace TOOLKIT_NS { namespace io
{
class KeyValueStorage
{
std::string _root;
size_t _level;
public:
using Key = ConstBuffer;
K... |
333a6def741f93042d2e2a5cf9e9bdfa4a3f0554 | ea9519970a897170bd6a2e618d258de44f4d48ba | /Source/Tanki/PhysicsProjectile.h | 6ad0e2f99c8d8904dfad38b406a03ab585631620 | [] | no_license | Kotsh/Tanki8 | 494f2094b235221e8e3256bed78f6edc50e107c8 | 4536069b61ab13672012656daeebe0e9255ef14d | refs/heads/main | 2023-08-27T01:54:30.676394 | 2021-11-07T19:26:35 | 2021-11-07T19:26:35 | 425,595,962 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | h | PhysicsProjectile.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Projectilew.h"
#include "Particles/ParticleSystemComponent.h"
#include "PhysicsProjectile.generated.h"
class UPhysicsComponent;
UCLASS()
class TANKOGEDDON_API APhysicsProjectile : public A... |
e76fe1ae82bfdec7bfad132a527cc6206d95f592 | 9cedf68a54e8c14dc280666d4d3bc2568e172644 | /FinancialOrganizer.cpp | f41e08823a56cf03ade4a1a6eac08f19036fc2ba | [] | no_license | crazymechanist/Financial-organizer | 7a8e77c5f20be0375440a303e6afa29632c59e8d | 22cef32b461197328e0b08fc8e743c849c667d62 | refs/heads/master | 2020-12-01T22:21:38.439970 | 2020-01-20T18:50:02 | 2020-01-20T18:50:02 | 230,789,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,636 | cpp | FinancialOrganizer.cpp | #include "FinancialOrganizer.h"
FinancialOrganizer::FinancialOrganizer() {
moneyFlowManager=NULL;
}
FinancialOrganizer::~FinancialOrganizer() {
delete moneyFlowManager;
moneyFlowManager=NULL;
}
void FinancialOrganizer::registerUser() {
userManager.registerUser();
}
void FinancialOrganizer::addExpens... |
6ae68d534b3d15b925b7782d8d887c5b25734a53 | e72292ab799b0865962133681def4ded623f21f8 | /diffie.cpp | da3927b5dbb8303dd77454afe489c5db1f01abb0 | [] | no_license | dwikasm/kijoy | 344021fe292dade823245918e6b9dcb5eb3bfa3e | f6ffde5731503ed4bce430dd0e0ab1de1e826e16 | refs/heads/master | 2021-01-23T05:14:46.486630 | 2017-11-06T08:19:03 | 2017-11-06T08:19:03 | 86,290,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | diffie.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int q,a,
xa,xb,
ya=1,yb=1,
ka=1,kb=1;
cout << "Masukkan q: ";
cin >> q;
cout << "Masukkan a: ";
cin >> a;
//CLIENT A
cout << "Masukkan xa: ";
cin >> xa;
for(int i=0;i<xa;i++) ya=ya*a%q;
//CLIENT B
... |
6913cb5a9f245c2ea4af57a6e21eb5f380b32593 | 7f25ac596812ed201f289248de52d8d616d81b93 | /haihongS/2016/09/2016_09_02.cpp | f1950b344d7b7db866f7ac139746e1508550b8cf | [] | no_license | AplusB/ACEveryDay | dc6ff890f9926d328b95ff536abf6510cef57eb7 | e958245213dcdba8c7134259a831bde8b3d511bb | refs/heads/master | 2021-01-23T22:15:34.946922 | 2018-04-07T01:45:20 | 2018-04-07T01:45:20 | 58,846,919 | 25 | 49 | null | 2016-07-14T10:38:25 | 2016-05-15T06:08:55 | C++ | UTF-8 | C++ | false | false | 1,420 | cpp | 2016_09_02.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <cmath>
#include <vector>
#include <queue>
#include <stack>
#include <map>
using namespace std;
typedef long long ll;
const int maxn=100+9;
const double eps=1e-9;
const ll inf=1e13+9;
ll c[maxn]... |
e1327081b84b57f53a38de0b559f22d4377a6045 | b33a9177edaaf6bf185ef20bf87d36eada719d4f | /qtxmlpatterns/tests/auto/xmlpatternssdk/tests/XMLWriterTest.cpp | f6954eb9cd5bcd996c766d868ae5fc06774067a9 | [
"LGPL-2.0-or-later",
"LGPL-3.0-only",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"GFDL-1.3-only",
"Qt-LGPL-exception-1.1",
"LGPL-2.1-only",
"LicenseRef-scancode-digia-qt-preview",
"LicenseRef-scancode-warranty-discl... | permissive | wgnet/wds_qt | ab8c093b8c6eead9adf4057d843e00f04915d987 | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | refs/heads/master | 2021-04-02T11:07:10.181067 | 2020-06-02T10:29:03 | 2020-06-02T10:34:19 | 248,267,925 | 1 | 0 | Apache-2.0 | 2020-04-30T12:16:53 | 2020-03-18T15:20:38 | null | UTF-8 | C++ | false | false | 7,022 | cpp | XMLWriterTest.cpp | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... |
5fdb94a9fded2d01669c9f6e3966ecb58562387d | a827927468b67ede65c90e5cc7c63fee546177d4 | /GDWII/GDWII/Player.h | 6ab0bfe64c60b7b2976e1e009f0c955ead99fae9 | [] | no_license | Jonathan-Jay/JayPEG | cfd36f2030a7291f2cc8a65f70adb8512531866d | 449eeafb7f98e7d8cbe73018c10e1c891c3faaf7 | refs/heads/master | 2020-12-10T15:13:19.549610 | 2020-09-28T19:30:32 | 2020-09-28T19:30:32 | 233,628,133 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,654 | h | Player.h | #pragma once
#include "JSON.h"
#include "GPCSound.h"
class Player
{
public:
Player();
Player(int maxHealth, int maxEnergy, float energyRegen);
~Player();
void reset(int maxHealth, int maxEnergy, float energyRegen);
//Getters and setters for health and energy
int getMaxHealth() const;
void setMa... |
97fa29b7e4d8f866f111a747fa853382c0ad660e | ae9b06486266e4c68990ad399be35062d3ea7837 | /fubble/app/rooms_model.hpp | 64719fdbeac1f2b200671db723101a68086645ce | [] | no_license | lineCode/fubble | ffd262109009da6336b149b41b551f302f68d1aa | 2b0bddb65b881ab4a0a7ed629fb08ccc7774da82 | refs/heads/master | 2023-03-24T11:07:22.817007 | 2021-03-25T10:09:18 | 2021-03-25T10:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | hpp | rooms_model.hpp | #ifndef UUID_5FE653B5_2E7D_42EC_AD07_243EFF0B0EF2
#define UUID_5FE653B5_2E7D_42EC_AD07_243EFF0B0EF2
#include <QObject>
#include <boost/signals2/signal.hpp>
#include <memory>
#include <vector>
namespace client {
class model_creator;
class room;
class room_model;
class rooms;
class rooms_model : public QObject {
Q_OB... |
c81de194bcd930a8c26241dae2b42d36343bbc10 | 110f8081090ba9591d295d617a55a674467d127e | /tests/SamplingScannerTest.cpp | 093d38d72fa455afa7fac4ea4e04e0a418760fb8 | [] | no_license | rayfill/cpplib | 617bcf04368a2db70aea8b9418a45d7fd187d8c2 | bc37fbf0732141d0107dd93bcf5e0b31f0d078ca | refs/heads/master | 2021-01-25T03:49:26.965162 | 2011-07-17T15:19:11 | 2011-07-17T15:19:11 | 783,979 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,996 | cpp | SamplingScannerTest.cpp | #include <cppunit/extensions/HelperMacros.h>
#include <Win32/Bitmap.hpp>
#include <Image/SamplingScanner.hpp>
#include <Image/ColorSpace.hpp>
#include <iostream>
typedef PixelFormat<RGB24> PixelFormat24;
typedef DIBitmap<PixelFormat24> DIBitmap24;
typedef SamplingScanner<DIBitmap24, 4> TestDIB4;
typedef Sampl... |
90c3164b201e79595a0ccea4c9e89f2896064a8f | 58b5042f6b679a8e7759c51913f607d68789fe4f | /periwinkle.h | 518cb84d30cf89b65274df96096f2c38fad59a5a | [] | no_license | zebernst/octowinkles | c7ec92f199ba930ca77c38ee3e5252c441feae6f | 9498ece7fc8c9e4c503caad94b8d527dab116779 | refs/heads/master | 2020-11-25T12:48:55.344190 | 2019-05-20T18:54:00 | 2019-05-20T18:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 885 | h | periwinkle.h | //
// Created by Zach Bernstein on 12/3/18.
//
#ifndef OCTOWINKLE_PERIWINKLE_H
#define OCTOWINKLE_PERIWINKLE_H
#include "engine/circle.h"
class Periwinkle : public Circle {
private:
int radius;
public:
Periwinkle(int radius, position2D::Vector2D center, colorGraphics::RGBColor color);
void draw() o... |
8d6ae09f2d0defe6553ece25ebaf222aaaed0e3f | f4cc88de09d41a87d10b6c4b87c4c2f23f4bd00f | /DrawSphere/OGLSquare.h | d1f31713baabaa31c6e376e167a985c01c74934c | [] | no_license | snowymo/LEDPen | 9bc5fe645bd128acb5f5447cd68d2c5d5dbf6f93 | e7475e9dafbddc73385249abaacb38b50f5dd773 | refs/heads/master | 2021-01-20T12:24:26.379435 | 2017-03-17T22:11:41 | 2017-03-17T22:11:41 | 82,653,848 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | h | OGLSquare.h | #ifndef _OGL_SQUARE_H
#define _OGL_SQUARE_H
#include <glm/glm.hpp>
#include <vector>
#include "OGLObj.h"
class OGLSquare :
public OGLObj
{
public:
OGLSquare();
~OGLSquare();
//void draw(glm::vec3 pos = glm::vec3(0,0,0), float r = 1);
void add(glm::vec3 pos = glm::vec3(0, 0, 0));
void draw();
void create();
... |
e1fd2e6f3202fd893196cfe5ba5676ac0ed69dbe | 5d4f80445645f0771d5bed3aebeac2c7c1d4210b | /math/Point2D.h | ff68f10922738edd75c5ac03d684dafda8f26015 | [] | no_license | Kaldie/GeRoBot | ac9f3699dbfd91111d2e60b939d82046f4636fdc | b7ad01d62df52995f5c82298b06113b0a26f79ce | refs/heads/master | 2020-12-24T16:15:57.102544 | 2017-03-21T13:23:56 | 2017-03-21T13:23:56 | 25,439,362 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,923 | h | Point2D.h | #ifndef Point2D_h
#define Point2D_h
#include "Vector2D.h"
// include QPointF if possible
#ifdef QT
#include <QtCore/QPointF>
#endif
class Point2D:public Vector2D {
public:
//construtor
Point2D() {};
Point2D(traceType r, traceType s) : Vector2D(r, s) {};
Point2D(const Vector2D& i_vector){x = i_vector.x; y =... |
01f3065f4323cd1000545706cb3c1d9828c74c2b | b9e1433255e33763fcfa3e7e9beac500bd9f58d3 | /include/server/FileRepository.h | 989954ad69e3200e0a3212bb642984c0f450bd4d | [] | no_license | lanahra/sisop2 | 0d164003d6b1cefb9f33d3f14f195daa4c410376 | f72b99e3bf609208b3044d919156819963195427 | refs/heads/master | 2020-05-04T16:45:53.273560 | 2019-06-24T04:42:21 | 2019-06-24T04:42:21 | 179,287,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | h | FileRepository.h | #ifndef FILE_REPOSITORY_H
#define FILE_REPOSITORY_H
#include <list>
#include <vector>
#include "File.h"
#include "FileEntry.h"
class FileRepository {
public:
FileRepository() = default;
virtual ~FileRepository() = default;
virtual void save(std::string dir, File file) = 0;
virtual void saveLocal(Fi... |
786edbdcd349a323254e275d6de3694ba37077d6 | 88d26f301ed2fb4299582f90c10f5c57a1ff7012 | /Assignment 1/6.cpp | 144f66a18e3afb74511d081a40ebd41a67015705 | [] | no_license | sumeetfefar/advanced-computing-assignments | 09b8d6d00f52c0ac6c8e68cf44535fba3a0b58f2 | 94b9d23376b8db0064d20f2b1eb369d2ae339e05 | refs/heads/master | 2021-01-01T16:25:37.448901 | 2014-03-08T07:26:32 | 2014-03-08T07:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,468 | cpp | 6.cpp | #include<iostream>
using namespace std;
#define n 10 // Size of linked list
//Data Structure for Node
struct link{link *next=NULL; int value=2; bool lazy_del=0;};
link *first;
//Adds a new element to the Front of the list
link add_new(int value){
link *new_link;
new_link = new link;
(*new_li... |
471e79ecc91a9d43f0e86d315cf81627669eb578 | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/preprocessor/repetition/enum_trailing_params.hpp | bca044b62b93f4b61236636a9346a04d2a57fe19 | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | enum_trailing_params.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:b72eb935679d0b4fc2e409632c7cef183adde41a3375bb55f6a3682761b51a53
size 1853
|
dfe6d9467175ed8ef784c88abddbc0000812f829 | cf09432fef465636a94ca439032f247fed9dce49 | /src/Core/DataBase/DataBase.h | 36ac06336bc9115a81f4cf027950282bf5ee77a6 | [] | no_license | arennuit/iisuoscbridge | 0c328459b99e8e846de3372e579a59528c59b0ea | 02bbe47429aad75da845283257eeb484bbf6fb1e | refs/heads/master | 2020-03-28T05:27:58.537837 | 2016-06-13T16:09:24 | 2016-06-13T16:09:24 | 61,049,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,874 | h | DataBase.h | #pragma once
#include "AbstractDataBase.h"
#include <string>
#define NEW_OSC_PATH_BIT "New Osc Path Bit"
#define NEW_IISU_PATH "New Iisu Path"
namespace SK
{
class PathMap;
//////////////////////////////////////////////////////////////////////////
/// \brief This class is a singleton, it keeps all the data handled... |
3cb74b434709dd141519951a52ba297f92cd4c01 | 45055eaa8793d5b22512dcc9f8ce479374aa8162 | /x/src/xhome/xshop/xColorPickerDlg.h | 8e78873f862f20b64b6ab7f228d7eab343c2f3f7 | [] | no_license | omni-x/xhome | 3cb90ee1fe894514b719499c06a00d66d92597bd | 57744bc4962ddb984df1524ff3d813bf73e089e2 | refs/heads/master | 2021-01-10T19:48:34.996215 | 2015-04-02T02:10:29 | 2015-04-02T02:10:29 | 31,537,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 649 | h | xColorPickerDlg.h | #pragma once
#include "../resource.h"
// XColorPickerDlg dialog
class XColorPickerDlg : public CBCGPDialog
{
DECLARE_DYNAMIC(XColorPickerDlg)
public:
XColorPickerDlg(xColorCard& clrCard, CWnd* pParent = NULL); // standard constructor
virtual ~XColorPickerDlg();
// Dialog Data
enum { IDD = IDD_X_DIALOG_COLOR ... |
825e4148ee2f81100ecf9e2ced47a14a99b98598 | b410a403c35538f7423ceb2e322392c977e66db2 | /2q11.cpp | ca14527c8dd20ab9bbb1bcfdcd843affa8af3dee | [] | no_license | alex49knight/c-assignment | 72074a6df0658c459d182da4d13302029044e4d8 | db54da0c6e4bd192833567f2e3e0862040dedf6c | refs/heads/master | 2021-01-19T23:40:07.788460 | 2017-09-01T15:13:11 | 2017-09-01T15:13:11 | 101,267,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | cpp | 2q11.cpp | #include<iostream>
using namespace std;
main () {
float a,b,c,d;
cout<< "P ";
cin>> a;
cout<<" R ";
cin>> b;
cout<<"T ";
cin>> c;
d=(a*b*c)/100;
cout<<"simple intrest "<<d;
}
|
6a95ff782b8248e29fd016a47622ace9476b4bc7 | 699ce6d76944ddffc3db6c21cfee228c13c7ff47 | /mediaplayer/src/main/cpp/src/mediaplayer/decoder/Decoder.h | cac6ebe2a0be3de54ea3b50d6e6ceb1ae234036c | [] | no_license | ab503044120/mediaplayer | 04986db6798d574b32a169f02ff5484eedf924cb | a6f011dd3cfd09ea3960c1b61bd6a0bf6bcf4546 | refs/heads/master | 2023-02-04T12:38:30.936287 | 2020-12-26T12:49:10 | 2020-12-26T12:49:10 | 212,244,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | h | Decoder.h | //
// Created by huihui on 2019/10/5.
//
#ifndef MUSICPLAYER_DECODER_H
#define MUSICPLAYER_DECODER_H
#include <cstdint>
#include <queue/FrameQueue.h>
#include "Thread.h"
extern "C" {
#include "libavformat/avformat.h"
#include "libswresample/swresample.h"
}
class PlayerState;
class Decoder : public Runnable {
prote... |
e367426fb7f87a9cfd6a5b9aa007353dd26ce5e3 | 2922f5512a4741f1cc084a0857704fa2c88fcce9 | /engqtest/u_s_ar.cpp | 0cb0d5ed33b85b6ae62c3bda9df83713e97314f1 | [] | no_license | RickKoenig/engq | 3544a7c01ff6b05c732a19607ee5424e0086e7f3 | 87ea08727bc0aea508221f0210e1f8f52ef066b9 | refs/heads/master | 2023-07-26T06:35:31.377976 | 2022-04-05T05:52:53 | 2022-04-05T05:52:53 | 242,048,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,482 | cpp | u_s_ar.cpp | // augmented reality using a web cam
// for vfw.h
#define INCLUDE_WINDOWS
#define RES3D // for 3d UI
#include <m_eng.h>
#include <l_misclibm.h>
#include <vfw.h>
#include "u_states.h"
#include "d2_font.h"
#include "u_modelutil.h"
#include "u_s_ar.h"
#include "u_ar_scan.h"
#include "u_ar_parse.h"
#include "helperobj... |
1197a197bf7520c9a30c8970e718d0e83ece196b | b848d4f79256c7738b0923420d8548a0121ceb81 | /src/visualisers/ColourTechnique.h | 75c3778b6d98d96d4c15e0d2cfdfe05b0865cc30 | [
"Zlib",
"LGPL-2.0-or-later",
"MIT",
"LicenseRef-scancode-other-permissive",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"xlock",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ecmwf/magics | 57f5be3f4dcf339203688e7ce2bee92d9bc11318 | ba612c99a681547d111e4088ddc722cfb77b0666 | refs/heads/develop | 2023-08-19T02:56:24.734190 | 2023-08-04T07:37:52 | 2023-08-04T07:37:52 | 160,882,537 | 50 | 14 | Apache-2.0 | 2023-06-22T10:35:22 | 2018-12-07T22:39:04 | Jupyter Notebook | UTF-8 | C++ | false | false | 5,257 | h | ColourTechnique.h | /*
* (C) Copyright 1996-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an in... |
02a835490a6dd1a879399e6e3e7fde835edc96c1 | 0e1ea715cd91666b74554e478c809e33700a44f8 | /mirai-demo/pch.cpp | ae68f10821adacc9ec7807e9a424450e026e5d31 | [
"MIT"
] | permissive | BouncyHunter/MiraiCP | 17ff8e1d6b9e3c470115bf23a71e986e2d1996ce | e276bd9860a4f1dd4c2e746c1216ffaf3b5286f0 | refs/heads/master | 2022-12-13T06:51:43.522961 | 2020-09-12T09:58:29 | 2020-09-12T09:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,198 | cpp | pch.cpp | #include "pch.h"
/*
*正文开始
*/
/*
* 名称:Java_com_example_plugin_CPP_1lib_GroupMemberJoin
* 作用:群成员加入
* 参数:env 必备参数,job 必备参数,memberid qq号,active 是否主动加入(非邀请)
* 返回值: jstring 发送到群里的原因
*/
JNIEXPORT jstring JNICALL Java_com_example_plugin_CPP_1lib_GroupMemberJoin
(JNIEnv* env, jobject job, jlong memberid, jboolean active) {
... |
2d5d074343fbedc447b50e81e93f0a5065f78e55 | 5443d0dcbccc86d0b2f570f3c4c09cd2af3a0cea | /DlgSpravSmp.cpp | 9553a191e22b99a2a5e32cc7d82e6c7bedcc0766 | [] | no_license | radtek/master2 | de0b16ab826f34be1895156b03f1bed3fbfd1ed6 | de1895a34443ca4bfc97ccdedd5a785ea2f88d9e | refs/heads/master | 2020-06-06T03:44:53.659782 | 2014-09-09T10:42:50 | 2014-09-09T10:42:50 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 8,765 | cpp | DlgSpravSmp.cpp | // DlgSpravSmp.cpp : implementation file
//
#include "stdafx.h"
#include "master.h"
#include "DlgSpravSmp.h"
#include <sqlext.h>
#include ".\dlgspravsmp.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern SQLRETURN g_sqlret;
extern CMasterApp theApp;
///////... |
7da7f01cb5bcec9171856beb38d159a045c0b90c | c5380b137eb79f4f6ffa9f3ca88cc3ff9925cc90 | /CarUno/CarUno.ino | b6ca8dc40b17cad7d042d20f0585702d736906f0 | [] | no_license | kamelMohsen/Micro2 | 08d855667fe1b5583bebe910a2a1c1ffb406a849 | a6c64814fc9ec8546bb09f91d4d2f688766e1a86 | refs/heads/master | 2020-11-29T16:55:53.790703 | 2019-12-26T01:23:23 | 2019-12-26T01:23:23 | 230,173,146 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,647 | ino | CarUno.ino | #include <SoftwareSerial.h>
#include <Servo.h>
//////////////////////////////////////////Defining constants for car ports//////////////////////////////////////////
#define enA 5
#define in1 4
#define in2 9
#define enB 6
#define in3 10
#define in4 7
#define servoPin 11
//////////////////////////////////////////Defin... |
d7d4fa8906f7710fe4c03e970f6211e4c375d365 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-amplifyuibuilder/include/aws/amplifyuibuilder/model/FieldConfig.h | 7dde3a515bcc8143aaa70d54514fb9852ab4b17d | [
"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 | 7,492 | h | FieldConfig.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/amplifyuibuilder/model/FieldPosition.h>
#include <aws/amplifyuibu... |
94b08ff1b83d0e21f69abed2b6ef662ec7de64d9 | 31c7976c09964fabc58aacdd3f7a715cce3bd25f | /RenderSystem/MainWindow.cpp | 031aa8adb0a0ab251e6dd21ba0f3247d929a2968 | [] | no_license | digideskio/Paraft | fbf14adf3161eeb50e88c0f2bbe7f0e2565b3902 | fec2b13f169446aa5defe0a7a2bfab62e703e5b7 | refs/heads/master | 2020-06-20T18:35:58.360824 | 2014-01-18T00:06:57 | 2014-01-18T00:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,344 | cpp | MainWindow.cpp | #include "MainWindow.h"
#define PLUGINS_PATH "./plugins"
#define PLUGINS_LIST_FILE "plugins.txt"
PluginManager::PluginManager(MainWindow *mainWindow)
: m_mainWindow(mainWindow),
m_pluginsPath(mainWindow->getPluginsPath()) {
}
PluginManager::~PluginManager() {
qDebug("~PluginManager()");
for (int i ... |
f98733e4a5303bbc60bf65ee85a94367c2d57831 | 1cb937598cc272fe3b0f662d00b294d05ca9bd85 | /Menu.hpp | eb583021c4282e17931d93c9435684b85a06a33c | [] | no_license | Towerthousand/GGJ | be01e1d31580ae445e7fe1c0cabbcb74f955bb34 | 502d94b45f0aaf1777eecad658c2164827f0266a | refs/heads/master | 2016-09-05T19:57:26.600586 | 2014-02-02T16:57:28 | 2014-02-02T16:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | hpp | Menu.hpp | #ifndef MENU_HPP
#define MENU_HPP
#include "commons.hpp"
/*
cargar modelo quad
quad.program
poner textura*/
class Menu : public GameObject {
public:
Menu();
virtual ~Menu();
void update(float deltaTime);
void draw() const;
private:
void startGame();
Model m;
Texture2D* tex1;
Texture2D* tex2;
sf::Tc... |
d055a7f64e12a144062e6a3e80a42c50951f9d71 | 91e91dfe557ab9e61cc7a04cf305512d24a3ad42 | /include/dn/Engine.inl | 37b7fc04e09d1904d202bfe4538e4fad3cbe1342 | [] | no_license | mmerabet42/Dyne | 659f38d548b4008b70e15c28181de18b9d36b4f2 | 3e0a5311b88bb0adbfa7679ce5c4602f3006b745 | refs/heads/master | 2020-04-10T01:22:57.599519 | 2019-03-19T22:59:24 | 2019-03-19T22:59:24 | 160,714,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,602 | inl | Engine.inl | #ifndef DN_ENGINE_INL
# define DN_ENGINE_INL
#include "dn/Engine.hpp"
#include "dn/Object.hpp"
#include <algorithm>
template <typename ... Filters>
dn::Engine<Filters ...>::Engine()
// : _filters{ {typeid(Filters).hash_code(), std::vector<dn::EngineFilterBase *>()}... }
{
this->_filters = {
{ typeid(Filters).hash_... |
ca874c39146e3f0a8ee501dd8a78ee78597f3ff4 | 776d83403c0fd1781a6b50f3d055596799e69df6 | /DFSBFS/2178.cpp | 89f620d095fad0ca18b5604676be5d60e180f29a | [] | no_license | nohhyeonjin/BOJ | d23dc4767fc2a47df30c054aff72ec737305fa5c | 780d5bb2657086d5e789a49fe192eb7233d946f2 | refs/heads/master | 2023-04-20T22:10:42.266110 | 2021-04-25T10:53:26 | 2021-04-25T10:53:26 | 200,638,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | cpp | 2178.cpp | #include <bits/stdc++.h>
using namespace std;
int n,m;
int maze[100][100];
int visited[100][100];
int dy[4]={0,1,0,-1};
int dx[4]={1,0,-1,0};
bool inside(int ny,int nx){
if(ny>=0&&nx>=0&&ny<n&&nx<m) return true;
return false;
}
void bfs(){
queue<pair<int,int>> q;
q.push(make_pair(0,0));
visited[0][0... |
96517e8535ff9e7f97ede82393d8edbe2eaa7e78 | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bseg/boxm2_multi/algo/boxm2_multi_refine.cxx | 90b40598a8cedc15927dfa3d968181db3d82e1ab | [] | 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 | 18,527 | cxx | boxm2_multi_refine.cxx | #include <iostream>
#include <algorithm>
#include "boxm2_multi_refine.h"
//:
// \file
#include <boxm2_multi_util.h>
#ifdef _MSC_VER
# include "vcl_msvc_warnings.h"
#endif
#include <boxm2/boxm2_scene.h>
#include <boxm2/boxm2_util.h>
#include <bocl/bocl_manager.h>
#include <boxm2/ocl/boxm2_ocl_util.h>
#include <boxm2/... |
8cf076e9ccf2550b4f13b45ab2f81e13c40418b4 | a1afeeec9c82f6dae9975f3ade0ab11fa0b70020 | /_Header/numUI.h | 3360f1031bc604088c09e73db469f70f5e44f9d2 | [] | no_license | ChinHiu/FleetWars | 9404e2ee8abd32645eddd0c2f9194a6498fa1f44 | f79a044cdbbd1c4881dd2b358c11daed93de2696 | refs/heads/master | 2021-01-23T04:39:54.043319 | 2017-03-27T01:53:19 | 2017-03-27T01:53:19 | 86,233,206 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,233 | h | numUI.h | //------------------------------------------------------------------------------
// タイトル: 数字系UIのヘッダー
// ファイル名: numUI.h
// 作成者: AT13B284 28 CHIN HIU
// 作成日: 2017/01/08
//------------------------------------------------------------------------------
#ifndef _NUMUI_H_
#define _NUMUI_H_
//------------------------------... |
07f2123dd0f1b91cc0ec76c592e7556e36b3a2fb | 7126bad7b5fd9c7c280a01617fbb74a1df78f29c | /tests/gui/ControlWidgetTest.cpp | 054569df562b922d08e2e2ce90141902600e55a4 | [] | no_license | Ascent-Group/visual-db | b6ea7c55efc459c7575529041b3a4d876bbfb4f8 | 4cd074fb64fac2def74bb5005fc0d46caa0e96f7 | refs/heads/master | 2020-04-06T18:17:28.829085 | 2011-01-24T11:09:07 | 2011-01-24T11:09:07 | 1,315,379 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,598 | cpp | ControlWidgetTest.cpp | /*-
* Copyright (c) 2009, Ascent Group.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list o... |
5464eb62668dfb11ac4bf04c3d4d1d9f95681bf2 | 24ab227e1043d2e380a9d9f767d1bc352b3dd18d | /leetcode#79.cpp | 51706a9112a482ed613c269b8da5b8fde8f604f3 | [] | no_license | binghe2001021/leetcode | 02a151b3ead0b9b387a5e0b0a36efc48181b709e | 4579bf3cbd95750945e8f01be1fdb28f0419be54 | refs/heads/master | 2016-08-11T21:05:53.997830 | 2016-04-06T10:45:48 | 2016-04-06T10:45:48 | 53,642,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | cpp | leetcode#79.cpp | #include<cstdio>
#include<iostream>
#include<vector>
#include<string>
#include<map>
#include<queue>
#include<stack>
#define maxn 1111
using namespace std;
const int dx[4] = { -1, 0, 0, 1 };
const int dy[4] = { 0, -1, 1, 0 };
class Solution {
public:
int m, n;
bool hash[111][111];
string sav;
bool ... |
45b489227f8c3d886ce274129ccf644c55c44526 | e22f458c6cc98823e62403200ab881bc76bae68a | /ZMQService/NDNetService.h | a4c295a090f85ea02e102523c948cf4718d37ec2 | [
"Apache-2.0"
] | permissive | zhangtiantian001/PluginManager | b1e6984c6374e8dd48b1c8f4858cba45607b7f10 | de6146e3003aedf5bda64421b4802fc6d7c8f1af | refs/heads/master | 2020-04-28T03:47:19.730867 | 2019-03-11T07:31:20 | 2019-03-11T07:31:20 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 778 | h | NDNetService.h | #ifndef __ND_NET_SERVICE_H__
#define __ND_NET_SERVICE_H__
// ZMQService.h 接口层
#include "ZMQService.h"
class NDNetService : public ZMQService
{
// 事件响应
public:
/// (派生实现)处理接收到的请求消息
/// @attention 实现侧应仅复制接收到的消息,转移到其他地方处理,否则会阻塞I/O线程)
/// @param[in] remoteId 发送消息的远端地址
/// @param[in] remoteIdLen ... |
b93002bdbb9607f2dbe1b9f04605b62457c1e5e2 | 617f29dbdbc9ed0bdd94f62809f87ca579719524 | /00-udemy/03-variables.cpp | 31a9f91f7abb89bb7c5010a814472142a5d6065a | [] | no_license | pnyvsh/cplusplus | 735038220c80cb99a33cf35df762f825b430515d | 927eeec66e9bb33bf6bc836f0d987fcf74e08edb | refs/heads/master | 2020-04-05T20:11:00.285710 | 2018-11-02T03:30:00 | 2018-11-02T03:30:00 | 156,921,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | cpp | 03-variables.cpp | #include <iostream>
using namespace std;
int main()
{
//If we need to print a number out, we can easily print it out using cout << 4; however it won't be stored permanantly
//Hence, we can store the digits in a variable
int A;
//Here, we've initialised a variable we can store a value in
A = 4;
cout << A;
... |
c026196f9390fb8c22f85a49fab1aceab27b3c4a | 43a7c618ca2f9d62984a7f17524fa16bf3b6e35c | /src/glwidget.h | daa97b18a4250c3dd5c46263c27e649d065165dd | [] | no_license | kzliu/particleScene123 | e006e952af175f7a3314caf70df387c11c297e6f | 9aa0b2704d3d089304f1e4f28549ef5c7f810127 | refs/heads/master | 2021-01-10T08:00:11.345833 | 2015-12-14T19:49:46 | 2015-12-14T19:49:46 | 47,587,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,243 | h | glwidget.h | #ifndef GLWIDGET_H
#define GLWIDGET_H
#include "GL/glew.h"
#ifdef __APPLE__
#include <glu.h>
#else
#include "GL/glu.h"
#endif
#include "glm/glm.hpp" // glm::vec*, mat*, and basic glm functions
#include "glm/gtx/transform.hpp" // glm::translate, scale, rotate
#include "glm/gtc/type_ptr.hpp" // glm::value_p... |
a6937236f2f6888011245230f6d12b4b7e7bee18 | df1b60bb2364be0a6d9e7188c08a5aa5339c72be | /include/uv++/GetAddrInfo.hpp | 565a30fdc4911c8e6e37e5f3652ab6c347867735 | [
"MIT"
] | permissive | icew4y/uv | d1ef5cd36cb01b82d5c2e53e96010f49233802c1 | 17cbc3e0f53bf05fba09a4fa9378388244d96443 | refs/heads/master | 2020-03-22T22:12:22.556396 | 2018-06-07T06:58:44 | 2018-06-07T06:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,140 | hpp | GetAddrInfo.hpp | #ifndef UV_GET_ADDR_INFO_HPP
#define UV_GET_ADDR_INFO_HPP
#include <functional>
#include <string>
#include <uv.h>
#include "Error.hpp"
#include "Exception.hpp"
#include "Loop.hpp"
#include "Req.hpp"
namespace uv
{
class GetAddrInfo : public Req<uv_getaddrinfo_t>
{
public:
explicit GetAddrInf... |
eb4d806917413c380d3acaafbe4c83dddf1295e7 | 35e314e3f3981259fad3bc5fb6de0c0475fdda05 | /QML/MakeElement/main.cpp | 418b3b1dec8d5c65b989061c7f120f6e3c0318ab | [] | no_license | isliulin/iwork | 708ae59cdabc0c719386dc176db2cd4164e23252 | a114e460dead6ef54bf1b92af36d1b9e4de389bf | refs/heads/master | 2023-04-14T10:03:57.089975 | 2021-05-01T12:34:34 | 2021-05-01T12:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | main.cpp | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include"qqml.h"
#include<QQmlContext>
#include"filereader.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
qmlRegisterType<FileR... |
ea4c26aa8bc113dd18215d78b019027115ad9432 | c4bf060847c194c886383126e1274cd3b0b1c82d | /ctrtool/deps/libtoolchain/test/Optional_TestClass.h | 51c84dca42fade034200c18df185bacbc471c1de | [
"MIT"
] | permissive | PMArkive/Project_CTR | 1d4ef452c299ba0c823e373e160fdd78e985301f | 334f6f04683e788c1bc9e614a554d078005adc1f | refs/heads/master | 2022-12-22T00:33:04.185114 | 2022-06-19T05:53:25 | 2022-06-19T05:53:25 | 163,554,339 | 1 | 0 | null | 2018-12-30T01:57:22 | 2018-12-30T01:57:22 | null | UTF-8 | C++ | false | false | 496 | h | Optional_TestClass.h | #pragma once
#include "ITestClass.h"
#include <tc/Optional.h>
class Optional_TestClass : public ITestClass
{
public:
void runAllTests();
private:
void testDefaultConstructor();
void testWrapConstructor();
void testCopyConstructorFromNullOptional();
void testCopyConstructorFromExistingOptional();
void testWrapOp... |
485db931295ae0762082d2a3ddd93e7ef5b7033e | 428a55501fb36d9aa1b264b46a492dbc4a341129 | /src/vivid/scenegraph/layer.h | 05bafc8c174b0333ddf4c63c3b711c64d75d8acc | [] | no_license | eliasffyksen/Vivid | 66dff6b3d4fd2de6989fe9993413b388ac1c6b0a | 9f8cefe0836b3d593a32eb002cdc3cd9d5f69cb8 | refs/heads/master | 2021-01-25T16:58:40.655476 | 2019-06-17T16:35:37 | 2019-06-17T16:35:37 | 101,983,444 | 2 | 0 | null | 2017-09-06T13:10:33 | 2017-08-31T09:22:23 | C++ | UTF-8 | C++ | false | false | 503 | h | layer.h | //
// Created by Ole on 01.10.2017.
//
#pragma once
#include <vivid/scenegraph/gameobject.h>
#include <vivid/scenegraph/camera.h>
#include <vivid/util/maths.h>
namespace vivid {
class Layer {
private:
GameObject root;
graphics::Renderer2D *renderer;
Camera *currentCamera;
public:
Layer(graphics::Renderer... |
a0d5221c7d2767be2c142461ed0c15f9036fcd4a | 341e111a9ff68c1266c8609ad42c6d8a6e5f2a11 | /app/src/main/cpp/plugins/trunk/main/callbacks/strategycallback/managerselfstrategycallback_old/src/managerselfstrategycallback.cpp | ea6e90262f1ae7c87ed89bce7df3a4d5a507f2c7 | [] | no_license | chengchuishu/ysos_platform_as812 | 91131dc777f263d18c31efe1e6bb839c71b4afb2 | acb12f01d1e307b459a418ed5865f2581de68a00 | refs/heads/main | 2023-05-13T13:56:59.951152 | 2021-06-03T02:47:50 | 2021-06-03T02:47:50 | 373,361,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 45,742 | cpp | managerselfstrategycallback.cpp | /**
*@file managerselfstrategycallback.cpp
*@brief manager self strategy call back
*@version 1.0
*@author l.j..
*@date Created on: 2016-10-20 15:16:00
*@copyright Copyright (c) 2016 YunShen Technology. All rights reserved.
*
*/
/// Private Headers // NOLINT
#include "../include/managerselfstrategycallback.h"
... |
1270fb27b4bdb0960112c41aa1d1ecc205950ffe | f313c6df81673cfb79c478359d00aad4a38d4c54 | /sd-n100f-proto-1-31-01-ps2/Projects/ScoobyDoo/Code/Engine/x/xScene.cpp | 0ed98577ed8d3c07591a86046b07f6eeeddaae49 | [] | no_license | seilweiss/dwarfdb | 2ee1a1d748d83f6d14413bd58312c99059af99bc | 9afc2132cd69f11ed6e69bd4b2b67805bc1828b9 | refs/heads/main | 2023-08-14T23:48:48.254038 | 2021-10-07T05:40:50 | 2021-10-07T05:40:50 | 414,475,004 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87,590 | cpp | xScene.cpp | typedef struct tagXStreamMDSDirectory;
typedef struct _iVFXResource;
typedef struct _rxHeapSuperBlockDescriptor;
typedef struct tagXAnimTrigger;
typedef struct Vector3D;
typedef struct _rwResEntryTag;
typedef struct _RxHeap;
typedef struct _iSFXResource;
typedef struct _rxHeapBlockHeader;
typedef struct xEntryPoint;
ty... |
1641783a6eb41f96c78ae853814a1a56df4b9296 | 4b442b07c46f24e3a3b2dea23d0bf68d925fd031 | /ufo_game/ufo_functions.cpp | f68ebd43327718731c42e1abc01e1ca5d702a72a | [] | no_license | gabriel-garvey/projects | a7470896982bc58f20439fbd7f6d6b7beca6b195 | 1d202dc3d4a330c8ca3d9197fc8783730b4a2be5 | refs/heads/master | 2021-07-18T13:53:13.736244 | 2021-01-03T00:58:59 | 2021-01-03T00:58:59 | 229,492,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,188 | cpp | ufo_functions.cpp | #include <iostream>
#include <vector>
using namespace std;
// Game functions
void greet() {
cout << "=============\n"
<< "UFO: The Game\n"
<< "=============\n"
<< "Instructions: save your friend from alien abduction by guessing the letters in a codeword.\n"
<< "You have 7 chances to save y... |
1c3df80a0956487073cdeafca4d3ab5b320d1506 | c4f84aecbccd66748a5cb1d916ee179bbfe3f72d | /src/AffineFunction.cpp | 1969ecd7fc7d9ea434a58123efe9741e0e1bd2e2 | [
"BSD-3-Clause"
] | permissive | MeasureTransport/MParT | c43ee812704b117ff147b26ab83b10d411678b69 | aa08ee2e2ff765282b14351f07a81ea0c963783a | refs/heads/main | 2023-08-18T13:33:37.072562 | 2023-07-26T18:57:44 | 2023-07-26T18:57:44 | 444,467,673 | 9 | 1 | BSD-3-Clause | 2023-08-13T03:02:26 | 2022-01-04T15:22:23 | C++ | UTF-8 | C++ | false | false | 3,442 | cpp | AffineFunction.cpp | #include "MParT/AffineFunction.h"
#include "MParT/Utilities/KokkosSpaceMappings.h"
#include "MParT/Utilities/ArrayConversions.h"
#include "MParT/Initialization.h"
#include "MParT/Utilities/LinearAlgebra.h"
using namespace mpart;
template<typename MemorySpace>
AffineFunction<MemorySpace>::AffineFunction(StridedVect... |
68735b9f394693df4294abf1e57bbe0dcb2c90dd | eab34e7863bf2bc365663542040536ca9781904f | /Documents/算法笔记/第三章/B1022.cpp | 5853623120858f6fe34e2b3b0bb471e5723dc25c | [] | no_license | peapio/arch-linux | 6eb3e27e467c93fc0ede5bf96e89f1f694c385f3 | 3f035c48324d4baf7a9ea9c7c65dc5672493a09f | refs/heads/master | 2023-02-15T13:04:53.704229 | 2020-12-31T12:57:36 | 2020-12-31T12:57:36 | 325,786,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | B1022.cpp | #include <cstdio>
int main(){
int A,B,D;
int a[100];
scanf("%d%d%d",&A,&B,&D);
int S = A+B;
int result;
int l,i=0;
while(S/D){
l = S%D;
S = S/D;
a[i] = l;
i++;
}
a[i] = S;
for(int j=i;j>=0;j--){
printf("%d",a[j]);
}
}
|
abfcf96173f1a2989ff2c215c4fb8708236fb4c5 | df59b0571730619d5d3f72bdf3d9427393fcf8cc | /ld18/code/Systems/Graphics/GraphicsSystem.cpp | 204c0030cdd4b8403106b9f06e9a7d46a88fef73 | [] | no_license | stuckie/ludumdare | 69642be40da72e64bd0c1a17d4c4d6937fd278a9 | b61d30e97a63b56376defaf06a8eaebe3322811c | refs/heads/master | 2021-01-21T10:13:02.901439 | 2019-01-02T14:48:56 | 2019-01-02T14:48:56 | 4,536,120 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,461 | cpp | GraphicsSystem.cpp | #include "GraphicsSystem.h"
#include <SDL/SDL.h>
#include <SDL/SDL_rotozoom.h>
#include <SDL/SDL_framerate.h>
#include "../Entity/EntitySystem.h"
#include "../Entity/EntityList.h"
#include "../../Entities/Entity.h"
#include "../../Objects/SDLGraphicObject.h"
GraphicsSystem* GraphicsSystem::instance_ = 0;
GraphicsS... |
d70bdbdd265c3061a861455b0ea5906420609f74 | 9007983dc83b2010d52da0366735a621f3289fda | /src/NewTurret.cpp | 2904231c86c0bdfa6cde38631b84a26aba7643b5 | [] | no_license | TingHLiao/TowerDefense | 88db5dd3608967175d270932f78796b067e8e7b0 | 4593a3c0a94836d0011526c399ec0a7bbb777a13 | refs/heads/master | 2022-11-08T13:43:14.239384 | 2020-03-06T18:20:04 | 2020-03-06T18:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 903 | cpp | NewTurret.cpp | #include "PlayScene.hpp"
#include "NewTurret.hpp"
#include "RocketBullet.hpp"
#include "AudioHelper.hpp"
const int NewTurret::Price = 100;
NewTurret::NewTurret(float x, float y) :
// TODO 2 (2/8): You can imitate the 2 files: 'MachineGunTurret.hpp', 'MachineGunTurret.cpp' to create a new turret.
Turret("play/100.png",... |
331ec02711848820d56ca32126799f6572035fbb | 0eec9e0656a31f02b2692847812767814c579ddf | /assignmentTetris/tetrisAttemptFive/tetrisAttemptFive/Shapes.cpp | 0bd11fcf5a01e61618d2cc4ec0b45c9337f2145c | [
"BSD-3-Clause",
"libtiff",
"Zlib",
"Libpng",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"IJG"
] | permissive | tsgardiner/SDLTetris | 7751e27ba2607a7b6976555e15df567e2ab19baa | 2364e28e96a92164e4b44b685b9c49a4b5bc37f5 | refs/heads/master | 2021-01-16T18:32:15.270998 | 2015-09-09T20:05:58 | 2015-09-09T20:05:58 | 41,734,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,154 | cpp | Shapes.cpp | #include "Shapes.h"
//Total of seven shapes in a 4x4 matrix.
char shapes[7][4][4]
=
{
//Shapes
{
{ 0, 0, 1, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 1, 0 }
},
{
{ 0, 1, 0, 0 },
{ 0, 1, 1, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 0, 0 }
},
{
{ 0, 0, 1, 0 },
{ 0, 1, 1, 1 },
{ 0, 0,... |
9fb0b22074bc1a0b5c3c678a0956c9b98e3203ca | 135bbdfec7f6913c3d485fff620619f87251fd6d | /C++ Stack&&Queue/Queue.cpp | 913bf30fca32c8d79cddafbff18fc498a6da2c3b | [] | no_license | haojialiu/C--exercises | d2705b38e2192e9de8c831b6f6eb6302e1c51b55 | 9e932c19206f9c4ee1346e00534cb558fbba7389 | refs/heads/master | 2020-04-26T08:14:00.044027 | 2019-03-03T08:46:01 | 2019-03-03T08:46:01 | 173,416,438 | 0 | 0 | null | null | null | null | ISO-8859-5 | C++ | false | false | 1,002 | cpp | Queue.cpp | #include"StackQueue.h"
bool Queue::IsFull()
{
if ((_tail + 1) % SIZE == _head)
{
return true;
}
return false;
}
bool Queue::IsEmpty()
{
if (_head == _tail)
{
return true;
}
return false;
}
Queue::Queue()
{
_data = new ElemType[SIZE];
assert(_data != NULL);
_head = _tail = 0;
}
bool Queue::PushQue(ElemT... |
442e8424e4d53b03f6e8337b4becb2c118b8a6a7 | a9e308c81c27a80c53c899ce806d6d7b4a9bbbf3 | /SDK/include/WildMagic4/LibRenderers/OpenGLRenderer/Wm4OpenGLStencilState.cpp | 741e0bb69456e0ce3c9e1d43cb0257b371c9416e | [
"BSL-1.0"
] | permissive | NikitaNikson/xray-2_0 | 00d8e78112d7b3d5ec1cb790c90f614dc732f633 | 82b049d2d177aac15e1317cbe281e8c167b8f8d1 | refs/heads/master | 2023-06-25T16:51:26.243019 | 2020-09-29T15:49:23 | 2020-09-29T15:49:23 | 390,966,305 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | cpp | Wm4OpenGLStencilState.cpp | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4OpenGLRendererPCH.h"
#include "Wm4OpenGLRenderer.h... |
2db8ea77118dc9344f7348e576b6fdff7437b576 | c57e7642f4a8b995ec2f3d325e23e122d250ebeb | /Source/DroidDefense/C_BasicUnit.cpp | 8093e69d7afe6ba5388dd5b71fae90b9fb005dc9 | [] | no_license | crashtec/DroidDefense | 725dc39a0f2995f9e4096003fb3614c0509a867a | 086be0537011a7f80f0aa888b17fe8f96d23fb6d | refs/heads/master | 2020-05-14T14:08:19.039375 | 2017-05-10T21:28:05 | 2017-05-10T21:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | C_BasicUnit.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "DroidDefense.h"
#include "C_BasicUnit.h"
// Sets default values
AC_BasicUnit::AC_BasicUnit ()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
Primar... |
539d9c42282ea7691a2e43fc6d0f164f2a67b514 | c7cfd7faa96f8f5e6547879043bde50b15608c17 | /263__A - Beautiful Matrix__Accepted.cpp | 725721d0048141dcbffa3d8b2535935da97ea63e | [] | no_license | arifuljannatarif/programming-solutions | 5d3ecf0a9e2469706147ce90f4662d953cd07d6f | 0a673a78effd797127229f81e3776839ebb13504 | refs/heads/master | 2020-12-03T19:02:06.108251 | 2020-01-03T13:45:07 | 2020-01-03T13:45:07 | 231,442,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | 263__A - Beautiful Matrix__Accepted.cpp | #include<bits/stdc++.h>
#include<cmath>
using namespace std;
int main()\
{
int n,m,x[5][5],indx1,indx2;;
for(n=0; n<5; n++)
{
for(m=0; m<5; m++)
{
cin>>x[n][m];
if(x[n][m]==1)
{indx1=n;
indx2=m;}
}
}
cout... |
8a76c2424bdad3482fec852566874ad5020d1198 | 7dd6fa6e69c4df7782fb17baf9463559b43683ee | /lib/include/gui/widgets/slider.h | 33491bc0a90c8d65dbcd958c9217b94732729055 | [
"MIT"
] | permissive | Remco123/CactusOS | 726baefe3514bd0597f071f8aad30ec97e78d0fc | 95825bbbd54ca71ea40dcdda23f0ba6604d5c4a8 | refs/heads/master | 2021-12-25T01:03:06.906243 | 2021-12-20T13:47:55 | 2021-12-20T13:47:55 | 138,499,087 | 97 | 6 | MIT | 2021-05-02T15:42:20 | 2018-06-24T16:47:50 | C++ | UTF-8 | C++ | false | false | 1,559 | h | slider.h | #ifndef __LIBCACTUSOS__GUI__SLIDER_H
#define __LIBCACTUSOS__GUI__SLIDER_H
#include <gui/widgets/control.h>
#include <gui/property.h>
#include <gui/events.h>
#include <gui/colors.h>
namespace LIBCactusOS
{
class Slider : public Control
{
private:
bool mouseDown = false;
public:
GUIPrope... |
14bab8ef67ed489336b848fd481a5bc80bb0936c | 1c9d04a9352e6d86480f9e0947f930db042d8e80 | /src/plugins/attic/openni/utils/hand_if_observer.cpp | 2411748c0f05b306c493ebc2bb21539ba9190c73 | [] | no_license | fawkesrobotics/fawkes | 2c9de0cdb1dfcc951806434fe08458de5a670c8a | ad8adc34f9c73ace1e6a6517624f7c7089f62832 | refs/heads/master | 2023-08-31T01:36:15.690865 | 2023-07-04T17:05:55 | 2023-07-04T17:05:55 | 1,030,824 | 62 | 26 | null | 2023-07-04T17:05:57 | 2010-10-28T04:22:55 | C++ | UTF-8 | C++ | false | false | 3,004 | cpp | hand_if_observer.cpp |
/***************************************************************************
* hand_if_observer.cpp - Skeleton hand interface observer
*
* Created: Sat Apr 02 19:39:31 2011 (RoboCup German Open 2011, Magdeburg)
* Copyright 2006-2011 Tim Niemueller [www.niemueller.de]
*
**************************************... |
85cb5a7cad268e6c34c784f3bbadfedc5ebd94ff | 66696696e06ec11d4b3549ac73347d527f3a04c8 | /LeetCode/Array Index And Element Equal.cpp | 2dc4b669c1de31d653d618e92d1e204bfbe24877 | [] | no_license | gagandeepahuja09/Binary-Search | 54abaafa90edc4cabe85bde8f9c5c4daabfd7453 | f6515d2ed55a5ca05985c33b1b1f31574155e34c | refs/heads/master | 2021-07-19T09:02:19.278928 | 2020-06-02T14:44:07 | 2020-06-02T14:44:07 | 178,905,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | cpp | Array Index And Element Equal.cpp | #include <iostream>
#include <vector>
using namespace std;
/*
Given a sorted array arr of distinct integers, write a function indexEqualsValueSearch that returns the lowest index i for which arr[i] == i. Return -1 if there is no such index. Analyze the time and space complexities of your solution and explain its corr... |
89d0bd1a3dd27438cf66cd71f1eb15efd74695af | 8caccbe6a8af084cd712fedc8fe733d884c98063 | /leetcode-explore-featured-card-may-leetcoding-challenge-535-week-2-may-8th-may-14th-3324.cpp | d23ebbaa7cb5e949ba10a1415c1a31fb0667a451 | [] | no_license | Ashish-kumar7/leetcode-solutions | 83fdb47d090f239be039ebf6686d4d0c3ae3ce55 | 2a74730be367f1e4675f07f0fbc4a16da13b3622 | refs/heads/master | 2021-11-27T23:35:36.972343 | 2021-10-23T08:00:20 | 2021-10-23T08:00:20 | 228,544,996 | 5 | 10 | null | 2020-10-19T13:34:08 | 2019-12-17T06:06:03 | C++ | UTF-8 | C++ | false | false | 234 | cpp | leetcode-explore-featured-card-may-leetcoding-challenge-535-week-2-may-8th-may-14th-3324.cpp | class Solution {
public:
bool isPerfectSquare(int num) {
long long int y=sqrt(num);
long long int z=y*y;
if(z==num){
return 1;
}
return 0;
}
}; |
ad126011cd0216f1c5ed4eb1eb448cc46bca3671 | 46153c4d0d3457af0f055a0e3218f0ffb9a216e3 | /Codeforces/CF 955 B.cpp | cbf7ed1cb5e53ff449c10d9d4969631bfd16e7e8 | [] | no_license | iamsaquib2508/Competitive-Programminng | c494e245b88d6e0cc366a331e8adf07f541f5576 | 02ddc436b9b3b8da8aac2544c3047bb4376087dc | refs/heads/master | 2023-05-30T19:59:33.625016 | 2021-07-03T21:28:54 | 2021-07-03T21:28:54 | 274,222,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,736 | cpp | CF 955 B.cpp |
/* *************************** DONATE BLOOD, SAVE LIFE! ******************************** */
#include<bits/stdc++.h>
#define ffr(i,a,b) for(i=a;i<b;i++)
#define ffrr(i,a,b) for(i=a;i<=b;i++)
#define ll long long int
#define ld long double
#define pb push_back
#define pi... |
da3b515aa1c8253adb407256d3de25d0de1dc818 | 77d8c99c399d82dcb9c617277f87da8394f566cf | /ESEngine/Engine/GameObject/Skybox.cpp | 714a157f02bf76235f9324bec372f1f3a04b1035 | [] | no_license | Blamad/ESTree | f1fb2340113c13a661935a986ffb6a17142c5175 | b8a5d45fe7e4a949d1e3af7ce07f9f76a56cb00a | refs/heads/master | 2021-07-19T16:05:41.604597 | 2020-04-27T19:46:59 | 2020-04-27T19:46:59 | 89,835,107 | 11 | 0 | null | 2020-04-04T15:03:31 | 2017-04-30T06:56:53 | C++ | UTF-8 | C++ | false | false | 4,345 | cpp | Skybox.cpp | #include "Skybox.h"
Skybox::Skybox(std::string* paths) : Renderable(ShaderManager::getShader("Resources/Shaders/SkyboxShader.vert", "Resources/Shaders/SkyboxShader.frag")) {
this->loadSkybox(paths);
}
Skybox::Skybox(std::string* paths, std::shared_ptr<Shader> shader) : Renderable(shader) {
this->loadSkybox(paths);
... |
053ce0cce3ce7615ec62ca26075e6814de6e3ceb | 80ee6883432d059defee6508c6c24be155ff6d9f | /missingNumber/missingNumber2.cpp | 32389d18ea169a62cc622105c33aa589cf579a58 | [] | no_license | evelyn-plee/leetcode | 2398dd6dbdb5702ea2f31ebfe45c4ad7ce3790f0 | 5544082d680da4c4177ca8d6da3cbed8389eadb9 | refs/heads/master | 2021-06-03T06:38:14.603934 | 2020-02-20T08:45:24 | 2020-02-20T08:45:24 | 130,520,459 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 220 | cpp | missingNumber2.cpp | class Solution{
public:
int missingNumber(vector<int>& nums){
if(!nums.size()) return 0;
int sum = 0;
for(int num: nums) sum+= num;
return nums.size() * (1+nums.size())/2 -sum;
}
} |
d59bd6083c979e5de5d5e684c4f17db90e30f942 | b8365b629f80614ae4d462bb171199c8f94ae83c | /RTOS/luz.cpp | 9b0aef7c216a37d192194bd5dd53aa9a6dd64cc2 | [] | no_license | vinicosta21/Grow | 380251de07d6c2ee0203e4e4ccb4e7551ac66283 | 4fbc9f75aba72e5a9e32e624c82ac01cb3eef345 | refs/heads/main | 2023-06-24T07:32:19.362390 | 2021-07-20T01:58:39 | 2021-07-20T01:58:39 | 381,856,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | luz.cpp | #include "luz.h"
Luz::Luz(){
pinMode(RELE_1, OUTPUT);
}
void Luz::ligarLuz(){
digitalWrite(RELE_1, HIGH);
}
void Luz::desligarLuz(){
digitalWrite(RELE_1, LOW);
} |
21ff2664080d2bfdc7d674a64f429644311beec7 | fe6b2a94ebfcc55d7bcf2b5d929261e26df185dc | /Submission/Team11/Code11/SPA/PQL/Patternship.h | ed17a7017e7b31f76db39439db85a4f3cfc10309 | [] | no_license | ChuaPingChan/SpaXI | 637ef01979cd06f3ab285b4ec632b7f27875a1f9 | 3c4256d340c5eab0742616cd2c8dec9068e78256 | refs/heads/master | 2021-08-24T17:44:46.329356 | 2017-11-21T08:55:54 | 2017-11-21T08:55:54 | 110,552,137 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | h | Patternship.h | #pragma once
#include <string>
using namespace std;
enum PATTERNSHIP
{
PATTERN = 13 //Continue indexing from Relationship.h
};
enum PatternType
{
ASSIGN_PATTERN = 1,
WHILE_PATTERN,
IF_PATTERN
};
|
34044d7348572bffd22372ca10216794cbacf7c7 | 67ed24f7e68014e3dbe8970ca759301f670dc885 | /win10.19042/SysWOW64/msieftp.dll.cpp | 3465eda4d7ed45dd0044b5fe13b8c66aeaaddd0f | [] | no_license | nil-ref/dll-exports | d010bd77a00048e52875d2a739ea6a0576c82839 | 42ccc11589b2eb91b1aa82261455df8ee88fa40c | refs/heads/main | 2023-04-20T21:28:05.295797 | 2021-05-07T14:06:23 | 2021-05-07T14:06:23 | 401,055,938 | 1 | 0 | null | 2021-08-29T14:00:50 | 2021-08-29T14:00:49 | null | UTF-8 | C++ | false | false | 210 | cpp | msieftp.dll.cpp | #pragma comment(linker, "/export:DllCanUnloadNow=\"C:\\Windows\\SysWOW64\\msieftp.DllCanUnloadNow\"")
#pragma comment(linker, "/export:DllGetClassObject=\"C:\\Windows\\SysWOW64\\msieftp.DllGetClassObject\"")
|
42a7cb68a9803b09ec8761939fe871afcd5bb662 | 1f8ace179959f2d1f4f16e61c978fb8306a29003 | /EveryDay/EveryDay/Test.cpp | 48b7b5d30c2926532f2093f2397a3a3aaa1c099e | [] | no_license | Zxiaoxue/cplusplus | 5590f9956c85965e22ebe5318a11fee91a6c69e1 | 9bba74c117cedac65f2dfbc6c6cd54630c1e9ccf | refs/heads/master | 2020-05-21T13:31:20.046494 | 2017-08-12T16:15:24 | 2017-08-12T16:15:24 | 61,894,278 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 51 | cpp | Test.cpp | #include "StackQueue.h"
int main()
{
return 0;
}
|
10df307e941c71907f51ba74fef044ea95350bec | 9000f3c2a0d9ddca21cd9cace097f368da4d218a | /PA 4/mazeio.cpp | 65fad1ff2f4bc87d7705a865309d550f25acc429 | [] | no_license | jonathanwong150/Intro-to-Programming | f34102a60ae9f9854d296fc0b337d5dfacd1552e | 8fd543ea95008e9fc6eced94c2f37d6e8962d983 | refs/heads/main | 2023-04-22T01:48:39.960664 | 2021-05-11T04:21:25 | 2021-05-11T04:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,985 | cpp | mazeio.cpp | /*
mazeio.cpp
*/
#include <iostream>
#include <fstream>
#include "mazeio.h"
using namespace std;
/*************************************************
* read_maze:
* Read the maze from the given filename into a
* 2D dynamically allocated array.
*
* Return the pointer to that array.
* Return NULL (a special a... |
b990ad0046544efd406e377d76232388c4966129 | b670fb2a460c7643364df530b146e7f5e79c6cc6 | /excrayg/leetcode/cpp/3sum.cpp | b7f97f295e75c5db136f92fc7182b5e0001b2e97 | [] | no_license | excray/coding-algos | 10b91c5c6a5e1464caafddd8eb4233b276b37fe1 | 17fbcf9aa70cf17f6f30e57211b22162ecd9a7f8 | refs/heads/master | 2020-04-05T22:45:28.567598 | 2017-06-03T20:36:06 | 2017-06-03T20:36:06 | 40,498,782 | 0 | 0 | null | 2015-10-09T02:03:00 | 2015-08-10T18:29:24 | Python | UTF-8 | C++ | false | false | 1,332 | cpp | 3sum.cpp |
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
/**
* @param numbers : Give an array numbers of n integer
* @return : Find all unique triplets in the array which gives the sum of zero.
*/
vector<vector<int> > threeSum(vector<int> &num... |
9d80167385ed842cc891137035174b587fe5edd5 | 2abfd6f0b6c79d973e8a57cea01b18572c7a8ef6 | /TP_POO/Piloto.h | ef505455751451af7e5e4f37aba087533d970c7c | [] | no_license | diogoacmarques/Object-Oriented-Porgramming-Cpp | 065eae738b3d5360b69a43a17b31ebe09997376c | d125a20d8ca8a7065da44bd79052c00c765bdfa9 | refs/heads/master | 2022-04-05T00:50:03.204732 | 2020-02-28T17:29:08 | 2020-02-28T17:29:08 | 219,522,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | h | Piloto.h | #pragma once
#include <string>
#include <vector>
class Carro;
class Pista;
class Piloto
{
static std::vector<std::string> todosNomesPilotos;
std::string nome;
int pontuacao;
char idCarro;
public:
Piloto(std::string n);
~Piloto();
//funcionalidades
//pontuacao
void adicionaPontuacao(int pontos);
void reset... |
252d0880d08b9fc060a5ba66871832e44f30f933 | d24327d4002dc22bc3e832ed70ef5d32251d7b7d | /emp-sh2pc/semihonest.h | 55e64832dca65a556f9aa4eceef29345e85d146b | [
"MIT"
] | permissive | brucechin/ZK-emp-sh2pc | 00ad5814062812e905a9b99dfe1544303c796467 | 1923c7141442a97b2d4f88ff61d4639772502a7d | refs/heads/master | 2022-09-01T17:08:26.424910 | 2020-06-01T03:57:36 | 2020-06-01T03:57:36 | 259,719,091 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | h | semihonest.h | #ifndef SEMIHONEST_H__
#define SEMIHONEST_H__
#include "emp-sh2pc/semihonest_gen.h"
#include "emp-sh2pc/semihonest_eva.h"
namespace emp {
template<typename IO>
inline void setup_semi_honest(IO* io, int party) {
if(party == BOB) {
PrivacyFreeGen<IO> *t = new PrivacyFreeGen<IO>(io);
CircuitExecution::circ_exec ... |
1294a1a58737c961e3cbda0e915b450bcfd19774 | 4d23b880415d28252d84f491f8f904cf55f1bcbd | /Perimeter/perimeter.cpp | 98f2fb7a42aa19e8dfd8e4967228a89254c664ad | [] | no_license | shane53386/Algorithm-Design | 9609cad1afc9e1b21616444fa872f8672c549a8f | 99295442b4f296b63457c1279c0b023c0dc9394d | refs/heads/master | 2023-03-28T20:21:18.536535 | 2021-04-06T18:46:17 | 2021-04-06T18:46:17 | 351,154,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | perimeter.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, e, k, c = 0;
cin >> n >> e >> k;
vector<bool> p(n + 1);
vector<vector<int>> d(n + 1);
queue<pair<int, int>> q;
q.push({0, k});
while (e--) {
int a, b;
cin >> a >> b;
d[a].p... |
7766474368ad08b5e1416021cda626b53fae0507 | 48da3cf76d6932e643824e8538bfad5529cf335a | /branches/20180201/game_server/monster/monster_manager.cpp | 3b2a34a24e850ac47f43ac0d20ec62e12f5d34ca | [] | no_license | daxingyou/sg_server | 932c84317210f7096b97f06c837e9e15e73809bd | 2bd0a812f0baeb31dc09192d0e88d47fde916a2b | refs/heads/master | 2021-09-19T16:01:37.630704 | 2018-07-28T09:27:09 | 2018-07-28T09:27:09 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,201 | cpp | monster_manager.cpp | #include "monster_manager.hpp"
#include "config/config_manager.hpp"
#include "main/game_server.hpp"
#include "main/game_server_fwd.hpp"
#include "func_time.hpp"
monster_manager_t::monster_map monster_manager_t::m_monsters;
std::vector<monster_manager_t::special_monsters> monster_manager_t::m_special_monsters;... |
d0b352b3c1ae7e9646e8ee2a565f7675884b086f | e3c6c0a049e24caeccdcc5700b41b918b63a2841 | /engine.h | a685f10ed031dfeef9e258d0a6059dff520a8337 | [] | no_license | wobuchiroubao/Asteroids | 4180ec75ef6da582ee8839b328b076960b984364 | 2291304d6fa8d6ccf71086034840c0d04ba9c89e | refs/heads/master | 2023-07-05T00:35:25.699752 | 2021-08-08T23:04:30 | 2021-08-08T23:04:30 | 394,038,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | h | engine.h | #pragma once
#include <SDL2/SDL.h>
#include <utility>
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
const SDL_PixelFormatEnum TEXTURE_FORMAT = SDL_PIXELFORMAT_RGB888;
extern SDL_Renderer *renderer;
extern SDL_Texture *texture;
enum keyword {
NONE,
K_UP,
K_DOWN,
K_LEFT,
K_RIGHT,
};
void Rend... |
a24c132cb2f008e240ef6157417f1febcec83b82 | 41ed4430beec2cdd932f220fa2dd8f859184527f | /chat_05/processpool.cpp | 83553ef4f2bc60810d58cd3490b2217f5717e7cb | [] | no_license | csgvsjay1000/study | af2885319980a398c50d8bb4946d2a3666afde16 | 83d0a156ebf2ddf9e6005c428965cac21971383f | refs/heads/master | 2021-04-29T08:53:31.673490 | 2017-02-08T02:05:26 | 2017-02-08T02:05:26 | 77,670,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47 | cpp | processpool.cpp | #include "processpool.h"
#include <assert.h>
|
49a6be397314b62aec8044db139c061bd14c2957 | 7b177b9c7e66d3812a8605f593349038350c1a42 | /c++/11_pointerSwap.cpp | 015f0f4c0c84f51fdd18a20761418016a00d7b75 | [] | no_license | enola3011/HacktoberFest2k21 | bac1cff6c62fa2ac5d10f3fad643d5dd4c57ca00 | bea0f643b878772acb9c7e72168b0a9081e05070 | refs/heads/main | 2023-09-01T06:18:17.031940 | 2021-10-25T18:10:08 | 2021-10-25T18:10:08 | 421,132,416 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | 11_pointerSwap.cpp | #include <bits/stdc++.h>
using namespace std;
void swap(int *a, int *b) // call by refrence if we sent value without using pointer than that is a call by value.
{
int temp = *a;
*a = *b;
*b = temp;
}
int main()
{
int a, b;
cout << "Enter A : ";
cin >> a;
cout << "Enter B : ";
cin >> b... |
bf14cedc2475314aa44798e155de5c211e11f89b | 87f717f1daaa3d35c090b296da3be43c83df9e05 | /pCloud/pcloudapp.h | 4aeffae51c6b09f318f6b93260d11adf64908729 | [
"BSD-2-Clause"
] | permissive | shaglund/pfs-gui | 872ddac938e2f4c248c7ae4c6704e0a17d438ab3 | 868da177b5a110fbaaf0e753c1fca618b209ce02 | refs/heads/master | 2020-12-11T07:45:03.486390 | 2013-10-14T16:50:53 | 2013-10-14T16:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,289 | h | pcloudapp.h | #ifndef PCLOUDAPP_H
#define PCLOUDAPP_H
#include "reglogwindow.h"
#include "registerwindow.h"
#include "loginwindow.h"
#include "settingswindow.h"
#include "sharefolderwindow.h"
#include "shareswindow.h"
#include "binapi.h"
#include "psettings.h"
#include "monitoringthread.h"
#include "onlinethread.h"
#include <QAppl... |
83e3f40bde505c0f7d4b9a043309b0bec304aca0 | 20b577d9b1d397935498c9071ee2c76a5fe09825 | /example-2/src/testApp.h | 29b6159155b5829b71ce931b120b8da640167c35 | [] | no_license | bakercp/ofxActivityMonitor | b10f5429117cf99ea73c5fff305ecf2a25d5f956 | bf0f3249871a3f6bfbd86300b4b5035cc8375085 | refs/heads/master | 2021-01-19T20:18:34.658930 | 2012-06-03T15:27:21 | 2012-06-03T15:27:21 | 4,320,044 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | h | testApp.h | #pragma once
#include "ofMain.h"
#include "ofxSigar.h"
class testApp : public ofBaseApp {
public:
void setup();
void update();
void draw();
ofxSigar sigar;
//
// process
//
// sigar_proc_mem_t
// sigar_proc_time_t
// sigar_proc_cred_name_t
// sigar_proc_cred_t
// sigar_proc_cp... |
b18939d933b98d1376ada58edfe25a21b4c5f183 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/plugins/intel_gpu/include/intel_gpu/primitives/tile.hpp | 17b3d97a6942d54f1491e10f40641075c93c8b63 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 1,886 | hpp | tile.hpp | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "primitive.hpp"
namespace cldnn {
/// @brief Performs tile operation on input.
/// @details copies the input data n times across chosen axis.
struct tile : public primitive_base<tile> {
CLDNN_DECLARE_PRIM... |
3cba08eab1699a21f86de5dbd36fcf7a86b13834 | 020ed11f4883bcba8a9104767bcbf45ef4d48111 | /Graph/Hamilton.cpp | 87f30963bea98c82cc6a895a5796b99fccb95112 | [
"MIT"
] | permissive | sylxjtu/bitset-snippet | 8316933bb1958cfa9e78ce350d42d15cad004fa7 | 535d0946b7779ef8438ff0460c85a271a84f4f7f | refs/heads/master | 2021-07-16T09:09:58.871688 | 2017-10-20T05:10:00 | 2017-10-20T05:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,546 | cpp | Hamilton.cpp | /*
【题目来源】
http://poj.org/problem?id=2438
【题目分析】
有敌对关系的小朋友,不能坐在一起。最后围成一个圈,吃饭。。。
将小朋友看成点,有敌对关系的看成没有边,最后构成一个回路。
哈密顿回路。
【小小总结】
哈密顿回路
充分条件:
无向连通图中任意2点度数之和大于等于顶点数,则必定存在哈密顿回路。
思路分析:
1.任意找两个相邻的节点S和T,在它们基础上扩展出一条尽量长的没有重复节点的路径。
也就是说,如果S与节点v相邻,而且v不在路径S->T上,则可以把该路径变成v->S->T,然后v成为新的S。
从S和T分别向两头扩展,直到无法扩为止,即所有与S或T相邻的节点都在路径S->T上... |
d768067ded2e31d31d7faa64bad0458a4cb532d3 | 21b455fb30b6ae30ea79d67c77fc78b5199a7c97 | /include/node0/NodeWithPos.h | 8d847458f0d137b797e87862ffec66026f2b3b5e | [
"MIT"
] | permissive | xzrunner/node0 | 501ce7d17ba3715c7c1de9fead80c913493affd4 | a597f360308bbdb6727efe2283968eb49843a8e5 | refs/heads/master | 2021-05-04T02:54:37.700056 | 2019-12-05T23:12:48 | 2019-12-05T23:12:48 | 120,367,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | h | NodeWithPos.h | #pragma once
#include "node0/typedef.h"
namespace n0
{
class NodeWithPos
{
public:
NodeWithPos();
NodeWithPos(const SceneNodePtr& node, const SceneNodePtr& root, size_t node_id);
bool operator == (const NodeWithPos& nwp) const;
const SceneNodePtr& GetNode() const { return m_node; }
const SceneNodePtr& GetRoot... |
400c22cba8f59b3adb9d486aba39ca1db2cf9b33 | c0848635afd521f83311b984597540f6c962bd4c | /GLpro/GLpro/Scene.h | 1419334a793bf5f934576fc54fb3b84f89184486 | [] | no_license | bluecri/GLProj2 | 3024db28ad1cc5eef2b23b383d8266b3b077b137 | bf2b2710104724e0619d7803491570a28d1bcfd3 | refs/heads/master | 2021-04-09T17:09:18.189207 | 2018-10-19T17:04:47 | 2018-10-19T17:04:47 | 125,709,047 | 0 | 0 | null | 2018-10-19T17:04:48 | 2018-03-18T09:19:16 | C++ | UTF-8 | C++ | false | false | 473 | h | Scene.h | #pragma once
class GameSession;
class Canvas;
class Scene
{
public:
void changeCanvas(Canvas* newTargetCanvas);
void startGame();
void endGame();
void networkPacketProcess();
void keyInput(long long inputKey);
void keyInput(std::string& inputStr);
void update(float deltaTime, float acc);
// pre elems
... |
e90b2efd95e5f73830bd67d7fcef7536c20df407 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/enduser/troubleshoot/launcher/client/shortlist.cpp | 501099671a5d9e620a8e7cf2f65b70d863938816 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 3,964 | cpp | shortlist.cpp | //
// MODULE: ShortList.cpp
//
// PURPOSE: A list of all of the handles that are currently open.
// There is an instance of a COM interface for every open handle.
//
// PROJECT: Local Troubleshooter Launcher for the Device Manager
//
// COMPANY: Saltmine Creative, Inc. (206)-633-4743 support@saltmine.com
//... |
c71a6353382e43ba8a9a5e586506e9d6b80b3700 | 25be5813ee45ff69382a4d9755ae919ed2d2c192 | /inc/Dude.h | ea4f10a5b1ba43bef3dd68c94c2e2cc6dd6506e3 | [] | no_license | bluewales/Evolution | 764c5bd2e00c6d0f8b296bed1aade100b4176ac8 | 77037f4736b4baa399dd1484e117d7cf1445fd33 | refs/heads/master | 2021-01-15T15:26:24.547757 | 2016-08-26T21:29:15 | 2016-08-26T21:29:15 | 65,325,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,982 | h | Dude.h | #ifndef dude_h_
#define dude_h_
#include <openssl/sha.h>
#include "Field.h"
#include "direction.h"
#include "hashMap.h"
#define INTERNALLY_TRADED_ATTRIBUTES 5
#define GENOME_FILENAME_LENGTH SHA_DIGEST_LENGTH*2
class Field;
class NeuralNetwork;
class Dude {
public:
// state data
unsigned int... |
088a8a527a5b52e92e55026cdec749a8026c7838 | 0891a84e095a9462d35e56bd771887d58d504c41 | /Hackerrank/Sock Merchant.cpp | f7b3e1674473d9a03a5771fd8349712093c071b3 | [
"MIT"
] | permissive | SurgicalSteel/Competitive-Programming | d9db36764440da14368362785f4cd946a67a43ea | 360a0025db7908ebc7c079bd79c263f5b1637afb | refs/heads/master | 2023-04-22T10:09:02.592725 | 2023-04-08T17:01:49 | 2023-04-08T17:01:49 | 44,367,155 | 20 | 9 | null | 2017-08-30T17:54:20 | 2015-10-16T06:41:49 | C++ | UTF-8 | C++ | false | false | 585 | cpp | Sock Merchant.cpp | #include <bits/stdc++.h>
using namespace std;
#define psb push_back
int main() {
int n,x,c=0;
scanf("%d",&n);
vector<int> idx,ctr;
vector<int>::iterator iter;
int ar[n];
while(n--)
{
scanf("%d",&ar[c]);
iter = find(idx.begin(),idx.end(),ar[c]);
if(iter==idx.end())
... |
91842721d5b5b7760061fd365b5e9721f2166fc5 | 0f082716537f7c259fb35a3b7a6164f9fae741b5 | /Tusimple/question.cpp | 9ca0fcb7a8651cb00eeefb0828f913469efeb296 | [] | no_license | wdeyes/Note_c_jiajia | bfbf303eda54ab205543c48b56f0e9f9f407d0f0 | 8fed16d739b4e044e3c3a2a86fc754a50b779ee2 | refs/heads/master | 2020-06-03T13:50:00.054021 | 2019-10-15T06:57:05 | 2019-10-15T06:57:05 | 191,592,344 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | cpp | question.cpp | /*
实现一个循环队列类CircularQueue,其中包括:
●构造函数:传入队列的最大长度max_size。
●push_back:将元素放到队列尾。
●pop_front:将队列首元素弹出。
●batch_remove:从队列首开始移除指定数量的元素,如果队列长度小于给定数量则清空队列。
(n)。
C++:
class CircularQueue要求队列实现时使用循环队列的方式,空间占用为O {
public:
CircularQueue(unsigned int max_size);
bool push_back(int item);
bool pop_front();
void batch_remove... |
f654278d0c743678a0a461bbca4f7e7fde5df315 | fd3c0dcffbaa0864a7bcd15f74a590a3d16a491b | /Gimbal_project/test/App_Gimbal.cpp | 1f913b91ecd0c52be096e66c80bb0ef5b1acdd71 | [] | no_license | MachinMigueldLeon/TestProject | 7eee04719e2c84c0fa9705b1651375f4d0c3988b | 1bb6828eb719c89ca159dba9253d69cbf6f21d4f | refs/heads/master | 2023-02-03T04:19:31.811015 | 2020-12-20T11:00:52 | 2020-12-20T11:00:52 | 322,909,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 144 | cpp | App_Gimbal.cpp | #include <iostream>
#include "Gimbal.hpp"
int main(){
Gimbal Merio("Merio");
Merio.moverse();
Merio.newFunction();
return 0;
} |
dfdce91e373c517c85daee56232802d3ecbce421 | 3195ff82e52e536d343e3a818ec8b68a5574e718 | /mach0/src/main.cpp | c10a699e9ffae4fcbdd0b79d779389d0ab035a84 | [] | no_license | sigvesn/tma4280_p1 | bfd6a0a00e7b498c4fa32a31786c87c9465200b7 | 871be521236953b214ace66390962cd08ec83eb3 | refs/heads/master | 2020-04-26T18:23:08.554253 | 2019-03-04T11:50:13 | 2019-03-04T11:50:13 | 173,743,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | cpp | main.cpp | #include "lib.h"
// calculates the Machin formula from 1 to n on value x
double mach(int n, double x)
{
double s = 0.0;
for (int i = 1; i < n; ++i)
s += pow(-1, i - 1) * (pow(x, 2 * i - 1) / (2 * i - 1));
return s;
}
// estimates pi by approximating arctan using the Machin formula for value 1/5
... |
3b5304dbc130ea54c99c7a9daefbc54dccfe1ae9 | 71ed11da5c95650e7deb08fdb8befc40d322144d | /lib/flashLed/flashLed.cpp | a4e47e6e8608941db3317b0d71b6b87e1dba746a | [] | no_license | davrodfer/CajaInutil | b1c73b686dce71042ac73de90231aabf7f3a0dde | 983f5d55abe7beaeb797d9667061978fe15e015f | refs/heads/master | 2023-01-23T19:02:27.804180 | 2020-12-03T17:02:59 | 2020-12-03T17:02:59 | 316,920,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | flashLed.cpp | #include <flashLed.h>
#include <Arduino.h>
void flashLed(int GPIOLed,int duracion){
static unsigned long last=0;
static bool off = true;
last = last > millis() ? millis() : last;
if (millis() < (last + duracion )){
return;
}
if (off){
flashLedON(GPIOLed);
off=false;
}else{
flashLedOF... |
59491a1c265741af7937e9e3ea1a90333a1f9f5f | 1e1d05f8be45005c7fd5c67f5a00f6532729f8c0 | /SR_debug/app/src/main/cpp/SR_api.cpp | 5831b20feee47218103c24677ae67bfeecaff35c | [] | no_license | guoqiangqi/SR_api | c87ec45236f283a6edcbfe3f6d7f6da386c41252 | 7c6f36a1b8e8230d966c250ac384d071ea7af66b | refs/heads/master | 2020-04-05T11:10:03.071443 | 2018-11-09T07:28:14 | 2018-11-09T07:41:22 | 156,825,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,870 | cpp | SR_api.cpp | #include "SR_api.h"
#include "tengine_c_api.h"
#include <opencv2/opencv.hpp>
#include <memory>
#include "cpu_device.h"
class SRAPI::Engine{
public:
Engine(const char* prototxt, const char* caffemodel, int i){
sprintf(model_name,"model_%d", i);
if (load_model(model_name, "caffe", prototxt, caffemode... |
55e25fb92205f694a6706ce7187c7df16a7e95cf | 4e0994b40ed69c2992773aa8b03621d9cc16f161 | /llarp/crypto.hpp | a3c2b034a76c23c27f1c18e67411f469ac3a1ca8 | [
"Zlib",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KeeJef/loki-network | 7d2e074db15d28b9b0eb1c01de9072e279005dea | f5dbbaf832d11b88d351e3de7ab584465a28f6bf | refs/heads/master | 2020-04-11T11:27:40.264093 | 2019-02-11T02:55:20 | 2019-02-11T02:55:20 | 161,748,616 | 0 | 0 | NOASSERTION | 2018-12-14T07:33:44 | 2018-12-14T07:33:44 | null | UTF-8 | C++ | false | false | 5,532 | hpp | crypto.hpp | #ifndef LLARP_CRYPTO_HPP
#define LLARP_CRYPTO_HPP
#include <aligned.hpp>
#include <mem.h>
#include <router_id.hpp>
#include <threadpool.h>
#include <buffer.h>
#include <common.hpp>
#include <functional>
#include <stdbool.h>
#include <stdint.h>
/**
* crypto.h
*
* libsodium abstraction layer
* potentially allow li... |
25518146b8b058283ccaa02c76fd7306a0da9b83 | b2adafa553a512883e23cd4df0cb737b5d82a842 | /Schronisko/Room.cpp | 7c2ca4b75d950042dfe1faa4ca80827560a0497b | [] | no_license | ingabochenska/Schronisko | dcaa8e017717135704038e909922222a1cbb299a | c510c0ae589ba212bc94019d22dcb4a72b881250 | refs/heads/master | 2021-01-22T04:14:30.994869 | 2017-06-16T13:54:06 | 2017-06-16T13:54:06 | 92,444,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,663 | cpp | Room.cpp | #include "Room.h"
Room::Room(int x)
{
this -> size = x;
hunger = 1;
happiness = 2;
}
int Room::Room_Size()
{
cout << "Now you can choose rooms' size" << endl;
cout << "Width = "; cin >> width;
cout << "Lenght = "; cin >> lenght;
if (width <= 0 || lenght <= 0 || width > 100 || lenght > 100)
{
cout << "Wron... |
beecd0e2c3a333a68eee7df4e4194ec4218bbab4 | af41d261aca676f6394f5144c07a54163dc2f8d6 | /src/exceptions/ServerTimeoutException.cpp | 656f171df312335a8b33207bd2dd48c47901159a | [
"Apache-2.0"
] | permissive | eProsima/RPC | 8db60788dc11581a537d3a0b0d618712149b6f02 | 85274fa21290c5382044904d459afd17b38ebca7 | refs/heads/master | 2023-06-15T02:11:52.032899 | 2022-05-23T10:16:33 | 2022-05-23T10:16:33 | 23,354,606 | 55 | 32 | Apache-2.0 | 2023-06-05T13:45:12 | 2014-08-26T14:29:12 | C++ | UTF-8 | C++ | false | false | 1,164 | cpp | ServerTimeoutException.cpp | /*************************************************************************
* Copyright (c) 2012 eProsima. All rights reserved.
*
* This copy of FASTRPC is licensed to you under the terms described in the
* FASTRPC_LICENSE file included in this distribution.
*
******************************************************... |
5a8f28f52edd72368279a68062fd820081b667b6 | d4df8016db637baa32f802b83e084734eb42f066 | /Stack/problems/__maxOfminForEvryWindowSiz.cpp | 74f6881d255544f766e45f63067aa342d4f92ceb | [] | no_license | vineetsinghrana/gfg_dsa_selfplaced | 9f591f0e63677885b25237d447b28b96714bb56b | 9f8619fd4a53110c343ad598acb120eb708151c6 | refs/heads/main | 2023-06-18T16:44:46.504398 | 2021-07-11T18:20:53 | 2021-07-11T18:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,372 | cpp | __maxOfminForEvryWindowSiz.cpp | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
//Function to find maximum of minimums of every window size.
vector <int> maxOfMin(int arr[], int n)
{
// Your code here
vector<int>res;
stack<int> s;
... |
62e29dc8a5c61b71a83934d4a491ba0fcda8d73c | 1903c9ef75fa4786f70c16b2c7e6d0e43ad88d88 | /packages/loopring_v3/circuit/Gadgets/MathGadgets.h | 49c243135f40518b09f33c13282bdaaccacca858 | [
"Apache-2.0"
] | permissive | Loopring/protocols | a185045513c22795b82260d3b4aea3e69679cc51 | 85528077851ee644d65309bb37fd99fdd3d282e2 | refs/heads/master | 2023-08-16T12:25:02.859743 | 2023-06-26T04:04:35 | 2023-06-26T04:04:35 | 163,461,138 | 610 | 187 | null | 2023-09-06T07:01:52 | 2018-12-29T00:39:38 | Solidity | UTF-8 | C++ | false | false | 65,502 | h | MathGadgets.h | // SPDX-License-Identifier: Apache-2.0
// Copyright 2017 Loopring Technology Limited.
#ifndef _MATHGADGETS_H_
#define _MATHGADGETS_H_
#include "../Utils/Constants.h"
#include "../Utils/Data.h"
#include "ethsnarks.hpp"
#include "utils.hpp"
#include "jubjub/point.hpp"
#include "jubjub/eddsa.hpp"
#include "gadgets/subad... |
2ab29aa109c96888b7154e394ab7573efc6497b7 | c0830b5173ec67b39bf79429ee90d4936cd23e40 | /src/magnetic-field.cpp | 0c62bf23b83e800390f8841e104f94e4ea8cfe22 | [] | no_license | stack-of-tasks/state-observation | 58956a566958ccd1e57709969d1c450e4da479d2 | 38f8dd07fb69b18fd98858f094552d9ca75966b8 | refs/heads/master | 2021-01-16T23:48:23.380069 | 2017-04-25T13:18:24 | 2017-04-25T13:18:24 | 14,783,286 | 5 | 6 | null | 2017-04-25T13:18:25 | 2013-11-28T17:48:31 | C++ | UTF-8 | C++ | false | false | 413 | cpp | magnetic-field.cpp | #include <state-observation/sensors-simulation/algorithm/magnetic-field.hpp>
namespace stateObservation
{
namespace algorithm
{
Vector3 MagneticField::earthLocalMagneticField_ = Vector3 (0, 28, -33.7);
Vector3 MagneticField::magneticFieldMeasure(const Matrix3 & orientation) const
{
... |
755d70848cb12b4c330e171432bd23ab8671052f | 8a9e53a77ae7ac846a5a067cb2e987e63bbd532c | /libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/TileMapRAM.ino | e3158962c249bff63d3cac6e2fc5f42ed73ffeab | [] | no_license | umbe073/Arduino-Sketches | 5e83938d555762467735f7befbb301344a4523e6 | 7fc263add976705b16e384213d02348c67bf2b95 | refs/heads/master | 2021-01-18T00:50:14.879946 | 2014-11-03T22:00:00 | 2014-11-03T22:00:00 | 39,171,199 | 1 | 0 | null | 2015-07-16T02:04:11 | 2015-07-16T02:04:10 | null | UTF-8 | C++ | false | false | 5,124 | ino | TileMapRAM.ino | #include <SPI.h>
#include <Gamebuino.h>
Gamebuino gb;
#define wrap(i, imax) ((imax+i)%(imax))
//store the different sprites in PROGMEM to save RAM
const byte grass[] PROGMEM = {16, 16, 0x10,0x0,0x28,0x2,0x10,0x0,0x0,0x0,0x0,0x0,0x10,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80,0x0,0x0,0x40,0x0,0x0,0x0,0x0,0x8,0x4,0x0,0x0,0x... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.