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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08463b22d13e1beafa325fdb0e6ec98c1ea40edb | 21ede326b6cfcf5347ca6772d392d3acca80cfa0 | /chromeos/components/proximity_auth/webui/proximity_auth_ui.cc | 5e26689f4242e3419fed7f6b8ec473984c6fbb88 | [
"BSD-3-Clause"
] | permissive | csagan5/kiwi | 6eaab0ab4db60468358291956506ad6f889401f8 | eb2015c28925be91b4a3130b3c2bee2f5edc91de | refs/heads/master | 2020-04-04T17:06:54.003121 | 2018-10-24T08:20:01 | 2018-10-24T08:20:01 | 156,107,399 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,357 | cc | proximity_auth_ui.cc | // Copyright 2015 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 "chromeos/components/proximity_auth/webui/proximity_auth_ui.h"
#include <memory>
#include "chromeos/components/proximity_auth/webui/proximity_a... |
fe611919c1e253daceb4c3a749171a183d6c2cb4 | ceefe89653cf68a56a02212db07d7e7050a0c68d | /src/game/gameplay/Grid.cpp | b2938469a85972b7767f393271fe45913f3484c2 | [
"MIT"
] | permissive | maunovaha/CppTicTacToe | 9dedac5f2774468df833d3dbd35112df4ea70f7c | 2afd78ddcdd8b4e2a2b796ea294fa6da1e5deb1a | refs/heads/master | 2023-08-09T19:53:02.444433 | 2023-07-07T12:32:22 | 2023-07-07T12:32:22 | 220,467,287 | 2 | 0 | MIT | 2019-12-30T17:33:58 | 2019-11-08T12:58:09 | C++ | UTF-8 | C++ | false | false | 3,257 | cpp | Grid.cpp | #include "Grid.h"
#include "GridSlot.h"
#include "Chip.h"
#include "../../engine/ui/Image.h"
#include <memory>
#include <cassert>
namespace game::gameplay {
using namespace engine;
Grid::Grid(const math::Point& position, const int size) : scene::GameObject{position}
{
static constexpr auto SPRITE_SHEET = "assets... |
285d7449447f4a1c9a3b9e1c34323fc8c81595a9 | ec4f748331b081ee73e6406fa947b5f085d48410 | /f6_arv_operatoroverlasting/operator_overloading_stream2.cpp | 205ce40daec76b80ad88c6e9a9e8b27d734d3023 | [] | no_license | peder82/cpp_v2014 | 6b868cd34d2124b284cc1715dfe10a91301849ed | 2babd30ee153ee93051364922511295063ba385f | refs/heads/master | 2020-12-30T17:32:40.049320 | 2014-06-11T21:03:41 | 2014-06-11T21:03:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | cpp | operator_overloading_stream2.cpp | #include <iostream>
using namespace std;
class int_pair{
int left;
int right;
public:
int_pair(int l,int r):
left(l),right(r){}
int operator[](unsigned int i){
if(i==0)
return left;
return right;
}
string to_string(){
return "("+std::to_string(left)+","+std::to_string(right)+")";
... |
c7af1d99516dfc6a39cffd87ed95b3efdd392c93 | 6f98d9de9b276c8b6fb61c1c548a575a109abbe4 | /fsacount.cpp | 00ac8cbd7a67e5cea80946440550b8797c15bac6 | [] | no_license | PlumpMath/maf | d0c2e293ff8d4c04a82c8e155d996bb03bee3240 | a86f3b07c1b46c37c20b0d048ffba308e9f0fcf9 | refs/heads/master | 2021-01-23T12:33:36.962333 | 2016-08-23T15:34:18 | 2016-08-23T15:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,789 | cpp | fsacount.cpp | /*
Copyright 2008,2009,2010 Alun Williams
This file is part of MAF.
MAF 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 of the License, or
(at your option) any later version.
MAF is... |
afb52f553acbf0eeb8170ae2d0b1dfac3c993151 | 8f4538a52c4837825a22e072ab7d38e8142a61b1 | /2017_cs01/vj/w1d2e.cpp | df8a4b25506d8e70c75c1cd7240a82f202f84cff | [] | no_license | heymind/practise | 9c3c99ce63e8026c5078c29e163d82e8ce191bbe | 9e9800938fcd111242033940650cb87874fe4070 | refs/heads/master | 2021-04-26T23:04:24.942706 | 2018-03-05T13:59:05 | 2018-03-05T13:59:05 | 123,927,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | w1d2e.cpp | #include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <sstream>
#include <string>
using namespace std;
int main() {
string s;
int n;
map<string, int> m;
do {
cin >> n;
if (n == 0)
return 0;
while (n--) {
cin >> s;
... |
73dd6e74ab93859c3ae25439f91d79e58a78f2b0 | 1c52a71a1d6851842a13ff193771aed24e46318c | /codeforces/658-B/658-B-17024006.cpp | c7f60103a931e5e0b64ac19f9da5dc86dd8d71e7 | [] | no_license | nimxor/competitive_progeamming | d19654b94478aa59ff2103b4433e613f1fdf5ff6 | 7caf1353a2e8fc3d423cc9711228fbb4fd1e9a97 | refs/heads/master | 2021-01-19T03:28:52.056161 | 2017-04-05T14:02:33 | 2017-04-05T14:02:33 | 87,314,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,285 | cpp | 658-B-17024006.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mset(m,v) memset(m,v,sizeof(m))
#define iter(a,it) for(auto it: a)
#define f(it,o) f(aut(it, (o).begin()); it != (o).end(); ++ it)
#define tr(cont, it) for(typeof(cont.begin()) it = cont.begin(); it != cont.end(); it++)
#define ... |
b3407ddb8d29b3985bbb1d9b5834c4b74a3e8236 | 6779af59ff6a886b58efaf38bd417edda613a0f2 | /Spell.h | 0d53b728b2205cac9c0ce15068ee229376e9648a | [] | no_license | AdvaLynn/Sorcery | 6db49e3ae0a7262cd51fba7ad0418a4b1e74cfe1 | 7ed3030fbe831780b29703812414982e9988fa5f | refs/heads/master | 2022-04-09T21:47:06.042050 | 2020-01-16T17:32:03 | 2020-01-16T17:32:03 | 118,697,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | h | Spell.h | #ifndef SPELL_H
#define SPELL_H
#include <string>
#include <memory>
#include "Card.h"
class Spell;
typedef std::shared_ptr<Spell> SpellPtr;
class Spell : public Card {
protected:
Spell(std::string name, std::string descript, bool owner, int origCost);
public:
virtual ~Spell();
};
#endif
|
d948dd9d9dd609355a9aeed4714b42674c21057b | 00aea0af71ea42d3fc98f78da4252aa832a25e51 | /SpaceTalk/SpaceTalk/Planet.h | 9ea0e6165c4209648d655fcc45067a467d18a2c2 | [] | no_license | tectronics/dysnomia | adfe2dcc5162a35c8650e530fa26938b8ae2f8ec | a496d4044e5e2f01c121d608dac088b95b988619 | refs/heads/master | 2018-01-11T15:15:21.764562 | 2012-10-12T00:12:01 | 2012-10-12T00:12:01 | 49,559,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | h | Planet.h | #pragma once
#include "OrbitalElement.h"
#include "ScriptedMesh.h"
class Planet : public OrbitalElement, public ScriptedMesh
{
public:
Planet(const std::string &planetName, OrbitalElement *parent = 0);
Planet(lua_State *L);
~Planet();
int setParent(lua_State *L);
virtual const std::string write(con... |
829f94252db9587538625848d5b8607bb94b7922 | 2019ba40b35efea95e384451913e771451e0e17e | /Hydropiekłowstąpienie/FileReader.cpp | 1c89160bc2d0882a584b9daa5e85f8f4d8dd0a52 | [] | no_license | adam13049582/Hydropieklowstapienie2 | 22d0d724292796394d41bf7a595041820b8b445a | 8536015bafca50b12a8133b405c10869ed65ddb7 | refs/heads/master | 2022-12-12T07:53:33.718842 | 2020-09-07T18:25:24 | 2020-09-07T18:25:24 | 253,272,265 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,370 | cpp | FileReader.cpp | #include <iostream>
#include "FileReader.h"
#include <fstream>
#include <algorithm>
#include "ConfigModel.h"
#include <string>
#include <list>
#include <vector>
/// <summary>
/// Metoda pobierająca dane z konfiguracji
///<returns> lista obiektów wczytanych z konfiguracji</returns>
/// </summary>
list<ConfigModel> File... |
9609bef88117b7469523bacd7f4178165b5af539 | fa8c099b20c480abef033342147570f0a9c76d54 | /Base/Source/ElementalObject.cpp | a15531e461fc4acb8fd9ac6b7fa11aab64047aea | [] | no_license | TemplarDon/SP3 | b312fd1c6c6b926912648b15f196936f2ae8b90a | 155c7f973e58eab42c9243a8a69eeb0cb69655a3 | refs/heads/master | 2020-04-06T06:54:13.984488 | 2016-09-01T10:36:07 | 2016-09-01T10:36:07 | 65,668,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | ElementalObject.cpp | #include "ElementalObject.h"
ElementalObject::ElementalObject()
: m_CurrElement(NO_ELEMENT)
{
}
ElementalObject::~ElementalObject()
{
}
ELEMENT ElementalObject::GetElement()
{
return m_CurrElement;
}
void ElementalObject::SetElement(ELEMENT SetElement)
{
m_CurrElement = SetElement;
}
|
13828dd87e7a9db304a746a26f2f31325be0d55c | bc18d10f510ec9f3d4165172da61afb357626826 | /hw2/Graph_2483.hpp | 8547c8b0b557d984cbe22d86585219aa8dfbb5a9 | [] | no_license | RaphAbb/peercode | 3cb48f73a1c673f714ba8416fc6be43271f89054 | 01c11cfc2247fa900577efee3fbed40d545b518f | refs/heads/master | 2020-04-26T15:59:42.030818 | 2019-02-20T03:56:40 | 2019-02-20T03:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,079 | hpp | Graph_2483.hpp | #ifndef CME212_GRAPH_HPP
#define CME212_GRAPH_HPP
/** @file Graph.hpp
* @brief An undirected graph type
*/
#include <algorithm>
#include <vector>
#include <cassert>
#include <unordered_map>
#include <map>
#include <set>
#include "CME212/Util.hpp"
#include "CME212/Point.hpp"
/** @class Graph
* @brief A template ... |
cb99e3427f8efa750d55b9f0505364bbbc85ae5c | 933af872ebec221981aece11df35082eb5ead78e | /src/utils/bindingchecker.cpp | d3f7b0a77b3b7fe97048218af9a01575bf328565 | [
"MIT"
] | permissive | ContentsViewer/qdoc-example | 5fed49199154fb7f01a87b93212bfbe941a8d237 | 139c331663e935b5ac632d0efcf871b2dec2ebe9 | refs/heads/master | 2023-04-22T01:55:24.521552 | 2021-05-21T15:34:26 | 2021-05-21T15:34:26 | 369,578,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | bindingchecker.cpp | #include "bindingchecker.h"
#include <QDebug>
/*!
\class BindingChecker
*/
/*!
\fn BindingChecker::BindingChecker(QObject *parent)
*/
BindingChecker::BindingChecker(QObject *parent)
: QObject(parent)
, m_someVar("123")
{
qDebug() << "I'm been created!";
}
void BindingChecker::anotherFunction()... |
93e87521395d6d7ecf80cd04f4f7260afc0f2da9 | d30e5ddeb7f51782cdb82bbbfbed7610174e5cd1 | /C++/Algorithms/Dynamic Programming/matrixChainMultiplication.cpp | b4cccf4fd7cac51b3cf413fd5d6acbaa34eaa668 | [
"MIT"
] | permissive | ucverma/hacktoberfest2020-1 | c235a1f259593326b81c470ef37b5f78b9594b92 | c00d871213b6ace1ee46d1e28bed7ced68ae46e5 | refs/heads/main | 2023-01-03T10:36:54.549176 | 2020-10-15T06:20:30 | 2020-10-15T06:20:30 | 304,228,144 | 0 | 0 | MIT | 2020-10-15T06:16:22 | 2020-10-15T06:16:21 | null | UTF-8 | C++ | false | false | 674 | cpp | matrixChainMultiplication.cpp | #include<bits/stdc++.h>
using namespace std;
int t[10001][10001];
int MCM(vector<int> &arr, int i, int j){
if(i + 1 >= j){
return 0;
}
if(t[i][j] != -1)
return t[i][j];
int mn = INT_MAX;
for(int k = i + 1; k <= j - 1; k++){
mn = min(mn, (MCM(arr, i, k) + MCM(arr,... |
4bf2efd00d9f584d1cc45a7e5ffba655b2727d16 | 061ec60f27a52a2a02363b443a2c30fe878bd88b | /include/dawn-gfx/VertexDecl.h | be1ee38c91dd958de831c606736f8ca325ca4f1f | [
"MIT"
] | permissive | dgavedissian/dawn-gfx | 2c6a2bd53932dd753b972817cda313e92f488901 | cdb0b2f6cf9c2df5712ec49195549f40313860ea | refs/heads/develop | 2020-09-28T08:33:36.448580 | 2020-01-27T15:49:19 | 2020-01-27T15:49:19 | 226,734,703 | 5 | 1 | MIT | 2020-01-27T15:49:20 | 2019-12-08T21:30:55 | C++ | UTF-8 | C++ | false | false | 1,928 | h | VertexDecl.h | /*
* Dawn Graphics
* Written by David Avedissian (c) 2017-2020 (git@dga.dev)
*/
#pragma once
#include "Base.h"
#include <vector>
#include <utility>
#include <cstddef>
#include <dga/hash_combine.h>
namespace dw {
namespace gfx {
// Vertex Declaration.
class DW_API VertexDecl {
public:
enum class Attribute { Po... |
0ecaca33d226eb142afcd9854b78194229b016b5 | e741f43e6f28669f1330faa422bbf44c496b63b4 | /hw/01_Complexity/algorithms/fastchoose.cc | bcebec1c7034686ecf9d6d11d94e05c904c6ad06 | [] | no_license | StevensDeptECE/CPE593 | d5ee7816a42d9db112a9618fb95c14922ccd8e75 | 3ca8115e84287a2afd18d27976720c159ab056a2 | refs/heads/master | 2023-04-26T21:07:47.252333 | 2023-04-19T01:25:09 | 2023-04-19T01:25:09 | 102,521,068 | 50 | 51 | null | 2023-03-05T17:45:52 | 2017-09-05T19:22:17 | C++ | UTF-8 | C++ | false | false | 600 | cc | fastchoose.cc | #include <iostream>
constexpr double nan = 0.0/0.0;
double choose(uint32_t n, uint32_t r) {
const uint32_t nmax=500, rmax = nmax/2;
static double memo[nmax][rmax] = {0};
if (n > nmax || r > nmax)
return nan;
if (memo[n][r] != 0)
return memo[n][r];
uint32_t bottom = min(r, n-r);
double num = 1, den = 1;
for ... |
200a6a02ef021cc40525e924ebab64349d2f13df | 125ae0adb562478b184bbb35d40f2c43b335415c | /UI/Widgets/tFeatureFrame.cpp | 9b96adba37edc7f51045c7abce7aaa8df2250381 | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 1,433 | cpp | tFeatureFrame.cpp | /*****************************************************/
// Copyright © 2007-2012 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
/*!
\class tCheckBox
\brief A tCheckBox has a check state toggled by Enter key
\todo
- consider reim... |
86d2060f73c8f3c9a80b8e66784e543ed7c60ddb | 6f669b18324c36833bff97b0398863743dfef12c | /PL0Compiler/SyntaxAnalyzer/syntaxAnalyzer.cpp | 19fef86a172a03caa9ea2c283402f2061e261bbd | [] | no_license | RainbowYou/PL0Compiler | 1276b2317695f9e000fd2972280a2c8e5ef6f371 | bb8606a29bda446e1f0746f669edae09b41e7e17 | refs/heads/master | 2016-09-15T05:59:58.610377 | 2016-01-10T03:09:54 | 2016-01-10T03:09:54 | 47,538,934 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 17,668 | cpp | syntaxAnalyzer.cpp | /****************************************************************************
* U N R E G I S T E R E D C O P Y
*
* You are on day 11 of your 30 day trial period.
*
* This file was produced by an UNREGISTERED COPY of Parser Generator. It is
* for evaluation purposes only. If you continue to use ... |
ca9c629ede75f3ef6ae14541571d00e4c8cffa4a | 265620eb6a8de39b6eaf28c909b34e3bd25117ba | /HeatPreCal.cpp | 0c6bb9686de55dc1c57c22ddb75d5e676484ece6 | [] | no_license | isliulin/uesoft-AutoIPED | 7e6f4d961ddc899b5f3c990f67beaca947ba4ff0 | c11e3ea3a7d08faa462bc731e142844d4d4c3ed9 | refs/heads/master | 2022-01-13T15:32:45.190482 | 2013-09-30T08:33:08 | 2013-09-30T08:33:08 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 119,401 | cpp | HeatPreCal.cpp | // HeatPreCal.cpp: implementation of the CHeatPreCal class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "AutoIPED.h"
#include "HeatPreCal.h"
#include "ParseExpression.h"
#include "vtot.h"
#include <math.h>
#include <stdlib.h>
#include "AutoIPEDView.h"
#includ... |
a4c05dff88476b26f501953e887f73ec03491b59 | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bseg/bvpl/pro/processes/bvpl_convert_direction_to_hue_process.cxx | 13bba8169fff6a5f3ec7a92708abb2c60567ada2 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 3,231 | cxx | bvpl_convert_direction_to_hue_process.cxx | // This is brl/bseg/bvpl/pro/processes/bvpl_convert_direction_to_hue_process.cxx
#include <iostream>
#include <string>
#include <bprb/bprb_func_process.h>
//:
// \file
// \brief A process for converting direction to hue
// \author Vishal Jain
// \date July 7, 2009
//
// \verbatim
// Modifications
// <none yet>
// \en... |
d356e31c2e0cbef11e9d83e2156a3a9f4eb88d2c | b4e836646dc07a07b57746c149dc58d94eae0563 | /GameOverLayer.cpp | 6781ecc2c1abaca1a37f4c93b76b66acd5a26649 | [] | no_license | Lipu-Z/Find_Rabbit | f085abae7137aaa7897c0304c2ecbd8aac73ef0d | 2bbb2ac472d8a44a665064e08f4ef486d7e4cc6f | refs/heads/master | 2020-06-05T03:34:56.638589 | 2015-08-21T09:09:56 | 2015-08-21T09:09:56 | 39,252,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116 | cpp | GameOverLayer.cpp | //
// GameOverLayer.cpp
// findrabbit
//
// Created by Lipu Zhong on 15/7/28.
//
//
#include "GameOverLayer.h"
|
3fbbd075dfdec053eb4fe10875038ee303eddc19 | 4c0aaa21705a9f1726133b5b524d6c3596aa9642 | /DZ31.3/DZ31.3/dz31.3.cpp | 9698104a22a1e12a4cce1d6cc8b4643d3f7350ba | [] | no_license | mrjeck/cpp | 407f3308ccea56e8d8546e331cce13bb60627af5 | 762993646ea3d89e662efe660b313cef6cdf66a8 | refs/heads/master | 2020-12-30T10:12:42.253606 | 2015-09-26T18:02:57 | 2015-09-26T18:02:57 | 34,620,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,676 | cpp | dz31.3.cpp | #include <iostream>
#include <cstdlib>
#include <cstring>
#include <string>
#define PI 3.14
using namespace std;
class Circle
{
protected:
double radius;
public:
Circle(double _radius):radius(_radius)
{}
virtual ~Circle()
{}
virtual double GetRadius()
{
return radius;
}
virtual double GetPer()
{
return ... |
0c7554c6bb52749ff5906569b03ff772dee32aa7 | d7f371477273e2bfab05e443e92db95bd5891f73 | /ClickBall/ranking.h | a3a85c5a92ac56a9840504d9ae79e6dbb8d530bc | [] | no_license | WebsterBolek/ClickBall | e7d51c1dc232064460dcc79023455aa82accd1d7 | 2079d71693276ee0620dba83999533fb18a220fa | refs/heads/master | 2020-04-06T23:53:15.759574 | 2019-01-23T12:39:29 | 2019-01-23T12:39:29 | 157,884,444 | 0 | 0 | null | 2018-12-05T14:15:18 | 2018-11-16T15:16:14 | C++ | UTF-8 | C++ | false | false | 285 | h | ranking.h | #ifndef RANKING_H
#define RANKING_H
#include <QGraphicsTextItem>
#include "dialog.h"
class Ranking: public QGraphicsTextItem{
public:
Ranking(QGraphicsItem * parent=0);
void punkt();
int pokazranking();
private:
int ranking;
};
#endif // RANKING_H
|
bc4bb4d06095fa350ab2976a3ce6aead8878ff46 | 5cc2cc7628b07aa737b0191c7e374eb88455aa98 | /qtdeclarative5-mango-utils-0.0.1/Mango/Utils/window.h | 3a4b60edf67c24f7b00fb6fa5c27422c9f7fc798 | [] | no_license | JosephMillsAtWork/qtpublic | 42454bfebd77e28c9e11b7f6317c947e70c283eb | 430681d2ffc8b91f3abceeca809d6a621e4c3baa | refs/heads/master | 2021-01-10T16:39:13.257950 | 2015-06-02T20:38:58 | 2015-06-02T20:38:58 | 36,760,292 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | h | window.h | #ifndef WINDOW_H
#define WINDOW_H
#include <QtCore/QObject>
#include <QtQuick/QQuickWindow>
class Window : public QObject
{
Q_OBJECT
Q_PROPERTY(int surfaceRole READ surfaceRole WRITE setSurfaceRole NOTIFY surfaceRoleChanged)
public:
explicit Window(QObject *parent = 0);
int surfaceRole() const;
v... |
4be971ad10fe9dea91cec1bd78c3a4846d2bd688 | 6237b142e8009ff93641dbf65f19add2788e6149 | /Render/Render/Game.h | 29880904e3da35fba5a0f84ea8ca5120fc91135b | [] | no_license | adharsh/Render | 190c7e3a08b637c49dd600f719896f1b0c0537df | af33501fcd0057763628bc068d3b46da13abfa47 | refs/heads/master | 2021-09-15T02:06:24.931920 | 2018-05-24T02:35:23 | 2018-05-24T02:35:23 | 80,696,466 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | h | Game.h | #pragma once
namespace ginkgo {
class Window;
class Layer;
class Camera;
class CubeMap;
class PhongShader;
class ReflectionShader;
class Text;
class ScreenBuffer;
class LensLayer;
class LensShader;
class Game
{
private:
bool isGameOver;
private:
Window& window;
Layer* layer;
Camera* camera;
... |
c10838e6a3838f93d94e6a89933aa0aab4a55a94 | c14500adc5ce57e216123138e8ab55c3e9310953 | /contrib/Netgen/libsrc/include/csg.hpp | ffd45ef0bf4fb948a3efd2432eb8e7b6c111900c | [
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"LicenseRef-scancode-generic-exception",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"GPL-2.0-or-later",
"LicenseRef-scancode-other-copyleft",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
... | permissive | ResonanceGroup/GMSH304 | 8c8937ed3839c9c85ab31c7dd2a37568478dc08e | a07a210131ee7db8c0ea5e22386270ceab44a816 | refs/heads/master | 2020-03-14T23:58:48.751856 | 2018-05-02T13:51:09 | 2018-05-02T13:51:09 | 131,857,142 | 0 | 1 | MIT | 2018-05-02T13:51:10 | 2018-05-02T13:47:05 | null | UTF-8 | C++ | false | false | 26 | hpp | csg.hpp | #include "../csg/csg.hpp"
|
2f1ed3c7e9c5bae30aba34f18a2db86a618899b8 | 8c82771633dab5feaa1954378d1862e004be2c99 | /tdproject/newproject.cpp | dbfaa632a82bb84a127b845ed38a99c0ce9c6fbe | [] | no_license | SankaW57/ClientManagementApp | 7effa081192af6a666aa82f24e1fe22f0c568f74 | 4f332f47564c595cd152add3a8623f0b6a80aa4f | refs/heads/master | 2022-06-20T03:53:32.815413 | 2020-05-01T06:44:34 | 2020-05-01T06:44:34 | 260,396,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | newproject.cpp | #include "newproject.h"
#include "ui_newproject.h"
NewProject::NewProject(QWidget *parent) :
QDialog(parent),
ui(new Ui::NewProject)
{
ui->setupUi(this);
}
NewProject::~NewProject()
{
delete ui;
}
|
af293a046ad24498297ea92cfd4592c5fb5ee702 | dc1541e6cd6b090bc936d91a20bb073cea21404e | /uri/uri2552.cpp | 05ae67d632ffa511b5cda515d0f6b5136997ad80 | [] | no_license | lvirgili/programming_challenges | f9a92b5beefd08ccfc34b85d6a0c14cf00c40f0b | 2bed6d73c27b09da9c5e80973c881249ece008a8 | refs/heads/master | 2021-05-16T02:57:04.560437 | 2017-11-05T00:41:51 | 2017-11-05T00:41:51 | 4,745,914 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | uri2552.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
while (cin >> n >> m) {
int b[n + 2][m + 2];
memset(b, 0, sizeof b);
for (int i = 1; i <= n; ++i) {
for (int j = 1; j <= m; ++j) {
cin >> b[i][j];
}
}
... |
2cac4992194c9d90b67b288315eb339685ad3f43 | b0f08154e3eebc7d8465efc57597e52d08d69c18 | /unit_tests/loaddb/test_loaddb.hpp | 13d258a249585dd8540daa08e890a5b336031e10 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CUBRID/cubrid | 8f71a0010243b72e43ba887d229210650f4e901e | 3b952af33230839a1b561a78ecd4b773374b66f8 | refs/heads/develop | 2023-08-18T19:16:30.987583 | 2023-08-18T08:18:05 | 2023-08-18T08:18:05 | 52,080,367 | 287 | 294 | NOASSERTION | 2023-09-14T21:29:09 | 2016-02-19T10:25:32 | C | UTF-8 | C++ | false | false | 960 | hpp | test_loaddb.hpp | /*
* Copyright 2008 Search Solution Corporation
* Copyright 2016 CUBRID 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://www.apache.org/licenses/LICENSE-... |
9ccdee4a2cd5e3429c3d644d2e58fb7344389826 | 5f2c1792902470aac75db8a46e643a93d8a75cd4 | /core/smp.cpp | abe7b84f311c7f1a2c7933c993bb85e962009c0d | [] | no_license | irqlevel/kstor | 055d6a0e3b280e9b812fcccb33d05ac473c4dd30 | 41fdf43f6981e455d3c058947d2a4e879370bbce | refs/heads/master | 2018-03-11T07:05:44.358556 | 2017-03-24T22:02:57 | 2017-03-24T22:02:57 | 60,274,460 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,583 | cpp | smp.cpp | #include "smp.h"
#include "atomic.h"
namespace Core
{
int Smp::GetCpuId()
{
return get_kapi()->smp_processor_id();
}
void Smp::PreemptDisable()
{
get_kapi()->preempt_disable();
}
void Smp::PreemptEnable()
{
get_kapi()->preempt_enable();
}
void Smp::LockOnlineCpus()
{
get_kapi()->get_online_cpus();
... |
3b43fe44f8b2f5cf17b0824ca1fe06f674330e8f | 49022e7430be70ab6880c28b759f9c68e1e2edf8 | /Faceless/Game/Player.h | d45cc9318883c93f3333aadd5688176099cb56d6 | [] | no_license | f3db43f4g443/SimpleSample11 | 61a634afa664676f94bf51f58c38640ee7ee1b64 | e6aa0ceb34843defd0433b09f42f2de036d443d7 | refs/heads/master | 2022-03-10T18:21:42.698566 | 2022-02-18T06:42:18 | 2022-02-18T06:42:18 | 68,726,252 | 0 | 1 | null | 2021-04-15T18:51:36 | 2016-09-20T15:30:41 | C++ | UTF-8 | C++ | false | false | 1,427 | h | Player.h | #pragma once
#include "Attribute.h"
#include "Character.h"
class CPlayer : public CCharacter
{
friend void RegisterGameClasses();
public:
enum
{
ePlayerCommand_EndPhase,
ePlayerCommand_Move,
ePlayerCommand_FaceEdit,
ePlayerCommand_Action,
ePlayerCommand_SelectTargetLevelGrid,
ePlayerCommand_SelectTarge... |
f757436a3f6d62ee1ed9159285a383cff0964fef | 721fbc6aaf88ffdd8066614d07c275b82b52f520 | /src/debug/debug.h | c89360954c31b18b7119798730e885d0d4dde356 | [] | no_license | kaludis/Woogine | bc7b84f4016653eab511f5c53d2619050c6a1369 | 348fea906f9d635e8c872cbc568dbfe9949d0f71 | refs/heads/master | 2021-01-10T09:39:12.896053 | 2016-03-20T10:42:00 | 2016-03-20T10:42:00 | 53,473,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,465 | h | debug.h | #pragma once
#include <cstdio>
namespace utils
{
namespace debug
{
void check_error(const char* file, int line, const char* func);
} /* namespace debug */
} /* namespace utils */
#ifdef DEBUG
#define CHECK_ERR() utils::debug::check_error(__FILE__, __LINE__, __func__)
#else
#define CHECK_ERR()
#endif // ... |
ff4e1c576c6c04d4fc8182b58657248cc459fb92 | 94e8e0d10dd993cb08785d1bab6aafc1055f509d | /Utils/samples/ClassUtls/Thread.h | 464fe05bace1cacf888384f55d4b79750c8d518b | [] | no_license | albertomila/continous-formation | 1d416170d2ad85ad1e2ea5eef0f2436cd299c716 | e3a57f0fc22dc16b1e9cce1ed100795ca664359d | refs/heads/master | 2020-06-14T00:46:23.147271 | 2019-07-08T18:38:54 | 2019-07-08T18:38:54 | 194,838,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | h | Thread.h | #pragma once
#include <windows.h>
class Thread
{
public:
Thread ();
virtual ~Thread ();
bool CreateThread ();
int IsCreated (){ return (this->hThread != NULL); }
DWORD Timeout;
HANDLE GetThreadHandle (){ return this->hThread; }
DWORD GetThreadId (){ return this->hThreadId; }
HANDLE GetMainThreadHandle ... |
f714952b3620e7a89b0a86fa400fccb24aa5c1cf | d897efddba1087bac262d1fdb3131d73b15cb59b | /labs-C00217717/Project 1/Project1/include/Ball.h | a1a119704e2c87d2f437df25bf6e481bd4a7cbe5 | [] | no_license | EoinAM/ProgrammingLabs | 08e25c9856921be4047a4ed1ebe17d4aa75d0cd4 | 292a01103dfdcab7c97066cb2efd359e8b057638 | refs/heads/master | 2020-03-16T11:05:13.756348 | 2018-05-24T22:22:54 | 2018-05-24T22:22:54 | 132,642,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,070 | h | Ball.h | /// <summary>
/// @Author Eoin Abbey-Maher
/// </summary>
#ifndef BALL
#define BALL
#include "Block.h"
#include "ScreenSize.h"
#include "Enemy.h"
#include "Paddle.h"
#include "KeyHandler.h"
#include <iostream>
#include <SFML\Graphics.hpp>
class Ball
{
public:
/// <summary>
/// Default Constructor
/// </summary>
... |
0acc74131306806e24d87470aba048a1a6d89463 | 60619a8daa4603fb65f4f86f383a6ddde841e326 | /2014-03-20/j.cpp | 71e42bb4fdd9476c121a7e01a1fb29a109739296 | [] | no_license | MYREarth/secret-weapon | f4b1d4b995951546b2fb1e40190707a805fb88b5 | 77f3ff1111aafaaae8f56893b78e3be9134437a9 | refs/heads/master | 2020-05-22T02:29:43.024017 | 2015-10-03T08:17:46 | 2015-10-03T08:17:46 | 186,199,326 | 3 | 0 | null | 2019-05-12T01:46:13 | 2019-05-12T01:46:13 | null | UTF-8 | C++ | false | false | 1,572 | cpp | j.cpp | #include <cstdio>
#include <queue>
#include <map>
using namespace std;
struct state
{
int u,v,end;
state(int u,int v,int end):u(u),v(v),end(end){}
};
inline bool operator <(const state &a,const state &b)
{
return(a.u<b.u || a.u==b.u && (a.v<b.v || a.v==b.v && a.end<b.end));
}
int end[110],a[110][10],ans[110... |
4306a054b3099b5f8c0bd587f63014e1600fe715 | 2d1f82fe5c4818ef1da82d911d0ed81a0b41ec85 | /codeforces/R528/CF1086D.cpp | 53770e7a7eea2139091f6392981429471d53a068 | [] | no_license | OrigenesZhang/-1s | d12bad12dee37d4bb168647d7b888e2e198e8e56 | 08a88e4bb84b67a44eead1b034a42f5338aad592 | refs/heads/master | 2020-12-31T00:43:17.972520 | 2020-12-23T14:56:38 | 2020-12-23T14:56:38 | 80,637,191 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,494 | cpp | CF1086D.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define FOR(i, a, b) for (int (i) = (a); (i) <= (b); (i)++)
#define ROF(i, a, b) for (int (i) = (a); (i) >= (b); (i)--)
#define REP(i, n) FOR(i, 0, (n)-1)
#define sqr(x) ((x) * (x))
#define all(x) (x).begin(), (x).end()
#de... |
3a0300671f32e3da85cf42c9491b3a6fdf07a206 | edfe03159a3e622e7407c9b842877fe4c8c1c049 | /include/TSiLiHit.h | b6082800497bd1f4aa6103a3ca3418028ad3d9aa | [] | no_license | jhenderson88/GRSISort | 66c9ad2e28d5c506c4aa884ee41524ed1d528d54 | e8fe2ad82bb54022f2f2ac1f8e68bda73a3f601c | refs/heads/master | 2021-01-17T05:18:36.108816 | 2016-10-20T15:45:23 | 2016-10-20T15:45:23 | 34,932,903 | 0 | 0 | null | 2015-05-02T02:28:13 | 2015-05-02T02:28:12 | null | UTF-8 | C++ | false | false | 1,127 | h | TSiLiHit.h | #ifndef TSILIHIT_H
#define TSILIHIT_H
/** \addtogroup Detectors
* @{
*/
#include <cstdio>
#include <utility>
#include "TFragment.h"
#include "TChannel.h"
#include "TGRSIDetectorHit.h"
#include "TPulseAnalyzer.h"
class TSiLiHit : public TGRSIDetectorHit {
public:
TSiLiHit();
TSiLiHit(TFragment &);
virtual... |
3be754294cd5931b2a40816ce5afb4d9d7a600df | 933f154b469178fb9c3dd648bc985960c19290db | /second/482_LicenseKeyFormat/solution.cpp | 4184da7d5c7bb690bf7e5f892c2d20eda5f12fea | [] | no_license | zywangzy/LeetCode | c5468ea8b108e9c1dec125fb07a5841348693f96 | df2cba28ed47938073ab1ffc984af158e3de7611 | refs/heads/master | 2021-09-29T13:39:58.151078 | 2018-11-24T22:35:04 | 2018-11-24T22:35:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | cpp | solution.cpp | #include "../../IOLib.hpp"
class Solution {
public:
string licenseKeyFormatting(string S, int K) {
vector<char> str;
for(auto c: S){
if(c != '-')
str.push_back(toupper(c));
}
int num = str.size() % K;
string res;
auto it = str.begin();
... |
9fd9c6bb98fe140e9a3f11c5c60a1c07d9364305 | 6bdff07dcdbddb26fdee09f8e9899d45fbdeb77d | /flatlandspacestations.cpp | 039166f281bfc5c6aa25f644b195cfd752ff76f1 | [] | no_license | GauravSingh9356/Hackerrank-Solution | 3de152bba73b5f96eab526bc4f0240fd43e2e1ef | 7ba675e93da4682790830b0a80705433c0321d63 | refs/heads/master | 2022-12-22T01:25:26.336411 | 2020-10-04T07:50:38 | 2020-10-04T07:50:38 | 288,470,380 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | flatlandspacestations.cpp | #include<bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
int n,m,value;
vector<int>ans;
scanf("%d%d",&n,&m);
int arr[m];
for(int i=0;i<m;i++)
scanf("%d",&arr[i]);
sort(arr, arr+m);
for(int i=0;i<n;i++){
value=INT_MAX;
for(int j=0;j<m;j++){
value = min(value,abs(i-arr[j]));
... |
17ac5c288f2ccba378c3e63bd11b8d0f32b5a9fb | e842372699fbba5e42708fc18de4cc775377e5d0 | /fs_mgr/liblp/partition_opener.cpp | 4696ff173b0ad0b3d8950931494878316c67b8d4 | [
"MIT"
] | permissive | aosp-mirror/platform_system_core | cd1921c7e87396ef99ff46332aa34512977c58a4 | 18560efc308f9c345915dd4d5fa1a2939fcf5ebc | refs/heads/master | 2023-08-28T05:09:18.711274 | 2023-08-25T17:07:42 | 2023-08-25T17:07:42 | 65,923 | 610 | 877 | NOASSERTION | 2023-05-13T20:56:01 | 2008-10-21T18:21:04 | C++ | UTF-8 | C++ | false | false | 3,966 | cpp | partition_opener.cpp | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... |
ea0834c0dc86325f31816adb6a0324c2db75ed35 | 8ca39fc7c4179449d99b38ccebe00146c22b6925 | /Learning_Cpp/quickCal.cpp | 7c9f3573233f5efe3cfcda3f5bfaa4dd00e4477a | [] | no_license | goluckyryan/programmings | 8cc03ac6c0158560a7149eca2ef923dca4f00e81 | c4e2a5084dd957cfa4dd5f33f5f42a6339a5ff59 | refs/heads/master | 2021-07-17T14:04:13.348287 | 2021-02-18T04:40:58 | 2021-02-18T04:40:58 | 48,151,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | cpp | quickCal.cpp | #include <iostream>
#include <cmath>
#include "../CppLibrary/constant.h"
#include "../CppLibrary/nuclei_mass.h"
using namespace std;
int main(){
int choice;
double Brho, mass, A, Z;
cout << " choose floowing calculation: \n";
cout << "--------------------------------------------------\n";
cout << " 1) KE per... |
0b578e33429bad438c46961406dce377cda52bbb | 165c448a5e9c982b5f8607f79783921aa001f403 | /main.cxx | ab79c0507a74a31e6621cac949489067d8565abd | [] | no_license | xiwang1289/BoostLog | 01effb643a55e88cdd21b1a29e7f7c98277c8059 | 5834d0f316c4c25fa460c614cfc3d2f6a810a088 | refs/heads/master | 2023-03-17T21:05:57.878806 | 2016-02-26T22:20:12 | 2016-02-26T22:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cxx | main.cxx | #include "logger.hxx"
#include <iostream>
#include <exception>
int main(int argc, char* argv[]) {
try {
if (argc > 1) {
Logger::initFromConfig(argv[1]);
Logger::addDataFileLog("test.log");
} else {
Logger::init();
}
LOG_DEBUG("Start of loop");
LOG_TRACE("before for loop");
... |
74ea4dbeae356cd301d4b35ce2209a685df96632 | 76957b84c5c97ac08dd2baea6cd3d5db96d26012 | /common_project/tool_kits/qcef_view/src/handler/QCefViewBrowserAppHelper.cpp | 872eceadcf209247e62a7316b7549461fa253562 | [] | no_license | luchengbiao/base | 4e14e71b9c17ff4d2f2c064ec4f5eb7e9ce09ac8 | f8af675e01b0fee31a2b648eb0b95d0c115d68ff | refs/heads/master | 2021-06-27T12:04:29.620264 | 2019-04-29T02:39:32 | 2019-04-29T02:39:32 | 136,405,188 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 864 | cpp | QCefViewBrowserAppHelper.cpp | #pragma region stl_headers
#include <string>
#pragma endregion stl_headers
#pragma region cef_headers
#include <include/cef_browser.h>
#include <include/cef_command_line.h>
#pragma endregion cef_headers
#include "QCefViewBrowserApp.h"
#include "QCefViewBrowserHandler.h"
#include "BrowserDelegates/QCefViewDefaultBrows... |
88e5f0495a0f50780f8929ba2baf49620ac61289 | 988bd08eb7c953e44b4603da673ae0e5edfb89c9 | /window_object/widgetobject.h | f0c73a8daf8090e994722caa80f17a3a2e217a6b | [] | no_license | adcpk/MadMan | 8f882c7abb787742d663ff2067c38e4b211cae9f | 44bdb80fc9c92a32b8add371216ae7c6962ea3a6 | refs/heads/master | 2020-05-01T09:14:36.770926 | 2019-03-24T10:36:35 | 2019-03-24T10:36:35 | 177,395,597 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | h | widgetobject.h | #ifndef WIDGETOBJECT_H
#define WIDGETOBJECT_H
#include <QWidget>
#include <QModelIndex>
#include "container/data_object.h"
namespace Ui
{
class WidgetObject;
}
class ModelObject;
class KeyFilterProxyModel;
class Data_Index;
class WidgetObject : public QWidget
{
Q_OBJECT
public:
explicit WidgetObject(QWidget* p... |
95de48ff6583ec7d79388702e9917fe4737319fd | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoBTag/ONNXRuntime/interface/tensor_fillers.h | bb1a25a2d0f0bf335afa48260358906f9e1caf1b | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 910 | h | tensor_fillers.h | #ifndef RecoBTag_ONNXRuntime_tensor_fillers_h
#define RecoBTag_ONNXRuntime_tensor_fillers_h
#include "DataFormats/BTauReco/interface/DeepFlavourTagInfo.h"
namespace btagbtvdeep {
void jet_tensor_filler(float*& ptr, const btagbtvdeep::DeepFlavourFeatures& features);
void cpf_tensor_filler(float*& ptr, const btag... |
49c6cc1a55908cc249f59239a3911ee937357882 | 4724afa8472b0d961d40cc3be71f5abd1373143f | /spoj/hprof.cpp | 94a3694022e2ba97cb7c4f33199cd1197e88de91 | [] | no_license | banarun/my_competitive_codes | 2f88334c563ad050c21c68ae449134a28fb2ba95 | c5a5af3cf74341d02a328974e8e316d300a221b2 | refs/heads/master | 2021-01-18T22:46:47.419449 | 2016-06-25T14:14:15 | 2016-06-25T14:14:15 | 33,266,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,248 | cpp | hprof.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <ctime>
#include <vector>
#include <deque>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <bitset>
#include <string>
#include <algorithm>
#include <complex>
#in... |
d640a8750aa5c284edb948590e74afa452b8369d | 28d25f81c33fe772a6d5f740a1b36b8c8ba854b8 | /FE-CU Training/FU-CU Team Formation Contest/4/A/main.cpp | e937863de99c06995f3d663c23d403f5f1a7d1d8 | [] | no_license | ahmedibrahim404/CompetitiveProgramming | b59dcfef250818fb9f34797e432a75ef1507578e | 7473064433f92ac8cf821b3b1d5cd2810f81c4ad | refs/heads/master | 2021-12-26T01:18:35.882467 | 2021-11-11T20:43:08 | 2021-11-11T20:43:08 | 148,578,163 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
int n, m;
string str;
int main(){
ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL);
cin >> n >> m;
cin >> str;
vector<int> odds(n);
int mxodd=1, mxeven=0;
for (int i = 0, l = 0, r = -1; i < n; i++) {
int k = (i > r) ?... |
ee25a5bcf9d88b488796063a1079e75ba2167f9a | 630c173c5ea37f58ea7de8636e449635a6af51fa | /Source/RandomLib/RandomPermutation.cpp | c75554dfb96b55393d4f837714c85241e82cee4b | [] | no_license | smfr/mactierra | 021bf14ae175ff38cad7fb2ed2d39f2a65be6610 | 2c173694315868c3f03a7d7cb1e53e4a79719561 | refs/heads/master | 2021-01-19T15:00:10.961337 | 2014-07-23T06:31:24 | 2014-07-23T06:31:24 | 43,445 | 16 | 2 | null | 2014-07-22T06:14:14 | 2008-08-18T00:30:11 | C++ | UTF-8 | C++ | false | false | 3,459 | cpp | RandomPermutation.cpp | /**
* \file RandomPermutation.cpp
* \brief Prints a random permutation of integers
*
* Usage: RandomPermutation [-o] [-d] [-x] [-s seed] [-v] [-h] [num]
*
* Print a random permutation of numbers from 0 thru num-1 on standard output.
* num is supplied on the command line as a decimal number (default is 100).
*... |
c6a4945c4660ee0d8251f6a2c5893ab2a51eace1 | c6d109a9bf019e29aa07c5cd5159eb5f3b407fe3 | /fiber_bundles/section_spaces/sec_rep_descriptor.h | a427cf513939ff81f4013e8269f93587af1ad9ca | [
"Apache-2.0"
] | permissive | LimitPointSystems/SheafSystem | 883effa60ec9533a085e2d1442c83df721e8d264 | 617faf00175b1422be648b85146e43d2fc54f662 | refs/heads/master | 2020-09-12T20:01:59.763743 | 2017-05-02T20:48:52 | 2017-05-02T20:48:52 | 16,596,740 | 2 | 3 | null | 2017-05-02T20:48:52 | 2014-02-06T22:44:58 | C++ | UTF-8 | C++ | false | false | 12,847 | h | sec_rep_descriptor.h |
//
// Copyright (c) 2014 Limit Point Systems, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
6a4b7e3eb29b6653383c994066f5e671b014cd4b | 8aab06394eb9b1d257df9ef6213a1e51423cdd2b | /common_defs.hpp | 6a1670ee520205b2e8c5997e2c639763a6d17aec | [] | no_license | omer-g/comphw3 | 0117471a901aa4a013d62214b56652438712337a | ca697610821a7a74beab6ba1b19517bf6aea0b0d | refs/heads/master | 2020-05-26T15:37:05.710004 | 2019-05-24T08:31:15 | 2019-05-24T08:31:15 | 188,289,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,594 | hpp | common_defs.hpp | #ifndef _COMMON_DEFS_H
#define _COMMON_DEFS_H
#include <string>
////////////////////////////////////////////////////////////
///////// Expression Types ////////////
////////////////////////////////////////////////////////////
typedef enum
{
EXPRRESSION_TYPE_INT,
EXPRRESSION_TYPE_BYTE,
... |
2ecc59eea9656cfedc7c3d5b227babaf342aac9b | 5da872ee303e48da52fbf485723ac3a807a3a8fc | /milestone9_assembler/include/irtree/blocks/BlockTree.cpp | c72bcdfa8efe5f548fb031f7b862250aec219c04 | [] | no_license | mikhailyumanov/compilers_course_4sem_2020 | 81ee4e5e6dd84bef2de7a124a19bbd7163ae36a9 | 465edad241b41aeb1fd400c915c3e97de78f5cd2 | refs/heads/master | 2023-04-22T11:02:05.148018 | 2021-05-05T20:29:41 | 2021-05-05T20:29:41 | 245,890,536 | 1 | 0 | null | 2021-05-05T20:30:47 | 2020-03-08T21:26:40 | C++ | UTF-8 | C++ | false | false | 6,993 | cpp | BlockTree.cpp | #include "irtree/blocks/BlockTree.hpp"
#include <cassert>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <queue>
namespace IRT {
BlockTree::BlockTree(std::shared_ptr<Statement> pre_root, bool is_main)
: is_main_{is_main} {
assert(pre_root != nullptr);
CanonizeIrtree(pre_root);
... |
3c8b4db180a4ae3edd7c3821ed493e0b605b7487 | 670d387d3e8caff516a92d8749fc58a85b4eaf06 | /nn.cpp | 5ac9fde4840194aeda64ac5d3be1071c50a3676e | [
"CC0-1.0"
] | permissive | ervaibhavkumar/QtFeedForwardNN | 2d398110d10ed21579b04401cb9f7379ca6f93dd | e4062b0023288cfa16208c45103feea160b51c25 | refs/heads/master | 2022-12-04T05:55:55.555878 | 2020-08-08T11:48:48 | 2020-08-08T11:48:48 | 284,751,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | cpp | nn.cpp | #include "nn.h"
#include <math.h>
#include <QDebug>
NN::NN(int units, double lr)
: hiddenUnits(units),
learningRate(lr)
{
weights.reserve(hiddenUnits);
initWeights();
}
void NN::initWeights() {
for (auto i = 0;i < this->hiddenUnits; i++)
weights.push_back(Utilities::getRa... |
033cc4318a4cb30f28b3bbf6164cea01d5c3c667 | a67abbe5a3b887013b92aa55061842020d4b2ebd | /最小的数.cpp | b1af263a0eb999b67455bb92b62350a55ff2301c | [] | no_license | chengyufan2020/chengyufan | 0de54daf2f4f0c98820bb963bbb1230dec684666 | e5a1bb72869d0d8a249e8bee4de98650969fffc1 | refs/heads/main | 2023-02-16T05:58:08.524663 | 2021-01-13T04:07:21 | 2021-01-13T04:07:21 | 307,612,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | 最小的数.cpp | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main(){
int i=0,a[11]={0};
for(i=0;i<10;i++){
scanf("%d",&a[i]);
}
for(i=1;i<10;i++){
if(a[i]!=0){
printf("%d",i);
a[i]--;
break;
}
}
for(i=0;i<10;i++){
while(a[i]!=0){
printf("%d",i);
a[i]--;
}
}
printf... |
42f8274e6f8f5ef9f7d066344fc69465eae366a2 | b8e100637666e8beca1fba49d2b0c5f15079b4fa | /C++11 Features/EnhancedFor/EnhancedFor.cpp | f00645cae59eac72a9f557229b3639ec32fafd6e | [] | no_license | tjwhalen16/udemy-cpp-course | c70184a4657fa283bcfb8efe729c10132038e460 | 20d3407ef8b49bcdeaa7dbf318594d7bb9be3e47 | refs/heads/master | 2021-01-12T10:46:42.269451 | 2016-11-19T04:25:56 | 2016-11-19T04:25:56 | 72,692,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | EnhancedFor.cpp | // EnhancedFor.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <iostream>
int main()
{
auto texts = { "one", "two", "three" };
for (auto text : texts) {
std::cout << text << '\n';
}
for (auto c : "Hello") {
std::cout << c << '\n';
}
return 0... |
6811dfbf71f7a28f9d73f6fefa10044bd2d45ca8 | bd0636c61421941ee9d44d3ded8941e94a1a9de8 | /16.Robotarm/robotarm/robotarm.ino | 145e3b4095f3eb379873e6b619efc5bbb0a95a6e | [] | no_license | BluBugTwob/BluBug | 3a0305953747b73140b164996dc850ba92259c4e | 9277fd3fa3087f0f76ea3303d8874285c981dd8c | refs/heads/master | 2021-01-12T12:06:29.714143 | 2016-10-29T18:03:20 | 2016-10-29T18:03:20 | 72,300,848 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,913 | ino | robotarm.ino | /*
Robotarm
Control the robot using smart phone via bluetooth using android app
BluBug have an on-board bluetooth you can control.
check the documentation at http://www.twob.co.in
Control four dc motor with this code.
This example code is in the public domain.
modified 25 August 2016
by Sathish kum... |
3be9918058edb4b9c56a20fe6fe5c89daa223acc | 6e131dda5d27f451f9a00e36c98155102f473725 | /guiapplication.h | b1681ef19e08495512e544963f779834491cc013 | [] | no_license | bobreg/asku-gui | ff200095dd21536aa03b8336974fdcfa632fd11c | 31b68e8098b3f012520199cabbb9c0e15c76a890 | refs/heads/master | 2022-12-14T05:46:01.139220 | 2020-09-15T06:37:04 | 2020-09-15T06:37:04 | 295,638,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | h | guiapplication.h | #ifndef __GUIAPPLICATION_H__
#define __GUIAPPLICATION_H__
#include "../common/application.h"
#include "guimodule.h"
//----------------------------------------------------------------------------------------------------------------
class AskuGuiApplication : public AskuApplication
{
Q_OBJECT
AskuGuiModule *guiModule... |
68820ca4de3fe06cada586be04b7e2787a3bcbed | a200380e9ffb8efa05d3d8bfdc26fd6ad5237396 | /CPP/실습 예제/07. 복사 생성자.cpp | 6b1ff73ac74f8fa220f98ebed57c9563855e7941 | [] | no_license | tyrosine1153/Learn_in_school | acf81b84efc201c720b4b09f308e9b6bc4a940ac | 9b4052b8543dd769c8835fcc7c96959c7f01db79 | refs/heads/master | 2023-08-14T00:11:05.462762 | 2021-09-27T11:48:51 | 2021-09-27T11:48:51 | 298,144,477 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,242 | cpp | 07. 복사 생성자.cpp | #include<iostream>
using namespace std;
/* 객체의 복사본을 생성할때 호출되는 생성자. 클래스 작성 시 복사생성자를 생략하면 디폴트 생성자처럼 컴파일러가 알아서 만듬
클래스 내부에서 메모리를 동적할당 및 해제하고 멤버포인터변수로 관리하는 경우 복사생성자 적용하지 않으면 문제가 발생
복사생성자 형태 : 클래스이름(const 클래스이름 &rhs);
*/
class CMyData {
public:
CMyData() { cout << "CMyData()" << endl; }
CMyData(const CMyData& rhs) ... |
63932fefe4cd4c4ab063f0602d2909d47284b40b | d3f7ddeed6e4c9dde3fe4ccaf84e1adb36bfa40e | /rng2.h | 895279cac8354724560c119af86caf2c979fab07 | [] | no_license | kjgilbert/ExpLoad | 492ea234bd510846282ad34e9d3e21f09f17169b | 242e5954e43fc2b3a3d5800673e05d0c83b5260e | refs/heads/master | 2021-03-16T10:15:09.961166 | 2019-01-10T17:51:49 | 2019-01-10T17:51:49 | 88,489,302 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,258 | h | rng2.h | #ifndef __RNG2__
#define __RNG2__
#include <math.h>
using namespace std;
typedef double my_float;
// A routine for generating good random numbers
extern double ran3(long *idum);
void initializeRan3(const long &lidum);
extern double gammln(double xx);
// A routine to generate poisson deviates with mean xm
extern dou... |
1a0e8d94d7180d23ea241ec9be9e808147410dcc | d83a1756e1a454d76ad4e33587c2727bea8a3a4e | /OpenGLCookBook/SimpleCamera/Camera.cpp | e09a917797ba49fc9da959344b6184ce47289e48 | [] | no_license | ChenZS/Practice | ce6b1f2d4739ee9c30c1913b79ec6770731483d1 | df27273fd496b3b33acd70f3bb8b47d9cbf58762 | refs/heads/master | 2021-04-22T13:40:11.384536 | 2015-05-11T06:52:03 | 2015-05-11T06:52:03 | 33,928,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cpp | Camera.cpp | #include "Camera.h"
#include <glm/gtx/euler_angles.hpp>
glm::vec3 Camera::sUp = glm::vec3(0, 1, 0);
Camera::Camera()
: mLook(glm::vec3(0, 0, -1)),
mUp(glm::vec3(0, 1, 0)),
mRight(glm::vec3(1, 0, 0))
{
}
Camera::~Camera()
{
}
void Camera::setupProjection(const float fovy, const float aspectRatio)... |
14e5791bad4e73840c9dbfd34550572eba9e731e | d905bee59352351774443a8dcf07de42a8765808 | /example/common/op_params.hpp | ad08fc5c0349b4c58f118eadc0f51b6132026611 | [] | no_license | vsrad/libplugintercept | e3a6cc595bbbbf1944b4d2a7a833878d53066d4a | c9b44b38175a33b0d2bde8bdd6224bd72bf21bd0 | refs/heads/master | 2023-06-05T08:00:30.447405 | 2021-06-19T02:53:12 | 2021-06-19T02:53:12 | 226,483,331 | 3 | 0 | null | 2021-06-19T02:38:08 | 2019-12-07T09:02:29 | C++ | UTF-8 | C++ | false | false | 3,060 | hpp | op_params.hpp | #ifndef OP_PARAMS_HPP__
#define OP_PARAMS_HPP__ 1
#include <vector>
#include <cstddef>
#include <iostream>
#include <iomanip>
using std::cout;
using std::istream;
using std::ostream;
using std::setw;
using std::size_t;
using std::string;
using std::vector;
string str2str(const char* s);
float str2f(const char* s);
b... |
184a28e5e502f55fb1d0c6d5f1cdb39f7b92dc67 | f5c60aeb664b14ff0f9d279e123d658ae0678bcd | /src/common/net/NetCommon.h | 7367f32db5af8f4fb7cd40ae4b63f918a5c7d124 | [] | no_license | shen597996478/program | 62037e52139cc8c376c0b55fa1005775dfd46720 | 5a8638e1d631d6889eed4ac81e92a75ca2cee62e | refs/heads/master | 2020-03-28T19:52:01.754968 | 2018-09-19T15:18:44 | 2018-09-19T15:18:44 | 149,016,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | h | NetCommon.h | #ifndef __NetCommon_H__
#define __NetCommon_H__
#include "./base/CCommon.h"
#include "./base/CLog.h"
#include "NetError.h"
#include "NetDefine.h"
class CLog;
#define NET_LOGV(format, args...) CBase::CLog::V("net", format, args)
#define NET_LOGD(format, args...) CBase::CLog::D("net", format, args)
#define NET_LOGI(... |
d64a4d06f1dde72767a7f7320514c4fabeb01c45 | a4a03d391f0c911e5b0aed27fe21e4eb36624609 | /POJ/2778/19345764_WA_0ms_0kB.cpp | 99a3d2f65b1e159bdc20ba05d208f097f8447532 | [] | no_license | jiaaaaaaaqi/ACM_Code | 5e689bed9261ba768cfbfa01b39bd8fb0992e560 | 66b222d15544f6477cd04190c0d7397f232ed15e | refs/heads/master | 2020-05-21T21:38:57.727420 | 2019-12-11T14:30:52 | 2019-12-11T14:30:52 | 186,153,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,883 | cpp | 19345764_WA_0ms_0kB.cpp | #include <map>
#include <set>
#include <list>
#include <ctime>
#include <cmath>
#include <stack>
#include <queue>
#include <cfloat>
#include <string>
#include <vector>
#include <cstdio>
#include <bitset>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#define lowbit(x) x & (-x)
#define ... |
d37f83f5946d06ed91e6e5e8f0fa010f3f2a037a | 9a3f8c3d4afe784a34ada757b8c6cd939cac701d | /leetMyCalendarIII.cpp | 9c34b1216354e84ba25a740ab2d749b97d18a197 | [] | no_license | madhav-bits/Coding_Practice | 62035a6828f47221b14b1d2a906feae35d3d81a8 | f08d6403878ecafa83b3433dd7a917835b4f1e9e | refs/heads/master | 2023-08-17T04:58:05.113256 | 2023-08-17T02:00:53 | 2023-08-17T02:00:53 | 106,217,648 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,439 | cpp | leetMyCalendarIII.cpp | /*
*
//**********************************************************732. My Calendar III.***************************************************
Implement a MyCalendarThree class to store your events. A new event can always be added.
Your class will have one method, book(int start, int end). Formally, this represents a book... |
91c8a03a36aafdb54620f49d35c4aa670d387f64 | 8c205ce137dfe056ae78db81c07271503f57db80 | /IaEnemigoCarlos/JefeFinal.cpp | 62665fce568a8cee8e9ba8ac21c6b081d15e5efd | [] | no_license | ismap1993/BitCrushers | 75bc043e5bd28ba07617a8ac7233a0b050e40ad8 | 4893f1a1fc6b25f529a02b83d93bb69c9ba9905c | refs/heads/master | 2021-01-21T13:57:17.075625 | 2016-05-11T18:27:05 | 2016-05-11T18:27:05 | 51,336,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 411 | cpp | JefeFinal.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: JefeFinal.cpp
* Author: chiri
*
* Created on 20 de abril de 2016, 3:33
*/
#include "JefeFinal.h"
JefeFinal::Jefe... |
945192a1f9a95c0355323d4422885decf2e10e54 | 0da1b49f788f5f3c3b1f75bccd8565360f9154a9 | /uri/matematica/p1240.cpp | 72dba5b5f6ba3e6f0c54278acffdba7f90d966b4 | [
"MIT"
] | permissive | jvrmaia/coding4fun | ea5ff54dbda713dc0deaef158863a55850352882 | 3e4ab5c50e055d7c41436f87ffc8493de8bb2b15 | refs/heads/main | 2023-03-16T05:02:59.509191 | 2021-02-27T19:28:20 | 2021-02-27T19:28:20 | 45,149,618 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 723 | cpp | p1240.cpp | #include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;
int pot10(int x) {
int i = 1, ret = 1;
for (int i = 0; i < x; i++)
ret *= 10;
return ret;
}
int main()
{
int n;
long long int a, b;
scanf ("%d ", &n);
for (int i = 0; i < n; i++) {
scanf ("%lld %l... |
99d980419bb73cb9a1426e85f29e9b6d0d8d4224 | 9c82584f3489d0402a8404765281cabb66834aa2 | /MyFimora/myfimoraprivate.h | 381de88715c416590579108bf2b0301b46761d8d | [] | no_license | LuckyKingSSS/LuckKing | c8ed189d376326fd5d86418d53af7d0621eb77d8 | 19495d50fac1fc44879d34ba5b4df779d47f2a4b | refs/heads/master | 2021-01-25T09:26:56.121973 | 2017-06-08T08:51:15 | 2017-06-08T08:51:30 | 93,839,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | h | myfimoraprivate.h | #ifndef MYFIMORAPRIVATE_H
#define MYFIMORAPRIVATE_H
#include <QWidget>
class ResourceView;
class MeidaPlayerView;
class TimeLineView;
class ToolBarView;
class IMediaPlayerControl;
class MyFimoraPrivate : public QWidget
{
Q_OBJECT
public:
MyFimoraPrivate(QWidget *parent);
~MyFimoraPrivate();
void ini... |
5b3e1015c06b0a032c43261724f66df078caa72b | 9a879c0669bc70facf5dc2fadaca2eff54bb8a53 | /alljoyn/services/controlpanel/cpp/src/BusObjects/NotificationActionBusObject.h | 5c681a375dc72d979e2f3c8a854621123ff45706 | [
"ISC"
] | permissive | octoblu/alljoyn | d86c4d2bb60f989f52f3a3f9a0ce8d11ef5cd3f9 | a74003fa25af1d0790468bf781a4d49347ec05c4 | refs/heads/master | 2021-01-21T12:47:18.034834 | 2016-03-15T16:23:31 | 2016-03-15T16:23:31 | 21,958,119 | 37 | 29 | null | 2016-03-15T16:12:35 | 2014-07-17T21:24:28 | C++ | UTF-8 | C++ | false | false | 4,807 | h | NotificationActionBusObject.h | /******************************************************************************
* Copyright AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and th... |
ba83cc22a8e99d148934c236dfb9557804196e51 | c81e86d864623bb17afa24bad086f8ab91d8b112 | /src/editor/editor_icon.h | ec1f0579ef01cba3bcee655f1464b460991d47e5 | [
"MIT"
] | permissive | galek/LumixEngine | 6e92f67d0f8fefc8c1eba35f26af1c15be7df2c9 | d7d1738f7fc2bc7f6cf08d1217330a591b370ed9 | refs/heads/master | 2020-04-07T08:21:55.985858 | 2015-08-24T19:07:59 | 2015-08-24T19:07:59 | 41,364,902 | 8 | 0 | null | 2015-08-25T13:28:53 | 2015-08-25T13:28:52 | null | UTF-8 | C++ | false | false | 822 | h | editor_icon.h | #pragma once
#include "core/matrix.h"
#include "universe/universe.h"
namespace Lumix
{
class Engine;
class Model;
class PipelineInstance;
class RenderScene;
class WorldEditor;
class EditorIcon
{
public:
enum Type
{
PHYSICAL_CONTROLLER,
PHYSICAL_BOX,
CAMERA,
LIGHT,
TERRAIN,
ENTITY,
COUN... |
38af964cd1320b7e81a3cf780ca659e0190e2ee5 | b55942768e2608516931cb56471fb5434f582941 | /INFO450SaveMore/BankAccount.cpp | 85a3b0889d026c0979fd5a4e4a83ca9ccd3f4d87 | [] | no_license | hicksmk2/INFO450SaveMore | 2bc6aad21542003601fb51bee68950f06c855aa4 | ffcec4fc186784f72e7569e1e2faff47d5c7ed89 | refs/heads/master | 2020-03-15T08:56:43.316943 | 2018-05-07T02:18:18 | 2018-05-07T02:18:18 | 132,063,142 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,160 | cpp | BankAccount.cpp | #include "stdafx.h"
#include "BankAccount.h"
BankAccount::BankAccount(int acctNumber, double acctBalance)
{
//Declare variables
accountNumber = acctNumber;
accountBalance = acctBalance;
}
int BankAccount::withdrawFunds(double withdrawAmount)
{
//Checks for a negative balance, if negative then it returns false
... |
b0eb53fefd6e0a0bcf7f37c9d433600e421c4079 | 1a9bb62b32771102c0b32ffefe305ca702bea268 | /tide/wall/qml/TextureNodeYUV.cpp | bd6b9cbbcff1d60615a935100873ceb3d4bbbe44 | [
"BSD-2-Clause"
] | permissive | BlueBrain/Tide | 9fa3a5b802026f204491eb625653d6e431c2bea8 | e35a8952b3c8ea86db098602f2d95fb4ba542dae | refs/heads/master | 2022-05-07T01:14:44.308665 | 2022-04-27T13:47:18 | 2022-04-27T13:47:18 | 54,562,203 | 52 | 21 | BSD-2-Clause | 2022-04-27T13:47:19 | 2016-03-23T13:33:25 | C++ | UTF-8 | C++ | false | false | 12,152 | cpp | TextureNodeYUV.cpp | /*********************************************************************/
/* Copyright (c) 2017, EPFL/Blue Brain Project */
/* Raphael Dumusc <raphael.dumusc@epfl.ch> */
/* All rights reserved. */
/* ... |
e609946ff59ba9c49c580a701392b2453cd0ab47 | b932134deff2e82f984c267c26b47ce74c521ef5 | /leetcode/1306. Jump Game III.cpp | 214c121061e5dad5adbb524ed39b7ef154f58009 | [
"MIT"
] | permissive | chamow97/Interview-Prep | db234e0df0bfa6b3358d73ac187d6a132fa14595 | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | refs/heads/master | 2022-11-06T07:06:54.705258 | 2020-06-21T07:29:14 | 2020-06-21T07:29:14 | 112,472,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | 1306. Jump Game III.cpp | class Solution {
public:
bool solve(int i, vector<int> &dp, vector<int> &arr, vector<bool> &visited) {
if(i < 0 || i >= arr.size()) {
return false;
}
if(visited[i]) {
return false;
}
if(dp[i] != -1) {
return dp[i];
}
visited... |
6f763ccc1f3a3897b224d4da3a2efb903177e475 | 9b62cb953b73a4488eb6d93dcf7a8296823ce29e | /main.cpp | 2dd95d21381bb49949d30402699affb7a83b374f | [] | no_license | ivan-didyk/cpp-game | 646a6e0e82c41d99a79c4112f216cdb2e589d136 | 457fc6fac5bfa3fc285dae96c5b0da0c9a65df32 | refs/heads/master | 2023-02-28T04:23:12.084213 | 2021-02-04T07:55:49 | 2021-02-04T07:55:49 | 328,356,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | main.cpp | #include "./lib/object.cpp"
#include "scenes.hpp"
#include <unistd.h>
#include <clocale>
#include <ncurses.h>
int main() {
try {
setlocale(LC_ALL, "en_US.UTF-8");
initscr();
use_default_colors();
noecho();
keypad(stdscr, true);
start_color();
init_pair(0, COLOR_BLACK, ... |
90cf0c572ee9114573e5e1492824ade1752879da | 9410768ce24e7b907ca7b537d50d7bbf6ea9d882 | /Regicide/Scenes/IntroScene.cpp | cee79dfaf9049644ea6bee872c6c8aa89c301ab7 | [] | no_license | zbomb/RegicideClient | 659a93ef32800d4ba9e3978e86f95e40948aaaee | 33f5f24b2bea5c704f033d2d727bf1d673f1d1f5 | refs/heads/master | 2021-11-22T21:40:50.766420 | 2018-12-21T17:56:50 | 2018-12-21T17:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,693 | cpp | IntroScene.cpp | //
// IntroScene.cpp
// Regicide Mobile
//
// Created: 10/9/18
// Updated: 11/20/18
//
// © 2018 Zachary Berry, All Rights Reserved
//
#include "IntroScene.hpp"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace cocos2d::ui;
Scene* IntroScene::createScene()
{
auto ret = IntroSc... |
12713698363d913b27b52d695e9d9e5d9adc4c63 | 23148187fbcda3dc6ec4883cc960a1c3d00f5844 | /pre_epi_seizures/Preprocessing/Filtering/UNSW_QRSD/minmaxfilter.cpp | 1844801ce2a535f1c1e4039e91d0a6376dc4b9ea | [
"BSD-3-Clause"
] | permissive | yinxiaojing1/pre_epi_seizures | c1944dbd5bda82c820bccab874b67a0d4efcff31 | e4e83e10256a4ef402061ca8bcbc3331fd8fc431 | refs/heads/master | 2020-03-17T17:31:19.224073 | 2018-05-16T16:47:13 | 2018-05-16T16:47:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,317 | cpp | minmaxfilter.cpp | //
// minmaxfilter.cpp
// Sortfilt
//
// Created by Robert Weiss on 19/06/13.
// Copyright (c) 2013 Robert Weiss. All rights reserved.
//
#include <algorithm>
#include <deque>
#include <float.h>
#include <iostream>
#include <vector>
#include "minmaxfilter.h"
#include "mex.h"
void mexFunction(int nlhs, mxArray *p... |
bc7cc8892355e85a1882349065af8c725f4eb3fa | 6fcf29488b90e7d6887b8fcb115a1a372232ad8a | /Sort/main.cpp | 309630c57e4ddac3ecefeb3085e769081a54d4ea | [] | no_license | renshengqiang/Algorithm | 6a1e4f113db5f3c6a3be2b5be2d81597c13cdcb0 | c6c62b7583aa55205b7e95937cc881657c7e3d2f | refs/heads/master | 2021-01-01T06:26:44.569174 | 2013-08-05T04:41:07 | 2013-08-05T04:41:07 | 8,687,742 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | main.cpp | #include "sort.h"
#include <string>
#include <iostream>
using namespace std;
int main()
{
string strVec[]={"File", "Edit", "View", "Project", "Build", "Debug", "Team", "SQL", "Tool"};
int intVec[]={45, 23, 98, 28, 198, 67, 128,187, 1};
QuickSort<string>(strVec, 0, 8);
// TwoWayMergeSort<int>(intVec, 0, si... |
476c3dba42df33c4fb3416fc338f5f9e8d739809 | 763c48e7a3f5fa2273d6c05104cf8c316fb52284 | /Mapa1.h | 3ff0a644365a909d56805e68ffb347a969feb567 | [] | no_license | ziombelas/jaszczurki | 400bca79ee9653780ee5b3a131fe68e7cce3f395 | c3a4bf12aa6ba6e2eae3cdb2ea5971c29fdccb2a | refs/heads/master | 2021-01-19T04:19:50.277566 | 2017-03-06T17:38:12 | 2017-03-09T10:37:12 | 84,430,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | h | Mapa1.h | /*
* Pierwotna, podstawowa mapka.
*/
#ifndef MAPA1_H_
#define MAPA1_H_
#include "Mapa.h"
class Mapa1: public Mapa {
public:
Mapa1();
~Mapa1();
};
#endif /* MAPA1_H_ */
|
a0095b017674b654c218fdadd3cc7ef884390798 | 3055574eab5cdbb52e5c0ff89c07bf539bf7bef5 | /clam/CLAM/examples/TickExtractor/RD_AutoCorrelationTD.cxx | 705e1429b883ed0e60d2ff281bba11e566c153d8 | [] | no_license | royedwards/3rdPartyAudio | e2c46e97e49561d95dc726b0cb7433fcf7097c51 | e24250bd2b7167b68d51dcc1e0b914217262b998 | refs/heads/master | 2020-03-23T16:56:06.816045 | 2018-08-25T03:11:13 | 2018-08-25T03:11:13 | 141,834,203 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,714 | cxx | RD_AutoCorrelationTD.cxx | /*
* Author: fabien gouyon
* http://www.iua.upf.es/~fgouyon
* Description:
*
* Syntax: C++
*
* Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
* UNIVERSITAT POMPEU FABRA
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... |
6390444f477dcabf5e070255999bceccce1820c5 | 97325828fc083c0cf8bd63b84945d1d1a3000baa | /Bus to Udayland.cpp | aef1cc69a7fe7d1362af063b36683ba7f6ed6962 | [] | no_license | 1804054Miraz/Codeforces-solutions | bca7454602ecaf075e81f48dce9c044af3c2ba07 | 465f6ad205bf24e8e80b2a65f5b26b500591c0c1 | refs/heads/main | 2023-07-16T20:59:58.145519 | 2021-08-20T12:05:29 | 2021-08-20T12:05:29 | 312,970,662 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | Bus to Udayland.cpp | #include<iostream>
#include<cstdio>
#include<vector>
using namespace std;
int main(){
int n;
cin>>n;
getchar();
string st;
int found = 0;
vector<string>vec;
for(int i=0;i<n;i++){
getline(cin,st);
for(int i=0;i<st.size();i++){
if(found == 0 ){
if(st[i]=='O' && st[i+1]=='O' && i<5){
cout<<"YES... |
b17ce4397f34009ecdd133eb417d1c474cd2bda1 | 68bad99f88ce5b5b0733dee1734b64aed0ba3c7b | /Builds/AndroidStudio/app/src/main/jni/JuceModules/juce_core/native/juce_android_SystemStats.cpp | 077fe5418cf372b180a24365b4fde8d41fc515da | [] | no_license | umnum/TestProject5 | f3839322765571ffb53f50de3d6a91720eb1d974 | 84fe90638e1f7f3bcb22bd5c824de02854b1ea52 | refs/heads/master | 2020-12-24T06:33:36.486843 | 2016-06-05T20:55:11 | 2016-06-05T20:55:11 | 60,480,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 79 | cpp | juce_android_SystemStats.cpp | /home/umnum/Programs/juce/modules/juce_core/native/juce_android_SystemStats.cpp |
f4d7526e4160572c24d8f85b9059870e6106e41c | 82d84fd8dabaa4dac70cee100189b2834e7390ee | /面试基础/关于动态规划/添加回文串/test.cpp | 4e119479bbdba69e088f466b5a23bb6403cd673b | [] | no_license | XHXaiXXR/code | da061cd1873ef3371b501b5d55ef02b78b5f7e50 | 37d01b255cd45a731d7ff88eb0fdfc9e8df5d5ee | refs/heads/master | 2020-04-12T03:55:33.634090 | 2017-09-11T06:40:26 | 2017-09-11T06:40:26 | 61,038,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | test.cpp | class Palindrome {
private:
bool _Equal(string str){
string strtmp = str;
reverse(str.begin(), str.end());
if(str == strtmp){
return true;
}
return false;
}
public:
string addToPalindrome(string A, int n) {
// write code here
strin... |
2b3019945a7bd67fe02b85b5d17b708a328e7997 | 166c8ff2490832030936e216b48aa0074b308783 | /zawodnik-terminarz.cpp | e45cb00c872010a764e351c2dfb99f88380f5824 | [] | no_license | MBurzynski/badminton-league | a0042de932c6ef12920bd4eda2e9697086bffe8f | bbe7a9941fe4458d6869b37b65124b72f6df40a8 | refs/heads/master | 2021-01-25T09:04:30.069120 | 2017-06-08T18:23:41 | 2017-06-08T18:23:41 | 93,779,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,848 | cpp | zawodnik-terminarz.cpp | #include "zawodnik-terminarz.h"
#include "ui_zawodnik-terminarz.h"
#include "QtDebug"
ZawodnikTerminarz::ZawodnikTerminarz(QWidget *parent) :
QWidget(parent),
ui(new Ui::ZawodnikTerminarz)
{
ui->setupUi(this);
qmodel=new QSqlQueryModel(this);
ui->tableView->setModel(qmodel);
refreshModel();
}
... |
23389e87f9193c196443bcb92ad2c06a87095967 | 776f5892f1395bb8d30731a60466e4c756a44c8c | /contests/abc294/abc294_a/main.cc | 7f2bc2b6446dd1e4a07ac12ad333c6275819354c | [] | no_license | kkishi/atcoder | fae494af4b47a9f39f05e7536e93d5c4dd21555b | f21d22095699dbf064c0d084a5ce5a09a252dc6b | refs/heads/master | 2023-08-31T18:37:13.293499 | 2023-08-27T21:33:43 | 2023-08-27T21:33:43 | 264,760,383 | 0 | 0 | null | 2023-03-10T05:24:07 | 2020-05-17T21:30:14 | C++ | UTF-8 | C++ | false | false | 156 | cc | main.cc | #include <bits/stdc++.h>
#include "atcoder.h"
void Main() {
ints(n);
V<int> ans;
rep(n) {
ints(a);
if (even(a)) ans.eb(a);
}
wt(ans);
}
|
910932b748acd4db8eba724ff28cafbdda6c3601 | e37f0ef98552770d6d60f82c589911d85dcc19e9 | /Codeforces/290349.C.cpp | 45c4726cc3f3a0adb2b8ae11ee30fb46f44f28a3 | [] | no_license | anand873/CP_Codes | 00c9948810a84d8c9085684f31b75246b1f4ea2c | ec7cd07141512646d96cd247c190924ae9a7e263 | refs/heads/master | 2021-09-09T20:58:51.713079 | 2021-08-30T08:15:13 | 2021-08-30T08:15:13 | 204,478,713 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,205 | cpp | 290349.C.cpp | //Author: AnandRaj doubleux
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<pii> vpii;
typedef pair<ll,ll> pll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vecto... |
6f55cc5e38694cc65b4b9784a00c609c95425e17 | 076885ff2864b4443203f45e40cd58e3acfb0dde | /src/ofApp.cpp | ed643d455755a00ad8dd6e22df4cac39be3c2a80 | [] | no_license | tam-ng0905/CV-OpenFramework | 85657ad43200c90f71ccddd57f80cc0582e7651e | 23800b592227d4dd3b7f9ccbde56d1efff93c442 | refs/heads/master | 2022-12-01T03:25:57.488454 | 2020-02-29T17:29:58 | 2020-02-29T17:29:58 | 288,385,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,463 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetDataPathRoot(ofFile("model/"));
grabber.setup(1280,768);
light.setup();
// Setup tracker
light.setup();
siri.setSpeaker("Samantha");
siri.setSinger("Bad News");
siri.setContent(... |
dbf965fda91919a00626a0eb91317f46ba069b23 | 5b39937c88d98d8bf9aa3d242ade98d3ebdb3bd3 | /Documents Personnels/Iris Hoel/soft pour controle robot/PC/affichage.hpp | 7c450c8c1f3f2a228081963e5e3ccde94fdd3ad1 | [] | no_license | robinmoussu/robotronik | 2c542360ac5819a3cedab3b3786909df021e927f | 5a21218001c79dbfd1c987b2041f9ba2647b0c96 | refs/heads/master | 2021-01-10T21:11:34.944493 | 2015-03-12T17:04:04 | 2015-03-12T17:04:04 | 32,186,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | hpp | affichage.hpp |
#ifndef _AFFICHAGE_
#define _AFFICHAGE_
/*------------------------------- include -----------------------------------*/
#include "main.hpp"
/*------------------------------- declaration fonctions ---------------------*/
Robot * configuration_initiale_robot(Uint32 couleur, Coord position);
floa... |
d334f9975076a482af928e6b166bb8949e29191d | 1a2520b2c9176e7c5416db76ec5ce1209d8f92d5 | /TecProg_DaniLuque/GameEngine.hh | 55e7d52e13c799599e23a586cd3edc093cb304e1 | [] | no_license | lemminghart/TecProg_DaniLuque | 5f788cdd867e1b3bf023c8261d7fc7da4bb01ad2 | 71c4745f89f0e87436b457c7a88a848538c7b8f3 | refs/heads/master | 2021-01-13T15:37:00.028358 | 2017-01-09T18:05:30 | 2017-01-09T18:05:30 | 76,873,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,025 | hh | GameEngine.hh | /******************************************************************
* Copyright (C) 2016 Jordi Serrano Berbel <jsberbel95@gmail.com> *
* This can not be copied, modified and/or distributed without *
* express permission of the copyright owner. *
***************************************************... |
3b0dcbb18b8bbe42a78c9626f227e1a811756dcf | 04a7e0936e2823dfd0976b518ba5379cd5e5a841 | /911/4.cpp | b7e88429a48ad58a520992585fd415675f44536e | [] | no_license | sanket0211/Codeforces-Contests | 152d41a215ed68eb9a05047d2aab328d78d2e1eb | 96d791ec8dd618381e24855e102cf4392c8414ff | refs/heads/master | 2021-09-04T01:42:03.062971 | 2018-01-14T05:00:07 | 2018-01-14T05:00:07 | 114,529,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,848 | cpp | 4.cpp | /*
* USER: Raj Manvar
* LANG: C++
* */
#include <bits/stdc++.h>
#include <unistd.h>
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define DRT() int t; cin>>t; while(t--)
#define TRACE
#ifdef TRACE
#define trace1(x) cerr << #x << ": " << x << endl;
#define trace2(x, y) ... |
a2f3f1bb2ce09fc372258a6e648a533fc4885e4c | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/enduser/speech/src/lexicon/lexapi/clookup.cpp | 8c4e4f53e29472892263b381c8dc7fcc186ecd0f | [] | 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 | 31,805 | cpp | clookup.cpp | /*****************************************************************************
* Clookup.cpp
* Implements the vendor lexicon object for SR and TTS lookup lexicons
*
* Owner: YunusM
*
* Copyright 1999 Microsoft Corporation All Rights Reserved.
**********************************************************************... |
52645a4d79e3a7c70cfe2ef58822017b4b4c9306 | b16d370b74422644e2cc92cb1573f2495bb6c637 | /c/cf/cf1015b.cc | d7fa4dfd0313acc273eef8f8e8b6f26337d91afd | [] | no_license | deniskokarev/practice | 8646a3a29b9e4f9deca554d1a277308bf31be188 | 7e6742b6c24b927f461857a5509c448ab634925c | refs/heads/master | 2023-09-01T03:37:22.286458 | 2023-08-22T13:01:46 | 2023-08-22T13:01:46 | 76,293,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cc | cf1015b.cc | #include <iostream>
#include <vector>
/* CodeForces CF1015B problem */
using namespace std;
int main(int argc, char **argv) {
int n;
string s, t;
cin >> n >> s >> t;
vector<int> ans;
for (int i=0; i<n; i++) {
int j;
for (j=i; j<n; j++) {
if (t[i] == s[j]) {
for (int k=j; k>i; k--) {
ans.push_back(... |
693c5e5560179858738852ddf570ed9af747ab20 | ba2b37e3be216c87877e212b13639f839cc857f5 | /src/disc/stk/Albany_OrdinarySTKFieldContainer_Def.hpp | 9f87e6ffa2730d5a866e068feea4808d5ed8eb97 | [
"BSD-2-Clause"
] | permissive | stvsun/Albany | ac1e8dbb27823f9a5b357aa041a37b1eca494548 | 7971bb6951b868f7029fe11cbb0898d351ae4a1d | refs/heads/master | 2022-04-29T20:51:55.453554 | 2022-03-26T21:22:21 | 2022-03-26T21:22:21 | 19,159,626 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,648 | hpp | Albany_OrdinarySTKFieldContainer_Def.hpp | //*****************************************************************//
// Albany 2.0: Copyright 2012 Sandia Corporation //
// This Software is released under the BSD license detailed //
// in the file "license.txt" in the top-level Albany directory //
//**************************************... |
d45e87046624c6eccf306a0824131352d1d0c8fe | 435633d9a1bd03ad1c3ce537c654494f1820d084 | /core/pmml/BuiltInMath.cpp | 259b41e839fc4b504790448d88e06be11c360570 | [] | no_license | gsm1011/cppweka | 518e6086cf352b24b4b74ec12960b20c5fc2b5a6 | ad26add3ef96ec266e4b0982de1987a15c16f7f2 | refs/heads/master | 2020-05-29T19:05:25.823897 | 2014-06-26T00:42:40 | 2014-06-26T00:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,397 | cpp | BuiltInMath.cpp | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that... |
172ad149bb3b60dd964cee66b5ad7be9e245e329 | 47947503e858244f47c6b90ba365a959fbce0d9e | /C++ all code/simple inheritance.cpp | de478300734ca22feecca990877f8ef3b81af1ab | [] | no_license | AnowarKabir/C-All-Codes | d4fa293347ee8241bf329f8270f44c29a5dd0e33 | 58ebc7d01d5b02f588138fe175bad3df6141f700 | refs/heads/master | 2022-12-24T13:10:14.285725 | 2020-09-20T17:03:18 | 2020-09-20T17:03:18 | 297,123,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | cpp | simple inheritance.cpp | #include<iostream>
using namespace std;
class info{
int id;
public:
void getid(){cout<<"press id:-";//cin>>id;cout<<"ID:-"<<id<<endl;
}
void setid(int a){id=a;}
};
class abc{
public:
void set(){ cin>>id;}
};
class student : public info{
public:
void print(){getid();}... |
238703870e1bf65a61a97140d1b4de793ad85c18 | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/boost/1.78.0/boost/asio/ip/icmp.hpp | d2ea36733166b19642db337107990958f4581c44 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 2,865 | hpp | icmp.hpp | //
// ip/icmp.hpp
// ~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_ASIO_IP_ICMP_HPP
#define BOOST_... |
d51957235983578068ead4f8b94af39f5e5b94d5 | 2669aba67d6e6428eaec0aa7e557e0322d648761 | /Cpp_beginner_tutorial/12_Nested_arrays_forloops.cpp | eb22bcefd9ff98e148ca25b3588e243666c2acf4 | [] | no_license | packetsss/Cpp | e3a17d85f116707a7e3f6836d29e846fb90a05aa | 0e958a4db0049a0aace798e3f5385f62dc33dc19 | refs/heads/main | 2023-04-11T00:15:55.974411 | 2021-04-13T06:02:59 | 2021-04-13T06:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | 12_Nested_arrays_forloops.cpp | # include <iostream>
# include <cmath>
using namespace std;
/*
comment block
lol
lll
*/
int main()
{
int grid[3][2] = {{1, 2}, {3, 4}, {5, 6}};
cout << grid[2][0] << endl;
// access array
for(int i = 0; i < 3; i++)
{
for(int j = 0; j < 2; j++){
cout << grid[i][j];
}
... |
320fe29d8fba7f15e719a3f6847bf228080513e4 | 6b7bbd247b6468129ccd1277bd95ca3e790a8486 | /DotGame/src/applicationModes/applicationmodeintro.cpp | b7f6faecea91512bf613efaf0c3e140c6711ae54 | [] | no_license | carloshd86/DotGame | 01d5d940a9ec5736d9f77198ad0067d89b63927c | 31e9f3228a7d24ac4da52548a0a5c8ff414e455f | refs/heads/master | 2020-04-26T03:54:44.605670 | 2019-04-28T14:46:14 | 2019-04-28T14:46:14 | 173,283,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,742 | cpp | applicationmodeintro.cpp | #include "globals.h"
#include "applicationmodeintro.h"
#include "applicationmanager.h"
#include "core.h"
#include "events.h"
#include "fontmanager.h"
#include "asserts.h"
#include "memorycontrol.h"
const float ApplicationModeIntro::TIME_TO_START_GAME = 5.f;
// *************************************************
Applic... |
e0a21eadd46ee253ff2a77f1a6754a96a69f11ba | 5f42387a94da27090557a73458bd3d1fac20074c | /cpp/study/prototype/ImageType.h | ec10251becb297b3878f34e02bc65bda136be4da | [] | no_license | NicePigg/test_repository_cpp | ad5cf7d94c1c957ece63e0dcc797a140661f2f21 | da3f2fa5e662d99d1673e77f791d3a461ea58079 | refs/heads/main | 2023-07-06T21:49:55.013188 | 2021-08-11T14:06:45 | 2021-08-11T14:06:45 | 328,578,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,970 | h | ImageType.h | /*prototype 原型模式 创建未来的class
1.使用场景:由于需求的变化,对象经常剧烈的变化,但他们拥有比较稳定一致的接口clone
2.理论依据:虚函数
3.定义:使用原型实例指定创建对象的种类,然后通过拷贝这些原型来创建新的对象
4.步骤:如何创建易变类的实体对象,(采用原型克隆的方法来做,它使得我们可以非常灵活的动态创建“拥有某些稳定接口”的新对象)所需工作仅仅是注册一个新类的对象(即原型),然后在任何需要的地方Clone(深拷贝)。
5.技法:早绑定->晚绑定
6.变化:需创建新的对象
不变:接口
静态数据成员:
1.初始化在类体外进行,而前面不加static,以免与一般静态变量或对象相... |
5fed3c72b2a27c1bf3d38ec451c0824cbfdc48cc | 7d3be46a494202ef13ea4736f6f57fd553c512ca | /Board.h | 712d3caa791789529f18369a51d194d428cb6adf | [] | no_license | marykkwon/Kalah-Game | fe319b197b05f49eea749e1f60b1b3f42dfef65f | 0710c7d84fc6caaf26ecd8ff9e6c87bb519227f8 | refs/heads/master | 2023-08-16T06:55:19.358658 | 2021-10-02T04:32:52 | 2021-10-02T04:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,465 | h | Board.h | #ifndef BOARD_H
#define BOARD_H
#include "Side.h"
class Board
{
public:
Board(int nHoles, int nInitialBeansPerHole);
//Construct a Board with the indicated number of holes per side(not counting the pot) and initial number of beans per hole.If nHoles is not positive, act as if it were 1; if nInitialBeansPerHole is n... |
c3ece90e7a6882dc2cd597f5ef5ea86a90ede599 | 3e4fd5153015d03f147e0f105db08e4cf6589d36 | /Cpp/SDK/SkillSlotPicker_functions.cpp | af5847349abecf44f1a1ca1426884b69002d3553 | [] | no_license | zH4x-SDK/zTorchlight3-SDK | a96f50b84e6b59ccc351634c5cea48caa0d74075 | 24135ee60874de5fd3f412e60ddc9018de32a95c | refs/heads/main | 2023-07-20T12:17:14.732705 | 2021-08-27T13:59:21 | 2021-08-27T13:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,859 | cpp | SkillSlotPicker_functions.cpp | // Name: Torchlight3, Version: 4.26.1
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------... |
de766b3cd2b20d78d32d60e7dd6024e458bb9ff6 | 0a6cce6391b2a830aa75f417f8f8d65b240ca4c4 | /veeamQA/Source.cpp | 86d2aec47faf03266e4ab38f1ba92d9e8c6bf389 | [] | no_license | Dies1rae/VeeamQA_1 | 1852402575c160b21f791805f0cb2bb8f950decc | 9a5a032a8d664eb0449aae65bdca8a613bab4535 | refs/heads/master | 2023-07-10T03:09:05.440988 | 2021-08-16T14:43:21 | 2021-08-16T14:43:21 | 395,696,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | cpp | Source.cpp | #include "FileCopier.h"
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char* argv[]) {
if (argc > 1) {
FileCopier main{argv[1]};
try {
main.copierGoBrrrr();
} catch (...) {
cerr << "Something goes wrong" << endl;
}
} else {
cerr << "Write path to xml file" << endl;
... |
ad75c53a106b3e8592e6b8d90b4f279372161e49 | 9fa212528b2427c8a6ad99fb5e8322c2e4995d2c | /tests/ut/tests/base_dictionary_warehouse.cpp | 0b7f3f01db0360589acbb158a246581423ccbc92 | [] | no_license | T4ng10r/phonetic_number_system | d7b61daa302bd485275da8d7bea88225c43880f3 | bea1c0eb501684f28d8b2b4282056f38a2893f6e | refs/heads/master | 2020-04-10T03:11:48.414844 | 2018-02-12T22:05:11 | 2018-02-12T22:05:11 | 10,117,675 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,031 | cpp | base_dictionary_warehouse.cpp | #include <boost/test/unit_test.hpp>
#include <data/dictionaries/base_dictionary_warehouse.cpp>
namespace constants
{
const std::string test_filepath_1("testdir/testfile");
const std::string test_filepath_2("testdir/testfile.aff");
const std::string test_filepath_3("testdir/testfile.dic");
const std::string codepag... |
6bc6e8e02d7831d27ae93adbcbf8b9c3da73b33b | 05892598bd81445db6c290a073fcbade49c517f6 | /new.ino | a8daddbe7a389d26e79759b93c29db5c46dbb553 | [] | no_license | imaicom/AutoFeeder | 8eaec5552c5a5dabe56f103428e2ae11b595c7fd | 73cd1885bea2140dcede7bc576ef3f3be00a1c63 | refs/heads/master | 2020-03-28T21:44:17.863315 | 2018-10-02T07:49:26 | 2018-10-02T07:49:26 | 149,178,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,160 | ino | new.ino | #include <math.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd = LiquidCrystal(12, 11, 10, 5, 4, 3, 1);
int m = 0; // Menu transition
int k = 4; // Item selection( Feed )
int before_k = 2;
int i = 0; // Encoder count
int before_i = 0;
int j = 0; // Acceleration encoder ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.