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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7ebbe86a9f034f412522373f06121d331f88c0e | b69d489b57db71cd97b8d81cd754ae7bea5368aa | /.study/2020 interview practice/numberCard_line_practice.cpp | 567d99e3fa176d75017cd693b8dd724d18b438a6 | [] | no_license | sejoonkim/algorithms | e4f8340cb31d87142208f9a07f1c3f56d5b4a2ee | 68e214847623871ec8649aeb5244bc7ab3ca7440 | refs/heads/master | 2021-03-25T09:05:14.443932 | 2020-09-08T13:06:51 | 2020-09-08T13:06:51 | 247,603,297 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | cpp | numberCard_line_practice.cpp | /*
1. create vector<int> && fill it in
2. sort(v.begin(), v.end());
3. for (int i = 0; i < K; i++){
next_permutation(v.begin(), v.end());
}
4. for (auto i : v)
cout << i << ' ';
*/
#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int K;
int main(void) {
for (int i = 0; i < 3; i++) {
i... |
0a0ae440d6fbabce197a12b3a7a0b5fc12d81ae3 | d4ef2bd683cf911e240d28ff4eb585cf2be04e52 | /Placement Preparation/Interview Bit/Arrays/Min Steps in Infinite Grid.cpp | 9455757c78f057dde6fe4a50c1557edfa1745c1f | [] | no_license | pr97/Algotithms-and-Data-Structures | 440959da8619b5af0842fa70e1f4ea5c93750ed2 | c1ff3d03163cab21d25d50f0cba5e4c3e54338f5 | refs/heads/master | 2020-03-19T04:25:15.825777 | 2019-09-01T21:09:14 | 2019-09-01T21:09:14 | 135,825,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | Min Steps in Infinite Grid.cpp | #include <bits/stdc++.h>
using namespace std;
int coverPoints(vector<int> &A, vector<int> &B) {
int min_dist = 0;
for(int i = 0; i < A.size() - 1; ++i) {
min_dist += (int)abs(A[i] - A[i + 1]) + (int)abs(B[i] - B[i + 1]) - min((int)abs(A[i] - A[i + 1]), (int)abs(B[i] - B[i + 1]));
}
return min_... |
a4fa58b3944605dfcc033252c7f150619014c241 | 24a334c5b0e783f5fa2ef3738344a0d4ebe15835 | /2DAction/2DAction/Result.cpp | 59cfbc2423c1a526adc2d86a6069c272a6541857 | [] | no_license | ha-k-pg-saito/LateTask2020Action | bdd3839904b8952d9da1257ebb56ee0be3e5dd94 | 048cc413ee42a95f765d36b1153d28f0d7ba61dd | refs/heads/main | 2023-02-26T15:57:19.903642 | 2021-01-31T10:20:08 | 2021-01-31T10:20:08 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 911 | cpp | Result.cpp | #include"Result.h"
#include"enum.h"
#include"Src/Engine/Engine.h"
void UpdateResultScene()
{
switch (g_SceneStep)
{
case SceneStep::Init: InitResultScene(); break;
case SceneStep::Run: RunResultScene(); break;
case SceneStep::Finish: FinishResultScene(); break;
}
}
void InitResultScene()
{
Engine::Up... |
9b0c2f4c55acdc9f4d8e951b37bbac9b1c321bfa | 62887c946b6259a38d34eed02c743e54328c9a7b | /tools/llvm-extract/llvm-extract.cpp | 769f82a057dc45369556589e6de797b10b2471b8 | [
"NCSA"
] | permissive | christinaa/LLVM-VideoCore4 | 7b5e75579c913ba32c6036ad3e2d485c79c05896 | 7773c3c9e5d22b785d4b96ed0acea37c8aa9c183 | refs/heads/master | 2021-01-01T05:16:15.234008 | 2016-05-03T06:12:35 | 2016-05-03T06:12:35 | 57,804,356 | 163 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 9,652 | cpp | llvm-extract.cpp | //===- llvm-extract.cpp - LLVM function extraction utility ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
41b5a9c3097c003c979ce4c6e0c1d3d005cbb29d | 46f7cb7150697037d4b5f434dde423a1eeb8e422 | /src/face/database/face_database.cpp | 5079debbe0e3f8ac289e62649abd6d9854e138c7 | [
"MIT"
] | permissive | MirrorYuChen/ncnn_example | d856f732e031b0e069fed7e30759e1c6c7947aaf | 82a84d79c96e908f46b7e7cac6c8365c83b0f896 | refs/heads/master | 2023-08-18T06:31:06.113775 | 2022-05-14T17:38:01 | 2022-05-14T17:38:01 | 183,336,202 | 362 | 108 | MIT | 2022-06-22T04:17:14 | 2019-04-25T01:53:37 | C++ | UTF-8 | C++ | false | false | 4,538 | cpp | face_database.cpp | #include "face_database.h"
#include <iostream>
namespace mirror {
class FaceDatabase::Impl {
public:
Impl() {
max_index_ = 0;
features_db_.clear();
}
~Impl() {
}
bool Save(StreamWriter& writer) const {
const uint64_t num_faces = db_.size();
const uint64_t dim_feat = kFaceFeatureDim;
const uint64_t ... |
3022c8581bf14b5c7fa42eebee24052f350431ac | 5c4a86b7617b35acb2f1bdcbd5d15150914d6695 | /sourcefile/3-9.cpp | d68d4555e66b1ba4c8b514efdd5d9d0cfb3d437b | [
"MIT"
] | permissive | soh9646/soh9646.github.io | 69f3854c97dbbea0884c42850e8f82061b3cd3e8 | f820ce25d8945b7d23a18c52c1904b75e9e5b9ef | refs/heads/master | 2020-11-28T05:35:42.306248 | 2020-01-07T14:38:55 | 2020-01-07T14:38:55 | 229,443,954 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 200 | cpp | 3-9.cpp | #include <stdio.h>
main()
{
char addr[100];
printf("input address\n");
gets(addr);
printf("%s\n", addr);
printf("다시 한번 입력하세요.\n");
scanf("%s", addr);
printf("%s\n", addr);
}
|
5d5e2c9b0bddfcd739b00b0dc45a7a64933f3a5a | caf1ac685bf8570eb8d94d07e364b038ac2cd9e7 | /Source/SteppingIsland/Players/PlayerCameraPawn.cpp | 16216e659626a0843a1babf4165ada5f518e1cad | [] | no_license | nedcrow/SteppingIsland | 6ec48d88980ade43e5caaaa68eaa848456730d05 | 2299142308fdb386507aac8f53efadea50b13071 | refs/heads/main | 2023-08-18T18:11:54.372722 | 2021-10-11T13:14:56 | 2021-10-11T13:14:56 | 392,620,740 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 8,149 | cpp | PlayerCameraPawn.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "PlayerCameraPawn.h"
#include "../TileSystem/TileMap.h"
#include "../MainPC.h"
#include "Camera/CameraComponent.h"
#include "Components/SphereComponent.h"
#include "GameFramework/FloatingPawnMovement.h"
#include "GameFramework/Sp... |
bf7b5a7afa18a38e2535265ad713a09c9d4f75fd | fee377770d9609115ea487aa3e2045574d9235c0 | /test/gtest/ucg/test_coll_algorithm.cc | 73cd37046bcba33fb8b6d37a254cdc5072d645f4 | [
"BSD-3-Clause"
] | permissive | LetGoOfMyChickenLeg/hucx | bed3126ec0e8e7ebcdfcc4eff1336a31967d8db2 | 0a2c9ae2a98694f1235bbceaeaf7cc78f410f960 | refs/heads/huawei | 2023-01-23T02:13:01.031141 | 2020-12-05T05:57:55 | 2020-12-05T05:57:55 | 297,797,689 | 0 | 0 | NOASSERTION | 2020-09-22T23:32:39 | 2020-09-22T23:32:38 | null | UTF-8 | C++ | false | false | 5,452 | cc | test_coll_algorithm.cc | /*
* Copyright (C) Huawei Technologies Co., Ltd. 2019-2020. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#include <common/test.h>
extern "C" {
#include <ucg/builtin/plan/builtin_plan.h>
#include <ucg/builtin/ops/builtin_ops.h>
#include <ucg/api/ucg_plan_component.h>
}
#include "ucg_test.h"
#include "ucg... |
1e8202583a03d801a6b086eb9e237c682fbbdfb9 | 3cddae9abac1a5f89ff56ecac4179c741700f02f | /Dragon/include/operators/arithmetic/dot_op.h | e18bd5b055d7db38b7b387056e3bac5cb1c0a051 | [
"BSD-2-Clause"
] | permissive | divfor/Dragon | 03383c6db4bcbe72b76ea1cc27abd5de64a7e847 | 53d5742dd20f3b345ae5648066bf3a1329ce3ee4 | refs/heads/master | 2023-05-30T12:18:08.692159 | 2017-08-09T03:43:30 | 2017-08-09T03:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,558 | h | dot_op.h | // --------------------------------------------------------
// Dragon
// Copyright(c) 2017 SeetaTech
// Written by Ting Pan
// --------------------------------------------------------
#ifndef DRAGON_OPERATORS_ARITHMETIC_DOT_OP_H_
#define DRAGON_OPERATORS_ARITHMETIC_DOT_OP_H_
#include "core/operator.h"
namespace drag... |
1b29008bd34e4de97983a507677aa75a635f9521 | bfd169736b76a55186cca6c337ab811c77905b20 | /Array/Searching Sorting/Sorting/Q5.cpp | 373e4d4735ea6b7900c2e0328dfe883a35f3fc90 | [] | no_license | abhi25g/coding-practice | 6b0ecdcd4424f631753569ab0dbc6e2efa3dbedc | 7bb30e849b0fdca42a54e14558f9eb0274f06262 | refs/heads/master | 2020-03-18T18:05:49.473477 | 2018-06-19T16:11:55 | 2018-06-19T16:11:55 | 135,071,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | Q5.cpp | #include<iostream>
using namespace std;
int main()
{
int *arr1 = NULL,*arr2 = NULL, size1, size2, i, k, j;
cout << "\nEnter the size of the array 1 ";
cin >> size1;
arr1 = new int[size1];
cout << "\nEnter the array ";
for( i=0; i < size1; i++)
cin >> arr1[i];
cout << "\nEnter the size of the array 2 ";
cin >>... |
b014e406fde577cc16e8308298cac38d57f9b729 | 157fd7fe5e541c8ef7559b212078eb7a6dbf51c6 | /TRiAS/TRiAS/Exportfilter/ArcInfo E00/Fileobj.hxx | f2b778fbfaa4868185b855959b543e22032d2956 | [
"MIT"
] | permissive | 15831944/TRiAS | d2bab6fd129a86fc2f06f2103d8bcd08237c49af | 840946b85dcefb34efc219446240e21f51d2c60d | refs/heads/master | 2020-09-05T05:56:39.624150 | 2012-11-11T02:24:49 | 2012-11-11T02:24:49 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 786 | hxx | Fileobj.hxx | /*
Datei: FILEOBJ.hxx
Die Klasse FileObj ist in erster Linie als scoping class eines FileHandles
entworfen worden.
Erarbeitet: J. Benkenstein Stand vom: 20.12.1993
*/
#ifndef _FILEOBJ_HXX
#define _FILEOBJ_HXX
class FileObj {
private:
// Attribute
OFSTRUCT *_pof;
int _fh;
Boo... |
746369ec3d2016c7e8b3c42b9b7a62c8e84a36e0 | 2127034405f590f25fe0d3be0c413e8283c0e83f | /GulgECS/Includes/GulgECS/AbstractSystem.hpp | 96e20c234804adc890369edd0c5281c056c81081 | [] | no_license | Djesteur/Gulg | 870becfa9f8b84d79fd006c2eb41a0ff8cd12d36 | 65d68284dcfef526a1438f015727bdf8b78471bc | refs/heads/master | 2023-08-31T08:17:25.755814 | 2023-08-23T19:19:47 | 2023-08-23T19:19:47 | 191,071,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,352 | hpp | AbstractSystem.hpp | #ifndef ABSTRACT_SYSTEM_HPP
#define ABSTRACT_SYSTEM_HPP
#include <vector>
#include <algorithm>
#include "GulgECS/ComponentKeeper.hpp"
#include "GulgECS/Signature.hpp"
#include "GulgECS/GulgDeclarations.hpp"
namespace Gg {
namespace System {
/**
* @brief Parent class for all systems used in Gulg
* @detail... |
6a9b2c7116a0d00c355b7b589235fc48954e5e70 | 9ef40b8cffa533377c5ab2a5d20cc2558169b099 | /WASP/src/server/ReassignQueue.hpp | b2f1459c05c07f6351d0d740cd8ea4bd99db1788 | [] | no_license | taroyuyu/WASP-Graph-Partitioner | d79673e0ff4d4f69292920d6739256aa819df012 | 0989ffdd9564ad9c5aa2b13d587f70648bf606c0 | refs/heads/main | 2023-03-18T09:34:38.303180 | 2021-02-02T16:13:32 | 2021-02-02T16:13:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,449 | hpp | ReassignQueue.hpp | #ifndef REASSIGNQUEUE_HPP_
#define REASSIGNQUEUE_HPP_
#include <iostream>
#include <vector>
#include <set>
#include <pthread.h>
#include <tbb/concurrent_unordered_map.h>
#include "type.h"
#include "triple_t.hpp"
#include "WeightUpdateTask.hpp"
using namespace std;
class ReassignQueue{
private:
vector<set<sid_t>> o... |
eaa9780689a77bac5b57adfed6f869641463bf45 | 7b2daf1e2745e4d0286d9e71fec9ae483e8ec460 | /src/ast.cpp | 681222498fbdfbab03e0402f0deb46551fdac89c | [
"MIT"
] | permissive | paked/loaf | b40aae4a83c0cb05a4993fc5f695772be14a5b5d | da8ec7f08391a418e46c59f6354d011c17e55665 | refs/heads/master | 2020-03-30T00:09:04.487639 | 2019-03-22T10:15:27 | 2019-03-22T10:16:47 | 150,507,495 | 3 | 0 | MIT | 2019-01-27T07:31:33 | 2018-09-27T00:48:04 | C++ | UTF-8 | C++ | false | false | 16,506 | cpp | ast.cpp | struct Variable {
char* start;
int len;
// TODO(harrison): embed token in here instead of start/len
int slot;
};
#define MAX_SYMBOLS (10)
struct Scope {
int count;
Variable variables[MAX_SYMBOLS];
Scope* parent;
};
void scope_init(Scope* s) {
s->count = 0;
s->parent = 0;
}
void scope_init(Scope* ... |
e906a2d8b5d9f1d9bfb39dd639c2ac83b76e0b4f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ui/gfx/font_fallback_unittest.cc | 5a65e67c48fe3ff80684981c9ffe23f1a996f58b | [
"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 | 9,562 | cc | font_fallback_unittest.cc | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <tuple>
#include "base/containers/contains.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#inc... |
4d661e3151aae77745639a9b149461b04bcdb178 | f5fd47fd61727379d71f281bbc04a717cf2ae7db | /RPGGame/RPGGame/Manager/Town/HomeManager.h | 8c0f34ec821f4ac1745817e58d43101b1ff063f3 | [] | no_license | lost0812/UnityGame | 4e92abec59627d682032b759f15e137ef1f8a647 | faa3344ba36bc4ca5e4d3143b7a630943366d7c7 | refs/heads/master | 2021-01-01T04:58:44.781227 | 2017-07-16T03:06:52 | 2017-07-16T03:06:52 | 97,280,259 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 935 | h | HomeManager.h | #ifndef __HOMEMANAGER_H__
#define __HOMEMANAGER_H__
#include <string.h>
#include "Singleton.h"
#include "Bag.h"
using std::string;
class HomeManager : public Singleton<HomeManager>
{
public:
HomeManager();
virtual ~HomeManager();
public:
/**
* @brief 初始化
*/
virtual bool Init();
/**
... |
5ff58529e6b336fd03108b9673ae9dad4c9ebab2 | 25787db8725eda8912f23fb6566bef9ef2dd43b7 | /Welcome.cpp | 5717f0036f05ab381678d0c0fd4d2da7afd2a9af | [] | no_license | cytaz/student_grade_manage_system | 3f7a7eddea6c554c1487b837951286676ac497f1 | 46dbaec5293ea527ca5fa96b4de2ae15166ab1e6 | refs/heads/master | 2020-04-11T21:05:33.767354 | 2018-12-20T08:52:16 | 2018-12-20T08:52:16 | 162,094,311 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 630 | cpp | Welcome.cpp | #include "HeaderFile.h"
using namespace std;
void Read();
void Branch(int num);
void Welcome() {
printf("欢迎来到学生成绩管理系统!!!\n");
Sleep(500);
printf("请键入数字以从下列选项中进行选择(在所有选择中我们都只会识别你输入的第一个字符):\n");
printf("1:查询个人信息\n");
printf("2:成绩录入\n");
printf("3:成绩修改\n");
//printf("4:成绩添加\n");
printf("5:成绩删除\n");
printf("6:统计\... |
4318e5ffdbd8afed623d2cba2f00cc7175a00513 | 4c5dfb3a58a0d61ec35a9109391ff9f29372e25c | /LeetCode/Search_in_Rotated_Sorted_Array.cpp | d6af83e3663b64176e67c50a37deacc552f9eb06 | [] | no_license | bingbingzhenbang/LeetCode_Answers | 2f9ed861e1b492198417fb90fca694ef09592d6d | 2dee09505a8e942c4c08e285c8ac589894e504f5 | refs/heads/master | 2021-06-12T04:29:32.770480 | 2021-05-16T12:54:53 | 2021-05-16T12:54:53 | 65,536,300 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | Search_in_Rotated_Sorted_Array.cpp | //Suppose a sorted array is rotated at some pivot unknown to you beforehand.
//
//(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
//
//You are given a target value to search.If found in the array return its index, otherwise return -1.
//
//You may assume no duplicate exists in the array.
#include <vector>
... |
67d9aa28bfe414eec394c51a80421a9f4033bee0 | 31f5cddb9885fc03b5c05fba5f9727b2f775cf47 | /editor/Qt/5.10.0/msvc2017_64/include/QtCore/qendian.h | 3337829de0bd75893c366d8722bb9f4a40277d60 | [
"MIT"
] | permissive | timi-liuliang/echo | 2935a34b80b598eeb2c2039d686a15d42907d6f7 | d6e40d83c86431a819c6ef4ebb0f930c1b4d0f24 | refs/heads/master | 2023-08-17T05:35:08.104918 | 2023-08-11T18:10:35 | 2023-08-11T18:10:35 | 124,620,874 | 822 | 102 | MIT | 2021-06-11T14:29:03 | 2018-03-10T04:07:35 | C++ | UTF-8 | C++ | false | false | 11,794 | h | qendian.h | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2016 Intel Corporation.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License... |
d54d639c75033e48a68886ad43cbf7f13bd9db76 | 50eeb07fb93d89d981a7c95ed9141405b3105736 | /heuristic/path_scanning_ellipse.hpp | 13d0499e77f9d54709363553e9c5c7dcfa87ad16 | [
"MIT"
] | permissive | zmdsn/MANSP | b143e47e2b7772b43e1132ff4c4a73586feac27a | 180b985ed4abc255f5ccce5ee9e4da4e473433e2 | refs/heads/main | 2023-04-12T06:53:39.728665 | 2021-05-05T07:31:27 | 2021-05-05T07:31:27 | 360,737,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,376 | hpp | path_scanning_ellipse.hpp | /*************************************************************************
* Name : ../heuristic/path_scanning_ellipse.hpp
* Author: zmdsn
* Mail : zmdsn@126.com
* Created Time: Sat 30 Jan 2021 05:56:33 PM CST
*
************************************************************************/
#ifndef __PATH_SCANN... |
75ec0692e5c515384f02dd8f720f0add791dfd65 | a130f274693cad76d3d3a5d19ec8c3f050b26272 | /dmc/wavefunction/jastrowWavefunctionOneBody.h | 9eb717be5dc11e0e4efb92b9543e75c895e764f5 | [
"MIT"
] | permissive | lucaparisi91/qmc3 | 97c4f14bf6b26afef3d9c069fb47a2ed8905d9f2 | f76178896ecf7b79af863f8d4fc3653326bea5c3 | refs/heads/master | 2021-07-15T19:22:17.340735 | 2021-04-19T06:59:26 | 2021-04-19T06:59:26 | 251,237,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,195 | h | jastrowWavefunctionOneBody.h | #ifndef JASTROW_ONE_BODY_WAVEFUNCTION_H
#define JASTROW_ONE_BODY_WAVEFUNCTION_H
#include "wavefunction.h"
#include "walkers.h"
template<class jastrow_t>
class jastrowOneBodyWavefunction : public wavefunction
{
public:
using diff_t = ::difference_t;
using distances_t= ::difference_t;
using wavefunction::accumu... |
1753fb6582b921360c98e33a63d68f482fe46c8f | 120eb6e3eefd4083d719ab90ed288c88fcedfaed | /game/core/Formation.cpp | 69e32eb57600f5103f928a129dc1205ff72b7c90 | [] | no_license | AspidT/Zerlight | b111d6c874033b1bccef1780d8479f216d0239b0 | 2fb6d713580f4b93217274ee8f655b5af0682a07 | refs/heads/master | 2020-04-18T18:59:39.029017 | 2019-01-28T16:47:29 | 2019-01-28T16:48:51 | 167,700,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | Formation.cpp | //
// Created by tatiana on 26.03.2018.
//
#include "Formation.h"
namespace game
{
Formation::Formation()
{
mAvoidEnemies=false;
mPerk=FormationPerk::None;
mDefendGnomes=false;
}
Formation::~Formation()
{
}
const bool& Formation::avoidEnemies(... |
605042bb2f8e451d76913de4d98a9667df7d5d22 | b45f7e4b5489deabf2ef915177febb47f81d850d | /JuniorHandlerOutput.h | 2ef8b934fe52862622d6a8297f58397586566920 | [] | no_license | AnatolFil/Junior | 677339945468521a9aac0bd638f333cd5b9b50b8 | 95130be700c8990ae31765020a161761df04ec33 | refs/heads/master | 2023-08-14T12:45:52.754159 | 2021-10-09T07:37:10 | 2021-10-09T07:37:10 | 411,555,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,413 | h | JuniorHandlerOutput.h | #pragma once
#include <iostream>
#include <Junior.h>
#include <DateHandlerOutput.h>
#include <AddressHandlerOutput.h>
#include <algorithm>
class JuniorHandlerOutput
{
public:
static void ShowName(Junior Jun);
static void ShowSecondName(Junior Jun);
static void ShowSurName(Junior Jun);
static void ShowSpecial... |
7ded6e04c19d0247643d2d7ed99cc773fd949c18 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/printscan/faxsrv/com/whistler/faxoutboundroutinggroup.h | e8b19c9e2dc7b812bf85feb825df1cc22657e994 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 1,947 | h | faxoutboundroutinggroup.h | /*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
FaxOutboundRoutingGroup.h
Abstract:
Declaration of the CFaxOutboundRoutingGroup class.
Author:
Iv Garber (IvG) Jun, 2000
Revision History:
--*/
#ifndef __FAXOUTBOUNDROUTINGGROUP_H_
#define __FAXOUTBOUNDROUTINGGROUP_H_
#incl... |
f58eb27e98e90c3d7572ca3f65ae0c3043e8b024 | 1cba69870e0a754e39b0b63201cd90446ad10590 | /Heroes (no UI)/Thief.cpp | 9cd8af5e352fb3d030d1585c91ee56ead3a1a7db | [] | no_license | ItaiKatz1/Heroes-no-UI- | dfbce0299e14802fb29eff71d28b59d6b7206519 | 5658c2b2110d75230a136f9fa575ea8e3daac0cb | refs/heads/main | 2023-04-15T19:10:13.827893 | 2021-04-25T16:05:22 | 2021-04-25T16:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,399 | cpp | Thief.cpp | //
// Created by tomer on 30/12/2018.
//
#include "Thief.h"
Thief::Thief(){
this->Hero::setGold(750);
this->Hero::setName("thief");
type = "Thief";
}
Thief::~Thief(){
}
Thief::Thief(string newName){
if(!this->Hero::setName(newName)){
throw CorruptUserException(newName);
... |
6d0a1134ff6f68f8cccecf2045f66ccc7cc43141 | d86e3e9578cc4efc5d772067edc191f792ade914 | /HtmlBuilder/InputPath/CustomListModel/CustomListModel.cc | 7a3c6f79162681b7023ae7b29e6b708f8fc9a80a | [] | no_license | birdatdotty/HtmlBuild | bf4f4cb2edf6d3b84e53f9b3081a341f335ed072 | a9474d1c226c410ba6f79f12db3c137743ae91d9 | refs/heads/master | 2020-04-27T19:36:33.409446 | 2019-03-14T05:15:24 | 2019-03-14T05:15:24 | 174,625,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,678 | cc | CustomListModel.cc | #include "CustomListModel.h"
CustomListModel::CustomListModel(QObject *parent):
QStringListModel(parent){
}
CustomListModel::CustomListModel(const QStringList &strings, QObject *parent):
QStringListModel(strings, parent){
}
Qt::ItemFlags CustomListModel::flags (const QModelIndex & index) const {
Qt::Ite... |
00bf961899eb65027298853ff8f3efa96d8fde30 | 27ef6b50e8d2d388ab0f745e5c402117baedf983 | /07Adapter/challenge/DroneAdapter.h | 81c4a02c09fc9f930753263646415b79ec8ebe00 | [] | no_license | sanqima/HeadFirstDesignPatternsCPP | c7decb6d4af5165ba5ada99e22cd4fe095e4bff3 | 1d8e20d9745610d69fbce92a600125a7ba5e1386 | refs/heads/master | 2023-03-16T18:45:04.567965 | 2020-09-28T13:48:37 | 2020-09-28T13:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | h | DroneAdapter.h | #pragma once
#include "../ducks/IDuck.h"
#include "IDrone.h"
#include <memory>
namespace adapter::challenge
{
class DroneAdapter : public ducks::IDuck
{
std::shared_ptr<IDrone> drone = nullptr;
public:
explicit DroneAdapter(std::shared_ptr<IDrone> newDrone);
void quack() overrid... |
53a941bc0083e09684742e9af78514bfa4fa1b94 | 3ccf4a95db32ab8447cc166eb0e7a832de773613 | /question1064/C++/question1064_1.cpp | aa09bd304c9ccbe6820d89986229ac29e95d75fc | [] | no_license | 617076674/PAT-ADVANCED | 819ddb3f586c99477fadcbee1310462c6d274282 | 8fad272826be1f9bd1058cd5c13cea7440beb80e | refs/heads/master | 2020-04-03T02:47:24.599663 | 2018-12-10T13:31:07 | 2018-12-10T13:31:07 | 154,967,128 | 4 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,851 | cpp | question1064_1.cpp | #include<iostream>
#include<vector>
#include<queue>
#include<algorithm>
#include<cmath>
using namespace std;
struct node {
int data;
int lchild;
int rchild;
};
int N;
node Node[1000];
int index = 0;
vector<int> inOrder;
vector<int> levelOrder;
int create(int left, int right);
void levelOrderTraversal(int root);
... |
1624bcc616047342f0641f9e076552d800de5786 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/TFMPvalue/src/ParseException.h | ec1c936d36dad445207d88174e243ecf5135464e | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 285 | h | ParseException.h | /*
* ParseException.h
* pvalue
*
* Created by Jean-Stéphane Varré on 02/07/07.
* Copyright 2007 LIFL-USTL-INRIA. All rights reserved.
*
*/
#ifndef __PARSEEXCEPTION__
#define __PARSEEXCEPTION__
#include <iostream>
using namespace std;
class ParseException { };
#endif
|
33bbe9cf924dc2f09455bc530c59d5ea78bb0f6b | 4329c8908e407d7d2e2fae2dc2bad9806bcacff3 | /test2/myplayer.cpp | 6a4e9d3988407beb4fa32a2c7839d10911cf236b | [] | no_license | sunkwei/zmovie | 4c7846c0cbfe834975c77b40346a507b5e41510e | 400907b7851baec32c6e24a854e1e56810aed502 | refs/heads/master | 2021-01-17T14:24:33.792184 | 2015-08-18T12:28:49 | 2015-08-18T12:28:49 | 34,608,801 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,394 | cpp | myplayer.cpp | #include "myplayer.h"
#include <QPainter>
#include <stdio.h>
#include <QRect>
#include <QPen>
#include <sstream>
#include <QtScript/QScriptEngine>
#include "cJSON.h"
MyPlayer::MyPlayer()
{
cfg_ = _cfg;
img_rending_ = 0;
timer_.setInterval(10);
QObject::connect(&timer_, SIGNAL(timeout())... |
aa3146e1ee79f2df36d7b6b986686b173fd20557 | 0daf354eb397ed0fb8f0df8a2ccf184713e2adcf | /src/Integrator/StressRelaxation.cpp | 4ea7c5066fbdf0080bfe1bec42473833d405cec4 | [] | no_license | drinkingpanda/alamo | 344799354a6bdcb4ac03b3d47850a7671253056f | 072845db493a2dba47e722fd09d142961b644cce | refs/heads/master | 2020-06-27T19:42:05.763347 | 2019-07-03T18:42:48 | 2019-07-03T18:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,364 | cpp | StressRelaxation.cpp | #include "StressRelaxation.H"
//#if AMREX_SPACEDIM == 1
namespace Integrator
{
StressRelaxation::StressRelaxation():
Integrator()
{
//
// READ INPUT PARAMETERS
//
amrex::Vector<std::string> bc_hi_str({AMREX_D_DECL("EXT_DIR", "EXT_DIR", "EXT_DIR")});
amrex::Vector<std::string> bc_lo_str({AMREX_D_DECL("EXT_DIR", "... |
7240c97b971bd2f06860e38ddac79fb7e0a3d95a | 31e3b479cb186199bf99dfe33504be6462583a83 | /example/user/ran_constraint.cpp | 7be0eb2a2c95a4145a2fbff8c700db032c019cd4 | [] | no_license | bradbell/cppad_mixed | decf2a30045bf07e4aa2733f9ec0adfc0a3badba | 134126527cbf8f9bfe9125ff9cc645cd3425f29e | refs/heads/master | 2023-02-05T07:17:26.296928 | 2023-01-12T13:58:00 | 2023-01-12T13:58:00 | 47,637,452 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,297 | cpp | ran_constraint.cpp | // SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: University of Washington <https://www.washington.edu>
// SPDX-FileContributor: 2014-22 Bradley M. Bell
// ----------------------------------------------------------------------------
/*
{xrst_begin ran_constraint.cpp}
Constraints On Random Effect... |
bf653af6c6a06eae54716391e83bc18fe1204fd0 | 0ad0fecf62c8e708e1387acd414e0b705b7761c3 | /1354 - IP Checking.cpp | 62c3f0fc3e1333569180a66f623532f8ba5fae32 | [] | no_license | Kamrul-Hasan-1971/LightOJ | 6f7e61cf4013674763e60a139096a9f658742114 | 5fa5ef948bfc6edd8cc6203f5872259fc87b785b | refs/heads/master | 2022-10-06T16:42:44.254190 | 2020-06-06T17:41:12 | 2020-06-06T17:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 955 | cpp | 1354 - IP Checking.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pii pair<int,int>
#define output freopen("output.txt","wt", stdout)
int binaryToDecimal(int n)
{
int num = n;
int dec_value = 0;
int base = 1;
int temp = num;
while (temp) {
int last_digit = ... |
af7118beda6bb170b92a6d681612ebfdffcab548 | 4de6a4972a4da9b5bc3d0d776c529047423f3dab | /Common/inc/AuthUDPPacket.h | 4c436927fd1d89452876f4c93d44128cddf040a8 | [] | no_license | YaskOne/R-Type | ad6a3ac331b8391521521bbe6f2c873f61a434a4 | 7eb873203d350207e5d2efacc3dd81033f374caf | refs/heads/master | 2020-12-24T19:37:13.678440 | 2016-04-12T15:53:33 | 2016-04-12T15:53:33 | 56,076,831 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | h | AuthUDPPacket.h | #ifndef AUTHUDPPACKET_H_
# define AUTHUDPPACKET_H_
# include "AServerPacket.hh"
class AuthUDPPacket : public AServerPacket<ServerUDPResponse>
{
public:
AuthUDPPacket(ServerUDPResponse, int, Bool, float);
AuthUDPPacket(ServerUDPHeader*);
~AuthUDPPacket();
char* deserialize();
bool checkHeader();
vo... |
50792c44a621324d9ef70b269e487574d12cec44 | d1cb0a70fb1ae8963c279b3df84834048a173fda | /Arduino/ButtonLed/src/main.cpp | 936fbdf59947bbe711518b336f67c0d1fd397118 | [
"Unlicense"
] | permissive | virgiliosanz/Tests | d6a9d6d8471ed0a956a800cb66d17275dbdb39ca | f24f210b7ef3ef8c8a6b3e915c33ce4f9cf26694 | refs/heads/master | 2020-03-11T15:06:03.252693 | 2018-04-18T14:27:42 | 2018-04-18T14:27:42 | 130,074,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | cpp | main.cpp | #include <Arduino.h>
#include <OneButton.h>
#define LED Lco
#define BUTTON 8
void setup() {
Serial.begin(115200);
pinMode(LED, OUTPUT);
pinMode(BUTTON, INPUT_PULLUP);
digitalWrite(LED, LOW);
}
byte status = LOW;
void loop() {
status = digitalRead(BUTTON);
digitalWrite(LED, !status);
Serial.... |
5eea7697f07bbb94bdfb744e8035a6bc8bc8e699 | df9667d23b88f69d3a29d2f8320c4cc61921e0ce | /proj/plantsvszombies/BasicZombie.cpp | 2593b0eebdc22125f6a179557fd0b9e286a6e171 | [] | no_license | ckko3/csci2120-spring16 | 7608e5a0af1a5b2ba9a8cc0c60ac8d4a7809c4f0 | 9036fb12ec6fdfe9fbf3c2ab1ec87b94341c585e | refs/heads/master | 2016-09-14T01:32:36.814601 | 2016-05-18T10:21:28 | 2016-05-18T10:21:28 | 58,912,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cpp | BasicZombie.cpp | #include <iostream>
#include <string>
#include "BasicZombie.h"
using namespace std;
// constructor
BasicZombie::BasicZombie() : Zombie("Basic Zombie", "BZ", 3, 7, 1, 3) {
} |
e8f1a35ae5569b48f02e7e9d6dd7c089ba871ec2 | 5ad1df196d5bc59d39dd038c278a33f0185de6b5 | /Recursion/Fibonacci_R.cpp | 29806469cf77734a0e87a7f6a7cb964726f9bc27 | [] | no_license | GeorgeZhuo/Datastructure | f88857c7a2e549e40c2bd69d814b40bb2153a2fe | f823e67fd94492b0eb863299a2cddd49159bc880 | refs/heads/master | 2016-09-05T17:25:30.477078 | 2014-03-12T14:27:32 | 2014-03-12T14:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | cpp | Fibonacci_R.cpp | // 2013.10.22
#include <iostream>
#include <time.h>
using namespace std;
int fibonacci(int n);
int main () {
int number;
clock_t TimeStart = clock();
cout << "Enter the fibonacci number: ";
cin >> number;
cout << "The result: " << fibonacci(number) << endl;
clock_t TimeEnd = clock();
... |
1362ca1152d4c3b8efb267ffe0359133724d7ce6 | 332cfc64cd7ebcbf1022dbf6d28bc0470af29813 | /FreezeCasting_Flat/Quadtree.h | c4a6dea642bdc42aaa4170d5b1a89427f18c0365 | [] | no_license | thhuang/FreezeCastingVolTGrad | 139c47271f5d62962f806c6417727773e7214398 | 436e0b4591a3284e7ae4a5093e883b96005c1cf1 | refs/heads/master | 2023-06-10T21:46:58.076922 | 2021-07-01T09:22:20 | 2021-07-01T09:22:20 | 381,972,909 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,970 | h | Quadtree.h | #ifndef QUADTREE_H
#define QUADTREE_H
#include <iostream>
#include <string>
#include <array>
#include <vector>
#include <map>
#include <memory>
#include <bitset>
namespace AMR {
class Coord {
public:
Coord() = default;
Coord(double xCoord, double yCoord) : x(xCoord), y(yCoord) {};
void set(dou... |
2da5e94a2ce988cd174ee54b4f2800c07dbe03de | e97de0f01dfc43fb7cd657ad8a73f6c387e173a7 | /src/jk_test/jk_test_win_thread.cpp | bc12b09604507bb47aea1806460d7172ccfd3018 | [
"Apache-2.0"
] | permissive | Mr-WangJin/jk_cpp | c5c9ece710d0bdbcfee01d91528923ac17474831 | 4d90a36162e8dc3c333f69a8f0ae2f422bf1b121 | refs/heads/master | 2020-04-05T19:04:55.101670 | 2018-11-09T07:15:42 | 2018-11-09T07:15:42 | 54,434,519 | 0 | 1 | null | 2017-03-03T05:45:08 | 2016-03-22T01:07:02 | C++ | UTF-8 | C++ | false | false | 127 | cpp | jk_test_win_thread.cpp | #include "jk_test_win_thread.h"
JK_Test_Win_Thread::JK_Test_Win_Thread()
{
}
JK_Test_Win_Thread::~JK_Test_Win_Thread()
{
}
|
b49668f96ffc0920b4b718a728cced5caf44d22c | a5f05864c876ac507d6ac942a8e88cfc07b2f035 | /d04/ex02/AssaultTerminator.hpp | f566ec42def81828c37506b08c6242957358886e | [] | no_license | alohashc/cpp_pool | 15d22ac249173d2fbf30d3ac0e401026a9c2a8bf | ca757e444381bcea9411ffabccaf39b4eb75340d | refs/heads/master | 2021-01-01T16:56:46.341139 | 2017-11-07T12:42:01 | 2017-11-07T12:42:01 | 97,954,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | hpp | AssaultTerminator.hpp | //
// Created by Andrii Lohashchuk on 9/1/17.
//
#ifndef ASSAULTTERMINATOR_HPP
#define ASSAULTTERMINATOR_HPP
#include "ISpaceMarine.hpp"
#include <iostream>
class AssaultTerminator : public ISpaceMarine{
private:
public:
AssaultTerminator();
AssaultTerminator(AssaultTerminator const & src);
~AssaultTerminator()... |
07eb909b75fb4cc3a2905d5d9f0c5af7bf51c609 | 019239081016a9a6bf740a440ce88837a09a74c3 | /direction.hh | 8835d83319bc20ca6a33bd4f6a8401111673c1db | [] | no_license | KMongosso/2048 | b63bac6734dabb56c3d4d64dcf2b8869b24aa4c4 | 4db7e8730a5608095752ea5cf077d519155b3963 | refs/heads/master | 2020-04-18T13:27:59.161198 | 2019-01-26T02:26:02 | 2019-01-26T02:26:02 | 167,562,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | hh | direction.hh | #pragma once
#include <iostream>
#include "SDL2/SDL.h"
using namespace std;
struct nombres_t{
int val;
SDL_Rect dest;
SDL_Texture *nb;
};
void left(nombres_t **screen);
void right(nombres_t **screen);
void up(nombres_t **screen);
void down(nombres_t **screen); |
2e3d440fd967463c20368f47e104a762c23d93fe | 334c5c96b7ab8085b086d6403b75153e83371a05 | /Leetcode/166. Fraction to Recurring Decimal/fraction_to_recurring_decimal.cpp | 1877d15c2cf51fc774c365253a56842a30393f06 | [] | no_license | fenix0111/Algorithm | d536c901df4843e80376c4ad4ca1a520fb77acb6 | 9ed08d536ec84695b28152abaaaea2c6a55ae01f | refs/heads/master | 2023-07-23T08:14:41.173782 | 2023-07-08T13:44:26 | 2023-07-08T13:44:26 | 102,463,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,597 | cpp | fraction_to_recurring_decimal.cpp | // Leetcode 166. Fraction to Recurring Decimal
// https://leetcode.com/problems/fraction-to-recurring-decimal/
// Runtime: 0ms
// code is a bit messy..
// be careful of integer overflow
class Solution
{
public:
string fractionToDecimal(int numerator, int denominator)
{
if (numerator == 0)
{
... |
779f43f0989a6f30c1973a2735a33644c8548926 | 27a7b51c853902d757c50cb6fc5774310d09385a | /[Server]Map/BossRewardsManager.cpp | 6785b70fb5c8e5b01ad9198ecaf7e3f45c404b02 | [] | no_license | WildGenie/LUNAPlus | f3ce20cf5b685efe98ab841eb1068819d2314cf3 | a1d6c24ece725df097ac9a975a94139117166124 | refs/heads/master | 2021-01-11T05:24:16.253566 | 2015-06-19T21:34:46 | 2015-06-19T21:34:46 | 71,666,622 | 4 | 2 | null | 2016-10-22T21:27:35 | 2016-10-22T21:27:34 | null | UTF-8 | C++ | false | false | 2,196 | cpp | BossRewardsManager.cpp | // BossRewardsManager.cpp: implementation of the CBossRewardsManager class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "BossRewardsManager.h"
#include "MHFile.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destructio... |
f9a664545c7d4c47c44717b8f753a20487872196 | e44d0d9e058d8d69db758448fb0a1984026b358d | /Engine/includes/TimeHandler.h | 8b953c0ffc443e8994078eea3942769c5ffa5f2a | [] | no_license | JulioC/GOOGE | fad1e746d64da9d202b6415942667ca6dea2e2b1 | 300ce88d8d4fe8741a74d419e1ad813bd89010b1 | refs/heads/master | 2021-01-23T22:37:54.363214 | 2012-02-06T00:49:24 | 2012-02-06T00:49:24 | 2,610,443 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | h | TimeHandler.h | #ifndef TIMEHANDLER_H
#define TIMEHANDLER_H
#include "defs.h"
class TimeHandler: public Object {
public:
TimeHandler();
~TimeHandler();
void update();
int fps() const;
int elapsed() const;
private:
TimeHandler(const TimeHandler&);
const TimeHandler& operator=(const TimeHandl... |
562034a6ad4a79ce8b9b14b55373738020c96980 | 729967e2d587fcc4f37909e24ac4280bb04dd4fc | /src/MySqlQueryModel.cpp | 4c4d4131a53fde1193ee35dbc8319d1c4d05ffd5 | [] | no_license | abrochot/Annuaire | cc9aa5a93888a293fcac506af8512b608144ab6b | 4d4cc68a66736a45eff5226a12bf612ea0f62a7c | refs/heads/master | 2021-01-22T04:49:10.064868 | 2011-05-18T18:19:25 | 2011-05-18T18:19:25 | 1,747,674 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,094 | cpp | MySqlQueryModel.cpp | #include <QDebug>
#include "MySqlQueryModel.h"
MySqlQueryModel::MySqlQueryModel(QObject *parent) :
QSqlQueryModel(parent)
{
}
void MySqlQueryModel::setQuery(const QString &query, const QSqlDatabase &db)
{
QSqlQueryModel::setQuery(query,db);
queryNonSorted = query.left(query.indexOf("ORDER BY")-1);
... |
a7bfc84fc6b16081495b6be820524eb70a39d161 | 444728e4d40eed30c42e6a671a5b05a1cae3533b | /Algorithm/number of connected components in graph.cpp | 0b402112ab2bd8e3b2fbeab3647a15a98ca01434 | [] | no_license | PrakharSharma41/codes | a61f4f672c849c594964a8a6e2c0d536cffc7572 | 7f21e3c244ae0139a501f5f2c3a3f85cc98c9851 | refs/heads/master | 2023-02-05T08:15:19.676777 | 2020-12-16T17:05:37 | 2020-12-16T17:05:37 | 268,043,240 | 0 | 0 | null | 2020-12-16T17:05:39 | 2020-05-30T08:53:36 | C++ | UTF-8 | C++ | false | false | 967 | cpp | number of connected components in graph.cpp | #include <iostream>
#include <vector>
using namespace std;
using std::vector;
using std::pair;
void dfs(vector<int>adj[],int u,int f,bool visit[])
{
visit[u]=true;
visit[f]=true;
int size=adj[u].size(),i;
for(i=0;i<size;i++)
{
int v=adj[u][i];
if(v==f)
continue;
if(!visit[v])
dfs(adj,v,u,... |
8c7d75f0de09e11ec06dc930a28c2ab0da5a6130 | 7c041cb4ee996fe6ea07c6e3a8f5497d39e4e55e | /sources/modules/unsecure_network/src/factory.cpp | 56f7d82d253367733993c21937e30038723e4086 | [] | no_license | Romain-P/zia | 071fa410424ef8618cd289918302dfcd7b968cc4 | 9e0c03a27398f0ceb6f286eddf3754e54a9d6cf0 | refs/heads/master | 2020-04-26T02:51:49.621427 | 2019-03-10T14:23:49 | 2019-03-10T14:23:49 | 173,247,817 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | factory.cpp | #include <iostream>
#include <Zia/API.hpp>
#include "Module.hpp"
ZIA_API_EXPORT Zia::API::Module::pointer factory() {
return new UnsecureNetworkModule();
}
ZIA_API_EXPORT void recycler(Zia::API::Module::pointer instance) {
delete instance;
}
|
16e095cceb5b8545d31bb4e706f0c426945a4fa8 | 33584e6015aade462692b3dd10e2f40c8df2c8a9 | /src/installer-helper.cpp | 663dcb535bb22d1852fbc98c0eca562b4bbce969 | [
"WTFPL",
"MIT"
] | permissive | JulianVolodia/wincompose | 7b0f5960df6b5f6a645ad8de73df4c9227b411e3 | aa47c1c096197bb8c41da148d3a84fdfa04d69a5 | refs/heads/master | 2020-09-03T03:16:48.786857 | 2019-11-02T07:12:48 | 2019-11-02T07:13:04 | 219,372,662 | 1 | 0 | NOASSERTION | 2019-11-03T22:12:47 | 2019-11-03T22:12:46 | null | UTF-8 | C++ | false | false | 5,979 | cpp | installer-helper.cpp | //
// WinCompose — a compose key for Windows — http://wincompose.info/
//
// Copyright © 2013—2019 Sam Hocevar <sam@hocevar.net>
//
// This program is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do Wh... |
2d84448957fae9bb8da82e865296cdcb4b69c5bf | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /chrome/browser/chromeos/crostini/crosvm_process_list.cc | 9e7f69bf280a31b32d2ea26c117a2470d7bf0579 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 3,618 | cc | crosvm_process_list.cc | // Copyright 2018 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.
#include "chrome/browser/chromeos/crostini/crosvm_process_list.h"
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#include "... |
e67ab0c19363d0621fc152f1fad2c0fd6ab08cbe | dc0165fe746c2f9b7d3aa6fe39b4e2de2a201ccd | /leetCode/tree/Problem543.cpp | c12640b51ad8ca2ad0ad9caacda0e64f1619b2cf | [] | no_license | IMWYY/algorithmING | c2b36cb8f3cf97caaafa972217332a7076702b50 | c540f106d2ae0a70dfde25e16e90a6201678fea4 | refs/heads/master | 2023-02-08T03:41:05.971109 | 2023-01-29T04:55:58 | 2023-01-29T04:55:58 | 130,474,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | Problem543.cpp | #include <tree.h>
#include <vector>
int res = 0;
int depth(TreeNode*);
int diameterOfBinaryTree(TreeNode* root) {
depth(root);
return res;
}
int depth(TreeNode* root) {
if (!root) return 0;
int l = depth(root->left);
int r = depth(root->right);
res = std::max(res, l + r);
return std::max(l, r) + 1;
} |
920447f5fae1ccc9d8117c2f4349e34e40feebf8 | 994c0d6399af126e2c4d04f5e35eb756ed514523 | /filter/VoxelFilter/voxelfilter.cpp | 5430222b4d82e68ae5ff29f1c977ce135344a45c | [] | no_license | Coldplayplay/qt | 253ff30993c6c3f5a025544cf25ae55c192582aa | 27fd82130d37863524265856e0351a7f4900b64b | refs/heads/master | 2021-10-10T19:43:29.062909 | 2019-01-16T03:37:41 | 2019-01-16T03:37:41 | 111,987,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,073 | cpp | voxelfilter.cpp | #include "voxelfilter.h"
#include "../build/ui_voxelfilter.h"
VoxelFilter::VoxelFilter(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::VoxelFilter)
{
ui->setupUi(this);
this->setWindowTitle ("Statistic Filter");
initial();
connect (ui->spinBox_1, SIGNAL (valueChanged (int)), this, SLOT (val... |
cca75f4396c7bc4320a0fec2080582ce3e2259a4 | bb653810f570d88f4bacc843ea707d3823812620 | /src/HdfTuple.cxx | 471776432f448a08c75754eb193ebaef2d3c37b3 | [
"MIT"
] | permissive | jwsmithers/ttree2hdf5 | 55883d322170395ca68e7639fdf76d531bf402d8 | d722e06e7885ad18866fb7a70154811d28dc5ec2 | refs/heads/master | 2021-09-08T17:52:54.863479 | 2018-02-07T15:57:40 | 2018-02-07T15:57:40 | 103,451,864 | 0 | 0 | null | 2017-09-13T21:17:50 | 2017-09-13T21:17:49 | null | UTF-8 | C++ | false | false | 5,889 | cxx | HdfTuple.cxx | #include "HdfTuple.hh"
#include "H5Cpp.h"
#include <cassert>
#include <iostream> // for printing errors in the destructor
template<>
H5::DataType get_type<float>() {
return H5::PredType::NATIVE_FLOAT;
}
template<>
H5::DataType get_type<int>() {
return H5::PredType::NATIVE_INT;
}
template<>
H5::DataTy... |
de76e08005ec36483fa39be9857e1a25ec207cae | cad59cdf532099785e1d30d5a8d8d6267a9d1bb0 | /Tests/QGL_Model_Unit_Tests/Tests/Structures/ts_uset_tests.cpp | b9f1cd5adec914428674a28090983d3051041f22 | [] | no_license | david-browning/Queue-Game-Library | c1f433c1f932a24337c26dc9edf3f39e0e0e266d | 5462e5ed2c81ea61dfeedf1c3e2d4d9be29ee3ee | refs/heads/master | 2023-03-06T06:22:19.307891 | 2023-02-18T22:56:28 | 2023-02-18T22:56:28 | 185,662,214 | 1 | 0 | null | 2023-02-18T22:56:29 | 2019-05-08T18:48:40 | C++ | UTF-8 | C++ | false | false | 3,605 | cpp | ts_uset_tests.cpp | #include "pch.h"
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace qgl;
namespace std
{
template<>
struct hash<std::function<void(int)>>
{
size_t operator()(std::function<void(int)> f)
{
return (size_t)f.target<void(*)(int)>();
... |
be765002898d74faff71f2cd378e49dae9ee70df | 81ded04643728a64ee021250fc5ad8381bdd77e1 | /SportsWorldCup/Classes/FacebookPost.cpp | 90f1d1b3dca741708be938c9700390a2d9a24c94 | [] | no_license | LitQoo/SportsWorldCupForKaKao | d5b16e9fe43c264853fe701a133e4f4fe27fbb1b | 90fe941bf0dad5a31d128c4ad6a80a1aaf90d5b7 | refs/heads/master | 2021-03-22T02:58:32.441110 | 2013-05-30T09:05:56 | 2013-05-30T09:05:56 | 10,356,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,818 | cpp | FacebookPost.cpp | //
// FacebookPost.cpp
// SportsWorldCup
//
// Created by ksoo k on 13. 3. 5..
//
//
#include "FacebookPost.h"
#include "Bridge.h"
#include "NSDefault.h"
#include "KSBaseScene.h"
#include "IntroMain.h"
#include "KSoundEngine.h"
//#include "IntroHead.h"
static const int FB_X = 12;
static const int FB_Y = 53;
static... |
97b0bb8194dac55f3e677bf26741a7b7b29fb1ea | 5f12038764f0606291034662840e403a44289747 | /chapt3/code/code1/include/test.h | ff3a7c493d3768e624dd976496d73106012b6089 | [] | no_license | zhihuanli/Experimental-Data-Analysis-Course | abbb92b2f7e467b1cc76bda401e378e4f776d807 | 66e8eb7ba761bf7714077473af79ba90e3c6afc9 | refs/heads/master | 2023-06-23T17:07:36.527691 | 2023-06-10T08:09:09 | 2023-06-10T08:09:09 | 240,290,210 | 32 | 17 | null | null | null | null | UTF-8 | C++ | false | false | 8,153 | h | test.h | //////////////////////////////////////////////////////////
// This class has been automatically generated on
// Sat Jun 19 17:41:36 2021 by ROOT version 6.20/00
// from TTree tree/tree
// found on file: cal_16C.root
//////////////////////////////////////////////////////////
#ifndef test_h
#define test_h
#include <TRO... |
617551606ab20979540674fe03a455c3ba035c07 | b93bd9183ce0064735651b8bca1f700ef02826e7 | /A+B for Polynomials the second soultion/A+B for Polynomials the second soultion/A+B for Polynomials the second soultion.cpp | 3891ae220330271af834eb28715ee5c2d4f0ed34 | [] | no_license | qianguangyuan/PAT- | 4d404fa7fa887b6658da37ff3a63482bb34379cc | 1eda7de7c039a5eb17d9e6e082d022e5e8ced1df | refs/heads/master | 2023-01-12T06:51:16.755672 | 2020-11-08T13:10:00 | 2020-11-08T13:10:00 | 311,057,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | cpp | A+B for Polynomials the second soultion.cpp | #include <iostream>
#include<iomanip>
using namespace std;
int main()
{
double a[1001] = { 0 };
double b[1001] = { 0 }, c[1001] = { 0 };
int n, m;
cin >> n;
int index;
for (int i = 0; i < n; i++)
{
cin >> index;
cin >> a[index];
}
cin >> m;
for (int i = 0; i < m... |
483bde8e9d69f8e63f253e54fc2aba7a8a233d79 | d73be8655164280d6e48c110f6bc1738b6580e9f | /inc/Controller/PostListController.h | 77cb0f54effb34161095005ed20e8cefa60dbe66 | [
"MIT"
] | permissive | gilanghamidy/heliosky-tfc-sample | c59e0cdfa02cf5c3b17be6d366c337139d183cf5 | 0eaca8a5c438cca1258f18d99885dd55d393fa16 | refs/heads/master | 2021-01-20T16:24:57.603090 | 2017-05-10T11:06:23 | 2017-05-10T11:06:23 | 90,838,578 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 948 | h | PostListController.h | /*
* PostListController.h
*
* Created on: Jul 14, 2016
* Author: Gilang
*/
#ifndef POSTLISTCONTROLLER_H_
#define POSTLISTCONTROLLER_H_
#include "View/PostListView.h"
#include "WebService/PostWebService.h"
#include "TFC/Async.h"
#include "Model/Post.h"
namespace Heliosky
{
namespace Contr... |
0cea790ef0a492c5fd1b42c45ee7f4d74798e238 | d7b3c99717de63930e39ec18ebbd4c1553229774 | /materials/BlinnPhong.h | 25c2fa1175b16710fe8a5c4ea33b7c8c449077eb | [] | no_license | sukriti27/ray-tracer | 467292bfa31c2dd67c723bff715f650ae431edf5 | 05d4ef4bfb048f4d8d9ef6e1e98f28d0b05ac440 | refs/heads/master | 2020-11-29T17:56:53.399518 | 2020-07-03T17:59:58 | 2020-07-03T17:59:58 | 230,181,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 759 | h | BlinnPhong.h | /*
* BlinnPhong.h
*
*
*/
#ifndef BLINNPHONG_H_
#define BLINNPHONG_H_
#include "core/Material.h"
#include "math/geometry.h"
#include "Texture.h"
namespace rt
{
class BlinnPhong : public Material
{
public:
BlinnPhong(){};
~BlinnPhong(){};
void setParameters(float _ks, float _kd, float _specularExp... |
e788cd3ee665588c1d679dbb5c6c1f03905581ef | 5012f1a7f9d746c117f04ff56f7ebe6d5fc9128f | /1.Server/2.Midware/KFContrib/KFHttp/KFHttpClient.h | 6e39fb334ede4a52b3c0436585cab3db9eaf8bdf | [
"Apache-2.0"
] | permissive | hw233/KFrame | c9badd576ab7c75f4e5aea2cfb3b20f6f102177f | a7e300c301225d0ba3241abcf81e871d8932f326 | refs/heads/master | 2023-05-11T07:50:30.349114 | 2019-01-25T08:20:11 | 2019-01-25T08:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | h | KFHttpClient.h | #ifndef __KF_HTTP_CLIENT_H__
#define __KF_HTTP_CLIENT_H__
#include "KFHttp.h"
#include "Poco/Net/HTTPClientSession.h"
namespace KFrame
{
class KFHttpClient : public KFHttp
{
public:
KFHttpClient();
virtual ~KFHttpClient();
//////////////////////////////////////////////////////////... |
680e654745aa26d0e885e3bd0105e09965d4fb5e | 5a60d60fca2c2b8b44d602aca7016afb625bc628 | /aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/TrafficSourceIdentifier.h | 09d265badf988c3bff444da7a138792093edc00c | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | yuatpocketgems/aws-sdk-cpp | afaa0bb91b75082b63236cfc0126225c12771ed0 | a0dcbc69c6000577ff0e8171de998ccdc2159c88 | refs/heads/master | 2023-01-23T10:03:50.077672 | 2023-01-04T22:42:53 | 2023-01-04T22:42:53 | 134,497,260 | 0 | 1 | null | 2018-05-23T01:47:14 | 2018-05-23T01:47:14 | null | UTF-8 | C++ | false | false | 2,934 | h | TrafficSourceIdentifier.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/autoscaling/AutoScaling_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
n... |
987d7722755eda49a5cc6fdef15a87abff2dfacc | 90e8b8184bf2541a86ce11e0106cef2557b88dbc | /man_dialog.cpp | 1cddfa350ae9df15ee613ef4f32b70a5bf6710d1 | [] | no_license | YYJJCCD/QT_KES | 2b84310cca9dc1e8e7ce29ae6a4c79c34aeb3fc2 | 3e85343b6f280083b388eba3fee227c2d0aac5dd | refs/heads/master | 2020-12-15T13:41:24.022665 | 2020-01-20T14:37:59 | 2020-01-20T14:37:59 | 235,121,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,895 | cpp | man_dialog.cpp | #include "man_dialog.h"
#include "ui_man_dialog.h"
#include "check_del_dialog.h"
#include "add_book.h"
#include "add_cd.h"
#include "add_picture.h"
#include <QSqlQuery>
#include<QDebug>
#include<map>
#include<vector>
#include<QSqlError>
man_Dialog::man_Dialog(QWidget *parent,QSqlDatabase db) :
QDialog(parent),
... |
6c503ad2021b3384a6461df01a3e5221a7044ed3 | 72852e07bb30adbee608275d6048b2121a5b9d82 | /algorithms/problem_1615/other6.cpp | 0085d261ca3f2f20536e57b826f4feb0c410ef65 | [] | no_license | drlongle/leetcode | e172ae29ea63911ccc3afb815f6dbff041609939 | 8e61ddf06fb3a4fb4a4e3d8466f3367ee1f27e13 | refs/heads/master | 2023-01-08T16:26:12.370098 | 2023-01-03T09:08:24 | 2023-01-03T09:08:24 | 81,335,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,013 | cpp | other6.cpp | /*
We have two cases here:
There is one city i_max with the biggest number of roads.
We include this city in the maximum network rank. We can a pair by doing a linear scan of remaining cities.
There are many - cnt_max - cities with the same biggest number of roads (e.g. we have a fully connected graph).
We include tw... |
13149c1ecc7bd090fabd7e4c202d9a45f176afe7 | 2937feec1d127e6fe1061ed85df9693173775b72 | /SpaceInvader/SpaceInvader/Player.cpp | eccf427d3858c573b91c2fab542be100414ed24d | [] | no_license | samrith-s/space-invader-x | 4d105c04cb9d48fb42e19b6342e89763e248647b | 23ca17a713ce332311e53efcef307b3220e66742 | refs/heads/master | 2020-12-31T00:19:27.862596 | 2016-02-15T01:54:50 | 2016-02-15T01:54:50 | 51,724,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,962 | cpp | Player.cpp | #include "Player.h"
Player::Player(void) {}
Player::~Player(void) {}
void Player::init(SDL_Surface* screen, int SCREEN_WIDTH, int SCREEN_HEIGHT, char* pos, int w, int h, int speed)
{
playerPos.w = w;
playerPos.h = h;
if(pos=="center")
playerPos.x = (SCREEN_WIDTH + playerPos.w)/2;
if(pos=="left"... |
460661ccb8fb7536edd778ba92589364ca4d84e1 | 5031e154ab5e658af4483d8af33442e2d29a239e | /Hackerrank-CodeArena/ImpressHer.cpp | 4bcec08008dc5c7922e5c24f21290b2e5e3c4d7d | [] | no_license | chaudhariyash10/CodeChef | df193e97e0ee3dafdbec99e680e712c44df9f666 | dc8366b500e9d450295f5d796ea4cd05de065f9a | refs/heads/master | 2023-04-13T12:19:02.006737 | 2021-05-01T04:35:42 | 2021-05-01T04:35:42 | 321,562,721 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | ImpressHer.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin >> n;
if (n == 1)
cout << 4;
else if (n % 2 == 0)
cout << (n / 2 + 1) * (n / 2 + 1);
else if (n == 3)
cout << 12;
else if (n == 5)
... |
27b2d4ae5c6e933990664a5d8da58fd10e5abaae | 93201e649331d020bdbf20ebaab91e5d36528819 | /aligned_pointer/main.cpp | e8ba5ba47f6919a7be8aaf8b4b872edfd1361107 | [
"MIT"
] | permissive | shenzhaokun/cpp_lecture | ea22b4b8c517f6839ae576dced502a6b65865659 | 23a0d30242daa97c621d513a9dee8a6fc29ef5e3 | refs/heads/main | 2023-06-15T11:27:43.123709 | 2021-07-17T07:20:00 | 2021-07-17T07:20:00 | 392,580,552 | 1 | 0 | MIT | 2021-08-04T06:46:28 | 2021-08-04T06:46:28 | null | UTF-8 | C++ | false | false | 332 | cpp | main.cpp | #include <iostream>
#include <stdint.h>
#include <stdlib.h>
#include <memory>
struct A
{
A():a(0), b(0), c(0), d(0){}
int64_t a;
int64_t b;
int64_t c;
int64_t d;
};
int main()
{
char* buffer = (char*)__builtin_assume_aligned((char*)malloc(64), 32);
A* a = new(buffer)A;
asm volatile("": :"r,m"(a): "memory");
... |
ddf9734d95e512ef8afbf62717912f243fadc39a | 4aa3ff56e35d2d4cdeba40f45795f62f276859b3 | /EntitiesMP/Common/Particles.h | b4df4fcc707e46414f090500e87d9562eb808f68 | [
"Apache-2.0"
] | permissive | SixShoot/lastchaos-source-client | fde6a750afc4d7c5df3e9e0c542b056573c1b42d | 3d88594dba7347b1bb45378136605e31f73a8555 | refs/heads/master | 2023-06-28T17:20:35.951648 | 2021-07-31T21:51:49 | 2021-07-31T21:51:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,537 | h | Particles.h | // init particle effects
void DECL_DLL InitParticles(void);
// close particle effects
void DECL_DLL CloseParticles(void);
// function for rendering local viewer particles
void DECL_DLL Particles_ViewerLocal(CEntity *penView);
// different particle effects
void DECL_DLL Particles_RomboidTrail(CEntity *pen);
void DECL_DL... |
21950e67666ffee3101f54e24283197dace5b323 | 8b604c0555ea4147735189b23ac31791d23e9d68 | /src/Racket.cpp | 2747b95c468b192b55ce9546ee2d17d137e885c2 | [
"MIT"
] | permissive | Yohannfra/Arduino-Pong | 690c091f3160ad8910d0ffefa6aedcce48e12b67 | 98d5e6948dd8c7a7c2bd00231a09092e910faeaa | refs/heads/master | 2022-06-10T01:05:49.950757 | 2020-05-07T13:58:55 | 2020-05-07T13:58:55 | 258,621,575 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | Racket.cpp | #include "Racket.hpp"
#include "constants.h"
Racket::Racket(side_e side) : _side(side)
{
_y = 2;
_x = (_side == LEFT) ? 0 : 15;
}
int Racket::collide(int y) const
{
return (_y == y) ? 1 : (_y + 1 == y) ? 2 : (_y + 2 == y) ? 3 : 0;
}
int Racket::getX() const
{
return _x;
}
int Racket::getY() const
{... |
92783880f57b383d454020f73c614dd7c4c907b5 | bb2dcbafa9b3bcb5bc6fb43cfbec316257ef0b34 | /新增資料夾 (2)/Money.h | 6b1ee3488ce1870d2c03dcaffa9e1e8c2e470b3c | [] | no_license | A9223285/1092_1A01 | 2e4de80a89388e79c7f66df6da2081ce1d68a1ca | 806816e50bb489591fc1d47a9ac11a2da93c59e6 | refs/heads/main | 2023-06-04T00:55:17.664279 | 2021-06-20T14:00:56 | 2021-06-20T14:00:56 | 364,469,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | h | Money.h | #include <iostream>
using namespace std;
#ifndef Money_h
#define Money_h
class Money {
private:
int amount;
public:
Money();
Money(int newMoney);
void moneyPrint();
int getAmount() const;
void setAmount(int newAmount);
};
#endif |
73ce143bd1371d940fa796e5c4efda831e936ca8 | 2e1bb397e3356dcdc3b3b1f2bfdbb4ee12ebb736 | /revision/pastpaper 15-16/q7_1516.cpp | 6f1ab949a3e970673fc69cba5c783ce535030f87 | [] | no_license | neonestoras/Prog-2-Cpp | b0c2fe168b52b4b011e442a61246572af44000bf | 56261427d346b1a3e042305b606dc9c63f716fb9 | refs/heads/master | 2020-08-31T20:40:22.222448 | 2020-02-11T00:57:28 | 2020-02-11T00:57:28 | 218,780,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,724 | cpp | q7_1516.cpp | #include <iostream>
#include <string>
using namespace std;
class Node
{
private:
string name;
Node* p_next;
public:
Node(){this->name="";this ->p_next=nullptr;};
Node(string name_in, Node* p_next_in){this->name=name_in;this ->p_next=p_next_in;};
string getName(){return name;};
void setName(string name_in){this->name=... |
b0aa3660a5b515cfe84453d2e03f66e3d96775a1 | 76fea1915f91b4375575661474b793eafeff6a26 | /PCBord/Bord/BasicEVCSecurity.hpp | b22ee0993c4153064cfdeb76a0d5d592b621382b | [] | no_license | GuidedWays-Sardine/DMI_Central | 66d3e94865f5cdf3b8873a62f1ed92e6a211f761 | 75334f6baf2cec526ba4d17a8f7f9b91eb822e84 | refs/heads/master | 2023-02-15T06:16:52.329180 | 2020-12-28T21:23:04 | 2020-12-28T21:23:04 | 317,047,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | hpp | BasicEVCSecurity.hpp | #ifndef BEVCS
#define BEVCS
#include "../Train_dynamique.hpp"
class BasicEVCSecurity
{
private:
Train_dynamique *T_D;
double V_SR = 30;
double V_SB = 0;
public:
BasicEVCSecurity(Train_dynamique &T_D);
//void respect_vitesse(std::string general_mode);
//void respect_signalisation(); // A FAIRE AVEC LE SO... |
3bb214e5ec73fe5bc7d668801e78c000492ccca8 | 710dc55388342a7b358610837f3cd276bc4393f3 | /src/Animation/Node.cpp | fe35faa977a4bb33e1f727fae9abf1b154b80db5 | [
"Zlib"
] | permissive | BastienCramillet/SGE | 5d3a0107dde831a2494cf86b21b8684385b566a5 | e8240207aa483652966f9be2846aecfbee58c60b | refs/heads/master | 2020-12-24T14:01:01.400683 | 2014-09-12T09:57:06 | 2014-09-12T09:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,423 | cpp | Node.cpp | /*------------------------------------------------------------------------------
*
* SGE - Simple Game Engine
*
* Copyright (c) 2012 Bastien Cramillet (Bigz)(bastien.cramillet@gmail.com)
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any... |
e5924a854670436f51d8eb0d55c2a79e1159b363 | a8ff5094cbe702859f1899b220327891210ebca7 | /src/osabi.hpp | a12a7691e86f0eb33102beac669d0b6433c6d68f | [] | no_license | tommccallum/elf_explorer | 0ef6c333d825434653cee064acefadfdcd989f9c | 9b469f5e3f81db5e050b48f0e9d87260bf0b4b43 | refs/heads/master | 2022-12-03T02:05:39.635773 | 2020-08-19T20:14:21 | 2020-08-19T20:14:21 | 288,796,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,958 | hpp | osabi.hpp | #ifndef E_OSABI_HPP
#define E_OSABI_HPP
// This file is automatically generated, do not edit.
#include <cstdint>
constexpr uint32_t ELFOSABI_NONE = 0 ; // No extensions or unspecified
constexpr uint32_t ELFOSABI_HPUX = 1 ; // Hewlett-Packard HP-UX
... |
8d728c9158629f669cc1a656fff1226aa3866a41 | 69e2e059ee27c93e2a70b60e6f0c8e1c405aa9a9 | /11078.cpp | 6e613d6d7ffd3cd79cd9dcd70d5615553075701f | [] | no_license | Rakibul-Islam-Shawon/UVa-OJ | bd8cdedb6adcf513b6d4ba10b53840856f52afb8 | 8bfeb1016e8ab035d16c162bd0cb0eb8e6536948 | refs/heads/master | 2023-01-30T05:23:45.533371 | 2020-12-18T14:20:15 | 2020-12-18T14:20:15 | 322,614,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | cpp | 11078.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,test,arra[100000+5],maxval,maxdiff;
cin>>test;
arra[0]=-1;
while(test--)
{
cin>>n;
for(int i=1;i<=n;i++)
{
scanf("%d",&arra[i]);
}
maxdiff=-30000;
maxval=-30000;
for(int i=1;i<=n-1;i++)
{
if(arra[i]>maxval)
maxval... |
a9b47b6052c0da9b303a59e0636295463e3dff23 | c6382570f0d9005f13ddb4aa02a9e333e352d94f | /BAEKJOON/14499.cpp | 55d0c1fb9e4f6afa423ee4bc2c7ad98befc7621f | [] | no_license | minkukjo/Cpp-Algorithm | 1bf0aba053bbc09bac43363ee66f138460cede37 | 81a784e31d2b227ad4dcc28886befaadd4d03769 | refs/heads/master | 2020-04-14T04:26:55.323753 | 2020-02-18T13:36:45 | 2020-02-18T13:36:45 | 163,636,203 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,172 | cpp | 14499.cpp | //
// Created by 조민국 on 2019-04-04.
//
// 주사위 굴리기
#include <iostream>
using namespace std;
int map[21][21];
int dice[4][4];
int temp[4][4];
void print(int map[][4])
{
for(int i=0; i<4; i++)
{
for(int j=0; j<4; j++)
{
cout << map[i][j] << " ";
}
cout << endl;
... |
ec4e9763e652b74fe497efdc6cc98ec95042c7d9 | 21a00a5af3a5d9f0a557622a6ff0a25843f58fcf | /ABC/ABC244/e.cpp | 87a28277e74be7665426f94b7bfe8b850f3a0c69 | [] | no_license | kinaphar/AtCoder | b238a955775b71d5d09133b7bed163994a299671 | 6fc2cbda6dd3718e682615875e54b59ee060d58f | refs/heads/master | 2023-08-11T00:34:56.555623 | 2023-08-09T05:14:59 | 2023-08-09T05:14:59 | 152,303,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | e.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, s, n) for (int i = s; i < (int)(n); i++)
#define repl(i, s, n) for (ll i = s; i < (int)(n); i++)
int main() {
// cin の入力元が 'input.txt' になる
// std::ifstream in("input.txt");
// std::cin.rdbuf(in.rdbuf());
// ----------
int n, ... |
4b5d012ece06c6256ddd691768ebf4d47d3bc321 | 476af59c3267d2c865fef50a84a256dcf6dbe191 | /C++/Solution64.cpp | 2801d7afde83d577d816b2cc61e06213fb35f883 | [] | no_license | yogurt-shadow/leetcode | fb3c2f47e77c3b40b06fa65cffe63095bd6542e7 | c824fa13237421afa69d05bb48026e7a2e407d02 | refs/heads/master | 2023-08-29T04:09:43.859492 | 2021-11-11T15:16:15 | 2021-11-11T15:16:15 | 325,449,621 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | cpp | Solution64.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<unordered_map>
#include<unordered_set>
using namespace std;
class Solution64 {
public:
int minPathSum(vector<vector<int>>& grid) {
int m = grid.size(), n = grid[0].size();
vector<vector<int>> dp(m, vector<int>(n));
dp[m - 1][n... |
ef48353d7c463fb5101229cebb09224c2b36d7ab | 91d6c82cf7e7c86f1770786033f91edc039535fa | /PlayBox/dev/prj/PlayBox/src/Core/GDataGetter.h | 74222322104e132ad5f3bf9de838818bac4d49c0 | [] | no_license | linjianbjfu/PlayBox | 147c23ab304e9cc94d7b5a430c97fdc847e1819d | 83672444459b21d91ad68a9e6c1b4b9c04b18da8 | refs/heads/master | 2020-05-19T11:03:33.892941 | 2013-03-25T16:01:28 | 2013-03-25T16:01:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | h | GDataGetter.h | #ifndef _G_DATA_GETTER_H_20081201
#define _G_DATA_GETTER_H_20081201
#include "IDataManager.h"
#include "../DataInterface/IPanelChange.h"
#define GLOBAL_PANELCHANGEDATA ((IPanelChange*)GDataGetter::PanelChangeData())
class GDataGetter
{
public:
static IPanelChange* PanelChangeData();
private:
static IPan... |
f534d5e1394dea60d686d1f812dd0d9d376caa89 | 180da56b527be4de4f2e3aca35897d86d42f0094 | /FbxPipeline/FbxViewerv2/vk/RenderPass.Vulkan.cpp | ed2903cbb03b0c09cd08ef8d8a87e7dc26a25b04 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | brainybites/FbxPipeline | 92216302c29dbf02617d9c73ee539cda3b47a927 | 76a5d441d4f17bb502d6cc0f2f48738069a087be | refs/heads/master | 2021-01-01T15:56:42.882830 | 2017-07-17T22:02:41 | 2017-07-17T22:02:41 | 97,736,609 | 1 | 0 | null | 2017-07-19T16:07:41 | 2017-07-19T16:07:41 | null | UTF-8 | C++ | false | false | 25,080 | cpp | RenderPass.Vulkan.cpp | //#include <GameEngine.GraphicsEcosystem.Precompiled.h>
#include <RenderPass.Vulkan.h>
#include <DepthStencil.Vulkan.h>
#include <RenderTarget.Vulkan.h>
/// -------------------------------------------------------------------------------------------------------------------
union ExposedSwapchainAttachment {
... |
130f21f7edc644d2aaff91a8abaf4376294ed07e | bc84c328d1cc2a318160d42ed1faa1961bdf1e87 | /books/C++_Prime_Plus/Chapter17/file/fileio.cpp | 0cc6bf0a50880c3be0194e32a959b7c621b28a81 | [
"MIT"
] | permissive | liangjisheng/C-Cpp | 25d07580b5dd1ff364087c3cf8e13cebdc9280a5 | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | refs/heads/master | 2021-07-10T14:40:20.006051 | 2019-01-26T09:24:04 | 2019-01-26T09:24:04 | 136,299,205 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | fileio.cpp | // fileio.cpp -- saving to a file
#include"iostream"
#include"fstream"
#include"string"
int main()
{
using namespace std;
string filename;
cout<<"Enter name for new file: ";
// cin>>filename;
getline(cin,filename,'\n');
ofstream fout(filename.c_str());
fout<<"For your eyes only!\n";
cout<<"Enter your secret ... |
89e5d662690e19ab4d045e02ecfd6bb9c4e36620 | f54e99fc204578489540089e3124f617024583e8 | /DrawBoard.cpp | 36b03b9aec253c81f025e52e6099bd0dc9c68cb2 | [] | no_license | trinhhinh729/Caro | 7ad1f2c7d0af31a441c943ccd131a4306effadd8 | 409712cecf8fbdb37a391dbf2d7c35c9a9b8ef00 | refs/heads/master | 2022-11-15T17:26:27.244251 | 2020-07-07T08:12:01 | 2020-07-07T08:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,700 | cpp | DrawBoard.cpp | #include <iostream>
#include <Windows.h>
using namespace std;
void gotoXY(int pX, int pY) {
COORD coord;
coord.X = pX;
coord.Y = pY;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
void printText(char s, int x, int y)
{
gotoXY(x, y);
cout << s;
}
void draw(int weight, int ... |
dc42aca12f7fccd5da2b994db2588e98873de00c | 898c8528a70321dffedb8f37bbaebbae9b81fc89 | /acme/primitive/collection/sort.h | 7b14b45e360b445afcf862074f113dfc17f085a6 | [] | no_license | ca2/app | b1de035566d9664aa7c5c9a94378cc352b1836ec | d916307f8b47f04fbd48068868a57b62d5bbf705 | refs/heads/master | 2023-08-27T07:19:45.584624 | 2023-01-07T02:50:50 | 2023-01-07T02:50:50 | 98,031,531 | 19 | 7 | null | 2017-08-14T11:13:14 | 2017-07-22T12:59:27 | C++ | UTF-8 | C++ | false | false | 52,556 | h | sort.h | #pragma once
template < typename T1, typename T2 >
inline bool __sort(T1& t1, T2& t2)
{
if (t2 >= t1)
{
return false;
}
auto t = t2;
t2 = t1;
t1 = t;
return true;
}
namespace sort
{
template < typename T1, typename T2 >
inline void sort_non_negative(T1 & t1, T2 & t2)
... |
d2447d7ae3a0ebd55bff92fe2ada374ceb4a0868 | 3e8fed2afebf9963b87046f9c945121a58ebf72f | /ext/UiaDll/UiaDll.Test/StringHelperTest.cpp | 04061f0fb1be4ebb517d7f2bc645f3082525b306 | [
"MIT"
] | permissive | northwoodspd/uia | bcde040874d658e7d91fbbe01f53c2878551d8c8 | 0fdf328ac533a4aed73284a29920ca51b994c4f3 | refs/heads/master | 2023-01-28T21:55:05.855119 | 2023-01-23T19:39:40 | 2023-01-23T19:39:40 | 13,506,324 | 14 | 4 | MIT | 2023-01-23T19:39:41 | 2013-10-11T18:24:17 | Ruby | UTF-8 | C++ | false | false | 336 | cpp | StringHelperTest.cpp | #include "stdafx.h"
#include <StringHelper.h>
TEST(StringHelper, ItCanConvertToUnmanagedStrings)
{
auto unmanaged = StringHelper::ToUnmanaged("Expected");
ASSERT_STREQ("Expected", unmanaged);
delete[] unmanaged;
}
TEST(StringHelper, NullStringYieldsNullUnmanagedString)
{
ASSERT_EQ(NULL, StringHelper::ToUnmana... |
799ae93c7a1a8cac2afaddf700a25aa05871fdaa | 9218da38e94f58bb420481b30973ee05661fda25 | /classes.h | a50b41e35fc9dad9154528c0d736b5f010fee153 | [] | no_license | MarkoPavlinek/tanks | d0c1a4151bd75abab0db2e859a4dfea2dfdf6dbe | e4b8fce71eef17124912a309144b327fea81ef55 | refs/heads/master | 2021-01-18T06:08:10.402208 | 2016-10-22T11:01:21 | 2016-10-22T11:01:21 | 68,611,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | classes.h | #ifndef CLASSES_H_INCLUDED
#define CLASSES_H_INCLUDED
class anchor_object
{
public:
OBJ_typ typ;
anchor_object()
{
typ=OBJ_typ_terrain;
}
anchor_object(OBJ_typ obj)
{
typ = obj;
}
virtual void setRotation(irr::core::vector3df rot) = 0;
virtual void setPosition(irr::core::vector3df pos) = 0;
};
#endif // CLASSE... |
abdae4f936ebdf42bac7d21b5e016005e86d73a1 | 9f1ed93807bc530fc0b2dd832c471c85a4882182 | /ComputerScience.h | e95321023f2f0d19fad677b8f080131e62530ba5 | [] | no_license | alexjmeech/C-Quiz-Game | 75ee84d96cef79b6bdf75bd312cc83d607e1e7ed | c137b3d2068017e6daefe11aef359bc201b98fc0 | refs/heads/master | 2020-06-18T15:42:23.551213 | 2019-07-11T08:26:18 | 2019-07-11T08:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | h | ComputerScience.h | #ifndef COMPUTERSCIENCE_H_
#define COMPUTERSCIENCE_H_
#include "Game.h"
class ComputerScience : public Game
{
protected:
virtual void setup();
public:
ComputerScience();
};
#endif /* COMPUTERSCIENCE_H_ */
|
4f48266a02bfee3927153b4b23c7f1edad159f20 | a28d5c4c4fd403e0abf3f6fe38c98ed812d5c346 | /Old-Code/题解代码/acm/结构体数组指针的使用.cpp | 993d52d3e0811c258b11c0a902ff911507a160ac | [] | no_license | Krstar233/krits-code-workplace | 72d62abd5c9e983571e22244a93a818213cf649f | 40272de11e40751d7f1e0fb620c147295891eaa0 | refs/heads/master | 2023-03-10T22:03:17.870529 | 2021-02-25T16:09:56 | 2021-02-25T16:09:56 | 312,511,956 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 659 | cpp | 结构体数组指针的使用.cpp | #include <stdio.h>
struct stu{
char *name; //姓名
int num; //学号
int age; //年龄
char group; //所在小组
float score; //成绩
}stus[] = {
{"Zhou ping", 5, 18, 'C', 145.0},
{"Zhang ping", 4, 19, 'A', 130.5},
{"Liu fang", 1, 18, 'A', 148.5},
{"Cheng ling", 2, 17, 'F', 139.0},
{"Wang ming"... |
cf416bc77c40dbd33c26cab97cd746754d0c3a17 | b5bd3754f89c9224557004dcae93257f0d0a2782 | /c++Test/cpp/cpp.cpp | 5698051f8ac374b4b980055e63f3e99fec97b997 | [] | no_license | l2ainbow/detectMan | 3566413530834074620af2cf37feae624ea728ba | 74aa723a6a1c7b53bfc3c182bc1066bce3660c18 | refs/heads/master | 2021-08-14T05:30:09.272073 | 2017-11-14T17:37:25 | 2017-11-14T17:37:25 | 110,350,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | cpp.cpp | //
// cpp.cpp
// c++Test
//
// Created by 外村真吾 on 2017/11/12.
// Copyright © 2017年 Shingo. All rights reserved.
//
#include <cmath>
#include <opencv2/core/core.hpp>
void test(void) {
printf( "cpp excute\n");
}
double calc(cv::Mat *image) {
return atan(1.0);
}
|
78111f07d0351899f30f1a0b613c51914bf61ded | 80de881ed1406aaf2c16baf58370437864d920bc | /src/parsers/helpers/buildCategoryHirachyRecursively.cpp | 4d5ef0d08ae67b23d1476177d725fd4c8aa22da3 | [
"MIT"
] | permissive | bencabrera/wikiMainPath | 84a49318edc175677b38ee300aa2c5844c33439a | a42e81a8fbe119e858548045653b2a22068a34f8 | refs/heads/master | 2021-03-24T09:23:25.604093 | 2018-11-17T14:45:35 | 2018-11-17T14:45:35 | 68,536,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,448 | cpp | buildCategoryHirachyRecursively.cpp | #include "buildCategoryHirachyRecursively.h"
#include <iostream>
#include <algorithm>
#include "cycleDetectorVisitor.h"
void build_category_hirachy_graph_recursively(CategoryHirachyGraph& graph, std::vector<boost::container::flat_set<std::size_t>>& category_has_article)
{
// check if there are no cycles left
std::v... |
462b4940dbb31bbfe19f08bbb3fbc42ace2786db | 9bdc01fddc660053e23eaf89302f9b8e5daaefdf | /src/planner/strategy/strategy_output.h | 50f9b42d87100a319ebaefd1c99282a6bc8ef263 | [] | no_license | hello-starry/MotionExplorer | 51d4ca1a1325567968ac2119de7c96b0345e5b10 | 01472004a1bc1272ce32a433fe6bde81eb962775 | refs/heads/master | 2023-08-14T21:20:22.073477 | 2021-09-07T17:51:20 | 2021-09-07T17:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,568 | h | strategy_output.h | #pragma once
#include "elements/path_pwl.h"
#include "planner/cspace/cspace.h"
#include <ompl/base/PlannerData.h>
#include <ompl/base/ProblemDefinition.h>
#include <ompl/geometric/SimpleSetup.h>
#include <ompl/geometric/PathGeometric.h>
#include <KrisLibrary/robotics/RobotKinematics3D.h> //Config
namespace ob = ompl::... |
f382b03b24034c9750cfdd369ca31c23bd27f8d7 | 69b4a29b9bfa2fee4a03653a389f97608cc6508b | /ocher/ux/SyncActivity.cpp | ed1f4d31fafc6b9ef80a849a1d0ee504c060abf5 | [] | no_license | hbcbh1999/OcherBook | a30765979190afd91931e38152d640d213a0eda2 | 30a9673babdea991c7c6f25d7d1f2bed6ab41ca7 | refs/heads/master | 2021-01-19T10:14:07.542457 | 2013-12-11T16:18:25 | 2013-12-11T16:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,834 | cpp | SyncActivity.cpp | #include <sys/types.h>
#include <sys/stat.h>
#include "clc/storage/DirIter.h"
#include "clc/storage/File.h"
#include "clc/storage/Path.h"
#include "clc/support/Logger.h"
#include "ocher/fmt/Format.h"
#include "ocher/settings/Options.h"
#include "ocher/ux/Controller.h"
#include "ocher/ux/Factory.h"
#include "ocher/ux/... |
dad6719a9e12ffdbb2913a8ea6e73f405183ce5b | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /contest/1542583383.cpp | 4be650f2836e20fa740bf07fad6d6c0204d4cd32 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 708 | cpp | 1542583383.cpp | #include <bits/stdc++.h>
using namespace std;
int h, m, s, x, y;
double r[3];
int main() {
scanf("%d%d%d%d%d", &h, &m, &s, &x, &y);
r[2] = s / 5.;
r[1] = m + r[2] / 60.;
r[0] = h + r[1] / 60.;
x %= 12; y %= 12;
r[1] /= 5;
if (r[0] >= 12) r[0] -= 12;
if (r[1] >= 12) r[1] -= 12;
i... |
093695b0f96403c444201aefdf7a3e44495e23cf | 9bf07152b41dd811ce9219d71f63fee215b997de | /C++/Program_25/Queues_Using_Linked_Lists.cpp | 65cbca6334b1c6558d1ef0750f7354151d79fdc3 | [] | no_license | swaaz/basicprograms | 50846c106457cbe6f3e4282f380d96641fccaedd | 1da80d646cd23a77c109f0b7fa2cda598c726ba2 | refs/heads/master | 2022-11-05T08:16:36.337523 | 2022-10-31T18:22:57 | 2022-10-31T18:22:57 | 196,019,879 | 31 | 129 | null | 2022-10-31T18:22:58 | 2019-07-09T13:59:43 | JavaScript | UTF-8 | C++ | false | false | 1,323 | cpp | Queues_Using_Linked_Lists.cpp | //Queues Using Linked List
#include<iostream>
using namespace std;
class node{
public:
int data;
node *link;
}*front=NULL,*rear=NULL;
void enqueue(int x){
node *t;
t = new node;
if(t==NULL)
cout<<"Queue is Full"<<endl;
else{
t->data = x;
t->link = NULL;
}
if(fr... |
27ab77341b9d20b38b80e05c292a42f4b2b4a9a1 | f05f5c2d049f82e8881256002fc62787dc1953ff | /src/RDE/src/CollisionPoint.cpp | 40af0f4ca68a63757daf8fa6695094d47948ce1f | [] | no_license | riemervdzee/Riemer-Dynamics-Engine | 1a8af251054f5b382f1389a1f6d907d4559fa5ef | 8fd564b938aa69d323370ab1d767dba114307305 | refs/heads/master | 2021-01-13T02:14:52.142231 | 2012-04-05T19:09:21 | 2012-04-05T19:09:21 | 3,552,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,812 | cpp | CollisionPoint.cpp | /*
RDE/src/CollisionPoint.cpp -- Finds the collisionpoint of a collision
Copyright (c) 2011-2012 Riemer van der Zee <riemervdzee@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this sof... |
830c5b0913069cdbd406fe63172f65ebbf7055df | 021f01fe9b468b35b770178db3948bd1e662c404 | /tests/api/mock_loglistener.h | fe97ea7ca33d93841c6ac2d52ccf64e9c69620ad | [
"BSD-3-Clause"
] | permissive | kullo/client-libkullo | df56d5e8cbd90dee1c69e2a9064b489d622d3156 | 87c792d209cd8ff7222b2ef8556ab47cec2b7e3d | refs/heads/master | 2021-01-19T02:23:15.448908 | 2020-11-21T16:29:17 | 2020-11-21T16:29:17 | 47,209,986 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 640 | h | mock_loglistener.h | /*
* Copyright 2013–2020 Kullo GmbH
*
* This source code is licensed under the 3-clause BSD license. See LICENSE.txt
* in the root directory of this source tree for details.
*/
#pragma once
#include <gmock/gmock.h>
#include <kulloclient/api/LogListener.h>
class MockLogListener : public Kullo::Api::LogListener
{... |
f84099c71539d21a6d08513a40d80e9463848640 | 16e6d260f8924d6f3c07f89f491d9487463f121b | /src/ts/EvLoop/ConnectionFactoryListener.h | f014cfba3b2b1d98f39389564a2a8af8b4fa79fb | [] | no_license | hleclerc/AgencyDB | 04b32e8bfd0966429da2c52ca08705a7718e9b12 | 44a08c8df99759d866c5a5bd965261b8265df2b4 | refs/heads/master | 2021-08-28T15:39:52.320336 | 2017-12-12T17:04:27 | 2017-12-12T17:04:27 | 113,969,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | h | ConnectionFactoryListener.h | #pragma once
#include "../System/VoidStruct.h"
#include "EvLoop.h"
#include "TcpListener.h"
namespace RiotBase {
/**
TcpListener that creates an object of type EO (with the corresponding fd, and data as constructor arguments) each time there's a new connection
*/
template<class EO,class AdditionnalData=VoidStruct,... |
3842fc29c483dc7872cc76f39fd2c56c5a4ff039 | 41265709d4836adefd98c374ba795fc11095c100 | /源代码/node.h | 3c63a1b634cb107e1c22fc76f8d7158a43d5e070 | [
"MIT"
] | permissive | coutyou/Hotel-Manage-System | 5dfec782ae1b326864f400107320fdff3fe3b28c | 8aeb9fc4a21c29b485dc25ad43c87af7f7771468 | refs/heads/master | 2023-03-07T06:24:21.935204 | 2021-02-24T11:48:45 | 2021-02-24T11:48:45 | 143,591,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | node.h | #ifndef NODE_H
#define NODE_H
template<class T>
class Node
{
public:
Node(const T &data, Node<T> * next = 0);
void insertAfter(Node<T> * p);
Node<T>*deleteAfter();
Node<T>*nextNode();
const Node<T>*nextNode() const;
Node<T> * next;
T data;
private:
};
#endif // NODE_H
|
f692d810b72be4ba121568afbd46bf5761e202c3 | 84eb2efba353daa648dd1098cc41fcd691c616d2 | /src/sdk/util/misc.cc | f2bbc539eada0db03efc2f45c1bfb9c887242eb0 | [
"Apache-2.0"
] | permissive | iot-dsa-v2/sdk-dslink-cpp | 0b435c25349971c4d43b6b85dfbd4c6f91da37e2 | d7734fba02237bd11bc887058f4d9573aac598d8 | refs/heads/develop | 2020-12-02T06:27:00.008341 | 2018-08-02T17:06:28 | 2018-08-02T17:06:28 | 96,830,480 | 1 | 0 | Apache-2.0 | 2018-08-02T17:06:29 | 2017-07-10T23:36:45 | C++ | UTF-8 | C++ | false | false | 383 | cc | misc.cc | #include "dsa_common.h"
#include "misc.h"
#include <boost/filesystem.hpp>
#include <codecvt>
#include <iomanip>
#include <iostream>
#include <locale>
#include <string>
#include <vector>
namespace dsa {
string_ get_current_working_dir() {
return std::wstring_convert<std::codecvt_utf8<wchar_t>>{}.to_bytes(
boost... |
e0ea61c0667686decdedd28e637cf1c69c0b2015 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /graphics/epsonscan2/files/patch-src_Standalone_custommessagebox.cpp | f16ca1c876b697722784d1b79d01460a2d1879f6 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | C++ | false | false | 595 | cpp | patch-src_Standalone_custommessagebox.cpp | --- src/Standalone/custommessagebox.cpp.orig 2021-11-25 00:56:56 UTC
+++ src/Standalone/custommessagebox.cpp
@@ -153,7 +153,7 @@ void CustomMessageBox::ErrorMessageBox(Supervisor* sv,
type = Critical;
error_message = TranslationString::GetString().translation_str.E_ENV_001;
sv->sc... |
301c94dbedb8f54bf90f5cc6d13ce0184a4704d1 | 1d4296bebcfa4ed18ca2a544e4a443148b70da39 | /CryptoDome/graphicgenerator.h | 1e69a8fb79efbf482d84ad35f59a6b97a3ea4502 | [] | no_license | TuzkoZ/CryptoDome | 8968dce56b0f86ecc21de4668c0c5f2d54ecd9de | 5fea3c1362d928f495e8ae6d958907762482e34f | refs/heads/main | 2023-05-03T14:33:03.248476 | 2021-05-21T11:08:14 | 2021-05-21T11:08:14 | 338,530,260 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,749 | h | graphicgenerator.h | #ifndef GRAPHICGENERATOR_H
#define GRAPHICGENERATOR_H
#include <QLabel>
#include <QObject>
#include <QDebug>
#include <QProgressBar>
#include <QMouseEvent>
#define IMAGE_WIDTH 255
#define IMAGE_HEIGHT 192
enum characterSetValues_
{
smallCharacters = 1,
bigCharacters = 2,
digits = 4,
... |
c7dfbb222f79264834d44667bba7ca1c76da19b4 | 51635684d03e47ebad12b8872ff469b83f36aa52 | /external/gcc-12.1.0/libstdc++-v3/testsuite/experimental/numeric/gcd.cc | e5d12000c6c3a66c8cc687cd5d323af367c5675c | [
"LGPL-2.1-only",
"GPL-3.0-only",
"GCC-exception-3.1",
"GPL-2.0-only",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | zhmu/ananas | 8fb48ddfe3582f85ff39184fc7a3c58725fe731a | 30850c1639f03bccbfb2f2b03361792cc8fae52e | refs/heads/master | 2022-06-25T10:44:46.256604 | 2022-06-12T17:04:40 | 2022-06-12T17:04:40 | 30,108,381 | 59 | 8 | Zlib | 2021-09-26T17:30:30 | 2015-01-31T09:44:33 | C | UTF-8 | C++ | false | false | 5,214 | cc | gcd.cc | // Copyright (C) 2015-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your op... |
c82ef5e4f39fd556ad40588832f90626a6e2b8f0 | 9a455973f60ce048eed15d3c71f60e81161a09c7 | /src/include/hash_utils.h | cb44fc1c1cd524d0e33804e654a5e398cb6048f1 | [] | no_license | SUTDNLP/ZPar | 4e2e87b874a2d2ca8c1f8aec854698d35ed3b307 | 0d07078be45151b4dfc5cda82cfd16c9765f0b63 | refs/heads/master | 2021-05-04T10:33:24.955650 | 2016-10-15T10:28:06 | 2016-10-15T10:28:06 | 45,964,664 | 11 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,224 | h | hash_utils.h | // Copyright (C) University of Oxford 2010
#ifndef _HASH_FUNCTION_UTIL_H
#define _HASH_FUNCTION_UTIL_H
#include "definitions.h"
// The idea here is to provide a global hash function for basic types
// but for all types defined in my code they are give a hash() member
// so that the inline hash functions are always th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.