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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad96f2dd3de9d69e4a932e4f8e7ab91cfa70741a | 8105733df657df6cb42b5a39bfe64a1c2f40f1f2 | /Library/movement-pointtranslation2d_.h | 71997af948f7f606771c30a305a716aef23f4cc2 | [] | no_license | beakie/Studio | 27c1eddade1185f47c2aa71be6c277b392c320a3 | debe855132e72779fd635379d2964b60a97a3047 | refs/heads/master | 2020-12-14T07:22:03.188593 | 2015-06-26T14:38:53 | 2015-06-26T14:38:53 | 31,416,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,521 | h | movement-pointtranslation2d_.h | #ifndef MOVEMENT_POINTTRANSLATION2D_H
#define MOVEMENT_POINTTRANSLATION2D_H
#include "space2d.h"
#include "movement-bonefixedpointlist.h"
#include "movement-bonemap.h"
#include "movement-jointlist.h"
#include "movement-pointlist.h"
namespace Movement
{
template <typename TVALUE>
Common::Vector2<TVALUE> getTransla... |
b5bb49813a79b69fe697adc1628de96d54ef8502 | dcc4cf1b34bbe254d976447ae957388d7507a70f | /games-generated/Crash Course Game/Export/mac64/cpp/obj/include/com/stencyl/models/scene/ScrollingBitmap.h | 89838bb7a1e5f6f37c1af2c7f3ebd33d7cdc5226 | [
"MIT"
] | permissive | dylanmarcus/stencylworks | fe2bfd4e0bf16915bc9a7babcb681d7de5365dd5 | 06bc44e5d04101f61c70cabd64b23c69ef043c43 | refs/heads/master | 2020-12-25T23:47:22.985344 | 2015-04-22T02:21:18 | 2015-04-22T02:21:18 | 34,361,979 | 1 | 0 | null | 2015-04-22T02:21:18 | 2015-04-22T01:40:02 | C++ | UTF-8 | C++ | false | false | 2,568 | h | ScrollingBitmap.h | #ifndef INCLUDED_com_stencyl_models_scene_ScrollingBitmap
#define INCLUDED_com_stencyl_models_scene_ScrollingBitmap
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#include <flash/display/Sprite.h>
HX_DECLARE_CLASS4(com,stencyl,models,scene,ScrollingBitmap)
HX_DECLARE_CLASS2(flash,display,Bitmap)
HX_DECLARE_CLASS2(flash,di... |
9a43426ead73c6c452ad2ad9cac0411cf6964596 | c8a38e65e71de888fc5b22fbd027bbaa0f3f6ef1 | /Cpp/351.cpp | fa9247f42465652577931d1e8c7b8c247ef24ef5 | [] | no_license | skywhat/leetcode | e451a10cdab0026d884b8ed2b03e305b92a3ff0f | 6aaf58b1e1170a994affd6330d90b89aaaf582d9 | refs/heads/master | 2023-03-30T15:54:27.062372 | 2023-03-30T06:51:20 | 2023-03-30T06:51:20 | 90,644,891 | 82 | 27 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | 351.cpp | class Solution {
private:
vector<vector<int>> skip;
public:
Solution() {
skip.assign(10, vector<int>(10, 0));
skip[1][3] = skip[3][1] = 2;
skip[1][7] = skip[7][1] = 4;
skip[3][9] = skip[9][3] = 6;
skip[7][9] = skip[9][7] = 8;
skip[2][8] = skip[8][2] = skip[4][6] ... |
413dc4bc3920c2306719b4b213d214260564851b | 864db9cc8bc7b3732df904d9a22bb2a56919fc5f | /simulator/SimulatorObj.cpp | 0ede66df56d22588d5c2299e5e5a787b2b71f328 | [] | no_license | omrib40/Ship-Simulator | 157c806639e9687d1fa0ace5dde77a2de838cc93 | 360fa13b6ad378729c57d2788ba93aec77ee2d9a | refs/heads/master | 2022-09-08T02:16:04.446774 | 2020-05-31T07:36:08 | 2020-05-31T07:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,962 | cpp | SimulatorObj.cpp | #include "SimulatorObj.h"
/**
* This function sets the ship map of the simulator and the calculator ship map
*/
void SimulatorObj::setShipAndCalculator(std::unique_ptr<Ship> &getShip,const string& file_path){
this->simShip = std::make_unique<Ship>(*getShip);
simCalc.readShipPlan(file_path);
}
/**
* This f... |
b11d210bb370a794e41be342628a1e526a5497e0 | 402e0edb12a18788dee3e1e077ada9e7bbdeca24 | /stl-test/Tests/array_view/array_view/Negative/test7.cpp | 185e96658c0772b6e6566f4bb00dbc6ac97a2d09 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | david-salinas/hcc | b275590b8ecc17c13896c3ba812087ffdcde9709 | 11a0fbdc010bcdce970793949def68cc1a05506a | refs/heads/clang_tot_upgrade | 2021-01-09T05:58:54.970186 | 2019-12-05T17:53:12 | 2019-12-05T20:47:03 | 157,601,581 | 0 | 0 | NOASSERTION | 2018-11-14T19:42:00 | 2018-11-14T19:41:59 | null | UTF-8 | C++ | false | false | 105 | cpp | test7.cpp | //#error
#include <array_view>
int main()
{
int arr[3][3][3];
std::array_view<int, 2> av(arr);
}
|
4520baeaf4ac1b1c2e5dd6f6be0633881c8f9b77 | f3a7c6a127df972e50db179832020b19d1832354 | /src/AnaNim3Add.h | 0450e7fbdaf80451bbfd80d58e9c18929d519874 | [] | no_license | knakano0524/e1039-trigger-tune | 0e647c8a21fa75a61b5dd9fa18bdd1277eeed46a | 3f06fd542a2e37fb58767d3598b2ba106b545150 | refs/heads/master | 2023-04-09T12:52:10.432304 | 2021-04-22T01:32:31 | 2021-04-22T01:32:31 | 360,341,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | h | AnaNim3Add.h | #ifndef _ANA_NIM3_ADD__H_
#define _ANA_NIM3_ADD__H_
#include <map>
#include "RoadMap.h"
#include "RoadList.h"
#include "AnaNim3.h"
class TH1;
class AnaGmc;
class AnaNim3Add : public AnaNim3 {
protected:
RoadMap* m_road_map_pos_top;
RoadMap* m_road_map_pos_bot;
RoadMap* m_road_map_neg_top;
RoadMap* m_road_map_... |
5d80a965a5c89531bf1d96024f37b7bb8ac3bfb1 | 4d28185e7a78a569f9a449f39f183cac3024f711 | /source/Host/common/TaskPool.cpp | 73f761b5cf63a4761d8b93b5ee6e52de8456d3bb | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | apple/swift-lldb | 2789bf44f648609a1674ee520ac20b64c95de072 | d74be846ef3e62de946df343e8c234bde93a8912 | refs/heads/stable | 2023-04-06T00:28:15.882479 | 2019-10-25T22:46:59 | 2019-10-25T22:46:59 | 44,838,862 | 780 | 291 | Apache-2.0 | 2020-01-10T19:28:43 | 2015-10-23T21:13:18 | C++ | UTF-8 | C++ | false | false | 3,557 | cpp | TaskPool.cpp | //===--------------------- TaskPool.cpp -------------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
83e70714aa3deff8caac725be36626b1dd9ea216 | 17fad22ea601cd68f1a46818b19f1f5002043b2c | /Desarrollo/ModernZ/Classes/Player.cpp | fcc786cabef3a2ee0b18468450b2123f74c2d458 | [] | no_license | mcalonso/TFG | 460d0c8a2003b97bfd81f22e53b675835c6c3fc4 | 4b301fd05f6b6ac7fe63d2d8238e1d0fbd93504a | refs/heads/master | 2021-01-23T05:50:36.365937 | 2017-08-28T22:31:36 | 2017-08-28T22:31:36 | 92,992,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,947 | cpp | Player.cpp | #include "Player.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "Definitions.h"
USING_NS_CC;
Player::Player(cocos2d::Layer *layer, int type, b2Vec2 pos, b2World* w) {
_world = w;
visibleSize = Director::getInstance()->getVisibleSize();
origin = Director::getInstance()->getVisibleOrigin(... |
bff6569f653fa62842190a3b234dfbe03ecdcc4e | a40025449c53ae38c46214a513d9dfbd9d5d33d5 | /NTField.h | 7fce6c585d09d6302cee2a113ee891bfb8e62c85 | [] | no_license | jbRedstone/5777.sem2.ex2b | c436b9fb903b01cace7557bc8c3465f9fe5ebe05 | 7a74fbf7f6d2c1a11e1c5359e59406be7787a70c | refs/heads/master | 2021-01-20T06:23:26.239995 | 2017-05-01T15:08:50 | 2017-05-01T15:08:50 | 89,874,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | h | NTField.h | #pragma once
#include "Validator.h"
class NTField
{
public:
NTField(string request);
NTField get();
virtual bool getValidity();
void validSet(bool b);
virtual void refill();
virtual void validate();
virtual void printField();
protected:
string m_request;
bool m_valid;
};
|
8a96dfa239adb8bdc266d35108c7c3a33b2e19dd | a68915de1f53c464380ee322e3582aed15a87632 | /grasp_exp/CommThread.cpp | 295239fca735c740e4b8103aa531819f2211c7df | [] | no_license | amitmil274/feedback_experiment | 08c470af4c9602e7344346e7d8df0ad8a14cda56 | 4958ab23072280b043e24ac3c56eaad59bbe8180 | refs/heads/master | 2016-08-12T05:36:52.498280 | 2016-03-23T08:24:44 | 2016-03-23T08:24:44 | 54,306,211 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | cpp | CommThread.cpp | #include <math.h>
#include <windows.h>
#include <list>
#include <vector>
#include "Haptic.h"
#include "FileHandle.h"
#include "Protocol.h"
#include "dhdc.h"
#include "drdc.h"
#include <Eigen/Geometry>
#include "Eigen/Eigen"
#include "PracticalSocket\PracticalSocket.h"
#include "sigma_comm.h"
#include "ITPteleoperation.... |
985e2571ee1e2f3cdec02ba480b9a1970e3ba971 | 6019ecf75b8d3fe7c54f6694aa525dcf5d00d92c | /Entity.cpp | 8f6ad0c57867ddf9f923e11e009498cf9b05943f | [] | no_license | tdepke2/Venture | 527a8628c846ba50ea9ccf5351e7c5cefbc8874b | bc3f66e467d25e1ad8a6154ec839981d1b9e4630 | refs/heads/master | 2020-04-04T15:22:56.805253 | 2018-12-18T01:16:44 | 2018-12-18T01:16:44 | 156,035,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,562 | cpp | Entity.cpp | #include "Entity.h"
#include "Tile.h"
#include "Window.h"
#include <algorithm>
#include <cassert>
using namespace std;
unordered_map<int, vector<PairXYi>> Entity::_radiusLookup;
Entity::Entity() {
init();
_position = PairXYi(-1, -1);
}
Entity::~Entity() {}
Entity::Entity(const Entity& entity) : Object... |
5e3fbb8b54f1b69d7e695dae0ebf68cdf40d615d | 17f6c821db03b40ab4cf7b36b56bcfc77a7961cb | /0383-Container With Most Water/0383-Container With Most Water.cpp | 0c764ff0699e9dec1578bcb5c2eabeea785713fd | [
"MIT"
] | permissive | yinyinyin123/LintCode | 62868a57a33ebf3e2fba8bcb52c6cdc3ab467e9d | 43072b8b867946c7a1ce4938201397949399abb7 | refs/heads/master | 2021-08-19T05:57:48.221252 | 2017-11-24T22:22:42 | 2017-11-24T22:22:42 | 113,461,517 | 2 | 1 | null | 2017-12-07T14:36:25 | 2017-12-07T14:36:24 | null | UTF-8 | C++ | false | false | 627 | cpp | 0383-Container With Most Water.cpp | class Solution {
public:
/*
* @param heights: a vector of integers
* @return: an integer
*/
int maxArea(vector<int> &heights) {
// write your code here
int maxA = 0;
int n = heights.size();
int start = 0, end = n - 1;
while (start < end) {
if (h... |
49e3d45af1485a27b8d5519e119eb13e8e3e01d1 | ae5d25e7f3a2b71e51021400edaa318cdea4c5b0 | /Graph.cpp | 5391b933bb0fde52fc462ad8157ffd9674f7336d | [] | no_license | aaron9292/Dijkstra_Algorithm | c61277e5540e86da7010f4afed10cb6a63701bef | 1785ae64953ae18066a6ea29cd9461895b38dba9 | refs/heads/master | 2023-04-07T09:30:48.937314 | 2020-12-01T16:32:43 | 2020-12-01T16:32:43 | 359,663,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | Graph.cpp | //
// Created by Erik Peterson on 11/5/20.
//
#include "Graph.h"
void Graph::addVertex(Vertex *vertex) {
vertices.push_back(vertex);
}
const std::vector<Vertex *>& Graph::getVertices() const {
return vertices;
}
void Graph::clear() {
vertices.clear();
}
|
d25746ad41679732fe7e45efe161ee6e23fefbd1 | 3126862ea13962984a9161a9ebd2032a4fc455bc | /08_basic_object_oriented_programming/08_x_chapter_8_comprehensive_quiz/MonsterType.cpp | 61981b63a9a66c3eefa1030514fecb9ad8b2953c | [] | no_license | nieyu/learncpp_com | f9a5d191e4e4c416efcceb216bac10f5246e17ea | f2e53f3cee75fc7f91dfd3c8a5a85d09ba5313e3 | refs/heads/master | 2023-01-05T16:45:07.526075 | 2020-11-04T13:59:56 | 2020-11-04T13:59:56 | 299,284,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 131 | cpp | MonsterType.cpp | //
// MonsterType.cpp
// 08_x_chapter_8_comprehensive_quiz
//
// Created by nie yu on 2020/11/1.
//
#include "MonsterType.hpp"
|
a32b3d286a56dbdc7cd8d23fa66456596040b340 | 0d89c8127f6883812e755ada997815db3beab4b2 | /gameFiles/gsObjects/state-objects/button.cpp | 4c145e6930600b748abfbd5b03bb7816972112a9 | [] | no_license | ChanceRbrts/Sodium_Room | b8f43213e194e3e08dce22f451dde4abcb774d7e | 02df1b81f68b3fd1f087429ee59bc3b9d7fc790e | refs/heads/master | 2023-04-12T17:44:32.189458 | 2021-02-08T19:46:13 | 2021-02-08T19:46:13 | 238,605,972 | 0 | 1 | null | 2020-10-11T01:34:07 | 2020-02-06T04:17:15 | C++ | UTF-8 | C++ | false | false | 3,998 | cpp | button.cpp | #include "button.h"
Button::Button(double X, double Y, int direction, std::string pressedValue) : Instance(X, Y, 2, 1){
multiPress = false;
pressedVal = pressedValue;
maxPress = 1;
setUp(direction);
}
Button::Button(double X, double Y, int direction, std::string pressedValue, int maxPressed) : Instanc... |
d2a1a3ea622c88370c859f819cb83f549c1da669 | ec64f779d97653373bee9aab2d78b161b7810eef | /shade.cc | f90d2f18be1d11560fc26d5e87368b7eff730cd9 | [] | no_license | Judy-zdw/cc3k-maze-game | 3ca3b94de79de3bd4dc1eebffc2a55833a8cb95e | df46aa558c61342084cbbd6660a727646cea0f28 | refs/heads/master | 2020-04-17T15:55:59.145333 | 2019-01-20T23:37:32 | 2019-01-20T23:37:32 | 166,719,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cc | shade.cc | #include "shade.h"
using namespace std;
Shade::Shade(double max_HP, double HP, double Atk, double Def, double extra_Atk, double extra_Def, int Gold):
Hero{max_HP, HP, Atk, Def, extra_Atk, extra_Def, Gold} {}
int Shade::attack(Unit* toattack) {
return toattack->beattacked(this);
}
bool Shade::use(Unit *touse) {
... |
1269dfafef2dd7da1143214077f3b3343c68561d | feaf5ed8ba4045ba149a77db276533bdb7b0a66f | /2.ClassExercise/EP18-1.cpp | 74a89aab91f2a42ab7c5a3da5b0cf392dba090eb | [] | no_license | OuyangRuihong/Euler | 7f3f7289ef82d39bd5be8ef8de4b3db479a51f6c | 5836445bb3ff5cd0da5be4f9f686ac17f12c4fef | refs/heads/master | 2020-05-09T13:43:21.020986 | 2019-09-17T13:16:08 | 2019-09-17T13:16:08 | 181,164,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 870 | cpp | EP18-1.cpp | /*************************************************************************
> File Name: EP18.cpp
> Author:OuyangRuihong
> Mail:845540021@qq.com
> Created Time: 2019年08月14日 星期三 18时08分45秒
************************************************************************/
#include<iostream>
#include<cstring>
#include<map>
#... |
f4418fb695d847a48b3bb6548885e257155b3ba8 | a7a07a846494d90e947c4463398d80aa1ec9d9eb | /ArrtModel/Model/ConversionManager.h | 64c1b0bebe93c7026ea46ebfd2ec3e61bd6b5537 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.0-or-later",
"LGPL-2.1-or-later",
"MIT",
"GFDL-1.3-only",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-only",
"LGPL-2.1-only"
] | permissive | isabella232/azure-remote-rendering-asset-tool | 33794f69b6e594c9565ca1131e668f6b8d301d5b | 7eeb1b750399a77a7224ea5316728b4252e7ddba | refs/heads/master | 2023-03-10T16:08:59.958874 | 2020-12-08T14:56:34 | 2020-12-08T14:56:34 | 324,980,896 | 0 | 0 | MIT | 2021-02-24T10:21:32 | 2020-12-28T10:28:06 | null | UTF-8 | C++ | false | false | 5,994 | h | ConversionManager.h | #pragma once
#include <Model/IncludesAzureRemoteRendering.h>
#include <Model/IncludesAzureStorage.h>
#include <QCoreApplication>
#include <QElapsedTimer>
#include <QMap>
#include <QObject>
#include <QTime>
#include <QTimer>
#include <shared_mutex>
class AzureStorageManager;
class ArrFrontend;
class Configuration;
// ... |
fd506fc59f96621e236f74cceaa0e3dc284d70e4 | 40701615742c3fade8f3b9313dfe05e48ab51ddc | /mainsys.cpp | 8262c3c71b1ebb71b6df9bfa2efac4b23766cbc9 | [] | no_license | chinchillawang/Memory-Management | bc39aabd0123a99e40389f59e48b46067e67edda | af4687477c8956810e23ab9fb10bf688e6230120 | refs/heads/master | 2021-05-28T19:15:29.522351 | 2015-06-08T14:45:01 | 2015-06-08T14:45:01 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,321 | cpp | mainsys.cpp | #include "memsys.h"
#include <cstdlib>
#include <iostream>
using namespace mainsys;
using namespace std;
MemPackage::MemPackage(unsigned int request) :TotalInfo(request) //有点小问题
{
bool *p = (bool*)malloc(request + SIZE_BLOCK_M + 1); //需求,满足需求的内存块头信息,该内存块的归属标记
if (p == nullptr) //内存申请失败时,返回错误信息并退出程序
{
cerr << "内存不... |
27dfba17eb01a458ec5120e82c8f2f722188fba3 | 3640c0855a78cfb3119694cd571d1f1e8838ca1c | /aoj/ALDS1/10/B/main.cpp | 2154fa957257436f91dc36e7e66a0f96ef806d80 | [] | no_license | gom74/procon | 22bbf773299514ac1b733afd9527852275593728 | 606395611ecf0a56b27849069364370e0519038d | refs/heads/master | 2022-09-21T19:00:48.956709 | 2020-06-05T18:02:26 | 2020-06-05T18:02:26 | 261,773,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
ll rec(int left, int right, vector<vector<ll> > &dp, vector<int> &R, vector<int> &C) {
int N = dp.size();
if (dp.at(left).at(right) != LLONG_MAX) {
return dp.at(left).at(right);
}
if (left == r... |
1d70ed8f901f16cba8d25d40c4d6646b492e6f37 | 70cfbcb6a23f607a8e15c60b0d5afdd27b09e6e0 | /Envelope.Math/Math/SevenPointPattern.h | 246a51b2cec76427c6a82081841dd240377d7f8b | [] | no_license | Hengle/AirCushionSimulation | 3e87077ef0cfc9731c7e8badf517e223e99a6ca9 | fa7a0c50edf16a8223a0fb94ddc7191ffd2f673b | refs/heads/master | 2023-03-17T16:28:24.714791 | 2020-10-11T19:08:03 | 2020-10-11T19:08:03 | null | 0 | 0 | null | null | null | null | MacCyrillic | C++ | false | false | 3,115 | h | SevenPointPattern.h | #pragma once
#include "utils.h"
#include "BigPointPattern.h"
namespace EnvelopeMath {
/**
* @class SevenPointPattern
*
* @brief Шаблон, состо€щий из 9 точек.
* *
* *
* *****
*
* @author Vs
* @date 05.04.2013
*/
class DllExport SevenPointPattern : public BigPointPattern
{
protected:
TPoin... |
bc8865bdb6b9089ab43286baff0a609c9f2df70f | e5e5e8b07e8cd21f23fd4befbc7e7aceb1bf61f5 | /src/blockchain_db/lmdb/db_lmdb.cpp | 7f0be25991bafac39958caf61915b94d6333e00c | [
"BSD-3-Clause",
"MIT"
] | permissive | sumoprojects/sumokoin | c4074f7b4f40c909b9d9dc9ce01521adb3cccb3e | 2857d0bffd36bf2aa579ef80518f4cb099c98b05 | refs/heads/master | 2022-03-04T02:21:41.550045 | 2021-08-22T04:32:04 | 2021-08-22T04:32:04 | 89,453,021 | 175 | 245 | NOASSERTION | 2021-08-22T04:32:05 | 2017-04-26T07:45:08 | C++ | UTF-8 | C++ | false | false | 192,814 | cpp | db_lmdb.cpp | // Copyright (c) 2014-2021, The Monero Project
// 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
// ... |
ebc1afa8df012d2b74b85bd011de78262bea6114 | 9a32178d3c2fdf377d84f65b55989264e67f40e9 | /2002/ALL VC SAMPLES/MFC/internet/StockTicker/containermfc/containerMFCView.h | 843140a09db2d8c28c7f058583ac912325ccdff3 | [] | 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 | 2,890 | h | containerMFCView.h | // containerMFCView.h : interface of the CContainerMFCView class
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// ele... |
9e0af2f650bf2b7057de274837f7a159deb65a15 | 1828d7dd7783c256a87eba166a0bae16b9e1a559 | /FOR/c/Pares1al1000.cpp | 9c3cefbeb4dc93278dc9076a302827366821f91b | [] | no_license | juandiegorb/TallerNo3 | e7aa6bdab925c730906429c0533f6b63fad55d8b | 754c2e7989966a4a968eb19898750caa779d7c8c | refs/heads/master | 2020-03-26T17:34:46.777210 | 2018-08-23T00:01:47 | 2018-08-23T00:01:47 | 145,169,189 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 346 | cpp | Pares1al1000.cpp | /*
*Programa: Pares entre el 1 y el 1000
*Fecha: 21 de Agosto del 2018
*Elaborado por: Juan Diego Rios Ballesteros
*/
#include <stdio.h>
//función principal
int main(int argc, char *argv[]) {
//Variables
int i;
// ciclo para tomar multiplos de 4
for(i = 1; i <= 1000; i++){
if(i % 2 == 0){
printf("%d\n", i);... |
c71d491744d5fb45a5e09b73441266e4a3f57d19 | 9fd16b8b69f2ad2cf849d0ae9a10851fa29f301a | /Classes/main.cpp | f69565fd31b40678a0f22b48cf3340fccb1ebb0e | [] | no_license | sungincho02/A4541 | c16d12fba5bec64e1247e798a5ad7694ce31ccc8 | a6ce3bc45c6276967bb70f156940305c88959a03 | refs/heads/master | 2023-02-27T14:02:53.392343 | 2021-02-08T15:47:29 | 2021-02-08T15:47:29 | 295,785,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,481 | cpp | main.cpp | /*
* Project: Classes
* Author: Sungin Cho
* Date: 10/19/20
* Instructor: Jason Galbraith
* Description: This is a program for managing a list of 3 types of digital media
*/
#include <iostream>
#include <cstring>
#include <vector>
#include <limits>
#include <typeinfo>
#include <algorithm>
#include "Videogame.h"
#... |
bd3a00fced93254c17d5a405500698991a50f0c8 | ef174be2e2f91bf336bfbc0b09899f2211e63561 | /Source/Headers/Reporter.h | 99013221ce1232188c8ce92de6ee2e407ffcd139 | [
"MIT"
] | permissive | lukemetz/cedarCPP | b3ed99280abb942329affa9d9804417dee5f4240 | 175d8ee112efa148617f0840a078c2cdf082b1c6 | refs/heads/master | 2021-01-15T22:58:05.123521 | 2013-07-05T19:02:42 | 2013-07-05T19:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,173 | h | Reporter.h | #pragma once
#include "Spec.h"
#include <exception>
#include "SpecException.h"
namespace cedar
{
class Reporter
{
public:
virtual void successTest()
{
successTests += 1;
std::cout << ".";
}
virtual void failTest(std::vector<std::string> location, SpecException &e)
{
failTe... |
2fe8c61c343cc139b7b3f12552ac596e15e45565 | 952c325ae2117316f4368c9a3ee31ef8748d7fbc | /source/Analysis.cpp | f92c0bd430e8bd9eb496bb1ee1b3bb541726bc23 | [] | no_license | dlont/jetdis | fc2e966a59533835cd9d113c34116eca3616cc9d | f37570b956cbdaf0da8c8516fc463795c2d5b752 | refs/heads/master | 2021-01-19T19:37:40.273363 | 2013-12-09T13:12:52 | 2013-12-09T13:12:52 | 15,046,379 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,235 | cpp | Analysis.cpp | #include "Analysis.h"
#include "TChain.h"
#include "TEntryList.h"
#include "TEventList.h"
#include <iostream>
#include <vector>
#include <utility>
#include <fstream>
#define STOP_CODE -7
using namespace std;
class Analysis;
//!Default constructor
Analysis::Analysis() {}
//!Constructor with initialisation
Analysis:... |
0700405eb074d67bd16069243800255e95d309cf | 02d2343755b3172278bbe16de8e783459550e630 | /abc108/a/main.cpp | 432b59d937ea73606e5acede7e371d9e936b7633 | [] | no_license | naototazumi/AtCoder | 415f2860f65caef7d30d26c4599339ddbe596213 | ede6d13db5d92778237f3481b9cd313465f31047 | refs/heads/master | 2022-04-14T11:33:47.069504 | 2020-04-20T09:29:04 | 2020-04-20T09:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define INF 99999999
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
int main()
{
int K;
cin >> K;
ll ans = 0;
for(int i = 1;i <= K;i++) if(i%2==0) ans++;
if(K%2==0) cout << ans * ans <<... |
6734ed5fc032c950966467f3105e8ddfa39805b9 | 1b9484f051414df045b4be62d44b2e095ba5a71f | /include/ofp/yaml/ymptablestats.h | c5c89a010b50c1dbe23399f78ee0b63eec591090 | [
"MIT"
] | permissive | byllyfish/oftr | be1ad64864e56911e669849b4a40a2ef29e2ba3e | 5368b65d17d57286412478adcea84371ef5e4fc4 | refs/heads/master | 2022-02-17T15:37:56.907140 | 2022-02-01T04:24:44 | 2022-02-01T04:24:44 | 13,504,446 | 1 | 1 | MIT | 2022-02-01T04:24:44 | 2013-10-11T16:59:19 | C++ | UTF-8 | C++ | false | false | 1,352 | h | ymptablestats.h | // Copyright (c) 2015-2018 William W. Fisher (at gmail dot com)
// This file is distributed under the MIT License.
#ifndef OFP_YAML_YMPTABLESTATS_H_
#define OFP_YAML_YMPTABLESTATS_H_
#include "ofp/mptablestats.h"
namespace llvm {
namespace yaml {
template <>
struct MappingTraits<ofp::MPTableStats> {
static void m... |
f069ceacdc00b7d1c5bd39c47109ea3403287f81 | a33377b85c802259b690630cdb04246d6cd2c3d2 | /include/VectorIterator.tpp | df7f311208c03fdcefc5040d3b923be96bbf0afa | [] | no_license | CezaraDulceac/PracticaArobs | e9b5a743f85ed85d0c9dc63f51bf5a6452a8da64 | 0d42d94b327b91c1ae9ae4dc66d91ab38650e7b5 | refs/heads/master | 2022-11-30T20:31:30.378029 | 2020-08-09T21:24:31 | 2020-08-09T21:24:31 | 278,343,209 | 0 | 1 | null | 2020-08-04T09:08:53 | 2020-07-09T11:15:02 | C++ | UTF-8 | C++ | false | false | 1,593 | tpp | VectorIterator.tpp | #include "VectorIterator.hpp"
#include <iostream>
template <typename T>
VectorIterator<T>::VectorIterator(T* value):m_value(value){}
template <typename T>
VectorIterator<T>::VectorIterator(const VectorIterator& rhs):m_value(rhs.m_value){}
template <typename T>
VectorIterator<T>& VectorIterator<T>::operator=(const Ve... |
7a7b927efc9af0810faa37832c3f2ec3af98cbb2 | 22efccb00473119295dc665039f1ff7500f1991b | /src/interface/determine_cell_is_pure.cpp | 18eb5cb057f1a13b59eda3d2a5190594de8f50e7 | [] | no_license | chennipman/MCLS | 7fc62b6920901a2cbb3eb60e6863bb743e87ebca | ae7e89e707cce7b525621d580ea7375c617ca5a8 | refs/heads/master | 2021-01-10T18:51:45.993314 | 2014-08-29T18:07:28 | 2014-08-29T18:07:28 | 16,737,066 | 1 | 0 | null | 2014-08-05T12:49:52 | 2014-02-11T16:27:17 | C++ | UTF-8 | C++ | false | false | 7,357 | cpp | determine_cell_is_pure.cpp | #include "../headers/array.h"
#include<cstdlib>
#include<iostream>
#include<math.h>
/********************************************************************************/
/********************************************************************************/
/* Function to establish the validity of the volume of fluid field ... |
674895d7b0024d8a0893ba75938716764ad702de | 9a94e85ef2820d626cd76123b9aa49190c991003 | /HSPF_MRO_ANDR/build/Android/Release/app/src/main/jni/_root.HSMRO_DropdownOption_BorderColor_Property.cpp | bea0b12fac57f1f7a337e5544300a313db79faaa | [] | no_license | jaypk-104/FUSE | 448db1717a29052f7b551390322a6167dfea34cd | 0464afa07998eea8de081526a9337bd9af42dcf3 | refs/heads/master | 2023-03-13T14:32:43.855977 | 2021-03-18T01:57:10 | 2021-03-18T01:57:10 | 348,617,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,750 | cpp | _root.HSMRO_DropdownOption_BorderColor_Property.cpp | // This file was generated based on '.uno/ux15/HS MRO.unoproj.g.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#include <_root.DropdownOption.h>
#include <_root.HSMRO_DropdownOption_BorderColor_Property.h>
#include <Uno.Bool.h>
#include <Uno.UX.IPropertyListener.h>
#include <Uno.UX.PropertyObj... |
f92e2dfec38cb32a013b7bef636bcb72182d8528 | 80ebe41d667deb94da96585525e4b4f4638476cd | /BattleCityApp/BattleCityApp/animation.h | ed83ed7548db0fcea46fe680ad1085e1f008a756 | [] | no_license | HelgeID/BattleCityApp | 0a1f6a4ff4ebc00424923eaf843ecfadd291d215 | c9d74b1a6816d031ffd55c93410eb91ccc5a66e6 | refs/heads/master | 2020-06-28T22:41:40.067080 | 2019-07-31T08:00:00 | 2019-10-13T20:19:27 | 199,274,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,349 | h | animation.h | //FINAL
#ifndef ANIMATION_H
#define ANIMATION_H
#include <SFML\Graphics.hpp>
/////////////////////////////////////////////////////////////////////
// class Animation
/////////////////////////////////////////////////////////////////////
class Animation
{
private:
const sf::Texture* ptrTexture;
std::vector<sf::IntRe... |
d7fc92573f14a8fb5fbf03488c2e7657ae069a8e | 667b7f0280f01aa18cbaa3666f4a319f2deb63de | /AC Circuit Final Version/AC Circuit Project Final Version/AC Circuit Project Final Version/ComponentLibraryCreator.h | 7b180e75e5a8f3575a5f191cea28e7ce788f0946 | [] | no_license | lgaidoni/OOP-AC | ba620c5aaf701bec11c1ec01ec4f13f81eda1eb8 | 048818de05b0d7f4fb6bb106b84aa2ec8471795d | refs/heads/master | 2020-05-02T07:18:33.962773 | 2019-03-26T15:33:18 | 2019-03-26T15:33:18 | 177,814,362 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | h | ComponentLibraryCreator.h | #pragma once
//Normal includes
#include <iostream>
#include <sstream>
#include <vector>
#include <iomanip>
//User defined headers
#include "CircuitObject.h"
#include "UserInputFunctions.h"
#include "Resistor.h"
#include "Capacitor.h"
#include "Inductor.h"
#include "Options.h"
//Using the standard nam... |
db791ba184483831ba2aef0593c44dd8bdb8e8f8 | be486f49b047e76af9442fa53b1f14eaafc2874d | /baekjoon/1377 버블 소트/file.cpp | 589174fbe48bc271f9f2831381ea59e3fa412f1e | [] | no_license | kkbwilldo/all-problems | d2703d0e68c27dafa7232ccda43a867b36416ce0 | b4388e5f884d6a8d5e59e4243c587695587aae30 | refs/heads/master | 2023-01-21T22:55:18.236572 | 2020-12-05T06:37:55 | 2020-12-05T06:37:55 | 248,887,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | cpp | file.cpp | #include <iostream>
#define endl '\n'
using namespace std;
const int MAX=500010;
int num;
int a[MAX];
void BubbleSort(){
bool change=false;
for(int i=1;i<num;i++){
change=false;
for(int j=1;j<=num-i;j++){
if(a[j]>a[j+1]){
change=true;
int temp=a[j+1];
a[j+1]=a[j];
a[j]=temp;
}
if(!chan... |
36035125af9fee822148f3200f96382c3a23fed8 | 1463abcfbe949dcf409613518ea8fc0815499b7b | /sprout/weed/traits/type/is_string.hpp | b12d4ce9e1b45452ad32e46a669e7475f0bde133 | [
"BSL-1.0"
] | permissive | osyo-manga/Sprout | d445c0d2e59a2e32f91c03fceb35958dcfb2c0ce | 8885b115f739ef255530f772067475d3bc0dcef7 | refs/heads/master | 2021-01-18T11:58:21.604326 | 2013-04-09T10:27:06 | 2013-04-09T10:27:06 | 4,191,046 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | hpp | is_string.hpp | #ifndef SPROUT_WEED_TRAITS_TYPE_IS_STRING_HPP
#define SPROUT_WEED_TRAITS_TYPE_IS_STRING_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/string.hpp>
namespace sprout {
namespace weed {
namespace traits {
//
// is_string
//
template<typename T>
struct is_string
... |
48f14bf5250e4fa47a335c27f2f1fc4cdf81da00 | 4af8cc30af42a826608222883b1c55e4c8a6b8f7 | /prj/GooseBerry/src/GB_Color.cc | 4b5aa7077f51ddbb3a7bc5a49681513680bf1946 | [] | no_license | ManicPumpkin/Project-O.R.B.S. | 98154d5a1da5cf6912931460964b9094a1079c88 | 162ff4171231d25062dad8349d402e3d1a1695f0 | refs/heads/master | 2021-01-21T08:05:31.515159 | 2016-11-21T01:39:05 | 2016-11-21T01:39:05 | 15,568,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,533 | cc | GB_Color.cc | /**
@file GB_Color.cpp
@brief Implements GB_Color methods
@author drubner
@date 2013-08-28
**/
//==================================================================
// Include
//==================================================================
#include "GB_Color.h"
//===============================================... |
824462930b5c5796eaacc29db9ab2d04de2f185d | 306232bfafeb2b88e353c4ffa7fd9946654b15d8 | /Engine/Engine/GlobalRenderingParams.cpp | 12e0e4793538e0703ff8e14615bd7499e269bf6b | [
"Zlib"
] | permissive | Aloalo/Trayc | 35b9f1161e64d84e1ac35df0f03b46422af2b9a5 | 048e36934b1b4dc87449feaf6f89b0161b2d08af | refs/heads/master | 2020-04-12T02:22:36.696046 | 2019-06-01T11:38:09 | 2019-06-01T11:38:09 | 26,697,097 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 176 | cpp | GlobalRenderingParams.cpp | #include <Engine/Engine/GlobalRenderingParams.h>
namespace engine
{
int GetMRTIdx(TextureType type)
{
return type - TextureType::CT_MAT_TEXTURE_TYPES;
}
}
|
13706ecce68614814e5c0cea54283f18de6ae4fb | e2a5a93292d5a61c9a8622576cb1a56a71caf8cd | /data/maps/ArtisanCave_B1F/scripts.inc | ac16e4227293c7c8818aeb54df25f966c6158abf | [] | no_license | BelialClover/pokeemerald_rowe | d9b918ff034ee7d0f7255403840e916029c00623 | 752638c80d7157cf380520f605d8e617cbeaa218 | refs/heads/master | 2023-07-28T21:38:02.770418 | 2021-09-28T21:56:22 | 2021-09-28T21:56:22 | 398,417,858 | 3 | 0 | null | 2021-08-22T12:15:41 | 2021-08-20T22:57:10 | Assembly | UTF-8 | C++ | false | false | 1,264 | inc | scripts.inc | ArtisanCave_B1F_MapScripts:: @ 823AFAD
map_script MAP_SCRIPT_ON_TRANSITION, ArtisanCave_B1F_OnTransition
.byte 0
ArtisanCave_B1F_OnTransition: @ 823AFB3
setflag FLAG_LANDMARK_ARTISAN_CAVE
end
ArtisanCave_B1F_EventScript_Latios::
lock
faceplayer
waitse
playmoncry SPECIES_LATIOS, 2
delay 40
waitmoncry
setwil... |
bcb06b3a083582b95af036d80a470bdd215030bf | d2847848e1decbb8076345ebcc71223edf47ac80 | /askap/scimath/fitting/GenericNormalEquations.h | fd8304c9e5b3a047e2b31a52134f6a0579fa4aaa | [
"MIT"
] | permissive | lao19881213/base-scimath | fd274a76ea386fb3f659666812b1ab522ad3bc65 | bfbe6b01be130d83f116c11f48189062782ced35 | refs/heads/main | 2023-05-31T03:23:03.407735 | 2021-06-12T06:38:52 | 2021-06-12T06:38:52 | 376,219,225 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 18,172 | h | GenericNormalEquations.h | /// @file
/// @brief Normal equations without any approximation
/// @details There are two kinds of normal equations currently supported. The
/// first one is a generic case, where the full normal matrix is retained. It
/// is used for calibration. The second one is intended for imaging, where we
/// can't afford to ke... |
9522b7b63f2fd754e2436be5442a08505e8145dc | 735a7df620232d87a54c4e53c86ea8d0c07b6afa | /Concurso_3/A.cpp | ff8357ef8dc7dee99c60417e96d667fba385cb9e | [] | no_license | DanielCuSanchez/vjudge-ejercicios-algoritmos | 7916026b66932a9649c310a34093265558aa167a | 097e768f4d29f98807f28f06defa64e8d5e7f77c | refs/heads/master | 2023-05-28T11:53:41.266514 | 2021-06-10T15:00:05 | 2021-06-10T15:00:05 | 361,593,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | cpp | A.cpp | /*
Daniel Cu Sanchez
A01703613
*/
//A - Problem 160A
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int numberOfCoins, a[100], sum = 0, ans = 0, counter = 0;
cin >> numberOfCoins;
for (int i = 0; i < numberOfCoins; i++)
{
cin >> a[i];
}
sort(a, a + numberOfCoins);
... |
32de6bdfdf641fd6a958cae16c4b83d983267df4 | eb95a186af602d623b73a20b8d29d16789036a77 | /Game/MyProject/Game/BasicMenu/FirstMenu.cpp | cdac323f61b6dbc35d4ff8f375339b39b28f6108 | [] | no_license | sabauandrei98/RacingGame | edd89aaf1ef19ee2cd146d3311b963e52eb7676a | f225936370db3872f7a8e2dd45f1152dd4b85f98 | refs/heads/master | 2020-05-04T07:32:24.919402 | 2019-05-23T13:40:22 | 2019-05-23T13:40:22 | 179,030,272 | 0 | 0 | null | 2019-05-23T13:40:23 | 2019-04-02T08:12:43 | C++ | UTF-8 | C++ | false | false | 2,885 | cpp | FirstMenu.cpp | //-------------------------------------------------------------------------------
//-- FirstMenu.cpp --------------------------------------------------------------
//-------------------------------------------------------------------------------
#include "FirstMenu.hpp"
//-----------------------------------------------... |
01dad2f9073b30807498b246b257956b744b65a9 | f821e756a85def979302e35053b8584ccb511edf | /Ejercicio 3.ino | 53e3f6a890fdfd668e04379c59de1d8983a623ae | [] | no_license | PalomaPavoni/Desaf-o-27-de-mayo | d9ba9659e16b7dbd3d5a09ea9b81b6500325b546 | 14541f45f7e730f11288bacdd3ad3790a01779da | refs/heads/main | 2023-05-14T03:38:34.785058 | 2021-06-02T19:18:22 | 2021-06-02T19:18:22 | 371,829,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | ino | Ejercicio 3.ino | void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("funcionamiento ok.");
delay(1000);
}
void serialEvent(){
String lectura = Serial.readString();
if(lectura.equals("hola")){
Serial.println("full picado pa");
}
}
|
5df4b5fb9e6e327c221e992605676b6870749928 | c279a2fcb56de70f5cac2c8e890f155e177e676e | /Source/Plugins/SubsystemPlugins/BladeUI/header/interface/IUISystem.h | bf6a7b5821a80a49328ef5e56b106b53d002b005 | [
"MIT"
] | permissive | crazii/blade | b4abacdf36677e41382e95f0eec27d3d3baa20b5 | 7670a6bdf48b91c5e2dd2acd09fb644587407f03 | refs/heads/master | 2021-06-06T08:41:55.603532 | 2021-05-20T11:50:11 | 2021-05-20T11:50:11 | 160,147,322 | 161 | 34 | NOASSERTION | 2019-01-18T03:36:11 | 2018-12-03T07:07:28 | C++ | UTF-8 | C++ | false | false | 570 | h | IUISystem.h | /********************************************************************
created: 2010/04/29
filename: IUISystem.h
author: Crazii
purpose:
*********************************************************************/
#ifndef __Blade_IUISystem_h__
#define __Blade_IUISystem_h__
#include <BladeUI.h>
#include <interface/pub... |
34c9084ddc89d70d02ecdce04e9687ca47573f4a | 8a4401e9985a059aff8aa8eab1dd8564d5e7409c | /SpaceInvadersWindows/BulletConstructor.h | e9890b4afb534bdc95407c8a301bf11c9cb6d703 | [] | no_license | DanOpdyke/Game-Engine-Windows | 0ecf3971aab53623185e66fc5aa36fadc93b344c | 229aae4ff98dec49687a176ac875716133c55ee6 | refs/heads/master | 2021-01-25T08:42:19.173022 | 2015-10-13T01:10:54 | 2015-10-13T01:10:54 | 42,748,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | BulletConstructor.h | #pragma once
#include "GameObjectConstructor.h"
namespace SI
{
class BulletConstructor :
public GameObjectConstructor
{
public:
BulletConstructor();
~BulletConstructor();
// Inherited via GameObjectConstructor
GameObject & configureObject(RenderSystem & renderSystem, LevelInputHandler & inputHandler, Ga... |
89c5633d6114ebed2b31f3b2b127377debfe9381 | de4cf9d9c6a0e799bbf4d596ad2b81f4d673dafd | /chat.cpp | 2dd7d1431bf8463bf9e0b891b69c1aecfe6e23a3 | [] | no_license | samuraiexx/ChatP2P_UDP | e8521625240d50cca3732a764c7ddd57eaac35aa | e5e6b891721482e6a2888a6215ce387ce470c631 | refs/heads/master | 2021-07-14T14:28:02.597413 | 2017-10-14T16:00:05 | 2017-10-14T16:00:05 | 105,715,973 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,833 | cpp | chat.cpp | #include <iostream>
#include <vector>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <thread>
#include <iomanip>
#include <sstream>
#include <mutex>
#include <queue>
#include <unistd.h>
#include <sys/fcntl.h>
... |
76c86af1d2381f01839af6ad5e21392ab598f8d8 | cc13cce6c2c03b8a9c776a16dbd2dd3206cb03f6 | /user/WBC_Controller/WBC_States/Bounding/CtrlSet/KinBoundingAux.cpp | cacfbeb51c951e9bd586cae6f575f94e07f811a8 | [
"MIT"
] | permissive | alexhaislip/mit_mini_cheetah | fd91667ffd3324ee68da0b3003ffed3d8ea23bed | 4c3d6f9f34598b3e139bb30f4389d0c3b6b6fe74 | refs/heads/master | 2023-02-10T17:29:57.050879 | 2021-01-14T01:35:22 | 2021-01-14T01:35:22 | 470,216,254 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,434 | cpp | KinBoundingAux.cpp | #include "KinBoundingCtrl.hpp"
#include <WBC_States/Cheetah_DynaCtrl_Definition.h>
#include <WBC_States/Bounding/TaskSet/BodyRyRzTask.hpp>
#include <WBC_States/Bounding/TaskSet/BodyXYTask.hpp>
#include <WBC_States/Bounding/TaskSet/LocalHeadPosTask.hpp>
#include <WBC_States/Bounding/TaskSet/LocalPosTask.hpp>
#include <... |
754067e8697986f0217ca0a3c0986b7a93d4cdd4 | c6847d62a4a35906bff53522bf3f20f8a6753c4c | /Flag.cpp | 8e1804ea14b61659ae739bbdc7ba45d6e197d9c3 | [] | no_license | alizare1/super-mario | bd70394a4fd960a1d4836d5de639187e4feec900 | 4846eb67e39a8635a5fed5d1d9cf1f2a86c5391e | refs/heads/master | 2021-06-12T20:17:52.808853 | 2021-05-30T06:31:58 | 2021-05-30T06:31:58 | 198,785,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | Flag.cpp | #include "Flag.h"
Flag::Flag(Point headPos, int _height)
:position(headPos, BLOCK_SIZE, _height * BLOCK_SIZE),
height(_height) {}
void Flag::draw(Window* win, int winOffset) {
drawHead(win, winOffset);
if (height > 1)
drawBody(win, winOffset);
}
void Flag::drawHead(Window* win, int winOffset... |
67f6748eb2ab8013c243e1ad28ffdc4213ddce4a | c6c9555e656c801ae580443260d6e01cdd6f8f01 | /cppitertools/permutations.hpp | 1d0e4442988af8057d2e9cd8e4a3e788a4514df1 | [
"BSD-2-Clause"
] | permissive | caomw/imageTriangulator | eabb5207b753262981a41207cf31d33ab30e07de | d2166f72eb7b5ff14f8a9ef3c3717d9d4f47bff6 | refs/heads/master | 2021-01-21T16:53:29.497463 | 2014-06-10T01:14:11 | 2014-06-10T01:14:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,180 | hpp | permutations.hpp | #ifndef PERMUTATIONS_HPP
#define PERMUTATIONS_HPP
#include "iterator_range.hpp"
#include <algorithm>
#include <initializer_list>
#include <vector>
namespace iter {
template <typename Container>
struct permutation_iter;
template <typename Container>
iterator_range<permutation_iter<Container>>... |
afb9f018e5d2ea5f6fdfabdf445a0c04b19bcf03 | 5f6e42e41b04b369c1fe1c046cbe9d8c5fba3080 | /Software Projects/Implementation of a UML Class Application/Circle.cpp | 6bbaabfea993a87ab7911d0837fa57eacf6d52ad | [] | no_license | hshahzada/engineering-projects | e242dbe9515116b0c0746e5e9a7bfa24de0ca424 | 976a86e787182988fd374544b6ee89c93f571c78 | refs/heads/main | 2023-09-02T23:27:02.592600 | 2021-11-22T21:30:07 | 2021-11-22T21:30:07 | 430,847,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | Circle.cpp | #include "Circle.h"
Circle::Circle(string color, double radius) : Shape(color), radius(radius) {
};
void Circle::print() {
double area = 3.14 * radius * radius;
cout << "Circle R=" << radius << ", area=" << area << ", " << getColor() << endl;
};
Circle::~Circle() {
};
|
dff12415a3e702262ae34a3f719420258de8e241 | a1e9b5703039e08f153c4c129d106abcc37778c2 | /上传版本/初赛/4_26/main.cpp | 4b6d6b267f1b962abfe0cb56cb1a162af8139f51 | [] | no_license | baoyi84930/HuaWeiCodeCraft2020 | d59c099e2d9480806a7277ef4dd7b45ca4002448 | 51c96eae8bf7df26b6c43e25ffd2f70486f99923 | refs/heads/master | 2022-07-12T22:07:19.533983 | 2020-05-16T17:14:47 | 2020-05-16T17:14:47 | 264,480,799 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,854 | cpp | main.cpp | #include <bits/stdc++.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
using namespace std;
struct Node{
string s;
int length;
Node(string s,int length) : s(s) ,length(length){}
bool operator<(Node &node) const {
if (length != node.length)
return length < node.length;... |
e2aa233243382eccf120520339a235b3279af0ff | 4f870ad0794d9e9e550a5ed38aec5941eebcd463 | /Samples/LibTest/TestCases/CollectionTest.cpp | 27d67fb76fbf10cb6002685d991bc417e10b0231 | [] | no_license | Hongtae/DKTools_Legacy | 5d2efccad15ee1523c2c8e6d7828743aac1bf1d3 | 17c989695c8dac89b2b246fa61d1d37fce4f48ae | refs/heads/master | 2020-04-09T15:31:51.512556 | 2015-02-21T04:05:03 | 2015-02-21T04:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,440 | cpp | CollectionTest.cpp | #include "../TestCase.h"
struct CollectionTest : public TestCase
{
bool EnumFuncArrayAndSet(const int& a)
{
DKLog("[%s] value=%d\n", DKLIB_FUNCTION_NAME, a);
return true;
}
bool EnumFuncPair(const DKMap<int,int>::Pair& p)
{
DKLog("[%s] key=%d, value=%d\n", DKLIB_FUNCTION_NAME, p.key, p.value);
return tru... |
b643dee36201b0e652fef98cdaea41bcdd01fc62 | 2124d0b0d00c3038924f5d2ad3fe14b35a1b8644 | /source/MagFieldManager/include/UniformFieldCreator.hh | 0a5c0b94984a2f97eec712c79cbf891c0bc28f73 | [] | no_license | arceciemat/GAMOS | 2f3059e8b0992e217aaf98b8591ef725ad654763 | 7db8bd6d1846733387b6cc946945f0821567662b | refs/heads/master | 2023-07-08T13:31:01.021905 | 2023-06-26T10:57:43 | 2023-06-26T10:57:43 | 21,818,258 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | hh | UniformFieldCreator.hh | ///////////////////////////////////////////////////////////
/////////Code developed by SpaceIt GmbH, Bern Switzerland
/////////For the Space european Agency
/////////First Author :L. Desorgher
///////////////////////////////////////////////////////////
#ifndef UniformFieldCreator_HH
#define UniformFieldCreator_HH 1
#... |
e5fd43a0e9722b62118c46a3c1e5502427e3e47b | 281c2763051432271b132499702860bd2b3f5ffa | /Volume_21/2190_Angel_Stairs.cpp | 59c6a20efb1ae5c38f891a3986192931a0c8923b | [
"Apache-2.0"
] | permissive | dtbinh/AOJ | 27c95c32a829adbee37431e6e5f510723992fe45 | f4fc75717e67b85977f5ba0ccf9e823762e44a45 | refs/heads/master | 2021-01-24T23:42:46.858379 | 2015-05-25T17:05:03 | 2015-05-25T17:05:03 | 36,429,163 | 1 | 0 | null | 2015-05-28T09:46:45 | 2015-05-28T09:46:44 | null | UTF-8 | C++ | false | false | 2,001 | cpp | 2190_Angel_Stairs.cpp | #define _USE_MATH_DEFINES
#define INF 0x3f3f3f3f
#include <iostream>
#include <cstdio>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <queue>
#include <stack>
#include <limits>
#include <map>
#include <string>
#include <cstring>
#include <set>
#include <deque>
#include <bitset>
#i... |
a150b26830117b03f6c2aee6438bf57ffec1de32 | a92237bd9b14f588b9fdae06f60ddca998f504c3 | /src/pieces/King.h | 18b14622543af8445c241896f1e893d348a300d0 | [] | no_license | darrian12/Chess | 2149c132fb962d8c486251d3f02c12135d8052f6 | 13ef6491d5832540132d1f310881a424c5287cbe | refs/heads/main | 2023-02-24T23:19:25.336811 | 2021-01-31T22:10:27 | 2021-01-31T22:10:27 | 334,757,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | h | King.h | #pragma once
#include "Piece.h"
class King : public Piece
{
public:
King(int tile, COLOR color);
~King();
void SetupMoves() override;
private:
};
|
bd5472abbdb5400d32704cea4f5815df3200999f | d3fcfcc53ac6a18ed64debb8264a4bab9ed56d53 | /guidance-sdk/demo/obstacle_bypass/balance_strategy/src/dji_sdk_node.cpp | 32e2c03e2efb5ce75b4e30e795d2765f693e7b17 | [] | no_license | Foyoung-com/fy-cv-guidance | 0907e7166249d881b0e8d8175dce4b8fffecc36a | 6216cf79f082e16ea0615c05a55d0dab8e41fba0 | refs/heads/master | 2021-01-11T19:01:53.569499 | 2017-04-02T10:05:35 | 2017-04-02T10:05:35 | 79,295,736 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,570 | cpp | dji_sdk_node.cpp | /*
============================================================================
Name : dji_sdk_node.cpp
Author : Mario Chris
Description : Obstacle Avoidance
============================================================================
*/
/* System */
#include <stdio.h>
#include <stdlib.h>
#include <st... |
34573ddd34892fce2fa853985adcc66e8efe01f0 | 64f873f96cb17bd57f83ae6e7116a1f7da6a47a5 | /CoordinateMappingBasics-D2D/include/glprint.hpp | e9b514996f94dddee6efb80ee210a02a3ad7ece3 | [] | no_license | miftahulbagusp/Virtual-shoes-try-on | 9932b370b0c82c0bbf9931b436de5d5393136b27 | 61a363a41231b8536c61935f9c4840a67deb1850 | refs/heads/master | 2022-01-07T03:40:39.635421 | 2019-04-28T11:37:02 | 2019-04-28T11:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,287 | hpp | glprint.hpp |
#ifndef __GL_PRINT__
#define __GL_PRINT__
#include <stdio.h>
#include <string>
#include <windows.h>
#include <time.h>
#include <math.h>
#include <gl/glut.h>
#define GP_MAX_CHAR 128
#ifndef GP_PI
#define GP_PI 3.1415926535f
#endif
#define GP_ENG ANSI_CHARSET
#define GP_CHS GB2312_CHARSET
#defi... |
351d843138d8e75de551c7a3d3257c9e9c3af573 | 63e690e784aab87672dc80f9166f3fabca952063 | /Item.hpp | a015c0551576f1c0be73e5ea533f73c4352fad5f | [] | no_license | JohnYoon13/textAdventureGame | a95ee16ec781b19ce7162093b73857caffa32f86 | b376aee9223ab36b7d70635c0b4c0e1befd980af | refs/heads/master | 2021-05-12T15:40:45.090323 | 2018-01-10T17:48:48 | 2018-01-10T17:48:48 | 116,990,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | hpp | Item.hpp | /************************************************************************
** Author: John Yoon
** Description: Item [Interface] - The class that represents the items
that Mr. Incredible can collect during his adventure.
************************************************************************/
#ifndef ITEM_HPP
#define ... |
fc71983d9d1004744e7aba951d5679ff550daf25 | cfc37564b429df991a362da0e625f898cad74d33 | /client.cpp | 955574a3925ae4056e12048fcaaa382acf10d294 | [] | no_license | heweisheng/learn | eeeb8057beafc50dc6e9b09b42f1df96bb8e00ae | 7664c055fbebf0d8a46af2d0356c940c6ce2337e | refs/heads/master | 2020-04-06T14:27:37.007214 | 2019-11-14T13:24:55 | 2019-11-14T13:24:55 | 157,541,765 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 648 | cpp | client.cpp | #include"block.h"
#include"Socket_TCP.h"
typedef struct//不考虑主机字节序问题
{
int size;
char *buff;
}buff;
int main()
{
Tcp_client cli("127.0.0.1", 43491,0);
int fd = cli.Connect();
if (fd == -1)
ERR_EXIT("ser");
buff send;
while (true)
{
char *str = new char[1000];
scanf("%s", str);
send.size = strlen(str);
... |
70f448660644720ab313a6d727963223afab5650 | 3a785d999582988111f553aa3dc24c038842fd9c | /src/Diff2D/prob.cpp | f57b7a653e984dcc4d076e6f2500229bb3ec7a9f | [] | no_license | chuck1/Diffusion2D | 17ea84a80ca7f788d9a5ac28c516f8bbada78a9d | 173dbb0bbd5f9a06d11704ce3209091a446409da | refs/heads/master | 2016-09-06T05:36:39.147113 | 2014-12-05T20:25:56 | 2014-12-05T20:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,529 | cpp | prob.cpp | #define _POSIX_SOURCE
#include <sys/stat.h>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <Diff2D/config.hpp>
#include <Diff2D/face.hpp>
#include <Diff2D/prob.hpp>
#include <Diff2D/util.hpp>
#define REPLACE_MIN(x,y) if(y < x) x = y;
#define REPLACE_MAX(x,y) if(y > x) x = y;
Prob::Prob(
std::s... |
54fa8d36fc7020d09d5382e833cb67f9ff061487 | fd24837a20e4e6e37d5f9bebb3873f7010edee3e | /matrix4.cpp | 93439eeca4de950af857f363dd5ca643bedcf142 | [] | no_license | rafaelsales/CG_Camera | 5ad22423a7a4bc94473c2c65018c007d769b4614 | fb89bd3f352dd9806916e8c9378386c924714e3f | refs/heads/master | 2020-04-07T14:30:07.690842 | 2011-11-17T01:19:13 | 2011-11-17T01:19:13 | 2,780,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,977 | cpp | matrix4.cpp | #include <GL/gl.h>
#include <math.h>
#include "matrix4.h"
#include "vector3.h"
#include "point3.h"
Matrix4::Matrix4() {
// Inicializa como identidade:
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (i == j) {
(*this)(i,j) = 1.0;
} else {
... |
ee613df7ff0ac1882c3ad24005fa8c2fca0e61ce | fe17aed136b0981e530922104325e6d8dfcc21e6 | /src/Image/EquivalenceTable.h | bc8026ba6792df1a9d4da3775f66c8e6a0bceea8 | [] | no_license | mohammadalihedayat/Digital-Image-Processing-and-Computer-Vision | 2226e09255890ea91193831176778865714b0187 | e4c1cbe24678475a8caaed3bf1630b13e5b36083 | refs/heads/master | 2021-06-07T00:49:42.152424 | 2016-09-17T00:35:44 | 2016-09-17T00:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,847 | h | EquivalenceTable.h | /*
* Copyright (c) 2004,2005,2008 Clemson University.
*
* This program 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; either version 2 of the License, or (at
* your option) any later version.
*... |
fae40d94de4cbfcf06ded16f597c43b421daa182 | 200e2fabc88dd03edeb1446c4be7f709a0328f3f | /learnCppProject/LearnCppProject/LearnOpenGL/src/ModelFileHelper.cpp | b93aabd127eef05d6b24dd10c7d81b9be90338ff | [] | no_license | wangtianhang/LearnCpp | 9d5c5b21e4fea0364398b846ee29d1a634258ee7 | eb7934a7d5e203024364c3a7d9f63c50ef505401 | refs/heads/master | 2020-06-18T17:22:57.462292 | 2019-11-22T06:14:30 | 2019-11-22T06:14:30 | 196,380,109 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 20,169 | cpp | ModelFileHelper.cpp | #pragma once
//#include <iostream>
//#include <string>
#include <fstream>
#include<sstream>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "./DebugMemory.h"
#include "./ModelFileHelper.h"
#include "./GUtil.h"
#include "./Learn3D/MathHelper.h"
/*
*/
extern MeshF... |
4b6f508119e1030979edfc3be01f38aab2851e70 | eae8c2b8970210ef5e3b25bfb77d703818b351c1 | /Common/SafeQueue.h | 8a5f864408f105faa7c7052a5d4fc0b56c728ee4 | [] | no_license | fpusderkis/TP-Final-Taller-I | 62f971d025c544953d341e711fa448341cd1719a | d30301a96fea7ba641574112e39646211924db49 | refs/heads/master | 2022-01-19T23:00:49.506962 | 2019-06-26T02:49:01 | 2019-06-26T02:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | h | SafeQueue.h | #ifndef PORTAL_PROTECTEDQUEUE_H
#define PORTAL_PROTECTEDQUEUE_H
#include <condition_variable>
#include <queue>
#include <memory>
#include <Common/ProtocolTranslator/ProtocolDTO.h>
#include <iostream>
// Monitor de la cola, responsable de agregar los elementos e
// interpretar los mismos controlando los posibles threa... |
5d30e49d195720af99c50b0cc535696a8412f6c6 | 3b4af5aca9761277fdf82efe3e2462ff7b0a4e9c | /SCar-ESB32_code/Bluetooth.ino | ecfe5371542a30432d1157a80ca1b2482b8d6459 | [] | no_license | mohamedotaki/S-Car | 490d1224d9c2a2e4c81988c09aea1def939a004b | 99dedc4d9df7753890dcf2de04b8cb0d2a4d08dc | refs/heads/main | 2023-05-15T04:43:19.598914 | 2021-05-19T16:18:10 | 2021-05-19T16:18:10 | 309,731,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,905 | ino | Bluetooth.ino | void bluetooth() {
if (SerialBT.available()) {
switch (SerialBT.read()) {
// user is in control car activity start sending sensors value to the app
case 'C': {
//set all the bits to high
Serial.println("in control car activity start sending sensors vlaue");
vTaskResume( u... |
0d38d76b2574d8dd24a2c9efb40f63a1f8666dfe | 8a4d44fb90eab0a9875a4f3d02efd9c4a6a52a9e | /src/memalloc/tests/memory_test.cpp | 1e99dff44ebabdac593a48b8ab202d2925e440b1 | [
"MIT"
] | permissive | vasil-sd/engineering-sw-hw-model-checking-letures | 7e2a89900099a1af6b1b2f9ab1b7a9d41ef79014 | b6aaa096eb033670a5643cc5ae1d5b63798e38f0 | refs/heads/master | 2023-04-06T14:23:53.391411 | 2021-04-19T06:26:36 | 2021-04-19T06:26:36 | 293,767,366 | 20 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,128 | cpp | memory_test.cpp | #include "memory.h"
#include <iostream>
#include <cstddef>
#include <vector>
static const size_t pool_size = 65536;
static char mempool[pool_size];
static Memory mem{mempool, &mempool[pool_size]};
void Test() {
struct Something {
int a;
int b;
};
std::cout << "Initial: " << std::end... |
861678c6de9eea25cafd2bb00cf64a3e74a29daf | c0f2c548fa1c0fb50a2b612f11ef6b9d264e429f | /socket/DefaultClientSocket.h | 8fe4aaebe5bf38f16ec66d084b16cbd1aee676f6 | [] | no_license | zcj6758/TCP_Nat_Traversal | f76985fca0fce685ff6b63f2ee70fe54ce24e603 | 588b6339a38cb53fde323beb1fcb3740e19532dc | refs/heads/master | 2023-03-18T04:57:55.514076 | 2018-06-27T05:14:00 | 2018-06-27T05:14:00 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,772 | h | DefaultClientSocket.h | #ifndef DEFAULT_CLIENT_SOCKET_H
#define DEFAULT_CLIENT_SOCKET_H
#include "../include/socket/ClientSocket.h"
#include "DefaultSocket.h"
LIB_BEGIN
#define DEFAULT_READ_BYTE 512
class DefaultClientSocket : public ClientSocket
{
public:
DefaultClientSocket() :m_bHasConnect(false) { }
explicit DefaultClientSocket(... |
cd2fb2cea10f59ac829fc93ab350bf34b4188608 | caaa22d93fa1fc79fe2f68fa54b9c7650a774644 | /02-Number Theory/extended_gcd.cpp | 6c9c6d4876d2c5fa1d7cd17d27e86489e9386ddd | [] | no_license | soumilk/Algorithms_and_Their_Techniques | 6b9575d0bd589a13b44ca082580f317641bc4163 | 49a658a0e8eb55e4d4c50a17f5b83dc719da0611 | refs/heads/master | 2020-04-18T06:32:12.755468 | 2020-02-03T08:46:30 | 2020-02-03T08:46:30 | 167,324,935 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | extended_gcd.cpp | //
// Created by soumil on 8/17/2019.
//
/*
* This is the program in which we will extend the implementation of the euclid's GCD
* The problem is to find out the x and y which satisfies the equation :
Ax + By =GCD(A,B)
*/
#include<iostream>
using namespace std;
int x,y,gcd;
void extended_gcd(int a,int ... |
793c7e423406e0b167d1d6419aa19a826b0dfdbf | e9a8cc296c3defae37471477270dbe9c2a434327 | /Zeiterfassungssystem/Zeiterfassungssystem/Kalender.cpp | 7cc3106bc77a0d5f77aba84dea05f294b570b13f | [] | no_license | Toniaaaa/Arbeitszeitenerfassungssystem | cd0eefdb08fb43223878d5c2405e7cc659d64039 | 99c93074e9b86b53e8a920525a874114f8537494 | refs/heads/master | 2020-03-27T09:01:34.789403 | 2018-11-15T18:58:48 | 2018-11-15T18:58:48 | 146,307,738 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,201 | cpp | Kalender.cpp | #include "Kalender.h"
Kalender::Kalender()
{
}
Kalender::~Kalender()
{
}
//Kalenderwoche eines Tages berechnen
Int32 Kalender::berechneKW(DateTime^ tag)
{
//"Kultur" wird auf deutsch gestellt
CultureInfo^ meinCI = gcnew CultureInfo("de");
//Ein Kalender nach deutschem (mitteleuropäischem) Standard wird erstellt... |
997a6e799aad48905a5633974133976a1a06d738 | b4e7a8d779d813c5e6b229ed3aad0afb6c015f0b | /tcbdb/TcbDB.hpp | 2b145375238d5608e8b8ba4f3da701ff006071a5 | [] | no_license | yangjietadie/db | 2b9c7ba963827812b62ae023311b0965911c3dd5 | cfefa3c84fff1336304a68187f9f22408a3ba4ce | refs/heads/master | 2023-07-14T13:21:49.820343 | 2021-08-17T09:15:43 | 2021-08-17T09:15:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,749 | hpp | TcbDB.hpp | /*
** Copyright (C) 2015 Wang Yaofu
** All rights reserved.
**
**Author:Wang Yaofu voipman@qq.com
**Description: The header file of class TcbDB.
*/
#pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include <tcbdb.h>
// START_NAMESPACE
struct Options {
int32_t membersOfLeaf = { 1024 };
int... |
eb089b96fc8c153323a4118831950a461a079b4a | 866bc8ae07353f7fdf21a2a2ebbf29fc1307c59e | /Client/EquipBar.cpp | 276b93196424ddce4d4c9f459e014b3c5665d95e | [] | no_license | kdd6826/TalseWeaver11 | d0aa78d804f3daf264c35ca1e80d39f0b1950711 | 7d6955869e9a87d44f5918de60f50924ddd7183b | refs/heads/master | 2022-12-17T09:31:09.025516 | 2020-09-17T16:47:00 | 2020-09-17T16:47:00 | 296,386,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,096 | cpp | EquipBar.cpp | #include "stdafx.h"
#include "EquipBar.h"
#include "Monster.h"
#include "KeyManager.h"
CEquipBar::CEquipBar()
{
m_ObjId = OBJ::OBJ_BUTTON;
ZeroMemory(&m_tFrame, sizeof(FRAME));
}
CEquipBar::~CEquipBar()
{
Release_GameObject();
}
HRESULT CEquipBar::Ready_GameObject()
{
m_tInfo.vPos = { 790.f, 150.f, 0.f };
m_tInf... |
116dd94aec65fa03a271beae499832de87ff32ac | 4b54f8a04a140ff4e043b7286cad71a00dd762ff | /list-entry.cpp | 48ee9f4b6bb8d974f049faf244403e0c4c015eca | [] | no_license | saji-spoon/SM-Tapu-RNGTool | 5e39fe93b5134565c6ad660771b67186ccfd75d5 | 6f3e10cfb47011620bc7ae41534f828925375449 | refs/heads/master | 2021-01-11T15:04:00.292028 | 2017-03-16T13:47:47 | 2017-03-16T13:47:47 | 80,290,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | list-entry.cpp | #include"list.hpp"
int main(int argc, char* argv[])
{
if(argc < 2 || strlen(argv[1]) < 8)
{
printf("Usage: %s 1234FEDC\n", argv[0]);
printf("Seed(32 bit) is required.\n");
return 1;
}
uint32_t seed;
std::stringstream ss;
ss << argv[1];
ss >... |
64c9ccf24e530261ac171c6176aba2abd63a8ddd | 85fad9c15ca51e3cf79df91f87860ff2ac3643b7 | /Source/DTD/Private/CreepBase.cpp | ecb9f81d69a9fc021f89332585516c962389e1cb | [] | no_license | zlurker/DTD | c9499010eb6b4c3d8a21e6b930d03c5350a03d1a | e9fbd908b697cbd3d174631a6b43c840868899fb | refs/heads/master | 2021-04-17T12:11:57.133334 | 2020-07-05T08:54:53 | 2020-07-05T08:54:53 | 249,444,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | CreepBase.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "CreepBase.h"
// Sets default values
ACreepBase::ACreepBase()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
// Cal... |
fb4cc91ddbbfc0598e6a15449701f12328ae5378 | b86811b16c3a7b916943f654eabfd3502689804a | /DiscRoomTA/Perdio.h | 8e7f1d1a6902ec91b1aeddc148f2fff438235cfd | [] | no_license | ShoLee01/DiscRoom-en-Windows-Form | 36c43eea9d446a74d7ce84d79dc3b05199ee8214 | c47a3fbbcd36b0247997b9e770f301fabbed2056 | refs/heads/master | 2023-01-15T13:35:12.508521 | 2020-10-27T17:37:47 | 2020-10-27T17:37:47 | 307,779,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,541 | h | Perdio.h | #pragma once
namespace DiscRoomTA {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Perdio
/// </summary>
public ref clas... |
a6578a0efc809cb62bfb0e32b45a7681a34790f4 | e396342013eb72e56ab526b2f43f8377e5846d7d | /cpp/json_client/main.cpp | c5659c6debfbde55e0113db1ca42dfb85c9696a1 | [
"MIT"
] | permissive | AtsushiSakai/JSONServerAndClient | e7f4099b60be3ecb5d31ee30a14fc6dd95fe4946 | a7e7cea92616c7e42d46d198f8276aa6c1c50b49 | refs/heads/master | 2021-06-03T17:17:31.921829 | 2020-10-10T05:24:27 | 2020-10-10T05:24:27 | 134,957,224 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | cpp | main.cpp | //
// Json http client in C++
//
// Author: Atsushi Sakai
//
#include <iostream>
#include "../cpp-httplib/httplib.h"
#include "../json/single_include/nlohmann/json.hpp"
using namespace std;
using json = nlohmann::json;
string get_server_ip(){
string SERVER_IP="localhost";
char* env_SERVER_IP = getenv("SERVER... |
aecb87795f360289e2c74c499ec7c3fecf1068ad | b7a451237b0bd17285cb62a1027c5833d4113049 | /ClientConEventos/Excepciones/ExcepcionConPos.h | 261b9208edaa752e47731bf36795deb29f78650c | [] | no_license | diegobalestieri/MicroMachines | 422ae10239810a8b579e0ee2f3698d1e6cefea03 | 5dfce6270da1625f6699091eb5bc0539ab6bd281 | refs/heads/master | 2023-04-22T19:35:21.407078 | 2020-08-07T01:48:23 | 2020-08-07T01:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | h | ExcepcionConPos.h | //
// Created by diego on 22/10/19.
//
#ifndef OPENGLTEST_EXCEPCIONCONPOS_H
#define OPENGLTEST_EXCEPCIONCONPOS_H
#include <stdexcept>
class ExcepcionConPos : public std::runtime_error {
private:
static std::string crearMensaje(const char* archivo, int linea, std::string& mensaje){
std::string falla("Err... |
2632573611a3d3a3a6e415dd641c3faf2be04845 | 0d22d5f5dbdb31c03d99a1f8b19589007a8823fb | /Practica4/display.cpp | 108b400d2dcb4297a8325aa7fd9126ece89ce24f | [] | no_license | Jaimee007/practicas_info | 42d77ae240d4ba1aa08aab73b22ba9576dff2cce | 3634e91a94626277e81c0fc6b75945b47841261e | refs/heads/main | 2023-02-20T05:23:54.296169 | 2021-01-22T10:04:00 | 2021-01-22T10:04:00 | 314,552,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | cpp | display.cpp | #include "display.h"
Display::Display(){}
Display::Display(const string &name): Device(name){}
void Display::process(const string &data) const{
cout << data << endl;
}
|
1f842f1b819d4116c2c58cd8e9e07589966e69cd | 60946db12ed31b7cd43b6d89fe02fa4f72a6cb63 | /A2-Class/dateType.h | ac47d1ecce355464d26d771667baeb4382005159 | [] | no_license | metaknighttu/homework | 75edddadc0f81ab6d74fa879fbe869872e00d2fb | 585d0e84f154623e281039eb4e2b0fbdef542813 | refs/heads/master | 2020-09-23T09:40:00.229236 | 2019-12-02T21:17:32 | 2019-12-02T21:17:32 | 225,468,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,133 | h | dateType.h | #ifndef DATETYPE_H
#define DATETYPE_H
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <iomanip>
using namespace std;
class dateType
{
public:
void setDate(int month, int day, int year);
//Function to set the date.
//Postcondition: dateMont... |
9c8743aeae5c6683f2a1f9dcef99f73a41307298 | 3fd87fa4b5c921d71b9f4b3c20c2ec710a285d54 | /src/landmark_point_3d.h | 1c0926463fc934ce098dc7547bafe1634844592a | [] | no_license | mshicom/wolf | 8358bf5f84376a9f80b25c5cff8cf8a82f5d1d91 | 1d21ba4a2c72dcdc4347d91071f570beaadd3a29 | refs/heads/master | 2020-12-24T06:06:53.465173 | 2016-09-19T07:26:02 | 2016-09-19T07:26:02 | 73,229,005 | 0 | 0 | null | 2016-11-08T21:34:42 | 2016-11-08T21:34:41 | null | UTF-8 | C++ | false | false | 1,049 | h | landmark_point_3d.h | #ifndef LANDMARK_POINT_3D_H
#define LANDMARK_POINT_3D_H
//Wolf includes
#include "landmark_base.h"
//OpenCV includes
#include "opencv2/features2d/features2d.hpp"
// Std includes
namespace wolf {
class LandmarkPoint3D : public LandmarkBase
{
protected:
cv::Mat descriptor_;
Eigen::Vector3s posit... |
d18f659ea3af7e666f8027392d2106c992c446ab | 905ad4b5c16b1dc0bfed6d3156c14f5e62ce5d27 | /Ejercicio 02.cpp | 2037b801fc268e19bd7eeaba4aee8be9bcdb4aa2 | [] | no_license | yordysantos/Practica-1---CC2 | 37e5092daf74e4373694e4f6ea196fcbe1aa7502 | 024479885b1445d70c9dfea3f56a74b7f1a85248 | refs/heads/master | 2020-03-09T12:44:31.483685 | 2018-04-13T16:24:41 | 2018-04-13T16:24:41 | 128,793,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | cpp | Ejercicio 02.cpp | #include <iostream>
using namespace std;
int sumare(int a[],int n)
{
if(n==0)
{
return 0;
}
else
{
return a[n-1]+sumare(a,--n);
}
}
int sumai(int a[],int n)
{
int sum=0;
for(int i=0;i<n;i++)
{
sum=sum+a[i];
}
return sum;
}
int main(){
int n;
cout<<"Longitud: ";
cin>>n;
int... |
393fc3908cd6af41bbf66e3bc24e65e68e6b803f | 1ca288c3f3c54db93fe4828214a81f6687105a1e | /src/test/thinblock_data_tests.cpp | 681f4d7f67dc1b9aa2e44f80e8c586961dc3a913 | [
"MIT"
] | permissive | BitcoinUnlimited/BitcoinUnlimited | 489c91a9184bdbad3824a2ce3126d2e9c0786e5d | 05de381c02eb4bfca94957733acadfa217527f25 | refs/heads/release | 2023-06-01T08:11:18.920865 | 2021-03-29T15:58:02 | 2021-03-29T15:58:02 | 18,613,259 | 546 | 301 | MIT | 2021-01-04T01:05:24 | 2014-04-09T21:03:00 | C++ | UTF-8 | C++ | false | false | 3,609 | cpp | thinblock_data_tests.cpp | // Copyright (c) 2013-2015 The Bitcoin Core developers
// Copyright (c) 2015-2019 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "blockrelay/thinblock.h"
#include "blockrelay/blockrelay... |
0f9b6621beb0693c01786c7387c23398e707c281 | dd656493066344e70123776c2cc31dd13f31c1d8 | /MITK/BlueBerry/Bundles/org.blueberry.ui/src/tweaklets/berryWorkbenchPageTweaklet.h | 9cf9f808ef1fa4407e7f14876bdeb9b4d6752074 | [] | no_license | david-guerrero/MITK | e9832b830cbcdd94030d2969aaed45da841ffc8c | e5fbc9993f7a7032fc936f29bc59ca296b4945ce | refs/heads/master | 2020-04-24T19:08:37.405353 | 2011-11-13T22:25:21 | 2011-11-13T22:25:21 | 2,372,730 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | h | berryWorkbenchPageTweaklet.h | /*=========================================================================
Program: BlueBerry Platform
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.... |
2ad825f1bbc7d5776632b996fb83ad1ee6e2d23c | 1e785b0c901087910c07b64b5161984863c4887c | /MCAD/include/MdCmds.h | b5ea6b506ac6b678aa0309b9e4ff2fea75e691da | [] | no_license | pinery2004/mcad01s | 487eee3e27945d83540a0548777ca6f58d1ff33d | 1b01c200aefc8cd89c958bd42df3900250c6827d | refs/heads/master | 2022-07-18T23:49:10.011615 | 2020-05-20T03:38:59 | 2020-05-20T03:39:13 | 265,440,358 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 16,931 | h | MdCmds.h | /* F:\BLD\PRJ\LIB\CMDS\CMDS.H
* Copyright (C) 1997-1998 Visio Corporation. All rights reserved.
*
* Abstract
*
* <TODO : Add Abstract here>
*
*/
#pragma once
#include "MCad.h"
#include <time.h>
#include <limits.h>
#ifdef DLL_EXPORT_CMDS
#undef DLL_EXPORT_CMDS
#endif
#ifdef DLL_EXPORT_CMDS_DO
#pragma messag... |
f148c75b2ef80a86811e6d5fa64f67483f6991f3 | a2c3028bbb015596e6d1b83fe23bd4c9fda0d72d | /info/wip/in-process/src/apk/htxn/ngml/rz-ngml/kernel/document/rz-ngml-document.cpp | 871c01eaa58dcfce6b6b32cc571af6ebb24919b2 | [] | no_license | scignscape/ntxh | 1c025b0571ecde6b25062c4013bf8a47aeb7fdcb | ee9576360c1962afb742830828670aca5fa153d6 | refs/heads/master | 2023-04-01T07:20:26.138527 | 2021-03-17T17:59:48 | 2021-03-17T17:59:48 | 225,418,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,492 | cpp | rz-ngml-document.cpp |
// Copyright Nathaniel Christen 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "rz-ngml-document.h"
#include "relae-graph/relae-parser.templates.h"
#include "rzns.h"... |
892da6e341874d72c6a569d51d7693f59885dc89 | 0d1acf76962a679f041277596c720675e774be54 | /FGameEngine/FGameEngine/Material.cpp | b6dd01bacb8b6b7adf100efd7aa94d5361e7bf88 | [] | no_license | changefc/FGameEngine | b50deb222ca3d2d0352b13d6aa1612b00da2a4a8 | 8d3905bc7ee1234bce6b79084a482a1e1b93373b | refs/heads/master | 2020-04-20T05:44:42.429254 | 2019-02-15T13:57:43 | 2019-02-15T13:57:43 | 168,663,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | cpp | Material.cpp | #include "stdafx.h"
#include "Material.h"
Material::Material(Shader* _shader, glm::vec3 _ambient, unsigned int _diffuse, unsigned int _specular, float _shininess)
{
shader = _shader;
ambient = _ambient;
diffuse = _diffuse;
specular = _specular;
shininess = _shininess;
}
Material::~Material()
{
}
|
a44f861c13575035196a7b8284978411c315da46 | 73ad00c1eb3c6931a306500015f46a60b09a230e | /Twar/Twar/SubScene/Battle/Effect/Effect.cpp | 43bf0ab52231a2036c410509f56ca8eb67eaec37 | [] | no_license | human-osaka-game-2016/T-SEN | a74d11b73b668d498183f2c93d35bc4458369f3a | 11e750dd5883b137ea256d2f512d2a7ee1780472 | refs/heads/master | 2021-06-20T08:51:50.327183 | 2017-07-03T00:59:54 | 2017-07-03T00:59:54 | 69,837,692 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,089 | cpp | Effect.cpp | /**
* @file Effect.cpp
* @brief Effectクラス実装
* @author haga
*/
//-------------------------------------------------------------------------------------------------------------------------------------//
//Includes
//--------------------------------------------------------------------------------------------------------... |
219deabd8b42f7fbf8b484a6e85ac22b8256ef6e | 1eddfc58034e70dbf32c93c5ecdfc47e377eca84 | /boredom.cpp | 9e558982b4a62048359d275237c8ce44474314a9 | [] | no_license | Rodagui/CodeForces-Solutions | ec90ad3806ca6025c9f588eb298b33a47f097bd4 | fbcce297deb645ea8f6d7a30297071a12e447489 | refs/heads/master | 2022-07-27T21:36:20.656936 | 2022-07-15T00:54:17 | 2022-07-15T00:54:17 | 178,289,421 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | boredom.cpp | /*A. Boredom*/
#include <bits/stdc++.h>
using namespace std;
using Long = long long;
vector <Long> freq(100005, 0);
vector <Long> memo(100005, -1);
Long maxPoints(Long i);
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
Long maximo = 0;
Long tam;
Long f;
cin >> tam;
... |
1bcc9d82e1f563206519ffb0842de2fea07098a1 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5688567749672960_1/C++/babaji/Alarge.cpp | 6efc17dc56ec7d86580d3d80fa911d9a24590cfd | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,399 | cpp | Alarge.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define bg begin()
#define en end()
#define Y second
#define X first
typedef long long ll;
#define fi freopen("input.txt","r",stdin)
#define fo freopen("output.txt","w",stdout)
const double pi = acos(-1.0);
const double eps ... |
13772b2b81de28c0e352d76c240c8ce39d31ab76 | 32e00536648218757130654d92336fcfcd10522a | /HeapSort.cpp | 29be539c1904c267552c0c0852d7e2ec36c0cc2a | [] | no_license | PYPARA/Algorithms | 64476da459ec1bf9ee83fdcb988c55c38a315ddb | cb64e08c164435b1d0b3017ebb0d82adc4c12148 | refs/heads/master | 2021-01-11T15:44:32.123304 | 2017-02-21T10:30:21 | 2017-02-21T10:30:21 | 79,918,195 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,501 | cpp | HeapSort.cpp | #include<iostream>
void MaxHeapify(int *a, int i, int heap_size) {
int l = 2 * i + 1;
int r = 2 * i + 2;
int largest = i;
if (l < heap_size && a[l] > a[i]) {
largest = l;
}
if (r < heap_size && a[r] > a[largest]) {
largest = r;
}
if (largest != i) {
int temp = a[i];
a[i] = a[largest];
... |
3eb0d4c91bbb08fe708759851ebb96c95a54453a | 297ac87d9352a19b0f15656b485d0ef56ea5fce7 | /accordian.cpp | 3d8bb31651467f7f11e5651603d5d06d7a259510 | [] | no_license | eddiebarry/cp_code | ef48de9029b61e9adda966e3e95792da3d0ed978 | abbcc76056fb62a125dd84f132fc2d62011b0b0a | refs/heads/master | 2020-05-02T17:09:41.644921 | 2019-03-27T23:41:49 | 2019-03-27T23:41:49 | 178,090,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,064 | cpp | accordian.cpp | /*
* Note: This template uses some c++11 functions , so you have to compile it with c++11 flag.
* Example:- $ g++ -std=c++11 c++Template.cpp
*
* Author : Denzil Bernard
* Handle: 1_mn_RMY
*
*/
#include <stdio.h>
#include <vector>
#include <iostream>
using namespace std;
/******* All Required define ... |
e6c74fe2582f96be570badfff2ca94fabab41b10 | e6a5fce33aad4fcba37842e135a51ba441b06f48 | /Algorithms/Implementation/JumpingOnTheClouds.cpp | 97e447d982efe67a9b0a9fc21dfe75a64a9bc1e2 | [
"MIT"
] | permissive | pavstar619/HackerRank | 6710ddd450b06fbb69da5abad9f570e5e26bbbc0 | 697ee46b6e621ad884a064047461d7707b1413cd | refs/heads/master | 2020-06-18T18:53:53.421685 | 2020-02-18T09:35:48 | 2020-02-18T09:35:48 | 196,408,726 | 0 | 0 | MIT | 2019-07-11T14:18:16 | 2019-07-11T14:18:16 | null | UTF-8 | C++ | false | false | 487 | cpp | JumpingOnTheClouds.cpp | #include <bits/stdc++.h>
using namespace std;
int jumpingOnClouds(vector<int> v)
{
int i = 0, n = v.size(), con = 0;
while(i < n - 1){
if(i + 2 >= n || v[i+2] == 1){
i++;
con++;
}
else{
i += 2;
con++;
}
}
return con;
}
int... |
134482a8602335c62dd69d579180a730854cbac7 | 3b48d5381fb68df286e8dbb966b6a6c1d67b46c6 | /tests/copy.cpp | 0d6d01a6fea89f70605a8f59c41aef493494b0a3 | [] | no_license | rhicspin/opencdev | d71520a5b65252085a964d291e2bc014335e5d41 | 10e0f9e4cf4d23912130e73ce80df75a98289eb8 | refs/heads/master | 2021-01-22T12:08:50.973365 | 2017-04-08T22:33:30 | 2017-04-08T22:33:59 | 22,018,408 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | copy.cpp | /* vim: set sw=3: */
#include <boost/test/unit_test.hpp>
#include <opencdev.h>
BOOST_AUTO_TEST_SUITE(copy)
// A test to see if pimpl memory management works fine
BOOST_AUTO_TEST_CASE(double_free_test)
{
opencdev::LocalLogReader log_reader(TEST_DATA_PATH);
opencdev::result_t result;
{
opencdev::Loca... |
73e6fd0e309ae7d16d370313f6554b9568833640 | 42ba73134eeca961230044e4cef29a5fc35e3529 | /TktkDirectX12GameLib/TktkDX12GameLib/inc/TktkDX12Game/UtilityProcessManager/ResourceHandleGetter/SystemResourceHandleGetter/IdType/SystemDepthStencilBufferType.h | 4c0661794b4510cbf29fe3efc9cdc73b11cf5651 | [] | no_license | tktk2104/TktkDirectX12GameLib | 5b9ef672ce0a99bbce8a156751b423ef840729b3 | 4d037ec603d9f30d8c4ed3fb4474cfaea49c8ac9 | refs/heads/master | 2023-02-22T14:38:10.101382 | 2020-12-03T04:55:05 | 2020-12-03T04:55:05 | 287,092,170 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 293 | h | SystemDepthStencilBufferType.h | #ifndef SYSTEM_DEPTH_STENCIL_BUFFER_TYPE_H_
#define SYSTEM_DEPTH_STENCIL_BUFFER_TYPE_H_
namespace tktk
{
// システムで使用している深度ステンシルバッファの種類
enum class SystemDsBufferType
{
Basic,
ShadowMap
};
}
#endif // !SYSTEM_DEPTH_STENCIL_BUFFER_TYPE_H_ |
7e5669bc403f27b21d1ede9d9ded25b9ad53ef58 | fe73361edb1a0b5786ca05d0b1ab2af5deb180af | /内存管理_请求调页_1950072_郑柯凡/请求调页源码_1950072_郑柯凡/viraddress.cpp | 3abc8928accce6e9c62b72ef964232a6ec66b4c1 | [] | no_license | kefan-zheng/OS | 1334be9b67d023cf2f404c0b80f1832217e279e5 | 9e622b20bc9db861c44bef25f4a909a4a168950d | refs/heads/main | 2023-08-10T20:18:52.493883 | 2021-09-15T13:29:19 | 2021-09-15T13:29:19 | 369,163,759 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 734 | cpp | viraddress.cpp | #include "viraddress.h"
VirAddress::VirAddress()
{
pageContentID = 0;
pageTableID2 = 0;
pageTableID3 = 0;
pageOffsets = 0;
}
int VirAddress::getpageContentID()
{
return this->pageContentID;
}
int VirAddress::getpageTableID2()
{
return this->pageTableID2;
}
int VirAddress::getpageTableID3()
{... |
d00e674dbe564f4dfd3324fd920bff266f55c9ba | 4e09d9f9cd17b49465ae3a76a6ac54009445ec16 | /Textures/Source.cpp | 4ccf1c0d4c96118fa4a505b2ac377e175cca500a | [] | no_license | ZyronMelancon/Year2 | cd2be6baa0b1cff0e0f052a89473b50637199e90 | 6a5fdb74873273ec19e0a61d7141c0141d5efbf9 | refs/heads/master | 2021-01-19T08:11:14.667772 | 2017-10-09T23:03:25 | 2017-10-09T23:03:25 | 100,650,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | Source.cpp | #include "TextureApplication.h"
void main()
{
Application * app = new TextureApplication();
app->run("Texture Application", 800, 600, false);
} |
a4e836403dfd9a76a557904be2e1e67e15d6403b | adc2a917ff170973fe866d064c64b6b2cdcaa68d | /P_Euler_15.cpp | 79cf127d37c1df88578e6a6bf0295d307f7bf178 | [] | no_license | adelgadoj/Ejercicios_Proyecto_Euler | 511ae0620a350290be746f508b70f427c935063e | a5f3026dcef327e7a5ada9c0fada6e1904cd22db | refs/heads/main | 2023-04-14T02:37:00.107145 | 2021-04-28T15:13:05 | 2021-04-28T15:15:04 | 360,959,519 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,389 | cpp | P_Euler_15.cpp | //#PROBLEMA 15
//#Lattice paths
/*
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down,
there are exactly 6 routes to the bottom right corner.
How many such routes are there through a 20×20 grid?
*/
#include <vector>
#include <deque>
#include <utility>
#include <iostream>
u... |
7cf566dbfac95dc4b733dce300cc032c5215aa31 | 41ab1a4c6c74e3e58c1189643b6a16a08ec9beb1 | /zzz_Eds_C++_Examples/Classes_Inheritance/inheritance_sample_v1.cpp | c3015c362659fdb0e493740cf80b6831a8bb50c3 | [] | no_license | APrioriRainbows/C_Plus_Plus_Repo_Public | 22df6129da80dcc9a7d0d0ef9b459cbc83a69f15 | 9237013866f777744a99b1bc187a346f0c76f17e | refs/heads/master | 2022-04-17T19:59:01.720467 | 2020-04-11T04:39:48 | 2020-04-11T04:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,285 | cpp | inheritance_sample_v1.cpp | // ****************************************************
// Inheritance of Classes example
// By Ed
// ****************************************************
#include <iostream>
using namespace std;
// *****************************************************************************************************
// What is Inheri... |
c9ed5ed792bacb182f473b8fcb4e09f37459f85c | 64d6fb738f2c2193c13368b479f2af6d88d6b889 | /feature-extractor/simple_sgd_svm/svm/loss.h | 3dfdca58c67d1e3a5db0e061431459a946fcdbdc | [] | no_license | yikuizhai/face-verification-system | de68b10211283c17274fd05fa0b6832aa120bef5 | 2fe62f50a8478ea09de1c9adaaeaf029305cbbf5 | refs/heads/master | 2021-01-15T14:02:38.148169 | 2013-09-04T05:28:52 | 2013-09-04T05:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | h | loss.h | /*
* loss.h
*
* Created on: 29 Apr, 2013
* Author: harvey
*/
#ifndef LOSS_H_
#define LOSS_H_
class HingeLoss {
public:
static double loss(double wx, double y);
static double dloss(double wx, double y);
};
#endif /* LOSS_H_ */
|
a648a295c2a8f5ee460ae06323e059aef5a2127b | b65df15a5da287c313c51c22a90e23ffc061d60f | /LeetCode_C++/452_findMinArrowShots/solution.h | 4d10087518ee0cfb0b468bcde4cebcdf5984f23e | [
"MIT"
] | permissive | Yiluhuakai22/algorigthm-study | 5ed2cc577d615e6dd7b57e395b864dabf0aba34f | 084ca94342020e4333045c136886eef0292e4eae | refs/heads/main | 2023-07-03T10:57:14.495596 | 2021-08-09T07:41:32 | 2021-08-09T09:15:03 | 375,208,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | h | solution.h | #include <algorithm>
#include <vector>
using std::min;
using std::vector;
class Solution
{
public:
int findMinArrowShots(vector<vector<int>> &points)
{
size_t count = points.size();
sort(points.begin(), points.end(), [](vector<int> a, vector<int> b)
{ return a[0] < b[0]; });
... |
95bbb2435c9df5123c7918d0696850ac9fe1c70c | db5ea260f9c009d5d9616c09cef331a0a8916140 | /source/HeatEq.cpp | 54a4322e792aed8d6f3e689e4952b57884269738 | [] | no_license | clairemorel/Code_NS_Cmo | ce72800d340c23ae2657134adcdaef2203f419d5 | 6c89efdd725352e3856044944b6307ab36731308 | refs/heads/master | 2021-01-19T10:31:38.315720 | 2016-06-02T14:02:16 | 2016-06-02T14:02:16 | 60,078,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,840 | cpp | HeatEq.cpp | // My Libraries
#include <libNavierStokes/HeatEq.hpp>
using namespace std;
using namespace bitpit;
vector<double> HeatEq::computeTNext(PabloUniform& gridCart, double& dt, double& temps, KSP& ksp, Mat& Mat_poisson, Vec& RHS, Vec& Solution){
computeVectorT(gridCart,dt, RHS);
if (temps == dt) {
computeMatrixDiamo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.