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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
159cc74bc8cfb313bee7e4123c6ef672b00dad51 | 0820a8328968cfec6abca74eada7c5d747276a2a | /csv/csv.cpp | f299cfe67be1c9d0158e229af2ab54be87021ed6 | [
"MIT"
] | permissive | jimfinnis/angortplugins | 905fab48ed81412304911eb93a6d25a7191b43ca | 2854d245e6fcf010a8b101153bfdffdab8204a06 | refs/heads/master | 2021-01-23T13:29:35.721529 | 2020-08-19T12:59:36 | 2020-08-19T12:59:36 | 35,383,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,033 | cpp | csv.cpp | /**
* @file csv.cpp
* @brief CSV file handling.
*
* Usage:
* csv$make takes a settings hash, and produces a CSV object.
* csv$line handles a line in the CSV, typically read from a file,
* and returns a hash, list or none (if header or skip line
* was fed in).
* csv$read reads the entire named file int... |
888bfecbcb2cbe409dfc0ba561011538cfc78af0 | 33d88cf70ad9f56d2833b150b932ab07d08e9b6e | /tree/LCA_IN B_TREE.cpp | 344ed8d786788925ca20de4ddeeea8ef3ebfcfb3 | [] | no_license | sanyamdtu/interview_questions | 386c33fd8a72ff22a73cfb4c3b1d4d730695cc63 | 157880e9d83009db455eec1a370010ea7b494ea0 | refs/heads/main | 2023-08-14T21:43:26.330843 | 2021-10-02T06:18:46 | 2021-10-02T06:18:46 | 315,205,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | cpp | LCA_IN B_TREE.cpp | /* A binary tree node
struct Node
{
int data;
struct Node* left;
struct Node* right;
Node(int x){
data = x;
left = right = NULL;
}
};
*/
/* If n1 and n2 are present, return pointer
to LCA. If both are not present, return
NULL. Else if left subtree contains any
of t... |
e566ee323fa74f996bb90a9ae692c05c723eda32 | 13fb458f7801ece0d59d4c0db909b15080d76e18 | /1.leetcode/leetcode297.cpp | cd9a9090b7f1eba840b7bf6625bd2cbdff86d9e3 | [] | no_license | Uranium-Deng/LeetCode | 69af659ffc29a6934e98d0a5e49172b684c658bb | 97c900bd5dd2abe94de82ddc984bf7651afc5989 | refs/heads/master | 2022-11-22T07:48:35.704028 | 2020-07-29T07:43:49 | 2020-07-29T07:43:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,545 | cpp | leetcode297.cpp | /*************************************************************************
> File Name: leetcode297.cpp
> Author: DRZ
> Mail: 1927157164@qq.com
> Created Time: 2020年03月05日 星期四 11时50分08秒
************************************************************************/
/**
* Definition for a binary tree node.
* struct Tr... |
196599de62019183923dc6218659772c0110fc1d | 870becd7f96bade4f43eebb54cb6623c5120e38f | /src/croc/internal/class.cpp | c7d5b9da3f0e14e7eabe52312c5d9c298cd769a0 | [] | no_license | redchew-fork/Croc | fd09cfeab9d00d45b1440222a5351428bfd8856b | 1fa0693d17d0c565920dfa672104d92b4016d4bf | refs/heads/master | 2021-09-17T11:32:47.726015 | 2017-10-21T17:21:35 | 2017-10-21T17:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,625 | cpp | class.cpp |
#include "croc/api.h"
#include "croc/internal/basic.hpp"
#include "croc/internal/class.hpp"
#include "croc/types/base.hpp"
namespace croc
{
void classDeriveImpl(Thread* t, Class* c, Class* base)
{
// This probably shouldn't happen under normal circumstances but maybe if it's made a library function?
if(c->isFro... |
6c7376204aafb8f92a32140f64be5fc10dd7799b | b222918f132032ed18f91a3d175d571255275f0f | /copasi/undoFramework/DeleteEventCommand.h | 2f1949eb4996616b2d933454261270e03811fc31 | [
"Artistic-2.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license"
] | permissive | tobiaselsaesser/COPASI | f35fc421bdbe0b8cc00caca0b1b8d29a0196d6bc | 4020ff226a8729f04b4734c358e753465f6c0fe4 | refs/heads/master | 2020-03-25T11:03:08.190277 | 2018-04-17T15:30:07 | 2018-04-17T15:30:07 | 143,717,278 | 0 | 0 | Artistic-2.0 | 2018-08-06T11:11:03 | 2018-08-06T11:11:03 | null | UTF-8 | C++ | false | false | 890 | h | DeleteEventCommand.h | // Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2014 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and Th... |
49eea0c3c219a163ae80c2819e6ed898e4e5b428 | 938e4888840de783c74cd6bcf0a44443472054dd | /gammacombo/include/PDF_GLW_DKpipi_2var.h | 1fa3a85b9c2acec44fe4f58fc82864f193bbc8a4 | [] | no_license | ppodolsky/pygammacombo | 1922fb541a8d48f3b08558c1552053e2cf6017cd | fa52d2cda49694de36deb13e235f4e0801fd0fe5 | refs/heads/master | 2021-01-14T08:57:06.796747 | 2016-02-14T05:39:59 | 2016-02-14T05:39:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | h | PDF_GLW_DKpipi_2var.h | /**
* Author: Matthew Kenzie (matthew.kenzie@cern.ch)
* Date: June 2015
*
* Class to describe observed measurements in
* GLW decays which measure only 2 variables
* e.g. ala LHCb GLW analyses which measure A_{CP+}, R_{CP+}
*
**/
#ifndef PDF_GLW_DKpipi_2var_h
#define PDF_GLW_DKpipi_2var_h
#include "PDF_Abs.h"
... |
3273a3ca81cead96b382795dac268462bc17e1d4 | d0410f68c62509dde78aadd0b683237b0bc90a8a | /mandelbrot/Camera.h | 82107e2e85035aa817a49c4c9b9bca22ca41555a | [
"MIT"
] | permissive | matzar/Mandelbrot-AMP | 1f471d4dd8cd4934f5dbbe148fc9188b09261dc1 | 4821844ba30ae33290442f25b65eff983ffa9e0f | refs/heads/master | 2021-03-27T08:48:29.611769 | 2018-03-04T20:57:22 | 2018-03-04T20:57:22 | 101,312,670 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,577 | h | Camera.h | #pragma once
#include "Input.h"
class Camera
{
public:
virtual ~Camera() {}
virtual void update() = 0;
virtual void moveForward(float dt) = 0;
virtual void moveBackwards(float dt) = 0;
virtual void moveUp(float dt) = 0;
virtual void moveDown(float dt) = 0;
virtual void moveSideLeft(float dt) = 0;
virtual void ... |
e1c549f198adc13b912728770caaa3782c1635ab | e6d46c9bf66714e04c7552b1b736518f15842cdb | /C++/Visual Studio/Caide/nccc5s5/nccc5s5.cpp | f46c89664da9dea9eb87eefc307cf59db3d02fd3 | [] | no_license | Errleng/programming-puzzles | 56585cf496dd4ab506d3164fd32d06a4b43732ff | b87b62bb465c6ae3e002659a31536a29250eee1b | refs/heads/master | 2023-02-13T23:50:36.125047 | 2019-09-17T23:22:31 | 2019-09-17T23:23:57 | 329,190,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 867 | cpp | nccc5s5.cpp | #include <algorithm>
#include <iomanip>
#include <istream>
#include <map>
#include <numeric>
#include <ostream>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "functions.h"
using namespace std;
// Powered by caide (code generator, tester, and library code inliner)
cl... |
1602a6716f9e7dc1badb60cef1040a692d9c43a3 | 97123d6cd9766e4e449159d5f18a5a5285b951dc | /MachineLib/Cylinder.cpp | e62fd5885c75838927594e87fdb1e897d84214c5 | [] | no_license | ahaakenson/cse335_proj2 | ee021fbfeb99abc6e823510ba5169e42ad0fd365 | a8b56f0a814d2731033e62b79c56c62fc03e2ea3 | refs/heads/master | 2023-07-03T07:57:02.318419 | 2021-04-17T18:47:54 | 2021-04-17T18:47:54 | 392,805,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,039 | cpp | Cylinder.cpp | /**
* \file Cylinder.cpp
*
* \author Andrew Haakenson
*/
#include "pch.h"
#include "Cylinder.h"
#include "AirSink.h"
#include "MotionSource.h"
#include "MotionSink.h"
#include <memory>
using namespace std;
/// Cylinder base image
const std::wstring CylinderBaseImage = L"images/cylinder-base.png";
/// Cylinder ... |
b942397c04fd6d624adf024d1679ef50589b1518 | 5a23577cc94dc8f70c62f08ddef8a083c0429195 | /OgrePro/SerializerEx.h | 1cb22c0d120df2de0a319aae53d13ba76f9e526f | [] | no_license | miriamritchie187/FKOgreWorldEdit | bc92ab1256387e22351f6509825aafebbad98f93 | a7fe651cb02cca7455ced4b5753fc1c10d852f79 | refs/heads/master | 2023-06-21T22:32:52.785389 | 2015-11-28T09:15:30 | 2015-11-28T09:15:30 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,498 | h | SerializerEx.h | #pragma once
#include "PropertyContainer.h"
namespace Ogre
{
// 串行化器的加强版,增加了一些非常有用的函数
class OGREPRO_API SerializerEx : public Serializer
{
public:
SerializerEx(void);
virtual ~SerializerEx(void);
protected:
struct Chunk
{
Chunk(uint16 chunkStartID , uint16 chunkEndID , size_t posStart)
... |
6ce6ac76a6d45c510980cfe5cc546da2b3959ac3 | b0dd7779c225971e71ae12c1093dc75ed9889921 | /boost/graph/edmonds_karp_max_flow.hpp | d297106fd4d2cf2b21dfe130e8b98c593172f5fe | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | C++ | false | false | 10,092 | hpp | edmonds_karp_max_flow.hpp | //=======================================================================
// Copyright 2000 University of Notre Dame.
// Authors: Jeremy G. Siek, Andrew Lumsdaine, Lie-Quan Lee
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost... |
05730eed68a71642831af4ae776157c2e8b6e754 | 9a5813305c7e49b7e3f632094d248e4008808a2c | /Level-2/23. Dynamic Programming/Longest Bitonic Subsequence.cpp | 563517167337df48b64e578f86011bfa0e8732f1 | [
"Apache-2.0"
] | permissive | singhdharmveer311/PepCoding | e72d933115c2c3929ec759a1a82789f4af35c5d7 | 1d5ebd43e768ad923bf007c8dd584e217df1f017 | refs/heads/master | 2023-09-05T15:05:09.627460 | 2021-11-22T21:08:56 | 2021-11-22T21:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | Longest Bitonic Subsequence.cpp | #include<bits/stdc++.h>
using namespace std;
int longBit(vector<int> &V) {
vector<int> dp1(V.size());
vector<int> dp2(V.size());
int omax = 0;
// lis
for(int i=0;i<V.size();i++){
int mx = 0;
for(int j=0;j<i;j++){
if(V[j] < V[i]){
mx = max(mx,dp1[j... |
1fe1a3c13e77a58380daac01a31e8a5f75b3f8ad | 662968a683cbe0fb0984baa7f457d68024c3f2a0 | /gamed/event/RceObtainRandomTargetsHandle.cpp | 156672058793f3d2c7d248e65aaeb9cb3d675185 | [] | no_license | imp1023/ape | 81d28b929451193ba998137a17a352e0184b41d1 | f5f9f77d7fee6d372b8afbdd5be1cd80ca01088c | refs/heads/master | 2021-06-01T08:20:30.047930 | 2016-08-09T01:48:00 | 2016-08-09T01:48:00 | 63,535,959 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cpp | RceObtainRandomTargetsHandle.cpp | #include "../GameNetHandler.h"
#include "../GameDataHandler.h"
#include "../../event/event.pb.h"
#include "../../common/json/json.h"
#include "../../common/string-util.h"
#include "../../logic/User.h"
#include "RceObtainRandomTargetsHandle.h"
RceObtainRandomTargetsHandle::RceObtainRandomTargetsHandle()
:CBaseEvent()
... |
bed26504647d6dd8e59a6694753af414632f6a06 | 513fd124aa06fd716b0f1a0ce50c38293e48ac96 | /tp3/src/bench/benchmark.cpp | c0737264aebea5c500fd411e8ce3ef48b6b7cb29 | [] | no_license | ABorgna/algo3 | 53d54eeda5d777bca1a74928d7c08fd0843448f6 | bdc1a410ad00c31ff4d04383a7a97a42e0d844bd | refs/heads/master | 2021-05-01T00:59:29.516446 | 2016-12-02T00:27:11 | 2016-12-02T00:27:11 | 65,581,400 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,689 | cpp | benchmark.cpp | #include <generator.h>
#include <interfaz.h>
#include <pcg.h>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <random>
#include <sstream>
using namespace std;
typedef struct Range {
uint64_t begin;
uint64_t end;
uint64_t step;
Range(const string& arg) : begin(1),... |
d1e68f19ea8b7e07cbc75e9bf4dc1114e1553efe | e69070116b98535ab8fcb065fe74ef1560a41f18 | /Myo Mapper/Source/Main.cpp | 0f1a67165bd856db40e5f20a91da840dd9a8d54a | [
"MIT"
] | permissive | zoonderkins/MyoMapper | c731a4960282fa3b5dbce10d01dc4d4278a3d900 | ea11d13c11c2c38ebe6d74098cd6be8cab542c90 | refs/heads/master | 2023-07-06T03:16:57.732657 | 2017-04-25T23:50:33 | 2017-04-25T23:50:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,924 | cpp | Main.cpp | #include "../JuceLibraryCode/JuceHeader.h"
#include "MainComponent.h"
class MyoMapperApplication : public JUCEApplication
{
public:
MyoMapperApplication() {}
const String getApplicationName() override { return ProjectInfo::projectName; }
const String getApplicationVersion() override { r... |
039c9924cd97c6ede9016d35b5212eda266835a4 | 7894893e65ed143bbc6216ba2d9cee167bb53941 | /Array/searchInsertPosition/searchInsertPosition.cpp | 9fe1cf36f5c1dbf3cb9eb2324078d2b792507a53 | [] | no_license | kevinrwx/LeetCode | 681f4c2388eff6d3466d1091577585fa4926db73 | 7073b60d2c3ddc1e0f66be21f01f6a4277b85992 | refs/heads/master | 2016-12-13T02:48:22.383331 | 2016-04-05T12:23:32 | 2016-04-05T12:23:32 | 27,356,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | searchInsertPosition.cpp |
//Search Insert Position
#include <iostream>
#include <vector>
using namespace std;
//编程珠玑中的二分查找的实现,如果存在多个相同的target元素时,返回第一个元素
int binarySearch(vector<int>& nums, int target) {
int length = nums.size();
int left = -1;
int right = length;
int mid;
while(left + 1 != right) {
mid = left + (right - left) / 2;
... |
4de579d8f5451997fc7a4a14c5870d3c11a22532 | c7ddaad7fa061218d1e547a974fc6a7853e69c7a | /chrome/browser/ui/views/autofill_profiles_view_win.h | 45eabaf84350227d6630b0ff2e2f7f56894519bc | [
"BSD-3-Clause"
] | permissive | cha63506/chromium-29 | 9adcc9ba819ced9dfe1f5da4807ad10516896142 | 9df275a67dc9038e300bfcad34f634b20dc9e8bc | HEAD | 2017-05-27T06:59:00.183474 | 2011-05-03T04:06:05 | 2011-05-03T04:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,672 | h | autofill_profiles_view_win.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_PROFILES_VIEW_WIN_H_
#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PROFILES_VIEW_WIN_H_
#pragma once
#include <li... |
db601ef5131fd1968a38d5c4d969a21d23118055 | 11b12b3168d6bf82b502e5af197413c37358ef06 | /Engine/Mat.h | fb053d9da94c5ffc69640ced7a500f7794c643e9 | [] | no_license | Aescosaurus/Rotation-Testing | 1b16cbbd80fab527b251eece254ac09c9d70b92a | 1ba4c86a9d1bbbc624a8f483612c0a05bcb37d70 | refs/heads/master | 2020-04-02T11:47:19.967758 | 2018-12-07T23:09:19 | 2018-12-07T23:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 883 | h | Mat.h | #pragma once
#include <cmath>
#include "Vec2.h"
// 2x2 matrix to rotate stuff or whatever.
template<typename T>
class Mat_
{
public:
// Gives a rotation matrix based on the given angle.
static Mat_ Rotation( float angle )
{
// [ cos,-sin ] [ a,b ]
// [ sin, cos ] [ c,d ]
return( Mat_( cos( angle ),-sin( an... |
7e7c011a6cf8e1c7b87a0cf80d27a5ad846e4ca6 | 73e881f0c8f5fe97f86f58b5e228e3d4481a50de | /src/Solution.cpp | db79c20b54a42ba59f5f82c032deb701e91d48e7 | [] | no_license | laraconda/tsp-sa | bff787ab28aa6d0f7d5bf96437402d3f94c06d07 | 039a849b8a2a292d351ea632033d08ab45d19a82 | refs/heads/master | 2022-03-11T18:37:08.663210 | 2019-10-07T00:42:03 | 2019-10-07T00:42:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,839 | cpp | Solution.cpp | #include "Solution.hpp"
using namespace std;
AncestryData::AncestryData(
double parent_cost,
double parent_sum,
pair<int, int> swaped_indexes
):
parent_cost(parent_cost),
parent_sum(parent_sum),
swaped_indexes(swaped_indexes)
{}
double AncestryData::GetParentCost() {
return parent_cost;
}... |
1608e8c8df39dcf37b309bfa852b5888ca67a27a | 465fe842cea448e45e2c1c2a526a6cca888c8181 | /13.cpp | d72c4afb1ccf02e6fe8b3825a72dcea62852893b | [] | no_license | PigTS/Coding-Interviews | fdcbe9cf24a9185e173740fa5a129ef41090fd95 | ca034424ae33709e48bf1a37547b79463fe23575 | refs/heads/master | 2020-03-25T07:46:52.949357 | 2018-09-08T08:08:44 | 2018-09-08T08:08:44 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,460 | cpp | 13.cpp | #include <iostream>
#include <vector>
using namespace std;
//输入一个整数数组,实现一个函数来调整该数组中数字的顺序,
//使得所有的奇数位于数组的前半部分,所有的偶数位于数组的后半部分,
//并保证奇数和奇数,偶数和偶数之间的相对位置不变。
//借用vector辅助空间,时间复杂度为O(n),空间复杂度为O(n)。
class Solution{
public:
void reOrderArray(vector<int> &array){
int odd_count = 0;
for (int i = 0; i < array.size(); ++i){
... |
23b4230426939d52dc59596b7705dff60657f5fa | ff44e7a5d1261c7fbbde6b94c3df7202b5795e38 | /Dataset/dataset.h | d57a5da00457a1f60aae015ff0d56569a96bcd2e | [] | no_license | chgallentine/NeuralNetwork | 0a56045d88989c21e365476c4cb00e0dfd50537d | 7b3b3249aec586a332afdbf6bdb36a30dbac1173 | refs/heads/master | 2020-08-22T14:32:54.126782 | 2019-10-27T21:00:06 | 2019-10-27T21:00:06 | 216,416,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | h | dataset.h | #ifndef DATASET_H
#define DATASET_H
#include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
typedef vector<vector<double> > Matrix;
typedef vector<double> Row;
struct Data_t {
int size;
Matrix inputs;
Matrix outputs;
};
struct Dat... |
ae740ecc0fbb4cef0a739e4aec1bcbec72554461 | 40420e55ae2b25709872cac5bdf39fe250519922 | /RSAction/Plugins/DcxVehicle/Source/DcxVehicle/Public/DcxVehicle4W.h | 30a04d269372ab9f3cabf4922003ec14d2a7f4a8 | [] | no_license | magrlemon/RSActionII | 2d85709f05d63f5b1c39038e9918f86989ff9e29 | 26ae7910afdedfdf353f6fbd98f3e4a92b21dc7f | refs/heads/master | 2020-12-01T19:26:07.617189 | 2020-05-13T13:41:45 | 2020-05-13T13:41:45 | 230,740,815 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | DcxVehicle4W.h | // Copyright 2016 Dotex Games. All Rights Reserved.
#pragma once
#include "DcxVehicle.h"
#include "DcxVehicle4W.generated.h"
UCLASS(Abstract, BlueprintType, ClassGroup = "Dcx|Vehicle")
class DCXVEHICLE_API ADcxVehicle4W : public ADcxVehicle
{
GENERATED_UCLASS_BODY()
};
|
3244b1887c53db6544dc33b08b3adac60eca9c43 | b7dd4af203dd0e7331cf3f4b781fe0ede6c71f48 | /2501_Final/Shape.h | 9f36972bac4f47659f8da0de813a668effc0df75 | [] | no_license | Magneseus/Solarus-v2 | d539c2eaccb160ea51ee28384604c52fb2fd1f2f | 41ad6bf12e498f8726c52282e501e08a4083b8ae | refs/heads/master | 2021-07-09T23:52:13.789532 | 2017-10-11T02:39:18 | 2017-10-11T02:39:18 | 51,265,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,418 | h | Shape.h | #pragma once
#include <SFML\Window.hpp>
#include <SFML\Graphics.hpp>
#include "Vector.h"
// Types of shapes
enum SHAPETYPE { RECT, CIRC, COUNT };
// Virtual class to represent a base Shape
class Shape : public sf::Drawable
{
public:
virtual ~Shape() {};
virtual bool collide(const Shape*, vec::Vector2& normal) con... |
3c2a874b61a924224d74a37b14eab60058ae7181 | 7a28fd87d8a61c9df3e95173aad779f31a04be44 | /TeamServerCluster/TeamSource/TeamGS/GameServer/Logic/Message/GSMessage/GSMessage.h | 311c564d91d5f633b33d2e7914d29f9b65cb6810 | [] | no_license | kspine/TeamServer | e84a858254736c05cc33780978212f7f982e549e | 360de39453156f4c4fbb5d99325aef28d2a5f75c | refs/heads/master | 2021-01-22T05:15:55.186201 | 2016-11-30T02:53:35 | 2016-11-30T02:53:35 | 81,638,625 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,595 | h | GSMessage.h | #pragma once
#ifndef __GAME_GS_MESSAGE_H__
#define __GAME_GS_MESSAGE_H__
#include "../../../FrameWork/BaseDefine.h"
#include "../../../FrameWork/GameServer.h"
#include "../../../FrameWork/PlayerClient.h"
#include "../../Protocols/CommonProtocol.h"
#include "../../../Logic/GameHall/Texas/TexasGame/TexasGameManager.h... |
f2305ba2a4c27a038162149a45191cf58b3bae66 | 0a1be59f55b359866370c2815671af22bd96ff51 | /dependencies/f4se/src/f4se/CommonLibF4/src/RE/Scaleform/Memory.cpp | d2afbafb5e3b98be8305fdac127464f87f17ff7b | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | joelday/papyrus-debug-server | ba18b18d313a414daefdf0d3472b60a12ca21385 | f5c3878cd485ba68aaadf39bb830ca88bf53bfff | refs/heads/master | 2023-01-12T14:34:52.919190 | 2019-12-06T18:41:39 | 2019-12-06T18:41:39 | 189,772,905 | 15 | 10 | MIT | 2022-12-27T11:31:04 | 2019-06-01T20:02:31 | C++ | UTF-8 | C++ | false | false | 1,900 | cpp | Memory.cpp | #include "RE/Scaleform/Memory.h"
#include "f4se/ScaleformAPI.h"
#include "RE/Scaleform/MemoryHeap.h"
namespace RE
{
namespace Scaleform
{
void Memory::SetGlobalHeap(MemoryHeap* a_heap)
{
GetGlobalHeapRef() = a_heap;
}
MemoryHeap* Memory::GetGlobalHeap()
{
return GetGlobalHeapRef();
}
void ... |
df3cf832a03cbe317129fdb085cb7aeb48b945e5 | 44e0614acf303ae9b4284b40b3bd1224b3824939 | /APP/ProcNetCmd/NetCmdGetSerialID.h | f40e5a79e5c6d99cf1372c0e1fffca220ec9f4e1 | [] | no_license | zdevt/CtrlBox | f76e8d2d84f68a54c632146365e95093e1c7eefe | 737b748759a32cf268be5d88fc4d487f1f30122b | refs/heads/master | 2023-03-28T21:02:49.145365 | 2021-03-31T23:32:22 | 2021-03-31T23:32:22 | 353,516,798 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | h | NetCmdGetSerialID.h | /*
* =====================================================================================
*
* Filename: NetCmdGetSerialID.h
*
* Description:
*
* Version: 1.0
* Created: 09/18/2017 03:52:36 PM
* Last Modified: 09/18/2017 03:52:36 PM
* Revision: none
* Compiler: gcc
... |
3cac693abc810d8d55d322c7c5712772abe997b4 | f795ea5000c4bb951327d724d026dabec42b08dd | /src/main.cpp | f7fda257e64de2ac9f84655fa89ef655bca3e7fe | [
"BSD-3-Clause"
] | permissive | iwillusethenameaslongasican/etcd-cpp-apiv3-lua | f440049e5afda711bde997d5501e851ec3fb5e30 | f425578d59d66c124f8b946f49e0d17e7a79e287 | refs/heads/master | 2020-07-02T05:12:35.333168 | 2019-08-10T10:52:53 | 2019-08-10T10:52:53 | 201,425,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | cpp | main.cpp | #include "etcd/Client.hpp"
#include "etcd/luna.h"
int create_etcd_client(lua_State *L)
{
const char *address = lua_tostring(L, 1);
if (address == nullptr)
return 0;
Client *cli = new Client(L, address);
lua_push_object(L, cli);
return 1;
}
extern "C" int luaopen_libetcd(lua_State *L) {
lua_newtable... |
8dc19d48f510ba2f4ffafa924aaf105a425eac35 | 2f568f15bd2a3502a63a89f1fb8c41d69cf4b03d | /Newspaper.cpp | 0c27cc877bd31e5cdc63c0aa19764bb92b834484 | [] | no_license | mleonr/Vjudge | 5f614a7136874b2a69a3ddd15edff45f846006c9 | 3b01d3d09e37ebea81f5307697d138126afbd93c | refs/heads/master | 2021-06-27T22:04:11.404872 | 2019-01-19T01:13:38 | 2019-01-19T01:13:38 | 128,853,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | cpp | Newspaper.cpp | #include<iostream>
#include<vector>
#include<string>
#include<iomanip>
using namespace std;
int main(){
int n = 0, k = 0, m = 0, costo = 0, casteo = 0, len_cadena = 0, pos = 0;
int i = 0,j = 0, p = 0, q = 0 , r = 0 ,s = 0;
double acum = 0;
string cadena = "";
vector<int>alfabeto(256);
cha... |
07fd7b28165a4e14acb3ed86fac44f757a72090f | 634120df190b6262fccf699ac02538360fd9012d | /Develop/Server/GameServerOck/unittest/MockNetServer.h | f0221aabbb1308797ea61df546b19376445d1ee4 | [] | no_license | ktj007/Raiderz_Public | c906830cca5c644be384e68da205ee8abeb31369 | a71421614ef5711740d154c961cbb3ba2a03f266 | refs/heads/master | 2021-06-08T03:37:10.065320 | 2016-11-28T07:50:57 | 2016-11-28T07:50:57 | 74,959,309 | 6 | 4 | null | 2016-11-28T09:53:49 | 2016-11-28T09:53:49 | null | UTF-8 | C++ | false | false | 316 | h | MockNetServer.h | #pragma once
#include "MMockNetServer.h"
#include "GNetServer.h"
class MockLink;
class MockNetServer : public minet::MMockNetServer
{
protected:
GCmdHandlerGroup* m_pCmdHandlerGroup;
virtual MMockLink* NewMockLink(MUID uidLink);
public:
MockNetServer(const MNetServerDesc& desc);
virtual ~MockNetServer();
};
|
1be809fd5fd201e063cb0072765c7707e9e61d96 | ecfb350f9fde634ce78da03cf731a4779828aea6 | /C++/Structuri de Date/Dogaru Alexandru - tema4/Dogaru Alexandru - tema4/ex3/Nod.cpp | 003e6f8f101c3775eaeb792bcc63c69e9d01d2ad | [] | no_license | DogaruAlexandru/School-Projects | be4404baeb16c33804c2893ed284016cbc940bab | b6e59bccc243f164723b423038695e037cfd0bbe | refs/heads/main | 2023-05-25T19:12:13.623527 | 2023-05-18T10:31:45 | 2023-05-18T10:31:45 | 372,527,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | Nod.cpp | #include "Nod.h"
Nod::Nod(char info)
{
this->info = info;
frequency = 0;
left = right = parent = nullptr;
} |
afe70edc4bd542d7c68041ffdbb71f675e8f713a | 6c6afaf8df18ae8ad4e6a9d1471b4fea49774ec5 | /lab3/zad3/zad3/zad3.cpp | 3e23266a820d4a5121a1d0dd28158f0aa9f5cd8a | [] | no_license | maciekcaban/PK2-maciejcaban | 76305a064fccd74894dbaf3106699772de12d0ae | 472744808ee990b3f4861f062366aa6671134643 | refs/heads/main | 2023-05-31T01:07:29.391466 | 2021-07-06T16:49:28 | 2021-07-06T16:49:28 | 383,534,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,213 | cpp | zad3.cpp |
#include <iostream>
using namespace std;
class plane {
public:
double fuel;
double distanceX;
double distanceY;
double distanceZ;
double height;
const double weight;
//plane (double _fuel,double _x, double _y, double _z, double _height) : fuel(_fuel), distanceX(_x), distanceY(_y), distanceZ(_z), height(_heig... |
b024512bb7928b06bd850a1dc315fc67cb9832d1 | 8010baf1ea22cca879a570db937246128a990146 | /samples/message-player/message-player.cpp | 82119305e13ef457fc204347c8c2ddc5eace0099 | [
"BSL-1.0"
] | permissive | reunanen/isto | 753932cf11a022acc8193b09cb81669dab0e6815 | da5c3378c5f75326d00e1d09f4d106e467d7be6b | refs/heads/master | 2022-08-25T13:58:30.460108 | 2022-08-10T16:01:25 | 2022-08-10T16:05:08 | 83,045,988 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,328 | cpp | message-player.cpp | // Copyright 2022 Juha Reunanen
//
// 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 "../system_clock_time_point_string_conversion/system_clock_time_point_string_conversion.h"
#i... |
07d5115e911ee4632142ed627c156095b7b75bf5 | e351815e80519de411cd3361013a5098fb405fe6 | /rgat/widgets/colordemowidget.h | b3d84c22ecc17fcd8a478b55497bbcfceefbb557 | [
"Apache-2.0"
] | permissive | Lukas-Dresel/rgat | e9e5337d62b15511aca1aeaecdbdbc9be8e96110 | 6b45e2efeaa10502ea277b53a24eb46acbcb0de3 | refs/heads/master | 2021-10-20T05:02:24.459104 | 2019-02-26T01:08:22 | 2019-02-26T01:08:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | h | colordemowidget.h | #pragma once
#include "qlayout.h"
#include "qlabel.h"
#include "qwidget.h"
class colorDemoWidget : public QWidget
{
Q_OBJECT
public:
colorDemoWidget(QWidget *parent);
~colorDemoWidget();
void setLabelMode(QString text, bool isbold = false);
void setBold(bool bold);
void setColour(QColor colour, bool border = f... |
31da8d6a513e7a1af15f7ea6006be4a724bf2435 | fd7f4247155625768337498c431b5f0f3f31cd13 | /server.h | 21cc285ee68540290951be22fb749529ee121663 | [] | no_license | Ajay35/Pastry | 323427a991a02d8f777cd7e41c0bc947edb4ee58 | a0468257c5c5d4a4211c7aee98244dd2c9fb3474 | refs/heads/master | 2020-08-20T15:03:07.448987 | 2019-10-18T14:00:29 | 2019-10-18T14:00:29 | 216,036,517 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | h | server.h | #ifndef SERVER_H_INCLUDED
#define SERVER_H_INCLUDED
#include "util.h"
#include "pastry.h"
#define MAXBUFF 20000
#define MAXLINE 100
#define LISTEN_QUEUE 5
#define SVRERR_CONN 2006
#define SVRERR_SELECT 2007
#define SVRERR_SUCCESS 2008
#define SVRERR_FAILURE 2009
#define SV... |
a226ff4dbf90cf085095cc2c904b008fbebaa70f | 497430b3f6818c2e0977e933bce70fb10d12fc3e | /Project/Project/Cat1.cpp | c89341b58434922ff503bc593f639f66a8d9f8b7 | [] | no_license | axcelsior/Usables | e2962ebff8df2a55f6983cc2878e9aed010f9e73 | 46b183e5919c61c2516ee37d6edca9699ab55af0 | refs/heads/master | 2021-01-10T13:22:00.197987 | 2016-01-29T14:33:24 | 2016-01-29T14:33:24 | 50,667,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | Cat1.cpp | #include "Cat1.h"
#include <iostream>
Cat1::Cat1(sf::Texture *texture, int x, int y, int ID) :
mID(ID)
{
mSprite.setTexture(*texture, true);
mSprite.setPosition(x, y);
mPosition.x = x;
mPosition.y = y;
}
Cat1::~Cat1(){
}
void Cat1::Render(sf::RenderWindow *mainWindow){
mainWindow->draw(mSprite);
}
void Cat1::U... |
796ca749a44a9634e6bd9c95e070a3d93da42765 | 1ed982dde8d7106953e1794004354874578ff7bd | /src/UiButton.cc | dd5550ffb881e147d731f506286a29c6698257b9 | [
"MIT"
] | permissive | knockshore/libui-node | 163cbc84bfacb3f25fef2a80b8dee4dfd01a4249 | 580a06c0e660589a5582f1b5974ccfe60e6f0a37 | refs/heads/master | 2022-12-20T07:12:13.096290 | 2020-09-26T12:26:56 | 2020-09-26T12:26:56 | 292,818,014 | 2 | 0 | MIT | 2020-09-04T10:21:24 | 2020-09-04T10:21:23 | null | UTF-8 | C++ | false | false | 1,273 | cc | UiButton.cc | #include <string>
#include "nbind/api.h"
#include "control.h"
#include "ui.h"
class UiButton : public UiControl {
DEFINE_EVENT(onClicked)
public:
UiButton(std::string text);
UiButton();
void setText(std::string text);
std::string getText();
~UiButton();
void onDestroy(uiControl *control) override;
};
void U... |
a050f8d9a01ccfe7143acbe6ca90ef6a4a5f5d35 | e9d89ee4a73db784dc6f5c5ebbdefbc1c9e381cf | /src/S_Sphere_gl.h | 84f8d71a52c7398b18e6a7487d809f2eb0277b69 | [] | no_license | jrl-umi3218/sch-visualization | fbe30bcc18bb6d4455dac8cc2e84793dfa0f44d2 | a4fd156f57c3a9676db97adc9773112244d24569 | refs/heads/master | 2022-05-01T15:56:28.000016 | 2020-11-04T14:21:24 | 2020-11-04T14:21:24 | 20,657,860 | 0 | 4 | null | 2022-04-21T10:40:59 | 2014-06-09T18:40:02 | C++ | UTF-8 | C++ | false | false | 385 | h | S_Sphere_gl.h | #ifndef _S_SPHERE_GL_H
#define _S_SPHERE_GL_H
#include "sch/view/S_Object_gl.h"
#include <sch/S_Object/S_Sphere.h>
namespace sch
{
class S_Sphere_GL : public S_Object_GL
{
public:
S_Sphere_GL(S_Sphere * obj);
virtual void drawGLInLocalCordinates() const;
private:
void createDispList();
S_Sphere * sphere_;
... |
0d0995d2b3638dcb1cd69760aa8972ecf48cbc8b | aae0973b360c7136414df8391ab8d087c24e2462 | /Core/EasyRPSGameAI.cpp | 90214f33a109b9ca82f12bb313b6060ab6112435 | [] | no_license | asmeralt/gesture_recognition | f4de8cb9c1323b864857aa3af1aa4ce010fd249d | f8ff29f1b2128445076722eecf03c317264d1096 | refs/heads/master | 2021-01-22T20:55:38.640082 | 2017-09-02T09:21:31 | 2017-09-02T09:21:31 | 100,688,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 364 | cpp | EasyRPSGameAI.cpp | #include "EasyRPSGameAI.h"
EasyRPSGameAI::EasyRPSGameAI()
{
}
Gesture EasyRPSGameAI::getAIResponse(Gesture userGesture) {
switch (userGesture) {
case Gesture::PAPER: return Gesture::ROCK;
case Gesture::ROCK: return Gesture::SCISSORS;
case Gesture::SCISSORS: return Gesture::PAPER;
default: return Gesture::UNKNOWN... |
f381521d80473e09bcdc8060d1d9d9e4d929994a | 8cf2c2d1c89416b9322a40ecba49d0599d7d6e1a | /client/comparehandinfowidget.h | d590176ea1756018933e8613d3577c4b3a28d380 | [] | no_license | houndf212/card_game | 558742341a2f60e0749ea8ace77bc2bedbbfc280 | f1d691e619ac7473bbd0c4f4709bc347236229bc | refs/heads/master | 2021-01-18T19:32:25.621742 | 2017-08-13T01:50:06 | 2017-08-13T01:50:06 | 86,900,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | h | comparehandinfowidget.h | #ifndef COMPAREHANDINFOWIDGET_H
#define COMPAREHANDINFOWIDGET_H
#include <QtWidgets>
#include "cardchooser.h"
#include "handinfowidget.h"
class CompareHandInfoWidget : public QWidget
{
Q_OBJECT
public:
explicit CompareHandInfoWidget(QWidget *parent = 0);
private:
Q_SLOT void onChanged();
void do_compa... |
bd66001a412c8d2325a7510a1b9d51a5f1b8cfa1 | 5ff4a179f0ef5b29f906638f2ffaadf79c59c58e | /gui/src/utils/rename-existing/rename-existing-1.h | 3e78b5e7eb5f10a0ae2a37919c5651769193f45b | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | TarekJor/imgbrd-grabber | 67ee9e3a53d18e9eb7c99c8046d7a51f582fb68b | a35b805a0423e9f3d264b873893533b0aea488c2 | refs/heads/master | 2020-03-27T16:55:42.247413 | 2018-08-05T15:27:06 | 2018-08-05T15:27:06 | 146,816,545 | 1 | 0 | Apache-2.0 | 2018-08-30T23:17:16 | 2018-08-30T23:17:15 | null | UTF-8 | C++ | false | false | 874 | h | rename-existing-1.h | #ifndef RENAME_EXISTING_1_H
#define RENAME_EXISTING_1_H
#include <QDialog>
#include <QMap>
#include "models/filename.h"
#include "rename-existing-file.h"
namespace Ui
{
class RenameExisting1;
}
class Site;
class Page;
class RenameExisting1 : public QDialog
{
Q_OBJECT
public:
explicit RenameExisting1(Profile... |
6071c6d4f4f3bd415a571151b5329f343582420a | 25c673cceae07350fc9931cfc654d18fc392262c | /C++/zadanie10/10/stala.h | 4f59f3a455acc51fc5d7b4418712309ef8adbb9b | [] | no_license | BlackBlackSoul/II-UWr | a1b487f69ebeae4123f1955a4fdf683996613ff2 | 3bc016e4ce93ec2c6c238ee2da978090aa55b24d | refs/heads/master | 2020-09-05T03:54:51.010237 | 2018-10-28T19:04:39 | 2018-10-28T19:04:39 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 971 | h | stala.h | #ifndef STALA_H
#define STALA_H
#include "operand.h"
#include <string>
#include <map>
namespace kalkulator
{
// klasa reprezentujaca stale wbudowane w program
class stala : public operand
{
public:
// każdy obiekt stałej ma swoją nazwę (pi, e)
const std::strin... |
121a4edb9c0f20f6f45bfa58931aa03c2605e64c | a59d498dba16dc6833a12caeffbfabea5cbf3da5 | /Electron/platform/mac/Gallium/game/ai/ai.cpp | 5a37540e3efbe7865a4795c9da36280e2c5c29e7 | [] | no_license | ShadovvMoon/Electron | 2815b5f48d686f2595c070966c5f00b4148b7e54 | 5f91eeb4ff41d7a3f8f39a4d6ad47802d8eb29ab | refs/heads/master | 2021-01-18T15:04:09.043212 | 2017-06-27T19:27:52 | 2017-06-27T19:27:52 | 34,188,014 | 3 | 3 | null | 2015-05-08T12:01:07 | 2015-04-19T00:28:18 | C | UTF-8 | C++ | false | false | 18,735 | cpp | ai.cpp | //
// ai.cpp
// Electron
//
// Created by Samuco on 21/07/2015.
// Copyright © 2015 Samuco. All rights reserved.
//
#include "ai.hpp"
#include <math.h>
#include <vector>
#include <queue>
void ai::debug( const char* format, ... ) {
}
vector3d *surfaceCenter(ProtonTag *bspTag, CollisionBSP *collision, uint32... |
4a29014efc184a1b596d607738940fb33f0180c6 | 2949ce8572a5dfda738c7c70a3f0dae723cfdad7 | /jsonify.cpp | d5a7402159366953fda04316dd3f19b761128da3 | [] | no_license | quizywiz/AntiPhisher | aa9e869f15d9e2d557ae5c4048037a837c27f093 | dad00a77db23f18b872326876bccc3a1f3d05a61 | refs/heads/master | 2021-01-11T18:50:07.703177 | 2017-01-25T23:45:38 | 2017-01-25T23:45:38 | 79,635,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | jsonify.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
cout<<"{";
for(int i = 0 ; i < 109; i++) {
string a,b;
cin >> a >> b;
for(char& x : a) if(x>='A' && x<='Z') x = x - 'A' + 'a';
for(char& x : b) if(x>='A' && x<='Z') x = x - 'A' + 'a';
cout<<"\""<<a<<"\":[\""<<b<<"\"],"<<endl;
}
cout<<"}";
return ... |
5379773042dde5e58b10ce808e855963ba6cf18c | bd8bcdb88c102a1ddf2c0f429dbef392296b67af | /include/fengine/Video/FileHandler/ImageFileHandler.h | f0c5e3e43bda9a5aa52743a1f459c9551a31815c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | LukasBanana/ForkENGINE | be03cee942b0e20e30a01318c2639de87a72c79c | 8b575bd1d47741ad5025a499cb87909dbabc3492 | refs/heads/master | 2020-05-23T09:08:44.864715 | 2017-01-30T16:35:34 | 2017-01-30T16:35:34 | 80,437,868 | 14 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | h | ImageFileHandler.h | /*
* Image file handler header
*
* This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#ifndef __FORK_IMAGE_FILE_HANDLER_H__
#define __FORK_IMAGE_FILE_HANDLER_H__
#include "Core/Export.h"
#include "Video/Image/Image.h"
#include "Video/Fil... |
b94b4f2dd781f4e60a65afee24074e96bfd13945 | 4edebfdf213e7dc212d4d045c67d3196837b52e0 | /Contest 04º semana/G.cpp | 5964523cb80177f72f1e5b49ece385b766faa5cf | [] | no_license | PauloMiranda98/Grupo-Preparatorio-para-OBI-2019 | 4e0a36ddea1d3d73ba933123e6c150d7986ef495 | 8de297de2411ac9e7ea2446eed64f6dbf1f2e402 | refs/heads/master | 2020-05-05T04:45:08.042664 | 2020-04-21T14:15:51 | 2020-04-21T14:15:51 | 179,723,613 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 267 | cpp | G.cpp | #include <iostream>
using namespace std;
typedef long long int ll; // Definindo ll como long long int para facilitar
ll fib(int n){
if(n <= 1)
return 1L;
return fib(n-1) + fib(n-2);
}
int main() {
int n;
cin >> n;
cout << fib(n) << "\n";
return 0;
}
|
9ee778c025fe7e17dffb9d3e5ac6bd1101b41c5f | f2b5b4cf8914e2fa77bb8f72e0332afc6d66cbb5 | /class27_dp/dpSubSetTarget.cpp | 09ad14f23e5d23a4396220d84cc188f505ba40a5 | [] | no_license | Mr-Magnificent/ds-algo | fac8dba4ae05d2cff07035af42f80d874cdee4ed | 62e9df138746c2bcf81c6a5f4cb758a9f338d995 | refs/heads/master | 2020-06-23T14:45:29.711912 | 2019-09-07T05:07:27 | 2019-09-07T05:07:27 | 198,653,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | cpp | dpSubSetTarget.cpp | #include <bits/stdc++.h>
using namespace std;
void find_path(vector<vector<bool>> &found, vector<int> &arr, int n)
{
if (n == arr.size())
{
return;
}
for (int i = 0; i < found[0].size(); i++)
{
if (!found[n - 1][i])
continue;
found[n][i] = true;
if (i + arr[n] < found[0].size())
{
found[n][i + a... |
675c3aa5a99c1b0abff35e7c38bbd6d3bfe78c2e | d4079b9148b639315605a928645597d32cfc056b | /include/nil/network/marshalling/protocol/sync_prefix_layer.hpp | f17a2e9e6abec3c64287f186d68500a1b487ee65 | [
"MIT"
] | permissive | NilFoundation/network-marshalling | 6e3a0d5c4a2945fcc989e1b4ef51a6e6758ef3cf | 41283258144f7a20604d84c0080267cb40106ebe | refs/heads/master | 2023-07-09T10:25:08.163074 | 2021-08-12T14:11:21 | 2021-08-12T14:11:21 | 381,999,468 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,716 | hpp | sync_prefix_layer.hpp | //---------------------------------------------------------------------------//
// Copyright (c) 2017-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... |
3150d6ce483bfecd86ddda879da288635eee445a | a0bffbdbeeeef7873cfe63da3a0afef7ef326a2f | /235Lab3/235Lab3/LinkedList.h | 95ac105df7be7f1d58aab9411a1acff2afde735c | [] | no_license | 18chiatt/BYUCSCORE | 174036fec87d84dc627de3e9d16b492abefcf42b | 2902a20d16a719d1cca537869f4facae9ad6e2ab | refs/heads/main | 2023-02-20T18:26:59.306248 | 2021-01-28T20:08:20 | 2021-01-28T20:08:20 | 333,908,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,574 | h | LinkedList.h | #ifndef LINKED_LIST_H
#define LINKED_LIST_H
#include"Linked List Interface.h"
#include<ostream>
#include<sstream>
#include<string>
using namespace std;
template <typename T>
class LinkedList : public LinkedListInterface<T> {
public:
T data;
LinkedList* next;
class Iterator {
public:
LinkedList... |
8d28998e3a80cc6319573018131906513ad5770e | dfc94e9e7dfc9adaf3c6730ae874acd59a1a3232 | /Source/Engine/Assets/SkAnimSetCooker.cpp | d16eb7f18b6b7f1ff7be9dd6bbc065eae6dbfdd1 | [] | no_license | joeriedel/Radiance | c0685d924e3d9414ee2f40047dd9c07f78317261 | 557ba94e7a55635561ab8776682b6aac1454ccea | refs/heads/master | 2021-01-09T20:05:23.177522 | 2014-10-27T02:00:10 | 2014-10-27T02:00:10 | 60,389,459 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,193 | cpp | SkAnimSetCooker.cpp | /*! \file SkAnimSetCooker.cpp
\copyright Copyright (c) 2013 Sunside Inc., All Rights Reserved.
\copyright See Radiance/LICENSE for licensing terms.
\author Joe Riedel
\ingroup assets
*/
#include RADPCH
#include "SkAnimSetCooker.h"
#include "SkAnimSetParser.h"
#include <Runtime/Tokenizer.h>
#include <Runtime/Stream... |
39aaf045351f419d316696e1294a24072fdc2548 | 38ac816be546215996fbe05089c3d2dab373a72b | /FMAndroidBase/FMAndroid/FMAndroid.NativeActivity/src/DrawCtrl/cDrawCtrl.h | 351c796f3fb3ed823319b5cfbd0e5cd76931a833 | [] | no_license | s-kosugi/FMAndroidBase | 105381f3834cf781b63e965c5b3b1f8ae4a38a25 | 5b3d62fb71942995dcbc7e9c19aa250ecb735094 | refs/heads/master | 2022-12-20T10:42:38.514012 | 2020-10-05T23:47:23 | 2020-10-05T23:47:23 | 292,743,746 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 6,621 | h | cDrawCtrl.h | #pragma once
/*==============================================================================*/
/* */
/* @file title : cDrawCtrl.h */
/* @brief : 描画コントロールクラス */
/* @written : s.kosugi */
/* @create : 2018/09/17 */
/* */
/*====... |
e89e65779fefc1efe187acf9b3fe748a06028723 | c62b0ffdd518924c31d50f9dc0d6e18fc136b643 | /jumpcloud.cpp | 073910ccf8e2d6d51cf981d116bf2d701e5c2f3d | [] | no_license | jacklenjl/hackerrank-solutions | cbb94e2b4cd1ddc2cdff09316803e6d01f33dd49 | 62dec7059d2e52812a488b57a43566065df48fd0 | refs/heads/master | 2020-08-02T10:36:38.743304 | 2019-09-29T08:24:54 | 2019-09-29T08:24:54 | 211,318,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | jumpcloud.cpp | #include<iostream>
using namespace std;
void jump(int a[],int h,int i,int n)
{
int size =n;
if(size==i+1)
return ;
if(a[i+2]==0)
{i=i+2;
//cout<<a[i+2]<<" ";
//cout<<"i:"<<i<<" ";
h=h+1;}
else if(a[i]==0)
{i=i+1;
//cout<<a[i]<<" ";
//cout<<"i:"<<i<<" ";
h=h+1;}
jump(a,h,i,n);
if(i+1==size)
cout<<h<<endl;
}
int... |
f41dc3000f5c02ea02f0d0cf3600acb4072923e9 | 0f4c4d765ae182742ec8fcf3a30002e52c8e7c62 | /code/Tools/ApolloDLL/ApolloDLL.cpp | 196f2b66f929295f7276ab5d0be9d75678e54be4 | [] | no_license | dlannan/deity | 41b88451a3b99a433b090fa133e79ecb85a31520 | a612e2e4f0212de56183cac9cf2cf790dfb6b371 | refs/heads/master | 2021-12-14T17:32:18.502646 | 2021-11-30T04:57:56 | 2021-11-30T04:57:56 | 232,513,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 961 | cpp | ApolloDLL.cpp | // ApolloDLL.cpp : Defines the initialization routines for the DLL.
//
#include "stdafx.h"
#include <afxdllx.h>
#include "ApolloDLL.h"
#include "ApolloDLLaw.h"
#ifdef _PSEUDO_DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
static AFX_EXTENSION_MODULE ApolloDLLDLL = { NULL, NULL };
extern "C" int A... |
9ed731034d029ee1d8f667837684cefab9d84911 | 257b64455dad3e9ff5758f5ad6664098232c9ac3 | /exercise/lcpp/Event.h | fa8248ee00f02890ae75e971aefd9ac059a35d05 | [] | no_license | win74/codeGarden | b42e5086e89bb09372a17d3c194e53a3acce5b89 | 0e22b2a7f5a25e79d2ffecf4784feb1a545c3ef4 | refs/heads/master | 2020-04-19T16:46:43.250419 | 2017-07-18T03:30:09 | 2017-07-18T03:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | h | Event.h | #ifndef EVENT_H_
#define EVENT_H_
//
// This file contains the C++ code from Program 11.21 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.c... |
06b742c4fd57e822be5d03fb38377b8a1897ed9b | 9057a533fe397745e49115be64988fbcc1d2106b | /merchant.cc | 45c29e4df102c46796c869213af3d288a3df215a | [] | no_license | cshensql/project_cc3k- | 028c801c8ece1cf85a69c38a7d56519b68c26205 | c65d56d1212bb4aa321f09d05d83a867319f6bca | refs/heads/master | 2020-05-17T03:11:25.569913 | 2019-04-25T16:59:13 | 2019-04-25T16:59:13 | 183,472,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 719 | cc | merchant.cc | #include "merchant.h"
#include "merchanthoard.h"
#include "cell.h"
using namespace std;
bool Merchant::isHostile;
Merchant::Merchant() {
type = 'M';
hasCompass = false;
moveable = true;
// isHostile = false;
setHp(30);
setAtk(70);
setDef(5);
}
double Merchant::dropGold() const {
Merchant... |
fce81efcf8e111b3309d2951bd241c2d6927f418 | d46c97d704ef2fbea5f1ef86b83dc7faf449a472 | /Engine/Code/Engine/DX11/DX11.cpp | 968df946a46556103be9a095878ecb2ac9b3b0f3 | [] | no_license | WilsonWillson/Rogue-Like | ee91ec75744e588c34984fdc87bceb6090d05e39 | b1bbbb054cdc0a075d980edeaba1195361370914 | refs/heads/master | 2021-05-09T11:06:24.590549 | 2018-01-25T23:56:16 | 2018-01-25T23:56:16 | 118,982,094 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 152 | cpp | DX11.cpp | #include "Engine/DX11/DX11.hpp"
ID3D11Device *gD3DDevice = nullptr;
ID3D11DeviceContext *gD3DContext = nullptr;
IDXGISwapChain *gD3DSwapChain = nullptr; |
81d775ab17b034bbb52ce6ff77382f32329936ac | 10d46705a7a528855a8a8c0110b4ce3d720c24cc | /include/resource/MapLoader.hpp | 650843a876801aa6e5833d88105c5422b120a218 | [] | no_license | WWWaheb/ZeldaOOL | 24104755d2390755a990db85c125b62a18beef9f | e5e95b9f5c4f1fa8c837cc3dc405e82a6f11d665 | refs/heads/master | 2021-06-07T14:53:35.526205 | 2016-11-25T13:27:20 | 2016-11-25T13:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 855 | hpp | MapLoader.hpp | /*
* =====================================================================================
*
* Filename: MapLoader.hpp
*
* Description:
*
* Created: 12/01/2015 15:04:54
*
* Author: Quentin Bazin, <gnidmoo@gmail.com>
*
* ==============================================================... |
981875e9cc85fe466a7c2a8aa8bf3654be5eadad | 6e270772dedcc722be8258f1c9b249a12dba820d | /wmic_visual/Source/Dao/DaoNetworkAdapter.h | d116b1ce0f5fdf648d02bcbf756211b9f79059ae | [
"MIT"
] | permissive | leandrocadete/hardware_info | e20693500766c83ef318b7695b17e5e3bba10057 | 58ce08799ca5e1c3ab196991739d7cfc4f758f33 | refs/heads/main | 2023-05-31T04:49:54.579964 | 2021-06-15T02:28:46 | 2021-06-15T02:28:46 | 364,886,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,639 | h | DaoNetworkAdapter.h | #ifndef DAO_NETWORK_ADAPTER
#define DAO_NETWORK_ADAPTER
#include "../Model/win32.h"
#include "../Model/NetworkAdapter.h"
#include "DaoNetworkAdapterConfiguration.h"
#include <list>
class DaoNetworkAdapter : private Win32Objs {
private:
list<NetworkAdapter*> adapters;
NetworkAdapter *adapter;
public:
DaoNetworkAdap... |
1dc71564ec49653cf27920fe6f1c564cf1d18dd8 | 5a7d9584b703cb54b4a5d8058383ac5ad90669e3 | /ClientGame/Consumable.h | 6591062b55f0e911e4fb298bc8434888992f8d57 | [] | no_license | d909b/GADEL-Snake | 049c435ff8b5ab9105ccde3db782071084c689cc | 158153d04ec5f2ac8fe7817debd43ea3e929403b | refs/heads/master | 2016-09-06T18:10:45.313346 | 2013-01-15T19:06:44 | 2013-01-15T19:06:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | h | Consumable.h | /**
* Consumable.h
* ClientGame
*
* Created by patrick on 11/27/12.
*
*/
#pragma once
class Snake;
/**
* @class Consumable
*
* @description Implementation of class Consumable.
*/
class Consumable : public Actor
{
public:
Consumable(Vector2 position, char* sprite_path);
/** Implement this to per... |
70a0d2832414c7fccd1ac2428075afdc89652992 | 2eba3b3b3f979c401de3f45667461c41f9b3537a | /root/meta/autoloading/headerParsingOnDemand/no_autoparse_writer.cxx | aab80149099f6bc04f0a9befff0b8fd0cd930707 | [] | no_license | root-project/roottest | a8e36a09f019fa557b4ebe3dd72cf633ca0e4c08 | 134508460915282a5d82d6cbbb6e6afa14653413 | refs/heads/master | 2023-09-04T08:09:33.456746 | 2023-08-28T12:36:17 | 2023-08-29T07:02:27 | 50,793,033 | 41 | 105 | null | 2023-09-06T10:55:45 | 2016-01-31T20:15:51 | C++ | UTF-8 | C++ | false | false | 2,009 | cxx | no_autoparse_writer.cxx | #include "no_autoparse.h"
#include "TBranch.h"
#include "TError.h"
#include "TInterpreter.h"
void writer(const char *filename /* = "autoparse_test.root" */ )
{
// Currently spliting a map requires the ClassInfo for the pair!
// (yes, does not sound right at all ... later fix)
gInterpreter->ProcessLine("std::... |
495c699f1a6699f12d18eeb76f18e0aa563db66a | 8b8a8e5dc7bf4a348295c01579c4a0a60d691385 | /Studen_database/src/Studen_database.cpp | 0580ef9c2c8528aad676bbbf8b61dd7c9d49e834 | [] | no_license | Akash-Rayhan/c-projects- | 080b1b1bbf0807bea92822f611150b723f4a4b8b | 3a0b97239e2c93ea69a048ad07aef431488e7940 | refs/heads/master | 2020-05-05T13:35:02.177809 | 2019-04-08T06:34:05 | 2019-04-08T06:34:05 | 180,084,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,919 | cpp | Studen_database.cpp | //============================================================================
// Name : Studen_database.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#i... |
fcaab037a29ad60ce0da1b555275643aa1706025 | 74837c92508b3190f8639564eaa7fa4388679f1d | /xic/include/fio_chd_flat_prv.h | 679fae4be9d7a81ec7222cf0d1ab8b59f0ebbe96 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | frankhoff/xictools | 35d49a88433901cc9cb88b1cfd3e8bf16ddba71c | 9ff0aa58a5f5137f8a9e374a809a1cb84bab04fb | refs/heads/master | 2023-03-21T13:05:38.481014 | 2022-09-18T21:51:41 | 2022-09-18T21:51:41 | 197,598,973 | 1 | 0 | null | 2019-07-18T14:07:13 | 2019-07-18T14:07:13 | null | UTF-8 | C++ | false | false | 13,447 | h | fio_chd_flat_prv.h |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
66d0ddae12344dba6bb4d68e785628fc93afc208 | ddcdceeffab3c13a63abfdb2bd0cd7e62fbda76e | /q4_d1.cpp | b498458a0412f2bd1d15f33589c4f64929d897f9 | [] | no_license | Krishna-K-Chowdhury/coding_club_sol_byKK | 9b19fbae1d3e6a1c95fcfb94c5371c74aec7da28 | 3fc1603daecf2d5985190c9fe9882b563f9a7744 | refs/heads/master | 2023-06-12T09:53:43.505848 | 2021-07-11T16:49:58 | 2021-07-11T16:49:58 | 384,991,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,341 | cpp | q4_d1.cpp | // C++ Program to Multiply Two Matrices using array
#include<iostream>
using namespace std;
int main()
{
int arr1[5][5], arr2[5][5], arr3[5][5], sum=0, i, j, k,m,n;
cout<<"Enter size of matrix: ";
cin>>m;
cout<<"\nEnter Elements to Matrix A Below : \n";
for(i=0;i<m;i++)
{
for(j=0;j... |
db5fa00cfe99a1ddade3918f99d92c51c98dc8d5 | 995f3aa46b38dc21f09ddd9040776f3b3290afde | /BattleShips/ShipSize2.h | 707a3cfe7aae3600d3af5e7b79fc37c34c441516 | [] | no_license | alex2288/BattleShips | a9b1bfc8e9e9875c44a90dec1250cfb96cf70d29 | b1f229d450e77a1c23e6a17908935410a6aa5299 | refs/heads/master | 2021-01-11T14:09:55.449559 | 2017-06-22T09:59:40 | 2017-06-22T09:59:40 | 94,986,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | h | ShipSize2.h | #pragma once
#include "BasicShip.h"
#include "Coordinate.h"
const int SHIP_SIZE2 = 2;
class ShipSize2 : public BasicShip {
public:
Coordinate coords[SHIP_SIZE2];
ShipSize2(Coordinate(*c)[10][10], bool orientation, short x, short y);
virtual ~ShipSize2();
};
|
4955ba0f918edba4343e3a4857bd0a9c7aad612a | 885718b71998e71db8f8cb0230f51399b67e573f | /double/main.cpp | b73a0741d87ea99e21a94e6367ac48d0d043ca18 | [] | no_license | MariaArz/module19 | 5774a5d10fa2c4b68336648a4051e8d56ec9fed4 | d80e8570475b158105a50c697fe895e9a6aba898 | refs/heads/main | 2023-02-07T04:52:00.161765 | 2020-12-28T20:59:05 | 2020-12-28T20:59:05 | 323,995,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | cpp | main.cpp | #include <iostream>
#include<string>
int main() {
int whole, part;
std::cout << "input whole";
std::cin>>whole;
std::cout<<"input part";
std::cin>>part;
std::string doubles;
doubles=std::to_string(whole)+"."+std::to_string(part);
double number=std::stod(doubles);
std::cout<<number;
... |
1d2335c30d0b218d44d4ae40c4e68a4a6b8ce32d | 31780b9a2c02359894a9c8c2d4230a20694b24de | /parallel_cylinder_pisoFoam_RAS/processor0/60/nut | f457fa7eddab185405eee1d3aa04f4cca4792c35 | [] | no_license | dibyenduajit/All-pipe-flow | 8ac89db395b0125766dd048c2d486c2929472284 | 618acb28abc7ce0e57aed38dea092ca1a8d03f3f | refs/heads/main | 2023-06-26T18:48:27.418921 | 2021-08-03T10:18:46 | 2021-08-03T10:18:46 | 392,273,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862,124 | nut | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
1d691d251aff56d18ad2e98795d641adcf418047 | 31a4dcf69ef64c48008b34308ad55536100ff256 | /ArduPilot.ino | 3907ff277d8c63234e727318192a0f9ddd7a357a | [] | no_license | HackDoge/ArduPilot | 39ad8336e86fbb40602d3af869ef42fe255b3a27 | b8d0a3da7abd0c63ab621a8ba3dd57e418ec31f0 | refs/heads/master | 2020-12-31T04:28:31.491471 | 2016-05-11T21:42:54 | 2016-05-11T21:42:54 | 58,578,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,636 | ino | ArduPilot.ino | #include <Wire.h>
#include <Servo.h>
#include <I2Cdev.h>
#include <PinChangeInt.h>
#include <PID_v1.h>
#include <MPU6050_6Axis_MotionApps20.h>
#define SERIAL_BUFFER_SIZE 128
// Assign your channel in pins
#define AILERONS_IN_PIN 5
#define ELEVATOR_IN_PIN 6
// Assign your channel out pins
#define AILERONS_OUT_PIN 8
#... |
779b83e92854a391d1804db7e6a53866b9250fc9 | 6bf5715d3a12f67115a7b9b4b9daa1ab21c6cb0f | /typecaststring.cpp | 0dfc6dfbda282d5b18197bdfebf50f90ce42499f | [] | no_license | r3dark/DS_CODES | 442656ac9a218c222d3d578c1c6a9e51a004f95b | 163478ec5f9b4ae943e7ee8e5cf0f58f20d9c9c6 | refs/heads/master | 2021-04-29T23:57:58.643855 | 2018-02-14T22:12:07 | 2018-02-14T22:12:07 | 121,567,080 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | typecaststring.cpp | #include<iostream>
#include<stack>
#include<algorithm>
using namespace std;
int main()
{
stack <char> s;
string c;
int i,t;
cin >> t;
for(int a0 = 0; a0 < t; a0++){
cin >> c;
}
for (i=0;i<c.length();i++){
if(c[i]=='{')
s.push(c[i]);
}
char x=s.t... |
fbb78e11cbdeb82e06af277aad857225f486bb49 | f62ef61c5513b1a287cd6e13273cced4bc10390c | /queue.cpp | e8bbe45ab394f52e12dcd4a0c9d5b559277f2ae6 | [] | no_license | Prasanth-G/Auto-Completion | 0785d4a4f8c395acb76e52e587130892d428757a | 371cc16e7f1a3d3d4b06ca990b6dd6e83a4db886 | refs/heads/master | 2020-05-21T11:27:30.890494 | 2019-03-30T15:03:18 | 2019-03-30T15:03:18 | 55,768,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | cpp | queue.cpp | #include "stdafx.h"
#include "I:\Codes\VS\ConsoleApplication2\queue.h"
template<typename T>
void queue<T>::enqueue(T input)
{
head = new protoQueue(input, head);
}
template<typename T>
T queue<T>::dequeue()
{
protoQueue* temp = head;
T output=temp->data;
head = head->next;
delete temp;
return output;
}
template<... |
c74c718a79d526e7a45f78d54a4482b2ddfef122 | 94b8bc84cbb121e793e1ab108d584a71c90f38ec | /Pokemon/TileMap.h | f7b5a566565b38e2e587138edd0b38ea2117969a | [] | no_license | 0xNithi/Pokemon | 811aeb9a535bcb07fdb072b2bcbf11a8d021aae0 | 6aa598e20b54618f5d5d869c660e52718d485c11 | refs/heads/main | 2022-12-31T08:17:50.271382 | 2020-10-23T13:50:37 | 2020-10-23T13:50:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,572 | h | TileMap.h | #ifndef TILEMAP_H
#define TILEMAP_H
#include "Tile.h"
#include "Entity.h"
class Tile;
class Entity;
class TileMap
{
private:
void clear();
float gridSizeF;
int gridSizeI;
sf::Vector2i maxSizeWorldGrid;
sf::Vector2f maxSizeWorldF;
int layers;
std::vector<std::vector<std::vector<std::vector<Tile*>>>> map;
st... |
d083abd93c327739b98cebbdd35d286e4a67068f | 795963c77fd920b5ba91e9045777c2137af37285 | /C++/77.cpp | 2e2780f8da6754e37461c9fda9d99845398af428 | [] | no_license | kedixa/LeetCode | dce74c9395d366db559302b48b0b21cd4f869119 | 08acab1cebfac2aed4816cf9d8186a22304488a9 | refs/heads/master | 2020-07-04T05:11:33.019564 | 2018-03-08T13:30:18 | 2018-03-08T13:30:18 | 66,902,234 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | cpp | 77.cpp | class Solution {
void dfs(int num, int cur, int ma, int k, vector<vector<int>>& vec, vector<int> &v)
{
if(num == k)
{
vec.push_back(v);
return;
}
for(int i = cur; i <= ma - k + num + 1; ++i)
{
v[num] = i;
dfs(num + 1, i + 1,... |
33f786475877d42bfb7452101f00aeeb412c4f65 | 859042bc9d616f5f4aaf9f01564b0bcf42693509 | /Lwdp/code/UModule/Interface/Example/SubExampleB/Ix_exampleB.h | 3b7e1073494ae878a65223292fa0bfd1f5bd7e5a | [] | no_license | guolisen/Lwdp | 415a4a3f5bc6dd2f8adb064fca26a7de96e0bce5 | 7dc3f14baf987d2f1c870aceca8e0417ebce4a9f | refs/heads/master | 2020-05-30T15:40:47.997964 | 2012-11-06T14:57:06 | 2012-11-06T14:57:06 | 6,260,563 | 1 | 0 | null | 2012-10-29T07:55:13 | 2012-10-17T12:00:25 | C++ | UTF-8 | C++ | false | false | 249 | h | Ix_exampleB.h | #ifndef EXAMPLE_INTERFACE_H
#define EXAMPLE_INTERFACE_H
#include <Interface/Ix_Object.h>
#include "ID_Example.h"
namespace NLwdp {
INTERFACE_BEGIN(ExampleB)
virtual void FooB(long_& value) = 0;
INTERFACE_END()
}
#endif // EXAMPLE_INTERFACE_H
|
73a6fa40e1ac9391f92dc4c46f47b014b6b1fad1 | 16b3d1c98a3fe91494b9288a1d075896986345d8 | /box.ino | acd5a5ece47f2034368bc6af4de11e364962dff6 | [] | no_license | gitu/build-notification | 1d3505f5fa09b18877aa662f967c64aab40a40bf | 9413b48fa68ac35b1195dd8263266cc84dda3b3e | refs/heads/master | 2021-01-02T22:50:27.878010 | 2014-10-05T09:57:43 | 2014-10-05T09:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,354 | ino | box.ino | /*-------------------------------------------------------------------------
Spark Core library to control WS2811/WS2812 based RGB
LED devices such as Adafruit NeoPixel strips.
Currently handles 800 KHz and 400kHz bitstream on Spark Core,
WS2812, WS2812B and WS2811.
PLEASE NOTE that the NeoPixels require 5V level inputs... |
55d6ba477ca2ba2f4b353c603350ed864b690d68 | cf95aa7e0590e7639e28a167e0e33b94b35cb561 | /components/timeline.h | 60bbb46f3ec2c8154adfcaaab815d09e0e2c3a40 | [] | no_license | lunakoly/EyeBang | 02e9157b3369e5eb4455bf7094ff8416e6e73c44 | 6aeab047f262fb11cbb223663629d3147bef3370 | refs/heads/master | 2022-11-13T12:49:30.980259 | 2020-06-22T18:29:00 | 2020-06-22T18:29:00 | 273,029,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,609 | h | timeline.h | #ifndef TIMELINE2_H
#define TIMELINE2_H
#include <QWidget>
#include <QMediaPlayer>
#include <QAbstractVideoSurface>
#include <QHash>
#include "editing/layer.h"
#include "overlay.h"
/**
* A timeline for scrolling videos.
* It incapsulates layer management
* as well.
*/
class Timeline : public QWidget
{
Q_OBJE... |
765cac679a8b21ab77f625f75174b1301e5e9e65 | cf5783309acb0c34b417f78af6cc62cd542b48eb | /src/participant/whisker_exchange.cpp | 68cc1e8af11ce876bb606512f8b704427be45eb9 | [
"MIT"
] | permissive | IsaccBarker/CATNET | 5176093c4bc3f4201f9bd6cdfc9df02f19b4e752 | a1a0f54005260c7882ef3511d4dcf984e6cda2bc | refs/heads/main | 2023-06-25T08:29:13.697131 | 2021-07-26T07:08:05 | 2021-07-26T07:08:05 | 335,698,431 | 0 | 0 | MIT | 2021-02-03T17:12:28 | 2021-02-03T17:12:27 | null | UTF-8 | C++ | false | false | 914 | cpp | whisker_exchange.cpp | #include <whisker_exchange.hpp>
#include <errno.h>
#include <iostream>
#include <string>
#include <fmt/core.h>
#include <log.hpp>
void
WhiskerExchange::init()
{
CND_DAEMON_DEBUG("Constructing WhiskerExchange....");
}
int
WhiskerExchange::run()
{
init(); // TODO: Figure out how to run this before thread start
CN... |
0fdf76fb2aca83c189ea7509d575b116a193a2eb | dd20b73c8708933cc5086e7a0d32060c0a6231a8 | /lets-start-again/14-rectangles.cpp | 91055b820dbf45b41d659a772220eeeadaa134de | [] | no_license | Code360In/competitive-programming | 83b77d70a7fe2d608b7ff14e1621d69988b820fd | 923e684cf6d0533468e1f0be5a1630a94b3fccbb | refs/heads/master | 2023-02-07T09:22:47.750307 | 2021-01-03T08:32:54 | 2021-01-03T08:32:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | 14-rectangles.cpp | /**
* https://www.spoj.com/problems/AE00/
*
* L x H <= N , L <= H
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
cin.sync_with_stdio(false);
int n, ans=0;
cin>>n;
for(int i=1; i*i<=n;i++)
ans += (n/i - i + 1);
cout<<ans;
} |
fc335ac81d81b6a2c2a3be9833bd9cee9510b464 | 30abcb786921d8f38ca92e3c60b410a0927b0624 | /HriPhysioLib/src/rosStreamer.cpp | 0b55b45303a8d686a3b2191091a8578029d80745 | [
"BSD-3-Clause"
] | permissive | sdhossain/hri-physio | 4539da5d793ecf9d2516feda2de4051da5684add | 46281647b95a2abefc816975a7da942db0191d01 | refs/heads/main | 2023-06-18T19:33:40.078572 | 2021-07-11T17:15:55 | 2021-07-11T17:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,600 | cpp | rosStreamer.cpp | /* ================================================================================
* Copyright: (C) 2021, SIRRL Social and Intelligent Robotics Research Laboratory,
* University of Waterloo, All rights reserved.
*
* Authors:
* Austin Kothig <austin.kothig@uwaterloo.ca>
*
* CopyPolicy: Released under... |
13bdfe0e131fb5c489bb8e5107c9d562160f8f1e | 8cc93dd7bf4abfafc8efbc3ef8b477276b7bf8ed | /Worlds/Classes/ParallaxTileMap.h | 162b75787a8d01e0a436e4fe34c23d77153081cb | [] | no_license | rNdm74/Game | cd707f60635a946e7215932ae3c9f142b7cbc8ae | 9610caa0413a04b4a07fff6edefe5a56b003aa32 | refs/heads/master | 2016-09-10T10:37:39.830149 | 2015-04-08T09:22:13 | 2015-04-08T09:22:13 | 29,108,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,149 | h | ParallaxTileMap.h | #ifndef __com_dotdat_World__PARALLAX_TILEMAP_H__
#define __com_dotdat_World__PARALLAX_TILEMAP_H__
#include "cocos2d.h"
#include "Constants.h"
class IPath;
class IGameObject;
using namespace cocos2d;
class IParallaxTileMap : public ParallaxNode
{
public:
IParallaxTileMap(){};
virtual ~IParallaxTileMap(){};
virt... |
b8c822483dfcc5a718c46ca00033cf74983e79a4 | de911343c39f5614f54d887d598f3c43733d639b | /2740.cpp | 2b9bab3c028c8f8a8999a192d7d0f82d29ba570e | [] | no_license | dodo3371/BOJ | 118345953bef2c160ff4cb4fb5141aedaf421307 | f188997897430c1ea8ed4252b877cf47d2fa75ce | refs/heads/master | 2021-03-12T23:36:06.006410 | 2015-05-18T11:36:43 | 2015-05-18T11:36:43 | 32,395,494 | 1 | 2 | null | 2015-05-18T11:36:44 | 2015-03-17T13:38:54 | C++ | UTF-8 | C++ | false | false | 838 | cpp | 2740.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
int n, m, k;
int sum = 0;
int aTable[100][100];
int bTable[100][100];
int solTable[100][100];
int main()
{
#ifdef _CONSOLE
freopen("input.txt", "r", stdin);
#endif
scanf("%d", &n);
scanf("%d", &m);
for (int i = 0; ... |
b4798b181793488e62f1f2b9618d2e219343aa0a | 4b329c25aab0a4ad98ce2fecb099b4b6fa800b98 | /Chap6/6.BOGGLE/BOGGLE_LSJ.cpp | 58a4faa7d54873bc6949506852d2110b91326eef | [] | no_license | cjh8993/Algorithms | 156741ad0d248cedbffb0bde4a049ba654214856 | ade2e19ab080ed359a766fd1afe331dcbdf0eaf2 | refs/heads/master | 2021-09-30T23:14:12.682097 | 2018-11-26T01:22:35 | 2018-11-26T01:22:35 | 109,227,524 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,651 | cpp | BOGGLE_LSJ.cpp | #include <iostream>
#include <string>
using namespace std;
string board[5];
bool HasWord(int x, int y, string word)
{
// 주변 탐색을 위한 값
int dx[8] = { -1, 0, 1, 1, 1, 0, -1, -1 };
int dy[8] = { -1, -1, -1, 0, 0 , 1, 1, 1 };
// 보드판 영역 초과시
if (x < 0 || x>4 || y < 0 || y>4)
return false;
// 단어의 첫... |
9de768b1e1811dbb5363ffa40050fa97b665d601 | eff78f115546959de8fd447b945e90583ecb598c | /Projects/Sketch/src/Scenes/Sketch170425.hpp | a9c9e3cd75f03589d144bba7a1a9a567d8510d57 | [] | no_license | kuroyam/Sketch | e380489bdff666e742474c2bab50654238ce1c76 | 9ac6a69468ab43d746ddfbac80ad2b052670d85f | refs/heads/master | 2021-01-18T19:45:43.567103 | 2017-05-11T14:49:08 | 2017-05-11T14:49:08 | 86,911,225 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | hpp | Sketch170425.hpp | //
// Sketch170425.hpp
// Sketch
//
// Created by Shun Kuroda on 2017/04/26.
//
//
#ifndef Sketch170425_hpp
#define Sketch170425_hpp
#include "ofMain.h"
#include "PlusToSquare.hpp"
class Sketch170425 {
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void mouseD... |
d93c70336e87104218e7a2c5ef1629c826f054db | d4b4b3f23f7e610507d92f12475b0997e06b5517 | /4thSem/lab1/NewVersion/test.cpp | 188290214832e5247f397eae89251bc7a0c5d279 | [] | no_license | starquell/labs | 2725ce8101d7379c643651a21d88f2eb938bebb7 | 8288a9c2d8a6a0f0ee2ba5fddb3ca28c503766c5 | refs/heads/master | 2020-04-18T18:42:14.055434 | 2020-04-17T14:18:54 | 2020-04-17T14:18:54 | 167,692,397 | 12 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | cpp | test.cpp | #define CATCH_CONFIG_MAIN
#include "../Catch2/single_include/catch2/catch.hpp"
#include "src/Queue.hpp"
TEST_CASE("LinkedListImpl", "[list]") {
using namespace lab;
Queue<int, Storage::LinkedList> q = {1, 5, 23, 232, 11};
REQUIRE(q.front() == 1);
REQUIRE(q.pop() == 1);
q.push(4343);
REQUIRE(... |
e74a752271927d7b4ba1ac7272a6ec1c3b7f660d | 2fa31ae8d02cd92bf24bd8cf0f2a611a02a28519 | /since2018/integrated_algorithm/17271.cpp | 728f0c2996b00a4caaa35d0687336c46636dd18f | [] | no_license | dlftls38/algorithms | 3619186d8d832cda695dfbf985e5d86ef6f2f06e | 18ab96bbb3c8512a2da180477e4cc36a25edd30d | refs/heads/master | 2021-07-10T06:09:53.211350 | 2020-10-17T00:04:43 | 2020-10-17T00:04:43 | 206,953,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | 17271.cpp | #include <stdio.h>
#include <iostream>
#include <string.h>
#include <string>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <limits.h>
#include <functional>
#include <math.h>
#include <fstream>
#define INF 987654321
#define MAX_VALUE 1000000000
#define MO... |
e5ec1fe4590467b09577ac2d8b5ff7aa48359d20 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/background/background_application_list_model_unittest.cc | d926f4d6f613c729cb30821721e8afe26f0f0cc3 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 18,297 | cc | background_application_list_model_unittest.cc | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(rickcam): Bug 73183: Add unit tests for image loading
#include "chrome/browser/background/background_application_list_model.h"
#include <stddef.h>
#include <cstdlib>... |
d5e8b890683df54c8b39b74c8b5b45cd428b08b6 | 29396c66f6aae81537b25c3b9e8d22ec2fbd57a8 | /SurfaceVehicles/WAMV/Arduino/Libraries/PinChangeInterrupt/src/PinChangeInterrupt.cpp | 769ec7223d94fe1ccad6276aa94fe544ff012e04 | [
"MIT"
] | permissive | riplaboratory/Kanaloa | 49cbbafb7235e5d185bb4522c4deca8a3fd2c087 | 36650e2daff733a55c6546ffb0ff083b57c8c1b8 | refs/heads/master | 2022-12-11T03:00:30.284107 | 2021-12-10T07:57:00 | 2021-12-10T07:57:00 | 121,706,694 | 11 | 14 | null | 2022-12-09T16:56:36 | 2018-02-16T02:11:52 | Jupyter Notebook | UTF-8 | C++ | false | false | 11,071 | cpp | PinChangeInterrupt.cpp | /*
Copyright (c) 2014-2015 NicoHood
See the readme for credit to other people.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
t... |
03a3b949840f94f4a9bb0077700140185000fdc7 | 4131d75cb4e092b695eecbca5804e0e99461dcda | /src/cuda/softmax.cpp | 894ebcedb76cb6f9d3df5811eb4f5fa56b0e47ea | [] | no_license | apuaaChen/sparse_transformer_sc21 | e4c66ce8318a4a04bd44ffc8df78e5e5f1dda668 | 4e49e1b1fd70ffa9cf1d08aa93f9c4c7bb05c847 | refs/heads/master | 2023-05-07T03:06:09.319681 | 2021-05-30T19:12:33 | 2021-05-30T19:12:33 | 372,291,399 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,101 | cpp | softmax.cpp | #include <torch/extension.h>
torch::Tensor csr_softmax_cuda(
torch::Tensor row_indices,
torch::Tensor row_offsets,
torch::Tensor values,
float scaler,
int vec_length);
torch::Tensor csr_softmax(
torch::Tensor row_indices,
torch::Tensor row_offsets,
torch::Tensor values,
float scal... |
c8a4fc2848592bb56fe8d34d89c055027b6a88d6 | 789351deafcc8ecb053d097fff250cbae3cf054f | /Src/DataBase/Entity/Project_p.h | 1ac9a187267da75048aa4697e99a4c63e846bab8 | [] | no_license | masterofeye/RemoteDataConnectLibrary | a08ef75a9d3c31bda7be780caab83604c416b568 | 2a01a727587a7a52cd2be2c3404f25f00ea1fa25 | refs/heads/master | 2021-01-20T12:35:17.437364 | 2018-01-30T12:53:11 | 2018-01-30T12:53:11 | 90,384,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | h | Project_p.h | #pragma once
#include <qobject.h>
namespace RW{
namespace SQL{
class Project;
class ProjectPrivate : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(ProjectPrivate)
Q_DECLARE_PUBLIC(Project)
public:
QString m_ProjectName;
private:
Project * const q_ptr;
public:
ProjectPrivate(Project *Parent);... |
5e0803ac07f38a4449c03ce5abf04266663d2415 | 1c122e6a752e3b49b2a2e1ea8ff210cf4d937a65 | /test/test.cpp | 9e1c793e2c6bdeb84ab0d13fac9b1581c1e541e5 | [
"MIT"
] | permissive | DanEngelbrecht/AtomicIndexPool | b60259ff21e7b89126aa3ff15df1054db753f106 | 9d2f5493662fcdcda6b551a5b6b9add4c42b2083 | refs/heads/master | 2020-05-05T10:16:07.468953 | 2019-04-29T13:01:37 | 2019-04-29T13:01:37 | 179,937,403 | 7 | 0 | MIT | 2019-04-29T13:01:38 | 2019-04-07T08:28:29 | C++ | UTF-8 | C++ | false | false | 4,411 | cpp | test.cpp | #include "../src/atomic_index_pool.h"
#include "../third-party/nadir/src/nadir.h"
#include <stdlib.h>
#include "../third-party/jctest/src/jc_test.h"
TEST(AtomicIndexPool, AtomicFilledIndexPool)
{
HAtomicIndexPool pool = AtomicIndexPool_Create(malloc(AtomicIndexPool_GetSize(15)), 15);
for(uint32_t i = 1; i <... |
5d80926179217a0c59cdd4986134fb0f86598b98 | 088cbfe6597cc82ebeae1f2bb49a3fdede1ff3dd | /实践案例/opencv/main.cpp | 13b3e51c2bc3e60cc12e7ac6ffe6f3a6af991f14 | [] | no_license | SFUMECJF/cmake-examples-Chinese | 3ac7afcf65b66f11d8b3689358d2791c627e11ec | 979abb2fb0b4189f0181e4051d2b269964eb22ba | refs/heads/main | 2023-08-16T05:43:22.368187 | 2022-01-08T01:40:42 | 2022-01-08T01:40:42 | 301,707,249 | 2,215 | 351 | null | 2022-11-28T04:15:56 | 2020-10-06T11:41:09 | C++ | UTF-8 | C++ | false | false | 1,566 | cpp | main.cpp | #include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
int main() {
// cv::VideoCapture capture(0, 0);
cv::Mat frame;
//
// if (!capture.isOpened()) {
// std::cout << "open camera error!" << std::endl;
// return -1;
// }
//
// cv::Mat frame;
// while (1) {
// capture >> frame... |
e5614c864ee0b5a98a864c798c1527e231493327 | c37b56803c827b6cebb575c5dfcb3e572422daf4 | /jni/CImageLoader.cpp | 744e6c11cf239443121b5afebf103a7569991da4 | [] | no_license | ZeusAFK/MikuMikuPlayer | b737549b560d9f2d52da7911591bfd7ce884e318 | 8360958fdac0ff964dfd7109ee73b9f439235316 | refs/heads/master | 2020-11-30T16:20:00.182269 | 2012-08-20T13:42:36 | 2012-08-20T13:42:36 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,011 | cpp | CImageLoader.cpp | /*
* Copyright (c) 2012 lailai. All Rights Reserved.
*/
#include <android/log.h>
#include <iostream>
#include "CImageLoader.h"
#include "bitmap24.h"
using namespace std;
/**
* コンストラクタ<br />
* 空のインスタンスを生成します。
*/
CImageLoader::CImageLoader(void)
{
imageData = NULL;
imageWidth = 0;
... |
b4b3c94bd0974c3805c4645882c6da4c5c5fdc00 | 7a45295e1f3e32661e1ec353aa4189fe04b95199 | /2020-C++程序设计/源码/chapter01/例1-3.cpp | 0eaa62065dfc8055aa832342b9b9356bfb4e226a | [] | no_license | logic-three-body/C-BJFU | 59ccb9c5d7e8b3c4c9e46a39848cf4e60853597f | 724e01f0e586905a774317fcfddaf7cb69dd6389 | refs/heads/master | 2023-02-15T16:25:47.941492 | 2021-01-11T14:38:25 | 2021-01-11T14:38:25 | 328,692,630 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 272 | cpp | 例1-3.cpp | #include <iostream>
using namespace std;
int main()
{
int num = 100;
const int* p1 = #
int* p2 = const_cast<int*>(p1); //将常量指针p1转换为普通指针类型,去掉const属性
*p2 = 200;
cout << "num = " << num << endl;
system("pause");
return 0;
}
|
bf50e03ed8710ece011b81fd741191d6cb1b61d2 | 2496be1b80ca447c12b502817ece151a7a2aa50c | /forward_list容器/forward_list容器/BoxDemo.cpp | 5c73e63b986e81d602767797d84e178f4b740a2a | [] | no_license | Jason-zzzz/vscpp | 16c3ac31a518886c8baa8e33e1764d2e7370c5f2 | 35c0d1040b08824e0b9463c9d97e232dbf2577f3 | refs/heads/master | 2021-01-25T04:58:36.396146 | 2017-06-17T10:47:29 | 2017-06-17T10:47:29 | 93,494,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,539 | cpp | BoxDemo.cpp | #include <algorithm>
#include <iostream>
#include <forward_list>
#include <iterator>
#include "Box.h"
using namespace std;
template<typename Iter>
void list_elements(Iter begin, Iter end)
{
size_t perline{ 6 };
size_t count{};
while (begin != end)
{
cout << *(begin++);
if (++count % perline == 0)
{
cout ... |
bb4766a94645fc54a7f77c4cea689277375c5c06 | 4832149691f7cbcc30bbd3c2ac9abd5980344707 | /C++ Solutions/Tree/LC865_SmallestSubtreeWithAllTheDeepestNodes.cpp | e545c07a3c249279db63ff990be3b6f4259709fc | [] | no_license | kapil8882001/Coding-Practice-1 | 4149dc3151517e8a4b5d9bed507a58c309b79ad2 | f0679e543628bf093419e574dffad1a0a36dca2c | refs/heads/master | 2022-02-18T14:47:15.402707 | 2019-09-24T07:18:21 | 2019-09-24T07:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | cpp | LC865_SmallestSubtreeWithAllTheDeepestNodes.cpp | /*
Given a binary tree rooted at root, the depth of each node is the shortest distance to the root.
A node is deepest if it has the largest depth possible among any node in the entire tree.
The subtree of a node is that node, plus the set of all descendants of that node.
Return the node with the largest depth such t... |
f0662267eceab0c8798a6027d5465c4dd83c93bf | fdb8bdae3060dc94b4ea80263ccba48a0f96800d | /tower.cpp | bc7e0116b22549da620d4dd223ef46c8cf93671a | [] | no_license | velvetarchangel/algorithm_problems | 641e1822da05b72f5f33074b74f914ee60777e8c | a8bf9b76f7c5a1fd5656a81527e0924cec1e74bf | refs/heads/master | 2022-12-24T14:48:03.875134 | 2020-09-09T20:11:17 | 2020-09-09T20:11:17 | 211,401,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | tower.cpp | class Tower
{
public:
std::vector<std::string> towerBuilder(const size_t& nFloors)
{
const size_t center = nFloors-1;
std::string floor (2*nFloors-1, ' ');
std::vector<std::string> tower;
for(size_t shift = 0; shift <= center; ++shift)
{
floor.replace(center+s... |
4a948a3ae2bff79e85478f37037f1d5a0849ee6b | 3d42af4846f810dd75acfdddf55b79bca0b7a0d4 | /video_analysis/include/tensorflow/bazel-bin/tensorflow/compiler/mlir/tensorflow/transforms/generated_decompose_resource_ops.inc | 6b8be0429cf2b4245536006c8ce38b609ccc3185 | [] | no_license | Tingjia980311/video_experiment | bd251571c97af67e5a1685ff4e5a0407bc473bfa | 0434ccdbb0cf0db38722da60c6c1d6ab96e7de9b | refs/heads/master | 2023-06-09T07:55:55.611485 | 2021-06-27T12:42:23 | 2021-06-27T12:42:23 | 377,106,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100,486 | inc | generated_decompose_resource_ops.inc | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|* *|
|* Rewriters *|
|* ... |
051510924847c5228b5c03cb433a36d7a3f43aa0 | 9a2c8ba5b7cc5dbee6fae4e5b4a29d9fece08769 | /code/Trash-Mechanics/Trash-Mechanics/Command/CreatePolyCommand.h | 0bccd553a99e60bd937ff863f4864e95703c4452 | [] | no_license | River75731/Trash-Mechanics | e18f9d9768fc5a2ba5be94207abfa58737420b5a | 8268f0f3505232acb3989c62e7eb1f0e156d0111 | refs/heads/master | 2023-03-06T01:37:36.554755 | 2023-02-20T02:42:54 | 2023-02-20T02:42:54 | 195,524,672 | 2 | 2 | null | 2019-07-11T08:25:15 | 2019-07-06T10:00:58 | C++ | UTF-8 | C++ | false | false | 318 | h | CreatePolyCommand.h | #pragma once
#include "..\Common\CommandBase.h"
#include "..\ViewModel\ViewModel.h"
class CreatePolyCommand : public Command {
private:
std::shared_ptr<ViewModel> viewmodel;
public:
CreatePolyCommand(std::shared_ptr<ViewModel> vm) :viewmodel(vm) {} // bind to viewmodel
~CreatePolyCommand() {}
void pass();
};
|
eb1edc443416e3a140b8cf987539f24c98a880e8 | 7e27f6926378247885e56703e7d80e92a691b1ea | /cross-media-measurement/src/main/cc/wfa/measurement/common/crypto/noise_parameters_computation.h | 92531dee79083a961c18905083d4c503daefff86 | [
"Apache-2.0"
] | permissive | pasin30055/experimental | b0f8c292349b5508555618e66ec52363a416337f | da31d3b50476cd613bc8cf51630bdbed1e1d02d4 | refs/heads/main | 2023-03-03T18:20:45.176965 | 2021-02-13T00:07:42 | 2021-02-13T00:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,930 | h | noise_parameters_computation.h | // Copyright 2020 The Cross-Media Measurement Authors
//
// 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 applic... |
9f3f41805cea685ced60c63a3474266a04eb32af | c5ed293b85b079b92f1bf145c0cbf60b7a443fd4 | /bam_variant_extractor.h | f84d3276aba050aecd2b7921806617f70b58c065 | [
"MIT"
] | permissive | chapmanb/vt | 1eb59557b6a19fe9d4d6b3a9df3d40f4c90c811f | 44a1ec7fc4bac8f9d33dc5e18bb16708acf0d945 | refs/heads/master | 2020-12-25T04:30:17.935075 | 2015-02-10T10:14:42 | 2015-02-10T10:14:42 | 30,586,505 | 0 | 0 | null | 2015-02-10T10:13:59 | 2015-02-10T10:13:59 | null | UTF-8 | C++ | false | false | 3,558 | h | bam_variant_extractor.h | /* The MIT License
Copyright (c) 2014 Adrian Tan <atks@umich.edu>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
987511485c3ea5722e6855fcd5669c3a4e8f51d5 | 36f9ce1929798fc180780dd973155b99b24433d7 | /DeviceManage/DeviceManageDlg.h | 60f9361bc4cb50feb7bdf89f40f2aed40441b4b9 | [] | no_license | sunlong0724/myworkspce | 46b414ac17814192c4a4aad3cd6c4b60698a50ec | 8bca777024581a2087fce711eb2af00a2eee157e | refs/heads/master | 2021-01-17T16:22:44.860436 | 2016-09-18T01:56:32 | 2016-09-18T01:56:32 | 62,546,066 | 4 | 0 | null | null | null | null | GB18030 | C++ | false | false | 746 | h | DeviceManageDlg.h |
// DeviceManageDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
#include "CameraDlg.h"
// CDeviceManageDlg 对话框
class CDeviceManageDlg : public CDialog
{
// 构造
public:
CDeviceManageDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DEVICEMANAGE_DIALOG };
#endif
protected:
virtu... |
0270f509fa3048cf37e163ef1c318f93d373e23a | 6cf77f590950a5222cb62a3440f8f2b0b8022ce4 | /src/Node.h | 42dad4b03b84b10533bbd2488c11643702b63434 | [] | no_license | luismierez/OpenGlProceduralCity | 5b34d2cbd771a9159e1149f1cc5b44ad2d20ff8a | 0efdff91437d2abb08d89f85c9a3a32cb9dbc296 | refs/heads/master | 2021-01-17T23:08:15.310411 | 2014-06-10T20:59:43 | 2014-06-10T20:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | h | Node.h | #pragma once
/*
* Abstract class represesnting a node in a scene graph
*/
#include <list>
using namespace std;
class Node
{
protected:
list<Node*>* children; /* A std::list of this node's children */
Node* parent; /* A pointer to this node's parents. NULL if node is the root */
public:
virtual vo... |
b9104973a9986acadfd8fb86154bc34db9618f01 | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bseg/bstm/cpp/algo/Templates/bstm_refine_blk_in_time_function+BSTM_GAUSS_RGB-.cxx | 055286267b9fd72bf635a467dd4f6768b63c8c66 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 184 | cxx | bstm_refine_blk_in_time_function+BSTM_GAUSS_RGB-.cxx | #include <bstm/bstm_data_traits.h>
#include <bstm/cpp/algo/bstm_refine_blk_in_time_function.hxx>
template class bstm_refine_blk_in_time_function<BSTM_GAUSS_RGB, BSTM_NUM_OBS_SINGLE>;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.