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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a9a429f2dcd81bd012aadd7be25efd781f68544 | c78f01652444caa083ca75211bae6903d98363cb | /devel/include/mavlink/v2.0/common/mavlink_msg_camera_tracking_image_status.hpp | 02aac857bb76d74f3f02c3d4f7e842d3e2b7f243 | [
"Apache-2.0"
] | permissive | arijitnoobstar/UAVProjectileCatcher | 9179980f8095652811b69b70930f65b17fbb4901 | 3c1bed80df167192cb4b971b58c891187628142e | refs/heads/master | 2023-05-01T11:03:09.595821 | 2021-05-16T15:10:03 | 2021-05-16T15:10:03 | 341,154,017 | 19 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 4,253 | hpp | mavlink_msg_camera_tracking_image_status.hpp | // MESSAGE CAMERA_TRACKING_IMAGE_STATUS support class
#pragma once
namespace mavlink {
namespace common {
namespace msg {
/**
* @brief CAMERA_TRACKING_IMAGE_STATUS message
*
* Camera tracking status, sent while in active tracking. Use MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
*/
struct CAMERA_TRAC... |
b945dc9428e14ba4e019e38e6339a9aa0ce3bc78 | fa2c068f45390e0c398c14b2df0c6fcbf29b3907 | /modules/aho/inl/pt_regex/lexrep/MatchCount.inl | 0d5d66532abe7a972b117fdd9dd7310af0a2c445 | [
"MIT"
] | permissive | mgoldenisc/iknow | 445af5ff0a3670f8ee10174624fdc0138fe685e1 | 9326ba2425af1dc350948c7e9a11dadd5d8731a2 | refs/heads/master | 2023-07-07T00:24:44.948738 | 2021-07-14T18:29:40 | 2021-07-14T18:29:40 | 290,093,406 | 1 | 0 | MIT | 2020-08-25T02:37:17 | 2020-08-25T02:37:16 | null | UTF-8 | C++ | false | false | 49 | inl | MatchCount.inl | 0,
0,0,1,0,0,1,0,0,0,2,0,1,0,1,0,1,
SmallCount()
|
ea394680e433f50ed85d60de8103b36a88b53938 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/inetsrv/iis/iisrearc/core/wp/modules/static/dotrace.cxx | a1b5884430ae46c0f7620420385254774e3fbfef | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,997 | cxx | dotrace.cxx | /*++
Copyright (c) 1998 Microsoft Corporation
Module Name :
DoTrace.cxx
Abstract:
Defines the functions for processing TRACE requests.
Author:
Murali R. Krishnan ( MuraliK ) 01-Dec-1998
Environment:
Win32 - User Mode
Project:
IIS Worker Process ... |
517c71767c87cb29c6d0aa7a0562a10858413946 | 4af71707842810dfd2043e7b14fec38ba69b8a42 | /xiaomiexingxing/Classes/Ui/ShopLayer.h | 80e9106c16a87d665a0a8ca87511cb544586d01e | [] | no_license | lichuangGit/trunk | 26563214a4087e2cbb000ddf187156aa7700b74a | 1ce1d9bf40ae5e3c5a8eab2a19aca124d0f125f3 | refs/heads/master | 2021-01-10T08:09:37.627436 | 2015-12-07T09:52:50 | 2015-12-07T09:52:50 | 47,397,441 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,115 | h | ShopLayer.h | #ifndef SHOPLAYER_H
#define SHOPLAYER_H
#include "StudioLayer.h"
#include "GameDialogLayer.h"
#include "Core/Helper.h"
class ShopLayer : public StudioLayer
{
public:
ShopLayer();
~ShopLayer();
virtual bool init();
CREATE_FUNC(ShopLayer);
void onEnter();
private:
void initUI();
void onBtnClick(Ref *pSender,... |
baa82dd6ee2dc47cee29b02d47f656329ed35453 | 15091a59693cc2d6ed967616e6c2f4dfb736bce0 | /Maze.h | 8b73a1707ba3102c80043c58889b0de8d2ff07a1 | [] | no_license | ClassicalHero/MazeGeneratorAndSolver | 56a892279dcbfd948534feeaeed73c7b77befb0a | ee6a3a1bf662e9f4786aabba9504adefbb16cc3f | refs/heads/main | 2023-04-02T15:10:12.974591 | 2021-03-18T03:00:25 | 2021-03-18T03:00:25 | 348,224,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | h | Maze.h | #include"Forest.h"
#include<vector>
class Maze
{
public:
struct wall
{
int cell1;
int cell2;
bool up;
};
void CreateWalls(int N);
void RandPerm();
void UpDownWalls();
void PrintMaze();
~Maze();
Maze(int x);//ctor
Forest * grid;
vector<wall> Walls;
};
|
4ab557369b7fca46c5547702e7c8cd2aab7f5708 | 6ded2d148a50a4fb2afdda2cbd272595a0467540 | /GenesisEngine/GenesisEngine/Renderer2dComponent.cpp | d1a79e230ea8bdd7b1351dfdd8ac18c613c9bf24 | [] | no_license | KingWapo/GenesisEngine | 3d8f7954b57f92e6bf2bde04ae29ad224ad83324 | 5675473573c6e918c1f420b32285e00c11563a4c | refs/heads/master | 2016-09-06T16:30:46.247272 | 2015-04-23T20:27:13 | 2015-04-23T20:27:13 | 30,262,891 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | Renderer2dComponent.cpp | #include "Renderer2dComponent.h"
#include "Errors.h"
#include "ResourceManager.h"
#include <iostream>
#include <string>
const char *Renderer2dComponent::g_Name = "Renderer2dComponent";
void Renderer2dComponent::VUpdate(int deltaMs) {
//spriteBatch.begin();
glm::vec4 pos(m_location.x, m_location.y, m_spriteSize.x,... |
719deaf2d6245c2b3180fe840b257423afcbc265 | 5d3404096286830fab472bdf9f30842f0f13a6b6 | /algospot/JumpGame/topdown.cpp | 346f08d72f6ee1191107b6b24e9e7e952b8e926b | [] | no_license | YeongjinOh/Algorithm-practice | 0d4b2ed00e6eebc46667435c3fdc47f8fb1ae886 | 871428eed1158ef85ff31930588aaeb3d69661d2 | refs/heads/master | 2021-01-23T13:42:54.361325 | 2018-03-17T12:47:38 | 2018-03-17T12:47:38 | 54,641,868 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | topdown.cpp | #include <iostream>
using namespace std;
#define MAX_LEN 100
int nums[MAX_LEN][MAX_LEN];
int cache[MAX_LEN][MAX_LEN];
int n;
bool jump(int i, int j) {
if (i >= n || j >= n)
return false;
if (i == n-1 && j == n-1)
return true;
int &ret = cache[i][j];
if (ret != -1)
return ret;
... |
11a6857a1ea9786a1eb8da26c83e83eafeaffc43 | 2eaf198cab76506045fcc4d312abd12afc9fc713 | /src/test/rpc/KeyGeneration_test.cpp | 735bae40bd88ff9bcb21cca3ccd69421c66c3ccf | [
"LicenseRef-scancode-free-unknown",
"ISC"
] | permissive | XRPLF/rippled | 26c378a72f65dde2ee9427a8a106505a60a3303d | 300b7e078a4bc511f30b74509d416e5081ec3650 | refs/heads/develop | 2023-08-31T00:07:03.935167 | 2023-08-21T23:22:59 | 2023-08-21T23:23:06 | 2,724,167 | 267 | 126 | ISC | 2023-09-14T21:57:05 | 2011-11-07T04:40:15 | C++ | UTF-8 | C++ | false | false | 30,119 | cpp | KeyGeneration_test.cpp | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2015 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby grante... |
526ff0530c09daa8b70376dbfe02ceb586ba6ee2 | 859315c4c995ac06210ae79ec3be5491ceae9a60 | /source/compiler0/code_builder_lib/value.cpp | 08351ead394a8fe893bfbf4993b86f264341aca0 | [
"BSD-3-Clause"
] | permissive | Panzerschrek/U-00DC-Sprache | c1ce3b5ce889449bc3ac62daaac15a1fbd48038e | bf1a9f25a68098205bd0aaaad2107910f3b78594 | refs/heads/master | 2023-08-30T17:16:47.793552 | 2023-08-27T09:45:22 | 2023-08-27T09:45:22 | 57,440,134 | 50 | 6 | BSD-3-Clause | 2019-09-04T03:17:08 | 2016-04-30T12:04:46 | C++ | UTF-8 | C++ | false | false | 10,373 | cpp | value.cpp | #include "../../lex_synt_lib_common/assert.hpp"
#include "class.hpp"
#include "template_signature_param.hpp"
#include "enum.hpp"
#include "value.hpp"
namespace U
{
//
// FunctionVariable
//
bool FunctionVariable::VirtuallyEquals( const FunctionVariable& other ) const
{
U_ASSERT( this->is_this_call && other.is_this_... |
2d8c009a2688caaab63700b017d6d56cd7485a88 | 112edff83fd52f7cd2b217728ff0d322e9cc8fb1 | /kasten/controllers/view/replace/replacetool.cpp | 9d80cde3c5763ba2819ce80cb5ee9f8082e03712 | [] | no_license | otilrac/okteta | 839ee73dd9fae5ffa2d967d059e6cac421fcaf8e | 89741587627c8e25cafe608e1b91284b66fd9d42 | refs/heads/master | 2023-05-06T04:23:15.194076 | 2021-05-29T01:16:30 | 2021-05-29T01:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,337 | cpp | replacetool.cpp | /*
This file is part of the Okteta Kasten module, made within the KDE community.
SPDX-FileCopyrightText: 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include "replacetool.hpp"
// controller
#include "replacej... |
c24e8b29a061780d121521c9aa8042ea48f328ae | 21666afd1aa0d305cec8a740dad6e5d06e0b6393 | /src/nn.hpp | c949bc4ddb5aea6eeeee8571d47f3945cf9fcaa1 | [
"BSD-2-Clause"
] | permissive | Knight-X/kinich | 4f66e096919adf1b72d9ade06e552384517475df | 2a679d92385e0b23c70a366e2df71991ea5c8f07 | refs/heads/master | 2021-01-20T14:34:36.198119 | 2017-05-12T09:15:59 | 2017-05-12T09:15:59 | 82,759,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,656 | hpp | nn.hpp | #pragma once
#include <iostream>
#include <memory>
#include "graph.hpp"
#include "layer.hpp"
#include "nn_datatype.hpp"
#include "lossfunc.hpp"
#include "optimizer.hpp"
#include "input.hpp"
#include "gradient.hpp"
#include "predict.hpp"
namespace nn
{
class NNetwork
{
private:
nn::Graph* nngraph;
Optimizer* _... |
534fc56aa78b808387c977e8c983871cecdaa794 | 70450f0c551adf47b450468e424f4f90bebfb58d | /phys-services/private/test/OMKey2MBIDTest.cxx | 7f3b4fe00140fabb3d6869e2ffb2e6f272fbb2cb | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | C++ | false | false | 2,133 | cxx | OMKey2MBIDTest.cxx | #include <I3Test.h>
#include "phys-services/I3FileOMKey2MBID.h"
#include <sstream>
#include <iostream>
using namespace std;
// These tests look for a few specific mbids and OMKeys that
// are in the test file. Checks that the mapping works correctly
TEST_GROUP(OMKey2MBIDTest);
TEST(0df7b060acad)
{
I3OMKey2MBIDP... |
7bd7798367a417ea51fc1da51b8cd35bb7769f94 | 0290f5a239248d66334bb632722ed5f5031d409a | /OI/XX_submission/cen.cpp | f0822ecffd42c717bd3e76c9cbd9f5f82ef80992 | [] | no_license | kkragoth-mimuw/cp-training | 131e66e92a025e4cc6837c63d2ea4eb6651c1635 | 2083bcd268f4e6571343d2c6591d27d935b4fd13 | refs/heads/master | 2021-06-10T20:27:57.325633 | 2017-02-13T15:34:48 | 2017-02-13T15:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,408 | cpp | cen.cpp | /*****************************************/
/* */
/* Olimpiada Informatyczna XX */
/* Etap: I */
/* Zadanie: Cennik (Cen) */
/* Autor: Piotr "renostr15h" Szulc */
/* */
/****... |
07d6d47d7507933fb11d0578b95941b4e067602c | af119118a67e43b360fa24a385c6e97ff7165add | /cplusplus/stl/deque.cpp | 7d920b0907dd99bc7ba5f2a9711e112294b3db4f | [] | no_license | txgcwm/code_study | e03da3a29c3341c9c9ab53ea4a26928bf7a928ba | fe6313879df60bfa5ecc4fe8d995b1a7cb4607ef | refs/heads/master | 2021-01-20T20:10:56.942126 | 2019-11-27T17:10:27 | 2019-11-27T17:10:27 | 64,046,593 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 485 | cpp | deque.cpp | #include <iostream>
#include <deque>
int main(int argc, char **argv)
{
int x;
std::deque <char>charDeque;
for (x = 0; x < 10; ++x) {
charDeque.push_front(65 + x);
}
int size = charDeque.size();
for(x = 0; x < size; ++x) {
std::deque <char>::iterator start = charDeque.begin();
std::deque <char>::iterat... |
f4c51dcf4c97e08740bf1e7db65789304aa59bd5 | b5a5d23f4a7db09dc88436babed7c17eaf907fce | /src/math/point3.hpp | 8ed66adc302e03e4c322ff2be54a1b5fb3a47a22 | [] | no_license | 0xd0d9e/anthracitarium | b22fc92469e59df68e1935f32d9975e8b2b69e65 | 803ecf724e08600814201df9b393438e9d24eaef | refs/heads/master | 2021-01-10T19:23:27.344211 | 2011-06-18T20:53:23 | 2011-06-18T20:53:23 | 1,917,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,657 | hpp | point3.hpp | //author 0xd0d9e
//encoding utf-8
#ifndef __QyMathPoint__
#define __QyMathPoint__
#ifndef QT_NO_DEBUG_STREAM
#include <QtCore/QDebug>
#endif
#include <QtCore/QPointF>
#include <QtCore/QRectF>
//! \file Point3 declaration
#ifndef QT_NO_DATASTREAM
class QDataStream;
#endif
namespace Math
{
class Point3;
inline bool... |
e4bdcb313aa1022d52cc81a4a15aa0d8308963fe | 1fca267606e9a604e971fc3db603c467273fca7e | /Sphere.cpp | 6397af37f6f24117faf46a97cc8e6a67d9fb1971 | [] | no_license | cxhaizxm/BulletTestApp | 862f7a4ea54282b8889070965a5e488858cadab3 | 38e4af981f13decd37a61b4f22bf0e17ec4a36ad | refs/heads/master | 2021-01-14T10:52:23.958403 | 2015-02-25T08:33:00 | 2015-02-25T08:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,514 | cpp | Sphere.cpp | #include "stdafx.h"
#include "Sphere.h"
// Creates a Sphere object, including the associated Bullet rigid
// body, and sets its collision shape to a bullet sphere shape.
// If the object is specified to be kinematic, then the appropriate setup
// is done to the rigid body to make it kinematic within Bullet.
// positio... |
126f92940f315843233a20e7c3470dee2b722810 | f5b4c6f0ec312cf4fc3daebc7a306f921793f0cd | /src/graphics/decal_draw_list.cc | a6f7ea1bde76742cf4e1a7438f8154d81bee8e5b | [] | no_license | thinkoid/openspace | 2e88bafa79a8d89d5316f8a7b47d3a0ac4ea659c | c7f42aadf9c872a444766a9af9917356fcfb4a9b | refs/heads/master | 2023-02-02T03:46:14.521442 | 2023-01-23T17:19:51 | 2023-01-23T17:19:51 | 148,841,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,902 | cc | decal_draw_list.cc | // -*- mode: c++; -*-
#include "graphics/decal_draw_list.hh"
#include "graphics/matrix.hh"
#include "graphics/util/uniform_structs.hh"
#include "light.hh"
#include "render/3d.hh"
#include "tracing/tracing.hh"
namespace {
// Discard any fragments where the angle to the direction to greater than 45°
const float DECAL... |
fb44c1154ba7c8898bcdd30e14d07e54b3164455 | 67899479e67bab5df7fb2887c485421bf1eade2a | /2020/Day10.cpp | e2ac6aeb1a9fc521aad9a4e9bd42232cee41832f | [] | no_license | SephDB/Advent-of-Code | 3d0220283f2dc9a37c7d6151a70ad6bf7d904fe9 | ef43329d465fb4a12f611aa9205a2c6fdcadff04 | refs/heads/master | 2021-12-29T08:50:55.873445 | 2021-12-25T11:04:19 | 2021-12-25T11:04:19 | 227,999,498 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,396 | cpp | Day10.cpp | #include <iostream>
#include <string_view>
#include <array>
#include <ranges>
#include <map>
#include <charconv>
#include <numeric>
#include <algorithm>
template<typename F>
void split(std::string_view in, char delim, F&& f) {
std::size_t pos = 0;
while((pos = in.find(delim)) != std::string_view::npos) {
... |
995476672f16386c4357be7c4642ab2630d07a1d | 1f77f63fc4bcf538fc892f6a5ba54058367ed0e5 | /src/base/executive/PlotInterface.cpp | a7e8238fa2c88ef3185bb404e4a1125d2ab551e3 | [
"Apache-2.0"
] | permissive | ChristopherRabotin/GMAT | 5f8211051b620562947443796fa85c80aed5a7cf | 829b7c2c3c7ea73d759c338e7051f92f4f2f6f43 | refs/heads/GMAT-2020a | 2022-05-21T07:01:48.435641 | 2022-05-09T17:28:07 | 2022-05-09T17:28:07 | 84,392,259 | 24 | 10 | Apache-2.0 | 2022-05-11T03:48:44 | 2017-03-09T03:09:20 | C++ | UTF-8 | C++ | false | false | 46,260 | cpp | PlotInterface.cpp | //$Id$
//------------------------------------------------------------------------------
// PlotInterface
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represe... |
73937de9a140acd2cb39b7923e274e95082b95de | be0282afa8dd436619c71d6118c9db455eaf1a29 | /Intermediate/Build/Win64/Design3D/Inc/UnrealEd/EditorBrushBuilder.generated.h | 913f9322f92eea01ea3031ef12749e9897d9c331 | [] | no_license | Quant2017/Design3D | 0f915580b222af40ab911021cceef5c26375d7f9 | 94a22386be4aa37aa0f546354cc62958820a4bf6 | refs/heads/master | 2022-04-23T10:44:12.398772 | 2020-04-22T01:02:39 | 2020-04-22T01:02:39 | 262,966,755 | 1 | 0 | null | 2020-05-11T07:12:37 | 2020-05-11T07:12:36 | null | UTF-8 | C++ | false | false | 4,511 | h | EditorBrushBuilder.generated.h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
49d91da614dc6bf87cfb0cd475a4ad99c9b6b20b | 94a0a456d322a18ec175ab78e963737667b11880 | /Main.cpp | c17952fef198b7819800b6d53a33f051e81222d0 | [] | no_license | bo-ko/netdisc-client | 44d880b4c907b6e1bd728bb56807fcf40a3fd8cb | 9e4bad47ea5ca48ee7c837576cea5ce6a9cee9ee | refs/heads/master | 2021-01-12T07:05:54.708004 | 2017-07-21T03:43:03 | 2017-07-21T03:43:03 | 76,910,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | cpp | Main.cpp | #include "MainInterface.h"
#include "LoginDlg.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
LoginDlg _Dlg;
MainInterface _MainWidow;
/* Use the Accepted signal to determine whether the login button was pressed */
if(_Dlg.exec()==QDialog::Accepted)
{... |
bc77c57dcda492318fdf530db4a2c030cd25470f | 26f9fdff3c246e3a68ff9b0bb4f8f0a9a67bce1c | /dynamic_OWSC (copy)/1.8/p | 90b44c86feb151683463e1e328caaf042a855abe | [] | no_license | JBrakefield/My_olaFlow | 6c0aaa0dda8d8e69c127281fc9484f3cded258ea | a812362928f2466f4e2632d2636dce97a0a3b9f6 | refs/heads/master | 2020-04-08T14:00:49.750205 | 2019-01-10T19:48:55 | 2019-01-10T19:48:55 | 159,418,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 122,827 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
... | |
3c5876b6c6d3bfe1d38c9bf90c5bee6b0d808f64 | 293e7d3808fb394178b9286dd3ebbb7dd7f580f6 | /FrameInfoList.cpp | 0d11e6ed4959b229fca42810620ac155890179c5 | [] | no_license | kevindady/BitrateViewer | 0e88ebaa4d67ca1b30d607dad47b2187d8fd71a7 | 4bba8a4366560a8240d38c26a8bb3521925370bc | refs/heads/master | 2016-09-08T01:35:51.948049 | 2014-12-18T10:27:29 | 2014-12-18T10:27:29 | 27,570,847 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,934 | cpp | FrameInfoList.cpp | #include "stdafx.h"
CFrameInfoList::CFrameInfoList() :
m_pFrameInfoList(NULL),
m_bitrateDisplayMode(BITRATE_DISPLAY_FRAMESIZE)
{
};
BOOL CFrameInfoList::Init(HWND hListCtrl)
{
SubclassWindow(hListCtrl);
if (IsWindow())
{
SetUnicodeFormat(TRUE);
SetViewType(LVS_REPORT);
DWORD dwExtStyle = GetExtendedListVie... |
de1d6732caf2b99fcd574483e0f00df8111075bd | c17ce740d078dade17be1531fc0bf2cff8529bf5 | /sample_code/Chapter11/arrays.cpp | 883b8351689bec46fad6e592122155bd5ec7e454 | [] | no_license | CS1342-July2020/Lecture-Materials | 3c52ba41ee9d8b06e8af06fe75ab6670b9069922 | d0b54f63f56aca66c17de4964079322ee2247b5f | refs/heads/master | 2022-11-25T00:14:08.818479 | 2020-07-23T01:38:34 | 2020-07-23T01:38:34 | 276,231,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | arrays.cpp | #include <iostream>
using namespace std;
int main() {
const int size = 3;
int *array = new int[size] { 1, 2, 3 };
for (int i = 0; i < size; i++) {
cout << array[i] << " ";
}
cout << endl;
for (int i = 0; i < size; i++) {
cout << *(array + i) << " ";
}
return 0;
} |
964b174aad6d2dc2a070eb604d6f12e0516395f0 | 92f0c6da042acdeaa7cb6e5e567e9960e1ee776a | /src/phoenix.cpp | 7d036c1e77c6e8c0d7c3adfe39e30128fd4f289d | [] | no_license | sizhuangliu/Mystic_Crusaders | d53fb49c29a333644d4f168533194e24291a14c6 | c70b9df322776c74b5eb2670598555f0776b5317 | refs/heads/master | 2020-05-29T13:00:36.060000 | 2019-04-25T19:45:57 | 2019-04-25T19:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,153 | cpp | phoenix.cpp | #include "phoenix.h"
#include "FireBall.h"
#include <algorithm>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
SpriteSheet phoenix::texture;
phoenix::phoenix(float hp, float damage, vec2 position, vec2 scale, float angle)
{
init(hp, damage, position, scale,angle);
}
bool phoenix::init(float hp, flo... |
b2efc716c04791231fbd76a80b6c764d281341fa | c712c82341b30aad4678f6fbc758d6d20bd84c37 | /CAC_Source_1.7884/FzlNkzDialog.h | 0577cc2db65f706ad5c37476ef0e3d1fb8d1288f | [] | no_license | governmentbg/EPEP_2019_d2 | ab547c729021e1d625181e264bdf287703dcb46c | 5e68240f15805c485505438b27de12bab56df91e | refs/heads/master | 2022-12-26T10:00:41.766991 | 2020-09-28T13:55:30 | 2020-09-28T13:55:30 | 292,803,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | h | FzlNkzDialog.h |
class TfzlNkzDialog : public TEisDialog
{
public:
TfzlNkzDialog(TWindow *parent, FZL *fzl, bool edit, int resId = IDD_FZL_NKZ);
TStatic *nprnmrLabel;
TStringFace *nprnmr;
TStatic *fzlFaceLabel;
TStatic *fzlegnLabel;
TStringFace *fzlegn;
TStatic *fzllncLabel;
... |
fca38090038de782c850a239ea46572c3bf6b5c7 | 40655839c2c46fad50c203a13de4b11d1637f13a | /Console-Apps/Cpp-Learning-Project/src/AbstractFactory.cpp | 50e043099a0827b1d7b9a3bfd5586c98ca7b4203 | [
"MIT"
] | permissive | HemanthRj96/Hobby-Projects-Cpp | c0eff2f405a9e41262463a9657c1cba56042e500 | 3df702cdac8375efff62d8bb97faf58380b50ce5 | refs/heads/main | 2023-03-29T17:08:40.703379 | 2021-03-31T18:12:51 | 2021-03-31T18:12:51 | 336,176,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,545 | cpp | AbstractFactory.cpp | #include<iostream>
using namespace std;
// Abstract factory tutorial code
/*/// PROBLEM ///
Imagine that you're creating a furniture shop simulator.Your code consists of classes that represent :
1. A family of related products, say : Chair + Sofa + CoffeeTable.
2. Several variants of this family.
For example, produc... |
8d429b43bf6b2933b2f97c961af9df8b90b4d1a1 | c7956e41e04b1198d19869a8db33c299eca88d1d | /TOASU4_NEW/TOASU4_NEW/TOASU4_NEW.cpp | 8dc1940a37325e30f657504c07823990cbbafe4b | [] | no_license | GiekoOlis/TOASU | a8df2f8d907e96769535d772095e9238532f2779 | 9e710ea8c9dcd7cf39f142f9ee7279cba93c8cc9 | refs/heads/master | 2021-08-07T12:37:03.526275 | 2020-09-30T16:10:09 | 2020-09-30T16:10:09 | 223,798,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | TOASU4_NEW.cpp |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
//setlocale(LC_ALL, "Rus");
int coef[2];
ifstream in("C:\\Users\\gieko\\source\\repos\\TOASU4_NEW\\TOASU4_NEW\\f.txt");
if (in.is_open()) {
for (int i = 0; i < 2; i++) in >> coef[i];
int L = coef[0] ;//L - размер рюкзака
int m = coef[... |
c293d77eb22ae985e21a02c0e2603c978ab8a40e | 76016e9a343bc3767fc06d8fefc0ae53136acd23 | /codeforces/ecf10/A.cpp | 2aa53ce4bee0931d1a7c304b503ef344d412bf83 | [] | no_license | ediston/AimRed | b3b7a6f0faddecdeda8e675f6f9f835d0f1e97f0 | d2a33dc9489d35c330f2098bc4d72dc491769afb | refs/heads/master | 2021-01-10T12:30:14.620139 | 2016-03-25T16:45:58 | 2016-03-25T16:45:58 | 54,678,830 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | A.cpp | #include <iostream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
#define MP(x,y) make_pair(x,y)
int main(){
int a, b, h1, h2;
cin >> h1 >> h2 >> a >> b;
if(h2 <= h1+8*a){
cout << 0 << endl;
return 0;
}
if(b>=a){
cout << -1 << endl;
ret... |
f84b08f6ef07e90872cba9bf5d83443b4eb4cd6c | d9d6478d63fad8926b26c6c4936b70bf5af668a5 | /SLIDING WINDOW/3..find-longest-substring-containing-k-distinct-characters.cpp | 543e898af1a49f4eb3290a5fe88c7244f51189c6 | [] | no_license | karanwadhwa03/DSA-Codes | 4251e3c58c5f79f1513fe254ecc06be740c53265 | 9e0943c13cced3ff94f6d7d12a7a000a1bf65b1b | refs/heads/master | 2023-03-02T15:14:38.826947 | 2021-02-11T19:25:38 | 2021-02-11T19:25:38 | 329,498,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | cpp | 3..find-longest-substring-containing-k-distinct-characters.cpp | //find-longest-substring-containing-k-distinct-characters
#include<bits/stdc++.h>
using namespace std;
int main(){
string A = "abcbdbdbbdcdabd";
int k = 2;
int n = A.length();
set<char> window;
map<char,int> tmap;
int start=0,end=0;
int low=0;
for(int i=0;i<n;i++){
tmap[A[i]]++;
... |
04ad112913b13203db0a844de28641969f1411e6 | 785508e1dc2d9e08d7debecb7ea58e8a09fd61c0 | /AnalogButtonManager.h | ca27f34fa912fabd766e27698d8e6376def4010c | [
"MIT"
] | permissive | dhanyweb/AnalogButtonManager | 01564ea80077ea3024a38b6b2e9ed2f6ad865054 | 2484b967d0f8a79dc6d16517d79ddc6ce0283975 | refs/heads/master | 2020-07-10T21:28:43.990525 | 2013-11-22T03:27:48 | 2013-11-22T03:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,739 | h | AnalogButtonManager.h | //-------------------------------------------------------------------------
//
// The MIT License (MIT)
//
// Copyright (c) 2013 Andrew Duncan
//
// 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 Sof... |
b548f9cba25771217f9ca451b480ee50f7d1ef71 | 13b14c9c75143bf2eda87cb4a41006a52dd6f02b | /AOJ/0257/bit/0257.cpp | 3f8f5dd74c99a4cdb2db40586225afb30144099c | [] | no_license | yutaka-watanobe/problem-solving | 2c311ac856c79c20aef631938140118eb3bc3835 | f0b92125494fbd3c8d203989ec9fef53f52ad4b4 | refs/heads/master | 2021-06-03T12:58:39.881107 | 2020-12-16T14:34:16 | 2020-12-16T14:34:16 | 94,963,754 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | 0257.cpp | #include<iostream>
using namespace std;
int main(){
int st = 0;
int b;
for ( int i = 0; i < 3; i++ ){
cin >> b;
if ( b == 1 ) st += (1<<i);
}
if ( st >= 3 ) cout << "Open" << endl;
else cout << "Close" << endl;
return 0;
}
|
1e94f8aa64e1315b4f3fc97c0f24f2084fef1084 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /C++/design-an-ordered-stream.cpp | ed96183d9dfb5e5a8c4c0fd267c857a9e03399a2 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | C++ | false | false | 535 | cpp | design-an-ordered-stream.cpp | // Time: O(1), amortized
// Space: O(n)
class OrderedStream {
public:
OrderedStream(int n)
: i_(0)
, values_(n) {
}
vector<string> insert(int id, string value) {
--id;
values_[id] = value;
vector<string> result;
if (id != i_) {
return res... |
85947b49b8da230cec9671ed999faaeb07b5fca1 | 1da16e15826af3ebc16c775c262d3e0e4dcf6f2d | /Algorithms/Text_Justification.cpp | d178f18339ee378f33691f2c6d58671aa2f3e727 | [] | no_license | fagan2888/LeetCode-4 | a9045917b1470f4112b86879822c904ef0c99585 | e5bda7170fd0da04904f54ee2cb890dcfcee89ea | refs/heads/master | 2021-05-29T16:18:27.294928 | 2015-09-09T22:03:30 | 2015-09-09T22:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,395 | cpp | Text_Justification.cpp | class Solution {
public:
vector<string> fullJustify(vector<string> &words, int L) {
if (words.empty())
return words;
vector<string> line, result;
int total = 0;
string tmp;
for (int i = 0;i < words.size();i++) {
if (line.size() == 0) {
line.push_back(words[i]);
total = w... |
cb58cb2913a08cdb2752ccdc5357468fb79c11e7 | 62cb187a6d3b68dc5862bdea23d6c28b23f0f3a4 | /GS_Seminar/seminar4/flatbuffers/GamePacket.hpp | 015ca63e2c53c49aa762309e06f4a84816b16011 | [] | no_license | insooneelife/GS_Seminar | b87b8b473522934f75d9359e134cf22a2414d4ea | cd4838fe50575264ca25b58bfc66359fcc5d8334 | refs/heads/master | 2022-06-07T03:37:18.304745 | 2022-05-20T09:45:50 | 2022-05-20T09:45:50 | 67,829,842 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,674 | hpp | GamePacket.hpp | #pragma once
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <iostream>
#include <iomanip>
#include "flatbuffers\flatbuffers.h"
class GamePacket
{
public:
// header의 허용 길이
// HEADER_LENGTH 자리수까지 허용
enum { HEADER_LENGTH = 8 };
// header의 앞 4자리, body의 길이를 저장
enum { SIZE_HEADE... |
fed7a27b95c9e59ee415053e02ed58164f615ac6 | 46b55eb1a0a766c3f4e01b495a3099c8e3edd038 | /srv_gen/cpp/include/epoc/Frecuencias.h | cd1f2fe9828f4f63eb22b5618686674fb4cba4a9 | [] | no_license | carlosbulnes/epoc | 8ba9352b69ce58ba712d9e3caae0ddec67754b49 | 77a4900f460e1208017309e18f51e254ce4baae8 | refs/heads/master | 2020-12-25T17:25:09.804577 | 2015-06-15T05:55:16 | 2015-06-15T05:55:16 | 31,882,134 | 0 | 0 | null | 2015-04-25T03:02:29 | 2015-03-09T06:08:43 | C++ | UTF-8 | C++ | false | false | 7,886 | h | Frecuencias.h | /* Auto-generated by genmsg_cpp for file /home/carlos/fuerte_workspace/sandbox/epoc/srv/Frecuencias.srv */
#ifndef EPOC_SERVICE_FRECUENCIAS_H
#define EPOC_SERVICE_FRECUENCIAS_H
#include <string>
#include <vector>
#include <map>
#include <ostream>
#include "ros/serialization.h"
#include "ros/builtin_message_traits.h"
#i... |
228abc4c3fa5683bfdd62c4b97db4bef5158af8c | 5acbe4bf01baaf5ddbc39e8d84a262fb357408b7 | /Source/bwapi-clr-embedded/MonoBridge/Dll.cpp | b0e4eadd9f6a7732de07322b3a86ab705f947cba | [] | no_license | suegy/bwapi-mono-bridge2 | ae737c8535091ab05de56905334d77a9edbeeb3f | 6830bebfa09aa22d269ca6a768d407dff96dfe5d | refs/heads/master | 2021-06-05T03:40:31.854566 | 2021-01-31T13:12:11 | 2021-01-31T13:12:11 | 32,186,770 | 15 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | cpp | Dll.cpp | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <BWAPI.h>
#include <string>
#include "proxyAIModule.h"
#include "Mono\Manager.h"
using namespace std;
wstring _dllDirectory;
namespace BWAPI { Game* Broodwar; }
BOOL A... |
49e0e6f4b089fc72e2efb74111669ff9b81ca745 | 8abff2284b2d552bd45a7f3f6b97deb21b6be16d | /백준문제/10026(dfs).cpp | 5ce215f726d900efd48535dd37e076bca1e4e4da | [] | no_license | Realhyeonwoo/study-algorithm | 4cb43b89c242b12c5ae4bfed917f9696d6f68f34 | e2f73583b34d6f4fc98c48140fa28d791e624480 | refs/heads/master | 2020-07-29T13:56:41.087057 | 2020-06-25T13:49:11 | 2020-06-25T13:49:11 | 209,330,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,500 | cpp | 10026(dfs).cpp | #include<iostream>
#include<cstring>
using namespace std;
int n;
int map[100][100];
int backup[100][100];
bool visited[100][100] = {false, };
void copyMap(void) {
for(int y=0; y<n; y++) {
for(int x=0; x<n; x++) {
backup[y][x] = map[y][x];
}
}
}
void copyMap2(void) {
for(int y=0; y<n; y++) {
for(int x=0... |
c4bbccf00d6b912be2c9449a6f54ea5bf39818ab | 240bfe1deb8041f03d5d968890e060486f26a95a | /lantern.ino | 27081ec76197b0eb601f6aaeeff01dcf9fe78306 | [] | no_license | swong838/lantern | d87d66f76726aca43917fc8be9ecf094973f5d1e | 69e5b5690ca1cdb088ded4647a937e8c941b1a5b | refs/heads/master | 2021-01-23T22:15:27.787665 | 2015-06-03T04:19:04 | 2015-06-03T04:19:04 | 35,131,623 | 0 | 0 | null | 2015-06-03T04:19:04 | 2015-05-06T00:51:09 | Arduino | UTF-8 | C++ | false | false | 4,727 | ino | lantern.ino | #include <Adafruit_NeoPixel.h>
#include <avr/power.h>
/* LED info */
const int
NUMPIXELS = 3,
/* chip IO */
PIXEL_PIN = 1,
/* modes */
STEADY = 0,
FLARE = 1,
GUTTER = 2,
TICK_RATE = 10,
LOW_B = 27,
LOWISH_B = 36,
MID_B = 75,
HIGH_B = 200,
MAX_B = 225;
/* time */
con... |
0162094514eca80422cd323536f6b23e57dd43eb | 4753bc3fe56488aa0151279194eeb0d78e70c89c | /ABC81/C.cpp | 822ba44f55423c08acec9a838585dedf049a7857 | [] | no_license | juravrik/atcoder | bcf3d08e0640038b6b455d59c5617c17711b7b2b | 30731cd45c73e53835434383fc8f8ea076fda22f | refs/heads/master | 2020-03-28T07:15:52.220644 | 2019-09-16T06:49:43 | 2019-09-16T06:49:43 | 147,890,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | C.cpp | #include<iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int n,k,a, ans = 0;
vector<int> lst;
cin >> n >> k;
for(int i = 0; i <= n; i++){
lst.push_back(0);
}
for(int i = 1; i <= n; i++){
cin >> a;
lst[a]++;
}
sort(l... |
472b53753329a198ad23c3b3caf96aba15589a5f | e2d99638a72b570fdf611c3ec899e0b31dacfb9d | /MyInput/MyInput/LineCounter.cpp | 2a25f88b09a26329ac297daa71a36b677429c4c5 | [] | no_license | SigursteinnBjarni/School | a7a7e2f402933e8e6236dde6cb57efa05d226b58 | 0450a075f5f6adf5659b9a6ab0b95aa26a768e32 | refs/heads/master | 2016-09-06T18:49:26.571408 | 2015-08-28T16:45:49 | 2015-08-28T16:45:49 | 30,653,561 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 178 | cpp | LineCounter.cpp | #include "stdafx.h"
#include "LineCounter.h"
LineCounter::LineCounter(string path, ifstream infile)
{
m_path = path;
m_inFile = infile;
}
LineCounter::~LineCounter()
{
}
|
06d9a11f123680e03697d3db6df259c6bb853f6e | 70e5332463ef0da4702252ed3dcf7e2c8a61bba5 | /include/Algorithms/PostProcessing/PostProcessor.h | 98aeaa5440625ffcc7aad61cb7306144d7112a0e | [] | no_license | YuryUoL/AsKAlgorithm | 8111587dc3ff94937aed354c57ce2c6f63c012d7 | 668b60d38c8f1f59fdcdfd5d9435ca4efd3235d8 | refs/heads/master | 2022-10-24T02:25:48.299802 | 2020-06-13T09:06:18 | 2020-06-13T09:06:18 | 268,553,339 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,179 | h | PostProcessor.h | #ifndef POSTPROCESSOR_H
#define POSTPROCESSOR_H
#include "Graph/Graph.h"
#include <mlpack/core.hpp>
#include "Algorithms/Convertors/npy.hpp"
class PostProcessor
{
public:
PostProcessor() {}
static void CloudToNpy(std::string cloudout, arma::mat & cloud)
{
std::vector<std::vector<double>> cloudV(... |
bb59f050f187565e1f29d8b17c285ed07fd7295b | 9ac30f5474cab3460df50fcee31cd278d6fa6529 | /Truffles/src/Commands/SolenoidToggle.cpp | 31810d6febb6fb65d752b7fa1cb5bf57c1c3951f | [] | no_license | IronMustang3711/truffles | ea78998dd246921e25808e69698f70c634a33afd | ee89977deb9f5a3afe581edc712a6d972b0a6459 | refs/heads/master | 2021-01-11T15:50:26.104745 | 2017-03-17T23:17:51 | 2017-03-17T23:17:51 | 79,937,718 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 347 | cpp | SolenoidToggle.cpp | /*
* SolenoidToggle.cpp
*
* Created on: Mar 6, 2017
* Author: jason
*/
#include "SolenoidToggle.h"
#include <commands/InstantCommand.h>
SolenoidToggle::SolenoidToggle(std::shared_ptr<Solenoid> ptr, std::string _name) :
InstantCommand(_name), solenoid { ptr } {
}
void SolenoidToggle::Execute() {
solenoid... |
995fd017d93fe25d5f409e4586303520e56db5d8 | ddf88474a14c12d9b9461b21ac3964a9ebbcd410 | /Chapters/ClassesAndObjects/DataMembers.cpp | 2033fecf38cf87d2257fa5d1e5c70685fc06d4c3 | [] | no_license | tmurray19/CppEssentials | f0be6b8af86c11b2b33a9c4f3f144f4b507d99f9 | 7427215b7072cf314339f3adb01671e947c66dd7 | refs/heads/master | 2020-05-26T15:53:41.372417 | 2019-05-27T15:03:13 | 2019-05-27T15:03:13 | 188,294,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,391 | cpp | DataMembers.cpp | // You can create a class with either the class or the struct keyword
// This also goes into accessors and mutators
#include <cstdio>
#include <string>
using namespace std;
// Structs default to public members
struct testStruct {
int iA;
int iB;
int iC;
};
// Class defaults to private members
class testClass {
i... |
1390bb0e674581e61611fbce774b8b1b2433f05e | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /vpc/src/v20170312/model/ModifyVpcAttributeRequest.cpp | 26d861705a695d87a648a5b6cebd8fe31ea068c3 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 5,440 | cpp | ModifyVpcAttributeRequest.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
211edadd21371b35f4d1108e046aa671e99ff404 | 7d016399123acf1f6064d9386bb4ed0c3a66990d | /CustomObject/QPerson.h | 46f228b07e7ffb4a73cc9f99da753d517d75d823 | [] | no_license | MarkChen16/QtDemo | ba6049529497ecb9bccf511824f056472fd17798 | 39fa89884789e02cf9d734c7062f1f8d9891605e | refs/heads/master | 2020-04-18T02:02:36.230779 | 2019-03-01T09:05:43 | 2019-03-01T09:05:43 | 167,144,271 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | h | QPerson.h | #pragma once
#include <qobject.h>
/*
QT元对象系统的基类是QObject,可以支持在运行时获取对象类型所有的接口信息,包括类信息、函数、信号、槽、属性等等;
QT元对象系统(MOS)的三大核心:信号/槽、运行时类型信息、动态属性;
注意:元对象类型在编译之前需要MOC预处理器转换成C++代码
*/
class QPerson : public QObject
{
//使用信号、槽的类要包含Q_OBJECT宏
Q_OBJECT
//定义类的信息
Q_CLASSINFO("author", "guiquan")
Q_CLASSINFO("company", "dekey")
... |
87bc26f0a4c6c11669e140b4a50d8cd06c6fc48b | 7b257882453e1f5e21136c92f269b483b029bf2c | /Sources/Tests/IPC/UDPSocket_Test.cpp | 95ea281bad0626738496df236ece2c0e48961f1f | [] | no_license | Aliar1st/MAL-master | 3c5eb36538a5cc7abde8b6e2e935bcec17858d15 | 7b9f68fe418fdda626c3ab9b1b4e8e672e0227a2 | refs/heads/master | 2023-04-07T16:18:26.055604 | 2021-04-06T12:51:26 | 2021-04-06T12:58:27 | 355,187,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,596 | cpp | UDPSocket_Test.cpp | #include <gtest/gtest.h>
#include "IPC/UDPSocket.h"
#include "Socket_Test.h"
namespace IPC_Tests
{
class UDPSocket_Test : public Socket_Test
{
protected:
constexpr static const int UDP_SOCKET_PORT = 7523;
UDPSocket socket;
virtual Connection* getConnection() override
{
return &socket;
}
virtual ... |
9f15b86c5a8eff8ee5eb2d15054952cd5363f9e9 | 0934782cc900ef32616d3c5204bca05b2aa34032 | /SDK/RC_WBP_RougeStatsScreen_parameters.hpp | 27d560a84bea208ff637a828e5800c1eee006b08 | [] | no_license | igromanru/RogueCompany-SDK-9-24-2020 | da959376e5464e505486cf0df01fff71dde212cf | fcab8fd45cf256c6f521d94f295e2a76701c411d | refs/heads/master | 2022-12-18T05:30:30.039119 | 2020-09-25T01:12:25 | 2020-09-25T01:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,598 | hpp | RC_WBP_RougeStatsScreen_parameters.hpp | #pragma once
// RogueCompany (4.24) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function WBP_Roug... |
10157161ac23288ed2b57d4c8bd36a40b4706c19 | a85485b39ad5d79d7f37860ca9644ce88bfa4140 | /src/main.cpp | 84afa966e9f4d6f32831dd7665777ffdc57477fd | [] | no_license | YukiHaruna0824/VFX-HDRI | 7e67c9c48c8e960a1aece67f1b02c6c0b499d61b | ca79ae701c5d39f82ed7747349276eedd9bdd816 | refs/heads/master | 2022-04-25T16:21:22.081652 | 2020-04-29T10:57:22 | 2020-04-29T10:57:22 | 256,172,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | main.cpp | #include <iostream>
#include "ImageUtils.h"
#include "MTBUtils.h"
#include <io.h>
#include <direct.h>
#include<opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
int main(int argc, char **argv)
{
if (argc < 2) {
std::cout << "argument error !" << std::endl;
return 0;
}
std::strin... |
79a47f534f0cec786df9fe36bb515e04a06e1df9 | d01196cdfc4451c4e1c88343bdb1eb4db9c5ac18 | /source/client/hud/hud.cpp | 0d24356b40fa9cb86dabd39df619fc07dbb83401 | [] | no_license | ferhan66h/Xash3D_ancient | 7491cd4ff1c7d0b48300029db24d7e08ba96e88a | 075e0a6dae12a0952065eb9b2954be4a8827c72f | refs/heads/master | 2021-12-10T07:55:29.592432 | 2010-05-09T00:00:00 | 2016-07-30T17:37:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,524 | cpp | hud.cpp | //=======================================================================
// Copyright (C) XashXT Group 2007
//=======================================================================
#include "extdll.h"
#include "utils.h"
#include "hud.h"
#include "triangle_api.h"
void CHud :: Init( void )
{
InitMessage... |
bcb82d09e940c89879e1bd726cb21e1f4442ad57 | 016c4ca9ea582ac1f71bea5c485c5a74fa71d4e3 | /ImageReconstruction/Master/Ellipse.cpp | 4cb8b562fdbb709377052da80ddb25166c04ae06 | [] | no_license | jackjoynson/MedicalImaging | bad71569f6af4c3b46c63f739fc920a7e1354e78 | 55bb413132d6770329d079b32e4dc2faeb1c4747 | refs/heads/master | 2021-05-11T07:10:21.083577 | 2018-03-17T11:04:36 | 2018-03-17T11:04:36 | 118,009,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | cpp | Ellipse.cpp | #include "Ellipse.h"
Ellipse::Ellipse(Vector3D center, Vector3D majorAxis, Vector3D minorAxis, double majorRadius, double minorRadius)
{
SetCenter(center);
SetMajorAxis(majorAxis);
SetMinorAxis(minorAxis);
SetMajorRadius(majorRadius);
SetMinorRadius(minorRadius);
} |
af8580b7ea35bed9cebf044cdeabb5ffddbb54a6 | 65fc85ed595c778e46973ddd24f6f75059f9e84e | /601 - 800/767. Reorganize String.cc | 16469dce834478904e2cfec57855fb1aa8387237 | [] | no_license | zzzmfps/LeetCode | a39c25ccfa5891c9ad895350b30f0f2e98cdc636 | 8d5576eb2b82a0b575634c14367527560c1ec5d5 | refs/heads/master | 2021-10-10T01:06:40.123201 | 2021-09-28T03:33:25 | 2021-09-28T03:33:25 | 122,027,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 906 | cc | 767. Reorganize String.cc | // 4ms, 100.0%; 8.6MB, 100.0%
#include <bits/stdc++.h>
using namespace std;
static int x = []() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
return 0;
}();
class Solution {
public:
string reorganizeString(string &S) {
unordered_map<char, int> count;
for (const auto c : S) ++co... |
1575a910a1dfc318c53aa65a8ba632df1f983b20 | 7bae87b1c9a07a1ff5c99427a83e8dc5833ebb99 | /Assignment1/Assignment1/Test.cpp | d19e45525d214592b690b54a5fce280dc228dd68 | [] | no_license | xianchen97/COMP_3512_Assignment1 | 0b5a941aa93cae81a108f2754b455981f02dce61 | 99f72bb67484f9cae95ac184c6e7f6c0216d144f | refs/heads/master | 2021-04-09T17:05:51.775689 | 2018-03-22T06:55:07 | 2018-03-22T06:55:07 | 125,881,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | cpp | Test.cpp | #include "PageRank.hpp"
int main() {
using std::cout;
using std::endl;
PageRank a = PageRank("c:\\test.txt");
a.importance();
a.print_prob_matrix();
a.generateQ();
cout << "\n";
a.print_matrix_Q();
a.transition();
a.multiply();
a.print_dynamical();
a.print_percent();
cout << "\nExpected Values: \n " <<... |
2bbe9525181c4e3a402770616550fab5c07e4c17 | 08772fd735df9305fda64c07b64fb70ed3b5a4d5 | /file.cpp | d979dbb7a22649a499585aa38603e0a0db9fc1fd | [] | no_license | KDE/stackfolder | cd38406c299af423a7099b38da68150adcf95bc1 | 24db0276a5f354e99f2009b7689a5e7a9433210b | refs/heads/master | 2021-05-16T03:13:22.982407 | 2018-12-29T11:23:21 | 2018-12-29T11:23:21 | 42,733,792 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,794 | cpp | file.cpp | /* StackFolder
* Copyright © 2012 ROSA <support@rosalab.ru>
* License: GPLv2+
* Authors: Ural Mullabaev <ural.mullabaev@rosalab.ru>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Sof... |
44da467c149ad8833041add04465c9df74abe9af | 6d6d408af32b6ce6ef2529e65d7543d8d41082e3 | /Chapter_15/hw_15_4_sales/src/sales.cpp | 53d8aaaffdafe0caa4ecb23c999e4769898a23b9 | [] | no_license | eugene-bogorodsk/S_Prata_Prime_C-_exercise | 52e52b59e26bfb2f33a344a57c97b69b74ede060 | 1a6dd062e42ac4515df81f23bd425a5a85a05199 | refs/heads/master | 2020-08-28T22:51:08.657340 | 2019-12-19T08:50:58 | 2019-12-19T08:50:58 | 217,844,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,651 | cpp | sales.cpp | //============================================================================
// Name : sales.cpp
// Author :
// Version : implementation of Sales
// Copyright : Your copyright notice
// Description : listing 15.15
//============================================================================
#incl... |
0f5c530a1c204725853b7f3847cedb8e300efd91 | da5a910b3e7e2020dd499b6e8b47868c6eb89747 | /Types of LL/Basic_QuickSort.cpp | 7fe48d608756f5d11e93863d1f2a5901d8532169 | [] | no_license | adni03/DSA-Program-Files | 862513f30490dab5fa76bae943e2177ae7c678bc | e9ddecbc50859b6abd35e801d6b8cee65b44ebed | refs/heads/master | 2020-05-25T01:56:52.929175 | 2019-05-20T04:21:09 | 2019-05-20T04:28:15 | 187,566,587 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | cpp | Basic_QuickSort.cpp | //QUICK SORT
#include<iostream>
using namespace std;
void swap(int &a, int &b)
{
int temp=0;
temp=a;
a=b;
b=temp;
}
int part(int arr[], int low, int high)
{
int pivot=arr[high];
int i=low-1;
for(int j=low; j<high; j++)
{
if(arr[j]<=pivot)
{
++i;
swap(arr[i],arr[j]);
}
}
swap(arr[i+1],arr[high])... |
74a1b02382aed8944946edfe5f8714a30a5a5f88 | 56e1510b3019e935d7055777d45b6adcbce8caa7 | /cpp/lib/gui/include/util.hpp | 0e977a354da4eaff19c0bff8144b2fb41fd5ae41 | [] | no_license | darfRaider/PendulumCart | f5da510df45a928e7355ff35cec1b0e10ea836f4 | 462fe10f6f3f12f53c7d5e763485ae3211d39dba | refs/heads/master | 2022-11-06T22:14:26.672181 | 2020-07-19T19:11:32 | 2020-07-19T19:11:32 | 269,172,458 | 0 | 1 | null | 2020-07-01T12:07:38 | 2020-06-03T19:09:09 | C++ | UTF-8 | C++ | false | false | 461 | hpp | util.hpp | #ifndef UTIL_HPP
#define UTIL_HPP
#include <iostream>
#include "QLineEdit"
// Following definitions to keep track of input fields
static const int N_TEST_FIELDS = 6;
#define IDX_MASS_PENDULUM 0
#define IDX_MASS_CART 1
#define IDX_LENGTH 2
#define IDX_SIM_TIME 3
#define IDX_SIM_TIMESTEP 4
#de... |
974ec7512e78b13a698911886a8af6ebb6e74262 | 32da723b5c759c98845249bb51332109014b4f62 | /DesignAndAnalizeAlgorithmsCourse/FastAlgorithms/103.FacebookContest/BasicGeometry.cpp | f8bb3d41bfccd4a4858ff4caab8979d2265f23c9 | [] | no_license | IliyanKafedzhiev/FacultyOfMathematicAndInformatic | b8a810ca1100cc0f39c1460f60eb014e4c0b5ffc | a2b05a9aa7e677609447c0311ee79552464434ce | refs/heads/master | 2020-07-06T04:19:30.531000 | 2015-03-02T21:54:42 | 2015-03-02T21:54:42 | 18,809,355 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | BasicGeometry.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <set>
#include <stdio.h>
#include <deque>
#include <queue>
#include <stack>
#include <assert.h>
using namespace std;
typedef long long ll;
typedef long double ld;
c... |
ca23278576ad9b5c3fcc83ee2f8dddb5bedf083d | ebd837ade84fcd2acf66ec9137a9eab93b76ab26 | /B62_Projet_1/h/RLEReader.h | 87de875b7840ad6074d41f9bb4c9603e1960a239 | [] | no_license | Alexandre-Gauthier/Game-of-Life | d85b2c3d9e1eef2765fca82e2476165cfeaa607e | 7fd8417d19aa20b693e2b2ccb31c2c3af8c0eb35 | refs/heads/master | 2021-01-02T11:35:25.930047 | 2020-02-10T20:29:59 | 2020-02-10T20:29:59 | 239,605,435 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,434 | h | RLEReader.h | //CoursB62
//Classe permettant la lecture de fichier RLE
//Date de création : 10 Mars 2019
//Auteurs:
// - Hugo Turgeon-Nozaki
#ifndef RLE_READER_H
#define RLE_READER_H
#include <string>
class Space;
class Rule;
class RLEReader
{
public:
RLEReader();
~RLEReader();
bool read(std::string const & fileName, Space... |
b7612ea4d8eccc2e5504a13774d4902cbd206c38 | 3e0a92e3b52e751bc173e21d96bb8606241ee7fd | /ProblemPool/string_radix/radix.cpp | a0b99a564bbf5b4dc2d47c01501f30d6cc05e1eb | [] | no_license | socc-io/algostudy | 17b923492fa93cb7ab8ac4e6611766a85d4afc36 | 70c6d249033f8e5bc2288a347e50cc5eeab85c1c | refs/heads/master | 2023-03-03T13:12:19.875684 | 2023-02-19T09:45:23 | 2023-02-19T09:45:28 | 28,948,738 | 9 | 3 | null | 2016-01-24T07:31:11 | 2015-01-08T04:25:40 | C++ | UTF-8 | C++ | false | false | 823 | cpp | radix.cpp | #include <stdio.h>
int main(){
int i,j;
int d,r;
int flag=0,tmp;
int flag1 = 0;
char ans[20000] = {0, };
scanf("%d %d",&d,&r);
tmp = d;
if(d == 1){
printf("1");
return 0;
}
while(tmp >= r){
tmp = tmp/r;
flag++;
}
tmp = d;
if(d < r){
if(d > 9)
ans[flag1] = (d-10)+'A';
else ans[flag1] = d+'0'... |
d46a4a4ab1672ddcd4de9bb445783c8b3f6ce0ab | 60ee4b43921e9063bc7751e3238888285d098566 | /include/game.hpp | 9be80c4e634dda6d5649dc9d18f1e7c60036fd06 | [
"BSD-2-Clause"
] | permissive | rondojim/Role-Playing-Game | 6da46e133e31de188536877fc21b331b36c7966d | 4e13b8282fea42db4fbbd46f7a0db60e515f70d0 | refs/heads/main | 2023-03-21T02:40:21.334828 | 2021-03-12T16:27:54 | 2021-03-12T16:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,812 | hpp | game.hpp | /* file: game.hpp */
#pragma once
#define RESET "\033[0m"
#define BLACK "\033[30m" /* Black */
#define RED "\033[31m" /* Red */
#define GREEN "\033[32m" /* Green */
#define YELLOW "\033[33m" /* Yellow */
#define BLUE "\033[34m" /* Blue */
#define MAGENTA "\033[35m" /* Magen... |
368d6b018c53ca90a0482efeb188595a855a5e9b | 7d798725004e647ecd0b7e4c0ca20341aca982c0 | /common/src/robot/cpp/curtin_ctre.cpp | d64cf8ac4dba811e464dfb5237a986f9caaf0e6b | [
"MIT"
] | permissive | Hazzer890/2019-DeepSpace | 65281620e70a1a25e85d3352680dcbbc0084c127 | b22d37761424e5c056d878d6febbe6ea38aa1a03 | refs/heads/master | 2020-04-15T14:43:47.604218 | 2019-01-18T05:44:45 | 2019-01-18T05:44:45 | 164,765,010 | 0 | 0 | MIT | 2019-02-09T06:09:16 | 2019-01-09T01:45:18 | C++ | UTF-8 | C++ | false | false | 1,485 | cpp | curtin_ctre.cpp | // Robot code harness for the curtinfrc::talon_srx.
#include "curtin_ctre.h"
using namespace curtinfrc;
using namespace ctre::phoenix::motorcontrol;
inline can::TalonSRX *native_srx(const talon_srx *srx) {
return static_cast<can::TalonSRX *>(srx->_handle);
}
talon_srx::talon_srx(int port) {
_handle = (void *)ne... |
aff9573ddd24713a7acda277cf8eff5aeec22f83 | b3237ad61a6f29c118106bce7b7c90af7f13696d | /4ºYear/2ºSemester/CACM/120 - Stacks Flapjacks/sol_stacks3.cpp | 40d4383954979f1bed6a637b823ca69d938e9ff6 | [] | no_license | FranFnGc/UPV_ComputerScience | b30bca3e59c44a9219f8e21a557f67893938410a | 3b439baf17f91e05e4571c4d71073f303d9daa0d | refs/heads/master | 2023-06-20T19:47:37.874669 | 2021-07-24T09:26:17 | 2021-07-24T09:26:17 | 428,739,883 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,845 | cpp | sol_stacks3.cpp | #include <iostream>
#include <cstdio>
#include <sstream>
using namespace std;
int main() {
string line;
while(getline(cin, line)) {
stringstream sinput(line);
int torre[1000], n_tortitas = 0;
int lista_flips[1000], num_flips = 0;
int i,j,k,aux;
//PROCESAR EL INPUT
... |
14a95fe0cbd8efde3c9c431c53355751d9cf4b61 | 464aa9d7d6c4906b083e6c3da12341504b626404 | /src/server/web/python/module_init.cpp | fec870cce14a392485fa63da2fa095f18784513e | [] | no_license | v2v3v4/BigWorld-Engine-2.0.1 | 3a6fdbb7e08a3e09bcf1fd82f06c1d3f29b84f7d | 481e69a837a9f6d63f298a4f24d423b6329226c6 | refs/heads/master | 2023-01-13T03:49:54.244109 | 2022-12-25T14:21:30 | 2022-12-25T14:21:30 | 163,719,991 | 182 | 167 | null | null | null | null | UTF-8 | C++ | false | false | 4,314 | cpp | module_init.cpp | /******************************************************************************
BigWorld Technology
Copyright BigWorld Pty, Ltd.
All Rights Reserved. Commercial in confidence.
WARNING: This computer program is protected by copyright law and international
treaties. Unauthorized use, reproduction or distribution of thi... |
00cb64c208d162c27e0274bf258e81ce26b4b1ed | 73e781e19f91787b38ac64818016bcf8e4db8a6d | /test_unit/main.cpp | 6bd015a93b12b4982cb2162b7543574e446ea700 | [] | no_license | LePelicaN/GUIOpenGL | e18cc579a860eefea378d6f84a9867e38a112096 | b010b5ba3b266e38d6633abd23ccf981c8ee8ff1 | refs/heads/master | 2016-08-04T11:27:46.582285 | 2012-05-09T10:05:18 | 2012-05-09T10:05:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | cpp | main.cpp | #include <QtTest>
#include <QApplication>
#include "test_vertexArrays.hpp"
int main( int argc, char *argv[] )
{
QApplication app( argc, argv );
return QTest::qExec( new TestVertexArrays );
}
|
4a5eba32b388d1c18d6312040b97bdcac6523c65 | 9b2e727342b1e3765f784de32d364f4bcf90fbc9 | /cloud/XMLParser/lib/spxml/spcanonxml.cpp | b2b0df40c5fa585a980aba47b02f002519ce367e | [
"Apache-2.0"
] | permissive | mc-b/IoTKitV3 | d902afa147b47a9d614c34ff103c6bc359702b54 | 87d7a66a1730f71bc69110a214b1b2a18f22edcb | refs/heads/master | 2021-08-29T05:54:10.115066 | 2021-08-10T15:59:19 | 2021-08-10T15:59:19 | 101,919,584 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 4,111 | cpp | spcanonxml.cpp | /*
* Copyright 2007 Stephen Liu
* LGPL, see http://code.google.com/p/spxml/
* For license terms, see the file COPYING along with this library.
*/
#include <string.h>
#include "spcanonxml.hpp"
#include "spxmlnode.hpp"
#include "spxmlutils.hpp"
#include "spxmlcodec.hpp"
SP_CanonXmlBuffer :: SP_Canon... |
4ca3cca53598f8a4dbe10dca674152bbe4faf354 | 150936abf1a4ba3c9862631bbe45259256027d76 | /BDHSGQG - Da Lat 2019/Day 7 - Mr. Dong/KSPS.cpp | a1033d15bd9b5f01f22a97552d4d588fb41af52e | [] | no_license | btdat2506/IT.CLA.K18---CP---btdat2506 | 4a6242c637b28b6126e294f5cb1802b7ea4ea850 | 3adc76eebf81c799e5f82dfb946752cb65866a55 | refs/heads/master | 2021-07-04T21:48:13.054696 | 2020-12-01T15:18:46 | 2020-12-01T15:18:46 | 205,774,038 | 1 | 1 | null | 2019-09-05T02:13:13 | 2019-09-02T04:01:48 | C++ | UTF-8 | C++ | false | false | 658 | cpp | KSPS.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll int32_t
#define For(i, a, b) for(ll i = a; i <= b; i++)
bool kt = 0;
ll p, q, m, n;
string st, st1, st2;
string to_str(ll x)
{
st2 = "";
kt = 1;
while (x != 0 || kt == 1)
{
st2 += (char) ((x % 10) + '0');
x /= 10;
if (x == 0) kt = 0;
}
reverse(st2... |
07b111ae24ae8012987c70adef77f7559267a174 | 8ae31e5db1f7c25b6ce1c708655ab55c15dde14e | /比赛/2019暑假中山纪念中学模拟测/2019.08.20【NOIP提高组】模拟 B 组/T2 做梦/dream'.cpp | 6ae83544e0dd16d8b2b8c7e4539279c996bb2a26 | [] | no_license | LeverImmy/Codes | 99786afd826ae786b5024a3a73c8f92af09aae5d | ca28e61f55977e5b45d6731bc993c66e09f716a3 | refs/heads/master | 2020-09-03T13:00:29.025752 | 2019-12-16T12:11:23 | 2019-12-16T12:11:23 | 219,466,644 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,934 | cpp | dream'.cpp | #pragma GCC optimize (2)
#include <cstdio>
#include <cctype>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <iomanip>
#include <queue>
#include <iostream>
#include <string>
#define ll long long
#define rgi register int
#define il inline
using namespace std;
const int mod = 1e9 + 7;
const int M = 10... |
33810f77dedf23240b69b6c86f1c9929099da57d | 21055832aea9bf0caaa7d0a71cb7e85f842cd4d0 | /Source/Runtime/ArrayWrapper.h | 9e62df8cc3b6dd1abb1027fadca84bc382e01d00 | [
"MIT"
] | permissive | JoinCAD/CPP-Reflection | 0608d7c0a934249b6e6d65ed8d140ffe27a121a5 | 61163369b6b3b370c4ce726dbf8e60e441723821 | refs/heads/master | 2020-03-22T11:40:21.538330 | 2018-08-03T16:18:43 | 2018-08-03T16:18:43 | 139,987,273 | 0 | 0 | MIT | 2018-08-03T16:18:44 | 2018-07-06T13:15:52 | C++ | UTF-8 | C++ | false | false | 1,067 | h | ArrayWrapper.h | /* ----------------------------------------------------------------------------
** Copyright (c) 2016 Austin Brunkhorst, All Rights Reserved.
**
** ArrayWrapper.h
** --------------------------------------------------------------------------*/
#pragma once
#include "ArrayWrapperBase.h"
namespace ursine
{
namespac... |
a92879fdb18c71695e4b9070157d331c8c6e92a5 | 705600670db696e45bde0eb6a21d0e4b7365b8c5 | /labyrinth/Game/Main.cpp | 66abe3b880ef9d27e61a1bebe1ea963013fced3b | [] | no_license | SergeyIllyashenko/Labyrinthhh | c016a2eb2ee756596581071c11b531a3b83e4ef1 | 9f34d507faba739ea2d18474002f175ee29bb1f1 | refs/heads/master | 2020-12-24T17:26:47.483994 | 2014-06-23T19:10:54 | 2014-06-23T19:10:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,397 | cpp | Main.cpp | #include <hge.h>
#include <hgesprite.h>
#include <hgevector.h>
#include <List>
#include "Clases.h"
#include "menuitem.h"
#include <iostream>
#include <fstream>
HGE* hge = NULL;
//Background
HTEXTURE g_tBackground = 0;
HTEXTURE g_tEColors = 0;
HTEXTURE g_tExit = 0;
hgeSprite* g_sExit = ... |
bf56ce7d91fcaa1e40bd1d3ff3c2e24d1e2251d2 | a944671fc881aad2f865907256038978fdd90af8 | /CF1006E.cpp | c652780493e61e1f8280d965b3dc9274686c4581 | [] | no_license | crablet/luogu | 1f444532b5dadcbfc0a4e11450e57e78a2333557 | 25fd026b32da7bb2411fd130979378748c02fc5e | refs/heads/master | 2021-04-27T15:09:07.483102 | 2019-11-16T15:10:38 | 2019-11-16T15:10:38 | 122,464,269 | 5 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,939 | cpp | CF1006E.cpp | // 首先要明确一下,如果按照题意里的每次都DFS一下,肯定会T,而且第二个点就T了,别问我是怎么知道的
// 然后,我们其实只需要DFS一遍,记录下每个节点被DFS访问到的时刻,然后再记录一下一个节点后面能访问到的节点总数,用以判断是否存在u后k个元素
#include <iostream>
#include <vector>
#include <array>
constexpr int MaxN = 200000 + 5;
std::array<std::vector<int>, MaxN> G;
std::array<int, MaxN> DFN{ 0 }, Size{ 0 }, Pos{ 0 };
// DFN[x]:... |
a7df4615da624c977c381451c7995fadf9400c0b | 184e03d9b1139e74c71b29edb902dad0132cf227 | /练习代码/指针习题2.cpp | 59d1e6066b2fb34155e150a033670e2a06edb6a8 | [] | no_license | VestigesH/C | 95909de75327741d283826ba0f5529f457e93b73 | 38010ca250869cb3a7f271286f975ac6790614d8 | refs/heads/master | 2020-06-16T14:06:30.762105 | 2020-03-30T02:18:08 | 2020-03-30T02:18:08 | 195,602,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | 指针习题2.cpp | #include <stdio.h>
int main()
{
int m=1,n=2,*p=&m,*q=&n,*r;
r=p;p=q;q=r;
printf("%d,%d,%d,%d\n",m,n,p,q);
}
|
b26111d4a3312584a0677f568c87d2c587b7be67 | 1ac04ddeae434c64fc10e2194a65c249d02129de | /src/codeforces/Friends_and_Gifts.cpp | 30be4ba943ffd6c511a7e9b48268b36df12862a4 | [] | no_license | VIPUL1306/cp_practice | f68de30c9d0af343d77ceda1397d14f22077b5d9 | a439e8cdec79962be6a168cdd70bad848138d757 | refs/heads/master | 2023-09-03T01:49:54.492499 | 2020-10-01T05:03:22 | 2020-10-01T05:03:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | cpp | Friends_and_Gifts.cpp | // http://m1.codeforces.com/contest/1283/problem/C
#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main(){
// freopen("input.txt","r",stdin);
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
ll n;
cin>>n;
vector<ll> arr(n+1), empty,temp;
map<int,int> temp_... |
300454be43de4a37b6870192f3e51b94dd2cd2d5 | ccd2c753f28e620893149e6df4f1167c5a388514 | /mara/src/riemann_hlld-rmhd.cpp | 0071df66da1c6e8f828aed94f48d658be9e80569 | [] | no_license | wme7/python-mhd | 52c90c02a61400f8a313422dc9e69e49919c7f0d | d4fb6c26e5f4d5e8af34617c3931d479b5557cc0 | refs/heads/master | 2021-01-10T02:17:39.593079 | 2015-06-08T21:35:00 | 2015-06-08T21:35:00 | 36,491,944 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 19,176 | cpp | riemann_hlld-rmhd.cpp |
/*------------------------------------------------------------------------------
* FILE: riemann_hlld-rmhd.cpp
*
* AUTHOR: Jonathan Zrake, NYU CCPP: zrake@nyu.edu
*
* PURPOSE: Obtain the intercell flux between two constant states using a 5-wave
* approximation.
*
* REFERENCES: Mignone, Ugliano, & Bodo (2008)... |
489fa7ced0a7d059cb0a91be21c236bd8e81261d | d9f2430ec0c61e5cb69d01f3abd5667ab4c924c6 | /Assignment 1 - Affine/AffineTest.cpp | a3b06fce8d5ad7f3f3c21ce9f3bdfe78813f6cec | [] | no_license | ProgrammingMoogle/Portfolio | d74aeff998386e6724ab133d8024b194688a6057 | 8e361dea4b9e523f57525fe2d049667618a6c24d | refs/heads/master | 2020-03-27T04:03:17.361681 | 2018-08-23T22:30:11 | 2018-08-23T22:30:11 | 145,908,779 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,186 | cpp | AffineTest.cpp | // AffineTest.cpp
// cs200 8/17
#include <iostream>
#include <iomanip>
#include <cmath>
#include "Affine.h"
using namespace std;
ostream& operator<<(ostream& s, const Hcoord& v) {
return s << '[' << v.x << ',' << v.y << ',' << v.w << ']';
}
ostream& operator<<(ostream& s, const Affine& A) {
s << '{';
for (in... |
10f6f8323bf380312f3aa2eefc948ab9ca412b13 | 14ca360109fe22fc4ac1323f1ebfdae6204bea3d | /P60OptometristStart.cpp | eac43eefd607ff316fec23adaf2efd3691b2c56b | [] | no_license | picoexperiment/PICOJarTracker | 92ea62c3da7726d9e5c538fd4493d55ac2764526 | 0d0cc1d838154b1c05b5146798559c1379ef0ae3 | refs/heads/master | 2023-06-01T01:14:26.604187 | 2023-04-24T15:22:19 | 2023-04-24T15:22:19 | 243,135,202 | 0 | 0 | null | 2023-04-20T15:30:15 | 2020-02-26T00:50:06 | C++ | UTF-8 | C++ | false | false | 10,160 | cpp | P60OptometristStart.cpp | /* OpenCV code to find fiducial marks for
* PICO Dark Matter search - the Geyser
*
* Written by Pitam Mitra for PICO Collaboration
*
* Latest Edit: 2014-07-11. See the HG Changelog
*/
#include <opencv2/opencv.hpp>
//#include "opencv2/cudaimgproc.hpp"
//#include <opencv/highgui/highgui.hpp>
//#include <opencv2/c... |
29d88d765682ab2547d8f45b4719cb162901919d | 02df0985b6d1bb907f5055aba0a0f35206992c10 | /n为水仙花数/main.cpp | 7eb1b972d600a2f05543814fab2e855366e0041f | [] | no_license | HCxiaozuoe/narcissistic-number | d7d4ba2f5fea59506b4392aff39f74580cbbce0a | 3142924fde6b1fa174b626790513eed4d6e62c41 | refs/heads/master | 2021-09-10T05:32:30.300782 | 2018-03-21T05:45:27 | 2018-03-21T05:45:27 | 126,128,149 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,098 | cpp | main.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n; //the number of digits.
int start,end; //表示N位数的 initial value and stop value
int m; //待分解各位的数,及、即判断的数
int digit; //某个数位的值
int sum; //各位数的N次方的和
in... |
c97f73b709409b888802e976f1e3585ad35bb88c | af9f57e07b2c1407a0c1bf1b0f386d3e19f9d780 | /GDP2019_20/RenderManager.h | dbd8bca15ecd456a8e44ba3b383984b9b58b1310 | [
"MIT"
] | permissive | d01000100/gl_demo | 9054e07e1d6fc6425e6c9334cfbb6bab2a67dcf0 | 5c0894b1fabf5727836757e7d44528c8b513d2d5 | refs/heads/master | 2020-08-09T06:35:52.440722 | 2020-03-22T03:50:04 | 2020-03-22T03:50:04 | 214,021,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | h | RenderManager.h | #pragma once
#include <glm/vec3.hpp>
#include "cFBO.h"
#include "GameItemFactory/iGameItem.h"
#include "Scene.h"
#include "util.h"
#include "Camera.h"
struct SceneDef
{
Scene* pScene;
int width, height;
std::string name, pathfile;
bool isRendered = true;
cFBO* pFBO;
SceneDef() :
pScene(nullptr),
width(1600),... |
5e89234354a6f9a748f772b241e7d8b439557b73 | 4ae3a9f815e4b57ca310bcd1a93e531fcf571326 | /alibaba/编程测试.cpp | 337f8dec75861d3659980f6d1c52af8438373a0a | [] | no_license | zhangji2015zhj/2019_job_hunting | b462fa8d67f5fe0b32e393e59c78b6d8fd75aac8 | a8f5bddf8a366193b8647cd1f0514b541aaa20a1 | refs/heads/master | 2020-03-25T22:27:34.551576 | 2018-08-16T14:32:54 | 2018-08-16T14:32:54 | 144,224,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | 编程测试.cpp | #include <iostream>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cmath>
#include <cs... |
951b6b1d85a71d5689586322e75015ae09ec0149 | acb84fb8d54724fac008a75711f926126e9a7dcd | /poj/poj2976.cpp | 4efc302768e304ce12b673f969477e508230cc7a | [] | no_license | zrt/algorithm | ceb48825094642d9704c98a7817aa60c2f3ccdeb | dd56a1ba86270060791deb91532ab12f5028c7c2 | refs/heads/master | 2020-05-04T23:44:25.347482 | 2019-04-04T19:48:58 | 2019-04-04T19:48:58 | 179,553,878 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | poj2976.cpp | #include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int n,k;
int a[1000],b[1000];
double c[1000];
bool jud(double mid){
for(int i=0;i<n;i++){
c[i]=(double)a[i]-(double)b[i]*mid;
}
double ret=0.0;
sort(c,c+n);
for(int p=k;p<n;p++){
ret+=c[p];
}
if(ret>0.0){
return ... |
7e074731366861fbd47db260222995a08376daac | d9961f5cf2c762698f3bcfdc465e17993d6a02dc | /src/game/game_object.h | fc567df4fb4f23045e62d7d5167f02177f3dad8c | [] | no_license | MisterMjirDeprecated/Platformer | b852133d5074715636bc3e96eae32c00c079252e | 0953fca912a829ba02b7e51501f08b1989d1dfe8 | refs/heads/master | 2022-06-14T22:43:36.939841 | 2022-05-30T17:27:17 | 2022-05-30T17:27:17 | 230,000,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 163 | h | game_object.h | #ifndef GAME_OBJECT
#define GAME_OBJECT
class GameObject
{
public:
virtual ~GameObject() {}
virtual void update() = 0;
virtual void draw() = 0;
};
#endif
|
0fb51cdeebbe104ab95f84569ccbcc19e23553d2 | f6199cdff5f7ca98f5d6d266354a2ea728b72624 | /Practice/arrays/prac3.cpp | fda1cc944eb01ab03481c45a9a8e31c3ef4af64d | [] | no_license | rishika1802/interview_prep | 0215b80d97d258593a6f2eec37e1722333a30691 | 7203cf4a290462e2347e91429b868922feac8587 | refs/heads/master | 2023-06-24T13:03:19.187886 | 2023-06-11T16:31:48 | 2023-06-11T16:31:48 | 216,331,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | prac3.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int *arr=new int[n];
for(int i=0;i<n;i++){
cin>>arr[i];
}
int x;
for(int i=0;i<n;i++){
int a=arr[i]%n;
arr[a]+=n;
}
for(int i=0;i<n;i++){
if ((arr[i]/n) > 1)
cout << i << " ";
}
return 0;
}
|
99a4fa47830329b1fafb91c985de9061d4f87c0c | 03700e2ff7e48ca17443bf8aa3611e634a0acdc8 | /source/Kernel/HardwareAbstraction/Random/Random.cpp | 36af8360b2661c52fcf110708614074c18b1d717 | [] | no_license | Wannabe66/mx | 432aac7b4ac7998e61fe2e432e54d9a03226e37a | f4f73da9bb7c2c0760de920ec2cb931846b90a31 | refs/heads/master | 2021-01-18T13:14:08.905424 | 2015-03-08T11:45:48 | 2015-03-08T11:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | Random.cpp | // Random.cpp
// Copyright (c) 2014 - The Foreseeable Future, zhiayang@gmail.com
// Licensed under Creative Commons Attribution ShareAlike 3.0 Unported.
#include <stdint.h>
#include <HardwareAbstraction/Random.hpp>
namespace Kernel {
namespace HardwareAbstraction
{
Random::Random(Random* dev) { this->ActualGen = ... |
e435d1d183ad984639aec6e758ba78350e8a97a3 | ba0847f266358b9ed91e054382d5953e0dd50c46 | /src/r.cpp | 3715af530b0abc32f117eee3a2027510a21a8f8b | [] | no_license | Ryunyy/Turing | 9ca261dc03815568e9c618a76941ada672614feb | ef1b1004252b52459d1c01e02e5b1c29cdd83ea6 | refs/heads/master | 2022-12-13T06:39:24.171483 | 2020-09-13T13:05:16 | 2020-09-13T13:05:16 | 275,322,748 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | r.cpp | #include "incl.h"
extern bool r_insp(vector<struct st> &rls, int N);
int r(vector<struct st> &rls, int N) {
int j, k = N;
string q = "";
setlocale(LC_ALL, "RUS");
cout << endl
<< "Введите правила обработки. Для завершения ввода введите 'stop': "
<< endl
<< endl;
z:
N = k;
... |
aa147b3805508b28f8b576aed52f5f7bd11aa545 | d9b2f31c9e11afbe5dfe4d63d93c588034ba0ccc | /CppUnitTest/test/main.cpp | 208b3bb9b862a59043e1374da9af3acdc6569935 | [
"MIT"
] | permissive | richsposato/Hestia | 5de9baac5a27d3623393ffc362dec44be80406bf | 37de060663114ab173f8f82a034f16edb2eda649 | refs/heads/master | 2021-08-16T07:44:13.091972 | 2017-11-19T08:01:26 | 2017-11-19T08:01:26 | 106,369,018 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 32,651 | cpp | main.cpp | // ----------------------------------------------------------------------------
// The C++ Unit Test Library
// Copyright (c) 2007 by Rich Sposato
//
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted under the terms stated in the GNU Library Public
// License, pr... |
2ee80c9fb9e3360e926947d6f49942c410fed8dc | e43e448b9ed8149aa6e04eea054bcaedcd4b7244 | /answers/UVa/10099.cpp | baab9f624b9e2bd2f2cf5bb5583d30b05784072e | [] | no_license | GustavoMA/notebook-competitions | 10512b2c7e0298c7a11cb6923f9c85c91db49f90 | 8b16c0c7234c0c960e7d8e8c5710a2fcef0eb5d9 | refs/heads/master | 2021-01-19T00:49:32.643950 | 2016-06-27T01:15:54 | 2016-06-27T01:15:54 | 33,758,340 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,214 | cpp | 10099.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<ii> vii;
#define pb push_back
#define mp make_pair
#define fi first
#define sc second
#define INF 1000000010
#define LINF 1000000000000000010
#def... |
ef2d45c9e2ced0e32278818f7aa51d7a3f216d57 | c8256d80e0fa77e291af97463f42fe52c4b2a8b6 | /ranker/main.cpp | 9afcde182efb30e60d3edc8524850bae2effe928 | [] | no_license | tszssong/Vehicle_ReID | f135ea8bf59d9956ed60bf3f7ce51c7b91304c1c | 262c298058b690ff1faada12995b31af71319e7e | refs/heads/master | 2020-07-10T13:16:33.091567 | 2017-10-10T12:04:17 | 2017-10-10T12:04:17 | 204,270,813 | 0 | 0 | null | 2019-08-25T09:04:55 | 2019-08-25T09:04:54 | null | UTF-8 | C++ | false | false | 3,243 | cpp | main.cpp | #include "database.h"
#include "mytimer.h"
#include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
#include <thread>
#include <memory>
#define PRINTVAL(e) std::cout << #e << "=" << (e) << std::endl;
int main(int nArgCnt, char *ppArgs[])
{
typedef float _DTYPE;
CDatabase::DATATYPE dt;
float ... |
8e959071476a6f4621ae629e91f173a1bad08d9f | aef58e10fc610fa12e5453c4dd11f5b332d42578 | /Headers/Editor/StateElement.h | 034bb17afa2f106d472f08ba848ccc335e27d4e0 | [] | no_license | lineatterobin/API | 06fcd6f1ed801816d08d34f1f59e14a3e4d080fc | cb678fd5a46e66213fc75d74a4472e2d526d5b26 | refs/heads/master | 2021-01-17T22:47:53.126985 | 2016-03-18T17:09:02 | 2016-03-18T17:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 906 | h | StateElement.h | /*!
* \file StateElement.h
*
* \defgroup Editor
*
* \brief
*
* \details
*
* \author Clément Bossut
* \author Théo de la Hogue
*
* \copyright This code is licensed under the terms of the "CeCILL-C"
* http://www.cecill.info
*/
#pragma once
namespace OSSIA
{
class StateElement
{
public:
# pragma mark -
... |
a6bc221225788a17815e14642344f9dc6bcbc2b2 | 7bb9aece9ed718391862570cc9cdf020e290db9c | /C++/Exercises/prev_assignment/A_star_with_heap/puzzle.cpp | 2930d2e263b8eb0a3399c302956725e7470191e6 | [] | no_license | mirodrig/codebank | b44e66af62740e88bad9f30d28e8e8469ed7dbd2 | f73d29e2bcf9abea6a62158ae2cd4f6b4302369e | refs/heads/master | 2021-01-16T20:04:06.554036 | 2017-09-25T02:45:18 | 2017-09-25T02:45:18 | 100,194,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | cpp | puzzle.cpp | #include <iostream>
#include <cstdlib>
#include <deque>
#include "board.h"
#include "puzzle_heur.h"
#include "puzzle_solver.h"
int main(int argc, char *argv[]){
if(argc < 5){
cerr << "Usage: ./puzzle size initMoves seed heur" << endl;
return 1;
}
int size, initMoves, seed, heur;
size = atoi(argv[1]);
... |
4502aec19e2d62789d9e4dc4a4c8dd1d9ee34417 | fe0e89aa47eddbf133b54fbbe876b1dcef1cee13 | /Source/FirstGame/Bullet.cpp | e9083a6a8fb4f806a82049acc85c2c4811bb7059 | [] | no_license | Yasen-Alchev/ARPG-Demo | 019d854bf49153a699cbe00e6e20768d65683fac | 102e62361e82767ea8999e7d8d9d87d170b5c978 | refs/heads/master | 2023-07-20T02:05:38.364467 | 2021-09-02T03:18:50 | 2021-09-02T03:18:50 | 402,111,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,100 | cpp | Bullet.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Bullet.h"
#include "Kismet/GameplayStatics.h"
#include "FirstGamePlayerController.h"
#include "Components/SphereComponent.h"
#include "GameFramework/ProjectileMovementComponent.h"
#include "Engine/World.h"
#include "Engine/Engin... |
c8c3f82c61ae03007b2e8f0eeef64d0f5bf1c086 | dd8c06cb013bed919314f0c1f751e9960f2b9a32 | /OpenCV3/6.Imgproc/Imgproc_BoxFilter.cpp | cb26d256f68a487c44f5076b9bc8d4b8ffd24b6c | [] | no_license | sorakunn/OpenCV | c247fd3a328af2103f5515933ae5dfe05e0aa82c | d675428f8746b79e6b4334faae6dd5a97bffe5db | refs/heads/master | 2020-12-02T07:52:33.700225 | 2017-08-01T14:52:55 | 2017-08-01T14:52:55 | 96,740,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | cpp | Imgproc_BoxFilter.cpp | #include <opencv2\highgui\highgui.hpp> /* 方框滤波 */
#include <opencv2\imgproc\imgproc.hpp> /* boxFilter方法 */
#define WINDOW_NAME "方框模糊"
using namespace cv;
int g_nBoxFilterValue = 3; //轨迹条参数值
Mat g_srcImage,g_dstImage;
void onTrackbar(int, void*){
boxFilter(g_srcImage, g_dstImage, -1, Size(g_nBoxFilterValue+1,g_... |
ba4bd01e63d3541c38fadeee4d4d386520111bee | ca979dffe7290c4479a8a40ed875483c1236ccd2 | /src/Channel.h | 548d28427fdaa557a6453c6b18ac31ca53f8582d | [
"MIT"
] | permissive | neurodroid/tdmsreader | a6e6cdd5f54b71f2e4821e1b1bbfcdc1c8cd0698 | 4262f4fba4f90fc903b83426e5fa3a2ebff26cb0 | refs/heads/master | 2020-05-29T11:48:25.593002 | 2012-07-17T14:32:29 | 2012-07-17T14:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | h | Channel.h | #ifndef CHANNEL_H
#define CHANNEL_H
#include <vector>
#include <string>
class DataType;
class DataArray;
class Channel {
public:
typedef std::vector<const DataArray*> RawDataSequence;
Channel(const std::string& name);
const std::string& getName() const;
void print(std::ostream &os) const;
void set... |
f1e2cba883197f7afc8a7f675140a5d69a20e18f | 91448636f2526eb9e2c91b744fc7c0828cb23048 | /markov/edge.cpp | 29418bd0cb4b6e6f03a573cf59d6a43aec4d6a3e | [] | no_license | hef/strup | 8d6c5fa0db0ab5f1bea51848b78efb97c6ba07ba | f2cd29d87a561821279c62ee244e2692be6824fb | refs/heads/master | 2021-01-20T05:07:41.598132 | 2014-08-07T04:20:07 | 2014-08-07T04:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116 | cpp | edge.cpp | #include "edge.h"
edge::edge(node* next)
: next(next)
, count(1)
{
}
node* edge::getNext()
{
return next;
}
|
758d9214b089133ac9ece8ef5bcc05c09bb7ef10 | 87f4fc172211b76406aa8d654f99f6eb9a3a898a | /fusion/include/fusion/definitions.h | d8cbe6ca3d29d0d0e5bce86d36f5b4e4374a8385 | [] | no_license | rakeshshrestha31/fastfusion_ros | fae77f231ea4bf7a803b41a2d174079d3bf25520 | a482541fe720986284d67349304a701c129910fd | refs/heads/master | 2021-04-29T19:42:22.862314 | 2018-02-20T00:06:50 | 2018-02-20T00:06:50 | 121,582,793 | 0 | 0 | null | 2018-02-15T02:03:45 | 2018-02-15T02:03:45 | null | UTF-8 | C++ | false | false | 8,641 | h | definitions.h | /*
* definitions.h
*
* Created on: Feb 27, 2013
* Author: steinbrf
*/
#ifndef DEFINITIONS_H_
#define DEFINITIONS_H_
#define UNENDLICH std::numeric_limits<float>::infinity()
//#define CRAPPY_LAPPY
#define READ_DISTANCE_PER_BRICK
//############################### CUDA ##############################
#de... |
6c851a4ce7414faf7e8fea142201617e14ec2017 | 1459e0cca33ec629d871b5890314ff1d0aa56570 | /programozas/evfolyamzh_vonat.cpp | 8c8c3c6392d8be94f14fa44240f4b10e3a6c5512 | [] | no_license | zlaval/ELTE_Prog | bac4a82ae4d322e443b82585618323142dbf35c6 | 7d3684e8e6f0fa1e086c44296e253e10cf9829c0 | refs/heads/master | 2023-03-25T11:44:35.782454 | 2022-12-19T19:39:49 | 2022-12-19T19:39:49 | 224,856,198 | 5 | 3 | null | 2023-03-13T21:49:23 | 2019-11-29T13:07:25 | C++ | UTF-8 | C++ | false | false | 4,359 | cpp | evfolyamzh_vonat.cpp | //missing edge case, only one/two station
#include <iostream>
using namespace std;
void readData();
void calculateTravelTime();
void countStationsGoThrough();
void findStationStayMoreThenPrevious();
void findStationPassagesWithoutStop();
void findLongestPassageStopInEveryStation();
int departures[1000];
int arrival... |
45f2fe5ca0e13acf8c346dd5efddd643dadc565d | a90376f0a3a90dbbe2702a5265c42f7bb77a56b7 | /customer.cpp | 32e48fdf61f9e07109d93d353ded5401094e1bd5 | [] | no_license | kudell1995/probable-tribble | b80d4eaa1c5bb1e2f5e95eeeb6c7a9368f3222ea | c9e2074a8957200964d70ce320aa2551c3c1929e | refs/heads/master | 2020-03-28T10:01:54.997857 | 2018-09-11T08:30:30 | 2018-09-11T08:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | customer.cpp | #include "customer.h"
#include <iostream>
using namespace std;
Customer::Customer()
{
// cout << "You must enter a name\n";
// delete object to clear up memory;
}
Customer::Customer(string n)
{
name = n;
address = "unknown";
account_number = "unknown";
}
Customer::Customer(string n, string add, string a... |
68116e8095376353677fcad228bcc315ffcd9a4c | 2d743169a19328de3a1e2209d338ee00a97e1eb8 | /src/cropeditor/drawing/ellipseitem.hpp | 46c8678b1e9c10bf59c7b8092d6d973dfc9aeac7 | [
"MIT"
] | permissive | Gurkengewuerz/KShare | c3a5a76e9cecdbef3760c50b488ebb3c01eb1509 | befc5e5446fde1c2c4c0e3cbed4c89254a5fc0d2 | refs/heads/master | 2021-07-25T19:47:52.548625 | 2020-06-05T13:51:58 | 2020-06-05T13:51:58 | 185,391,751 | 17 | 3 | MIT | 2020-06-05T13:52:00 | 2019-05-07T11:54:48 | C++ | UTF-8 | C++ | false | false | 501 | hpp | ellipseitem.hpp | #ifndef ELLIPSEITEM_HPP
#define ELLIPSEITEM_HPP
#include "drawitem.hpp"
class EllipseItem : public DrawItem {
public:
EllipseItem() {
}
QString name() override {
return "Blur";
}
~EllipseItem() {
}
void mouseDragEvent(QGraphicsSceneMouseEvent *, CropScene *scene) override;
void... |
a54e3ec52ffbbd578bae947748a7d6215fc48eee | 55101d33da38e5ad450c95f4fc775e2ddbf21017 | /Classes/GuestMng.h | 1a646518894cb883db6b2859d9c390fff7d4306e | [] | no_license | DYGames/Sushimasen | fef7e992dadfed2627451d92204b533f1912bfaa | 81a5a1a7588c4b5b8c1f28a0b171866b97b12061 | refs/heads/master | 2021-01-17T14:10:14.652028 | 2017-03-06T14:28:11 | 2017-03-06T14:28:11 | 84,080,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | h | GuestMng.h | #pragma once
#include "stdafx.h"
class Guest;
class GuestMng
{
private:
static GuestMng* _guestmnginstance;
Layer* _guestLayer;
int _hallGuest[N_HALL];
int _waitGuest[N_WAIT];
float _ctime;
float _randtime;
public:
GuestMng(Node* parent);
static GuestMng* getInstance(Node* parent);
void setRightPos... |
6dcbd7e79f30edbe6349eba5b963b70873bed138 | d1dc915fd1108b5bf73ed844fa0dcb414bd4825e | /AGame/TextureLoad.h | 36debd629a197377487e00c2e40a50843a7fbead | [] | no_license | WladWD/AndroidGame | 1c359066951ca1d0393b3afc7c84508ef741726d | a145840c1abe0b03ac39da55212b7167afc33cd9 | refs/heads/master | 2021-01-13T03:34:17.980269 | 2019-03-04T22:03:23 | 2019-03-04T22:03:23 | 77,531,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | h | TextureLoad.h | #include "MapResource.h"
#include "ResourceBase.h"
#include "LoadImageBase.h"
#pragma once
namespace Resource
{
class TextureLoad : public Load::LoadImageBase
{
MapResource *mapResource;
//Resource::ResourceBase *resourceLoad;
///////////////////////////////////////////////////////////////////////////////
R... |
9c91dbb549e39bfc8756a22e8da6fb5c5ea8fbba | 3bd2849bf455c6da8cc6835eb67d045e85d24c0a | /core/kernel.cc | a204cf40f313742467ea437fd8b999c9f0aacfaf | [] | no_license | nongli/OpenCL | f01a49da355335bead69ec84ad06de8bbf6d98fc | f55c646be306c5222afc4df8c04905d0f71c893a | refs/heads/master | 2021-01-10T21:10:22.485099 | 2015-01-06T22:07:48 | 2015-01-06T22:10:00 | 28,702,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cc | kernel.cc | #include "context.h"
using namespace std;
Kernel::~Kernel() {
if (kernel_ != NULL) clReleaseKernel(kernel_);
}
string Kernel::ToString(bool detail) const {
stringstream ss;
ss << "Kernel '" << fn_name_ << "'" << endl;
if (detail) {
ss << " MaxWorkGroupSize: " << max_work_group_size_ << endl;
}
retu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.