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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21f6001be76c30fa17a769296d07717654e1ea30 | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/Linux/riscv64-unknown-elf/include/c++/10.2.0/coroutine | b40a3bcf9cc82a41fad6e296c144d248cc741376 | [
"Apache-2.0"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | C++ | false | false | 7,898 | coroutine | // <coroutine> -*- C++ -*-
// Copyright (C) 2019-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; eith... | |
f7f4f9b9d417a30a2885ebc538a004ffb9f77cfb | dffbfae4b192072483996806e3f9dd96cc483c52 | /Piscine/Rush3/GraphicBox.hpp | 6ad8516b7fa3d9b7b8967b4c69a7407e4ad39244 | [] | no_license | Zippee0709/Tek2-Project | b14b5c0629d96a5cb6760a2326e84d8d3d1703f6 | 4aaf18bdbbaabda079e10f8ac128c737caf5337f | refs/heads/master | 2023-03-21T02:55:49.585534 | 2021-03-17T20:03:53 | 2021-03-17T20:03:53 | 348,810,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | hpp | GraphicBox.hpp | /*
** EPITECH PROJECT, 2020
** cpp_rush3_2019
** File description:
** GraphicBox
*/
#ifndef GRAPHICBOX_HPP_
#define GRAPHICBOX_HPP_
#include "Box.hpp"
class GraphicBox : public Box {
public:
GraphicBox(sf::Vector2f size, sf::Vector2f pos, const std::string &str)
: Box(size, pos) { }
void setText(const ... |
ea8dbd18202b6cee84f940cd8993fe890a6b05a5 | da7c499625123f5d1a28e3d75b037523df11ccb5 | /devel/epics/qt/QtDM/caQtDM/src/messagebox.cpp | 64921bb2286b9769aa37cf8c697e21bbd8eb1b77 | [] | no_license | emuikernel/BDXDaq | 84d947b0a4c0c1799a855dbe6c59e9560a8fc4e2 | cf678d3b71bdfb95996e8b7e97ad3657ef98262f | refs/heads/master | 2021-01-18T07:26:38.855967 | 2015-06-08T15:45:58 | 2015-06-08T15:45:58 | 48,211,085 | 3 | 2 | null | 2015-12-18T02:56:53 | 2015-12-18T02:56:52 | null | UTF-8 | C++ | false | false | 1,505 | cpp | messagebox.cpp | //******************************************************************************
// Copyright (c) 2012 Paul Scherrer Institut PSI), Villigen, Switzerland
// Disclaimer: neither PSI, nor any of their employees makes any warranty
// or assumes any legal liability or responsibility for the use of this software
//********... |
f751c06623683069fe881a43146b05de99abe9a6 | 0c1550b4c6bc495c37efc65ea1042801c67397eb | /Game/Object.cpp | 3f582e64a750616407b12a4625e271629f93c6a3 | [] | no_license | coe8907/game | c01cce9166d43bc972a3ddcc40c502cd7912fd32 | 854b486bb16df41c61d96932473d1e341371c927 | refs/heads/master | 2020-03-21T19:27:08.828746 | 2018-06-28T16:18:55 | 2018-06-28T16:18:55 | 138,950,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | Object.cpp | #include "Object.h"
#include <iostream>
Object::Object(){
}
Object::Object(bitmap * passed_bitmap,bool p_solid)
{
m_bitmap = passed_bitmap;
solid = p_solid;
}
bitmap* Object::get_bitmap() {
return m_bitmap;
}
void Object::colision(Object * target) {
//cout<<"Object : colision " << endl;
}
void Object:... |
debbbda94ae10b8b69f65ac80ec8699811ca3160 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir29315/dir29712/dir29713/dir29714/file29805.cpp | db40712af3ca55cf4d0779007834383762f02d84 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file29805.cpp | #ifndef file29805
#error "macro file29805 must be defined"
#endif
static const char* file29805String = "file29805"; |
2b3b0cb3dc781553ccad4bb7e0ed1ac3b120d451 | 81a3c93f87038d605cf4f2240d7705bbcc812690 | /lab2/hellodialog.cpp | cf97b6373214a6f271a66cec26d4c82edb6d407e | [] | no_license | BIGBIGWANGXINGXING/QT2020 | af820aab13bc9bc901ee6acf477656f8832b0c8c | 1786441ca66df3153ff0f9ea25af5ce7209a9e3b | refs/heads/master | 2023-02-03T05:49:29.281324 | 2020-12-21T02:58:04 | 2020-12-21T02:58:04 | 323,214,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | hellodialog.cpp | #include "hellodialog.h"
#include "ui_hellodialog.h"
#include <string>
#include <sstream>
HelloDialog::HelloDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::HelloDialog)
{
ui->setupUi(this);
}
HelloDialog::~HelloDialog()
{
delete ui;
}
void HelloDialog::on_pushButton_clicked()
{
this->x += 1... |
487fe335f4499473547b2a33b05ba1222ecfc1d5 | d7b7d1afd941e3eaa86c2fd9de85a86c50e182d3 | /macro/addWeightsToTree.cc | a0a51505c366d0158ab0daf337cf0a21bdb177c0 | [] | no_license | crovelli/AxigluonAnalysisTools | f5755d474ea92b581359bf40c216a9541c343a1d | e5ca3bd66e6f76fa189ac780e5b5da932611d972 | refs/heads/master | 2020-05-30T04:29:39.805342 | 2013-06-30T14:48:35 | 2013-06-30T14:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,505 | cc | addWeightsToTree.cc | #include <TFile.h>
#include <TTree.h>
#include <TBranch.h>
#include <TH2F.h>
#include <TMath.h>
#include <TLorentzVector.h>
#include <TVector3.h>
#include <iostream>
using namespace std;
int FRWeights = 0;
void addFRWeights() { FRWeights = 1;};
float getOfflineEff(float pT, float eta, TH2F *myH);
void addWeights(co... |
d37a3818a84e1d3ffb63f5f4bddc58d2677dbf89 | 13280e6ccfc5486e557db4f37e9bc18e7a38e31d | /rayTracer/tuples/demo.cpp | 0925bd7808b2f47d5cdf398caf4b2845925ebc35 | [] | no_license | trajamsmith/cpp-raytracer | 69924419b99dc11c7ec8f05be548b349b3a4949c | 96ee487a55f20d61b78dd49f4a70d6980e656020 | refs/heads/master | 2022-09-03T10:01:32.172174 | 2020-05-22T21:35:56 | 2020-05-22T21:35:56 | 266,212,088 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,018 | cpp | demo.cpp | //
// demoCannon.cpp
// RayTracer
//
// Created by Beeb on 12/14/19.
// Copyright © 2019 Beeb. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include "tuples.hpp"
Projectile::Projectile(Point position, Vector velocity) : position(position), velocity(velocity) {};
Environment::Environment(Vector... |
9f55b2d41684218204fc3f8409fe526c769f6400 | 2e9df984a0e2ebeb47288169e01c1be97ff6e5ff | /Flightmap/CKitchen.h | 869bf96c87e1b8f96d68e2a527c9313a803f58ba | [
"LicenseRef-scancode-public-domain"
] | permissive | konstantinkoll/Flightmap | 826e938a644ed1ca69a865a438e4e74499040c20 | 834edd925fef05e0a2d04064087e36ebe81df68e | refs/heads/master | 2023-08-25T21:53:23.234734 | 2021-10-22T13:07:17 | 2021-10-22T13:07:29 | 394,479,285 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,633 | h | CKitchen.h |
// CKitchen.h: Schnittstelle der Klasse CKitchen
//
#pragma once
#include "CItinerary.h"
#include "FMDynArray.h"
#include <hash_map>
// CKitchen
//
#define ARROW_FT 1
#define ARROW_TF 2
typedef struct _RENDERPOINT
{
REAL x;
REAL y;
friend BOOL operator==(const _RENDERPOINT& ptA, const _RENDERPOINT& pt... |
a7115f45d65c8e741a9ce8e18d33e2f3f7af7d26 | ee8f2d38c826de5a19a72d74444ef5a537e62feb | /Chrysalis/analysis/CompMgr.h | b54821d84036fcc951408800b5ed3dec428e18f5 | [
"BSD-3-Clause"
] | permissive | afraa-create/trinityrnaseq | 73d931b115127ebde865a4c1acbfa81ccd20e2a2 | 95f2d56b91b2e0e8a78723669f0b8542b1ba57dc | refs/heads/master | 2020-09-21T07:43:52.555188 | 2019-11-07T18:43:27 | 2019-11-07T18:43:27 | 224,729,398 | 1 | 0 | NOASSERTION | 2019-11-28T21:04:25 | 2019-11-28T21:04:24 | null | UTF-8 | C++ | false | false | 730 | h | CompMgr.h | #ifndef COMPMGR_H
#define COMPMGR_H
#include <string.h>
extern "C" {
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
}
class ComponentFileMgr
{
public:
ComponentFileMgr(const string & base = ".") {
m_base = base + "/";
m_per = 2000;
m_dir = m_base + "RawComps.";
}
string GetFile... |
333e30c265596a4f279147af163dc7e371d896eb | 20c64874a69119c9b359652930eaa0909cf7348f | /SPOJ/PT07X.cpp | 7f6dfb526fb6215cc4d2796ae565bbabbdf6b983 | [
"LicenseRef-scancode-public-domain"
] | permissive | Franco1010/ACM-ICPC | 11b60542a260bfe7117b9e811b641b49ab8fb89b | a4f82d34c228599288d8f01872438eb64f118409 | refs/heads/master | 2021-04-26T23:23:41.589945 | 2019-04-26T02:46:39 | 2019-04-26T02:46:39 | 123,984,250 | 2 | 1 | null | 2018-06-21T19:11:51 | 2018-03-05T21:59:58 | C++ | UTF-8 | C++ | false | false | 1,773 | cpp | PT07X.cpp | #include <bits/stdc++.h>
#define For(i, a, b, c) for(int i = (a); i <= (b); i += (c))
#define Rof(i, a, b, c) for(int i = (a); i >= (b); i += (c))
#define Forn(i, n) For(i, 0, (n) - 1, +1)
#define For1(i, n) For(i, 1, (n), +1)
#define Forall(i, x) for(auto i = (x).begin(); i != (x).end(); i++)
#define size(x) (int) (x)... |
32e89b1a5d8bf48a59f03ce1cf623099b22f4f77 | 24d856d98c85a319d53be2768ccc176a50873fa3 | /test/resume.cpp | bbf6ab0ff940bbeb14000a6b2e3d5d4a57497b5e | [
"BSD-2-Clause"
] | permissive | dozenow/shortcut | a4803b59c95e72a01d73bb30acaae45cf76b0367 | b140082a44c58f05af3495259c1beaaa9a63560b | refs/heads/jumpstart-php | 2020-06-29T11:41:05.842760 | 2019-03-28T17:28:56 | 2019-03-28T17:28:56 | 200,405,626 | 2 | 2 | BSD-2-Clause | 2019-08-03T19:45:44 | 2019-08-03T17:57:58 | C | UTF-8 | C++ | false | false | 19,773 | cpp | resume.cpp | // A simple program to resume a recorded execution
#include <getopt.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <search.h>
#include <pthread.h>
#include <dirent.h>
#include <dlfcn.h>
#include "recheck.h"
#include "util.h"
#include <assert.h>
#include... |
7b0c39d5fc6cfc7ba6741117915fca2a4867d42a | c178fac8e82b50fec3778b3b89edc297a6965877 | /test/resqml2_test/AbstractBigIjkGridRepresentationTest.h | 4fb3fb19ad7eb695a8237fc90c21864e8c642fe8 | [
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"BSL-1.0",
"Apache-2.0"
] | permissive | F2I-Consulting/fesapi | 4c380b2dad00453c729e2198cf9d37b3b7111d61 | 79babc0c0ff97ce51496f260a5cf133990957398 | refs/heads/master | 2023-08-31T16:01:19.068344 | 2023-06-19T13:55:30 | 2023-06-19T13:55:30 | 110,119,551 | 38 | 53 | Apache-2.0 | 2023-07-22T11:43:31 | 2017-11-09T13:35:15 | C++ | UTF-8 | C++ | false | false | 4,834 | h | AbstractBigIjkGridRepresentationTest.h | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... |
88e99921cfde3175d8514d7539b5269748a788fa | e6e3984d4d423b31cc400bc37fd8ac2a93536774 | /GAME_NINJAGAIDEN/WPThrowingStar.cpp | 6f82010bf55de3a59de49e668ca927350268752f | [] | no_license | phatnt99/GameNinjaGaiden | b7ea966d711243cc456ac48a39573c2838b2394b | eaa647f5bbd12df596f7858f0a82c426e6477e07 | refs/heads/master | 2020-05-03T21:00:09.231130 | 2019-06-14T15:55:46 | 2019-06-14T15:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,780 | cpp | WPThrowingStar.cpp | #include "WPThrowingStar.h"
WPThrowingStar * WPThrowingStar::Instance = NULL;
WPThrowingStar::WPThrowingStar()
{
texture = TextureManager::GetInstance()->GetTexture(eType::WPTHROWINGSTAR);
sprite = new CSprite(texture, 100);
spriteIcon = new CSprite(TextureManager::GetInstance()->GetTexture(eType::THROWINGSTAR), ... |
49ce992cbbeb3cae8baaa2e52eb20133852e8c14 | 938fab67864cee5bcf448875a3ea0abcbd4c5716 | /include/algebra/expressions/assignment.hpp | 76db6623b426de37b1ca537ed2ea1627bfa97c04 | [] | no_license | AnXPyDev/mathgraph | a44c26371bbf7a82915b5323d2c79cdfbc6ddf6d | 36c9759e95c6937b532febf8543df3e482eef998 | refs/heads/master | 2020-12-26T22:33:19.892766 | 2020-03-02T14:05:36 | 2020-03-02T14:05:36 | 237,668,708 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,269 | hpp | assignment.hpp | #pragma once
#include <memory>
#include <iostream>
#include "algebra/expressions/base.hpp"
#include "algebra/scope.hpp"
#include "algebra/expression.hpp"
using namespace std;
namespace mathgraph::algebra::expressions {
struct Assignment : public Expression {
ostream& output_to_stream(ostream& str... |
409881a998a0ed7b7bcd2b763655283bb7e5b5a3 | 843bf30616705b5ce817d1a27cbace44b5f980e1 | /mooon/include/mooon/sys/syscall_exception.h | c69bdd82538df81e8ecc5e101ffccaf764c37a96 | [] | no_license | eyjian/mooon | 971d7ffcae167cd67675d8e2262d13db0de18841 | 80e8e74c1b26f6ab41ce6df8f4e09e4f45d8b57c | refs/heads/master | 2022-02-01T22:12:18.055955 | 2021-12-23T10:41:44 | 2021-12-23T10:41:44 | 27,848,358 | 69 | 59 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | h | syscall_exception.h | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
0510a547d06436b6d1c2104877dedd2c8b17e01f | 04d1271872329f1e49b554d34779636ae61e9b25 | /redis_op.h | bb28bb34255d8795656e74ce6f3ce7237a2e75c5 | [] | no_license | chinachinachina/qhttp-adv | 685fda26fe4c222a420c9e91fb9447d910603140 | bdad4e529253d80b23dd15c29dc7dfb0ada85e7d | refs/heads/master | 2022-10-20T01:00:51.905823 | 2020-06-09T05:10:48 | 2020-06-09T05:10:48 | 270,564,980 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 757 | h | redis_op.h | /***********************************************************************************
* File name: redis_op.h
* Description: A head file containing operations related to redis
* Author: Zeyuan Qiu
* Version: 3.0
* Date: 2020/06/09
***********************************************************************************/
... |
324e0e140e35afe46b7a1e324d6c12dbf07fe051 | d1b559f1bc9abd6864609178826abd2f48deb008 | /Rasteriser/BaseLight.cpp | 982ea8637c7d1be8e5a0134a0a155c1762fa8375 | [] | no_license | Dogelix/Graphics3DSoftwareRenderer | 4c96ca4b48650f42fe12ee4f2cb9629d871c15dc | f532c83ba2d832089b4c8c892499faf1d9cd41e2 | refs/heads/master | 2021-08-19T02:45:09.553793 | 2017-11-24T14:25:16 | 2017-11-24T14:25:16 | 111,191,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 954 | cpp | BaseLight.cpp | #include "BaseLight.h"
BaseLight::BaseLight()
{
}
BaseLight::BaseLight(BaseLight & rhs)
{
Copy(rhs);
}
BaseLight::~BaseLight()
{
}
void BaseLight::SetRVal(int valIn)
{
if (valIn < 0)
{
_valR = 0;
}
else if(valIn > 255)
{
_valR = 255;
}
else
{
_valR = valIn;
}
}
void BaseLight::SetGVal(int val... |
ccccd31f6ba65b564cee04e934582b8d8136af54 | efe1131a33ee82e7c46b5af4cf200dcae8eb4add | /samples/WIN16/DLLPROJ/THEDLL.CPP | 54812a311d870d3b6047e76ad6c71a6fa7fdfe59 | [
"BSL-1.0"
] | permissive | ALEHACKsp/dmc | 819398bbb46e8b5a8ef5c344ef2a0f8b4ee8903c | 9478d25a677f70dbe4fc0ed317cc5a5e5050ef8b | refs/heads/master | 2022-12-28T13:36:57.721262 | 2020-10-11T07:47:16 | 2020-10-11T07:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,729 | cpp | THEDLL.CPP | // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//
//
//
// File : thedll.cpp
//
//
// Demonstrates simple dll containing file I/O, Windows
// calls, and malloc.
//
// This is C++ code only in the most Academic sense, and is
// intended to demonstrate the exporting of member fu... |
8af85bfcf322a50fd247227e969b87f7fdc2e3eb | bb7645bab64acc5bc93429a6cdf43e1638237980 | /Official Windows Platform Sample/Windows 8.1 Store app samples/99866-Windows 8.1 Store app samples/Direct2D 3D transform effect sample/C++/MainPage.xaml.h | 339e19c2105a6e09328b882db81fd39533f664f0 | [
"MIT"
] | permissive | Violet26/msdn-code-gallery-microsoft | 3b1d9cfb494dc06b0bd3d509b6b4762eae2e2312 | df0f5129fa839a6de8f0f7f7397a8b290c60ffbb | refs/heads/master | 2020-12-02T02:00:48.716941 | 2020-01-05T22:39:02 | 2020-01-05T22:39:02 | 230,851,047 | 1 | 0 | MIT | 2019-12-30T05:06:00 | 2019-12-30T05:05:59 | null | UTF-8 | C++ | false | false | 3,664 | h | MainPage.xaml.h | //// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#pragma once
... |
3854d793b7ee1f54f6f47ab8f913a02ab0572433 | 9851c3f47c1aa165bc0d239074fe238f82055875 | /LeetCode/1319. Number of Operations to Make Network Connected/solution.cpp | f30e9c4d101e053c7fb6019857131783e7f17a7b | [
"Apache-2.0"
] | permissive | InnoFang/algo-set | 12f886dbec0da664327d26bcaf02c1316151a643 | 2419a7d720bea1fd6ff3b75c38342a0ace18b205 | refs/heads/master | 2023-03-16T09:51:24.631068 | 2023-03-13T11:08:54 | 2023-03-13T11:08:54 | 86,413,001 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | solution.cpp | /**
* 36 / 36 test cases passed.
* Runtime: 128 ms
* Memory Usage: 50.4 MB
*/
class Solution {
public:
void dfs(vector<vector<int>> &edges, vector<bool> &used, int u) {
used[u] = true;
for (int v : edges[u]) {
if (!used[v]) {
dfs(edges, used, v);
}
... |
4741861513b07b5b2d6ff80be150982b80ef61cd | b5f465503b6537b7bb4452e45cf6d2c700a91b19 | /LINKEDLISTS/deleteDuplicatesUsingNextPointerInCprogramming.cpp | 976f473fc059a28036c6f5455f9e2b8321b6cc8e | [] | no_license | Mohanakhil/IMPORTANTDATASTRUCTURES | 71e4f3a6802d80a09ed020498895ca92e8cddadb | e9b9c55886f26c96b176a311de5c98fea490e339 | refs/heads/master | 2023-02-05T16:21:00.000959 | 2021-01-01T15:29:15 | 2021-01-01T15:29:15 | 320,771,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | cpp | deleteDuplicatesUsingNextPointerInCprogramming.cpp | //Remove duplicates from a sorted linked list using next pointer concept by traversing only once
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *next;
};
void push(struct node **head,int newdata)
{
struct node *newnode=(struct node*)malloc(sizeof(struct node));
newnode->data=newdata;
new... |
6129f01912b33fdef63f6994da176b07914af18a | 967c176b80e10fcb7f7f52655744e9171c8af35a | /src/stored_value_factories.h | cbd39a8b972966e1d890641e07156efca26e8f25 | [
"Apache-2.0"
] | permissive | membase/ep-engine | 33ef16f675f39e0a70f36937f02cec36df2386a1 | 5cf47c058c3cc73d4fb90f7d295530f395808526 | refs/heads/master | 2021-01-23T20:57:23.543812 | 2017-05-24T16:10:50 | 2017-05-25T09:15:13 | 454,214 | 34 | 17 | null | 2014-03-13T16:13:34 | 2009-12-31T07:20:12 | C++ | UTF-8 | C++ | false | false | 4,554 | h | stored_value_factories.h | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, Inc
*
* 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
*
* h... |
f4dd225bca1417439f173e2fb16dc00c036bb545 | 8df156cc3494bb62d7c90386944d5c7b10c69435 | /pixelmap.cpp | e164e403523ae9e46368808ebe4ac18253074fd0 | [] | no_license | SDI-Group-35/Project | b511fecff4d3b782d1c0c49d50d7d0b12795b238 | 5bea9197125616028685c4b8e2cd6accba8a8587 | refs/heads/newMaster | 2021-01-14T22:55:17.788590 | 2020-04-26T00:29:56 | 2020-04-26T00:29:56 | 242,786,660 | 0 | 1 | null | 2020-04-24T13:34:45 | 2020-02-24T16:32:22 | C++ | UTF-8 | C++ | false | false | 1,615 | cpp | pixelmap.cpp | #include "pixelmap.h"
#include "mainwindow.h"
pixelmap::pixelmap(QObject *parent)
{
/* connect the point together */
connect(this, SIGNAL(drawLines(QPointF, QPointF)), parent, SLOT(drawLines(QPointF,QPointF)));
connect(this, SIGNAL(drawPolygon(QPolygonF)), parent, SLOT(drawPolygon(QPolygonF)));
}
void pix... |
ea0fcab18cd910994f99141d3a595424bcadefce | 1a50804182d8aa4d4ae6e40e3b89cbf04e007c4d | /src/smp.cpp | fd550e6ba5d31aa7e27ec97e15d0e8efeb734aca | [] | no_license | 2qif49lt/xhb11lib | 7d12881057436aff5de42ce8635a53313c0f77e2 | 213e94bd26c621dc4444418e55a43c06dd230080 | refs/heads/master | 2021-01-19T05:23:52.657340 | 2018-05-08T07:32:17 | 2018-05-08T07:32:17 | 87,430,173 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,192 | cpp | smp.cpp | #include "smp.h"
#include "reactor.h"
#include "thread.h"
#include <iostream>
using namespace std;
namespace xhb {
struct reactor_deleter {
void operator()(reactor* p) {
p->~reactor();
free(p);
}
};
thread_local std::unique_ptr<reactor, reactor_deleter> reactor_holder;
std::vector<posix_thre... |
2c5444111c7a5efc5b48db7472198bc46e3db659 | 0a66d5e146eb37a713c6f52156246167dd53699b | /WindowsProgramming/CD-ROM/Chap12_DDX/DDX_step2_realMap/CObject.h | 83cb199d8351d5d7fc1c760d5589481f791b3cb9 | [] | no_license | GP101/2016 | 0b3291a34983e6bc35bb8fefd8f3ad098c0d42a7 | b7c864c75b060b10a7dd2d481e06600a18292df7 | refs/heads/master | 2023-01-11T10:42:05.683911 | 2022-12-29T07:55:24 | 2022-12-29T07:55:24 | 57,969,129 | 3 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 278 | h | CObject.h | #include "stdafx.h"
#ifndef _CObject_
#define _CObject_
class CObject
{
public:
virtual CRuntimeClass* GetRuntimeClass() const;
//virtual void Serialize(CArchive& ar);
virtual ~CObject(){}
protected:
CObject(){}
};//class CObject
#endif // #ifndef _CObject_
|
3a448571e827097ff0823a703d93dfee80fb703d | 77f2de3e4e6320d48784be19d0d71d78c3d12382 | /devel/include/gazebo_msgs/AddLink.h | fa6415b868a10f7accbadf967ace7f1f0a9f4129 | [] | no_license | ltinphan/catkin_ws_ahl | 70a62ff7f6897d5785c4325dd4f441b367e960b7 | 99a9400d5b3c61e02b40767e79556129da69af98 | refs/heads/master | 2021-06-07T19:52:31.202389 | 2016-12-01T17:05:00 | 2016-12-01T17:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,601 | h | AddLink.h | // Generated by gencpp from file gazebo_msgs/AddLink.msg
// DO NOT EDIT!
#ifndef GAZEBO_MSGS_MESSAGE_ADDLINK_H
#define GAZEBO_MSGS_MESSAGE_ADDLINK_H
#include <ros/service_traits.h>
#include <gazebo_msgs/AddLinkRequest.h>
#include <gazebo_msgs/AddLinkResponse.h>
namespace gazebo_msgs
{
struct AddLink
{
typedef ... |
fdf9aee271a4ba69b95e602e1caca3b9dfb0fdfa | cd940b838b452dbf26aa5f694ce183c79edd81fd | /atan/actor_system/udp_server.h | 01be3ccaacd6a15c6e3b108b4fa471e8e79406e8 | [
"Apache-2.0"
] | permissive | heftyy/rpi-networking | 65f545bd3b413fa1b19554d7c529119c54e0517b | 88b8ea5de6f113735315aaf52e461cb286934bd9 | refs/heads/master | 2021-01-17T11:01:24.062836 | 2016-06-02T16:17:12 | 2016-06-02T16:17:12 | 15,206,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,428 | h | udp_server.h | #pragma once
#include <cstdlib>
#include <iostream>
#include <array>
#include <atomic>
#include <boost/asio.hpp>
#include "../packet/packet.h"
#define PACKET_MAX_LENGTH 4096
using boost::asio::ip::udp;
class udp_server
{
public:
std::function<void(std::unique_ptr<packet>, udp::endpoint)> receive_function;
std::fu... |
422a19cf7cd6643ad649017349828d97cda71956 | 9a32178d3c2fdf377d84f65b55989264e67f40e9 | /2002/ALL VC SAMPLES/ATLServer/Applications/Manta/MailService/MailServiceDB.h | a1522dc64f34543b6fca7b8eab059614533c8c82 | [] | no_license | philipwolfe/Samples | 5e5cc1376575ac6361b62a3554c98626f153b694 | 7eb703287a6d07596a141c4557f271efe6c1666f | refs/heads/master | 2021-12-25T12:52:52.616313 | 2021-12-19T04:26:29 | 2021-12-19T04:26:29 | 250,445,305 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | h | MailServiceDB.h | // MailServiceDB.h : Defines the database classes for the mail service
// (c) 2000 Microsoft Corporation
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Classes Reference and related electronic
// documentation provided with the l... |
3db7361f23faad29415c802d101bbef61e1c90d6 | 745033a240b005a675b12ca9a83f6463bb931b4e | /7. Reverse Integer.cpp | 7fa5744641c0a1ebf9de55ecafeb84923ac3440b | [] | no_license | zhuhaochuan/Leetcode | ef9b36f7b0368331d0ee8cc2089dc4dcd121cc60 | 28442a733093d6fd4fe078ceba3d1bee5655ce1d | refs/heads/master | 2018-09-04T00:52:37.636977 | 2018-06-22T07:06:42 | 2018-06-22T07:06:42 | 111,297,678 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,809 | cpp | 7. Reverse Integer.cpp | /*
Given a 32-bit signed integer, reverse digits of an integer.
给出一个32位的整数 得到这个数的翻转数 正负号也要保持
如果翻转的数溢出了就输出0
32 位的系统有符号数的范围是
*/
//傻逼方法 能不中间转换就不中间转换 开销太大了。。。
class Solution {
public:
int reverse(int x) {
string s = to_string(x); int temp = 0;
if(x<0)
std::reverse(++s.begin(),s.end());//和当前函数同名 ... |
56260a845dfb474bb864576d45917ffc30bf09ae | afa7148e333f26050d28aa11fcf1d64b62aebe48 | /src/Device_Tests/wavstep_power_monitoring_graph_window.h | e18a7f7673e05d8c9dbeca604f9c998a65306e37 | [] | no_license | shattered97/OSICS_Interface | bbc1967125c3bafd0e05c097456753de1ca142ba | 55eebc72464378a134d167025975532bdd889f00 | refs/heads/master | 2022-04-01T22:56:41.606975 | 2020-01-28T13:37:15 | 2020-01-28T13:37:15 | 195,270,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,894 | h | wavstep_power_monitoring_graph_window.h | #ifndef WAVSTEP_POWER_MONITORING_GRAPH_WINDOW_H
#define WAVSTEP_POWER_MONITORING_GRAPH_WINDOW_H
#include "constants.h"
#include "ConversionUtilities.h"
#include <QMainWindow>
#include <QtCharts/QLineSeries>
#include <QtCharts/QChartView>
#include <QChartView>
#include <QtCharts>
#include <QMetaType>
#include <QDebug>... |
21a7bf859577822654a15d188805f6676b454621 | 475cbbc3acf5f0cabf48a5d104b3f4e1f89df004 | /libsnowflakeclient/include/snowflake/ITransferResult.hpp | e2190c4ea7d3a7c73bcd0c7999872c71ab9d88d1 | [
"Apache-2.0"
] | permissive | snowflakedb/pdo_snowflake | ee1239522988c9e9a156ffb5f717e917408df0a0 | d752ab3596187241735ff41dc0426b631ed33079 | refs/heads/master | 2023-08-15T07:55:57.038668 | 2023-08-02T01:01:26 | 2023-08-02T01:01:26 | 88,584,319 | 51 | 32 | Apache-2.0 | 2023-08-25T21:13:12 | 2017-04-18T05:11:49 | C++ | UTF-8 | C++ | false | false | 1,570 | hpp | ITransferResult.hpp | /*
* Copyright (c) 2018-2019 Snowflake Computing, Inc. All rights reserved.
*/
#ifndef SNOWFLAKECLIENT_ITRANSFERRESULT_HPP
#define SNOWFLAKECLIENT_ITRANSFERRESULT_HPP
#include "snowflake/PutGetParseResponse.hpp"
namespace Snowflake
{
namespace Client
{
/**
* Interface consumed by external component to get transf... |
eca78ca1dcd55bdecb8778ecd0f46db9a0dc5ee6 | 88ae8695987ada722184307301e221e1ba3cc2fa | /buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/release.pass.cpp | 9dfdd0b0ded2fa3b114f3cd86880429bc4447f35 | [
"BSD-3-Clause",
"NCSA",
"MIT",
"LLVM-exception",
"Apache-2.0"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 1,287 | cpp | release.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
da618b08428026e85f1987a065abc3c62a9436eb | f223b9de0b41f3d45b37aba6237c45aef8800ca2 | /src/models/Model.cpp | 53917109e4c0f9a4a1a194d8fd7af3e4095aa467 | [] | no_license | Benjamin-Vandersmissen/Gradius | 4ea0ccaf2aae3bb5931551464d30c5f1542636b5 | 1178da6c6b79e17e363c9a638d8f89218a7e2709 | refs/heads/master | 2018-09-30T19:24:54.006794 | 2018-06-10T19:03:44 | 2018-06-10T19:03:44 | 110,574,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,624 | cpp | Model.cpp | //
// Created by uauser on 12/14/17.
//
#include <iostream>
#include "Model.h"
#include "ScrollingEntity.h"
#include "PlayerShip.h"
#include "Boss.h"
void models::Model::addView(std::shared_ptr<views::View> view) {
m_view = view;
}
void models::Model::setController(std::shared_ptr<controllers::Controller> contro... |
3b1f68c2c32c2e428c74665f4d8d482d3a3234af | bcd1918bbde6c0eadb3cfa88400ffd6ea0f67f39 | /CodeArduino/main/linefollower.ino | 27d03a5ee916ae9d076e4b1f26aa1cbb29ec8eb1 | [] | no_license | WildCrasher/LineFollower | 458768db2dab1b24527893128e7262f697a473cc | 77eb55aa77f3d2acf8e7ea24459bbf886f2f5d07 | refs/heads/master | 2021-01-25T11:33:51.015082 | 2017-06-10T15:43:03 | 2017-06-10T15:43:03 | 93,934,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,886 | ino | linefollower.ino | int tab_czujnikow[5] = {5,4,3,2,1};
int czujniki[5] = {0};
int wagi[5]={-30,-10,0,10,30};
int poprzednie[5] = {0};
int index=0;
int skrety=0;
int sprawdz_pomiary()
{
int a=0;
int b=0;
for(int i=0; i<5;i++)
{
if(poprzednie[i]<-5)
{
a++;
}
else if(poprzednie[i]>5)
{
b++;
}
}... |
e7eab065cd6697d4ab3e72f0857fd31a6423111a | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/multimedia/directx/dinput/dicfgddk/cfrmwrk_stub.cpp | 8678fb918341e9392898e82578cf6a07f302f288 | [] | 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 | 70 | cpp | cfrmwrk_stub.cpp | #include "common_stub.hpp"
#include "..\\..\\diconfig\\cfrmwrk.cpp"
|
44f9c8f55c3b626594e95bce9152350d4e448557 | 081c1985bf8d4e3d203ae35e88e553b1d77b61f7 | /len.cpp | c0252e21b909201d904ba83677c8e5a78a6b6e39 | [] | no_license | WLFJ/acm | 4dc616abab0d7937372c9150b3c872a90a0f896e | 13659006153251faec6626d14cfc50116aeb35e2 | refs/heads/master | 2020-05-09T15:53:52.795655 | 2019-05-03T06:34:22 | 2019-05-03T06:34:22 | 181,249,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | len.cpp | //
// Created by Wong Yeah Way on 2019/4/20.
//
#include<iostream>
using namespace std;
const int MAXN = 1000 + 10;
int dp[MAXN];
int Data[MAXN];
int main(void){
//计算升序数组的个数
int N;
while(cin >> N && N){
fill(dp, dp + N + 1, 1);//最重要的就是注意dp的初始条件
for(int i=1; i<=N; i++)cin >> Data[i];
... |
43fd41ebb88ea962dc179f9375008198c8d378a5 | 97b34f6f1b2568c0411a1d58c92b5c679845d18f | /StudentRoleMenu.h | 76d56f8c71903332f4ae2a05996d616dd7d566d4 | [] | no_license | VARIACION/Student-Management-System | f2092efe94d2f190dda41a5f7d8b3928219a64e1 | 230aad504dc2ff0927e2583c0b4c06a85d01fe65 | refs/heads/master | 2021-04-03T05:34:20.880585 | 2018-04-19T03:21:47 | 2018-04-19T03:21:47 | 124,364,258 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 694 | h | StudentRoleMenu.h | #ifndef STUDENT_ROLE_MENU_H
#define STUDENT_ROLE_MENU_H
#include <iostream>
#include <string>
#include <fstream>
#include <conio.h>
#include "User.h"
#include "Screen.h"
#include "UserInformation.h"
#include "SearchViewAttendanceList.h"
#include "CheckIn.h"
#include "ViewCheckIn.h"
#include "ViewScoreStud... |
6b264dc2454e4fccf30ca395a23bce318b6b5b9f | 466b0a51a1995c7657a32cdae8e809e3c781bbd6 | /example/fixed_point_bernoulli_b2n.cpp | bcb9ac4da33f6e59d08ac7eb4ffbb50e41157e6c | [
"BSL-1.0"
] | permissive | BoostGSoC15/fixed_point | 0dab7676a5f34461e9eca42285ebf4193245722f | d71b4a622ded821a2429d8d857097441c2a10246 | refs/heads/master | 2021-01-23T20:00:34.235037 | 2018-06-03T21:32:12 | 2018-06-03T21:32:12 | 35,423,430 | 18 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 8,161 | cpp | fixed_point_bernoulli_b2n.cpp |
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
// Copyright Paul A. Bristow 2015.
// Copyright Christopher Kormanyos 2015.
// This file is written to be included fr... |
d6de58d60a1e47c4c42fdf8bef8741cbfd015acc | b16569381e4e9434e2d0089d4f8b896ca55944ac | /src/mavsdk_server/src/generated/geofence/geofence.pb.cc | a6a4f037ab564de6a33f6db9a2779f77be23fad0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Auterion/MAVSDK | e78dc2846111181fd23266ffc6890929b046344e | 6966fe20168301bc688f676228ce2996fbc50b02 | refs/heads/main | 2023-08-18T03:31:30.501422 | 2023-04-17T11:13:44 | 2023-04-17T11:13:44 | 131,304,987 | 3 | 0 | BSD-3-Clause | 2020-08-27T14:00:36 | 2018-04-27T14:11:00 | C++ | UTF-8 | C++ | false | true | 69,204 | cc | geofence.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: geofence/geofence.proto
#include "geofence/geofence.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descrip... |
1ad657baa5d35e2884d4b8ac7b9f45b6e994ea30 | 15570281df6b790555b6b04a9a44f0c6a5366f14 | /sem6/computer vision/cv_tutorial_jan13/opencv-intro/applyFilter.cpp | d8bc63bc8ecf6ae26bbf36965f727bdba001178d | [] | no_license | jashwanth/academics | a9a2b6244e9913e965d77dbdc4e16a0acb39f617 | 49d0fb80a1de4ff7a916f3940d93a5f8eb92f3b7 | refs/heads/master | 2021-01-01T06:15:08.579523 | 2017-07-17T06:23:47 | 2017-07-17T06:23:47 | 97,384,707 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | applyFilter.cpp | #include<iostream>
#include<highgui.h>
#include<cv.h>
#include<math.h>
using namespace std;
int main()
{
IplImage *img, *out;
img = cvLoadImage("yoda.jpg"); //load the image
out = cvCreateImage( cvGetSize(img), IPL_DEPTH_8U, 3); //create output image
cvSmooth(img,out,CV_GAUSSIAN,7,7); //apply a 7X7 Gaussia... |
3c2998a2acfa6faabeeeae3218a3507e9dac3afa | 0a61b1a9982be43bf205286a9e6fbeb1356c976e | /src/examples/002Chapter/2-6-2-sales-data-class/main.cpp | 41bea00d68f4d832ca9836ed728012bf21d4aff7 | [
"MIT"
] | permissive | artgonzalez/cpp-primer | d551c63918d1ba415808d883a154d68fbd1b7f8d | 0317e11b5821860d38a236f24c6f7d76638386f3 | refs/heads/main | 2023-03-09T14:51:33.759711 | 2021-02-27T02:14:22 | 2021-02-27T02:14:22 | 338,088,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | main.cpp | #include<iostream>
#include "sales_data.h"
int main()
{
SalesData data1, data2;
if (data1.book_no == data2.book_no)
{
unsigned totalCnt = data1.units_sold + data2.units_sold;
double totalRevenue = data1.revenue + data2.revenue;
// print: ISBN, total sold, total revenue, average pr... |
ffd1d7aaf5516648ae099d50e2567b3ebe776b6c | 461619a84c6617ceaf2b7913ef58c99ff32c0fb5 | /designpattern/command/command/src/command/main.cpp | 72d462d7a52b0ba7be16afe613bb0dd6dc6469c3 | [
"MIT"
] | permissive | bg1bgst333/Sample | cf066e48facac8ecd203c56665251fa1aa103844 | 298a4253dd8123b29bc90a3569f2117d7f6858f8 | refs/heads/master | 2023-09-02T00:46:31.139148 | 2023-09-01T02:41:42 | 2023-09-01T02:41:42 | 27,908,184 | 9 | 10 | MIT | 2023-09-06T20:49:55 | 2014-12-12T06:22:49 | Java | UTF-8 | C++ | false | false | 1,061 | cpp | main.cpp | // ヘッダのインクルード
// 独自のヘッダ
#include "command_loop.h" // class_command_loop
#include "print_command.h" // class_print_command
#include "exit_command.h" // class_exit_command
// main関数
int main(){
// コマンドループの生成.
class_command_loop *command_loop = new class_command_loop(); // command_loopの生成.
// コマンドの生成.
class_pri... |
f0b7fb8d5846662835f06e02204536f0cfd0b450 | 432672d2b85fea5f314d469b231c78db7ec31616 | /algo/algo/235LowestCommonAncestorofaBinarySearchTree.cpp | 7dc1dd8202df720fd52f2b65c2e934a2e53a859c | [] | no_license | down1013/MyLeetcode | e3f59e9f2b62510cfec69570b53e7fa9c28abdd2 | f8b846fd55cd30defdcd435269aee61b9056ff1d | refs/heads/master | 2021-01-10T12:19:29.212462 | 2016-04-24T19:06:13 | 2016-04-24T19:06:13 | 45,637,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 946 | cpp | 235LowestCommonAncestorofaBinarySearchTree.cpp | // // test.cpp // hello //
// Created by ysx on 15-9-22.
// Copyright (c) 2015年 ysx. All rights reserved.
//
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <array>
#include <stack>
#include <algorithm>
usi... |
2b5d8c75a3b5f6e04d2031d9c10a825c24f166e5 | ac98cfe39830c9ad21241a98baa1d78568fc0be7 | /src/ik.cpp | 076824f7a87c5e2fb019c4b5f60ada9cbbf3b6d3 | [] | no_license | golems/kore | 5b53fe11ac83a4ef5dbeff8969e3fbf728d86be6 | c5bf58957581532bcb55af53ef8dcb59e2b946e5 | refs/heads/master | 2020-04-26T22:25:12.766038 | 2015-10-20T01:46:44 | 2015-10-20T01:46:44 | 30,935,250 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 13,712 | cpp | ik.cpp | /**
* @file ik.cpp
* @author Can Erdogan
* @date May 03, 2013
* @brief Handles inverse-kinematics operation for a 7-dof arm with Krang's dimensions.
*/
#include "kore/ik.hpp"
#include "kore/util.hpp"
#include <amino/math.h>
#define transform(x,T) ((T * Eigen::Vector4d(x(0), x(1), x(2), 1.0)).topLeftCorner<3,1>()... |
9601cbdc5dc416052f1ecd082233cac9df1931e6 | 5ea2cc7287932cd5394957f2a1c768955032e07d | /parOImpar.cpp | ffc9aa615cfe775f0b7a2ac631bf804b11330db1 | [] | no_license | loqum/Proyectos-en-C | 735d0162bda03bf1f500be20591143b10336ba7e | a972f0c0e3bbd7861d14179201ef948e7a9aada6 | refs/heads/master | 2020-06-29T20:08:45.769602 | 2019-09-06T07:30:22 | 2019-09-06T07:30:22 | 200,612,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | cpp | parOImpar.cpp | #include<iostream>
using namespace std;
int isPar(int n);
int main() {
int n;
cout<<"Introduce un numero: "; cin>>n;
if (isPar(n) == 1) {
cout<<n<<" es par."<<endl;
} else {
cout<<n<<" es impar."<<endl;
}
return 0;
}
int isPar(int n) {
if (n % 2 == 0) {
return 1;
} else {
return 0;
}
}... |
d8feed75227c0f82c51d8f95656e379c13a34dd1 | cb0023535c5584fd102e0976647e96df884076a2 | /RPG/RPG/Vector4.cpp | 8972235752994b40ccf1347c89ebc8662a584df9 | [] | no_license | rroa/Real-time-content-streaming | 9212ac75812948a66f07220ccb943da5d2eb6537 | 82ebf28bf83ed720f4530570362a70f634060b43 | refs/heads/master | 2020-04-19T14:20:55.060895 | 2014-10-26T18:02:47 | 2014-10-26T18:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,221 | cpp | Vector4.cpp | #include "stdafx.h"
#include "Vector4.h"
const Vector4 Vector4::EmptyColor( 1.0f, 1.0f, 1.0f, 1.0f );
Vector4::Vector4()
: x ( 0.0f )
, y ( 0.0f )
, z ( 0.0f )
, w ( 1.0f )
{}
Vector4::Vector4( float x_, float y_, float z_, float w_ )
: x ( x_ )
, y ( y_ )
, z ( z_ )
, w ( w_ )
{}
Vector4::Vector4( const Ve... |
09df89553c1ecb606a6761ea8d170e3b9e507ff2 | 4299105ab540061a8a85d393dcb2f0cecbfb82a9 | /yuan/第一次模拟/1.cpp | 58e73ac84e76589134fb82a31821d4fecfceced1 | [] | no_license | DaNiuOk/learnGit | 13f68f4791719d7601984ac3d106295852ca80eb | d975a9144e3d649f3ba0b6e6b0c4d3ada2dad2d4 | refs/heads/master | 2021-08-23T04:09:28.000046 | 2017-12-03T06:02:35 | 2017-12-03T06:02:35 | 105,716,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | cpp | 1.cpp | #include<stdio.h>
#include<math.h>
main()
{
float x,y;
scanf("%f",&x);
if(x>0){
y=x*x;}
else
if(x>=0 && x<10){
y=-0.5*x+10;
}else
y=x-sqrt(x);
printf("y=%f",y);
return 0;
}
|
53dcb9f7b1a1ca23940cdc0537d0b12129b2e7f6 | 08af031a12f815273cfb70ece8e4e0233675314e | /keyboard/keyboard.ino | a84d3a07c5e9acd213ab6ee540a38fc5a0013569 | [] | no_license | gregwinn/E1 | 79ac0ceb618858f61ef25d8c1633ac490c961e14 | 9e2297cc07204e36cd863273de70b3cd006c19dd | refs/heads/master | 2021-01-10T10:56:52.288569 | 2015-07-06T02:10:56 | 2015-07-06T02:10:56 | 36,780,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,946 | ino | keyboard.ino | /*
KEYMAP as found here: http://www.nouspikel.com/ti99/titechpages.htm
# = wire from left to right looking at keyboard from normal orientation
#12 #13 #14 #15 #9 #8 #6
#5 = . , M N /
#4 spac L K J H ;
#1 entr O I U Y P
#2 9 8 7 6 0
... |
1003e099cc7fa81df1cfce20a791b0e30b8bc023 | 1ea28fb9c81e6ce70644dd633756f9992ed8c1e3 | /SmartHouse/Command.h | f50db615cac10aff17cd5a3c14974c9d56a21280 | [] | no_license | Kamo98/Patterns_Smart_House1 | 66ba281e379b86e116dc95dacd553dfb438f61fa | 3a31da24a86f2954ef588d1a7cab426d01925ff8 | refs/heads/master | 2020-12-12T14:15:32.581022 | 2020-02-22T15:55:39 | 2020-02-22T15:55:39 | 234,144,683 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,205 | h | Command.h | #pragma once
#include "ICommands.h"
#include "Appliance.h"
#include <string>
#include <map>
#include "CommandFlyweight.h"
#include "CommandFactory.h"
using namespace std;
//Отдельная команда
class Command : public ICommands
{
private:
CommandFlyweight *flyweight;
int timeUnix; //Время выполнения команды
map<... |
dabd4a729de5b101c16763fdb3472fda965af139 | 35b358878ca945ada6dfb0e6fcdd570e019a90eb | /test/test-spatial-algorithms.cpp | 4a30a347a9f7b323967b46dbc236a2b4bc50ce04 | [] | no_license | buckaroo-pm/mapbox-spatial-algorithms | b5663fb03846597bbe26b11e95301d5968303cdd | c5870568a366899bedbb0d6310de0cf5f46fa64c | refs/heads/master | 2020-04-05T17:50:16.777017 | 2018-11-10T22:37:49 | 2018-11-10T22:37:49 | 157,077,831 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,008 | cpp | test-spatial-algorithms.cpp | #include <mapbox/geometry.hpp>
#include <mapbox/geometry/algorithms/predicates.hpp>
#include <iostream>
namespace testing {
template <typename T>
void test_intersects()
{
using namespace mapbox::geometry;
namespace op = algorithms;
// Point/Point
{
point<T> p1{100, 200};
point<T> p2{10... |
39ddcc4abe9e7774db2ed399512be19d7314efae | 43f41d56f18da38571d9e617aceb21dbdec1d2d9 | /KMP.cpp | a44d9f973d736ae51c8279b639ae49451416a024 | [] | no_license | hr1day/AOA-2018 | 9f526975c49352240f9de588751ebe2376e34634 | c6fd9bed91295ceb448b27398b2a73d45536290f | refs/heads/master | 2020-07-02T03:54:52.099569 | 2019-08-09T06:51:04 | 2019-08-09T06:51:04 | 201,408,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 988 | cpp | KMP.cpp | #include<bits/stdc++.h>
#define MAX 20
using namespace std;
int lps[MAX];
void compute_lps(string pattern)
{
int m = pattern.length();
int len = 0;
lps[0] = 0; //first lps is always zero
int i = 1;
while(i < m)
{
if(pattern[i] == pattern[len]){
len++;
lps[i++] = len;
}
else{
if(len != 0)
... |
5b51a64da542e60832ad3b5f4c49a72fac4e602e | cd05c5245c9df3b427e10424ccb8ed93a30b773b | /Raytrace/Framework/Utility/Typedef.h | 3e83098d15531be2bdae789c12538ab02cb5efc9 | [] | no_license | matsumoto0112/raytracing | aa451c0a91b9a85705285185443e9b4d05300564 | ea524069397eb5f6c06e9b9068a0fb814b6ba2ac | refs/heads/master | 2020-08-23T23:48:23.375308 | 2019-11-01T09:25:35 | 2019-11-01T09:25:35 | 216,726,521 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 152 | h | Typedef.h | #pragma once
#include <wrl/client.h>
//共通で使うものを定義しておく
template <class T>
using ComPtr = Microsoft::WRL::ComPtr<T>; |
5209844da0fac49650872c2410da8d60ae16ab93 | 835a88ade3c15bf0ded93cdfeb27ee193cebda82 | /StateMachine/include/DeterministicFiniteAutomata.h | 6ed6b3c07512857c1cac19d9b6f484ec4a9bca28 | [
"MIT"
] | permissive | krystianAndrzejewski/statemachine | 5978951446611e1d7d9087a5e96b118680a64cc2 | 9cc2aaa14a01ef63d5526e6130dc1fa3aa415177 | refs/heads/master | 2020-04-27T14:24:56.776890 | 2019-05-09T22:06:52 | 2019-05-09T22:06:52 | 121,451,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,415 | h | DeterministicFiniteAutomata.h | #pragma once
#include "DeterministicState.h"
#include <vector>
template<typename T>
class DeterministicFiniteAutomata
{
public:
DeterministicFiniteAutomata(std::size_t size, std::size_t pInitialState, const std::vector<std::size_t> &pFinalStates);
~DeterministicFiniteAutomata();
bool linkStates(std::size_t... |
7f489295f3b5d53bd403a2e6e198efb20fde87ce | e8b87c3da55513626daf26774d8c9ca25be72836 | /myhttp.h | b2b8b791bef75344409c46d35bebd10a5929a2cf | [] | no_license | kasru/smallhttp | c0f335b54fedf7738de6e9ad35fbbfd1a963b076 | 3e76236074010117b9faab5468b476f8ffcf8795 | refs/heads/master | 2021-01-20T20:42:03.642319 | 2016-07-11T11:05:42 | 2016-07-11T11:05:42 | 63,060,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,753 | h | myhttp.h | #ifndef MY_HHTP_H
#define MY_HHTP_H
#include "mylib/thread.hpp"
#include "mysocket.h"
#include "httpcodes.h"
#include <vector>
#include <string>
#include <stdexcept>
#include <fstream>
#include <ctime>
#include <sys/stat.h>
class http_exception : public std::runtime_error
{
public:
explicit http_... |
25e21af20597dd1680bf594cb6efc8ac6157c800 | f20e965e19b749e84281cb35baea6787f815f777 | /Rec/Tr/TrackUtils/src/HltInsertTrackErrParam.h | cba3dd320398e6600a01276470cd89d8b8819a78 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,510 | h | HltInsertTrackErrParam.h | #ifndef HLTINSERTTRACKERRPARAM_H
#define HLTINSERTTRACKERRPARAM_H 1
// Include files
// from Hlt
#include "GaudiAlg/GaudiAlgorithm.h"
/** @class HltInsertTrackErrParam HltInsertTrackErrParam.h
*
* Reimplementation of Hugo's TrgInsertTrackErrParam.
* Hacks error matrix of tracks according to 1/Pt.
* See note ... |
1094ca3272baea882106daf79d60dd02acd8495d | 0e879a59bc866767f411701375a3e148e502a892 | /Practica 18/Practica 18/main.cpp | 6c3ff3bdd3918334d06e80ab8e12ebe3b1e5e705 | [] | no_license | AlvaroAbad/CPlusPlus | a0edf81e577471cf3a109c8040b0edaeb39ccbe0 | 193cc75c7e659be9a90b415b2b990d432cfd8190 | refs/heads/master | 2021-01-13T00:50:24.595865 | 2015-12-02T12:04:44 | 2015-12-02T12:04:44 | 46,378,373 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,127 | cpp | main.cpp | // TOMAS: Muy bien la práctica.
// TOMAS: Los includes de librerías que haces en los ficheros de cabecera es mejor situarlos
// en los .cpp pues realmente el fichero cabecera no depende de ellos sólo el fichero implementación los necesita.
// De esta manera disminuyes el acople con los módulos que usarán ... |
cbf5fc4ced2eec2b0e755f7dda5a67acee4d4a0c | 22d5d6071809b1e08d7863a3db4111dbaefb4ce2 | /core/LEE/XSecScaling.hh | 2f843589f161eb69d8850c7790b8d92a06acb5ee | [] | no_license | larlight/UBSensitivity | 8d599d0a9e7d77739bcf21f56261ff51ddc758bd | f39c4fddfe4b3503073d483a2684d9790e882718 | refs/heads/master | 2020-12-24T17:36:09.968907 | 2015-11-06T18:44:13 | 2015-11-06T18:44:13 | 20,896,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,239 | hh | XSecScaling.hh | /**
* \file XSecScaling.hh
*
* \ingroup LEE
*
* \brief This grabs xsection graphs from files and divides them.
* It also multiplies cross sections by n-targets-per-ton,
* so it's really more than just cross section scaling.
*
* @author davidkaleko
*/
/** \addtogroup LEE
@{*/
#ifndef XSECS... |
59776d8562a10bbae54d2e847bab9f570f818e40 | 0f12009f4204c3f7a8c433c6c4181a17d7c7104f | /LabirinthDungeon/Hero.h | 4451ae84f8f1ec394f71e6e04b573aa852fe8351 | [] | no_license | Daino360/LabirinthDungeon | 9474c3326a02c052621d40ff6e97d92a0085098f | 18a839fafd2d275875e290044510d411ead8f534 | refs/heads/master | 2021-04-06T19:58:52.129275 | 2018-03-14T18:12:30 | 2018-03-14T18:12:30 | 125,250,830 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,494 | h | Hero.h | //
// Created by Stefano on 15/11/2017.
//
#ifndef PLATFORMDUNGEON_HERO_H
#define PLATFORMDUNGEON_HERO_H
#include "GameCharacter.h"
#include "Equipment.h"
#include "Weapon.h"
#include <string>
#include "EnumFile.h"
#include <map>
#include <iostream>
using namespace std;
class Hero : public GameCharacter {
public:
... |
2b4a5c2f58998e5764776caea52988eee9b84c62 | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2018 autumn/NOIP/NOIP2018提高组Day2程序包/answers/GD-0140/game/game.cpp | dc3e5f763f220a9f6ac852c0ee9610766b9fba09 | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | game.cpp | #include<iostream>
#include<cstdio>
using namespace std;
const long long Mod=1000000007;
long long calc_2(int x){
if(x==0)return 1;
long long cc=calc_2(x/2);
if(x%2==1){
return (((cc*cc)%Mod)*2)%Mod;
}else{
return (cc*cc)%Mod;
}
}
long long calc_3(int x){
if(x==0)return 1;
long long cc=calc_2(x/2);
if(x%2==... |
c8ee70a49c1e89db170a90cecfffec163317d538 | f7876e8167be27ef95490e6a039baf20d62ba2aa | /base/Condition.cc | 589b2f26d887c53fbf24e5a3df64118b83d2b652 | [] | no_license | Chineseguuys/MUDUO | 7604e3ea97b21492bfed887d8f63dd64c5ac2298 | 467323d93ec89537ea49d66a0e4fdc379774c00f | refs/heads/master | 2022-11-29T14:41:50.455096 | 2020-08-10T12:36:03 | 2020-08-10T12:36:03 | 277,271,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | cc | Condition.cc | #include "base/Condition.h"
#include <errno.h>
bool muduo::Condition::waitForSeconds(double seconds)
{
/**
* 时间是从 1970-1-1 开始计算到现在的秒数。精度为 s + ns
* 先获取当前的时间,格式为 s + ns
* 之后根据 seconds 计算出需要等待的时间 s + ns
* 将当前的时间和需要等待的时间相加,就是我们等待结束时的绝对时间
*/
struct timespec abstime;
clock_gettime(CLOCK_REALTIME, &abstime);
... |
8ce5ef155c75bc4ba2099193eb22ad730d784227 | 3f01b448ac8217b909c9cb5524c7038307da83bf | /PAT B1023.cpp | 5f5932e105469981a69525faca4e02acc4d8b69a | [] | no_license | Lyman-Smoker/AlgorithmLearing | 4ba826996003ebc800dfad6ce5a328ff06e57f44 | dff52dd526775eac8a97b34d19c5245772be5e55 | refs/heads/master | 2021-07-15T07:25:31.968529 | 2021-05-26T09:20:20 | 2021-05-26T09:20:20 | 248,276,924 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 520 | cpp | PAT B1023.cpp | //
// Created by lym on 2021-05-17.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
int main(){
int f[10];
for(int i=0;i<10;i++){
cin>>f[i];
}
for(int i=0;i<10;i++){
if(i!=0 && f[i]!=0){
c... |
489a1b1ec3faac2c789f5c98bb4922c0ab8a2aac | 1b8add6ed33ba12b55c544c1572f141a1c6227f2 | /Day01/ex10/main.cpp | da2bfa3985eb5d1fe8cb3ff4eb74772920feea19 | [] | no_license | ltreu/Cpp | 4c9c1102d05f20bfb729b2d57a1f115d8dc9a5a1 | 9edcd78620bfc0a9e5bca8e3308de91ff7e0e6a3 | refs/heads/master | 2022-01-08T05:38:35.494308 | 2019-06-15T15:35:37 | 2019-06-15T15:35:37 | 192,092,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,744 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
50f703088efe5faf35907e657942697bd75baee5 | 976741a807b7c5f8b05d8c9d773a7ac58f4f236a | /UIChatViewPlug/search/LocalSearchMainWgt.cpp | b474545b03a6b2c47dcdea2e5a65b6c26f2b66e0 | [
"MIT"
] | permissive | Rekiny/startalk_pc | 1ba9e7f5614e7c7e01f184f27db4179f04bdacbe | 7d625f812e784bca68b3d6f6ffe21d383b400491 | refs/heads/master | 2020-09-25T21:24:06.322183 | 2019-11-27T05:51:54 | 2019-11-27T05:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,599 | cpp | LocalSearchMainWgt.cpp | //
// Created by QITMAC000260 on 2019-06-25.
//
#include "LocalSearchMainWgt.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QStackedWidget>
#include <QPushButton>
#include <QButtonGroup>
#include <QToolButton>
#include <QScrollBar>
#include <QDateTime>
#include <QFileInfo>
#include <QHeaderView>
#include ... |
76158dbe0ed5a60f52d313354cd10dfc06a25322 | ba74dec67753bed8b1f74be336879f3a72b3e7e5 | /Laboraufgaben/4/LauborAufgabe1/Bibliothek.hpp | eb3b2cb484c865a84722e85f0f05c553cbdc82f4 | [] | no_license | mathis-m/oos1 | be0904da6a2e2ead3319ba05cf7ea159510a9a31 | 20038c884ef2b82e499d24653af516d01df89004 | refs/heads/master | 2023-02-25T01:46:47.997917 | 2021-02-01T01:14:26 | 2021-02-01T01:40:47 | 307,346,673 | 0 | 2 | null | 2020-11-16T08:19:56 | 2020-10-26T11:13:58 | C++ | ISO-8859-3 | C++ | false | false | 2,121 | hpp | Bibliothek.hpp | // Bibliothek.hpp
#pragma once
#include "Buch.hpp"
#include "DVD.hpp"
#include "Person.hpp"
#include "Datum.hpp"
// Die Klasse Bibliothek verweist auf alle Medien (Bücher und DVDs),
// die von Personen (Studierende und Dozenten) ausgeliehen werden
// können.
class Bibliothek {
// Anzahl der in der im Bibliothekskat... |
09bbb31b463c0961972c6b1c132161a8fb0219bc | af4dc9ed3b25178664d9cb97b9b41039d4ee4e35 | /RSCH_ClothSym/trunk/src/testing/testLargeMath.cpp | 6453eed2ceac2f241c6ad066bc72eea2eb6dfc78 | [] | no_license | njoubert/UndergraduateProjects | 19dc0ba98a130e040d2594374a935954258f83ea | 7e6db9c4318a042c59c363cd4a331bbfcb908988 | refs/heads/master | 2021-01-10T06:25:49.985493 | 2015-12-31T22:57:17 | 2015-12-31T22:57:17 | 48,846,399 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,891 | cpp | testLargeMath.cpp | /*
* testLargeMath.cpp
*
* Created on: Oct 31, 2008
* Author: njoubert
*/
#include <iostream>
#include "testing.h"
#include "../math/algebra3.h"
#include "../math/LargeVector.h"
#include "../math/LargeMatrix.h"
#include "../util/Timer.h"
#include "../math/CG.h"
using namespace std;
void testVector() {
... |
46f6f2eb5d7cb1b7ee5f90679286356f0ff71e32 | 340cdfbbf38fe450268119dff003f8729d99777b | /plugins/user-plugin.cpp | b89f0635cf0b150d5165e719fe47f82c4410bf24 | [] | no_license | bluechill/ircd | 262cc426b1ad0eec35e07c94cac8d9065790d8a7 | 500d792a5c694ad8b2be8e6f9c5d1181d74d0c34 | refs/heads/master | 2020-12-24T13:43:52.580473 | 2013-01-30T20:48:14 | 2013-01-30T20:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,935 | cpp | user-plugin.cpp | #include "IRC_Server.h"
#include "IRC_Plugin.h"
#include <string.h>
#include <vector>
#include <string>
extern "C" std::vector<IRC_Plugin::Call_Type> get_supported_calls()
{
std::vector<IRC_Plugin::Call_Type> types;
types.push_back(IRC_Plugin::ON_RECIEVE_MESSAGE);
return types;
}
extern "C" std::string name_of... |
837990621be05aef7cc3c6148644da3f52847040 | af27fdc62d46654e096458d44cdcedfbb17211f7 | /server_src/items/treasure.cpp | 2bd5abe32c06e6368d18800b93dd9f5e5081fcab | [
"MIT"
] | permissive | PBrrtrn/75.42-TP-grupal | af5d69d40ce987798ba25d8c6ba07c9ba26b3b5a | ec76c5c90f340916c34b867f14ec9af12123c921 | refs/heads/master | 2023-03-18T06:54:45.819034 | 2021-03-10T21:15:39 | 2021-03-10T21:15:39 | 313,773,793 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | treasure.cpp | #include "treasure.h"
Treasure::Treasure(Vector pos_inicial,bool respawns) : Item(pos_inicial,respawns) {
const YAML::Node& c = ServerConfig::Config["Treasure"];
this->amount = c["Points"].as<int>();
this->type = TYPE_TREASURE;
}
bool Treasure::pickUpAction(Player& p) {
return p.addScore(this->amount)... |
d49d33ccee2f1173e93ea187f7bca9546b5da22e | 6559c9c66342c546f41ced1548d239fbfea0d7c9 | /Ramjet_Core/Core/UI/Widget.cpp | 4d6fd01c660c9318f0a6b66dc0d4c7c9532bd417 | [] | no_license | Fox3medium/RamjetEngine | e8f3cdbd74dc3e846974ebd3f6fb6c12415d0808 | 1b6c83f51821d94a8b35720bc09d6a4d28741fa9 | refs/heads/master | 2022-01-28T13:54:55.575843 | 2019-07-17T21:45:24 | 2019-07-17T21:45:24 | 194,148,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cpp | Widget.cpp | #include "Widget.h"
#include <CoreBasicInclude.h>
namespace Core
{
namespace UI
{
Widget::Widget(const Maths::Rectangle& bounds)
: m_Bounds(bounds), m_Active(true), m_Focused(false)
{
}
bool Widget::onMousePressed()
{
return false;
}
bool Widget::onMouseReleased()
{
return false;
}
... |
2977282f67075ae4e829f54d76de6fe5dc64addc | c7c73566784a7896100e993606e1bd8fdd0ea94e | /panda/src/text/textFont.cxx | bf6e9c5397f5bdc71b77e6be921b3768242d3b82 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | panda3d/panda3d | c3f94df2206ff7cfe4a3b370777a56fb11a07926 | 160ba090a5e80068f61f34fc3d6f49dbb6ad52c5 | refs/heads/master | 2023-08-21T13:23:16.904756 | 2021-04-11T22:55:33 | 2023-08-06T06:09:32 | 13,212,165 | 4,417 | 1,072 | NOASSERTION | 2023-09-09T19:26:14 | 2013-09-30T10:20:25 | C++ | UTF-8 | C++ | false | false | 4,637 | cxx | textFont.cxx | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file textFont.cxx
* @author... |
3433a22baa2ade99c87be3e838393f59fa7d13ef | 1bf4bd3a9e4ebcc9fdb84a34f92453201fb1289f | /Leetcode/UniquePaths.cpp | 479775b7ddfe77520c21eb7213262e5f41367176 | [] | no_license | ailyanlu/OJs | 22cf3a12bccec671cd587b24a3708476c79b89ac | 3c20172a86fb00e5860ae0a92cc765e4ac9641eb | refs/heads/master | 2018-05-30T13:05:15.806183 | 2015-02-03T13:55:31 | 2015-02-03T13:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | UniquePaths.cpp | class Solution {
public:
int comb(int n, int m) {
long long res = 1;
for (int i = 0; i < n - m; i++) {
int mul = n - i;
int div = i + 1;
int gcd = __gcd(mul, div);
mul /= gcd;
div /= gcd;
// div first. But still may get overflow.
res = res / div * mul;
}
retu... |
cba897af08f1e0c04e54a18e57025f9c8669fc8c | ca86433ee17ec5a4b9584b2575e261cb512c3f17 | /tutorial00_rootHistograms/rootHistogram.cxx | 7fbd794115918b0942d0357d727beda83756bbc6 | [] | no_license | cmilke/jingbos_class_intro | b54765c80835e99f04d7eeaf99345efc6fbc4231 | 78f5e85dc73ec8757e1a7001c292426ebecd06fd | refs/heads/master | 2020-03-28T14:58:33.370419 | 2018-09-13T15:24:54 | 2018-09-13T15:24:54 | 148,542,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cxx | rootHistogram.cxx | void rootHistogram() {
//Initialize an empty one-dimensional histogram which stores floating point (double) values
int number_of_bins = 100;
float maximum_x_value = 5;
float minumum_x_value = 0;
TH1F* simple_histogram = new TH1F("simpleHistogramID","Simple Histogram Title", number_of_bins, minumum_x... |
969072bbe4bf8e77dbea574b1cb428a2286b2a89 | cc070c4c0bcb5734dc7dbe0113663357c7516962 | /Accounts.cpp | 9e8ac646a1bf1036db6748505c26fa1df7fc22de | [] | no_license | cmkeith26/project1 | e40a675880abf4abe456a1a88ee26f2817404104 | 6286212fd08ce5ca0bf959bb1ab823e190d82e17 | refs/heads/master | 2020-12-31T07:33:48.688102 | 2017-03-29T02:45:19 | 2017-03-29T02:45:19 | 86,530,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,666 | cpp | Accounts.cpp | //Programmer: Candace Keith
//Lab: 12Ex5
//Date: 03/24/17
//Purpose: To simulate a Bank Account with various options
#include <iostream>
#include <iomanip>
#include <string>
#include "bankAccount.h"
#include "serviceChargeChecking.h"
#include "noServiceChargeChecking.h"
#include "highInterestChecking.h"
#include "sav... |
74fabac33d1e62bd5404db74a4169a8f403ef59d | 88ae8695987ada722184307301e221e1ba3cc2fa | /gpu/command_buffer/common/activity_flags.h | cc8b5a3908ecce18987ceb41fb12e4049c809579 | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 2,799 | h | activity_flags.h | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_COMMAND_BUFFER_COMMON_ACTIVITY_FLAGS_H_
#define GPU_COMMAND_BUFFER_COMMON_ACTIVITY_FLAGS_H_
#include "base/atomicops.h"
#include "base/memory/raw_ptr.h"
#include "... |
05ca29e30ba8580234d849eda1a029af9e4f0352 | f717e561649d68a2aeb626ced90587fa2b4de176 | /Extensions/OWCDumpNVRAM/OWCDumpNVRAM.cpp | 3d1ad4fc165a1d5cde1a6b8524fe67a9ed08aa9c | [] | no_license | OpenDarwin-CVS/XPostFacto | 9235e78d3302bc3a22911e6d33b40ff3206ccdc3 | 1803de6542e90ac878fd99aa808b15449a124fb4 | refs/heads/master | 2016-09-10T10:16:24.830437 | 2005-08-10T00:01:25 | 2005-08-10T00:01:25 | 19,126,537 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,102 | cpp | OWCDumpNVRAM.cpp | /*
Copyright (c) 2005
Other World Computing
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and... |
97da7463e5c124663b0111be242c7c454e50e2fb | 990663020f1106df3d0bad2dd57fe618d0f82385 | /nimbro_service_transport/src/tcp/service_server.cpp | 40ca4d3fc6f17074dcd3f57d93623bda3cf11987 | [
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | leggedrobotics/nimbro_network | bf60e2914ccdbab4ec86cf39203478146ac31e72 | 3149069e9ba24886139add933e8017824f0f0d78 | refs/heads/feature/develop_anymal_subt | 2022-11-17T12:13:37.269748 | 2021-09-06T21:32:50 | 2021-09-06T21:32:50 | 197,753,026 | 9 | 3 | BSD-3-Clause | 2022-03-30T12:02:26 | 2019-07-19T10:24:37 | C++ | UTF-8 | C++ | false | false | 2,353 | cpp | service_server.cpp | // Server side
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include "service_server.h"
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/select.h>
#include <linux/version.h>
#include <ros/master.h>
#include <ros/init.h>
#include <ros/node_handle.h>
#in... |
3c04a91a92a567789b7349c29dc7a29689d0d35d | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PyTorch/SpeechSynthesis/Tacotron2/trtis_cpp/src/trt/waveglow/waveGlowBuilder.cpp | d87843c5337335c0abaa4a254b447dbfd9d870e1 | [
"BSD-3-Clause"
] | permissive | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | C++ | false | false | 6,086 | cpp | waveGlowBuilder.cpp | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION. 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 l... |
bbccd26e74411b6019246cd65ab9f9bb26ba9c44 | 17353cfd2c984f2b57ab09dce5b793f34b051f19 | /unsorted_include_todo/Game/ItemHole/InitArg.h | e875ba92b65c610874f7703b708a33980a47c67c | [] | no_license | mxygon/pikmin2 | 573df84b127b27f1c5db6be22680b63fd34565d5 | fa16b706d562d3f276406d8a87e01ad541515737 | refs/heads/main | 2023-09-02T06:56:56.216154 | 2021-11-12T09:34:26 | 2021-11-12T09:34:26 | 427,367,127 | 1 | 0 | null | 2021-11-12T13:19:54 | 2021-11-12T13:19:53 | null | UTF-8 | C++ | false | false | 227 | h | InitArg.h | #ifndef _GAME_ITEMHOLE_INITARG_H
#define _GAME_ITEMHOLE_INITARG_H
namespace Game {
namespace ItemHole {
struct InitArg {
virtual void getName(); // _00
// _00 VTBL
};
} // namespace ItemHole
} // namespace Game
#endif
|
45bc0ce5026763c542c434446c0b7f68ad5af912 | 3701df968bdbdd8186f0ffdb72d49a15f4af6a46 | /src/IOCP/CopyFiles.cpp | 1575d11cdfeca83e2b2b2ae0f481ffab7f90d441 | [
"MIT"
] | permissive | CodeHubUserName/win-iocp-copying | c023616df90ca87b7a37fc4a44d12511f5805dbe | 42085f3c7c24da5d7cdfc66f240429217e51e3bc | refs/heads/master | 2022-02-18T09:31:26.733481 | 2019-08-14T15:20:29 | 2019-08-14T15:20:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,725 | cpp | CopyFiles.cpp | #include "stdafx.h"
#include "CopyFiles.h"
#include "Exception.h"
#include "Util.h"
#include "OvlFile.h"
#include "winUtil.h"
namespace copy
{
enum consts
{
ConcurrentFiles = 1000, // Copy 1000 files simultaneously
BufferSize = 0x4000 // Use 16K read/write buffers
};
class CopyFile
... |
8f1f29e19fad1b40b48e218aeda8348616167a09 | 0fbd8637aa5fe9e75a31754833e2281716b900bf | /main.cpp | 80c7815dd97d0a7ca73efe8bb5b7fcdfcc0ae01f | [] | no_license | Wersjon/WerDar | c235c28d8bebd6faa83b9d9dd9a980015c1807e9 | 742402d5d116b8377068ebf05df7ffb6f87d2ee6 | refs/heads/master | 2020-07-04T08:22:55.862989 | 2020-03-15T21:39:58 | 2020-03-15T21:39:58 | 202,220,250 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,722 | cpp | main.cpp | #include <windows.h>
#include <conio.h>
#include <ctime>
#include <fstream>
#include "classes.hpp" //including file classes.hpp that includes mouser.hpp
/*<voids>*/
void start();
void load();
void logoBar();
/*</voids>*/
int main()
{
srand(time(NULL));
SetConsoleTitleA("Wer-Dar");
system("mode con:cols=8... |
57aa67aa5d42a9cd3c360f407247c53d06129fb0 | f85b9d10bbb5018e0cae2d1ea5c929d65a1911e8 | /rekurzija.h | e650b692e10bd416875aaf681d23cb6a1d4f5d18 | [] | no_license | Emel777/newGitTes | e51173d36a4d568c926c66689453f758518c751e | 957c9fe9a8d6a886af9399e35753226139fd02e1 | refs/heads/master | 2020-03-24T23:30:22.474861 | 2018-08-01T14:49:23 | 2018-08-01T14:49:23 | 143,138,881 | 0 | 0 | null | 2018-08-01T14:49:24 | 2018-08-01T10:08:45 | null | UTF-8 | C++ | false | false | 576 | h | rekurzija.h | #ifndef REKURZIJA_H
#define REKURZIJA_H
#include<iostream>
#include<stdlib.h>
#include<cmath> // Ukljucili smo ovu biblioteku
using namespace std;
class Rekurzija {
private:
int u; //Ovdje sam mijenjao
int y;
int z;
public:
Rekurzija () {u=0;}; // Ovdje sam... |
035b94aeddf572509bfc0d73feddb836914a9379 | d6b4bdf418ae6ab89b721a79f198de812311c783 | /batch/include/tencentcloud/batch/v20170312/model/InstanceTypeConfig.h | 1b94f48612b1e5b6bf01076af84e7edab6e12226 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp-intl-en | d0781d461e84eb81775c2145bacae13084561c15 | d403a6b1cf3456322bbdfb462b63e77b1e71f3dc | refs/heads/master | 2023-08-21T12:29:54.125071 | 2023-08-21T01:12:39 | 2023-08-21T01:12:39 | 277,769,407 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,327 | h | InstanceTypeConfig.h | /*
* 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
... |
9f101fc85dae7eeadd810d89ffaac7fac9d412d8 | ab7a4b8e9732b51f344e522654db054682bb8162 | /task3_second try/Projector.h | aa491b094efec92a8dd85a806a60a343e9767728 | [] | no_license | yudzhadobin/task3 | a31dd6aea182246b9b99f48cf7286007a75d162f | 68b9961248149ddfdb6c8917e628c69212917fbe | refs/heads/master | 2020-06-29T19:04:51.351857 | 2016-12-09T15:06:34 | 2016-12-09T15:06:34 | 74,412,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | h | Projector.h | #pragma once
#include "MyMatrix.h"
using namespace System::Collections::Generic;
ref class Projector
{
public:
Projector();
MyMatrix<double>^ Multiple(MyMatrix<double>^ first, MyMatrix<double>^ second);
};
|
c368e767e1ac0ddb63b017e6cd230a4537473cfe | d839ef7211c25a5a447ddaafeade13677512fc48 | /401-500/492_Construct_the_Rectangle.h | 173e8464e86a4a29ac1274030466dadfe53ffba4 | [] | no_license | RiceReallyGood/LeetCode_Revise | 3d1a5546df7abd234d3db652e1e4720812497d14 | db9133f40a579850abc94f74d0d7c10af1193c70 | refs/heads/master | 2023-03-01T03:59:31.700854 | 2021-02-10T13:12:29 | 2021-02-10T13:12:29 | 318,096,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | h | 492_Construct_the_Rectangle.h | #include <vector>
#include <cmath>
using namespace std;
class Solution {
public:
vector<int> constructRectangle(int area) {
for(int W = sqrt(area); W >= 1; W--){
if(area % W == 0)
return {area / W, W};
}
return {0, 0};
}
}; |
7e43c0ac9ba2aeed058647b207680bd46788e211 | 25c5e1720e0805da64662a8daa0e68322bec53bb | /src/pfsd/pfsd_option.cc | c13b781f4c60722ea6f24e3c1cd6f470954cdde2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-gary-s-brown",
"LicenseRef-scancode-public-domain"
] | permissive | killua001/PolarDB-FileSystem | 6c2ffd8372788e048efef8a9696ec89e877fb8a7 | 9a16bfe492c663f55c2f069a314790c285ffac71 | refs/heads/master | 2023-08-30T17:00:47.478967 | 2021-10-14T13:38:48 | 2021-10-14T13:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,692 | cc | pfsd_option.cc | /*
* Copyright (c) 2017-2021, Alibaba Group Holding Limited
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
b366da41314b32792264d3246c9364d6f956aa9b | 828e4758b636932907cacc79c4c4cd7b8f0b22d2 | /src/objects/TriangleMeshObject.h | 45efe852c354a6d0561d353cbb644818ea73dff6 | [
"MIT"
] | permissive | aurthconan/fanLens | 23f660a31867f7ce185a7873914bef0265236053 | d05ce02cd748f21b6a5385892972accce54fd58d | refs/heads/master | 2016-09-09T19:14:01.194742 | 2016-02-01T06:48:48 | 2016-02-01T06:48:48 | 12,152,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | h | TriangleMeshObject.h | #ifndef TRIANGLEMESHOBJECT_H
#define TRIANGLEMESHOBJECT_H
#include <fanObject.h>
#include <fanTriangleMesh.h>
#include <vector>
#include <boost/shared_ptr.hpp>
class TriangleMeshObject
: public fan::fanObject
{
public:
TriangleMeshObject( const fan::fanMatrix<float, 4, 4>& objectToWorld );
std::vector<... |
a06ea24c250d2f5bb763f495eed706c12fcb7c92 | c490986a23f6ce18a8fa7a9afc9af23e162eca5f | /3 курс/1 семестр/ППВиС/ppvis_1/ppvis_1.cpp | 3913faaaeba43b1d78e3609cb474c7a3107f7e1e | [] | no_license | ar0ne/labs | ba564ec81ebade34d1ce26af362003021d6c9427 | d3dec74c6a8a75cdc6a2a4ef2db3a7b68f8e43c4 | refs/heads/master | 2021-06-02T00:53:58.181298 | 2015-04-09T18:31:15 | 2019-03-06T14:46:41 | 12,957,597 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cpp | ppvis_1.cpp | //============================================================================
// Name : ppvis_1.cpp
// Author : Serj Shalygailo
// Version :
// Copyright :
// Description : Hello World in C++, Ansi-style
//============================================================================
#include "ppvis_... |
14110002c561765cfa20d3e57d35fcaefbd80f4b | c1c93a18bdb6aa41053c526d1c0fdfd12fb3ef6a | /Ex05/main.cpp | 20910bff3f73097f019bbb7d5fb590bef7a58c09 | [] | no_license | nalet/bme.Cplusplus-Programming-I | 995dce4a950a7319c55206abc86f12ad228bf820 | 0e9549852be4e568af131dec92f6b00a6089a4c9 | refs/heads/master | 2020-04-26T20:27:49.946245 | 2019-05-29T16:11:39 | 2019-05-29T16:11:39 | 173,810,952 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,409 | cpp | main.cpp | #include <iostream>
#include "vector.h" // Your implementation of vector
int main()
{
std::cout << "*****************************" << std::endl;
std::cout << "******** VECTOR TEST ********" << std::endl;
std::cout << "*****************************\n" << std::endl;
// 1) Initialisation
Vector v1; ... |
154245c4e778e00e7748079eec9e3b9e7b65bdc4 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /C++/find-the-longest-semi-repetitive-substring.cpp | f41cf75969f839fb16acda5ff8c015b079fbd8b5 | [
"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 | 452 | cpp | find-the-longest-semi-repetitive-substring.cpp | // Time: O(n)
// Space: O(1)
// two pointers
class Solution {
public:
int longestSemiRepetitiveSubstring(string s) {
int result = 0, left = 0, prev = 0;
for (int right = 0; right < size(s); ++right) {
if (right - 1 >= 0 && s[right - 1] == s[right]) {
left = prev;
... |
116f00053d7d43fd60c603cb9f1bb3f34973c0cf | d053b471a9173df602d4bd7d52546cd588e48925 | /Лабораторная 15/lab15_2.cpp | b775a1ae63743f4c2f8b13ff2a00cf0b06dce1cd | [] | no_license | OR0KA/- | c82b6b9344d8d67de8311ff42ec383ef4f69a053 | fce282867ef3f4372e9f1729c19279f85a8a7dc3 | refs/heads/master | 2020-07-28T00:37:34.311395 | 2019-12-18T00:41:37 | 2019-12-18T00:41:37 | 209,257,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505 | cpp | lab15_2.cpp | // lab15_2.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
using namespace std;
int main()
{
int N, c=0;
double t = 0;
cin >> N;
int* a = new int[N];
for (int i = 0; i < N; i++) cin >> a[i];
double* b = new double[N];
... |
f2a1d089035b8321d5e11d958b3764d4949728e4 | ac53c9a914f20cc197c29f09117b61bea8daf009 | /Engine/Engine/FBXImporter.cpp | 18e40ea0d3cb8abcaa2b1a1dc8f605338fae53e8 | [] | no_license | areong9292/AreongEngine | 0996f3cd29dd776c89e079a92bce520ed26f6b16 | f3577c4b2db18b8c92469be192e52dd0072920cc | refs/heads/master | 2020-07-31T06:38:01.459203 | 2020-03-12T14:07:46 | 2020-03-12T14:07:46 | 210,517,756 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,247 | cpp | FBXImporter.cpp | #include "FBXImporter.h"
FBXImporter::FBXImporter()
{
}
FBXImporter::FBXImporter(const FBXImporter &)
{
}
FBXImporter::~FBXImporter()
{
}
bool FBXImporter::LoadFBX(std::vector<MyVertex>* pOutVertexVector)
{
if (g_pFbxSdkManager == nullptr)
{
// FBX SDK 관리자 객체 생성
// 모든 FBX 관련 작업은 이 관리자로 작업한다
g_pFbxSdkManage... |
0b4ffe8d6089496aef722e7e6b5b32340f51cb6c | 7a36e88f246ccc41e4460ef56ddbd72dfab0af0f | /CodeForces/538B Quasi Binary.cpp | 6917d8f6f528cb57c806974d6ab2fe3eed74d91f | [] | no_license | anazmy14/Competitive-Programming- | 71419b69f6f2a5278526ec7609b58093042524c7 | 092316afc72a2d6f05a1e58c55c482f5a3319ac5 | refs/heads/master | 2022-11-23T12:54:38.043471 | 2020-08-01T14:08:34 | 2020-08-01T14:08:34 | 267,897,029 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | cpp | 538B Quasi Binary.cpp | #include <iostream>
#include <stack>
#include <string>
#include <vector>
#include <unordered_set>
#include <cmath>
#include <algorithm>
#include <unordered_map>
#include <list>
#include <set>
#include<map>
#include <queue>
#include <stdio.h>
#include "cstring"
#include<cmath>
#include <deque>
#define MKP make_pair
#de... |
ee2ae62d87093c47d74f9230f1e2a2189561ce74 | d82d110153b5c9c8ac712c59e05a1ab9578cea35 | /Muremon/Program/Util/UtilInput.h | 307af41ea782b1669ef1d8861c410bbc31b915d0 | [] | no_license | halneko5121/Muremon | 8aafa478a17883506cb6245641276f3aff50297f | 20a56ffd1296e66cd6ccf3f0f19b538aebd3002c | refs/heads/master | 2020-06-08T17:23:35.064853 | 2020-02-03T16:13:57 | 2020-02-03T16:13:57 | 193,270,428 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,996 | h | UtilInput.h | #pragma once
/******************************************************************
* @file UtilInput.h
* @brief 入力関連のUtil
*
* 製作者:三上
* 管理者:三上
******************************************************************/
#include "Library/Input/DirectInput.h"
namespace UtilInput
{
const unsigned short cKey_Escap... |
597058d33846cba095eccfc67b9124d749eaa6fd | 133b6082c8cf38f9c561046e3092480ae85fd012 | /WriteLog/MmdCom/Mmdole.h | ed209d6d2b21a06cfcfccd7d2496258a3e5a75aa | [] | no_license | radtek/WriteLogWizards | 57a3bd75e759e2ce4508058a03824595935e74b2 | 0a0e9cb2430d87c157860df1915ca8fa76fec4a8 | refs/heads/master | 2020-06-27T20:51:24.236656 | 2019-07-02T15:23:10 | 2019-07-02T15:23:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,137 | h | Mmdole.h | #ifndef MMDOLE_H
#define MMDOLE_H
#ifdef __cplusplus
#ifndef WIN32
#ifndef _VARIANT_H_
#include <variant.h>
#endif
#endif
class MmdPersistStorage : public IPersistStorage {
public:
MmdPersistStorage(IUnknown FAR *, CLSID);
virtual ~MmdPersistStorage();
STDMETHOD(QueryInterface)(REFIID riid, void ... |
0db8b381484cbca72c139c5668b9c3cc128fff8e | 044a6c14d3e3e5d494968621f0593c4403a80964 | /src/test/test_func_generator.cc | 1c651085dd5c8b4e8572e72e014b893d9e40dacd | [] | no_license | YouAreAGeologist/option_analysis | 1b0e924dc6112892ae51aa313580a4c119c2044f | c50961788236322044899444e0db0356cf29fde5 | refs/heads/master | 2021-01-18T05:08:39.054405 | 2015-01-16T02:09:11 | 2015-01-16T02:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | cc | test_func_generator.cc | #include<vector>
#include<iostream>
#include"func_generation.h"
#include"base_function.h"
int main(){
const int kNumBases = 3;
FuncFit polyfit;
for(int i = 0; i < kNumBases; i++){
Polynomial * tmp = new Polynomial (i);
polyfit.add_base(tmp);
}
std::vector<double> x = {0., 1., 2., ... |
6aff17f4e8322fbaf672f21397b08eb135f0bac2 | 31589435071cbff4c5e95b357d8f3fa258f43269 | /PPTVForWin8/ppbox_1.2.0/src/p2p/server_mod/supernode/BlockDataAllocator.h | 08cc00cc0c2bcc3d1d9f65da7319450f64a0e09c | [] | no_license | huangyt/MyProjects | 8d94656f41f6fac9ae30f089230f7c4bfb5448ac | cd17f4b0092d19bc752d949737c6ed3a3ef00a86 | refs/heads/master | 2021-01-17T20:19:35.691882 | 2013-05-03T07:19:31 | 2013-05-03T07:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | h | BlockDataAllocator.h | //------------------------------------------------------------------------------------------
// Copyright (c)2005-2010 PPLive Corporation. All rights reserved.
//------------------------------------------------------------------------------------------
#ifndef SUPER_NODE_BLOCK_DATA_ALLOCATOR_H
#define SUPER_NODE_... |
76543340096813d790622451374be19f8f342ec5 | fb17b4cb741d9ab81ec9cc9d4a8c70ad2700e203 | /vfh/vfh.h | 60ac7156e538fc782b68fe2f67f81a29783afc9a | [] | no_license | silei862/robotic | 34273caec1c94cead3c1dcc44518925f956e2126 | 0b92de89848a6830a522ebf0b595db6b34c3604b | refs/heads/master | 2020-05-17T06:06:12.746432 | 2013-03-18T07:33:31 | 2013-03-18T07:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,150 | h | vfh.h | /*
* =====================================================================================
*
* Filename: vfh.h
*
* Description: Vector Field Histogram实现
*
* Version: 1.0
* Created: 2012年11月21日 11时19分25秒
* Revision: none
* Compiler: gcc
*
* Author: 思磊 (Silei)... |
c75c21ffdaf40007db0637f6f75ae63b01bdd2e3 | 6b84794b2b0aa23a2d2c3c5f1437001d103213ae | /Problems & Contents/URI/2-Ad-Hoc/1171-FrequenciaNums.cpp | 36b53bfe4b1e29db90bd4b064aa9c07a308f98a5 | [] | no_license | mtreviso/university | 2406d3782759a75ef00af4da8e4e1ed99cfb89d8 | 164dbfc13d6dddb3bdbb04957c4702d0e0885402 | refs/heads/master | 2021-01-09T08:14:21.551497 | 2016-06-09T23:19:01 | 2016-06-09T23:19:01 | 16,703,296 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | 1171-FrequenciaNums.cpp | #include <iostream>
#include <iomanip>
#include <cmath>
#include <cstring>
using namespace std;
int main(){
int n, x;
int vet[2001];
memset(vet, 0, sizeof(vet));
int maior = 1;
cin >> n;
while(n--){
cin >> x;
vet[x]++;
if(x > maior)
maior = x;
}
for(int i=1; i<=maior; i++)
if(vet[i] > 0)
... |
652ac6d5b6a377b1eaf1a77b22a3cc5f0076e384 | 182adfdfa907d3efc0395e293dcdbc46898d88eb | /Temp/il2cppOutput/il2cppOutput/AssemblyU2DCSharpU2Dfirstpass_ByteByffer2076475296.h | c77b0bca0b5ef397a6a21a7b87869f4482bbeba0 | [] | no_license | Launchable/1.1.3New | d1962418cd7fa184300c62ebfd377630a39bd785 | 625374fae90e8339cec0007d4d7202328bfa03d9 | refs/heads/master | 2021-01-19T07:40:29.930695 | 2017-09-15T17:20:45 | 2017-09-15T17:20:45 | 100,642,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,451 | h | AssemblyU2DCSharpU2Dfirstpass_ByteByffer2076475296.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object2689449295.h"
// System.Byte[]
struct ByteU5BU5D_t3397334013;
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wi... |
57995ab22fbf0ed8a4f4e15b9a1bd047a3035274 | 9ed99d6623620ccc9bcf0e01624ea47f87360da8 | /Game_PC/src/FlowerRenderer.cpp | 0f8fdb9fc3026ec0e953821806b8f73437e9f815 | [
"MIT"
] | permissive | arigus/omniBotProto | c468410f3d5d77ce9336f510f8c5a5011a41424e | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | refs/heads/master | 2020-03-10T04:01:06.181987 | 2018-04-04T12:13:30 | 2018-04-04T12:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,112 | cpp | FlowerRenderer.cpp | //
// FlowerRenderer.cpp
// Game_PC
//
// Created by Kris Temmerman on 03/10/2017.
//
//
#include "FlowerRenderer.hpp"
using namespace ci;
using namespace ci::app;
using namespace std;
void FlowerRenderer::setup()
{
mGlsl = gl::GlslProg::create( gl::GlslProg::Format().vertex( loadAsset( "flower/flower.vert" ) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.