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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe476b5bb9638e5eb5a0a91cb4cfa8175ba58487 | 1f9ff37c2383ea01758a486eeb9d46185c28520f | /Solved Problems/Trees/Partitions the Tree.cpp | f2e6e5e25b84ae69a27240ec8ce66fd584cc19ac | [] | no_license | Manii-M/InterviewBit | 992a9fbca290052d2386536443e57f62818bdc12 | b5d735d9c22edebfbcbd2ee06532cba28f18f64d | refs/heads/master | 2022-12-15T10:31:55.391785 | 2020-09-07T13:56:44 | 2020-09-07T13:56:44 | 263,404,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,709 | cpp | Partitions the Tree.cpp | /**
* Equal Tree Partition
Problem Description
Given a binary tree A. Check whether it is possible to partition the tree to two trees which have equal sum of values after removing exactly one edge on the original tree.
Problem Constraints
1 <= size of tree <= 100000
-109 <= value of node <= 109
Input Format
Fi... |
9e77ae57c1f084d5cb61d47a74bdd03dc9bbbbf1 | bd008507ccb324c289983317b91c79940b4b9780 | /cpp/av或bv号互转.cpp | 2c752fef3de0b2630aeaa413636801051d6c01b4 | [] | no_license | xiaoqiumc1234/xiaoqiumc1234.github.io | 6a4de5970ec9565f055b1234922170ee323b46a6 | b9880cce196e33ccb6880d4fc99eb4df5a610cff | refs/heads/master | 2022-11-06T15:36:07.299256 | 2020-06-20T13:02:10 | 2020-06-20T13:02:10 | 262,002,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,458 | cpp | av或bv号互转.cpp | #include <math.h>
#include <iostream>
#include <cstdlib>
#include <clocale>
using namespace std;
char table[] = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";
int tr[58] = { 0 };
int s[] = { 11, 10, 3, 8, 4, 6 };
long long _xor = 177451812;
long long _add = 8728348608;
long long dec(string x)
{
for (... |
0d4bce0a0ba97b1ec5fb8bb246761ba4b33ad247 | 758e58030f8493db12d3e2b346a5543f578c6132 | /soft/remote_ctrl/luamcuctrl/src/luamcuctrl.cpp | 7571dc5480bf99bc4c9587ce88785b4d60e41df9 | [] | no_license | notezen/IPM | 9e5191f48c0f006374aac7757723269ee70fc927 | 5f742b6fb055dbc1037a04f9257f7feb0c125351 | refs/heads/master | 2021-01-20T09:07:07.853253 | 2015-04-24T19:00:43 | 2015-04-24T19:00:43 | 27,236,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,228 | cpp | luamcuctrl.cpp |
#include "luamcuctrl.h"
#include "mcu_ctrl.h"
static const char META[] = "LUA_MCUCTRL_META";
static const char LIB_NAME[] = "luamcuctrl";
static int create( lua_State * L )
{
int cnt = lua_gettop( L );
McuCtrl * io = new McuCtrl();
McuCtrl * * p = reinterpret_cast< McuCtrl * * >( lua_newuserda... |
69dcc27f5846b813574153721283a48ce4849531 | 91a5721215434f4e41e8fa1008f3baa68302d8dd | /Game/ConsoleQuestion5.h | 1dce8425c468c72ca225c6c36218019b772ba350 | [] | no_license | potion0522/WhiteRoom | 44bfb1f3cf2a66da696fd964fcf3f4b02a278bb8 | 6ddcdd2edbd0d5d5c47e0117ddc7c64d151be631 | refs/heads/master | 2020-04-15T01:56:13.770500 | 2019-04-04T12:44:28 | 2019-04-04T12:44:28 | 164,297,091 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 783 | h | ConsoleQuestion5.h | #pragma once
#include "ConsoleQuestion.h"
#include <vector>
/*********************************************
コンソールの6Pの問題(Question5)
*********************************************/
PTR( ConsoleQuestion5 );
PTR( Image );
class ConsoleQuestion5 : public ConsoleQuestion {
public:
ConsoleQuestion5( std::function< void( ... |
1a5a75d9193bbbcc04e391a8e9662372bf17e6cd | 06ce3f409299c2ff53a2a4e63b842acfcec9c188 | /src/WireFormatTest.cc | 2a3e1a41548c77c60bae559f41dee938e8f0615d | [
"ISC"
] | permissive | SMatsushi/RAMCloud | 44ba99f87bbd48cdcc434ffad23f1d39c299a3e5 | e66752b8096bd57c19da7de6553f72fa2e5fc980 | refs/heads/master | 2021-01-22T07:31:51.916876 | 2016-09-15T13:57:04 | 2016-09-15T13:57:04 | 38,463,852 | 2 | 0 | null | 2016-09-15T13:57:04 | 2015-07-03T00:44:06 | C++ | UTF-8 | C++ | false | false | 3,152 | cc | WireFormatTest.cc | /* Copyright (c) 2010-2015 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright
* notice and this permission notice appear in all copies.lie
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... |
729a040966eb9df0e5969185ed4e694a6eef5276 | 96914ec576bc16f4c85af101eb371739dcf41336 | /代码/stu_info.h | 8a0a0a360f6e28be58e7a8cc65d04d0f9b9210b5 | [] | no_license | yiwen9586/RehabCareRecord-DBMS | a59e823d112764c9d5201d15edda97d526272f98 | e3f9d9ddb688393b3a111e0e8c034041e90fb3f2 | refs/heads/master | 2020-03-31T07:13:02.522523 | 2019-02-12T23:45:21 | 2019-02-12T23:45:21 | 152,012,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | stu_info.h | #ifndef STU_INFO_H
#define STU_INFO_H
#include <QMainWindow>
#pragma execution_character_set("utf-8")
namespace Ui {
class stu_info;
}
class stu_info : public QMainWindow
{
Q_OBJECT
public:
explicit stu_info(QWidget *parent = 0);
~stu_info();
bool createConnection();
void close... |
4a3ac26a6b18184472af6f2ae98c215ebe0ce034 | 8c2585f92fedd6064d3fe2a4425f7da8697d74fc | /Animation/Camera.cpp | 7d9154aa1b8da7230acd02d328b0789d3424a007 | [] | no_license | djadeja/sdl_tutorials | 29c78e4c4073c049e50017557d0942cb95f7d80b | 7320542fd2cc2301f34e9b120bbe1483a1f0b46d | refs/heads/master | 2022-12-24T01:01:09.864355 | 2020-09-21T17:20:36 | 2020-09-21T17:20:36 | 289,952,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | Camera.cpp | #include "Camera.h"
Camera Camera::cameraControl;
Camera::Camera() : targetX(NULL), targetY(NULL), x(0), y(0), targetMode(TargetMode::NORMAL) {
}
int Camera::getX() {
if (targetX != NULL) {
if (targetMode == TargetMode::CENTER) {
return *targetX - (WIN_WIDTH / 2);
}
return *... |
b112d980802d89357d5092f3e83738fb0a9bb4f2 | 5f5d34bb43247d5e771c50e9a47882120a56351b | /include/util/util.hpp | 6eac3beb2ca1fe8672ab1508d6cd0e55956d53dc | [
"MIT"
] | permissive | qaskai/MLCMST | dc2693306114594999488c6c8d810edd07791ce6 | 0fa0529347eb6a44f45cf52dff477291c6fad433 | refs/heads/master | 2022-12-10T17:03:44.793041 | 2020-09-13T13:50:23 | 2020-09-13T13:50:23 | 248,966,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,043 | hpp | util.hpp | #pragma once
#include <algorithm>
#include <string>
#include <istream>
#include <vector>
#include <unordered_map>
namespace MLCMST::util {
std::string read_stream(std::istream& stream);
std::vector<int> firstN(unsigned int N);
long clockMilliseconds();
double mean(const std::vector<double> &v);
double stdev(const st... |
471360b8e88f9f0f1c9a46580049707ee0d91c51 | cc2a953fc0a4f42f796a89d90dfb2d7703ecdb09 | /Contest & Online Judge/wcipeg/ioi0722.cpp | bdc4488212c84cfe2893710738ab3fee30e83013 | [] | no_license | 210183/CP | 107af662a3ab759760b14c6ed31fb21dc7c274e4 | bd0b74aa2a90e12c5e5f45ac251de9d6cf69a7c6 | refs/heads/master | 2020-08-05T05:41:36.075888 | 2019-07-07T02:23:05 | 2019-07-07T02:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,206 | cpp | ioi0722.cpp | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <string>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <vector>
#include <bitset>
#include <cassert>
#define makmu using
#define ndasmu namespace
#define gundulmu std
ma... |
9e1f34731d24817c842f66cc2ead0aa714f6a6bf | 33496338a35c4f76eadec13dc56c7831b1896113 | /Plugins/MadaraLibrary/Source/ThirdParty/madara/utility/ThreadSafeVector.h | 93740c277572b49880ec911fdddf6013208f4545 | [
"BSD-2-Clause"
] | permissive | jredmondson/GamsPlugins | 1ce0c2301cf84b6398ae1a2a6cdef9a4d0c1992c | d133f86c263997a55f11b3b3d3344faeee60d726 | refs/heads/master | 2021-07-08T23:40:48.423530 | 2020-10-01T05:31:26 | 2020-10-01T05:31:26 | 196,622,579 | 3 | 1 | BSD-2-Clause | 2020-03-17T04:23:21 | 2019-07-12T17:54:49 | C++ | UTF-8 | C++ | false | false | 3,084 | h | ThreadSafeVector.h | /* -*- C++ -*- */
#ifndef _MADARA_UTILITY_THREADSAFE_VECTOR_H_
#define _MADARA_UTILITY_THREADSAFE_VECTOR_H_
#include <vector>
#include "madara/LockType.h"
namespace madara
{
namespace utility
{
/**
* @class ThreadSafeVector
* @brief Manages a thread safe STL vector
*/
template<typename T>
class ThreadSafeVector
{
... |
c8fd791a2b4da82cfe2c0eefec5b32f2e8250def | 72852e07bb30adbee608275d6048b2121a5b9d82 | /algorithms/problem_1832/solution.cpp | ad92f301b53542d70f453f4725034d457b5b88be | [] | 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 | 1,433 | cpp | solution.cpp | /*
1832. Check if the Sentence Is Pangram
Easy
A pangram is a sentence where every letter of the English alphabet appears at least once.
Given a string sentence containing only lowercase English letters,
return true if sentence is a pangram, or false otherwise.
Example 1:
Input: sentence = "thequickbrownfoxjumpsover... |
907ebb8117d3ebaa1d48954149b3ba77e16d5307 | 56f431ac8061ddb4c45b32457b0f948d1029d98f | /MonoNative.Tests/mscorlib/System/Globalization/mscorlib_System_Globalization_StringInfo_Fixture.cpp | ec5ecfa4943557e995598e61a550468f9642c2d5 | [
"BSD-2-Clause"
] | permissive | brunolauze/MonoNative | 886d2a346a959d86e7e0ff68661be1b6767c5ce6 | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | refs/heads/master | 2016-09-15T17:32:26.626998 | 2016-03-01T17:55:27 | 2016-03-01T17:55:27 | 22,582,991 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,690 | cpp | mscorlib_System_Globalization_StringInfo_Fixture.cpp | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Globalization
// Name: StringInfo
// C++ Typed Name: mscorlib::System::Globalization::StringInfo
#include <gtest/gtest.h>
#include <mscorlib/System/Globalization/mscorlib_System_Globali... |
39de7e639ec90f1295c94cd9eee081c3747776c7 | aec41e793d61159771ec01295a511eb5d021f458 | /leetcode/328-odd-even-linked-list.cpp | 924fca409f80673fe9382fff85cbd8a454d32c0c | [] | no_license | FootprintGL/algo | ef043d89549685d72400275f7f4ce769028c48c8 | 1109c20921a6c573212ac9170c2aafeb5ca1da0f | refs/heads/master | 2023-04-09T02:59:00.510380 | 2021-04-16T12:59:03 | 2021-04-16T12:59:03 | 272,113,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,016 | cpp | 328-odd-even-linked-list.cpp |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* oddEvenL... |
6d58cabd8ba4300769b9fda22e6bcb83d3291ab7 | 98e417b95479af6ff6d3f19aa77a719b7f05a1e1 | /Leetcode/数据结构/数组与矩阵/leetcode1_sumOfTwoNum.cpp | eb0566f7c5481541cbf836af8d57c6b40ec31097 | [] | no_license | peaceminusones/ZYL-Leetcode | d7bc67ae284d3ee3a2c195010da89bfadc754e61 | 05d0fbe9bc35ff887cd826bfb6c3bf8d56d87efb | refs/heads/master | 2023-02-01T15:54:43.380805 | 2020-12-17T03:09:16 | 2020-12-17T03:09:16 | 279,570,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | leetcode1_sumOfTwoNum.cpp | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
class Solution
{
public:
vector<int> twoSum(vector<int> &nums, int target)
{
vector<int> res;
unordered_map<int, int> map; // 存储nums[i]和target的差,和相应的位置
for (int i = 0; i < nums.size(); i++)
{
... |
612a2627fc370e1e743fef2232cace1065a49243 | 1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d | /src/cpu/pred/simple_indirect.cc | f09cdeef55fe4e26f856b19a4ccef7243db36967 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | gem5/gem5 | 9ec715ae036c2e08807b5919f114e1d38d189bce | 48a40cf2f5182a82de360b7efa497d82e06b1631 | refs/heads/stable | 2023-09-03T15:56:25.819189 | 2023-08-31T05:53:03 | 2023-08-31T05:53:03 | 27,425,638 | 1,185 | 1,177 | BSD-3-Clause | 2023-09-14T08:29:31 | 2014-12-02T09:46:00 | C++ | UTF-8 | C++ | false | false | 8,174 | cc | simple_indirect.cc | /*
* Copyright (c) 2014 ARM Limited
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, this list of conditions and th... |
719d71f1756f9f3d39c2c5145d8230823228c48c | f8fb1bb814f2a2313f04f2f48129deb7d744803c | /third_party/fmt-9.1.0/test/core-test.cc | c76dc161775d3e7d69a07528c541fa1a09272fdc | [
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-object-form-exception-to-mit",
"BSD-2-Clause"
] | permissive | Project-OSRM/osrm-backend | 403583d537b770139e9fa0faa114224af7060ff5 | d234c7246c1d5334cbd0f86038ad7008aea7bc11 | refs/heads/master | 2023-08-28T15:43:54.442947 | 2023-08-20T09:17:30 | 2023-08-20T09:17:30 | 2,436,255 | 5,359 | 3,526 | BSD-2-Clause | 2023-09-13T20:01:37 | 2011-09-22T10:05:08 | C++ | UTF-8 | C++ | false | false | 32,179 | cc | core-test.cc | // Formatting library for C++ - core tests
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
// clang-format off
#include "test-assert.h"
// clang-format on
#define I 42 // simulate https://en.cppreference.com/w/c/numeric/complex/I
#incl... |
3fd27f57598d1733d05d9eb34be7a1bf53c40e06 | ddabf2282a3262cf71e0bee15589e96f7bc51ab4 | /blaze_tensor/math/views/dilatedsubtensor/Dense.h | 971e9810e98c2bf9dacb858ba37a6132ec50870f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | STEllAR-GROUP/blaze_tensor | 538067a8ead9f551349e486a3a5d965feaad5b75 | 4b6ec2c6b20b46de36ac4374deea03d2fc4b3753 | refs/heads/master | 2021-06-27T10:36:53.061011 | 2020-10-01T15:59:23 | 2020-10-01T15:59:23 | 157,039,072 | 35 | 7 | NOASSERTION | 2020-09-30T18:18:43 | 2018-11-11T02:03:03 | C++ | UTF-8 | C++ | false | false | 105,904 | h | Dense.h | //=================================================================================================
/*!
// \file blaze_tensor/math/views/DilatedSubtensor/Dense.h
// \brief DilatedSubtensor specialization for dense matrices
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
// Copyright (C) 2018-201... |
d0243bf99b4545fd53f330021b0ec2c414d17da6 | 903767e9e1bd7ae4c273621f2787e8e93ed38553 | /Codeforces/Div2/675/C.cpp | feeabacebe4112047def5cf46c843a4e2a5a2d28 | [] | no_license | itohdak/Competitive_Programming | 609e6a9e17a4fa21b8f3f7fc9bbc13204d7f7ac4 | e14ab7a92813755d97a85be4ead68620753a6d4b | refs/heads/master | 2023-08-04T08:57:55.546063 | 2023-08-01T21:09:28 | 2023-08-01T21:09:28 | 304,704,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,511 | cpp | C.cpp | #include <bits/stdc++.h>
#include <print.hpp>
using namespace std;
#define ll long long
#define ld long double
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(i,n) RREP(i,(n)-1,0)
#define all(v) v.begin(), v.end()... |
2db2dfde36db1150326d454cee1e0f81091ac441 | 334629c8e811baf9f72d0545fea95b35129d43fb | /mlog/impl/metadata.hpp | de475be058a69ecfbc0f43f5f921a25fe3431446 | [
"MIT"
] | permissive | xdmiodz/mlog | 4d0d3a2a0dec548fe77a9e4e281fcbdb0d316f3d | c00afe1ca75baa42eb362375dfb086821c5935f7 | refs/heads/master | 2020-12-25T13:08:19.582057 | 2014-04-13T18:06:54 | 2014-04-13T18:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,909 | hpp | metadata.hpp | /*
*
* Author: Philipp Zschoche
*
*/
#ifndef __METADATA_IPP__
#define __METADATA_IPP__
#include "../metadata.hpp"
#include <cstdio>
#if _MSC_VER
#define snprintf _snprintf_s
#endif
#include <string>
#include <sstream>
#include <cstring>
#include <chrono>
#include <cstdlib>
namespace mlog {
template <typename T> s... |
e5e4bdad21bc4107166addcc83b0463d39445339 | 64a87c62442df204132afa257304430712680bb0 | /math/ternary-search.cpp | b78631c589876c33bd0173cabf64e981fc83430f | [] | no_license | vutunganh/contest-programming-templates | 976a142508d38316f9f9ba3cceaa7be31cfc394c | 2f8d87cb89c1dcd8d9dc45123fa5922a3414a8ed | refs/heads/master | 2023-03-16T22:16:32.183180 | 2021-03-06T08:56:59 | 2021-03-06T08:57:58 | 345,048,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | cpp | ternary-search.cpp | // pustit jako tern(1, 1e9) apod
ld tern(ld l, ld r)
{
if (r - l < 1e-6)
return func((l + r) / 2);
ld lt = (2 * l + r) / 3;
ld rt = (l + 2 * r) / 3;
// flipnout na < pro maximum
if (func(lt) > func(rt))
return tern(lt, r);
else
return tern(l, rt);
}
|
64880b7a759b7f8cf5595298a25d441d380a7d46 | eaad2b7a64ed15872208ddbb1c0af7c49e537309 | /L5Root/l5_1/Map.cpp | d8c14ff3d50d36856d82dd489552308d9e7a9b77 | [] | no_license | ionut-mntn/Laboratoare-Structuri-de-Date-si-Algoritmi-Cpp | 069ea65282d16a6eff60731d5f0ef062ec6c3ac5 | 3a6f0d8de49c07ac520f36a81a0372e7dceed4df | refs/heads/master | 2023-03-12T12:45:42.634439 | 2021-03-02T16:35:07 | 2021-03-02T16:35:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,317 | cpp | Map.cpp | #include "Map.h"
#include "MapIterator.h"
#include <iostream>
using std::cout; // pt mn pt debugging
/*
void Map::afis_tabela(TElem* tabela)
{
for (int i = 0; i < m; i++)
cout << "(" << tabela[i].first << ", " << tabela[i].second << ") ";
cout << '\n';
}
*/
void Map::mark_empty(TElem* tabela)
{
for (int i = 0; i ... |
a6801ccd201c1b2fb6409a849f0054eaa23e96be | ce557019b3ab72eaa2bcfa0da561ac83aff27092 | /sources/src/internals/view/detail/QtWidgetManager.cpp | 0ce7fa88c8be02b03e267f8fc05b91e5f3cf66f3 | [] | no_license | stryku/icyus | cf4d5ea9dd13399f6a048de22d4aa09cbf26a216 | 7bdea99b824caa5821b3bf0189f2197685a318b7 | refs/heads/master | 2020-04-06T07:12:10.787952 | 2016-08-20T22:37:38 | 2016-08-20T22:37:38 | 65,685,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,777 | cpp | QtWidgetManager.cpp | #include <internals/view/detail/QtWidgetManager.hpp>
namespace Icyus
{
namespace View
{
namespace detail
{
QtWidgetManager::QtWidgetManager(QWidget *parent, const QString &uiFilePath) :
formWidget{ createWidget(parent, uiFilePath) },
controls{ extract... |
a9350295eb78cb9ac0cb4c2cf4e64745daed8579 | 614cece4b50a8cd257dd74f3ce6f7c39b6406387 | /converter/OutputWriter.cpp | cd55b30a0bad17c897c2a127d0ff28ccecd9ecbb | [] | no_license | AlekNS/skironscrapper | 31157cb09a878020762be1d71c6c93aa883215f3 | ff0727a654aa2de1180431205d4f69c97d8e0827 | refs/heads/master | 2021-04-03T07:22:45.020120 | 2017-08-04T01:30:52 | 2017-08-04T01:30:52 | 124,735,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,104 | cpp | OutputWriter.cpp | #include "OutputWriter.h"
#include <sstream>
#include <iomanip>
#include <sys/stat.h>
#include <libwgf3/wgf3.h>
bool ensurePath(const std::string path, mode_t mode = 0776) {
std::istringstream ss(path);
std::string token;
struct stat st;
std::string checkPath("");
while(std::getline(ss, token, '/... |
3edff2f5640638eba9f0b95101f303b62eb673e7 | b1333c5f06fe1672471c01057bb2e6409279746e | /HelloCpp/Classes/scene3DLayer.cpp | 4bfd0ea62efb195eeec95cfbef10b0617b0d0499 | [] | no_license | wantnon/cocos2d-x-3d | 2c8f07e90af751d2abcec2e497fbcc0637b7265b | 995766333b60bfd580ee000d43ae2bb08d46ede2 | refs/heads/master | 2021-01-21T12:26:18.680899 | 2014-01-01T04:22:29 | 2014-01-01T04:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,582 | cpp | scene3DLayer.cpp | //
// scene3DLayer.cpp
// HelloCpp
//
// Created by ck02-084 on 13-11-6.
//
//
#include "scene3DLayer.h"
bool Cscene3DLayer::init(){
//enable touch
setTouchEnabled( true );
//add 3d obj to layer
Cobj3D*obj=new Cobj3D();
obj->init("logo.png");
obj->setAnchorPoint(ccp(0,0));
obj->setPosition(... |
deab36bb747893917939f4c0cddc7ca9b92f4d5b | cd3eb264a9e1f61f69a692ed12bdafa476ad5cf4 | /tst/testHTMLCommandParser.cpp | e0541a403565410e2173911e0643361aa7aa5fe4 | [
"MIT"
] | permissive | nerds-odd-e/mahjong | be5b63077ba6347e92f14dea0ee9e4a2eb6ed1f6 | e4fa21cc68b869394d123e0fa0957d0c7e4d70aa | refs/heads/master | 2022-12-23T19:56:14.877008 | 2019-12-02T09:12:57 | 2019-12-02T09:12:57 | 218,472,201 | 6 | 0 | NOASSERTION | 2022-12-13T05:58:22 | 2019-10-30T07:55:24 | C++ | UTF-8 | C++ | false | false | 3,360 | cpp | testHTMLCommandParser.cpp | #include <queue>
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include "HTMLCommandParser.h"
#include "MahjongCommand.h"
#include <typeinfo>
#include "mocks.h"
TEST_GROUP(HTMLCommandParser) {
MockHTMLMahjongGameServer server;
HTMLCommandParser *parser;
MahjongCommand *cmd;
void setup() {
... |
5d274e5fe4a4e7159450fcec6853fb1fcf93d86e | 34b8f336a5f6e5bfa36bcaca712647f423d94bfc | /active_3d_planning_core/src/module/back_tracker/reverse.cpp | c9226c7279c3a6a6f9d84ed900cc02770dad3741 | [
"BSD-3-Clause"
] | permissive | ethz-asl/mav_active_3d_planning | db1f1ee8698b2cf62d46a6a675e299eb0a33e15d | 14c2b4d140ac0c653410f0956d206292a21dd488 | refs/heads/master | 2023-07-15T22:52:26.774623 | 2022-07-05T15:15:04 | 2022-07-05T15:15:04 | 154,641,455 | 439 | 99 | BSD-3-Clause | 2023-05-30T20:11:30 | 2018-10-25T09:05:47 | C++ | UTF-8 | C++ | false | false | 2,389 | cpp | reverse.cpp | #include "active_3d_planning_core/module/back_tracker/reverse.h"
#include <string>
#include "active_3d_planning_core/tools/defaults.h"
namespace active_3d_planning {
namespace back_tracker {
// Reverse
ModuleFactoryRegistry::Registration<Reverse> Reverse::registration("Reverse");
Reverse::Reverse(PlannerI& planner... |
950742ed40899e45e5e09b6464d68fb10b0d0773 | a9c359681631e8344f55163a2d69018ed02c0a90 | /openr/decision/RibEntry.h | 3ff6d987e4f8b840d340cd7660050ff7d0ede1d9 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | facebook/openr | 66c82707ae47fa5ed711c20f0355ad7100a3cf1c | 8e4c6e553f0314763c1595dd6097dd578d771f1c | refs/heads/main | 2023-09-03T02:55:03.399114 | 2023-07-26T16:46:46 | 2023-07-26T16:46:46 | 108,306,129 | 936 | 295 | MIT | 2023-08-31T23:03:31 | 2017-10-25T17:59:53 | C++ | UTF-8 | C++ | false | false | 5,909 | h | RibEntry.h | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "openr/if/gen-cpp2/Network_types.h"
#... |
610444ee3a4195a6822f060955a0e98f5799a5cd | 57cd99b1d05b5b59c715a87ac52cb98154141281 | /BrolsmaJesse_Opdracht6_v1/BrolsmaJesse_Opdracht6_v1/Koffer.h | 4708ab5a79c285e5eda65f08c5692e80016d1a21 | [] | no_license | KaktusPai/JesseBrolsma_C_Plus_Plus | 1be0d3a8a453af01db8bed0b497fbcda9c5c4b30 | 0055fd9d9d1457cddcbf217a603987f6fa6b36c3 | refs/heads/master | 2022-12-31T20:00:19.563503 | 2020-10-23T21:32:28 | 2020-10-23T21:32:28 | 299,435,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | h | Koffer.h | #pragma once
#include <string>
#include "Sokken.h"
class Koffer {
public:
Koffer(std::string klr);
Koffer(const Koffer& k);
Koffer& operator=(const Koffer& k);
void sokkenInKoffer(Sokken& s);
Sokken* sokken = nullptr;
std::string kleur = "grijs";
~Koffer();
};
|
aa30f1fcc7635c7e08bda6bc209036b97849c3f3 | 70cdf389c2bc8f0b34e8f6d461b3dae7c52af549 | /openlf_circuits/components/comp_number_viewer.h | 374fea32c785d40431566b96f471ae1a4c90b2d8 | [] | no_license | LIZECHUAN/openlf | 526839545414c59d9584f78c11aa282ab5c34869 | fe907092f23f9457e151f36e2faa6ea41e4cef43 | refs/heads/master | 2020-05-31T07:27:43.838912 | 2015-09-23T14:44:15 | 2015-09-23T14:44:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,062 | h | comp_number_viewer.h | /*
* Copyright (c) 2015 Heidelberg Colaboratory for Image Processing
*
* 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 use,
* c... |
e903cca6ae904a39383019d16978e359312b35d8 | 0a1d0f4a38cb5c20d68f81738c2ff886ea435701 | /DuckGame/DuckGame/Vector2D.cpp | 722cd6a08a3372c43ed73ecc34ca3aa6f2520a7e | [] | no_license | shxwnx/cg-projekt | 8c5864a7c9374a7b118a3d0ee2b49f0250becf90 | 5ee66ee334feb1685f4612975f56c30748fab279 | refs/heads/master | 2020-03-23T07:40:03.061456 | 2018-09-03T08:22:54 | 2018-09-03T08:22:54 | 141,284,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,362 | cpp | Vector2D.cpp | #include "Vector2D.h"
#include <assert.h>
#include <math.h>
Vector2D::Vector2D(float x, float y) : X(x), Y(y)
{
}
Vector2D::Vector2D()
{
}
float Vector2D::dot(const Vector2D& v) const
{
float f = X * v.X + Y * v.Y;
return f;
}
float Vector2D::cross(const Vector2D& v) const
{
return X * v.Y - v.X * Y;
}
Vecto... |
ac2582d55e83b6d8a5cc14debecc1ec5a7a4367e | f654df6c38b5b1f32e7f34d4a86a47e13ecfe3d0 | /preview/preview_area.h | 71fcf2db01fabeb876fcafe7e87ac9a964e113d8 | [
"MIT"
] | permissive | emako/qvs | 267dabb75aa862cf0ad62df20049f3ca66c5adcd | 87dd9da0badcb526375609a4a65d8cb59a93436e | refs/heads/master | 2022-03-15T11:00:39.718763 | 2022-03-11T23:15:33 | 2022-03-11T23:15:33 | 144,843,697 | 45 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,443 | h | preview_area.h | #ifndef PREVIEWAREA_H
#define PREVIEWAREA_H
#include <QScrollArea>
#include <QPixmap>
#include <QPoint>
class QLabel;
class ScrollNavigator;
class QKeyEvent;
class QWheelEvent;
class QMouseEvent;
class PreviewArea : public QScrollArea
{
Q_OBJECT
public:
PreviewArea(QWidget * a_pParent = nullptr);
virtual ~Prev... |
f18f728ba09f82815f367f6ab5e47244333a67cc | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /vtn/coordinator/modules/odcdriver/odc_kt_utils.cc | 1cccbad5f441a9954ea6a9282ef931db340f8702 | [] | no_license | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | C++ | false | false | 22,054 | cc | odc_kt_utils.cc | /*
* Copyright (c) 2014 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
#include <odc_kt_utils.... |
6b32c0e3dcb41aa25b608e743b402bb258a67cf1 | a9f795667368634c36de9919437eb64db83b3331 | /mips/retrieval/ta.h | 906589896bc3aa9d791bed51d5ebd3f84bb4e780 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | stanford-futuredata/LEMP-benchmarking | 2bdf24336db4020830406ea7462db70b03e527b7 | 0279528b427aa4fae59e4d3598b1f098fcb4cf4b | refs/heads/master | 2020-05-26T12:16:03.854467 | 2018-07-31T23:53:39 | 2018-07-31T23:53:39 | 84,997,817 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,449 | h | ta.h | // Copyright 2015 Christina Teflioudi
//
// 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 ap... |
9aa2aed527db676fb1d0d3a831cc2ac72b7ed883 | b13b12fbcf29716fc718445d37cd57db907c5abd | /rock_paper_scissors/tests/test_rps.cpp | 57f1ad198de771ab04757da485c24ce7a06801f0 | [] | no_license | cynthia3r/games | be8ffa68f4d06b3d872f708e06db58898da0062f | 95b5019660855ccf19492cc4916dc41653c82653 | refs/heads/master | 2023-02-21T18:42:16.958983 | 2020-05-11T07:31:52 | 2020-05-11T07:31:52 | 262,968,146 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,277 | cpp | test_rps.cpp | #include <iostream>
#include "test_rps.h"
#include "../ActionFactory.h"
#include "../Rock.h"
#include "../Paper.h"
#include "../Scissors.h"
bool test_action_factory_get_action_rock()
{
ActionFactory factory;
return factory.getAction("rock")->type() == Action::ActionType::rock;
}
bool test_action_factory_get_a... |
10dbe9262c8b51a0aff24a777e2c3640619a5eca | 393d6e1307a477b81feebf2fdb8b1b4308430d64 | /app/src/util.h | 3583522dc740b3570cfe28ef25f7f2533050b34c | [] | no_license | SRI-CSL/rendezvous | cdc6c67f12f79d35930a1035ae0b2cdf9b7a7f29 | 71ecb0223e332121fd0841da561f3435d776e280 | refs/heads/master | 2021-01-14T13:22:07.803124 | 2015-01-05T18:22:55 | 2015-01-05T18:22:55 | 28,825,169 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 245 | h | util.h | #ifndef UTIL_H
#define UTIL_H
#include <QString>
#include <QDebug>
#include <QTime>
class Util {
public:
inline static QDebug debug(){ QDebug foo = qDebug(); foo << QTime::currentTime().toString("mm:ss.zzz"); return foo; }
};
#endif
|
e49c7dc49e49e84e196ef593d88a0ea5fe733971 | a4515918f56dd7ab527e4999aa7fce818b6dd6f6 | /Unsorted Language-specific Implementations/c-plus-plus/bigInteger.cpp | 805aaa5e61422543be05ee86f402d1bdd476e5da | [
"MIT"
] | permissive | rathoresrikant/HacktoberFestContribute | 0e2d4692a305f079e5aebcd331e8df04b90f90da | e2a69e284b3b1bd0c7c16ea41217cc6c2ec57592 | refs/heads/master | 2023-06-13T09:22:22.554887 | 2021-10-27T07:51:41 | 2021-10-27T07:51:41 | 151,832,935 | 102 | 901 | MIT | 2023-06-23T06:53:32 | 2018-10-06T11:23:31 | C++ | UTF-8 | C++ | false | false | 6,744 | cpp | bigInteger.cpp | /*
@author: Priyendu Mori
Big Integer library that supports add, sub, mul, div and gcd of large numbers
*/
#include <bits/stdc++.h>
#include <string>
#define ll long long
using namespace std;
string add(string, string);
string sub(string, string);
bool isSmaller(string x, string y)
{
for (ll i=0; i<x.l... |
f6f3aaad66b7ff1bbfd3e2d23bfd029451e5013a | b5266922e5465848233df71b39b50779dad487cb | /LLGameStudio/LLGameEngine/Game/UI/IUIProperty.h | 9b32686e0bcff48302f9c5a6f8a14b0dffd4ea59 | [] | no_license | wlzs04/OpenSource | bb524a0d43b18b89ff47d3b3329db5451145ec86 | 0406e52b31d231b61cd66d3aeb76e7aed265bd7b | refs/heads/master | 2018-11-28T04:29:23.220812 | 2018-10-25T11:13:36 | 2018-10-25T11:13:36 | 115,679,393 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,140 | h | IUIProperty.h | #pragma once
#include "..\..\Common\Helper\MathHelper.h"
#include "..\..\Common\LLBase.h"
#include "../../Common/Graphics/GraphicsApi.h"
class IUIProperty
{
public:
IUIProperty(wstring name, wstring defaultValue);
bool IsDefault();
virtual wstring GetValue() { return wstring(); };
virtual void SetValue(wstring)... |
734dc5d3d16b7b92f1afd3de488191ce87542661 | 72bc0cb69b7b0efbf03e37e63ab6ebf09c132c08 | /frame/main/Processor.cpp | 02c4604b0a58250954f881fd498f3029b1838057 | [] | no_license | roberty65/bServer | 1c135036a85a173c2301142460f9c613181ef66b | a40d57615c1a43f40b60d188c1289908227e4b03 | refs/heads/master | 2021-01-22T10:32:16.840178 | 2020-06-28T01:00:57 | 2020-06-28T01:00:57 | 53,181,607 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | Processor.cpp | #include "Log.h"
#include "Queue.h"
#include "Processor.h"
namespace beyondy {
namespace Async {
int async_send_delegator(Message *msg, void *data)
{
// set it
gettimeofday(&msg->ts_enqueue, NULL);
Queue<Message> *outQ = (Queue<Message> *)data;
if (outQ->push(msg) < 0) {
SYSLOG_ERROR("push msg(fd=%d, flow=%d s... |
1c2b385ea288dcaf0ecf2ab106a994a8d8509b00 | 1f84fd078570475d2510339bab2439b5193af03d | /source/vxEngine/EditorEngine.cpp | 5c062e6047e8cc13f8f1275fdb0f1fb6e9c71bad | [
"MIT"
] | permissive | DennisWandschura/vxEngine | df138077cdb9f40461c83e99a8851de593b098f2 | 1396a65f7328aaed50dd34634c65cac561271b9e | refs/heads/master | 2021-01-16T00:17:47.703611 | 2015-10-11T10:44:53 | 2015-10-11T10:44:53 | 32,484,686 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,878 | cpp | EditorEngine.cpp | /*
The MIT License (MIT)
Copyright (c) 2015 Dennis Wandschura
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 use, copy, modify, me... |
ff04249c7815894a999b14200cce4bf94bee6a71 | a57a2367d3bb2394a9075ff20f124593bb78e3b0 | /GLTestAZDO/Math/Matrix44.h | eedd7fe76da99ad050dda71a6dc6a41265ea89ea | [] | no_license | guiltydogprods/GLTestAZDO | d72f218ccec16af6ea2bf54c3e7765d5d0a1390e | 07458c1b95a8703fee0982de2d0af62c89738842 | refs/heads/master | 2020-04-18T20:23:45.783700 | 2019-01-26T20:50:04 | 2019-01-26T20:50:04 | 167,736,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,917 | h | Matrix44.h | //
// Matrix44.h
// ion
//
// Created by Claire Rogers on 14/10/2012.
// Copyright (c) 2013 Guilty Dog Productions Ltd. All rights reserved.
//
#pragma once
#include "Vector4.h"
#include "Vector.h"
#include "Point.h"
class Quat;
enum IdentityTag {kIdentity};
class Matrix44
{
public:
Vector4 m_xAxis;
Vect... |
d5fd58885711eaa9cc29f5ff0bca67a7e6c397a3 | 0caf48a5173071de72f8f122fce578c15a515191 | /Project L/GUI/Text.h | 233cccdbb058e76ede6f583fb6ffb39e7b3c25ab | [] | no_license | jonathan2222/Project-L | bf88f975958d8403584e9d76a78990687f2d1c94 | e1bae19f1c306880df42b1c859c7f9e833538359 | refs/heads/master | 2020-03-21T19:12:10.069090 | 2018-07-12T16:16:40 | 2018-07-12T16:16:40 | 138,934,979 | 0 | 0 | null | 2018-07-09T13:01:49 | 2018-06-27T21:30:42 | C | UTF-8 | C++ | false | false | 794 | h | Text.h | #ifndef TEXT_H
#define TEXT_H
#include <string>
#include "Font.h"
#include "../Maths/Vectors/Vec4.h"
class Text
{
public:
struct CharacterRect
{
GLuint textureID;
struct Rect
{
Vec4 tl;
Vec4 tr;
Vec4 bl;
Vec4 br;
} rect;
};
public:
Text();
Text(const std::string& text, Font* font);
~Text();
... |
c9f010d6521cf6c0878d40c9db3c7e4a3ae0dd58 | 9635d9bc8eb87a0435e51ea2ecb54ab7b8da0e48 | /sectiontoken.h | 103d4d560913d421b9967fabbb22ed0a27068401 | [] | no_license | lcadenas/Interactive-Fiction-Project | 2fa3c0cd9818699725b8ac12913dbaae5c0164a0 | 441b3fd70d5d4e7d88b97da1fe0140b7e7ee8e45 | refs/heads/master | 2020-04-07T17:53:45.420918 | 2019-01-29T06:10:00 | 2019-01-29T06:10:00 | 158,588,183 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | sectiontoken.h | #ifndef __SECTIONTOKEN_H
#define __SECTIONTOKEN_H
#include <iostream>
#include <string>
using namespace std;
enum Type_t { LINK, GOTO, SET, IF, ELSEIF, ELSE, BLOCK, TEXT };
class SectionToken
{
private:
Type_t type;
string sectiontext;
public:
SectionToken(string sect);
string getText();
Type... |
1c238e59f2beec9790adbe1139bb2b6146dd437e | 25590fa39d365f8cf43d73114f24f9e9a28eb7e2 | /Lecture-18 Trees/binary_tree.cpp | abc3cbae8002b6354d211aecedbe1d679680c0b8 | [] | no_license | coding-blocks-archives/Launchpad-LIVE-June-2017 | 767e89b7533967403d185f1064035352d19ef5b9 | b501baaafdeebcca75854386e844099bf09dab49 | refs/heads/master | 2021-01-20T05:13:06.691930 | 2017-08-25T16:38:44 | 2017-08-25T16:38:44 | 101,419,477 | 1 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 5,220 | cpp | binary_tree.cpp | #include<iostream>
#include<queue>
using namespace std;
class node{
public:
int data;
node*left;
node*right;
node(int d){
data = d;
left = NULL;
right = NULL;
}
};
///recursive fn
node* buildTree(){
//cout<<"Enter the data ";
int d;
cin>>d;
if(d==-1){
... |
b01836ffae68611db9cd8651e308f0320c2f8ed7 | 050c8a810d34fe125aecae582f9adfd0625356c6 | /fmi2020/expected3.cpp | 23a704ffd1493db7b11daa4f4b1dfcdd85760938 | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,826 | cpp | expected3.cpp | #include <cstdio>
using namespace std;
FILE *f = fopen("expected3.in","r");
FILE *g = fopen("expected3.out","w");
const int LEN = 1 << 12;
char buff[LEN];
int ind = LEN - 1;
int i32(){
int ans = 0;
int sgn = 1;
while((buff[ind] < '0' || buff[ind] > '9') && buff[ind] != '-'){
if(++ind >= LEN){
... |
a85beec6441910ea711c277cf6ff3bea4215c7e4 | 23a47976563db56e5c65f77c1ec9c767e7704bd5 | /old source/FuzzyTool/FuzzyTool/DataSetsReadCripsFile.cpp | 7db618367bbca9377e5cbd33bda2a689ceb961b4 | [] | no_license | chovancova/diploma-thesis-fuzzification | 732673798fa6c0afa996e937977024bc529bc09a | f3621bd1c3fadfba4a28ef6b21e32368089fc631 | refs/heads/master | 2021-01-18T19:45:50.642359 | 2017-04-29T06:46:50 | 2017-04-29T06:46:50 | 64,826,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,143 | cpp | DataSetsReadCripsFile.cpp | #include <cstdio>
#include "DataSets.h"
#include <cstring>
// -------------------------- ReadCrispFile - IRIS -----------------------
int DataSets::read_crisp_file_iris(FILE* fp)
{
char Label[20];
for (unsigned long k = 0; k < DatasetSize; k++)
{
fscanf(fp, "%f,%f,%f,%f,%s",
&Pattern[k].Feature[0],
... |
7e68354c625ee9fd887824217ae25148b4125864 | e41bec1960790c4522d03e14f565f0403434fd95 | /MicroScoper/DlgModuleControl.cpp | 5d216dcf07e16bd0b6c4b477650dae995173c95d | [] | no_license | dreamplayerzhang/WS_MicroScoper | 5f6f453f72018cc7e21b2c01a03dcdc79c619127 | c9c9ad7c2ef110b4572ca0f441321ce2e47849c9 | refs/heads/master | 2021-12-09T03:04:49.010995 | 2016-04-17T14:36:42 | 2016-04-17T14:36:42 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 5,316 | cpp | DlgModuleControl.cpp | // DlgModuleControl.cpp : 구현 파일입니다.
//
#include "stdafx.h"
#include "MicroScoper.h"
#include "DlgModuleControl.h"
#include "afxdialogex.h"
// CDlgModuleControl 대화 상자입니다.
IMPLEMENT_DYNAMIC(CDlgModuleControl, CDialog)
CDlgModuleControl::CDlgModuleControl(CWnd* pParent, COLORREF nDialogColor)
: CDialog(CDlgModuleCon... |
be3d99557a069a71a2a57eca255098b628af7573 | ee9bdae0e3d46c795dbb99cdbb90f1254d46a839 | /include/lightsky/utils/NetConnection.hpp | 393b6441dfc3e48353023517ebb19d340d54730f | [
"BSD-2-Clause"
] | permissive | hamsham/LightUtils | ebf2e122eb9162d55c4ebfa18399061a2edcfab3 | ed0b57a02255256b2869342d7af47fce4da50da1 | refs/heads/master | 2023-06-24T09:05:09.739548 | 2023-06-12T04:51:08 | 2023-06-12T04:51:08 | 43,227,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,114 | hpp | NetConnection.hpp |
#ifndef LS_UTILS_NETWORK_CONNECTION_HPP
#define LS_UTILS_NETWORK_CONNECTION_HPP
#include <cstdint>
struct _ENetHost;
struct _ENetPeer;
namespace ls
{
namespace utils
{
/*-----------------------------------------------------------------------------
* Basic UDP Connection
---------------------------------------... |
03eae4501a1c95ce032242cd28f6fccb787e834d | c46863e61fbcade0ed9344c69896573461c5b931 | /c++/src/mcmc/options.h | 4d931edfe8cba0ddd27047e11a9c809aaab86c62 | [] | no_license | ielhelw/MCMC_FOR_AMMSB | 54b759060a2097092f57496644c0b908c29a159b | 4526094553d21ab7b1a25d2173e34ef1030578ce | refs/heads/master | 2021-01-19T08:12:19.663018 | 2018-01-08T17:14:40 | 2018-01-08T17:14:40 | 20,097,439 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,747 | h | options.h | #ifndef MCMC_OPTIONS_H__
#define MCMC_OPTIONS_H__
#include <iostream>
#include <fstream>
#include <boost/program_options.hpp>
#include "mcmc/config.h"
#include "mcmc/types.h"
#include "mcmc/exception.h"
#include "dkvstore/DKVStore.h"
namespace mcmc {
/**
* For want of a better place...
*/
template <typename T>
... |
c2b05aa032556bb06c3c5755154580e266bfbdfa | 054826b3e02d026c77c7d3e8574578fdf7edc897 | /Day67/Chef and closure.cpp | de86b42f948b929b6b13b57a5f4cc8120e943270 | [] | no_license | 123pk/100DaysCoding-Part-3 | 599b1ebcfa15d3013758db28a7ad4b6411fe90be | 0382ce2e3d9b2c77f3bf5cd869ffeccf2ab48f49 | refs/heads/main | 2023-07-18T20:14:33.888371 | 2021-09-26T15:33:42 | 2021-09-26T15:33:42 | 378,564,802 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,143 | cpp | Chef and closure.cpp | /*
Platform :- Codechef
Contest :- Codechef August Cookoff 2021
Approach :- If you will analyse the problem carefully you will find that we have three cases ,
Case 1 :- we have element more than 1 element with abs(x)>1 , as that will lead to infinte array and it cannot be closed
Case 2 :- We ha... |
c2da5f1b8b2d5641e7a3512bc26652271b166734 | e2d034057f9e82114dacbc3cd5108bcc00f61bd6 | /src/ngraph/runtime/interpreter/node_wrapper.cpp | a0a1f7e8f75bf8f251eeac23b9ecbdf14573a4b3 | [
"Apache-2.0"
] | permissive | csullivan/ngraph | 6e73442e78652718ec58c71e9bdf9eab3aa35dc2 | e7e2eabe5fbaa86306268f8f204a0d06b7fdbb81 | refs/heads/master | 2020-03-27T10:08:35.551604 | 2018-09-21T16:13:59 | 2018-09-21T16:13:59 | 146,398,005 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,596 | cpp | node_wrapper.cpp | //*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// 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://w... |
5d1603e69a12438c13364aab7a7043b5b7d9bf6e | 601419245db8d94230a439610632014e710f4229 | /LengendOfFightDemons/Classes/LengendOfFightingDemons/scene/LOFDScene.cpp | cbc7695e59a4b1816f7c138a27a8e5a57defc185 | [] | no_license | spzktshow/MasterOfMonster | ba33e6793e64eea7122db0e4ec8d399b490c1b5b | a79cce5f143ff500b3a87f1353cb60f8c5d6f428 | refs/heads/master | 2016-09-06T00:12:39.990811 | 2014-07-16T06:36:55 | 2014-07-16T06:36:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,483 | cpp | LOFDScene.cpp | //
// LOFDScene.cpp
// LengendOfFightDemons
//
// Created by RockLee on 14-4-8.
//
//
#include "LOFDScene.h"
#include <math.h>
#include "LOFDConfigManager.h"
#include "LOFDSkillData.h"
#include "SkillEvent.h"
#include "LOFDActorAi.h"
#include "LOFDActorState.h"
#include "ActorEvent.h"
#include "TypeConver.h"
#inclu... |
eda6a81e63c3f47a37f7ad007f038c8c6331cd09 | 314a1470ca6d6853169aba1dfb8641ef65c106f8 | /src/Material.cpp | 4cd342d511da6ef9b3a06120769375faac0564ae | [] | no_license | yukatan1701/RayTracing | 6ecb7765699e8e2aa2f06a52045177879265630d | 92da183e14140b6c4c9a8f20f4526e4a1df609eb | refs/heads/master | 2023-08-29T09:22:43.513971 | 2021-10-05T13:36:33 | 2021-10-05T13:36:33 | 244,148,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,340 | cpp | Material.cpp |
#include "Material.h"
#include <iostream>
using namespace glm;
Materials::Materials() {
materials.push_back(Material());
materials.push_back(Material(1.5, vec4(0.0, 0.5, 0.1, 0.8), vec3(0.6, 0.7, 0.8), 125., "glass"));
materials.push_back(Material(1.0, vec4(0.0, 10.0, 0.8, 0.0), vec3(1.0, 1.0, 1.0), 14... |
12ecf15350822b0b809fc3448238bb9c82eb8ee8 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/rtorrent/gumtree/rtorrent_repos_function_498.cpp | 08ded74f3ba2fc3fba11a610e291420d862a1ca0 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 105 | cpp | rtorrent_repos_function_498.cpp | slot_map& slot_map_erase() { return m_slotMaps[SLOTS_ERASE]; } |
1953509b72120dbbd559fa08d8b63cdacf3c78fe | b2dd85d677f068197786c0c2d31a783537637811 | /temper/test.cpp | 6d2807c9b5b1c7199b4e328f8083752d59e39590 | [] | no_license | Tsarpf/RaspberryPi-and-Arduino-Stuff | 299455af3045b9b1b6b19242c2316e7c2f26e125 | e9c17d717f69de8e251ed1b97125f24adbd012a0 | refs/heads/master | 2016-09-05T18:24:44.119326 | 2013-07-05T18:28:24 | 2013-07-05T18:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,155 | cpp | test.cpp | #include <string>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
string executeAndRead(const char *);
int characterIdxFromString(string, char);
const char * cmd("./temper");
int main()
{
string result = executeAndRead(cmd);
int idx = characterIdxFromString(result, ',');
... |
1c0facccf673a0569a1174123535ed44f038f3d2 | 85e4cda6b18162fb69e86c030b4d11eda9a8e0d4 | /BIT Manipulation/BIT Manipulation.cpp | a65cac3607e0e40c26cddf46570ae22ccc401764 | [] | no_license | JatinSharma2821/C-plus-plus | 4e8e244a6e756ca038cff78358185e2e86a5d1dd | a73febc0302382321bc448b599a569cf88681b7d | refs/heads/main | 2023-06-04T20:53:25.732693 | 2021-06-19T07:56:46 | 2021-06-19T07:56:46 | 376,462,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,507 | cpp | BIT Manipulation.cpp | /*
Checkbit - How to find whether at given position of number in binary form , it is 0 or 1;
Setbit/UNsetbit
Clearbit
Updatebit = Clearbit + setbit
*/
#include<iostream>
using namespace std;
int getbit(int num, int pos) // checbit
{
if (num & (1<<pos) != 0)// & is a logical operator that compares using ... |
264ddac166a89fa734ec4b125689d03a6b36629c | 7ce9aabed89076cc78a5a25298c9da599bde4f81 | /cds/bit_vector_rank.h | 310376415cf8895e2e6afe22d5da4e34fadbcd11 | [
"Apache-2.0"
] | permissive | pombredanne/CompactDataStructures | 6bc9d16ef64c9795a60e57175b43bbead3403020 | f7a7ab95f7353440dc4b66caeb07448b35b743fe | refs/heads/master | 2021-12-14T16:47:31.429916 | 2017-05-13T12:56:53 | 2017-05-13T12:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 708 | h | bit_vector_rank.h | #pragma once
#include <vector>
#include "bit_vector.h"
namespace cds {
uint64_t popcount(uint64_t bits);
class bit_vector_rank : public bit_vector {
std::vector<uint64_t> sample_ranks;
std::vector<uint16_t> cell_ranks;
void bit_write(uint64_t index, bool is_set);
public:
... |
4dd1914cda60d7a1e2998338ba420dab5ab41b40 | 98fa0f486153e95d6a39024c7dd8f8387669da13 | /FSM_framework_example/StateManager.cpp | 5eefd0325691c1056831a09a5f6a47df297cbddd | [] | no_license | Babdodook/FSM_framework_example | 89fa21e5cb95794c51684908434af0e89215c6ec | 11ac2ec9be46fdfc6ceacbbedcf8eba495f6b97d | refs/heads/master | 2021-06-03T00:34:18.782755 | 2020-04-09T09:28:34 | 2020-04-09T09:28:34 | 254,325,239 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,801 | cpp | StateManager.cpp | #include"StateManager.h"
StateManager* StateManager::mPthis = nullptr;
StateManager* StateManager::Create()
{
if (!mPthis)
{
mPthis = new StateManager();
}
return mPthis;
}
StateManager* StateManager::GetInstance()
{
return mPthis;
}
void StateManager::Destroy()
{
if (mPthis)
{
delete mPthis;
mPthis =... |
7501c4b67e788e74830c5abbfd628ca39047288e | d79c643be0ee59693c2bde11fb990fe0314148b3 | /src/scramblestr_unittests.cc | c165db644a3741989d9483114559d442bc73e7ca | [] | no_license | hch-im/leetcode | ad1f50f28a48e20cd5d3c8d57c94cdadb7545455 | d6a2327bc6fc971d2ed44c4b648c8b48805bdbb1 | refs/heads/master | 2016-09-06T18:16:16.906852 | 2014-08-31T04:15:24 | 2014-08-31T04:15:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255 | cc | scramblestr_unittests.cc | #include <gtest/gtest.h>
#include "scramblestr.h"
TEST(ScrambleString, isScramble)
{
ScrambleString ss;
EXPECT_TRUE(ss.isScramble("eat", "ate"));
EXPECT_TRUE(ss.isScramble("great", "tareg"));
EXPECT_FALSE(ss.isScramble("g", "t"));
} |
246d6df6b42f780386fa4a1e64095fca00f4a17f | 78e0a01db4afa3fdd428aedcab96c86b0e79aed6 | /Algorithms/Breadth-First Search/main.cpp | f71cf4945c76128868910af5a5793a49b0bb3706 | [] | no_license | VladGeana/Vlad-s-Projects | edea9c2387bc8174b032293beb0df2d00ce356c0 | 1cbc05bfbee93487e08635c7c04c26a9a8040be1 | refs/heads/master | 2020-07-20T00:29:21.608271 | 2020-05-23T13:55:39 | 2020-05-23T13:55:39 | 206,539,819 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | main.cpp | #include <iostream>
#include<fstream>
#include<vector>
#define Nmax 100001
#define mx 1000000000
typedef int coada[Nmax];
using namespace std;
ifstream f("bfs.in");
ofstream g("bfs.out");
coada c;
int cst[Nmax],n,m,x,y,s,i;
vector<int>v[Nmax];
void BFS(int nod)
{
int siz=1,start=1;
c[start]=nod;
... |
f306ca12f77755da0c9375dc682be19368671674 | 85687165c3144a21dc084c75989bd9864aee6340 | /GeometryLib/Plane.cpp | 61c968168c671255c0b5622f3184de747f78a040 | [] | no_license | toi333/GeometryLib | c8c432670b2688704cf8e2a92308cf294fcfd20a | cf4060b30220b8666211258380d10e95cc2c3c98 | refs/heads/master | 2021-07-21T02:28:33.277240 | 2020-07-04T12:40:03 | 2020-07-04T12:40:03 | 6,493,005 | 0 | 0 | null | 2013-02-11T12:01:51 | 2012-11-01T16:40:37 | C++ | UTF-8 | C++ | false | false | 916 | cpp | Plane.cpp | #include "Plane.h"
Plane::Plane(void)
{
}
Plane::Plane(const Vector &_p, const Vector &_n)
{
p = _p;
n = _n.normalized();
}
Plane::Plane(const Vector &a, const Vector &b, const Vector &c)
{
p = a;
n = crossProduct(b - a, c - a).normalize();
}
Plane::Plane(const Surface &sf)
{
p = sf.getPos(... |
ec54cded5213f404a35c7cb83fd3f65988a3b5a0 | 5cee7b879a377d58d5c2eeb4e30c57070c08f317 | /test6/main.cpp | 759a5d8cba40ca80dadf50fde3b06ca3c5b5fefe | [] | no_license | zy-cuhk/cplus_learning | 13182a4fcd9af138265961debb7315fd47a99acf | 2a3f235e8fe5107e2295c2a74e93802b75c9d66f | refs/heads/master | 2022-11-17T08:58:19.797499 | 2020-07-15T06:43:34 | 2020-07-15T06:43:34 | 278,896,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | main.cpp | #include <iostream>
using namespace std;
#include <iomanip>
using std::setw;
int main ()
{
int n[ 10 ];
for ( int i = 0; i < 10; i++ )
{
n[ i ] = i + 100;
}
cout << "Element" << setw( 13 ) << "Value" << endl;
for ( int j = 0; j < 10; j++ )
{
cout << setw( 7 )<< j << se... |
5b5ed04d88cdfab7b6ce54cdb14313add7348f61 | 87756c0f1f5bf3828dd14fbcd862fc2326aed42e | /text2/text2/text2View.cpp | 33fe010142776708ab68d7a4d80544db9290b2c2 | [] | no_license | Brenda-t/VCtext | 7a3a96395d667259e96e70d7ff8273bd4433a8ff | abe0d89939e6c68ac16863054c96e4edc0174498 | refs/heads/master | 2022-10-25T19:18:29.650099 | 2020-06-09T07:43:13 | 2020-06-09T07:43:13 | 245,200,062 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,916 | cpp | text2View.cpp |
// text2View.cpp : Ctext2View 类的实现
//
#include "stdafx.h"
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的
// ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "text2.h"
#endif
#include "text2Doc.h"
#include "text2View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// Ctext2View
IMPLEMENT_DYNCREATE(Ctext2View, C... |
dfa77646c6072e4da1504ffc83fe376546e60335 | f0dc030b7d67435d3c6c493e50118fb46f680468 | /include/Color.h | b46a712d7a59514c4ac0a0fbbbd2ce687ebc5cbe | [] | no_license | mo7sen/CPU-RayTracer | 0b7d3cc8dee8b3e59ecfb61acc3bba64a554ce2b | e1bfbf9fdf16095daf468780148567bfcb6056ae | refs/heads/master | 2023-08-14T21:47:15.618030 | 2021-10-04T01:50:59 | 2021-10-04T01:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,937 | h | Color.h | #ifndef RT_COLOR_HEADER
#define RT_COLOR_HEADER
#include <common.h>
#include <Vec3.h>
class Color {
public:
static const int32_t COMP_PER_PIXEL = 4;
real data[COMP_PER_PIXEL];
public:
Color() = default;
Color(real rgb) : Color(rgb, rgb, rgb) {}
Color(real r, real g, real b) : Color(r, g, b, 1.0) {}
Color(real ... |
19ea2d62353614fb16c559f1252f9f068252c4b9 | 29f6bec60229802528fbbefaf870a0be9a8f1b84 | /bind/imf_testfile.cpp | 42e36224239b91fc9a0e1fdfa127a504ad9f497d | [
"BSD-3-Clause"
] | permissive | anderslanglands/openexr-bind | a6b632d32efedfd39039a3f9fa6e90673502e15e | 06b3d3a9079ef10a21ec331ebfa8b055a04b3b7d | refs/heads/main | 2023-07-03T04:03:22.615738 | 2021-08-14T01:05:11 | 2021-08-14T01:05:11 | 382,241,781 | 1 | 0 | Apache-2.0 | 2021-07-02T05:38:01 | 2021-07-02T05:38:00 | null | UTF-8 | C++ | false | false | 1,622 | cpp | imf_testfile.cpp | #include <OpenEXR/ImfTestFile.h>
#include <cppmm_bind.hpp>
namespace cppmm_bind {
namespace OPENEXR_IMF_INTERNAL_NAMESPACE {
namespace Imf = ::OPENEXR_IMF_INTERNAL_NAMESPACE;
IMF_EXPORT bool isOpenExrFile(const char fileName[]) CPPMM_IGNORE;
IMF_EXPORT bool isOpenExrFile(const char fileName[],
... |
6f992f2a8175711239d442efd7683f8221531930 | 29fe36fed5702f561932135b21a573e9e63daf70 | /tools/lldb-mi/MICmnLLDBUtilSBValue.cpp | 37495a4e4e8f3fa2838426ab397e4ec6c89f6b29 | [
"NCSA"
] | permissive | chapuni/lldb | 30cc3b14702a06cf8d29f78e078476bcf34b28f4 | 1fe2076d4c88fcf374a1ce8f5486c340cb61a304 | refs/heads/master | 2021-01-22T04:41:24.462411 | 2015-04-04T19:09:18 | 2015-04-04T19:09:18 | 2,956,659 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,413 | cpp | MICmnLLDBUtilSBValue.cpp | //===-- MICmnLLDBUtilSBValue.cpp --------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
6b9f351fafeb6860b013d051a8b3623243f4421a | 0437c72bda3535dc9e4dcb0407126d7fe01f1211 | /TUR/ErusBot/Accelerometer.cpp | 026df2012b1a35e51751d9feb498921fe809a67d | [] | no_license | catabriga/erus | a390a29e475c93619865e7552f4fa957ebdacfb8 | 16f30e85ff1d22fb1cdf627a82ae6f596042ee4d | refs/heads/master | 2020-04-16T06:19:00.664281 | 2014-04-25T19:13:14 | 2014-04-25T19:13:14 | 7,018,438 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | Accelerometer.cpp | /*#include <Arduino.h>
#include <math.h>
#include "Pins.h"
#include "Accelerometer.h"
static double x,y,z;
static int minVal;
static int maxVal;
static int xAng,yAng,zAng;
void setupAccelerometer()
{
x = y = z = 0;
xAng = yAng = zAng = 0;
minVal = 265;
maxVal = 402;
}
double getAccX()
{
int xRead = analogRead... |
3021554badbb495b445e775a37edb504d62c7534 | 4d317369bd7de599e0364e9097e50f381845e22c | /2020/Div 3/634 Div 3/Programs/Two Teams Composing.cpp | 4f104378e300ad920a1f84b91db4e5667b604951 | [] | no_license | MathProgrammer/CodeForces | 4865f0bad799c674ff9e6fde9a008b988af2aed0 | e3483c1ac4a7c81662f6a0bc8af20be69e0c0a98 | refs/heads/master | 2023-04-07T11:27:31.766011 | 2023-04-01T06:29:19 | 2023-04-01T06:29:19 | 84,833,335 | 256 | 114 | null | 2021-10-02T21:14:47 | 2017-03-13T14:02:57 | C++ | UTF-8 | C++ | false | false | 1,084 | cpp | Two Teams Composing.cpp | #include <iostream>
#include <vector>
#include <set>
#include <map>
#define max(a, b) (a > b ? a : b)
#define min(a, b) (a < b ? a : b)
using namespace std;
void solve()
{
int no_of_elements;
cin >> no_of_elements;
vector <int> A(no_of_elements + 1);
for(int i = 1; i <= no_of_elements; i++)
{... |
e4be705d4c92801a66602c8f90f8fa17f3211bbc | 314c2ec0e48ed29c906203d864b218d4c6580ebe | /weights_encryptor.cpp | 29b30c79d2d1c48161d1e5356856c1c3e0ae6f62 | [] | no_license | mi-frutuoso/csc-proj | 70cad0c7682b934d2ee526c7f2ac8ec69ca96b82 | 0695e7c8f4615c91302753a5df26d981347c54a8 | refs/heads/master | 2022-03-26T02:16:54.384689 | 2019-12-13T20:43:15 | 2019-12-13T20:43:15 | 224,681,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | weights_encryptor.cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "/home/tiago/SEAL/native/examples/examples.h"
using namespace std;
using namespace seal;
void weights_encryptor(int value1);
int main(int argc, char const *argv[])
{
int num1 = atoi(argv[1]);
weights_enc... |
6244cce1cb122b68c9dd6487e80445346afe51a7 | 9cfad4a7a6e5e3807999a9c96f28d7e005992e44 | /MCOption5/MCOption5/Random2.hpp | 0214d51a7841fa68518f8683a5958e99be75178a | [] | no_license | yyydky/option_pricing | dc2639fa92aae142a88297d28655ac7443f553e2 | b3cfd69bce06414bdf21574621e429e689a3898c | refs/heads/main | 2023-03-29T10:09:43.797963 | 2021-04-08T14:15:10 | 2021-04-08T14:15:10 | 326,323,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | hpp | Random2.hpp | //
// Random2.hpp
// MCOption5
//
// Created by 一帆朱 on 2021-01-05.
//
#ifndef Random2_hpp
#define Random2_hpp
#include "Arrays.hpp"
#include "Normals.hpp"
#include <cstdlib>
class RandomBase{
public:
RandomBase(unsigned long Dimensionality_);
inline unsigned long GetDimensionality() const;
virtual Rand... |
da2f845d68c3be2b8148dee9f3ef520945775f02 | b0075e2d7115361860b48c11005d59bdabea8a10 | /hmailserver/source/Server/Common/Application/ObjectCache.h | 30e3b7969a9308c1e8f1a72af087a511c1f5af88 | [] | no_license | hmailserver/hmailserver | 73f7d61912db856c3f610e3b829fd7a5135b6bc6 | 12ff3d6ab48b9c6181433f1c0b01ba8c8941abd4 | refs/heads/master | 2023-08-06T11:03:44.558427 | 2023-07-27T13:10:52 | 2023-07-27T13:10:52 | 18,572,902 | 822 | 332 | null | 2023-07-24T14:29:28 | 2014-04-08T19:57:15 | C++ | UTF-8 | C++ | false | false | 1,095 | h | ObjectCache.h | // Copyright (c) 2010 Martin Knafve / hMailServer.com.
// http://www.hmailserver.com
#pragma once
namespace HM
{
class DomainAliases;
class Rules;
class ObjectCache : public Singleton<ObjectCache>
{
public:
ObjectCache(void);
~ObjectCache(void);
void SetDomainAliasesNeedsReload();... |
89b0b9a0a3c8351dacc3f1a7c93125595940f633 | f04b3ad49acf49abcf5cddf0b6cfd98353ef35ec | /src/Gate.h | f03595ef537246e30ee8f131d100d70d3a4560c6 | [] | no_license | TinfoilSubmarine/radec | fe872face65acea38e48f2fb5e5b7a11c5fbb908 | 237e5cd61a771fd8a2acc08631fb99e0714e264f | refs/heads/master | 2021-09-08T08:03:23.462779 | 2017-04-27T00:13:52 | 2017-04-27T00:13:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | Gate.h | #ifndef GATE
#define GATE
#include "Event.h"
class Wire;
// this class provides a base class for all other Gate classes (provided in
// other files)
class Gate {
public:
virtual Event evaluate(int) = 0;
void setOut(int time, int value);
protected:
Wire *in1, *in2, *out;
int delay;
};
#endif // !GATE
|
864e2a9ca2c0522249cd0cd7680d9d3145143015 | f2c3efa6db82fd8e59fa39c43c7768ede38d02f0 | /include/polimidl/layers/internal/batch_norm_relu.hpp | f7c8b83f718d8b094a36541cd9b37bfba3ef1be5 | [
"MIT"
] | permissive | darianfrajberg/polimidl | ce6e260e86149064142cfc87096884f42eb45481 | ab338269c25a0fcccf06bbfccbfe7fe16ee7cf04 | refs/heads/master | 2021-07-05T03:49:41.119174 | 2020-09-20T21:04:22 | 2020-09-20T21:04:22 | 176,907,084 | 3 | 2 | MIT | 2020-09-20T21:04:23 | 2019-03-21T08:58:51 | C++ | UTF-8 | C++ | false | false | 3,860 | hpp | batch_norm_relu.hpp | #ifndef POLIMIDL_LAYERS_INTERNAL_BATCH_NORM_RELU_HPP
#define POLIMIDL_LAYERS_INTERNAL_BATCH_NORM_RELU_HPP
#include <chrono>
#include <limits>
#include <Eigen/Dense>
#include "../alignment.hpp"
#include "../layer.hpp"
namespace polimidl {
namespace layers {
namespace internal {
template <typename type_t, typename co... |
157e132e9623b10c6f9987f70802d611fae2928e | a7c8775a7b813174f651ba72de7124dcfac59418 | /Codigo/monitor_interfaz_estadisticas.h | 693a17cfe15eadcb2c0b94596363d373dd9ecefa | [] | no_license | federicomrossi/7542-tp-final-grupo04 | 4bea0c6186b64c53269cf90fd9a8c2e22ae83cdb | 06b1e358cfc8202747eeda51ded180f4f2207ed6 | refs/heads/master | 2016-09-05T08:55:28.998673 | 2013-06-25T20:02:16 | 2013-06-25T20:02:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | h | monitor_interfaz_estadisticas.h | //
// monitor_interfaz_menuEstadisticas.h
// CLASE MENUESTADISTICAS
//
#ifndef MENUESTADISTICAS_H_
#define MENUESTADISTICAS_H_
#include "gtkmm.h"
#include "monitor_graficador.h"
#include "monitor_monitor.h"
#include "monitor_configuracion.h"
class MenuEstadisticas : public Gtk::Window {
private:
// Atributo... |
ca7e0bb741fc8f9d7217335c141c40f7be6f6e81 | a3fdc844b434e2f7546156d705aa9dd07dc14a41 | /C++ How to program/chapter 5/5.13(Bar_Chart)/5.13(Bar_Chart)/main.cpp | ab55a5d1646abeab94279573fe3557ae9659e0bc | [] | no_license | isabuhi/CPlusPlusForProgrammers | b04a6355758331c133fcd269de52849b9374f2fe | 6e3ccb0d41d620bef900d0396e09e60ffdee9781 | refs/heads/main | 2023-07-13T05:46:11.269210 | 2021-08-16T12:02:57 | 2021-08-16T12:02:57 | 363,443,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | main.cpp | //
// main.cpp
// 5.13(Bar_Chart)
//
// Created by Ibrahimov Sabuhi on 10/19/20.
// Copyright © 2020 Ibrahimov Sabuhi. All rights reserved.
//
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main() {
string a;
for (unsigned x = 1; x <= 5; ++x){
cout << "Enter " <... |
6c151bfa840a5aa42b51c48d3c9529a40e0c144c | 271b861c0ec36ba7b7d5871f6fda666718653a11 | /src/fileSaveAs/dialogs/aboutdialog.h | f91b28358c37b7614357d87596dfa3546313813b | [] | no_license | YuanKunfeng/WprFileTools | 2f48137d1cd88bb5d0174636d721efc8e9426631 | dacf92201175e062c33399c80668f83cba98d0dd | refs/heads/master | 2020-03-13T18:08:45.819712 | 2018-04-27T02:38:47 | 2018-04-27T02:38:47 | 131,230,268 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | aboutdialog.h | #ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H
#include <dialogs/shadowdialog.h>
class QPlainTextEdit;
class AboutDialog: public ShadowDialog
{
public:
AboutDialog();
private:
QPlainTextEdit *texteditor;
};
#endif // ABOUTDIALOG_H
|
f48b05ae94293f233146cc0d9e0430dc7778b494 | 83f1eb75810e96cb7bf95a1d7133071786b6c792 | /Source/TurnBasedRPG/Combat/Actions/CombatAction.cpp | 14a50b0cef0ab99f86ec5f8348c35edd697564d2 | [] | no_license | eamonboyle/unreal-turnbased-rpg | 63856c85a83283a10654455327dc52a8dd386a9a | 30cea9f579b34edaad9ac70c6c299fd17d51e2b6 | refs/heads/master | 2022-11-19T05:44:54.343056 | 2020-07-24T15:57:11 | 2020-07-24T15:57:11 | 281,939,663 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 149 | cpp | CombatAction.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "CombatAction.h"
ICombatAction::~ICombatAction()
{
}
|
b0a88d713ebdfdaf870b3f5f6c6ffee7a45cba99 | 3368a3db29d719cacafc2d444345fba1a7da66e6 | /AMPLIFI/physicalConstants.h | bf46bac58c993afff21b3b3ae991458d0b1e7307 | [] | no_license | ningyuliu/AMPLIFI | 31667bf600b09bee5a8eebcdfbdfd4b9e57c9783 | 346735d290c2771e30facd23b3e398ac338dc895 | refs/heads/master | 2023-08-03T09:49:08.866679 | 2023-07-24T09:43:14 | 2023-07-24T09:43:14 | 486,549,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | h | physicalConstants.h | //
// physicalConstants.h
// AMPLIFI
//
// Created by Ningyu Liu on 4/28/22.
//
#ifndef physicalConstants_h
#define physicalConstants_h
// physical constants
#include <cmath>
namespace constants {
const double avogadro = 6.0221367e23; // [molecules / mole]
const double pi = 3.1415926535897932e0; // [radians... |
0cd637016ce07b2d27c73c0009ee0fcbbba8bf43 | f20e965e19b749e84281cb35baea6787f815f777 | /Online/Online/DailyReport/src/ProblemDB.cpp | 2666384734e354107fae1f3b5ad1555e8ba2fad3 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,748 | cpp | ProblemDB.cpp | // $Id: ProblemDB.cpp,v 1.7 2010-10-18 07:37:58 marcocle Exp $
// Include files
// This file
#include "ProblemDB.h"
// STL
#include <iostream>
// Boost
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/formatters.hpp>
#include <boost/algorithm/string.h... |
6c91669d6507dc9fce75d43cb51d2abd89fc2d47 | 2ced285d3fc55db685d9d6d6bdb73f3098e6e1d7 | /mygames/CrazyTetrisNormal/Classes/RLBlock.h | fd0fedb57f75e2e70c7d1160067e83a413077f79 | [] | no_license | WangXiaoxi/cocos2dx | 57c16a0a5c151a1d97b7b6a057b78c5d8db1ef3c | 1c12095c3d53acac64306bc389d2eb7111708339 | refs/heads/master | 2021-01-22T23:49:03.162750 | 2015-05-13T15:43:53 | 2015-05-13T15:43:53 | 21,501,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | RLBlock.h | //
// RLBlock.h
// CrazyTetris
//
// Created by nyist-mac1 on 15/4/8.
//
//
#ifndef __CrazyTetris__RLBlock__
#define __CrazyTetris__RLBlock__
//反L型方块
#include <stdio.h>
#include "BaseBlock.h"
class RLBlock : public BaseBlock
{
public:
bool init();
CREATE_FUNC(RLBlock);
Point getBornPosition();
};
... |
26b925d452f4affea22952518f567067f088643d | 9b6be8c3f9cdf6a21768f3407ba62e41b6c20b11 | /renderer.h | f25333fde626e3e811a8e6b83479a14707cb7e73 | [] | no_license | noshbar/BridgeBuilder | 69b78ce2c34395c99ab7cd7e68fc021191c330f0 | 63ac4e7e9689239e880dfbfeb09c12613715f104 | refs/heads/master | 2021-01-10T21:16:56.179830 | 2012-08-29T10:57:37 | 2012-08-29T10:57:37 | 5,599,258 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,065 | h | renderer.h | /*
ZLib license:
Copyright (c) 2012 Dirk de la Hunt aka NoshBar @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 software.
Permission is granted to anyone to use this software for any purpose,... |
e22cdc163bca76ff16ca8041fcd92b80d39d2322 | 95efaa256914926ac30acbb1a8c89c320c19bf40 | /HeCommunicate/HUsbPortCy.h | 1b00c9786421e7d2c21923ea133f51921d0e7149 | [] | no_license | mabo0001/QtCode | bc2d80446a160d97b4034fa1c068324ba939cb20 | 9038f05da33c870c1e9808791f03467dcc19a4ab | refs/heads/master | 2022-08-26T13:36:14.021944 | 2019-07-15T01:12:51 | 2019-07-15T01:12:51 | 266,298,758 | 1 | 0 | null | 2020-05-23T08:54:08 | 2020-05-23T08:54:07 | null | UTF-8 | C++ | false | false | 884 | h | HUsbPortCy.h | /***************************************************************************************************
** 2018-06-19 HUsbPortCy USB端口类。
***************************************************************************************************/
#ifndef HUSBPORTCY_H
#define HUSBPORTCY_H
#include "HAbstractPort.h"
HE_COMM... |
dc2c99098427824f8f49179d77dc0971e13d1da1 | 794a33380605dceb39a3e67daf7e9f6c8bdf5466 | /Instance.cpp | be57c205d904fbcb0eaa2c701d97d64b419fadef | [] | no_license | rafael-colares/FlexOptim2 | 70e9782fa5fa1af594aa79c59880f10072f06292 | b13cbd47f41a1e6ef538d781fe3d4f5334ca7141 | refs/heads/master | 2022-05-18T22:18:25.468495 | 2020-04-28T19:34:42 | 2020-04-28T19:34:42 | 259,702,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,143 | cpp | Instance.cpp | #include "Instance.h"
/************************************************/
/* Constructors */
/************************************************/
/* Constructor initializes the object with the information of an Input. */
Instance::Instance(const Input &i) : input(i){
this->setNbNodes(0);
}
/* Copy cons... |
1a5ccb49bdb8900b83dedb4504f208c28bd2c794 | a1ec5bebba85ff986f00d447cee2644b29c5994b | /Laborator6-7Full/Controller.h | 5bb2c29ca8868fec8e789905d87d3a0174044eb7 | [] | no_license | LauraDiosan-CS/lab5-6-template-stl-MarianGSM | 36b6a963c48dc7e1f5cb58938f03024ad95a1056 | 7a3ed147fd8ccbf38de16f78796d9f4734bb5857 | refs/heads/master | 2021-05-25T17:30:23.018501 | 2020-04-07T16:09:49 | 2020-04-07T16:09:49 | 253,845,078 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | h | Controller.h | #pragma once
#include "pch.h"
#include <iostream>
#include "Repo.h"
#include "Dulciuri.h"
#include "Moneda.h"
using namespace std;
class Ctrl {
private:
RepoT<Dulciuri, 10> r1; //repo de dulciuri
RepoT<Moneda, 10> r2; //repo de monezi
public:
Ctrl(); //constructor
Ctrl(RepoT<Dulciuri... |
d7ddee05efe3bf6ab952651eb934ead6b1703263 | bd6156f4844b860d47b6e50e7a4d7021cdc0ce02 | /qt4/prova/tdpalio/TrattaList.h | f204f22b456308846b9148f3b82e6c6dd3f6e3b3 | [] | no_license | matteosan1/workspace | e178c9843e62d78762420c217bc603819dc96b10 | f9a2dedfb821b889d037f7642fa5e2cb581b4779 | refs/heads/master | 2021-07-20T04:26:40.187162 | 2021-06-24T20:13:46 | 2021-06-24T20:13:46 | 149,867,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | h | TrattaList.h | #ifndef TRATTALIST_H
#define TRATTALIST_H
#include "cavallo.h"
#include <QAbstractTableModel>
#include <QVector>
using namespace std;
class TrattaList : public QAbstractTableModel {
Q_OBJECT
public:
TrattaList(QVector<Cavallo>* c, QObject *parent = 0)
: QAbstractTableModel(parent), cavalli(c) {
fo... |
7a9dd9f8ab62e73dbe85d0c02cc5c23c70c3cdc2 | 208650de138a6b05b8b8e7e4ca6df9dc72290402 | /Problems/Practice/C/10.cpp | 64c98c4bb88a42d23d3938d5feb94c05d45946b2 | [] | no_license | cs15b047/CF | 9fcf83c5fd09124b6eaebbd4ecd67d19a1302582 | d220d73a2d8739bbb10f4ed71437c06625870490 | refs/heads/master | 2021-08-20T06:21:24.577260 | 2021-06-09T04:56:47 | 2021-06-09T04:57:29 | 177,541,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | 10.cpp | #include <bits/stdc++.h>
using namespace std ;
typedef long long int ll ;
int main(int argc, char const *argv[])
{
int n,m;cin>>n>>m ;
vector<ll> a(n),inc(n),dec(n);
for(int i=0;i<n;i++)cin>>a[i] ;
int j = 0;
while(j < n){
int strt = j ;
while(j < n-1 && a[j] <= a[j+1])j++;
int tmp = j ;
while(tmp >= st... |
b8335c7844d28a1f714fbf8cf2f7e28ce46ae52b | ec6adf318f4a8c0b66cfb1808cd095d0e62f1b61 | /Pool.h | 1dd104b113001a3628c04803e43dee0e9c6c9cbb | [] | no_license | xaviperez/qss | ea676f192a19456c2890bc3eef5782ffedcad3de | 5b0034fec2d360df96ea9c0e0546f30ed64372cc | refs/heads/master | 2022-12-12T05:04:52.921763 | 2020-09-07T13:57:27 | 2020-09-07T13:57:27 | 287,790,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | h | Pool.h | #pragma once
#include <vector>
#include "GameObject.h"
class Pool {
public:
~Pool();
void Add(GameObject* object);
GameObject* Get();
private:
std::vector<GameObject*> _objects = {};
int _length = 0;
int _current = 0;
}; |
4d73e52de2bef8ca09d9a82c8338610a9cdae26a | 590eb4cc4d0fe83d9740ce478f857ca3a98e7dae | /OGDF/test/include/bandit/skip_policies/skip_policy.h | ca606dfbe9b6d75de009e0cdcb7b20c2f49c8ad2 | [
"MIT",
"LGPL-2.1-or-later",
"GPL-3.0-only",
"GPL-1.0-or-later",
"EPL-1.0",
"GPL-2.0-only",
"LicenseRef-scancode-generic-exception",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cerebis/MetaCarvel | d0ca77645e9a964e349144974a05e17fa48c6e99 | a047290e88769773d43e0a9f877a88c2a8df89d5 | refs/heads/master | 2020-12-05T05:40:19.460644 | 2020-01-06T05:38:34 | 2020-01-06T05:38:34 | 232,023,146 | 0 | 0 | MIT | 2020-01-06T04:22:00 | 2020-01-06T04:21:59 | null | UTF-8 | C++ | false | false | 474 | h | skip_policy.h | #ifndef BANDIT_SKIP_POLICY_H
#define BANDIT_SKIP_POLICY_H
namespace bandit {
struct skip_policy
{
virtual bool should_skip(const char* name) const = 0;
};
typedef std::unique_ptr<skip_policy> skip_policy_ptr;
namespace detail {
inline skip_policy& registered_skip_policy(skip_policy* policy = NULL)... |
832ea4c3d9752024421028a7878953b6ef2320ed | 4dcb4f3a7f54097220049a47ccdb6a5b131faaa5 | /subdivide.cpp | d91df7c2c081d6cfefb7890f3cdfa90b7b4db269 | [] | no_license | kanes115/Subdivision | ba9d4fa8e491e1f038dafb44ff271a0963711791 | e82210e600da2e0f7ea2db64413f9b6f5b037f06 | refs/heads/master | 2020-12-04T02:37:52.268231 | 2020-01-03T12:01:41 | 2020-01-03T12:01:41 | 231,574,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,325 | cpp | subdivide.cpp | #include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/boost/graph/graph_traits_Surface_mesh.h>
#include <CGAL/subdivision_method_3.h>
#include <CGAL/Timer.h>
#include <boost/lexical_cast.hpp>
#include <iostream>
#include <fstream>
typedef CGAL::Simple_cartesian<double> Kernel;
typedef... |
f806746361433017b14d189b960b3f5a64af9179 | 6dacb8f59751c9647685d4b931b2cbef00fcd302 | /PepLectures/Lec02_28-Jan/gcd.cpp | 58bbc6300d50c761f89b907a47a1e4f458778105 | [] | no_license | sudhanshu-t/DSA | 88662429514509c3a063d7610db3d32a6854c5c0 | 042fad26085405f77f159eb08c53555de9fb7732 | refs/heads/master | 2021-07-19T15:26:34.310444 | 2020-07-09T11:59:41 | 2020-07-09T11:59:41 | 278,350,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | gcd.cpp | #include<iostream>
using namespace std;
int main(){
int n1, n2;
cin>>n1>>n2;
int div = n1;
int divi = n2;
int rem = divi % div;
while(rem != 0){
divi = div;
div = rem;
rem = divi % div;
}
cout<<div<<endl;
} |
9533dadf9fcb9d6a16ce9b84e5f187e10f8dd3cc | 5a1a847b1225f94676a319cae8e4b792a7963b28 | /5. ARRAYS/PRACTICE Exam/PRACTICE Exam/Ex3.cpp | ad1c9cf6ff4174c5afb42ea5cabc3becb5fdaa39 | [] | no_license | Gromeu2000/Programming1 | 39c7a24e98e433f4f0d8c6fd939a70dd209f662d | 255ffd3d293e5587ef4306f352f967b271e9f440 | refs/heads/master | 2020-04-07T12:59:37.677153 | 2019-01-09T16:39:02 | 2019-01-09T16:39:02 | 158,388,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | Ex3.cpp | #include <stdio.h>
#include <stdlib.h>
#include "Ex1.h"
#include "Ex2.h"
void sumArray(int array[5], int size) {
printf("Expected Output: ");
int sum = 0;
for (int i = 0; i <= size; i++) {
sum += array[i];
}
printf("%d\n", sum);
}
void exercise3(int array[5]) {
askArray(array, 5);
sumArray(array, 5);
} |
84df3a8804ca2aaf30362b33a25516606b897633 | 41b34b93ece0d67b664db5be7641c99897604b97 | /1/1.cpp | d9de795874c96b2d46484c8d006f64d1324993d9 | [] | no_license | justtima/Modeling | 3753220e0d76fe860960f0768b42ea36707eee12 | 0b2b4c883c18b75a316efce29e1ec95107873a9d | refs/heads/master | 2022-11-29T21:25:24.505318 | 2017-05-01T12:30:58 | 2017-05-01T12:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,430 | cpp | 1.cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <time.h>
#include <cmath>
#include <string>
#include <string.h>
#include <fstream>
#include <vector>
#define pi 3.14
using namespace std;
/* Метод отбраковки */
float methodReject() {
float a = 0, b = pi, c = 1, x1, x2;
do {
x1 = (float) ran... |
141f1cb680a4d615936aed48872f6c7ab4f30650 | 919ebcde163f1715b497e8c2c74d8e0f9c36c7e1 | /47/Project1/Project1/Source.cpp | ae9562236792f0411edf8fd43a12191fe2bd2f61 | [] | no_license | ltoanh/BasicCppExe | 3c35a1b6efe085a934fbfacdc8f9ebaf51c6e2a4 | 5f7d1bb90b58b079501b96239f5296b95048c5ef | refs/heads/master | 2023-01-21T20:33:37.297667 | 2020-02-09T14:08:44 | 2020-02-09T14:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | cpp | Source.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<fstream>
using namespace std;
#define fin cin
#define fout cout
int main() {
int t, n, d;
// ifstream fin("47.txt", ios::in);
// ofstream fout("47.out", ios::out);
fin >> t;
while (t--) {
fin >> n >> d;
vector<int> a;
for (int i = 0; i < n; ++i) ... |
4330bc0c467f0b40ef376536ec80e82b9486c7f0 | d9a60722483d86328a46c0b4353f1c64c272f911 | /src/gui/Button.cpp | cd46a8a5c04fef2127a726220574770bdcb2dc5c | [] | no_license | tectronics/elusion-mysterious-manifestation-of-the-mumbling-moocows | a299cb28b688bb027b493872c35bea825d107c25 | 0c687fef5614c5bf5092fb6d6d4bc5721ea93c9f | refs/heads/master | 2018-01-11T15:15:51.063187 | 2011-05-17T01:45:45 | 2011-05-17T01:45:45 | 46,212,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,366 | cpp | Button.cpp | #include "gui/Button.h"
#include "utilities/Rectangle.h"
namespace gui
{
Button::Button() : imageSet( NULL ), font( NULL )
{
}
Button::Button( const gdn::Vector2f& thePos,
const std::string& theTextIdle, const std::string& theTextHover, const std::string& theTextPress,
const gdn::Color& the... |
13330408c45834f804adf0eba3eca5a0837b145d | 33f1b5f6afa115be45cade93479bb7fbc33e7da0 | /CodeForces/796B/8895588_AC_1996ms_41268kB.cpp | a535f5e6e3291ca2f79c3b23f22b5760e5b0d0e1 | [] | no_license | showmic96/Online-Judge-Solution | 3960c37a646f4885210c09096c21dabd7f2154d2 | 94c34e9db2833fb84d0ac885b637dfebac30a5a2 | refs/heads/master | 2022-11-26T09:56:58.469560 | 2020-08-02T04:42:33 | 2020-08-02T04:42:33 | 230,185,618 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | cpp | 8895588_AC_1996ms_41268kB.cpp | // In the name of Allah the Lord of the Worlds.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void)
{
ll n , m , k , p = 1 , ans = 1;
scanf("%lld %lld %lld",&n , &m ,&k);//cin >> n >> m >> k;
map<ll,ll>mp;
for(int i=0;i<m;i++){
ll in;
scanf("%lld",&in);... |
96f8b9a4869ad9b9841af542cf6acba5edcc6212 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/printscan/faxsrv/src/test/src/bvt/extendedbvt/cfaxeventexptr.cpp | ba44855d78eea4ab145185012a3797a33a1f0776 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,125 | cpp | cfaxeventexptr.cpp | #include "CFaxEventExPtr.h"
#include "Util.h"
#include "FaxConstantsNames.h"
#define FIELD_CAPTION_WIDTH 30
//-----------------------------------------------------------------------------------------------------------------------------------------
const tstring CFaxEventExPtr::m_tstrInvalidEvent = _T("Invalid Even... |
f040b440d6860947cd1a0694c46a5fb0fe5f6777 | 08b89f1aafbcced86a0fb1882bf3fb396f722a77 | /src/rank_teste.cpp | adc7fb96a35891a69f74838fc4c945b467d37814 | [] | no_license | MVCP1/pds2_maquinadebusca | b0a7ffe9f6f042c35c2a6cb2b00d3870eefc67e4 | 3b2ae8f0af3ac50432882152cc6a32cad570d7cc | refs/heads/master | 2020-09-07T16:22:20.410145 | 2020-03-20T19:54:17 | 2020-03-20T19:54:17 | 220,841,840 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,924 | cpp | rank_teste.cpp | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "rank.h"
#include "doctest.h"
using namespace std;
class RankTeste{
public:
vector <pair <string, double> > rank(Rank& r){
return r.rank_;
}
};
TEST_CASE("Rank") {
RankTeste rank_teste;
IndiceInvertido indice;
indice.InserePasta("tes... |
665d7349a6add119374e30a4c22eb013fc02331d | 4a605a3b68c4770aa6fc341bc2776350ba5e0285 | /src/Dump.cpp | eef1f654cfa1d412d9ad9d2ca4041587bfbae330 | [
"WTFPL"
] | permissive | mosra/absencoid | 187e86baf3ece9e5c99f7008e8ed1d3a34b7a0a5 | 1b1437df643b4318cb98c7d71ec174ad89dae882 | refs/heads/master | 2021-01-25T12:13:11.787577 | 2011-09-15T10:30:46 | 2011-09-15T10:30:46 | 2,391,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,286 | cpp | Dump.cpp | #include "Dump.h"
#include <QDomDocument>
#include <QSqlQuery>
#include <QSqlError>
#include <QDate>
#include <QDebug>
#include "configure.h"
#include "ClassesModel.h"
#include "TimetableModel.h"
#include "TeachersModel.h"
namespace Absencoid {
/* Konstruktor */
Dump::Dump(bool indent): flags(indent ? INDENT : 0), ... |
ddc45be1c30cb51e55a3951b1399c59a4a4dcccd | ff3fd14d5c51f7f87a11287a38c6ca82217cb49a | /src/meng/view/GUI/TextField.h | 191b8b6814d461b994bec09e1ef309b9dfeb87ca | [] | no_license | trid/Demos | a99fc5ae31ddfbe50def1381ceb0213f43a1813a | c29662eb1ae2628c604ddae395e42ee5c0a729bb | refs/heads/master | 2020-12-14T06:06:27.138677 | 2017-07-20T19:12:23 | 2017-07-20T19:12:23 | 95,596,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | TextField.h | //
// Created by TriD on 23.08.2016.
//
#ifndef OBAKE_REAL_ESTATE_TEXTFIELD_H
#define OBAKE_REAL_ESTATE_TEXTFIELD_H
#include <TGUI/Widgets/Scrollbar.hpp>
#include <TGUI/Widgets/TextBox.hpp>
#include "Widget.h"
namespace MEng {
namespace View {
namespace GUI {
using TextField = tgui::TextBox;
}
... |
80232242185a16a14341e2837ac21f7b4eb35dbd | be191f4c90c8f86c193a9a02f7f95b8f8b608aae | /Project-04-Sudoku-Solver/Solver.cpp | b42d6b7aea4c5670a9367d14081c78165d7ab668 | [] | no_license | jifishma/Project-04-Sudoku | c2897b07180e5e42d6ca1c63de7fba6ad6d94934 | a03c364d2097914bc848d51ca6a81f35c24a0970 | refs/heads/master | 2020-06-28T18:20:35.457992 | 2019-08-17T00:06:02 | 2019-08-17T00:06:02 | 200,306,783 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,111 | cpp | Solver.cpp | #include "../Project-04-Sudoku/Sudoku.h"
#include "../Project-04-FileOps/FileOps.h"
void CreateCreatorInputFile(Sudoku puzzle, ofstream& outs);
int main(int argc, char** argv)
{
ifstream ins;
ofstream outs;
string inFileName, outFileName, outStatistic;
Sudoku puzzle = Sudoku(outs);
puzzle.state = State::Solving... |
d3b7e68aa3e3c969e9ebf340a95e39899fc5b488 | e37ed845bc74974d6ca7fee4b9228b138c7365bc | /Isetta/IsettaTestbed/Week10MiniGame/W10Player.cpp | db3dbb7575e970db4112d8c6cd767afb7f2f1931 | [
"MIT"
] | permissive | LukeMcCulloch/IsettaGameEngine | 1bc3564b03d269098c04272a511c632cd35f2d7e | 9f112d7d088623607a19175707824c5b65662e03 | refs/heads/master | 2020-07-26T16:06:06.712492 | 2019-09-16T03:09:49 | 2019-09-16T03:09:49 | 208,698,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,311 | cpp | W10Player.cpp | /*
* Copyright (c) 2018 Isetta
*/
#include "Week10MiniGame/W10Player.h"
#include "W10NetworkManager.h"
W10Player::W10Player(const bool isRight, const int swordNetID,
const int clientAuthorityID)
: swordEntity{nullptr},
isOnRight{isRight},
canOperate{true},
horizontalSpeed{1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.