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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57728193633a6c999df24c20328ff6c9230d4e08 | 02286031c902ec71ac466d80e8bd58860eb7e2f2 | /testing/client/helloworld_server.cc | 1b7fe7d7b402e7193e3abd4048c4c3b63f300aa3 | [
"MIT"
] | permissive | hxzrx/grpc | 0ced89977bc8eb142dc47c900da6c401e6638b3a | efa76f22e7782b27bce7885cad2b9d791d26449f | refs/heads/master | 2023-08-12T00:06:24.682490 | 2021-10-12T19:57:29 | 2021-10-12T19:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,787 | cc | helloworld_server.cc | // Copyright 2021 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <third_party/absl/flags/parse.h>
#include <absl/fla... |
e128f2e552609f560d5966a988686ddcc0dad5ca | 4c527fc7081ca81f55b4164bc2e423a2fe31f52d | /Person.h | a99f46f43fe45bedff526b3ccc56b439713869a0 | [] | no_license | hyunatic/yj | d2289bbe6cec2046fbe946d634f5d32a64d1bb8e | 9abadb402700f1a03ef04001a39b5b1dcc4e9df9 | refs/heads/master | 2020-08-08T02:00:51.397841 | 2019-10-08T14:41:52 | 2019-10-08T14:41:52 | 213,669,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | h | Person.h | #ifndef PERSON_H_INCLUDED
#define PERSON_H_INCLUDED
#include <string>
class Person{
private:
std::string name;
int age;
public:
Person();
std::string getName();
void setName(std::string n);
};
#endif // PERSON_H_INCLUDED
|
e30d3c50ef6753e6d54ab383118e4d37f0372a1d | 2a1b9b869bcd8596b9540e54a2b6efc827974fcf | /header/actor-zeta/make_message.hpp | 4a5e815d4e5c740245a758eaed24232640e3bbf4 | [] | no_license | SergeiNA/actor-zeta | b8fffc4b26e88c18ebc2684319cedf85dac37561 | d81d4cb484c9e4b43a93425ac1e8d204166620a6 | refs/heads/master | 2023-08-07T05:22:04.758151 | 2021-10-10T04:51:21 | 2021-10-10T04:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,936 | hpp | make_message.hpp | #pragma once
// clang-format off
#include <actor-zeta/base/handler.hpp>
#include <actor-zeta/base/address.hpp>
#include <actor-zeta/base/message.hpp>
#include <actor-zeta/base/basic_actor.hpp>
#include <actor-zeta/base/supervisor.hpp>
#include <actor-zeta/impl/handler.ipp>
// clang-format on
namespace actor_zeta {
... |
2c3486bdb3cc30ce816c2407ea0ca052e377b5b9 | 7dde7a1fcf136635f5c90cbd82f565ef02d52516 | /4_3.cpp | efbeba43f3a95d8c26d5786a99d3abe370365ae6 | [] | no_license | kimnahee1529/CppPracticalProblem | b49f8d540eeec181730cd7d714f4573a18fe12ed | 14343c7fd4d2ced7036bc5a0994766f7cd937e94 | refs/heads/master | 2023-01-21T18:45:54.710856 | 2020-12-04T06:43:34 | 2020-12-04T06:43:34 | 274,610,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | 4_3.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
cout << "문자열 입력>>";
string s;
getline(cin, s, '\n');
int index = s.find('a');
int num = 0;
for (int i = 0; i < s.length(); i++) {
if (s.at(i) == 'a')
num++;
}
cout << num;
}
/*int main() {
cout << "문자열 입력>>";
string s;
getline(cin... |
d44bd8367e4fde5ee66ccd193a2437dccf57b206 | a2e9639153e71dcf84d34b7349d69aa31b2eb678 | /zBTLC/zBTLC/game_sa/List_c.h | 306a4b4a8dfe889eed26691626ed5c2dcdcf723e | [] | no_license | DaDj/GTA-BTLC | ade014b3d8dbb1ecce6422328be95631226cd6f4 | 15d60cb5d5f14291317235066d64a639fffaf3ea | refs/heads/master | 2023-08-16T23:12:57.867204 | 2023-08-13T21:45:06 | 2023-08-13T21:45:06 | 83,485,003 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | h | List_c.h | #pragma once
#include "plbase/PluginBase_SA.h"
#include "ListItem_c.h"
class List_c
{
public:
ListItem_c *last;
ListItem_c *first;
unsigned int count;
List_c(void);
~List_c(void);
public:
/**
* Add new item to the head
*/
void AddItem(ListItem_c * pItem);
/**
* Remove given item fr... |
3f6697fd187c13b0fa82b8ac751e7458ab8c78a7 | 84f087b61e354c1ae22629b2f6d559fc45019316 | /BJXTGU-NHF/Product.h | ddaf954bbcd93c36817482337949cb826cd3f5f4 | [] | no_license | annadudas/Groceries | fb3a928173dff0a7797ec2f7eab02f76841b0038 | 23d1ea43206dc99ac0f2e8db494d68d78c78b99e | refs/heads/main | 2023-06-08T19:38:55.231938 | 2021-06-25T18:08:55 | 2021-06-25T18:08:55 | 380,311,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | h | Product.h | #pragma once
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
class Product
{
protected:
string productName_;
string label_;
int price_;
int rating_;
int isle_;
public:
string getProductName() { return productName_; }
int getPrice() { return price_; }
int getRating() { return rat... |
d84e2cbaab9ce11107368139a2836438916db746 | 215cfe900d3fb8ccf6240989ad7c3a741708a926 | /Renderer/Source/ResourceTypes/Lines.cpp | 1d985a9b1285bb11d7d7639ef55f698a0d3c1c98 | [] | no_license | Jofuleous/Gyro | d6044072f7555f6f8f1c476655206bc246ed4472 | 84068ce88e1486d4d92d5702c230ce1dd4fa54ab | refs/heads/master | 2021-01-01T19:42:16.543064 | 2015-08-11T02:36:38 | 2015-08-11T02:36:38 | 27,047,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,635 | cpp | Lines.cpp | #include "Lines.h"
#include "../RenderDevices.h"
#include "../VertexDeclarations.h"
#include "../RenderManager.h"
#include "../Camera.h"
Lines::Lines( int i_maxLines )
{
m_maxVertices = i_maxLines * 4; // 8 vertices per line.
m_bufferSize = sizeof( g3DLineVertex ) * m_maxVertices;
m_currentVertices = 0;
m_current... |
83315c5034d82d892a293dfeac5aaecf1ef85492 | db1acaba57f9dfff34b175e808518a5ad0fb3d29 | /LdFileManager/About.h | 2b4b307e828bf5b2801af69e499b0e3c4aa8e43d | [] | no_license | locustwei/Leadow | 20157ed7141916361abe85b1a92206821b5a8509 | c9fab13b67e3cc5219e1319adfb603a311bca863 | refs/heads/master | 2021-06-11T16:08:25.524759 | 2019-10-05T08:46:48 | 2019-10-05T08:46:48 | 140,794,910 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | h | About.h | #pragma once
class CAbout : public WindowImplBase
{
public:
CAbout(TCHAR* xmlSkin);
~CAbout();
DUI_DECLARE_MESSAGE_MAP()
protected:
LPCTSTR GetWindowClassName() const override;
void Notify(TNotifyUI& msg) override;
CDuiString GetSkinFile() override;
CDuiString GetSkinFolder() override;
void On... |
7b0f7d91db578608a8c856054ea2e5f41eb5ca08 | d634971e2c6b81d93090af1a66aa6f8f82e602d1 | /include/easi/util/FunctionWrapper.h | 376790c93f63b0d6bd1458c920ed605c17f0798f | [
"BSD-3-Clause"
] | permissive | SeisSol/easi | 5879278e39b5b0993ab476cf175be5d23a6b03d3 | 6c48c182609be681e896c37333ec98f997c0ac18 | refs/heads/master | 2023-08-31T14:44:41.975067 | 2023-08-22T07:59:41 | 2023-08-22T07:59:41 | 95,791,181 | 1 | 7 | BSD-3-Clause | 2023-08-22T07:59:42 | 2017-06-29T15:21:04 | C++ | UTF-8 | C++ | false | false | 390 | h | FunctionWrapper.h | #ifndef EASI_UTIL_FUNCTIONWRAPPER_H_
#define EASI_UTIL_FUNCTIONWRAPPER_H_
#ifdef EASI_USE_IMPALAJIT
#include <impalajit/types.hh>
namespace easi {
template <typename T> class Matrix;
typedef double (*function_wrapper_t)(dasm_gen_func, Matrix<double> const&, unsigned);
function_wrapper_t getFunctionWrapper(unsigned ... |
510eeb107608d61232f252e66e093083f2bd2841 | 306c007e3b07f70b38d51edb34a885e176b64366 | /Crystal.h | d83b0536ebba9010454e9177d1af952eed12ef75 | [] | no_license | raggimr/AnnProdAnn | a144b0e22ddcad54e7c9f8f2ca5128d01da31a9f | 0be6978bb99879d711ecb02f508b07ec9cc19ab2 | refs/heads/master | 2021-01-10T18:31:10.350260 | 2015-10-20T15:37:05 | 2015-10-20T15:37:05 | 34,965,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,239 | h | Crystal.h | #ifndef Crystal_h
#define Crystal_h
#define CRYSTAL_STATUS_BIT_USED 0
#define CRYSTAL_STATUS_BIT_SEED 1
class Crystal {
public :
Crystal(int ,int);
~Crystal();
public :
double GetEnergy() {return fEnergy;};
double GetTime() {return fTime;};
double GetCharge() {return fCharge;};
double SetE... |
67586e2de6e0113dc0875d850a77c92eca1f82ae | 7e03cbf0d6e75ca4f0c3001d9976b6184eb7233d | /src/scene/vcI3S.cpp | a611c3e5736f533814574839c4408792c07d779b | [
"MIT"
] | permissive | 5l1v3r1/vaultclient | f946bb1f5e67653036bc0003aaf54bdf7dd5cc65 | 1c4213317a77a3a06a3de0fab3a329bf41de2550 | refs/heads/master | 2022-11-14T06:09:45.166681 | 2020-07-13T15:55:39 | 2020-07-13T15:55:39 | 279,716,508 | 1 | 0 | MIT | 2020-07-14T23:42:12 | 2020-07-14T23:42:11 | null | UTF-8 | C++ | false | false | 3,152 | cpp | vcI3S.cpp | #include "vcI3S.h"
#include "vcState.h"
#include "vcStrings.h"
#include "vcRender.h"
#include "udPlatform.h"
#include "udStringUtil.h"
#include "imgui.h"
#include "imgui_ex/vcImGuiSimpleWidgets.h"
vcI3S::vcI3S(vcProject *pProject, vdkProjectNode *pNode, vcState *pProgramState) :
vcSceneItem(pProject, pNode, pProg... |
ed1c18e5af51b79d6e5cc24296e2020c51d407b7 | bee278c871d76f1eebdabbf1de8fa11431873ca7 | /ReENGINE/Source/Math/Rotator.hpp | 7a8cd6d55ffa894b198de9aa284c47565472c31e | [] | no_license | giovgiac/ReENGINE | cf48dbde50055b68fc22efd50343da25e528ab3b | 70ab413b7a06d8750d636c9e1342267d2e911e8b | refs/heads/master | 2023-04-17T20:46:19.572209 | 2021-04-26T02:00:28 | 2021-04-26T02:00:28 | 361,588,141 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 713 | hpp | Rotator.hpp | /**
* Rotator.h
*
* Copyright (c) Giovanni Giacomo. All Rights Reserved.
*
*/
#pragma once
#include "Core/Debug/Assert.hpp"
namespace Re
{
namespace Math
{
/**
* @brief
*
*/
struct Rotator
{
f32 _pitch;
f32 _roll;
f32 _yaw;
/**
* @brief
*
*/
inline Rotator()
: _p... |
7abad5b472ae4a21157015d7471e0cf0b210b18d | f3f960032cfeb3c0909aecd4b06c544622fe0b75 | /Spline/image.h | 72096095d388cd3561de7bc1a34bea7cdec022b9 | [] | no_license | bulat2960/OlemskoyProgs | 1678706c29b0b9c2067a2e4b778897a79411d1c1 | 3cf6dd74aec7472b7d620f05c840f695aaec1785 | refs/heads/master | 2020-06-09T06:56:27.058158 | 2019-06-23T21:06:45 | 2019-06-23T21:06:45 | 193,395,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | h | image.h | #ifndef IMAGE_H
#define IMAGE_H
#include <QtWidgets>
#include "computer.h"
class Image : public QWidget
{
Q_OBJECT
private:
int zoom = 1;
int prec = 100;
private:
QCheckBox* sp10button;
QCheckBox* sp21button;
QCheckBox* sp32button;
QTextBrowser* polyBrowser;
QT... |
d8a2d2d67656a7c1b209c116dbbf39ca08f88dd1 | 53487542f1d068b817b877d6b8f672c82e2bab96 | /RtspServer/rtsp/h264_source.cpp | 034cddd07796719da4ec5e106dc5fa4fdb63266f | [] | no_license | z-h-s/NetworkThirdParty | e071c6b8e1fd6a9df9ffc403e77d11798ca38aaf | 0169cb63756801d84c07ee91dd3614ef01700d88 | refs/heads/master | 2023-03-19T18:13:51.584510 | 2021-03-11T09:00:24 | 2021-03-11T09:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,959 | cpp | h264_source.cpp | #if defined(WIN32) || defined(_WIN32)
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "h264_source.h"
#include <cstdio>
#include <chrono>
#include "Base64.h"
#if defined(__linux) || defined(__linux__)
#include <sys/time.h>
#endif
using namespace micagent;
using namespace std;
h264_source::h264_source(uint32_t frameR... |
51b3c9e2ae3769d63990e130503f46ce9b81b288 | 906aa4c5db4c63fbd7919fe86fb82a25e89d3a35 | /src/SimpleHash.cpp | c33cc25c4b865753866eeb0f35af79ec7cbd1e88 | [] | no_license | khalefa-ow/indexing_prerelease | 9a8f4d1bc7d8b7c6dc4f362a2d0ca26f3564d908 | 6aea650fccb001602d3300082c609cea539ce2ab | refs/heads/master | 2022-01-30T10:05:21.473228 | 2016-09-29T19:21:09 | 2016-09-29T19:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,464 | cpp | SimpleHash.cpp | /*
* Copyright 2012 Cornell Database Group
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
be0aa45e94cecc51557e80384f9093906a0d7ce1 | b32bb708c4b7aa34275e8715c6e6f12028757355 | /SurgSim/Input/InputComponent.cpp | a49314804e72e7382df03d755207bb2a75f4e69e | [
"Bitstream-Vera",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | paulnovo/opensurgsim | b3fdad8b53a772dc6e8d2dad7492120a8d502f4c | 39ff317a59afe9ccc81c1884b81916d4612cc3d4 | refs/heads/master | 2020-12-13T20:54:45.571406 | 2016-01-05T14:04:20 | 2016-01-05T14:04:20 | 47,847,864 | 0 | 0 | null | 2015-12-11T19:53:57 | 2015-12-11T19:53:57 | null | UTF-8 | C++ | false | false | 3,731 | cpp | InputComponent.cpp | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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
//
// http://www.apache.org/licenses/LICE... |
f37b29236326dcffb62f48175c9c1072b50172dd | 3ee83e5b767c0bc4fdf7c215e37673c56bc6b6ef | /src/render/camera.cpp | 2d00d65108aadeb587990fb33a5cea092cfb3840 | [
"Apache-2.0"
] | permissive | mcneel/cycles | 1873e931563f763f49e26506f15e2643f8b25f1e | 0a3866af513acb771f2e30d51bf05dec69394074 | refs/heads/master_rhino_20170613 | 2023-09-01T20:00:58.001153 | 2017-08-24T12:55:32 | 2017-08-24T12:55:32 | 58,046,507 | 34 | 14 | null | 2017-08-24T13:12:34 | 2016-05-04T11:20:24 | C++ | UTF-8 | C++ | false | false | 19,497 | cpp | camera.cpp | /*
* Copyright 2011-2013 Blender Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
4dd675a3d540814188efe4a220f8d47cbac45fba | 7a5dbfc55d2fcd43e90e14ebe3fe3fa4705a162a | /Quasics2021Code/MaeTester/src/main/cpp/commands/TriggerDrivenShootingCommand.cpp | cead09f78fd15287abecd2235582222533c29760 | [
"BSD-3-Clause"
] | permissive | quasics/quasics-frc-sw-2015 | c71194921a3f0930bc16ae96952577ff029f8542 | 83aa34f475e5060e31ddf12186b48cb68430acc6 | refs/heads/master | 2023-08-23T07:13:23.194240 | 2023-08-17T23:19:51 | 2023-08-17T23:19:51 | 43,209,473 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,019 | cpp | TriggerDrivenShootingCommand.cpp | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "commands/TriggerDrivenShootingCommand.h"
TriggerDrivenShootingCommand::TriggerDrivenShootingCommand(
Shoo... |
aac7c44758ee6a75b9d805b857c6802bd2fea06a | a8880d5cbd16bb0c8c1a871370b22d46ca821bd7 | /filters/WaveFilter.cpp | 64dfc38048f0cc9be88e9368393bdd91d21eab21 | [] | no_license | Totktonada/ImageProcessor | 53c7f9692360cdd9573a40758a85462dbf6c1ea0 | ab94496d44be6f5f156c61a96c703b93e9e385b6 | refs/heads/master | 2021-01-19T17:11:39.662338 | 2012-10-07T17:31:07 | 2012-10-07T17:31:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,845 | cpp | WaveFilter.cpp | #include <QImage>
#include <QtGlobal>
#include <math.h>
#include "WaveFilter.hpp"
#include "../Utils.hpp"
#include "../Algorithms.hpp"
WaveFilter::WaveFilter(double aRadius, double aPeriod,
Orientation aOrientation)
: radius(aRadius),
period(aPeriod),
orientation(aOrientation)
{}
WaveFilter::~WaveFilt... |
1b0775cc67114c590e2e2c89f53a965cd674b53d | 5654998d8a024b2613fc6bbf709875e428914f81 | /src/hed/acc/JobDescriptionParser/ADLParser.h | 1d88c45844b879beb104e5761e9cf597d2d07353 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | davidgcameron/arc | 96f4188017e8b6ce71c099fb348a09ba037c1dbb | 9813ef5f45e5089507953239de8fa2248f5ad32c | refs/heads/master | 2021-10-23T22:04:24.290988 | 2019-03-20T07:16:50 | 2019-03-20T07:16:50 | 176,705,313 | 0 | 0 | Apache-2.0 | 2019-03-20T10:03:27 | 2019-03-20T10:03:27 | null | UTF-8 | C++ | false | false | 1,874 | h | ADLParser.h | // -*- indent-tabs-mode: nil -*-
#ifndef __ARC_ADLPARSER_H__
#define __ARC_ADLPARSER_H__
#include <string>
#include <arc/compute/JobDescriptionParserPlugin.h>
/** ARDLParser
* The ARCJSDLParser class, derived from the JobDescriptionParserPlugin class, is
* a job description parser for the EMI ES job description l... |
048c6433cba0f9fa0ecc0ed01ce732c3095a1cf5 | 00ce81a2ac01f55754ea8fee5fcbc416ff2f90dd | /C语言基础/老师课件/基础_09/02_重载++/02_重载++.cpp | e4778a3639eb38460e8366c7734b166f6099e6f4 | [] | no_license | song493818557/mfc | 1bd0064eec466847bac0f6abc7775d99b13f2423 | ce562ef61580b959c198c053648c9f77a7ea7a18 | refs/heads/master | 2021-01-13T04:49:50.035383 | 2017-01-13T12:10:08 | 2017-01-13T12:10:08 | 78,842,167 | 4 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,083 | cpp | 02_重载++.cpp | // 02_重载++.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
enum MyEnum
{
UP,
DOWN,
LEFT,
RIGHT
};
class CTest
{
public:
CTest(int nX = 0,int nY = 0,int nDir = UP):
m_x(nX), m_y(nY), m_nDir(nDir)
{
}
public:
CTest operator++()//前置++
{
switch (m_nDir)
{
case UP:
{
m_y--;
break;
}
ca... |
d31485ff209b624db5a91afa254dc0044c8fd1e9 | 3e6c3cb8af1a8928936ee2435d6e86141a02267e | /playHists/getVertexWeight.h | 4f6773feba16f515300786f916ca5cc65216ef59 | [] | no_license | mengzx/CMS-SUSY-2012 | cd340bfa0ed48558528c28232ed06ac5cd277bb9 | 6bc003ec9a66e36f0aacba2fa3e4ea3d56b5531d | refs/heads/master | 2021-01-10T19:37:40.935953 | 2013-02-06T15:46:34 | 2013-02-06T15:46:34 | 3,111,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | h | getVertexWeight.h | #ifndef getVertexWeight_h
#define getVertexWeight_h
#include "TH1D.h"
#include "TString.h"
#include "menus.h"
#include "vectors.h"
#include <vector>
using namespace std;
class getVertexWeight : public menus, public vectors{
public:
getVertexWeight();
~getVertexWeight(){}
TH1D *addHists(TString label);
TH1D ... |
5ad21f26a3abbfc7ca327d28be753befc520e7f9 | c2efe54b8ad33c2a6f516b865fc104894d800186 | /[程序员面试金典]1009.找出字符串.cpp | eafca0fc9742bcf2d716b74c461718e86f20e5a2 | [] | no_license | Fly365/AlgorithmCode | 2f8df8b934dcd3099d0e6b0fed66b670f28d21b3 | 389401a4f7eb9f97ff524277c6e049771276e700 | refs/heads/master | 2021-01-12T17:56:10.927847 | 2015-10-27T02:00:23 | 2015-10-27T02:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,453 | cpp | [程序员面试金典]1009.找出字符串.cpp | 这是一道二分查找 的变形题目。唯一的关注点就是当str[mid] == ""时的处理,此时仅通过str[mid]=""是无法判断目标是在mid的左边还是右边。所以,我们遍历mid左边的元素找到第一个不是空字符串的元素。
如果mid左边的所有元素都是空字符串,则去掉令start=mid+1;
否则
找到第一个不是空字符串的元素下标为index
(1)如果str[index]等于目标正好返回。
(2)如果str[index]大于目标,则说明目标在str[index]左边,令end = index - 1。
(3)如果str[index]小于目标,则说明目标在str[mid]右边,令start = mid ... |
8ab9091bfa5a09768ae3af2a1c10887510b93a70 | 1555a682e74657c28dcde082bfb704a3f4f32264 | /gui/path_planner/teb_planner/src/config_widget.cpp | 741f93062b9fff1a829474d169623d0441a2a64d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | lyp365859350/rip | bc78cd3fbc0f99141f5070922ca893255fd8347b | 51cfc0683e985ccdbf698556135eda7368758c10 | refs/heads/master | 2021-09-23T00:53:11.780796 | 2018-02-22T04:51:23 | 2018-02-22T04:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51,311 | cpp | config_widget.cpp | #include <teb_planner_gui/config_widget.hpp>
#include "ui_config_widget.h"
#include <QInputDialog>
#include <fmt/format.h>
#include <teb_planner_gui/exceptions.hpp>
#include <teb_planner_gui/exceptions.hpp>
namespace rip
{
namespace gui
{
namespace tebplanner
{
#define setupMap(map, var_na... |
ed0b1dd1732197928080008e35192e7693d81f21 | 365fc4bbaf92417ebb031bce628e9aaa141241fb | /05-ScenceManager/WeaponAttack.h | 25746ad72275c5a2ad26065f9ed4245a39b52455 | [] | no_license | ThuTinh/GAME_UPDATE | 30b45d6d444865f186486b6457b32a7a0aea3329 | af2e174a20cbf3553c2bdee7b2c072a0a6fff26a | refs/heads/master | 2022-11-20T19:15:17.739302 | 2020-07-24T12:58:45 | 2020-07-24T12:58:45 | 258,240,574 | 0 | 0 | null | 2020-07-24T12:58:46 | 2020-04-23T14:59:07 | C++ | UTF-8 | C++ | false | false | 200 | h | WeaponAttack.h | #pragma once
#include"Item.h"
class Sword : public Item
{
public:
Sword();
~Sword();
virtual void Update(DWORD dt, vector<LPGAMEOBJECT>* coObjects);
void onPlayerContact() override;
private:
};
|
23fd5d3f4952559b7cadd656ebb4dd6f0230a13b | 46e07ee08e7da16f485e4ecaff4c904f4d35e861 | /cpp/app/is_vowel/is_vowel.cpp | b2e9079e06b3bcb7c3bc63b52e6bcbf0cd23e6ec | [] | no_license | xifeng205/test | 3f5d5419ebaee2b6521842ac07b9036ec905fcb7 | 91935b42eda99200a411395f8708bef9027249a9 | refs/heads/master | 2023-02-02T12:53:29.932233 | 2020-12-17T06:58:15 | 2020-12-17T06:58:15 | 322,201,691 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | cpp | is_vowel.cpp | /*********************************************************************
* Author : cuiyunpeng
* Email : @163.com
* Create time : 2020-08-01 14:22
* Last modified : 2020-08-01 14:22
* Filename : is_vowel.cpp
* Description :
*******************************************************************... |
fa5eaafdef7186304e2407a80bac464395c15c7a | 5569ec3412d181e442350e8513536196984bb1c4 | /project_1/client/udp_handler.cc | b90847f6b531ecf2505f049cd66515db93ebadb0 | [] | no_license | SanjayYr/DistributedSystemsProject1 | 478a76175f769b46076f38d201d9e03bc54e3cc1 | ae42e241b1216785af0a6b776146fd84294fc82d | refs/heads/master | 2021-04-26T23:26:03.820726 | 2018-03-06T18:58:13 | 2018-03-06T18:58:13 | 123,993,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,334 | cc | udp_handler.cc | #include "udp_handler.h"
UDPReceiver::UDPReceiver(uint16_t port){
std::cout << "UDP listner on Port: " << port << std::endl;
fd_rx = socket(AF_INET, SOCK_DGRAM, 0);
if(fd_rx < 0){
perror("OS did not give an fd for UDP rx socket");
}
optval = 1;
setsockopt(fd_rx, SOL_SOCKET, SO_REUSEADD... |
1a0b54718c385b322d3ada68fcf4c4d9dfc981c6 | aeb70bce11a92577de4cf4d800b201728912d0c7 | /BasicEngine/TextureCache.h | 7d703a8ae918941d33ad7eef47e1199fe8196a03 | [] | no_license | jaidurn/BasicEngine | 435d912d0daa151ab8123dc8b966ec83aba8a4fc | eedbd556cc6fe8fb01afb1a968988cc7c0d7b20f | refs/heads/master | 2022-09-17T02:08:36.585500 | 2019-11-01T10:09:34 | 2019-11-01T10:09:34 | 218,895,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 866 | h | TextureCache.h | #pragma once
//==========================================================================================
// File Name:
// Author:
// Date Created:
// Purpose:
// Allows for creation, storing, and accessing textures.
// This keeps the textures from being created multiple times.
//===================================... |
426eca73776789df8842d7359231840a31f533c6 | a97896728e984e349460851c572df0885f7a445e | /Semestre anterior/Faculdade Juninho/Estrutura de Dados/Estrutura de Dados/Nova pasta/lista 1 ex4.cpp | 06dd779201435ae850b1e6b3ad74f238f286eb39 | [] | no_license | Euclides-R/Studies-Faculdade | 5efaa6c238b7d1be000c6733ef912606fcd09dff | e2d5301e760e34abfd39d23756f8078a0a9d9249 | refs/heads/main | 2023-05-04T11:35:54.997157 | 2021-05-28T00:37:15 | 2021-05-28T00:37:15 | 246,105,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | lista 1 ex4.cpp | // Autor: Bruno Nunes Serrano
// Cel: +55 41 99681 6778
#include <iostream>
#include <tchar.h>
using namespace std;
double soma=0;
double somarElementosPares(double vet[], int n){
int conv;
for(int i=0;i<n;i++){
conv=(int)vet[i];
if (conv%2==0){
soma=soma+vet[i];
}
}
return soma;
}
int main (int ... |
5fa243479476ffb2f90399652b2395d13ffa97ad | 54001b746c70dff858b0b6310ab65958d0b2f7f1 | /Engine/Code/Engine/Net/UDP/Data/NetSessionStateMachine/NetSessionStateMachineEnd.hpp | fd8b2387c20ac981f0c93510caebca04a8791494 | [] | no_license | atbaird/ProceduralSystemsForNonCombatRPG | 024bccb62d997f430d8c5283d837cddfb386ff95 | 70ae98a38f89e74339b46422ff6ab02a9a584f9b | refs/heads/master | 2021-01-20T13:27:36.642071 | 2017-05-06T23:20:03 | 2017-05-06T23:20:03 | 90,496,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | hpp | NetSessionStateMachineEnd.hpp | #pragma once
#ifndef NETSESSIONSTATEMACHINEEND_HPP
#define NETSESSIONSTATEMACHINEEND_HPP
class NetSession;
class NetSessionStateMachineEnd
{
public:
//State Machine end functions
static void InvalidStateEnd(NetSession* session);
static void SetupStateEnd(NetSession* session);
static void DisconnectedStateEnd(Ne... |
1faa889dbd681bb246927f8aa31fa05f15c93c41 | 13bfcfd7492f3f4ee184aeafd0153a098e0e2fa5 | /Kattis/keytocrypto.cpp | 9769ea957d8cc8276bed86ef0823bdbdc97603fc | [] | no_license | jqk6/CodeArchive | fc59eb3bdf60f6c7861b82d012d298f2854d7f8e | aca7db126e6e6f24d0bbe667ae9ea2c926ac4a5f | refs/heads/master | 2023-05-05T09:09:54.032436 | 2021-05-20T07:10:02 | 2021-05-20T07:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | keytocrypto.cpp | #include<iostream>
using namespace std;
#define OW0 ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
int main(){OW0
string e, k;
cin>>e>>k;
int s = k.size();
for(int i = 0; i < e.size(); i++){
k.push_back((e[i]-k[i]+26)%26 + 'A');
}
k.erase(0, s);
cout<<k;
return 0;
} |
1f57b4e60bdd648121b6b9e30ba6af88e35b9188 | f7b876a11cc15cec6a5b377df3e915aaf5bcc289 | /8_Array/ReverseArrayInplace.cpp | f3a8971bb3373c896221bd7c78cb89afbe1d17be | [] | no_license | AniRobotics/CPP-Fundamental-Problems | 01a25962f998689364a52ed2c04f544a75ec2d7d | 9f0c2641a54022a4acee8f21cad22db261c4aeff | refs/heads/master | 2021-04-22T02:00:15.944414 | 2020-09-15T16:42:31 | 2020-09-15T16:42:31 | 249,841,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | cpp | ReverseArrayInplace.cpp | #include <iostream>
using namespace std;
int main(int argc, char** argv){
int start_ind = 1, end_ind = 3;
int arr[] = {1,2,3,4,5,6};
int temp;
while (start_ind < end_ind) {
temp = arr[start_ind];
arr[start_ind] = arr[end_ind];
arr[end_ind] = temp;
start_ind++;
end_ind--;
}
// Pr... |
7fafb730eb50ee27966a4298da459a2c03bb6fc9 | 36ecbb92e2d5c6d9f4fd504d0d199d1d4e46f5c7 | /src/randomRenders.cpp | fb3a7dece8571520a71abf1d3a4823726cfc54ea | [] | no_license | ahota/pbnj_apps | b287c70a6ac9e71bece89bacfc21af39c479f234 | a0c4247e5431e9c5b1ee31952e4aa950b71e1405 | refs/heads/master | 2020-03-29T09:45:12.788223 | 2018-09-21T14:08:31 | 2018-09-21T14:08:31 | 149,772,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,443 | cpp | randomRenders.cpp | #include <pbnj.h>
#include <Camera.h>
#include <Configuration.h>
#include <Particles.h>
#include <Renderer.h>
#include <Streamlines.h>
#include <TimeSeries.h>
#include <TransferFunction.h>
#include <Volume.h>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <random>
#include <string>
#include <vector>... |
ed70fe4464911300ce1458a3d0c86ec1c1f0a1f0 | 285c6f7328fe80e60feff6326b8a31e0d0dd7cc7 | /TextBasedAdventure/ProcessInput.cpp | 346183ad6d8fa1d29909a8c03ef894267e38ff10 | [] | no_license | james-a-henderson/TextBasedAdventure | 1fa22b12d0b4161ede9428a94958ccfcb8284322 | 2ea118db4f05ddbc3e140b06eeac5d4784f1e5bb | refs/heads/master | 2021-05-28T08:54:55.338811 | 2015-02-14T04:57:07 | 2015-02-14T04:57:07 | 27,137,281 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,141 | cpp | ProcessInput.cpp | #include "GameState.h"
#include "Item.h"
#include "Room.h"
#include <string>
#include <iostream>
#include <boost/range/algorithm/count.hpp>
#include <boost/algorithm/string.hpp>
#include <vector>
using namespace std;
bool verifyCommand(string command, vector<string> * inputVec);
bool verifyCommand(string command, v... |
4164769518c4551a708683f927e60e90f9c10fd7 | 5545be3e081642326dac86010d5b12ea42b7f662 | /pa2/Decryption.cpp | e47e803f4bc7d8dc6abd91832ea052f9b60423f2 | [] | no_license | JingyuZhaooo/Professional-C-plus-plus | 7bc8a304a20d8452f21962412c7ae3bbb92b9819 | eb856356041e1ae4955113ef3349f4e362d019f0 | refs/heads/master | 2021-04-29T19:26:02.075999 | 2017-01-06T11:15:36 | 2017-01-06T11:15:36 | 78,199,567 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,507 | cpp | Decryption.cpp | #include "Decryption.h"
#include <fstream>
#include <iostream>
#include <tbb/parallel_invoke.h>
#include "Sha1.h"
#include <string>
#include "Timer.h"
#include <ctype.h>
Decryption::Decryption()
{
}
Decryption::~Decryption()
{
for (auto iter : mSolved)
{
delete iter.second;
}
}
void Decryption::Decrypt(Diction... |
dd46aec030c359e25eaf6b47527123945e654d91 | a61ee3ce335c9747da70b5cfec2ac48510243722 | /MADVPano/exiv2/source/webpimage.cpp | 13bac54607c31ad7c00456d72c44595f6bcd962a | [] | no_license | MADV360/ImmoviewerMadventureDemo_iOS | 3b06cfeae8b1868e2fdebfe31c8f681b006a61e4 | c2f2651e34f6ec099e298cb4ca2d0dde7cac9925 | refs/heads/master | 2021-05-09T22:22:23.348207 | 2019-04-10T09:59:47 | 2019-04-10T09:59:47 | 118,747,968 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 31,821 | cpp | webpimage.cpp | // ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2018 Exiv2 authors
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publish... |
6dd67f1d405d23b542fab2710c3be16c7f162044 | 1cc1f24482e668788e61193265ab35a025fb2c80 | /DungeonCrawler/DungeonCrawler/Enemy.cpp | 6107a33fbe0c8a534e1de329483928466b64dacb | [] | no_license | leonvantuyl/ALG2_L-E | faea7ef248eb34747a41f80e991e5bce1f5ce2a3 | 55491bb2cc3f1ca243f255b802b426b73869de67 | refs/heads/master | 2021-01-20T20:18:23.418300 | 2016-06-06T11:39:52 | 2016-06-06T11:39:52 | 60,081,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | Enemy.cpp | #include "stdafx.h"
#include "Enemy.h"
#include <iostream>
#include "RandomGenerator.h"
using namespace std;
Enemy::Enemy(int lvl) : EnemyBase()
{
level = lvl;
RandomGenerator rg;
name = EnemyName[rg.getRandom(0,5)];
state = EnemyState[rg.getRandom(0, 5)];
health = rg.getRandom(10, 20) * (lvl +1);
alive = true... |
fc2ee2bb621bbcffb26948dd1c8c4b7feba0e8a7 | 6f00050c211cf0ed234a3a5684b0dcb9440ecee6 | /src/common/rgbCurve.cpp | d323b95a792d5af592b4ca5b2bc82e4d363bf71f | [] | no_license | tuttleofx/ofxHDR | c68581b814366c58377f6c5c66cec3cf166968b0 | c15a132f2e8acddb74413103e5fd18b5c52b33c2 | refs/heads/master | 2020-04-17T22:34:30.581117 | 2016-09-15T19:29:32 | 2016-09-15T19:29:32 | 67,035,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,572 | cpp | rgbCurve.cpp | #include "rgbCurve.hpp"
#include <algorithm>
#include <functional>
#include <fstream>
#include <iostream>
#include <sstream>
namespace cameraColorCalibration {
namespace common {
rgbCurve::rgbCurve(std::size_t size)
{
for(auto &curve : _data)
{
curve.resize(size);
}
setZero();
}
rgbCurve::rgbCurve(c... |
ffe53e51b3b7665904042a77c1321f3a1c02198d | b4ba3bc2725c8ff84cd80803c8b53afbe5e95e07 | /Medusa/Medusa/Geometry/GeometryFactory.cpp | 9aef6c0981314c4c6dd8e4ecb2e20060bf6b839c | [
"MIT"
] | permissive | xueliuxing28/Medusa | c4be1ed32c2914ff58bf02593f41cf16e42cc293 | 15b0a59d7ecc5ba839d66461f62d10d6dbafef7b | refs/heads/master | 2021-06-06T08:27:41.655517 | 2016-10-08T09:49:54 | 2016-10-08T09:49:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,031 | cpp | GeometryFactory.cpp | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaPreCompiled.h"
#include "Geometry/GeometryFactory.h"
#include "Geometry/Rect2.h"
#include "Core/String/StringParser.h"
#include "Geometry/Color4.h"
M... |
d749186be4dde8a499e541b03393c61554d1f244 | 792ad26fd812df30bf9a4cc286cca43b87986685 | /数据结构/HDU 1754 I Hate It 线段树.cpp | efb2dcfb43f43dea831e31dd83d8fc7e9f21410d | [] | no_license | Clqsin45/acmrec | 39fbf6e02bb0c1414c05ad7c79bdfbc95dc26bf6 | 745b341f2e73d6b1dcf305ef466a3ed3df2e65cc | refs/heads/master | 2020-06-18T23:44:21.083754 | 2016-11-28T05:10:44 | 2016-11-28T05:10:44 | 74,934,363 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,437 | cpp | HDU 1754 I Hate It 线段树.cpp | #include <stdio.h>
#define lson l, m, rt << 1
#define rson m + 1, r, rt << 1 | 1
#define MAX 200005
int f[MAX << 2];
int max(int x, int y)
{
return x > y ? x : y;
}
void pushup(int x)
{
f[x] = max(f[x << 1], f[x<<1|1]);
}
int require(int L, int R, int l, int r, int rt)
{
if(L <= l && R >= ... |
a472144a9bf7d8d5e8f1c90f11b643daef84db6e | 8f76cb5e386fa68f29489d479286d5ac7fac8c59 | /src/server/plugins/htaccess/main.cpp | 68d941f2539de2ef9327701e33aebbc690220501 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | isabella232/Heliod-Web-Server | ce672d264e705b0d2128ddd7846434804db24905 | 6fc8b2f0ed8e76979140fae7912b44cd03ca4289 | refs/heads/master | 2022-02-13T21:55:02.995051 | 2016-05-23T12:38:23 | 2016-05-23T12:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,965 | cpp | main.cpp | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
affa816b905ef1a9f742e72466e040adebad2864 | 0cc78c181eb031ee6c0182184ca29caae6d1c60c | /code/chapter1/1-5.cpp | 6910d035e160f3b7748d3942687ee632fc2bc61e | [] | no_license | Lunabot87/Study_Cpp | 6e5d06bff7eebf811d94eb6fa2afad38ce01babf | 909ede895a3e8a056489a0a995a0cefb0626f67b | refs/heads/master | 2020-04-13T22:43:13.742656 | 2019-06-25T07:42:33 | 2019-06-25T07:42:33 | 163,486,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | 1-5.cpp | #include <iostream>
using namespace std;
int multiplyTwoNumbers(int num_a, int num_b){
//int sum = num_a + num_b;
int sum = num_a * num_b;
return sum;
}
void printHelloWorld(){
cout << "Hello world!" << endl;
return;
cout << "Hello world!2" << endl;
}
int addTwoNumbers(int num_a, int num_b){
return num_a +... |
bf97ffb63580ad92bfc5e51991445b96615b7a3f | 8f469e3a353f1960276c21836f954d813bdec567 | /twoPassAssembler/symtab.cpp | 658a6a29ac5c361ddfd1cc4283f92a05388f371b | [] | no_license | wndzlf/twopassAssembler | 8a327a15b6e50c37e1f447c4a9c98d888c0696ef | 7da3a3fbc0dd32b7242ec3940269ace734ff5946 | refs/heads/master | 2020-04-06T18:47:47.146054 | 2018-11-15T13:10:11 | 2018-11-15T13:10:11 | 157,713,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,058 | cpp | symtab.cpp | //
// symtab.cpp
// twoPassAssembler
//
// Created by admin on 12/11/2018.
// Copyright © 2018 wndzlf. All rights reserved.
//
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <iomanip>
using namespace std;
class symtab{
private:
fstream symboltab;
string label;
... |
10d61b367aa3cf4de08563dbd9d0abf9f0239e3c | 70238f403826253b36323e0c4700795788c61187 | /thirdparty/iPlug2/WDL/mutex.h | a83c24f476f7e2d0b3deb9d0072ce1ef51dd30b8 | [
"MIT",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tommitytom/RetroPlug | d4d1c9d671cec7373bf3e27030bc0d29b46191be | 40c6f01352d50cb31b1d4f31b7cc17fd2cf47ce8 | refs/heads/main | 2023-06-30T00:28:58.282288 | 2022-11-01T02:03:57 | 2022-11-01T02:03:57 | 185,368,230 | 262 | 11 | MIT | 2021-08-15T04:15:59 | 2019-05-07T09:23:48 | C++ | UTF-8 | C++ | false | false | 5,759 | h | mutex.h | /*
WDL - mutex.h
Copyright (C) 2005 and later, Cockos Incorporated
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this soft... |
79916e455f57e3a314ad76601e4c097dff6e9692 | bcf5350f45204576b1670b9276623c47f818c66e | /C/HarvardHacker3/Find/main.cpp | 96e01694c440504d80d68ba2591310cf37b997a7 | [] | no_license | ezet/HIG | c7b445b2eed72c6af12005e0db5bec22abd94a01 | 7204355e84a413f2fcb4361522050ead2e677064 | refs/heads/master | 2021-01-22T08:30:00.935259 | 2017-05-27T20:28:33 | 2017-05-27T20:28:33 | 92,620,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,772 | cpp | main.cpp | #include <iostream>
const int K = 50;
bool RecurSearch(int value, int arr[], int n) {
int mid = (n - 1) / 2;
if (n == 0) {
return false;
} else if (arr[mid] < value) {
return RecurSearch(value, arr+mid+1, n/2);
} else if (arr[mid] > value) {
return RecurSearch(value, arr, n/2);
} else {
retu... |
17948443ac432fc06cc156a435178ed613817ce1 | 42a91b4556a6d7b9d533dab692a104ff0b0c978a | /PathSearch/Intermediate/Build/Win64/UE4Editor/Inc/PathSearch/AStar.generated.h | 25676aa413de997c41a28db8b5efac2b160a6d28 | [] | no_license | juanpablohdzm/AI_Algorithms | 12e315b5bd3122b99fa7fcb07b9d085362dd9562 | 2322cd92d7a53814fb5201f6ec06a46ecfaefcb5 | refs/heads/master | 2020-04-18T21:19:32.349797 | 2019-04-16T15:17:53 | 2019-04-16T15:17:53 | 167,762,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,676 | h | AStar.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!
==============================================================... |
027ddd47d4fa4b933375fdd976d78f7982af6f21 | 15f30dda8e3a3773d317ac5ffc0419179323dd08 | /test_linked_list.cpp | bb0efc25fdf0e05915e66599ed47d1efb17dff74 | [] | no_license | yiping/playground | c6e051a1cc951198f654951dbbdd87a801cc6711 | 07854bfd32f20f9fc47eb3b1fb5d650a96fda007 | refs/heads/master | 2020-05-31T00:12:48.090411 | 2018-01-20T22:01:39 | 2018-01-20T22:01:39 | 33,869,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,736 | cpp | test_linked_list.cpp | #include <iostream>
using namespace std;
class Node
{
public:
int Data;
Node* Next;
};
class LinkedList
{
private:
Node* Head;
Node* Tail;
public:
LinkedList()
{
Head = NULL;
Tail = NULL;
}
void ... |
328c8ebfdd3b17a2e7d6767c9194575099e6d29c | 32c7c726603e83306fb07868271f306685235f80 | /rosbag2_performance/rosbag2_performance_benchmarking/include/rosbag2_performance_benchmarking/byte_producer.hpp | 99ba2cf880c03a61ddd9f34f65398df00d52f921 | [
"Apache-2.0"
] | permissive | ros2/rosbag2 | 27dd1e412378079eee36046f536cbae422b13b17 | 98708682c0808137738fd7edb9e184d95d44a6e2 | refs/heads/rolling | 2023-08-17T19:07:03.100244 | 2023-08-09T20:55:52 | 2023-08-09T20:55:52 | 127,306,752 | 212 | 220 | Apache-2.0 | 2023-09-14T17:51:22 | 2018-03-29T14:54:57 | C++ | UTF-8 | C++ | false | false | 2,687 | hpp | byte_producer.hpp | // Copyright 2020, Robotec.ai sp. z o.o.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
a06be9ebf8ec9ea20ea4d794ab463c170ee6e145 | f572dff0c0f45105c386074840e038097e0da0c1 | /Algo_F1.cpp | e516ea6f9823dc8fbe640aee89275db66133b364 | [] | no_license | SehoonKwon/MultiCamp | 1540d1ab0d8426f375f238209a8f145a7bbdcd2e | a0b77efa16c3c7c01cddd213e237e3e5f9f65d92 | refs/heads/master | 2022-12-11T22:22:49.844609 | 2020-09-08T11:47:19 | 2020-09-08T11:47:19 | 293,792,867 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | cpp | Algo_F1.cpp | //#include <iostream>
//using namespace std;
//
//int N;
//int cnt = 0;
//
//void solve()
//{
// while (N > 0)
// {
// if (N >= 500)
// {
// N -= 500;
// cnt++;
// }
// else if (N >= 100)
// {
// N -= 100;
// cnt++;
// }
// else if (N >= 50)
// {
// N -= 50;
// cnt++;
// }
... |
4de9d53f46b883bb8d8b0eb5771b2ef5669d67cf | 51fd1616ffa6a0ab8231a165715fa43c22f5d967 | /src/utils/dynlibs_unix.cpp | e7f745a700fc1d65add34105fd9061d3c062a1a8 | [
"MIT"
] | permissive | Samsung/netcoredbg | 156e9a32cf7b648ee15746cfe740e8896fecbcc1 | bac8ea845dc5484218b88ecf015abf81e6ef95d2 | refs/heads/master | 2023-08-31T08:59:35.933783 | 2023-07-07T09:56:30 | 2023-07-07T09:56:30 | 113,926,796 | 605 | 90 | MIT | 2023-08-30T08:24:43 | 2017-12-12T01:15:07 | C# | UTF-8 | C++ | false | false | 1,400 | cpp | dynlibs_unix.cpp | // Copyright (C) 2020 Samsung Electronics Co., Ltd.
// See the LICENSE file in the project root for more information.
/// \file dynlibsi_unix.h This file contains unix-specific function definitions
/// required to work with dynamically loading libraries.
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH... |
d60e514f345aba420ce08ac0ea0b3c14c5886dc5 | 2af9ee33cf5d7e64a229ef439a534e527af3cb7c | /System/Builder/MOG/src/MOGBuilder.h | 36aa82a5aec822f337aade7301056ccd30ab4f93 | [] | no_license | jorgesep/BGS | c117a77f25b045db1d5d7ad61bc4f19455d8920f | 2082e72994e90d91d01928eaf649e1437dca8de0 | refs/heads/master | 2020-12-22T14:50:31.916976 | 2018-06-25T14:51:29 | 2018-06-25T14:51:29 | 10,537,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,381 | h | MOGBuilder.h | /*******************************************************************************
* This file is part of libraries to evaluate performance of Background
* Subtraction algorithms.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... |
734ce4349c58aa507cb2ed8efe58d57c3d657b7c | 50145f5197c9f6ac80b6674b7e390b105693ac29 | /qtdebugging.h | b4c4d913ff3fdacbdcaad7d6a5ee2f74d83a8eb6 | [] | no_license | cmguo/QtDebugging | 7bddf41cbaa3f5a32613cd4b989fe80382a3f36e | 35ce0f164b0305137a47bffcde4b9a2b5ce6690e | refs/heads/main | 2023-01-07T17:44:43.176607 | 2020-11-08T13:19:11 | 2020-11-08T13:19:11 | 311,067,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | h | qtdebugging.h | #ifndef QTDEBUGGING_H
#define QTDEBUGGING_H
#include "QtDebugging_global.h"
class QTDEBUGGING_EXPORT QtDebugging
{
public:
QtDebugging();
};
#endif // QTDEBUGGING_H
|
eb4c29ca81e5011e40d9da5565a3e890f30bb798 | 834abdb88e0626973a4df7bc082c164ae30b923a | /06_PrintListInReversedOrder/06_PrintListInReversedOrder/main_LittleRed.cpp | 70df618e78aa3ffb58435d1b9a56adec394e441d | [] | no_license | YaoEmily/InterviewCoding | ef2f93d92b864ef56359e83f96049e1d5dd7e569 | 8cca4d22b49d108e158653b6a2739ac57ce4e9eb | refs/heads/master | 2021-04-06T11:51:37.220936 | 2018-06-15T00:31:22 | 2018-06-15T00:31:22 | 124,400,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | cpp | main_LittleRed.cpp | #include <iostream>
using namespace std;
struct ListNode{
int m_nValue;
ListNode* m_pNext;
};
void AddToTail(ListNode* pHead, int value){
ListNode* pNew = new ListNode();
pNew->m_nValue = value;
pNew->m_pNext = nullptr;
if (pHead->m_pNext == nullptr){
//pHead = pNew;
pHead->m_pNext = pNew;
}
else{
List... |
7c00f314b0f909683ef7008c2d2422e1ae95db02 | b87030d81938d0a7060c0237e98af2319aad0917 | /0.9/code/src/main.cpp | c11fbfd48d73cd811a025a87ed7d98c5eedf3554 | [] | no_license | Erk-Vural/Arduino-Car-Wash | 969b44164202776e8464d4e2215dfc9d9cd1de99 | 6834726d21b942569a1b7ba286207a53c36e9e38 | refs/heads/main | 2023-08-04T21:09:28.771162 | 2021-09-10T11:13:36 | 2021-09-10T11:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,029 | cpp | main.cpp | #include <Arduino.h>
#include <time.h>
#include <EEPROM.h>
int greenLed = 2;
int redLed = 3;
int fives = 0;
int tens = 0;
int twenties = 0;
int fifties = 0;
int hundreds = 0;
int registerAm = 0;
int amount = 0;
int five = 0, ten = 0, twenty = 0, fifty = 0, hundred = 0;
int customerAcc = 0;
int... |
86ba6d310808a6fa3b330ee092dc79fdb6a92f93 | 783c6fa86d4c35f49ddeec7f326eb48c76e014bb | /Account.cpp | 0994f1dfd0c9c42f7a87fe0ed2d1eeb831b62d7f | [] | no_license | MoezGholami/hjamg_utosca3 | 7572f408c7a35ebcd404f1e830b9d22327976be9 | 6199ebf2984cc43684d7638c336303a0ee23cf14 | refs/heads/master | 2020-04-17T09:23:58.209916 | 2014-05-03T15:19:36 | 2014-05-03T15:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,853 | cpp | Account.cpp | #include "Account.h"
#include "Nosy.h"
#include "Benefector.h"
#include <sstream>
#include <string>
Account::Account(const string &name, const string &phoneNumber, int id, pthread_t rt, pthread_mutex_t rm)
{
Name=name;
PhoneNumber=phoneNumber;
ID=id;
pthread_mutex_init(&runningMutex, 0);
pthread_mutex_init(&bens... |
da7e46491beecfbdd34bd10f4edd5d85f0371289 | 7eb24c0930960c0d907da0dcaaafd6557d494a65 | /include/ExplorationIGDVPN2optB.h | bd74c4629968f664df6296c66b493f6b8aa3ca93 | [] | no_license | wadatti/QAPSolver | b169a117dda5715c47bfd30d2e36665d22db9a3a | 69f857e92a85b8e3bd17452309d81aebf62b82f7 | refs/heads/master | 2021-01-13T20:15:30.570651 | 2020-03-04T11:08:10 | 2020-03-04T11:08:10 | 242,479,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 838 | h | ExplorationIGDVPN2optB.h | /*******************************************************************************
* ExplorationIGDVPN2optB
*
* ランダム選択・完全再生型(k-opt局所探索)
*******************************************************************************/
#ifndef EXPLORATIONIGDVPN2OPTB_H
#define EXPLORATIONIGDVPN2OPTB_H
#include "ExplorationBase.h"
class... |
02b5e1313fc2289ddb9aaa243d938d2f847ec57a | c475e087a0471e1a983e4cb55b50a021f359b42b | /cellular_potts_adhesive_hamiltonian.cpp | 94d3b38389478af382a1e3b698ddbddc0ac9958e | [] | no_license | kmatsu3/Cellular_Potts | a64df38950cc037f34c95151ebc0eb17177888b4 | e7c6ea55c23e090b1859b3f6224267bfae79e551 | refs/heads/master | 2021-06-24T12:29:39.980384 | 2021-01-08T03:32:13 | 2021-01-08T03:32:13 | 194,646,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,249 | cpp | cellular_potts_adhesive_hamiltonian.cpp | #include "cellular_potts_hamiltonian.hpp"
#include "cellular_potts_state.hpp"
//
double local_state_class::get_local_adhesion_energy(
const adhesion_system_class & adhesion_system
)
{
double return_value=0.0;
double work_density=0.0;
double work_density_neighbor=0.0;
double work_polarity_val... |
9b0e669b2b094d8834c5857733179ff468be2971 | d2fc7fb55ce6acc1f274efc51789dc1dc06c3eb2 | /idea/Jojo/src/gohelper.cpp | 062e3ec27e9de50cd9da787751d35cb270f9e6db | [] | no_license | Strongc/isu | 31dc6b7049e009bc753d000307936141787942d1 | d40f16c3841552b00329b16a61f5c9893ea6c4eb | refs/heads/master | 2021-01-15T18:14:32.458687 | 2014-11-03T14:22:02 | 2014-11-03T14:22:02 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,963 | cpp | gohelper.cpp |
#include <go/gohelper.h>
#include <go/runtime_mgr.h>
#include <go/runtime_tool.h>
#include <go/runtime_mgr.h>
#include <boost/thread/tss.hpp>
#include <go/detail/tools/mgrgeter.h>
//File:gohelper.cpp
// (C) Copyright 2013 四元飒
// Use, modification and distribution is subject to the Isu source code
// License, Version ... |
04dcc08116ed7a1d2a022433c3cc3e7f9fc37423 | 0b69a011c9ffee099841c140be95ed93c704fb07 | /problemsets/UVA/UVA344.cpp | b460aaaa981c1e4ca68d40c79277771d3a473f01 | [
"Apache-2.0"
] | permissive | juarezpaulino/coderemite | 4bd03f4f2780eb6013f07c396ba16aa7dbbceea8 | a4649d3f3a89d234457032d14a6646b3af339ac1 | refs/heads/main | 2023-01-31T11:35:19.779668 | 2020-12-18T01:33:46 | 2020-12-18T01:33:46 | 320,931,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,440 | cpp | UVA344.cpp | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <map>
using namespace std;
string fill(char c, int n) {
string s; while(n--) s += c; return s;
}
string toRoman(int n) {
if(n < 4) return ... |
892743971f4734f586cbc0f43e90644c2385182d | 76d188c8bac65167ae7880a0975afa6bc0906f54 | /include/afml/util/common.hpp | a9d71233c2b451c98c3b20fe2bbf1630b3f6baa4 | [] | no_license | pavanky/arrayfire-ml | 4b8dedfd68bfb8fc700386d0dd25f330f27e0446 | 815a6679dae5df23223214e8e07b3eb6e6e08cf7 | refs/heads/master | 2020-04-05T13:39:39.531586 | 2015-08-19T21:43:16 | 2015-08-19T21:43:16 | 39,900,572 | 0 | 0 | null | 2015-07-29T15:18:05 | 2015-07-29T15:18:05 | C++ | UTF-8 | C++ | false | false | 530 | hpp | common.hpp | /*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... |
879501e48aa8d72147e313b53c39195f7881b824 | 45e3db0198fec82c24c6b95a58c3553c5fe67f9c | /leetcode/problem141_160/min_stack_155/minStack_slow.cpp | 93afed476bc5ebbf6b1bff53294762602b9f39cb | [] | no_license | yezhang4528/cpp_exercise | 6f4506cb0d7d7b79f111b321a1b5467fc1124f92 | 5d59a1fcaf47e979eacfb521c3874c229231ab1f | refs/heads/master | 2020-04-07T01:45:25.748926 | 2020-04-03T22:04:00 | 2020-04-03T22:04:00 | 157,951,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,771 | cpp | minStack_slow.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<exception>
using namespace std;
struct StackNode
{
int val;
StackNode *next;
StackNode(int x) : val(x), next(NULL) {}
};
class MinStack {
private:
StackNode *topNode;
vector<int> sortedList;
void removeFromSortedList(int val) {
... |
9480e8867cdc5c889fbd5f5fc01aa8d4913dc78d | 5880a8168b8001a1f39f8be102d1aad6e3e76d53 | /03Mesh/src/view/imgui.h | 27de532f4998f5c01db76abb5eb720c39de34b5d | [] | no_license | xinguo2015/GlutTutorial | 7e09ff30e5a7156b71b6f6e7a6d8196e9bf1e36d | f570b49baf75b14acf00ce7c1533ec51ca8862d0 | refs/heads/master | 2021-01-22T23:10:42.887190 | 2018-09-03T14:29:15 | 2018-09-03T14:29:15 | 92,803,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,736 | h | imgui.h | #ifndef ________i_m_g_u_i_____h_____________________
#define ________i_m_g_u_i_____h_____________________
#include <stdlib.h>
#include <stdio.h>
//===========================================================================
//
// Generate a *fake* unique ID for gui controls at compiling/run time
//
// [L:16-1][N:... |
64102e62d962ba230bae25d0ca9288c9a0d1c303 | 0bb5a59aa280e77df2770d8c6c85aa1f69ecbdc2 | /CastleWar/CastleWar/Posicao.cpp | ec34558fd69c0c21340c400e75790b3eb3ba3b6b | [
"Apache-2.0"
] | permissive | dyaremyshyn/POO_Colonia | 6b1ab2942c61b47e67485507337924a594c9073c | dab332f4acbdff95c7bba9d0339563f45f35cf6c | refs/heads/master | 2020-06-11T14:52:22.726458 | 2017-01-30T16:19:50 | 2017-01-30T16:19:50 | 75,645,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | Posicao.cpp | #include "Posicao.h"
Edificio* Posicao::getEdifico()
{
return e;
}
void Posicao::setEdificio(Edificio * e)
{
this->e = e;
}
Ser* Posicao::getSer()
{
return s;;
}
void Posicao::setSer(Ser * s)
{
this->s = s;
}
//char Posicao::getColonia()
//{
// return c->getNome();
//}
//void Posicao::setColonia(Colonia * c)
... |
1bed65962e07cf214f1442997d59e6bc7eba1590 | ea38d3b832a578614b2bd2fa5854ca3c689a9f46 | /src/main.cpp | 086cf9b65b54985dd21a93e775346cd601a1d041 | [
"MIT"
] | permissive | kmikolaj/explayer | a8be1910d5d3f9384772d2606ac620130c556e6e | 1b521ef80c5108ff10a9e910d6163a9940de5599 | refs/heads/master | 2021-01-20T10:56:35.675005 | 2019-11-16T14:25:18 | 2019-11-16T14:25:18 | 18,986,657 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 326 | cpp | main.cpp | #include "ui/mainwindow.h"
#include <QApplication>
#include <iostream>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// create main window
MainWindow w;
w.show();
std::cout << qPrintable(MainWindow::GetVersionInfo()) << std::endl;
if (argc > 1)
{
w.startPlaying(argv[1]);
}
return a.exec... |
a749302ec17d2041ada0eb04950191abf42ca95e | bed217b9beaeaa52a38ccc82179ab05b2a5e33a0 | /lib/bt_socket.cpp | 1c38ca1bcceb7c2f7fd378f8a1ef04526d831b01 | [
"Apache-2.0"
] | permissive | comarius/bunget | 734c6bafdba82522fd327eb60d20d84a30bfd2fa | 22f7fd70bb6b5d1e5c7ad290ff3790e8c0f53c94 | refs/heads/master | 2020-12-24T08:01:43.259746 | 2020-08-28T17:07:20 | 2020-08-28T17:07:20 | 71,477,231 | 26 | 15 | NOASSERTION | 2018-10-15T17:53:21 | 2016-10-20T15:30:51 | C++ | UTF-8 | C++ | false | false | 1,507 | cpp | bt_socket.cpp | /**
Copyright: zirexix 2016
This program is distributed
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The library or code from is restricted to be used in commercial products
without bunget.cert file. Please obtain a custom cert... |
f4da5c757d7dd212ecfb406c20fe01004f6d0b55 | 61e7696056ed6fee7dfbbdaa86e04aa9ed48a137 | /voronoi_area_estimator.h | a464c94ffac4d4d6fbff66819dd1c64102cf041a | [] | no_license | xingyu-wang/LPFluidCode | aab04e9376859a5c07676a855e84671f761cee1e | b69efba81ca0f647c8518e1c3b96953b17a629d8 | refs/heads/master | 2021-07-24T05:57:24.796111 | 2017-11-02T17:53:14 | 2017-11-02T17:53:14 | 108,578,815 | 1 | 0 | null | 2017-10-27T18:06:48 | 2017-10-27T18:06:48 | null | UTF-8 | C++ | false | false | 1,407 | h | voronoi_area_estimator.h | #ifndef __VORONOI_AREA_ESTIMATOR__
#define __VORONOI_AREA_ESTIMATOR__
#include "libqhullcpp/RboxPoints.h"
#include "libqhullcpp/QhullError.h"
#include "libqhullcpp/QhullQh.h"
#include "libqhullcpp/QhullFacet.h"
#include "libqhullcpp/QhullFacetList.h"
#include "libqhullcpp/QhullLinkedList.h"
#include "libqhullcpp/Qhull... |
c569ee9d1aa2668bd48e82a518e8f7c9a6f075d1 | 248ad1e409c75bcf277633444979221ecf0b2ad4 | /src/Core/Query/TranslationVisitor.cpp | 78e8688d4a41c4749c986b388ad7cb87caed1a03 | [] | no_license | TAPAAL/verifydtapn | abb6eda4e4ba2303fa36becc9a0e1415dcd9f87b | 32515f04c1ce33d89771159b5200582e85a6cbcb | refs/heads/main | 2023-05-26T19:41:28.137695 | 2023-05-11T20:30:59 | 2023-05-11T20:30:59 | 310,008,166 | 3 | 4 | null | 2023-02-01T11:48:21 | 2020-11-04T13:18:03 | C++ | UTF-8 | C++ | false | false | 9,355 | cpp | TranslationVisitor.cpp |
#include "Core/Query/TranslationVisitor.h"
#include "Core/TAPN/TAPN.hpp"
namespace VerifyTAPN {
namespace AST {
void TranslationVisitor::check_first(bool is_quant) {
if (!_first_element && is_quant) {
std::cerr << "Quantifiers only allowed as topmost element" << std::endl;
... |
957c821e5a1682103a69bbc83af5a1a47d866bbc | 10339a5ad20958f6ddd347f7adafdc0203bfd147 | /.svn/text-base/SitRun.h.svn-base | 0ee307438f0abfb90e726e0e0e3554c61be2d0d2 | [] | no_license | hyperchi/Cpp | 536132ad8e4b1f5126db5f4727488cc062ff2acd | ddfbd9b2be71aa92ea22c62838442f0ea8166a53 | refs/heads/master | 2020-05-31T15:09:57.173302 | 2014-12-03T16:41:20 | 2014-12-03T16:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | SitRun.h.svn-base | #ifndef __SITRUN_H__
#define __SITRUN_H__
#include "WorldModel.h"
#include "AgentInfo.h"
#include "SitUnitSquare.h"
#include "ConfFileRead.h"
#include "Logger.h"
class SitRun
{
public:
SitRun( WorldModel *wm, FieldSquare *square, AgentInfo *agentInfo );
~SitRun();
private:
WorldModel *mWorldModel;... | |
a5a7a0ef0092f5f166dafc1dfcf0ef01e472ac7b | 12859d9f634a6d6e67a346aa95135b94ec2b000d | /Sail/src/Sail/api/Mesh.cpp | 84a3666ead71c500ba83f744dc017814abc1e8ec | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Piratkopia13/Sail | ba2add46a5332f3aa1d19f54f053be9bf9e909c6 | c428024967cd7aa75e45d5fe9418a1d565881279 | refs/heads/master | 2021-05-25T11:01:39.408492 | 2020-10-10T19:39:34 | 2020-10-10T19:39:34 | 127,143,207 | 10 | 5 | MIT | 2020-10-14T15:04:23 | 2018-03-28T13:18:42 | C++ | UTF-8 | C++ | false | false | 3,271 | cpp | Mesh.cpp | #include "pch.h"
#include "Mesh.h"
#include "VertexBuffer.h"
#include "IndexBuffer.h"
#include "Sail/Application.h"
#include "Sail/api/shader/PipelineStateObject.h"
#include "Sail/api/shader/Shader.h"
Mesh::Mesh(Data& buildData)
: meshData(buildData)
{ }
Mesh::~Mesh() {
Memory::SafeDeleteArr(meshData.indices);
M... |
7ba84c4722e5abf8b87f2c04bbf6f858c86f48ca | 1fe9d08e20ad45de86a60e3fd5e044f779539808 | /VectorsAndIOmanip/Gas_vehicle.cpp | 97396facf4f1e4d5a08f14f0b950b103d8c4f494 | [] | no_license | bailey-brown/Object-Oriented-Programming-CPP | 12e0328a2ba6ff0834467bd2da750cde8d76bbda | ac01bc82a17c8d5af85169c8cfe388dee820cefc | refs/heads/master | 2020-12-05T17:54:42.603793 | 2020-01-06T23:46:25 | 2020-01-06T23:46:25 | 232,197,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | Gas_vehicle.cpp |
#include <string>
#include "gas_vehicle.h"
Gas_vehicle::Gas_vehicle(int year, std::string make, std::string model, Body_style body_style, double miles_per_gallon, double max_gallons)
: Vehicle(year, make, model, body_style), _miles_per_gallon{miles_per_gallon}, _max_gallons{max_gallons} { }
d... |
d55b22b1ae59964f72f8f660d9475e3941fc9395 | 84dc2c53b76c3193899e325f9ac95dace0284257 | /my_utils.h | 22b5fc545b25bcef02c3fcb511290a7fe2596d3a | [] | no_license | NatPath/MatamFinalProject | 9ce14d525c5ba9c0139bf03cecab0b346c4be258 | 38ebae0a02fd290ebd57eb8ad015e024e63fd271 | refs/heads/master | 2022-12-11T04:59:56.904225 | 2020-08-27T16:34:01 | 2020-08-27T16:34:01 | 284,483,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,292 | h | my_utils.h | #ifndef _MY_UTILS_H
#define _MY_UTILS_H
#include <iostream>
#include <string>
#include <set>
#include <vector>
#include <map>
#include <utility>
#include <exception>
#include <regex>
#include <algorithm>
//"Naming things is useful for readability and sanity"- Albert Einstein
typedef std::vector<std::string> Tokens;
... |
0ea8ab9d8b51f1569ef2798b7f84548ad41c9c2e | 317f2542cd92aa527c2e17af5ef609887a298766 | /tools/target_10_2_0_1155/qnx6/usr/include/bb/cascades/animation/abstractanimation.h | 3e9f90d6b41208862ef40c6003062881766fb7f5 | [] | no_license | sborpo/bb10qnx | ec77f2a96546631dc38b8cc4680c78a1ee09b2a8 | 33a4b75a3f56806f804c7462d5803b8ab11080f4 | refs/heads/master | 2020-07-05T06:53:13.352611 | 2014-12-12T07:39:35 | 2014-12-12T07:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,835 | h | abstractanimation.h | /* Copyright (C) 2011-2013 Research In Motion Limited. Proprietary and confidential. */
#ifndef cascades_abstractanimation_h
#define cascades_abstractanimation_h
#include <QtDeclarative/QtDeclarative>
#include <QtDeclarative/QDeclarativeListProperty>
#include <bb/cascades/bbcascades_global.h>
#include <bb/cascades/... |
ff910cfdac2ef4458a1886ce6b73471fb4e6a0a0 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/cpp-pistache-server/generated/model/OrgApacheSlingDistributionAgentImplSimpleDistributionAgentFactorProperties.h | 1ba4e3a81a17aaa711feeabca905f6a8e1fcffeb | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | C++ | false | false | 5,209 | h | OrgApacheSlingDistributionAgentImplSimpleDistributionAgentFactorProperties.h | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener... |
0b4a84b95b43fc33056cfa819bcd7aceb09e3585 | 3117b8eeb7f787a0713fb9bd62fd30d98c01e014 | /SandBox/SpinComponent.cpp | 5af6f7530e25af6153242825f25f85d215f7885e | [] | no_license | EmilioLapointe/ProjectNotSummer | 1ecbcc8e19f997432dc6bab4372bf5bcbf050840 | 4db725d3021463920041394a0c057b5ccb6122e5 | refs/heads/master | 2020-04-09T21:22:25.781723 | 2019-04-04T01:32:22 | 2019-04-04T01:32:22 | 160,600,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 831 | cpp | SpinComponent.cpp | #include "SpinComponent.h"
SpinComponent::SpinComponent(TLGE::GameObject* objectInCharge):
Component(objectInCharge)
{
objectInCharge->RequireComponent<TLGE::Transform>();
}
SpinComponent::~SpinComponent()
{
//nothing to do
}
void SpinComponent::Update(float deltaTime)
{
TLGE::Transform* trans = m_objectInCharge-... |
f8f46c76628997a72ab42e87fd8b34d0e4d29aca | 8898636e2bee1c31b28ed6ae8518f8d53fbce9b7 | /manyfriends/src/manyfriends.cpp | b0166c31e1d700e92913ba5e5f199c1a1320d159 | [] | no_license | Yuanzjls/Cplusplus6th | 423bb18ae861c779a864c1ad73f95a153469405f | 1436e2cbb07ae1fb3b793c0152a6e9478a13750e | refs/heads/master | 2021-08-14T08:10:18.063975 | 2017-11-15T02:32:04 | 2017-11-15T02:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | manyfriends.cpp | //============================================================================
// Name : manyfriends.cpp
// Author : Yuan
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#i... |
22a3c8ceb58efd0b8fd6819afb1e69127d0c17fd | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_2459_httpd-2.4.25.cpp | 5f5738f2711783368c297810bc0260e94994e314 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | httpd_repos_function_2459_httpd-2.4.25.cpp | static void calc_sha256_hash(h2_push_diary *diary, apr_uint64_t *phash, h2_push *push)
{
SHA256_CTX sha256;
apr_uint64_t val;
unsigned char hash[SHA256_DIGEST_LENGTH];
int i;
SHA256_Init(&sha256);
sha256_update(&sha256, push->req->scheme);
sha256_update(&sha256, "://");
sha256_upda... |
18c357c1b5a7c326246c61e59d6a1a7de09a2e19 | 38cadc0ea0c82b07ab67bf0d471ef560da81d827 | /lab 6/ComputeShaders2/ComputeShaders2/framework/traceRay.h | 2338ad36ea94ad23d6c8d50f72437441f7c3c36b | [] | no_license | ThomasMGilman/ETGG-4804 | fea022fc0f06a25d6ccd02db8d5aa7419e8f815f | f0f455b7cbfe9de0cbd7d71be729c4aad8be8e5d | refs/heads/master | 2022-07-10T01:19:44.270304 | 2020-05-19T20:41:03 | 2020-05-19T20:41:03 | 204,701,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,812 | h | traceRay.h | //Thomas Gilman
//Jim Hudson
//ETGG 4804_1
//Optomization Techniques
//3rd September, 2019
#pragma once
#include "Scene.h"
//s : ray start
//v : ray direction
//N : normal
//ip : intersection point
void traceSpheres(Scene& scene, vec3& s, vec3& v, vec3& ip, vec3& N, vec3& color, float& closestT, bool& inter)
{
uns... |
54bcef2e03edd6d1482c8ea7427703d095fbe71a | 2beb738ff5ca7f8d851fc5dda65ca6d442cfd9cd | /char_arrays_pointers/main.cpp | d3a19ea87de2f9e6244dbaa1b61ec9f78b0b92f6 | [] | no_license | TomK111/CPPTutorialForBeginners | 1f6ee4d4ff01a04c230380f998026b6c52f04984 | 52b99dc1116bae55c8666c0b9699818b56fb840e | refs/heads/master | 2023-03-24T00:35:26.024901 | 2021-03-07T23:47:27 | 2021-03-07T23:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | main.cpp | #include <iostream>
int main() {
char first_name[] = "Tomislav";
std::cout << first_name << std::endl;
for(int i = 0; i < sizeof(first_name); i++){
std::cout << i << ": " << first_name[i] << std::endl;
}
int j = 0;
while(true) {
if(first_name[j] == 0) {
break;
... |
d431201a96fd6a1281dec01c9959262f24e96631 | eecd5508e9d16cc02bc8f9f7c0339aae5de2261c | /src/common/common.h | a7a195c8305a019c94b72d56f075a958a74bf615 | [] | no_license | sahwar/cyan | 238d52286652c47c8e4cd8ce153cf91c6f2bf168 | 32cfee188255108d523711940e9131ad4b7f7389 | refs/heads/master | 2020-04-14T05:32:08.774661 | 2018-12-31T05:01:24 | 2018-12-31T05:01:24 | 163,662,974 | 1 | 0 | null | 2018-12-31T11:18:54 | 2018-12-31T11:18:54 | null | UTF-8 | C++ | false | false | 9,227 | h | common.h | /*
# Copyright Ole-André Rodlie.
#
# ole.andre.rodlie@gmail.com
#
# This software is governed by the CeCILL license under French law and
# abiding by the rules of distribution of free software. You can use,
# modify and / or redistribute the software under the terms of the CeCILL
# license as circulated by CEA, CNRS an... |
6b211ecb190761328b2419f00b90285bf2f76b74 | 39028070ff3b61fb28d0d2bd88cfa01e8b861cf8 | /code/flist_messenger/flist_global.h | b808947d88bede23b382331c00a34aa8d8d9ac86 | [] | no_license | kythyria/flist-messenger | 8e750ba7b1f331e92656a231348ab29dd59fa34c | ac9fd1fc938771fd41b75c44563ed21567458e4c | refs/heads/master | 2021-01-16T21:08:56.815279 | 2018-05-08T02:30:03 | 2018-05-08T02:30:03 | 20,154,945 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | h | flist_global.h | #ifndef FLIST_GLOBAL_H
#define FLIST_GLOBAL_H
#include <QNetworkAccessManager>
#include "flist_api.h"
class BBCodeParser;
class FSettings;
extern QNetworkAccessManager *networkaccessmanager;
extern BBCodeParser *bbcodeparser;
extern FHttpApi::Endpoint *fapi;
extern FSettings *settings;
void debugMessage(QString st... |
e3d9b2f28c6ffb5b666a8d0a62e6aca20428fa64 | 767419ca9e6a899d84db512e165c07c5842b6b27 | /aurobotservers/trunk/libs/urob4/uimgpushtest.h | d5bfd40ab79724396d7f53bb65ad46240f42a967 | [] | no_license | savnik/LaserNavigation | 3bf7a95519456a96b34488cd821d4da4bee3ceed | 614fce06425c79e1d7e783aad4bbc97479798a7c | refs/heads/master | 2021-01-16T20:55:33.441230 | 2014-06-26T21:55:19 | 2014-06-26T21:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,599 | h | uimgpushtest.h | /***************************************************************************
* Copyright (C) 2004 by Christian Andersen *
* jca@oersted.dtu.dk *
* *
* This pr... |
73777d00c6157ae08c8e02c3f902737b794139d4 | b6607ecc11e389cc56ee4966293de9e2e0aca491 | /acmp.ru/101...200/115/115.cpp | b0adbd7c0579b6f764fd28e174fb8427115ac860 | [] | no_license | BekzhanKassenov/olymp | ec31cefee36d2afe40eeead5c2c516f9bf92e66d | e3013095a4f88fb614abb8ac9ba532c5e955a32e | refs/heads/master | 2022-09-21T10:07:10.232514 | 2021-11-01T16:40:24 | 2021-11-01T16:40:24 | 39,900,971 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | 115.cpp | #include <iostream>
#include <cstdio>
using namespace std;
int a[110][110], sum[110][110], n, m;
int main() {
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
scanf("%d%d", &n, &m);
for (int i = 1; i <= n; i++)
for (int j = 1; j <= m; j++)
scanf("%d", &a... |
a9d8834c2856876247eb1d9d068e6d7400ea0ee2 | 6523953eeacb926cee0089dcafab1d16c24bd7e1 | /InteractiveOpenGLDemo/Vertex.h | 6761568f18af5ce7d5e0f629d9d670c471fc1399 | [] | no_license | KepAmun/InteractiveOpenGLDemo | 93956eac07561341c94c6ab39371785c619e89a2 | 3ffa2c549da66402261972c228dc08ef3ba0deeb | refs/heads/master | 2021-01-23T10:00:32.772642 | 2013-03-17T21:21:16 | 2013-03-17T21:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | Vertex.h |
#ifndef VERTEX_H_
#define VERTEX_H_
using namespace std;
class Vertex
{
private:
float m_coord3fv[3];
float m_texCoord2fv[2];
public:
Vertex();
Vertex(float* fv);
Vertex(double x, double y, double z);
void SetCoords(double x, double y, double z);
void SetTexCoord(float s, float t);
float* GetCoord3fv();
fl... |
01949bcb75f9fe53414199b2766a77a279219319 | f9a8e812a0f8e8ddcae5a7da6576f376d5b4c100 | /src/tools/StringTools.cpp | fe3600fa97449979ab0a731d29c3edcb1ed60270 | [
"MIT"
] | permissive | CapRat/APAL | d44bfbee74540e812ccd63901d47de401fefb672 | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | refs/heads/master | 2022-12-13T18:52:11.512432 | 2020-08-19T11:24:40 | 2020-08-19T11:24:40 | 290,733,218 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 943 | cpp | StringTools.cpp | #include <tools/StringTools.hpp>
std::string
APAL::replaceInString(std::string strToChange,
const std::string itemToReplace,
const std::string substitute)
{
while (strToChange.find(itemToReplace) != std::string::npos)
strToChange.replace(strToChange.find(itemToReplac... |
c1589fb41288787fcaea27a4ddcfb634695e8f48 | 56fe919cc075537a5a2d310e9a8c1cb0cee0f5bd | /nenequest/headers/randomCloud.hpp | 526f4079ae788e8a78d5241d6c81f9a79a68f524 | [
"MIT"
] | permissive | codingwatching/nene-quest | e89b2e3fd3a8627c2caf1b18135a07537de16931 | c3c8602d12ebdc25b667c195b7a454748027f3b6 | refs/heads/master | 2023-04-06T02:44:35.273202 | 2019-06-06T16:10:30 | 2019-06-06T16:10:30 | 411,963,234 | 2 | 0 | MIT | 2021-09-30T07:19:56 | 2021-09-30T07:19:55 | null | UTF-8 | C++ | false | false | 1,329 | hpp | randomCloud.hpp | #ifndef RANDOMCLOUD_HPP_INCLUDED
#define RANDOMCLOUD_HPP_INCLUDED
#include <stdlib.h>
#include <time.h>
#include <SFML/Graphics.hpp>
#include <list>
#include "randomShape.hpp"
class RandomCloud : public RandomShape {
private:
static const int MAX_WIDTH = 200;
static const int MAX_HEIGHT = 100;
static ... |
056ec7e8850a46825d9079e46df4acdc37240f94 | 0345b456d898e073672ac1faf75c9b7ba0edda9f | /Formulars/Course_Roll_Pitch/Course_Roll_Pitch.h | 3623ea4d52b188051a66096ff0aa3a4789507ea0 | [] | no_license | ORI-us/Aristarchus | c35ffeeacdfd8e8733960952b46fbfbe51dfff52 | f2a3ca5e937be4c7448ff66302bacf48e870bcca | refs/heads/master | 2021-01-10T16:00:53.915013 | 2016-03-15T15:22:42 | 2016-03-15T15:22:42 | 53,856,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | h | Course_Roll_Pitch.h | #ifndef COURSE_ROLL_PITCH_H
#define COURSE_ROLL_PITCH_H
#include <QWidget>
#include <QGraphicsItem>
#include <QGraphicsDropShadowEffect>
#include "NMEA_Struct.h"
namespace Ui {
class Course_Roll_Pitch;
}
class Course_Roll_Pitch : public QWidget
{
Q_OBJECT
public:
explicit Course_Roll_Pitch(QWidget *parent =... |
566d9c715c7a352b51c78a56361ef592b965a351 | e8c4e8c3e4385b5ce8acd310acc24fffd117443b | /Tree/BTreeNode.h | e79563540c7214e7bd29783c1f459f26bb621b89 | [] | no_license | DhivyaNarayanan/ADS | 3605af05ec0f48e32e0b748b183f65061a2cdbe5 | 14dc69e48373921963eb1387a31cb7fb582da222 | refs/heads/master | 2021-01-10T17:06:56.539488 | 2015-12-22T20:13:02 | 2015-12-22T20:13:02 | 44,499,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | h | BTreeNode.h | #include"Interfaces04.h"
class BTreeNode : public IBTreeNode
{
int * keys; //array of keys
int max_keys; // num_keys - max no_ of keys in the node - always 5
int min_deg_t; // minimum degree of the node
IBTreeNode **children; //array of child pointers
int no_of_keys; // no of keys in the node
int no_of... |
8a27261c0f179a258100370dfdfe70668cd96b2f | e0366e6e4ed0efc707eafac0884c1c55de040b25 | /20101229/Q1/main.cpp | 18a3a20e44016e7604525e856c0e3604c1e91f2c | [] | no_license | Vdragon/NTOU_C_programming_lab | baa3f775022966fa2b66c970c14066fb6f5db223 | 5c268e857818f716a967f98b7fb342102a31249b | refs/heads/master | 2016-09-06T03:28:10.300639 | 2012-06-12T17:39:54 | 2012-06-12T17:39:54 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,047 | cpp | main.cpp | #include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
restart:
//prompt array to put value
double inputValue[50];
//prompt n
short int inputNumber;
scanf("%hd", &inputNumber);
{//assign
//declare a counter for f... |
12379c513eb838d249bfab32867777a0a52df376 | 9114fc236743bbec1dd5733275ab8d5604c844fc | /iterator/stl_iterator.h | fb29b64e66be2d6265fdbf23bb38d68c5283f843 | [] | no_license | zhangyl927/miniSTL | 2bbc51aa487cc32e92b935060966d18b0d32a2e5 | e21e5ac83568eef02d502aa371a96dec57278dd0 | refs/heads/master | 2023-02-13T01:15:06.087447 | 2021-01-11T08:40:17 | 2021-01-11T08:40:17 | 324,707,281 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,100 | h | stl_iterator.h | #ifndef __STL_ITERATOR_H
#define __STL_ITERATOR_H
#include <cstddef>
namespace stl_iterator
{
struct input_iterator_tag {};
struct output_iterator_tag {};
struct forward_iterator_tag : public input_iterator_tag {};
struct bidirectional_iterator_tag : public forward_iterator_tag {};
struct random_access_iterator_tag ... |
4a18fcb2a15391027719c26bcffdb9517d026d01 | 83d0ef351e8b525b612575d8bb459e9f29ae3c48 | /inlupp1_1_o_2/MazeEvolver.cpp | 5a52e4910232e524e8b93e77201a552ebe563bcd | [] | no_license | kattfisk/spelai | 261f616c641dd4f9a3adec2d61479325965d7b1e | bb88e9069578e296c4c19a3f6f163260dea6148a | refs/heads/master | 2020-12-02T19:20:56.057568 | 2017-07-05T14:48:55 | 2017-07-05T14:48:55 | 96,329,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,645 | cpp | MazeEvolver.cpp | #include "MazeEvolver.h"
#include "Solver.h"
#include "SearchResult.h"
#include "MazeCreator.h"
#include "libraries\EvolutionaryAlgorithm\EALEvolutionaryAlgorithm.h"
#include <vector>
namespace
{
// Population settings
const int POPULATION_SIZE = 10;
// Selection settings
const int TOURNAMENT_... |
9b1cb27f27d7a2182ea3d2d0222294d186203a32 | 83857373cf14478a9db0002c9c17e317401dfd03 | /LC_686_RepeatedStringMatch/main.cpp | 023eb9577157965998dc71751d64c55749ab8671 | [] | no_license | neoVincent/LeetCodePlayground | acdefed387158f4c53b9199498d9cd1c62b5e50e | 994b80108fd6dac8b413c858f5182a0e80adbf7b | refs/heads/master | 2021-06-11T03:37:46.534237 | 2019-10-03T00:28:16 | 2019-10-03T00:28:16 | 128,283,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 769 | cpp | main.cpp | #include <QCoreApplication>
#include <string>
#include <iostream>
using namespace std;
int repeatedStringMatch(string A, string B) {
if (A.find(B) != string::npos) return 1;
//concate A with itself til A.size >= B.size
int counter = 1;
string a = A;
while(a.size() < B.size())
{
a.appen... |
4e803c10eedc2bac977c74f455b45c49d5eeaacc | 0318ccfb1b8f6a34b362567d2e57475f4965cf47 | /Homework 1/Reservation.cpp | 3f9db3343332cb1344cf1b69a38f6dd11a60d314 | [] | no_license | CanAvsar/CS201Homeworks | b31f2233da9f7a7609b88387a6793f9f02998172 | 2ef8445403ee50ef7a7eb6e9ccc127a922791238 | refs/heads/main | 2023-07-02T21:42:36.480909 | 2021-08-06T21:09:08 | 2021-08-06T21:09:08 | 393,502,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 714 | cpp | Reservation.cpp | // Reservation.cpp
// CS201 Homework 1: MovieBookingSystem
// March 2021
// Can Avşar
// 21902111
#include <stdio.h>
#include "Reservation.h"
Reservation::Reservation()
{
_movieID = 0;
_row = 0;
_col = 0;
_resCode = 0;
}
Reservation::Reservation(long movieID, int row, char col)
{
_movieID =... |
dbdcff4b5634d64aff9afb45cd634c11fced3a6e | 5fb4db792adc11020a08a863c3a3423aaca13eff | /week-01/day-3/variable_mutation/main.cpp | 4587460f06eab7d64f8dba03b4b8779c2b8ba9f9 | [] | no_license | green-fox-academy/tamasmarkovics | b65472222f44596fa2df0466d7a88f0d860b011f | 4c70ac6fc8afc1bafa91847e9d9aab5633db4688 | refs/heads/master | 2020-07-23T13:56:23.406168 | 2019-12-06T11:45:17 | 2019-12-06T11:45:17 | 207,581,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,345 | cpp | main.cpp | #include <iostream>
#include <string>
#include <math.h>
int main(int argc, char* args[]) {
int a = 3;
// make the "a" variable's value bigger by 10
a+=10;
std::cout << a << std::endl;
int b = 100;
// make b smaller by 7
b-=7;
std::cout << b << std::endl;
int c = 44;
// please... |
e696acb19b22cbd31d8d0538c3819c6e1f7134c2 | c423990916490a0006eeaaccfc60c186d1f802a7 | /concurrent-cpp/1-intro.cpp | 3789f3ed857319e90c831f02faf2dd09093fcd96 | [] | no_license | idontknoooo/my-code | 297aa931455596dafd0e1f046ecf7d793bd1938d | 647b8c77db35e545f2fce735c0d887c2b93aaf1c | refs/heads/master | 2018-10-09T21:56:06.634340 | 2018-09-05T03:45:42 | 2018-09-05T03:45:42 | 33,699,122 | 0 | 1 | null | 2018-03-04T20:08:31 | 2015-04-10T00:09:50 | Python | UTF-8 | C++ | false | false | 379 | cpp | 1-intro.cpp | #include <iostream>
#include <string>
#include <thread>
using namespace std;
void function_1() {
cout << "Beauty is only skin-deep" << endl;
}
int main() {
thread t1(function_1); // t1 starts running
//t1.join(); // main thread waits for t1 to finish
//t1.detach(); // t1 will freely on its own -- daemon... |
43b299878679d08a7a9be664554538e5de84e304 | 13a81310f102e1d065ce405f1896035d7c006c0b | /src/particle_filter.cpp | a2a22cee51716783ec70dce45c6ce60a0e82fdb9 | [
"MIT"
] | permissive | RobotGameFoundation/CarND-Kidnapped-Vehicle-Project | 64461de599f4a9c175db54b5944cc99c832c43eb | 0f524b25ff74e761363a58c9af4177671a7e9f7b | refs/heads/master | 2022-07-20T06:38:52.948444 | 2020-05-20T09:18:41 | 2020-05-20T09:18:41 | 265,512,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,881 | cpp | particle_filter.cpp | /**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;... |
ee780beffa78f40c6da1a58a437c5adc96817463 | 94eef8bc9fe9a39a1eacc5d197ecc5056c2f4cca | /21/06/frisky.cpp | ef1e2358362886f6163b32aa314b224999488a96 | [] | no_license | yurychu/cpp_coding | 0f805fff172f1fa10488295f562ff667aea06d62 | 205ca786f6f129fccfd18f184582e29934b4d7de | refs/heads/master | 2021-08-27T17:24:32.022949 | 2017-06-11T17:30:23 | 2017-06-11T17:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cpp | frisky.cpp | #include <iostream>
using namespace std;
class Cat {
public:
// открытые методы доступа
unsigned int get_age();
void set_age(unsigned int age);
unsigned int get_weight();
void set_weight(unsigned int weight);
// открытые методы
void say_meow();
private... |
a170d67929944d5d148890ccea9892325b43bc91 | 0f8a1658e619914040590c63da251c6b32cf7f31 | /src/client/videocap.cpp | d451fa1780fd0849a9620d10b66ffa58a0bf98bd | [] | no_license | llyaiyyl/guard | e198c852810ed7ca9f141ade9588ffd51f88fcb7 | f26ba114f9ae8968aa880b78be68f6bfdf226a5d | refs/heads/master | 2020-03-28T01:20:16.065844 | 2018-09-28T09:46:05 | 2018-09-28T09:46:05 | 147,496,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,519 | cpp | videocap.cpp | #include "videocap.h"
using namespace std;
videocap::videocap(AVFormatContext * ptr_format_ctx, AVCodecContext * ptr_codec_ctx, AVCodec * ptr_codec, int video_stream, int audio_stream,
int fps, int width, int height, int pix_fmt, int codec_id, url_type type)
{
int ret;
ptr_format_ctx_ = pt... |
2ded059236dd57a88157c1a7c931a110b0c1b6a9 | 580a178ed0db73bac2f6fd01270ebaa2312c9d1e | /HW12_E24084208/Source Code/Others/Game.cpp | ba128c313704ae68a3d52e5f2e3616730059df93 | [] | no_license | Learning-Jench2103/IC2_2020_Final-Project_RPG-Game | 40e735d438696dd5d4a957b678fd22c2abbb73c7 | e3f24852b67ed8c4478592e46900af9b85f9a848 | refs/heads/master | 2022-10-17T17:01:25.815473 | 2020-06-11T07:56:52 | 2020-06-11T07:56:52 | 254,785,080 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 34,649 | cpp | Game.cpp | #include "Game.h"
#include <conio.h>
#include <ctime>
#include <set>
#include <fstream>
using namespace std;
void Game::generatePlayers()
{
Menu player_select_menu;
{
player_select_menu.question_name = "請選擇一個角色";
player_select_menu.instruction.push_back("您可以只擁有一個角色,並以他傲視群雄");
player_select_menu.instruction.p... |
6c609dbdd730c4abb0d98c2ad695f3cbd6b3da41 | 9da315d428a71be07111a470c70938d0bf0183d6 | /painter.h | a1f9519475f24c747832d35e8ed73f32912f86d4 | [] | no_license | chrisyeshi/Painter | df3a2ab84a1cf5c092d0de2b8952452c609ddeb3 | 962b6645608f6a99d07186c6a6672362793a6ad2 | refs/heads/master | 2020-05-17T18:42:49.721588 | 2016-02-24T00:43:44 | 2016-02-24T00:43:44 | 34,410,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,231 | h | painter.h | #ifndef PAINTER_H
#define PAINTER_H
#include <iostream>
#include <QOpenGLShaderProgram>
#include <QOpenGLFunctions_3_3_Core>
#include <QOpenGLVertexArrayObject>
#include <QOpenGLBuffer>
#include "shape.h"
namespace yy {
// TODO: make painter to handle binding textures
class Painter
{
public:
Pa... |
0c76074c131230f28fc41c67a90986d291c0baec | 43bb80335728466e8f2b0fe045b58c911ca8d9a0 | /Software/Bus Test Card/bus-monitor/bus-monitor.ino | b7616cba9a0410c34831279334976ad88fa465d1 | [] | no_license | ksr/YACC1-2020 | 4a362f03fd6bd07d0b00769f7052997fcbc5994f | 3bcacf3c574e82cbff498e6ba4a5b06939080487 | refs/heads/master | 2023-07-20T04:51:08.426852 | 2021-09-02T15:10:01 | 2021-09-02T15:10:01 | 289,729,240 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,915 | ino | bus-monitor.ino |
/*
BUS Monitor
Loops watching bus for changes.
Works well when combined with single step mode on sequencer
Usgae notes:
Monitor via Arduino IDE Monitor program
SET ARDUINO MONITOR TO "No Line Ending"
0 is off
1 is on
***** add logic to only monitor bus lines June 26/20
this program a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.