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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
801908397e9fab537de01c3d19753098c357a613 | 0e84c319dbe32c7fbadb23467098d4c4d611a886 | /hands-on04/main.cpp | bcc93e8a0cd5817dc1a1e73837fae8cda0995e10 | [] | no_license | NoahCardoza/cis22a | dc271c5eb402b0f786bc7b37be07c9eab66c4fb6 | 34be6480586147737ff83f755ef78f7b3065b610 | refs/heads/master | 2020-03-30T08:32:02.808138 | 2018-12-09T06:52:36 | 2018-12-09T06:52:36 | 151,022,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,134 | cpp | main.cpp | //
// main.cpp
//
// Hands On #4 Functions (Tuition)
//
// Created by Noah Cardoza on 10/21/18.
// Copyright © 2018 Noah Cardoza. All rights reserved.
//
#include <iostream>
#include <limits>
#define UNIT_COST 31
using namespace std;
// returns only one integer per line
void getNextDouble(istream &stream, doubl... |
e95cfa74eff9a4faf6bcbb9b1f700411b77adeaa | ac72a8a6f684f036e58d94ca7b00255759049baf | /source/components/player/states/IActionState.h | 85d6dbd98e5d117dce245cc7edcae9d8cf188c91 | [] | no_license | VBelles/MomentumEngine-Real | 27e988f3d46b19837e5f71fafe9a1591b2b85ce3 | a549158a1bbf1e1ca088a0f4bdd039ca17a3228d | refs/heads/master | 2023-08-04T14:11:17.000159 | 2018-11-15T16:48:33 | 2018-11-15T16:48:33 | 120,664,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,998 | h | IActionState.h | #pragma once
#include "components/player/attack_info.h"
#include "components/player/comp_player_model.h"
#include "components/player/states/AttackState.h"
class StateManager;
class TCompPlayerModel;
class CCamera;
class TCompHitboxes;
class TCompRenderBlurRadial;
class TCompPowerGauge;
class TCompCollectableManager;
... |
283c9063fe74d472713d285a6512dd1ed24e7f74 | 83311ce9452141e6cc8d47cdcf2c22b5bfef15f4 | /C-C++/Hayk_Lachikyan_11b/Problem2.cpp | 682d38ab8764c0915c98f89af22a122ef8f65b86 | [] | no_license | NPUA/olympiad | 1ff10a0eaedf62e3bb07d4e7dcec8b86a8290c7d | 9cbbaeeeb54fe186cdea7d61d726e30be21ea42c | refs/heads/master | 2020-04-08T11:59:59.361067 | 2018-12-04T07:40:51 | 2018-12-04T07:40:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cpp | Problem2.cpp | #include <iostream>
using namespace std;
int main(){
int N, P;
cout << "Enter N and P ";
cin >> N ;
cout << N;
system("pause");
return 0;
} |
d35e5018f2f86102b5f7aea69b0259dcb0ac636a | c879aa54fba94bea1d44d27b82f0bdf3e6c7df3e | /src/font.h | 3d89ac02a17a74d7d660b963189d5ec2ca261b2a | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | pkurth/D3D12RendererOld | e211e0bb27a75982b1c79a42868f58a442a5aae5 | a35dca0ebd1b88417e5524aff0adfc96ee9df2a3 | refs/heads/master | 2022-04-18T09:07:13.680347 | 2020-03-14T16:10:30 | 2020-03-14T16:10:30 | 193,479,598 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | h | font.h | #pragma once
#include "texture.h"
#include "command_list.h"
#include <vector>
#define FIRST_CODEPOINT '!'
#define LAST_CODEPOINT '~'
#define NUM_CODEPOINTS (LAST_CODEPOINT - FIRST_CODEPOINT + 1)
struct font_glyph
{
float left;
float top;
float right;
float bottom;
int width;
int height;
int offsetX;
int offs... |
3188e80b674336ec85f1ce8a3fd3fe7305835a1d | 6e65399f71c78ad8ad9545bde77ddc54b1e24454 | /olympic/classwork/02.10.15_dp/ProjectD/ProjectD/ProjectD.cpp | 4b49bde36582605c89f37edc95558afe78a59bba | [] | no_license | shurik111333/spbu | 2d41a949a875f6f6211079087626c2135e736616 | dcb156e5da61fa43d6060f142c38407582c476de | refs/heads/master | 2021-01-21T04:50:15.849699 | 2016-07-17T12:53:47 | 2016-07-17T12:56:37 | 43,520,596 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 707 | cpp | ProjectD.cpp | // ProjectD.cpp: определяет точку входа для консольного приложения.
//
#include <fstream>
using namespace std;
long long max(long long a, long long b)
{
if (a > b)
return a;
else
return b;
}
int main()
{
ifstream fin("knapsack.in");
ofstream fout("knapsack.out");
int n = 0, s = 0;
fin >> s >> n;
int v[50... |
6bbb47f486680194b651d5ac32ab6464ca5c09cc | 085e07bfc48279f0b511dd3221b88fe7ba3a5e3a | /proj/plainInput/plainInputControl.cpp | 7aa93fc448bdaba7aa0a1dae4aa63d0606e9a867 | [] | no_license | isliulin/software_plc_solution | abcaa6d772ae4a030ed0366b8339a20e51c3619d | f3ca6a6f6d89e8cce8920a0b0060f64088a3bc86 | refs/heads/master | 2023-03-25T02:56:06.752043 | 2018-02-10T08:29:17 | 2018-02-10T08:29:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,707 | cpp | plainInputControl.cpp | // plain.cpp : main project file.
#include "stdafx.h"
#include "plainInputControl.h"
using namespace plain;
int plainInputControl::constantPlainEdit(constPlainCodes code)
{
//------------------------------------------------------
// given code , switch type
// preparation for robust-editing mode , of future work... |
065d2f1556f237065479e83c120a145354de913f | 005cc985ed299d08ca5c2d45eebf2cbd853bccb3 | /cs182_introToCSII/SimpleDictionary/test.cpp | 4ba832e68978c08e33102a11bcba3b9744b25426 | [] | no_license | Mmonaco13/assignments | 381adfb13fa774f95224047c113ad2c556a21d1e | 87b130944b28593410c8d0bae613e5c4aee1e039 | refs/heads/master | 2021-09-24T00:48:48.800806 | 2021-09-14T20:07:05 | 2021-09-14T20:07:05 | 195,307,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | cpp | test.cpp | #include "SIdict.h"
#include <iostream>
int main(){
Dict *dictionary = new Dict();
cout << dictionary->Dict::addOrUpdate("Ozil",11) << endl;; //0
cout << dictionary->Dict::addOrUpdate("Cech",33) << endl;; //0
cout << dictionary->Dict::addOrUpdate("Lacazette",9) << endl;; //0
cout << dicti... |
55d23f4ac657ad352837b04edc6e1eb42e3cbf11 | 10f37666b56458caf1ebb65d0b5ab63e22bbf408 | /src/main_td1e.cpp | 6a29fde4fdd4f97fb34b3144a04ec727ecd7a766 | [
"MIT"
] | permissive | gabrielriqu3ti/OSTempsReel | 2ac1e9e20000a5c9d723679d526cd53b8d34e5ea | 4bc35d13e27b512d32f415af191cbaee4ee3c4db | refs/heads/master | 2021-06-24T22:15:26.938876 | 2021-04-25T16:53:42 | 2021-04-25T16:53:42 | 225,055,823 | 0 | 0 | null | 2021-04-25T16:53:43 | 2019-11-30T18:48:01 | C++ | UTF-8 | C++ | false | false | 6,388 | cpp | main_td1e.cpp | /*////////////////////////////////////////////////////////////////////////////////
|
| Fichier : td1e_main.cpp
| Auteur : RIQUETI Gabriel Henrique
| Date : 04/11/2019
| Commentaires : ENSTA ParisTech ROB305 TD-1e
| Commande : g++ main_td1e.cpp Tim... |
73275dcecab4eb59bf27cc6d50159c8831d42299 | cc9e16a6ea151106eec8bc95ded9455ba48d152e | /src/imagefunctions.cxx | 4bc150f5624daa2f86c2a1ec3bfd4dd9a089484c | [] | no_license | pgunnell/BoostedTTbarColourFlow | 098f9f7a4da985c8177c017ae585491e876a7547 | ba0ee10a6bb84e32efae768e20844a6db2114e9d | refs/heads/master | 2022-04-11T01:08:15.702687 | 2020-03-26T14:22:18 | 2020-03-26T14:22:18 | 250,189,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,926 | cxx | imagefunctions.cxx | #include <iostream>
#include <memory>
#include "UHH2/core/include/Event.h"
#include "UHH2/common/include/CommonModules.h"
#include "UHH2/BoostedTTbarColourFlow/include/imagefunctions.h"
#include "UHH2/common/include/JetIds.h"
using namespace std;
using namespace uhh2;
double CalculateRadius(Jet jet1){
double pi = ... |
a430c7e2751d50c87ecbbed91df320bb88b3086a | bc3402c4c6865211d281c5e1091e4bed9715c738 | /Menu.cpp | 9577aa32d251e7cf4366c8b0bac544c7f720dcc4 | [] | no_license | yaniv49/Tetris-CPP-Project | 325bc15c40bc3d23a6ea2c275c37d09d375c1a9a | 32c1889aaa68fe36a445650c5b5fc2058426459a | refs/heads/master | 2020-06-14T00:21:03.348368 | 2019-07-02T09:37:39 | 2019-07-02T09:37:39 | 194,826,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,063 | cpp | Menu.cpp | #include "Menu.h"
Menu::Menu() {
info.setXY(infoXcoord, infoYcoord);
}
bool Menu::checkKey(char& keyPressed, double& level, double& timeEffect, bool& gameOver, bool& exit) const {
if (keyPressed == START) {
if (gameOver) {
return true;
}
info.clear(infoLength);
info.show(" (SPACE) Back (START) New ... |
622e09d4fcf370ae0cf401ebd2c22de820d844a2 | 893ef991db5f1b6ce5ec7445d9bca3db36499988 | /191106Zad04/zad04.cpp | 79fbeeccb72845c0902dd2113814f2cb848e759e | [
"Apache-2.0"
] | permissive | elenazaharieva/fifthgrade | 881f5d2fd4528faf0c82275d03941fa270b9b6dc | 60d1301c118b9f0cb4089d672fdf9e1780aedf80 | refs/heads/master | 2020-08-28T10:31:17.784563 | 2020-01-19T13:24:20 | 2020-01-19T13:24:20 | 217,673,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 520 | cpp | zad04.cpp | /*
* zad04.cpp
*
* Created on: Nov 6, 2019
* Author: eli
*/
#include <iostream>
using namespace std;
int main() {
int h;
cin >> h;
int m;
cin >> m;
int s;
cin >> s;
int ps;
cin >> ps;
int startTimeInSec;
startTimeInSec = h * 3600 + m * 60 + s;
int endTimeInSec = startTimeInSec + ps;
int endH;... |
e428792d7b85ded6cfc361a6fc0c966cd4d71dc9 | 70eb368ea25ad8767e6713ea88936642154f43ae | /workUndone/Suite15/OpenFlight_API/samples/plugins/skyscraper/lightbuilder.h | 6d166f5b039fb8fe47232d53971647483aa9d3ff | [] | no_license | CatalinaPrisacaru/Di-Java | 816cb3428d5026fb63934e14d09c422aa1537b08 | 1c35b28e0b8c8f3c25afbc7b2c0a7fe8cac96c6b | refs/heads/develop | 2021-01-18T02:23:47.759177 | 2016-04-11T19:55:35 | 2016-04-11T19:55:35 | 54,333,823 | 0 | 0 | null | 2016-03-20T18:36:51 | 2016-03-20T18:36:51 | null | UTF-8 | C++ | false | false | 1,044 | h | lightbuilder.h | #ifndef INC_LIGHTBUILDER_H
#define INC_LIGHTBUILDER_H
#include <mgapiall.h>
class LightBuilder
{
public:
LightBuilder(mgrec *io_parent, unsigned int i_color, bool i_strings, int i_noNormalPalette, int i_normalPalette)
: d_parent(io_parent), d_color(i_color), d_strings(i_strings), d_noNormalPalette(i_noNormal... |
0ba570a5e9df6239a1f388240f92c02e076c385a | 0ac456c2e1b4bc73e47800b5e9ee5cdce7623ef3 | /visualisation.h | b0dc20020b6b895162c92ae89c63279e22e77dfb | [
"0BSD"
] | permissive | reupen/columns_ui-sdk | 596c960d37295b08f2378ea0ee706db7d55f4be7 | 57c6c478795a835cf24c898b83b813972d54fd14 | refs/heads/main | 2023-08-23T06:12:35.674880 | 2023-08-15T20:21:18 | 2023-08-15T20:21:18 | 48,622,586 | 8 | 7 | 0BSD | 2023-09-04T19:31:25 | 2015-12-26T20:22:01 | C++ | UTF-8 | C++ | false | false | 2,876 | h | visualisation.h | #ifndef _VIS_EXTENSION_H_
#define _VIS_EXTENSION_H_
/**
* \file visualisation.h
* \brief Visualisation Renderer API
*/
namespace uie {
/**
* \brief Interface for visualisation extension hosts.
*/
class NOVTABLE visualisation_host : public service_base {
public:
/**
* \brief Interface to paint on a visu... |
57eedaa8debb4b250ebac0be64733e56b063380f | cdd484d3d5223e74ed96c7afd36bfd5886877f3a | /Table.cpp | b92843671d0dde818fc2fb1fc76b85326b71779a | [] | no_license | Amitlevizky2/Restaurant | ce5821939541b27f070f900de5e90689343d8fe9 | 9008932a8f8acd8e158f387d2fb8b97cc8b1cbda | refs/heads/master | 2022-04-14T18:37:21.723930 | 2020-04-11T13:32:22 | 2020-04-11T13:32:22 | 157,000,454 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,469 | cpp | Table.cpp | //
// Created by Amit Levizky on 11/3/18.
//
#include "Table.h"
#include <iostream>
Table::Table(int t_capacity) : capacity(t_capacity), open(false), customersList(), orderList() {}
Table::Table(const Table &other) : capacity(other.capacity), open(other.open), customersList(), orderList(other.orderList)
{
for (... |
55cac71d70ae994d7a296240e3f6210133c0dfdd | b0c66358ae5c0386db5887e2609929e753c38d18 | /arch/atcoder/agc028/A.cpp | ffd89d0f3dab25295357fb8ab5f34b984e8fd132 | [] | no_license | michalsvagerka/competitive | e7683133ee5f108429135a3a19b3bbaa6732ea9f | 07f084dff6c1ba6f151c93bf78405574456100e4 | refs/heads/master | 2021-06-07T14:54:35.516490 | 2020-07-07T08:17:56 | 2020-07-07T08:19:09 | 113,440,107 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | A.cpp | #include "../l/lib.h"
// #include "../l/mod.h"
class A {
public:
void solve(istream& cin, ostream& cout) {
ll N, M; string S, T;
cin >> N >> M >> S >> T;
ll G = gcd(N, M);
map<int, char> Z;
for (int i = 0; i < N; ++i) {
Z[i * M / G] = S[i];
}
for (int j = 0; j < M; ++j) {
a... |
0c46fcb7c61f50c5495aefa6225463aa3a315d15 | 3d4c7b9c179322e6bdb3c7a0c137919364806cb3 | /triton/src/onnx_parser.h | d6892f7a07186e61568e9b5b571bdc4b8290b00f | [
"Apache-2.0"
] | permissive | flexflow/FlexFlow | 291282d27009924a427966e899d7c2fda9c20cec | b2ec6cb5d2b898db1ad4df32adf5699bc48aaac7 | refs/heads/inference | 2023-09-04T05:25:02.250225 | 2023-09-03T14:15:07 | 2023-09-03T14:15:07 | 160,988,469 | 1,139 | 186 | Apache-2.0 | 2023-09-14T17:56:24 | 2018-12-08T23:43:13 | C++ | UTF-8 | C++ | false | false | 5,237 | h | onnx_parser.h | /* Copyright 2022 NVIDIA 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-2.0
*
* Unless required by applicable law or agreed... |
7503dbfe2704b851426a974a7473bc41e16fed52 | 2e52c46669127eecdaf33732a06ac79efa5fcdab | /Includes/Material.h | bcf1c402d6bfa631c3e9ff4a74f134a59db552f7 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | kaylangan/Civilizationpp | 5bd63d131b7bb0a31fc3084dffec957450271bf0 | a103088a8f09ffaad18711e557253c20ee7ebb4f | refs/heads/master | 2020-04-01T02:16:58.734951 | 2018-10-12T17:52:10 | 2018-10-12T17:52:10 | 152,772,450 | 0 | 0 | MIT | 2018-10-12T17:52:11 | 2018-10-12T15:35:46 | C++ | UTF-8 | C++ | false | false | 637 | h | Material.h | #ifndef CIVILIZATIONPP_OBTAINABLE
#define CIVILIZATIONPP_OBTAINABLE
#include <HexTile.h>
#include <functional>
namespace Civilizationpp {
using eventFunction = std::function<int()>;
class Obtainable {
protected:
eventFunction Food;
eventFunction Production;
eventFunction Gold;
public:
Obtainable();... |
5f798f73a42c156a1c769265767274cd60e4b089 | 7ad1a4947b78d44a03cf181cc94877374572fca8 | /game/Ship.cpp | e693e7a0ef8116abe9b965a4e7ab96f5bb4af388 | [] | no_license | OC-MCS/p2finalproject-01-andhartman | aff36be3a293961084bbc6eb0fb27f883bc6c4d7 | 381eb2764d74e9211616a494117c8ee3c8ab1a8f | refs/heads/master | 2020-05-07T11:06:30.010564 | 2019-04-19T08:38:57 | 2019-04-19T08:38:57 | 180,446,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | Ship.cpp | #include "Ship.h"
//constructor
Ship::Ship(Vector2f pos)
{
if (!shipTexture.loadFromFile("ship.png"))
{
cout << "Unable to load ship texture!" << endl;
exit(EXIT_FAILURE);
}
ship.setTexture(shipTexture);
ship.setPosition(pos.x, pos.y);
}
//moves the ship when buttons are pressed
void Ship::move()
{
Vecto... |
8d4134a54ac4a2ea040926b58318a2289d26937a | 38ac53bd8db9f340cb2104abd6dade38db7f4913 | /test/NFmiMercatorAreaTest.cpp | 1ae56173d3751fe1cd8ed4b62d5bf69e231f56f4 | [
"MIT"
] | permissive | fmidev/smartmet-library-newbase | ac56d2fb6bad5378c405dbba84f010de7303f148 | b26e2052bac7c114a1d41068fca48828bad4ad8f | refs/heads/master | 2023-09-06T05:46:05.215973 | 2023-08-30T07:05:41 | 2023-08-30T07:05:41 | 75,052,919 | 0 | 2 | MIT | 2021-06-16T12:15:06 | 2016-11-29T07:00:13 | C++ | UTF-8 | C++ | false | false | 5,012 | cpp | NFmiMercatorAreaTest.cpp | // ======================================================================
/*!
* \file
* \brief Regression tests for class NFmiAreaFactory
*/
// ======================================================================
#include "NFmiMercatorArea.h"
#include <regression/tframe.h>
#include <stdexcept>
#include <string>... |
062dcc5a5b4e0c5b7d97487fd34b88a7dfbbeeb9 | 3629482e2e187feaddc6cb3f3ad444a2bd5a95ea | /plugins/devtools/bridge/inspector/protocol/dispatch_response.cc | 04d83c45aec91715513ee3c77b181947972f327c | [
"Apache-2.0"
] | permissive | jiangtao89/kraken | 222a1d69450fecbdd3cbc630a2a44dad9e21bec3 | 2f4f9716943cd68774d77b2bff612da44d0c8913 | refs/heads/main | 2023-06-22T21:10:36.488206 | 2022-07-27T08:08:55 | 2022-07-27T08:08:55 | 360,130,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,189 | cc | dispatch_response.cc | /*
* Copyright (C) 2020-present The Kraken authors. All rights reserved.
*/
#include "inspector/protocol/dispatch_response.h"
namespace kraken {
namespace debugger {
DispatchResponse DispatchResponse::OK() {
DispatchResponse result;
result.m_status = kSuccess;
result.m_errorCode = kParseError;
return resul... |
1bc1271b3026fc66bff724bb26c78a37b871d914 | f18fc13a5403c819f1f4133af5f8be22e8215e8e | /Tom-and-Jerry/Tom-and-Jerry/cheeseClass.h | dd4368c86f1c84a47d0de30dc20d618eed0f7282 | [] | no_license | ponta579/Tom-and-Jerry | 83a9ad818d2b666ec6540f96906b43e524e40ee3 | 5d9f79e34610016c22243abff6c61a5b3ddf8455 | refs/heads/master | 2023-09-02T09:57:10.523269 | 2021-11-11T09:23:49 | 2021-11-11T09:23:49 | 236,152,184 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 275 | h | cheeseClass.h | #pragma once
#include "myBase.h"
class cheeseClass :
public myBase
{
int k;
public:
cheeseClass(int x, int y, int w, int h, int dx, int dy, int score, ACL_Image* img, int k);
cheeseClass(cheeseClass& cheeseclass);
int ifOut(rect winRect);
void move();
};
|
36ec8d96aa4e61559044dbfe235ff350ea085da8 | 0c6d288ae60d54af47184000c80ebf2b832e1eb1 | /leetCode/BitwiseAndForInterval.cpp | 5dbabc83fd50fb2730401ea10b7878bb2a7edcc4 | [] | no_license | VBurduja/random_stuff | 17d2dfd3aabd940798e4dc376abfdc8d8330c8d2 | fe42c42c8e0e8dedd501b6cad05b76e19d0ee4d6 | refs/heads/master | 2022-04-23T07:53:35.924875 | 2020-04-25T23:32:15 | 2020-04-25T23:32:15 | 256,811,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | BitwiseAndForInterval.cpp | // Given a range [m, n] where 0 <= m <= n <= 2147483647,
// return the bitwise AND of all numbers in this range,
// inclusive.
// Example 1:
// Input: [5,7]
// Output: 4
// Example 2:
// Input: [0,1]
// Output: 0
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
cl... |
b20d4283c4a0a33a0499fd9878b034e103dc6b92 | 4a49b92106830b269ab1331061611bdb6dfd5a0a | /src/selectbook.cpp | 3e0b78a1b9077d40a2b58fcc09223a7b331d6358 | [] | no_license | heavenchou/CBReader | 1e5a8a9f2e01b95da88f48cbe17b5a409b0cf097 | 590d73051ebd16cb9423c8b1bfd499f59beead47 | refs/heads/master | 2022-05-04T05:14:09.320858 | 2021-04-18T19:38:26 | 2021-04-18T19:38:26 | 83,400,590 | 2 | 1 | null | null | null | null | BIG5 | C++ | false | false | 1,789 | cpp | selectbook.cpp | //---------------------------------------------------------------------------
#include <fmx.h>
#pragma hdrstop
#include "selectbook.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.fmx"
TfmSelectBook *fmSelectBook;
//---------------------... |
1cdb54130fd927c9521aec7892de2d9ffc4d6304 | 61d2a30c068f17bee5a93bcdb663bb876209d9ba | /break.cpp | af0b7ac813f13f8a8d81f5bfdb01886f03953f28 | [] | no_license | rohanpurushothama/cpp | 97e4ffd090acd460c0f730a1c785bb0494936d51 | 618cddaebc547bff35fbb6226c59afdf4f193f9e | refs/heads/main | 2023-08-19T20:54:23.966163 | 2021-10-25T06:48:27 | 2021-10-25T06:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | break.cpp | #include<iostream>
using namespace std;
/* void findingElement (int arr[], int size, int key)
{
for (int i; i < size; i++)
{
if (arr[i] == key){
cout << "Element found in the position: " << (i+1);
break;
}
}
}
int main()
{
int arr[] = {1, 2, 3, 4, 5, 6};
int ... |
6def37f1e41bcc8cfc9e1bb18460362b58d0e493 | aaa349ae0fb52534c2306a2d343e20f928998ecb | /Boxfish-Lib/src/Rays.cpp | dff00baf060e1197a974e6588b01b7127d77068b | [] | no_license | Totomosic/Boxfish | 77fa14abf1d2e54248d822df11c79a1b1387e75e | 00f0fc5d3e2ba3d3b3037b851c78708f30ffed33 | refs/heads/master | 2023-09-04T00:32:09.139572 | 2021-10-30T14:09:19 | 2021-10-30T14:09:19 | 273,902,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | Rays.cpp | #include "Rays.h"
#include "Attacks.h"
namespace Boxfish
{
static bool s_Initialized = false;
static BitBoard s_Rays[8][SQUARE_MAX];
void InitRays()
{
if (!s_Initialized)
{
for (SquareIndex index = a1; index < SQUARE_MAX; index++)
{
s_Rays[RAY_NORTH][index] = 0x0101010101010100ULL << index;
s_... |
fe8a24d5d1e2db33e56cebee3714874207a1f19d | a16f8d76f3f376ae63461b11ff588182b14b3f49 | /src/linad99/fvar_m57.cpp | 6b855b6c51307ef424967efa02b29501daa1183e | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | admb-project/admb | 2782c74ed8d49c73e9735f8e0ce95f01d581bf2e | f6b42b0846da23f35c6ffbd28e42ec3cc2f306f0 | refs/heads/main | 2023-08-19T04:23:21.572292 | 2023-08-08T20:34:10 | 2023-08-08T20:34:10 | 29,162,042 | 90 | 24 | NOASSERTION | 2023-08-07T19:17:15 | 2015-01-12T23:14:31 | C++ | UTF-8 | C++ | false | false | 1,016 | cpp | fvar_m57.cpp | /*
* $Id$
*
* Author: David Fournier
* Copyright (c) 2008-2012 Regents of the University of California
*/
/**
* \file
* Description not yet available.
*/
// file fvar.cpp
// constructors, destructors and misc functions involving class prevariable
#include "fvar.hpp"
/**
* Description not yet available.
* \p... |
18e6f877413f1091aaee632d00d1c9c906ff08b4 | 8d2462d664841bbfefbe10ee92e13b80523839e5 | /C++/No8983.cpp | c8d5bcf0dcd52c43bedf8ca81d1e1cbb5bc729a7 | [] | no_license | ku-alps/sw15_hyunsoo | e68e0b81033f1adce15074da3523d6c53ecc37c1 | c8f2e2e062a5cc5c1b58f1b56406bb0af250b77e | refs/heads/master | 2021-11-20T05:28:31.092107 | 2021-10-06T07:48:39 | 2021-10-06T07:48:39 | 176,670,530 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 1,907 | cpp | No8983.cpp | #include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
// 사냥꾼
// 라인 스위핑 방식을 사용하여
// 해당 문제에 대해 필요한 부분만 확인해가는 방법을 채택
class XY {
public:
int x, y;
XY() {}
XY(int i_x, int i_y);
};
int sand, ani, length; // 사대 수, 동물 수, 사정거리
vector<int> s_pos; // 사대의 위치 정보
vector<XY> a_pos; // 동물의 위치정보
int main()... |
d93e66ff2558203e8c6160525e061f16766f1942 | d04e256f7929379e3f804270272c811346bc1aa9 | /2_0612/AbsstractHardware/Registers/STM32F411/FieldValues/nvicfieldvalues.hpp | 6a7ba45b3a754e95e3dfa3904fc63e9512e90c57 | [] | no_license | Alexandr-Ryzhikov/POIP-Hub | 492609c0d75f31abafda2cd6265f3653e76a4bc5 | 89ab09c5384097a1f53a6c7be92fa5d4fba86d87 | refs/heads/master | 2020-08-23T09:47:23.920041 | 2020-04-03T08:11:50 | 2020-04-03T08:11:50 | 216,589,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,591 | hpp | nvicfieldvalues.hpp | /*******************************************************************************
* Filename : nvicfieldvalues.hpp
*
* Details : Enumerations related with NVIC peripheral. This header file is
* auto-generated for STM32F411 device.
*
*
***********************************************************... |
a56c03a41474e6387b0bede2852ba8f7a9b6359a | d6f9bbefeb4544272da6359542dc3395b608a5a8 | /src/RenderfarmEngine/Math/Matrix.cpp | e5e58973c08876c105a45fa407ca60014a6a0d1d | [] | no_license | leonrodenburg/renderfarm | c135013fefacb4edcefedc25973008c34b6933f3 | 19b2dd676eb94092c0bd5bb0583a9d53be4f0b4c | refs/heads/master | 2016-09-05T21:31:59.305025 | 2013-02-21T13:54:14 | 2013-02-21T13:54:14 | 8,335,975 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,619 | cpp | Matrix.cpp | #include "Matrix.h"
/**
* Default constructor.
*/
RFMath::Matrix::Matrix()
{
this->Identity();
}
/**
* Copy constructor.
*
* @param matrix
*/
RFMath::Matrix::Matrix(const Matrix& matrix)
{
for(int i = 0; i < 16; ++i)
{
this->_elements[i] = matrix._elements[i];
}
}
/**
* Destructor.
*/... |
2182e48a8c994f70d688976984a1622530d861f4 | 667339284313ba0d8d2934817d84b318c6a222d1 | /src/optlib/saft.h | e77bbd30cebcecc399e59a20a63509978dddc7e0 | [] | no_license | sshalayel/Bachelorthesis | 8effcd494318688e21677348fcafe7f4e3d83df0 | 440bcdad4ec812a6af340129269b6ee953766a13 | refs/heads/main | 2023-01-19T18:27:39.091591 | 2020-11-27T12:20:29 | 2020-11-27T12:20:29 | 316,496,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | h | saft.h | #ifndef SAFT_H
#define SAFT_H
#include "arr.h"
#include "config.h"
#include "coordinates.h"
#include "linear_interpolation.h"
#include <functional>
#include <list>
#include <optional>
#include <set>
#include <utility>
/// @brief Can be used to compute saft.
///
/// It can also transform all saftpixels with a value ov... |
19fe3f7eda03c328d969fadc94c218b95e1a906d | 15b9caf5294e02c271fc8bc7a8ae81d43338013b | /jimmyhxy/回文单词.cpp | 19e7a65d8bfa233f7f53ae0a021ff00b07039eba | [] | no_license | jimmyhxy/master | 5d5e768fdf38771590c5f17da40e7cb8461e24cd | 42180372a5b3f2530d5692a751d1e65c4b345980 | refs/heads/master | 2021-01-10T09:11:37.318772 | 2017-05-07T14:10:43 | 2017-05-07T14:10:43 | 47,455,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | cpp | 回文单词.cpp | #include <iostream>
using namespace std;
char s[20],t[20];
int len;
bool pal()
{
for(int i=0;i<=len;i++)
if(t[i]!=t[len-i]) return 0;
return 1;
}
int main()
{
cin>>s;
len=(int)strlen(s);
for(int i=0;i<=len;i++)
{
for(int j=0;j<i;j++)
t[j]=s[j];
for(int j=i+1... |
08caaa270573afacf287ac822496e145222e4324 | 06f3df3fb711d39b0f40fd76a25839d0210251b9 | /Source/UROSControl/Public/SrvCallbacks/SpawnModelsServer.h | dba3824f72f811d9dbab52c0a28b2e0f2bc3b231 | [] | permissive | bjoernveit/UROSWorldControl | 6b14c68ae1190d96e3b37c7ab79dec50b3e4ec99 | 50ed659020acc0bc2f6aef664d8d8338bb6cdf10 | refs/heads/master | 2020-04-07T16:17:38.846677 | 2019-03-19T14:26:28 | 2019-03-19T14:26:28 | 124,221,928 | 1 | 0 | BSD-3-Clause | 2018-03-07T10:50:42 | 2018-03-07T10:50:41 | null | UTF-8 | C++ | false | false | 1,119 | h | SpawnModelsServer.h | // Copyright 2018, Institute for Artificial Intelligence - University of Bremen
#pragma once
#include "CoreMinimal.h"
#include "Engine/World.h"
#include "ROSBridgeSrvServer.h"
#include "ROSBridgeHandler.h"
#include "SpawnModel.h"
#include "PhysicsProperties.h"
#include "RWCManager.h"
#include "Engine/StaticMesh.h"
#i... |
a5243ce5c145f010acc30be3d9d410cfbe6a64d3 | cceda0ed268253be60c549ee957804d367bc3ca3 | /src/codegen/opt/aa.cpp | 1dc0025b82bf71c1364fe70a9c8be8e305ec6d46 | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | mcanthony/pyston | 3bc6a45e5c118fb6860427c9b0cc885dec8f5b6e | eed1d41307b578ff8d873b92b8b4db24775d5daf | refs/heads/master | 2020-12-29T00:55:11.099535 | 2015-10-23T22:28:07 | 2015-10-23T22:28:07 | 44,902,270 | 2 | 0 | null | 2015-10-25T08:34:09 | 2015-10-25T08:34:08 | null | UTF-8 | C++ | false | false | 11,211 | cpp | aa.cpp | // Copyright (c) 2014-2015 Dropbox, 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 law or agr... |
6a6b8b1464990510eb7b3290fe3951deb1fb7f83 | 93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3 | /paddle/fluid/operators/reduce_ops/cub_reduce.h | 49bcbf3abb1b32ca6f6336c25949f931f095ce9c | [
"Apache-2.0"
] | permissive | hutuxian/Paddle | f8b7693bccc6d56887164c1de0b6f6e91cffaae8 | a1b640bc66a5cc9583de503e7406aeba67565e8d | refs/heads/develop | 2023-08-29T19:36:45.382455 | 2020-09-09T09:19:07 | 2020-09-09T09:19:07 | 164,977,763 | 8 | 27 | Apache-2.0 | 2023-06-16T09:47:39 | 2019-01-10T02:50:31 | Python | UTF-8 | C++ | false | false | 14,084 | h | cub_reduce.h | // Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// 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... |
daf28097a5d9a2b43c6be62f1d6bcb3ecb6ddff0 | 1162f50f249dff98de128d2893f9966c07b18acc | /PruebaFinalOCV/FaceDetector.h | ec9e14e0db5e793abcd6874571e0383b28340c28 | [] | no_license | danielroa98/Software-Caras-Equipo1 | 06e1432df4b6c04a3b5c0e3ef87d6723e7a1af02 | ae866e3d9d0d8aea1b6f74cd9dee0e34d93d624f | refs/heads/master | 2020-07-07T01:35:12.625715 | 2019-10-17T02:09:27 | 2019-10-17T02:09:27 | 203,202,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | h | FaceDetector.h |
#ifndef FaceDetector_hpp
#define FaceDetector_hpp
#include <stdio.h>
#include <opencv2\opencv.hpp>
#include <string>
class FaceDetector
{
private:
cv::CascadeClassifier face_cascade;
int next_height;
public:
FaceDetector(std::string face_cascade_name, int next_height_ = 40);
FaceDetector();
~FaceDetector()
{
};
std:... |
c6deb34b129d708aed463bdc68ef80a40c932d85 | ca0c17e84d2082db1097628393c4373696a425d3 | /src/applications/modules/dynamic_simulation_dae/model_classes/esst1a.cpp | 2f47b6574c1fd74e5817e59589bc720ace01f791 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | GridOPTICS/GridPACK | cc7475c427133987ef0e6ce1a050f83593a8d0dc | 8ba94936b204a3c0fbcdc97a10c8eebc1cc25609 | refs/heads/develop | 2023-09-03T13:24:53.364094 | 2023-08-28T16:19:20 | 2023-08-28T16:19:20 | 22,120,575 | 42 | 16 | null | 2023-09-05T14:55:21 | 2014-07-22T21:01:57 | C++ | UTF-8 | C++ | false | false | 19,841 | cpp | esst1a.cpp | /*
* Copyright (c) 2013 Battelle Memorial Institute
* Licensed under modified BSD License. A copy of this license can be found
* in the LICENSE file in the top level directory of this distribution.
*/
// -------------------------------------------------------------
/**
* @file esst1a.cpp
* @author S... |
a3b8834aabf465265979aa66a638e683fdefd197 | 2a351fa0faf943a363a55c71552180ea78f403dd | /Proyecto Final/include/Producto.h | 2cf56e8a5d948156d87dd0cb32b83aff606aaca1 | [] | no_license | EddyChC/Final-Project | 1cb3f845ae12951a93a8c6e8286a9bdd45e5a9ba | 78bf28ed1e7c894d911957f333f7b517d9cf9675 | refs/heads/master | 2020-12-10T03:26:33.795225 | 2017-06-27T03:32:57 | 2017-06-27T03:32:57 | null | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 878 | h | Producto.h | #ifndef PRODUCTO_H
#define PRODUCTO_H
#include <iostream>
#include<string>
#include "Ask.h"
using namespace std;
class Producto{
protected:
string codigo;
string articulo;
string marca;
string modelo;
double unidad_principal; //unitario, dual, etc.
double p_venta; //costo y utilidad
double moneda... |
8e2ed2fb7e2efe2487114c6f70b30e94dbc89dc7 | f5f9aff72fc7f08e405a4fda7cf86687f0940484 | /examples_from_the_book/C03/const_cast.cpp | 7d113e5cee24b2075a3b73d9dd167cf020d97bf7 | [] | no_license | miodek/Thinking_in_cpp_1 | 3920dd846a9141290deb04b666dc1af4f360466f | 5b16e5d5a8c1a71883d36ce16aacd98eb060c718 | refs/heads/master | 2021-01-16T19:20:02.282978 | 2014-05-27T09:49:43 | 2014-05-27T09:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | const_cast.cpp | //: C03:const_cast.cpp
// Kod zrodlowy pochodzacy z ksiazki
// "Thinking in C++. Edycja polska"
// (c) Bruce Eckel 2000
// Informacje o prawie autorskim znajduja sie w pliku Copyright.txt
int main() {
const int i = 0;
int* j = (int*)&i; // Postac niewskazana
j = const_cast<int*>(&i); // Postac preferowan... |
86a7293afc1ee31611df7ee750fff56590d9fc2a | 2f46eb831cf39968f9f21b9e84a9023392549537 | /RPCServerStub.cpp | 8a80916c9e27b51b71ea6dc20239a2b511f3bdbb | [] | no_license | eftiquar/RPCWorkArea | 0f0d8760f8942957e29ee1f0eafd59a115dbefdc | d8feaa6163a68dc776468ec13ce8d9d59a4989f2 | refs/heads/master | 2020-03-09T08:25:06.408600 | 2018-04-09T16:08:59 | 2018-04-09T16:08:59 | 128,688,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,824 | cpp | RPCServerStub.cpp | //
// RPCServer.cpp
// RPCWork
//
// Created by zayan on 4/7/18.
// Copyright © 2018 Eftiquar. All rights reserved.
//
#include "RPCServer.hpp"
#include <assert.h>
#include <iostream>
//#include <atomic>
#include <memory>
#include <map>
#include <mutex>
using std::mutex;
using std::map;
using std::shared_ptr;
//us... |
3aca4b72d1f0eac02e50be3d35d1eb3496c57495 | 5fab1ada8d5bd35da52f4b85c69f410e8e89e04f | /08_Functions/array_to_function.cpp | 0fdd8eefe4a1d5b282df6c1cbc506049b134a511 | [] | no_license | asilazo/Cpp_Programming | cbdc8a0ffbc55d02b2233f2969f391518d568516 | 59521d06a1515b96469f69d647492f5e3cae21d8 | refs/heads/main | 2023-08-30T13:48:00.470439 | 2021-10-08T05:38:21 | 2021-10-08T05:38:21 | 305,795,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | cpp | array_to_function.cpp | // Passing an array to a function
#include <iostream>
#include <array>
double average(double array[], size_t count); // function prototype
int main(){
double values[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0};
std::cout << "Average = " << average(values,std::size(values)) << std::e... |
10f8f3cb4f1a52fdb5a0e5076d9ab73b3636d89f | 005b048ff6bab33a141b58c33aadaed8547f6a86 | /vtkAMPDEFilter.cxx | 5dc6a656fbb1c1bdd185dab0f639d815d1d89352 | [] | no_license | wuzhuobin/vtkAMPDEFilter | 292a735e0c13b3fb6ea8203e27f3307751053ab2 | 4300395f822d1b89780e2fcf475b7936080695ab | refs/heads/master | 2020-04-02T09:13:23.450029 | 2018-12-12T05:56:22 | 2018-12-12T05:56:22 | 154,282,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,082 | cxx | vtkAMPDEFilter.cxx | /**
* @file vtkAMPDEFilter.cxx
* @language C++
* @author wuzhuobin jiejin2022@163.com
* @date 2017/12/28
* @copyright
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This program is distributed in the hope that it will be useful, but <br>
WITHOUT ANY WARRANTY; without eve... |
3f3abe5c86414dc61a2e0e01bfb4044c27e01c9d | c3ffa07567d3d29a7439e33a6885a5544e896644 | /HSNU-OJ/222.cpp | 45d704fa3576fb57e9b3035e6bf926e8be946117 | [] | no_license | a00012025/Online_Judge_Code | 398c90c046f402218bd14867a06ae301c0c67687 | 7084865a7050fc09ffb0e734f77996172a93d3ce | refs/heads/master | 2018-01-08T11:33:26.352408 | 2015-10-10T23:20:35 | 2015-10-10T23:20:35 | 44,031,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,505 | cpp | 222.cpp | #include<bits/stdc++.h>
#define MOD 1000000007
using namespace std;
int n,a[250001] ;
int dp[250001] ;
vector<int> v[250001],sum[250001] ;
int search_in_v(int id,int val) /// v : decreasing , the first < val
{
if(v[id][0]<val) return 0 ;
int l=0 , r=v[id].size()-1 ;
while(r-l>1)
{
... |
f3688e06724e76291a582dd1b22bca4d4d73b5f9 | 3a66629f38401ee74c53a68bced8404ce60c14e6 | /Chapter 2 - Data Structures/2.3- Non-Linear DS With Built-in Libraries/939 - Genes/main.cpp | 6b6eab7937904f108869e3fc08d9b774e7f03d15 | [] | no_license | MahmoudAbdelazim/Competitive-Programming-3 | 0f5a4649dc7daff808960d8a2cccda89b9c712a4 | 968fa0b347a3140098b18f0feb7f09cdc7dc8680 | refs/heads/master | 2020-11-29T16:07:40.000956 | 2020-10-11T16:57:05 | 2020-10-11T16:57:05 | 230,162,592 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,155 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define All(x) x.begin(), x.end()
void boost() {
cin.tie(0);
cout.tie(0);
cin.sync_with_stdio(0);
cout.sync_with_stdio(0);
}
int main() {
boost();
int n;
cin >> n;
map<string, string> genes;
map... |
423b850b9af9b23d4f3391c4ccea493a320ed264 | f98a3df2daffb5f88e4d78fcc1fdfa8d947bab6a | /waveformCreator/Source/CustomComponentLook.cpp | bd95914f26a2d41eefe85847f986ff7853509247 | [] | no_license | GuillaumeGe/JUCE_PROJECTS | d855c0149d1cefcdd501802c7758e660827f76aa | 1c70898a906cce2612fc02263b4ead099dbf72c8 | refs/heads/master | 2020-03-19T21:33:17.388900 | 2018-07-20T17:39:39 | 2018-07-20T17:39:39 | 136,942,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | CustomComponentLook.cpp | /*
==============================================================================
CustomComponentLook.cpp
Created: 16 Jun 2018 4:11:31pm
Author: Guillaume
==============================================================================
*/
#include "CustomComponentLook.h"
|
734676a468c6666c24015a1d3fc0c754667cfe8c | 209790acca0bbcf14609ce6a5d629e2f6008bf8f | /LanqiaoAgain/4.cpp | 44b6b71c830d6e2ba497828943effe3ff486a9ca | [] | no_license | JackieZhai/ICPC_Training | bf598188b7b78d5b529eb40d1e5cfa86c8fb9434 | 582400e33b68a753f8b4e92f50001141811f2127 | refs/heads/master | 2021-08-27T16:30:45.183200 | 2021-08-19T04:27:53 | 2021-08-19T04:27:53 | 128,522,278 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | 4.cpp | #include <iostream>
using namespace std;
int main()
{
int a, b, c;
a=1;
b=1;
int n;
scanf("%d", &n);
if(n==1 || n==2)
{
printf("1\n");
return 0;
}
for(int i=0; i<n-2; i++)
{
c=(a+b)%10007;
a=b;
b=c;
}
printf("%d\n", b);
return 0;
}
|
c13c5b900142cccf3738e571d6e849b584c82b7e | 0a7646078c824ad25b9ebbc675f02dba2a52dadf | /Code/MeeshBuilder/MeeshBuilder/file_3dsloader.cpp | 37ba25010b44ac7d097586542b06c28a0f5c002e | [] | no_license | Mechameesh/MeeshEngine | 97011b6757060ee74f5425e5ac391c6caa704429 | 0dc1fcec872a691f7d8de2a3ae263c1075063edf | refs/heads/master | 2021-01-15T12:26:18.326692 | 2012-08-20T11:30:30 | 2012-08-20T11:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,014 | cpp | file_3dsloader.cpp | #include "stdafx.h"
#include "file.h"
#include "mesh.h"
#if 0
enum
{
// Primary chunk
M3DS_MAIN3DS = 0x4D4D,
// Main Chunks
M3DS_EDIT3DS = 0x3D3D,
M3DS_KEYF3DS = 0xB000,
M3DS_VERSION = 0x0002,
M3DS_MESHVERSION = 0x3D3E,
// sub chunks of M3DS_EDIT3DS
M3DS_EDIT_MATERIAL = 0xAFFF,
M3DS_EDIT_OBJECT =... |
15b99a53aa1d3c2f3812187ce532735d0eee4ba2 | eeb6e22f3d307ec4125510e696353a8add4a7971 | /qspgui/src/main_window.h | 781dbafd2e2e93df30e80a9fe5d6ed421e1be20c | [] | no_license | rrockru/QtQSP | 86525f14f9d9b20a3c3258506a855873b62bd96a | c43a0c848b3fe8a191514834750b1b09760bc1bb | refs/heads/master | 2021-01-10T04:25:51.172091 | 2020-08-05T12:15:54 | 2020-08-05T12:15:54 | 8,463,474 | 1 | 0 | null | 2013-07-10T06:45:16 | 2013-02-27T19:26:13 | C | UTF-8 | C++ | false | false | 2,305 | h | main_window.h | #ifndef _MAIN_WINDOW_H_
#define _MAIN_WINDOW_H_
#include "qsp_textbox.h"
#include "qsp_listbox.h"
#include "qsp_inputbox.h"
#include "qsp_imgcanvas.h"
#define TITLE "Quest Soft Player 5"
#define QSP_CONFIG "qspgui.cfg"
enum
{
ID_MAINDESC,
ID_VARSDESC,
ID_OBJECTS,
ID_ACTIONS,
ID_VIEWPIC,
ID_INPUT,
ID_TIMER,
... |
015d28cee3bccd8d8dbaee39b5b941dca36d9780 | 0e8b2ce2e39bea1d61c3e1e850e910fef0cd7bb9 | /asst3/rigtform.h | 96c69b7e4f4c68c239277af14073df70f2237dc8 | [
"BSD-2-Clause"
] | permissive | guberti/CS175 | 1ca0f816274bbb47a8fd44d85d2c9555c9cecc1f | 42b6dfd4f708c3654952df2191b2daeb4678f491 | refs/heads/master | 2021-05-28T04:25:09.586603 | 2014-11-17T22:43:27 | 2014-11-17T22:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,803 | h | rigtform.h | #ifndef RIGTFORM_H
#define RIGTFORM_H
#include <iostream>
#include <cassert>
#include "matrix4.h"
#include "quat.h"
class RigTForm {
Cvec3 t_; // translation component
Quat r_; // rotation component represented as a quaternion
public:
RigTForm() : t_(0) {
assert(norm2(Quat(1,0,0,0) - r_) < CS175_EPS2);
... |
37a7224050a60cbe80b9345111d7ba818b8155d4 | b3ed12dac3d0c424f7063f65a385da3bd57e8be5 | /cs240_final_proj/src/dragon_db.cpp | cf1bc3ec7b82a2e0e58529a7b827a6aa5efa2265 | [] | no_license | bmittelberger/dragonDB | ad11de6d7cae39d62931ed538c32086c158b474f | 2d68934ee60f2abf17f2955ddde56f1e4519687d | refs/heads/master | 2021-01-21T04:25:32.909884 | 2015-06-09T01:56:57 | 2015-06-09T01:56:57 | 35,913,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,763 | cpp | dragon_db.cpp | //
// dragon_db.cc
// CS240 Final Project
//
// Created by Ben Mittelberger on 5/23/15.
// Copyright (c) 2015 cs240. All rights reserved.
//
#include <stdio.h>
#include "../include/dragonDB.h"
using namespace std;
const bool CONSISTENCY_MODEL = false; /* true -> strong, false -> eventual */
const uint64_t... |
71bcdbb042ebc9a0b271b11f3ff894bd58d3b72b | a5a934e6039c24e1311a00303f653fbac89e911f | /cf/Div2/C/Bombs/main.cpp | 97d990e26f43c6563dbb2db00da8c3d2e327d17b | [
"MIT"
] | permissive | wdjpng/soi | 8bd9561a3a3d86a0081388cde735a2d2cd3b3de8 | dd565587ae30985676f7f374093ec0687436b881 | refs/heads/master | 2022-11-19T03:26:58.386248 | 2020-07-15T15:35:48 | 2020-07-15T15:35:48 | 171,109,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,714 | cpp | main.cpp | #include <bits/stdc++.h>
#define int long long
using namespace std;
bool smaller(pair<int, int>lhs, pair<int, int>rhs){
return abs(lhs.first)<abs(rhs.first)||(abs(lhs.first)==abs(rhs.first)&&abs(lhs.second)<abs(rhs.second));
}
signed main() {
// Turn off synchronization between cin/cout and scanf/printf
i... |
49ea2430c1fdeade64446288c9b054202ed86775 | b54383c19bbf5712d292204f13a012824a8bd212 | /Framework/[C++ Core]/FPointList.hpp | 737e9ddee7b8484d7b552626e5b3c73296801c88 | [
"MIT"
] | permissive | swordlegend/Metal_OpenGL_MobileGameEngine | 8a659bcdebfdd6a29b426735ca900da770f5a4d2 | cc36682676a9797df8b3a7ee235b99be3ae2f666 | refs/heads/master | 2023-01-06T08:15:08.188326 | 2020-11-02T16:56:11 | 2020-11-02T16:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,556 | hpp | FPointList.hpp | //
// FFloatList.h
// 2015 Gnome Launcher
//
// Created by Nicholas Raptis on 12/23/14.
// Copyright (c) 2014 Nick Raptis. All rights reserved.
//
#ifndef FRAMEWORK_POINT_LIST_HPP
#define FRAMEWORK_POINT_LIST_HPP
#include "FString.hpp"
#include "FPrimitive.hpp"
#include "FIndexList.hpp"
#include "FFloatList.hpp"
... |
b618ed9106a57bc82e124f2e20a48f67cdd54049 | 81df11e6ba4606678c3fc09684bdf0e49d6417e6 | /TnPSelector/test/ut_PairSelector.h | e60aa08fd8e76aeac42238db9f9d192b9f0acf1a | [] | no_license | bkkkk/TnPCalibration | 52b62d67e609348aa2cf6359c294777914745ce9 | 73c223f8746ecd42ec672b523f0eff0c00c78a67 | refs/heads/master | 2021-01-17T08:07:37.703544 | 2016-06-23T14:18:27 | 2016-06-23T14:18:27 | 11,472,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | ut_PairSelector.h | #ifndef TESTPAIRSELECTOR_H_
#define TESTPAIRSELECTOR_H_ 1
#include <gtest/gtest.h>
#include <TnPSelector/TJPsiPairSelector.h>
class TestPairSelector : public ::testing::Test {
public:
TestPairSelector() = default;
TJPsiPairSelector* selector;
virtual void SetUp() {
selector = new TJPsiPairSelector();
... |
ebb509f54b49ff5dacd6d388b15e169d86ba6881 | f2a10941c41312b228b74a935013a27ef13c2838 | /z3D/Core/Misc_crc.cpp | 6dbd511e7ef9db3de3313daff9f50ae3c8a51544 | [] | no_license | vinceplusplus/z3D | 375df45283c9ed64f5d2e991e2361352151ca030 | 7b52534db183298b7c92ff8cf6493fce0ac6e0d9 | refs/heads/master | 2020-12-24T19:13:21.574789 | 2016-05-05T17:04:17 | 2016-05-05T17:04:17 | 58,145,312 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | Misc_crc.cpp |
#include "Misc.h"
#include "../../crc/crc.h"
namespace z3D
{
namespace Core
{
uint32_t gen_crc(const void* array_byte, size_t bytes)
{
return crcFast((const unsigned char*)array_byte, bytes);
}
};
};
|
4524a0b14c917801d8ac3ae333732e99d75f548a | 074d09be299a033a579b4cbc4ab6bdba9f5af87b | /qtplayer/player/udp/audioudp.h | 0fc1aeba05efc90e7a040499f6706895c96fd373 | [] | no_license | chenjinice/qt | 65fdae7c75896fbed8f9625f2be1292c0d91b3e7 | 8416ea55464eed216f88a1d7fa415914398b6602 | refs/heads/master | 2021-05-14T01:01:33.836062 | 2019-08-01T09:06:25 | 2019-08-01T09:06:25 | 116,554,728 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 668 | h | audioudp.h | #ifndef AudioUdp_H
#define AudioUdp_H
class DecoderUdp;
class QThread;
class AVPacket;
#include <QObject>
#include <QMutex>
class AudioUdp : public QObject
{
Q_OBJECT
public:
explicit AudioUdp(DecoderUdp *decoder);
~AudioUdp();
void addPacket(AVPacket *pkt);
void startRun();
int packetNum()... |
ab6e6dcec62ebd56174e076f09df148245e5e86a | a6f417ab68f33310013dc8e62ee15d6ade3e3599 | /MSDKVpp.h | 7e5a7012857f3315627e59ccf7fd9fb2be67374c | [] | no_license | raine0524/LibComposite | d7e3662f239782e1cec36e03e598283b8927a1b2 | 3e519370e7aa46073316495d07fb30d6ad41fbf6 | refs/heads/master | 2016-09-11T10:05:52.398669 | 2015-02-12T03:28:44 | 2015-02-12T03:28:44 | 30,585,641 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,335 | h | MSDKVpp.h | #ifndef MSDKVPP_H_
#define MSDKVPP_H_
#include <map>
#include <list>
#include <vector>
#include <float.h>
#include "MSDKDecode.h"
#define MAX_INPUTSTREAM_NUM 4
#define MAX_OUTPUT_NUM 3
#define MAGIC_NUMBER 40*1000 //40ms
#define LOGISTIC_INTERVAL_UPPER 100
typedef struct {
unsigned x;
unsigned y;
... |
a438d060f349e37b0274b3035d5416dddf47fca1 | 2b96d9575a137594046065dd391b3392a111a223 | /Sensor/src/main.cpp | bddb6a6b0051f74c55bad684d98a9c6f45e98c5a | [
"MIT"
] | permissive | Marc56K/OccupiedSign | 6e4b1b7c6840a68a6811be1bebc37978ab917d32 | 583abab19c3a842753206ac1006b7e8a169dda78 | refs/heads/master | 2023-03-29T01:53:21.447411 | 2021-03-25T09:27:35 | 2021-03-25T09:27:35 | 303,484,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,759 | cpp | main.cpp | /**
* The MIT License (MIT)
*
* Copyright (c) 2021 Marc Roßbach
*
* 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
... |
f64494df906a439b7985254575ef233886d568f4 | c6450204b175a2fde57b5c8e1dbb33a9dfa882c4 | /FSMSimulator/FSM.cpp | 13fc01e5d6252cf4c2ddcb47d3a0a5897f91a620 | [] | no_license | menessy2/mfsm | e8deb026464770c879f9fb2b80f6512fcab30d20 | 1b033d0f64e6b28413ddf70097fd1ef5e7fac7e3 | refs/heads/master | 2020-04-28T06:23:37.295975 | 2014-10-08T19:11:33 | 2014-10-08T19:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,033 | cpp | FSM.cpp |
#include "FSM.h"
template<class NODE,class EDGE>
Graph<NODE,EDGE>::Graph(bool (*comp_node)(NODE,NODE),bool (*comp_edge)(EDGE,EDGE) ){
fp_compare_node = comp_node;
fp_compare_edge = comp_edge;
}
template<class NODE,class EDGE>
size_t Graph<NODE,EDGE>::add_vertex(NODE node){
std::vector<SpecialNode<NODE,EDGE>> ve... |
9b1559044d4458d3f238408fe8bf3a3fcaa2a115 | 4c7d5c3fe9aebef4fa5b2b746baa646a235c274f | /Source/Kernel/VFS/Part.h | 2d6c1147416c9ed49f137b9780c66d1da5d4e50b | [] | no_license | LukikeX/System | 4ae3c4d17b984d3c98c1bed1c60a9e6e2bae4cd9 | b70e2e6514799f86b6a4a0ba8b80941b4944344b | refs/heads/master | 2021-01-19T06:52:45.494750 | 2013-03-08T20:57:50 | 2013-03-08T20:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,311 | h | Part.h | #ifndef PART_H
#define PART_H
#include <Library/Vector.h>
#include "Partition.h"
#include <Devices/BlockDevice.proto.h>
class Part {
private:
struct MBREntryT {
unsigned char bootable; /* 0 = no, 0x80 = bootable */
unsigned char startHead; /* Starting head */
unsigne... |
362f75db3ed1852743ef7b8b7c5dca3781d287b1 | 9e2030c756b74a804a26515946bc260028e91387 | /Absalyamov Ivan/Absalyamov Ivan/TRUBA.cpp | 6e8e7e590a66abba7a72e3a4cb1060d19f499464 | [] | no_license | AiONE17/Lab | fd880a201bea4932a80df88459d34c0b86be8dc6 | 2edcf91f5ca3f7348ddd76fb67aa24169a7bbfc9 | refs/heads/master | 2023-02-02T01:17:34.211471 | 2020-12-21T10:42:12 | 2020-12-21T10:42:12 | 292,365,990 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,206 | cpp | TRUBA.cpp | #include "TRUBA.h"
#include "utils.h"
#include <fstream>
using namespace std;
int TRUBA::MaxID=1;
string TRUBA::Getname() const
{
return name;
}
bool TRUBA::Getpr() const
{
return pr;
}
int TRUBA::GetID() const
{
return id;
}
int TRUBA::GetVyhod() const
{
return vyhod;
}
int TRUBA::GetVhod() const
{
return vhod;
}... |
6729d80ee67bf394c57408299f88806a33c3a879 | 7cc8624e51638a595811a0ad04731d2e9d3ce78e | /073_int_matrix/IntArray.cpp | cf0810f03e285dbef9f9bb4df3db12ab02301833 | [] | no_license | isildur7/ECE-551 | d89ed74c2eaeeb03a6f7c37bb68e6f2a7467d608 | 08a69f6936d69cb66a5c46871528d56c870e8108 | refs/heads/master | 2020-04-13T03:56:25.738551 | 2018-12-24T03:55:38 | 2018-12-24T03:55:38 | 162,946,376 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29 | cpp | IntArray.cpp | ../072_int_array/IntArray.cpp |
08fd7d4f22d73bead7d31730b1ebfa64d97180d2 | 17a6114951f22701a6ee26aa9f66a8aa50f2964c | /src/utils/NearestPointsDistance.cpp | cbe4be416aeecab2700632e9ea7132d9a285fb05 | [] | no_license | rkluszczynski/pmf-segmentation-cpp | f323708c2450f7a02ec8f1dd01afce8166bed06a | 6b1927536a33d57abc7a9764bbf321a709555b3b | refs/heads/master | 2021-01-11T19:47:00.912907 | 2017-01-21T22:40:25 | 2017-01-21T22:40:25 | 79,395,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,671 | cpp | NearestPointsDistance.cpp | #include "NearestPointsDistance.h"
namespace pmf {
NearestPointsDistance::NearestPointsDistance()
{
//ctor
}
NearestPointsDistance::~NearestPointsDistance()
{
//dtor
}
inline
bool
_orderXY (const NearestPointsDistance::POINT * const p1, const NearestPointsDistance::POINT * const p... |
e4c06fdce4f55d51c902f3c77ce01f3a919c5cf6 | e61b0027ee7f60d52c99b43e5a2705e8e5019c97 | /C++/Test.cc | 3ecf04aa81fb690cdd204a17453c0352d76ec6e6 | [] | no_license | valeriapaolucci/Advanced_Programming-Exam | 7bfca89ef9638c6bb3930ceddeb67e7bdebc1689 | e8b31ad296de61bfdf00aeeaaa58c77266fc677a | refs/heads/master | 2020-04-20T14:13:38.996573 | 2019-03-04T16:00:25 | 2019-03-04T16:00:25 | 168,891,682 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,000 | cc | Test.cc | #include "BinTree.h"
#include <iostream>
int main() {
//------------------------------------------------------------------
// Creating a tree (with int keys and int values) and populating it
//------------------------------------------------------------------
BinTree<int,int> b1{};
b1.insert({8, 42});
... |
ff9169b7e229a8bd965674ad9cf5f1a97ae2d4c3 | 6504d2cbd655471a61fd5b64a51a893c2678c273 | /Inhertance/EBook.h | 2b0aa57911eeb57fb1ba331209392a45c217dd56 | [] | no_license | RyanJohnHeron/COM326W8Part2 | 8bbda81bcc9e23fea3ed4cfbce80827cdc56e460 | 377c554f41dce7b14a95516f6b8fee2574e58f60 | refs/heads/master | 2020-04-08T12:41:04.565538 | 2017-11-20T10:36:55 | 2017-11-20T10:36:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | h | EBook.h | #pragma once
#include "Book.h"
class EBook : public Book
{
private:
std::string format_; //Kindle edition
float fileSize_;
std::string language_;
bool enhancedTypeSetting_;
bool screenReaderSupport_;
public:
EBook();
~EBook();
};
|
84d6b79dbef2e5fff92aa824cda36f76aea6fc52 | e020c8f67bf527e47d3e0ce9aef4c41725d370dc | /1214 - Above Average.cpp | 21a001a7070bc692ebb0439f13ff631341f5f458 | [] | no_license | Jalal14/uri-online-judge | 034734294e63c61b379953bf5a5d0ad3709597d5 | d79d456eb93d457cc36657728008e6c6e3d054ed | refs/heads/master | 2021-09-11T19:05:52.219958 | 2018-04-11T06:13:29 | 2018-04-11T06:13:29 | 103,733,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | 1214 - Above Average.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int C,n,*arr,counter;
long long int sum;
cin>>C;
while(C--){
sum = counter = 0;
cin>>n;
arr = new int[n];
for(int i=0; i<n; i++){
cin>>arr[i];
sum+=arr[i];
}
... |
2510345b95224c6542237f81b766260f41b91a92 | 0eeb48cc35f828bbeb2034e1aa20dc6ea7527232 | /internal/compiler/inc/syn/nodes/declarations.hpp | 52d9434ce9d6418ba99a164dd1c5e3f59bd62dfc | [] | no_license | egst/cynth | 739f43eb90778030ae76f23fea324bb7c670635e | 1c251929ca75859ea1dcc62b57198d955291e65a | refs/heads/master | 2022-08-03T08:26:26.881397 | 2022-07-16T21:34:10 | 2022-07-16T21:34:10 | 291,306,890 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | hpp | declarations.hpp | #pragma once
#include "syn/nodes/incomplete/declarations.hpp"
// Completing forward declarations:
#include "syn/categories/incomplete/type.hpp"
#include "syn/nodes/expressions.hpp"
|
13a9e16ae0b614d7a0c88e1d8869de4ce8374991 | ecf5389583e3bc1e8456bb49b1fe44fe597b2d81 | /剑指offer/剑指offer/58_01_翻转单词顺序.cpp | a4271d25785b744b1d18cbbfb322f2558d99df08 | [
"MIT"
] | permissive | kangzhiheng/GuideOfProgram | 453bb35f6cabe0e10e3bdbce956311920eaa3125 | 385c46bcedd3a0b24f95a95d6392eb4a3f5e932e | refs/heads/master | 2020-05-17T07:54:56.311784 | 2020-02-16T16:42:33 | 2020-02-16T16:42:33 | 183,591,171 | 1 | 0 | MIT | 2019-04-26T08:51:50 | 2019-04-26T08:37:42 | C++ | GB18030 | C++ | false | false | 2,491 | cpp | 58_01_翻转单词顺序.cpp | // 文 件 名: 58_翻转单词顺序.cpp
// 作 者:adoredee
// 创建时间: 2019.08.05
// 描 述:翻转单词顺序
// 版 本:
//-----------------------------------------------------------------------------
// Copyright (C) 2019 Shanghai Jiao Tong University
//-----------------------------------------------------------------------------
// 面试题58(一):翻转单词... |
92afc5bc216e8dfbfd62bc9c9e77f47389115247 | fd00b8dfde18a59d94f6a2ea5f2b5ce8f28cbb1c | /NumberAlgorithms.h | ef45d9357fa24d54610610ed04da729a74a7d1e7 | [] | no_license | amorilio/CExamples | 6001faab5481add76ee9c54875e9585cbc3ff253 | cdd9071667b7fa3e7697e2bfaddfc9c618a6ef30 | refs/heads/master | 2021-01-19T08:11:04.214686 | 2014-08-31T07:59:22 | 2014-08-31T08:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | h | NumberAlgorithms.h | // Prime.h: interface for the Prime class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PRIME_H__35938C20_E202_479B_8F4D_4E6DFA74472D__INCLUDED_)
#define AFX_PRIME_H__35938C20_E202_479B_8F4D_4E6DFA74472D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 100... |
9f19730196a8d07d5b17e7e609aa5ff547117dfa | 31aa0bd1eaad4cd452d0e2c367d8905f8ed44ba3 | /algorithms/utf8Validation/utf8Validation.cpp | e13fa9f5b192c94d9d25a3b53b1391cdce6ab55c | [] | no_license | Sean-Lan/leetcode | 0bb0bfaf3a63d483794a0e5213a983db3bbe6ef6 | 1583c1b81c30140df78d188c327413a351d8c0af | refs/heads/master | 2021-04-19T02:49:33.572569 | 2021-01-04T01:40:06 | 2021-01-04T01:40:06 | 33,580,092 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,823 | cpp | utf8Validation.cpp | /**
*
* Sean
* 2016-11-14
*
* https://leetcode.com/problems/utf-8-validation/
*
* A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules:
*
* For 1-byte character, the first bit is a 0, followed by its unicode code.
* For n-bytes character, the first n-bits are all one's, the n+1 ... |
e6b706c8c886e53f0ad37810fe2bd4cb59d451c6 | cce82f36c07d93ec2fe6050baf6749331c08f8e7 | /exercise4/src/exercise4.cpp | bb7cbc67cf6e324e8b0621f4e6f84022e2942df1 | [] | no_license | quanglam2807/cs-253 | 5b9bfeffbe0a31a76730953aa78a58da55d8572c | 7b2156fdbe1e1ba9edf778120228e3d07cdacadd | refs/heads/master | 2020-03-08T16:24:53.652460 | 2018-05-24T15:39:27 | 2018-05-24T15:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,816 | cpp | exercise4.cpp | #include "exercise4.hpp"
int** readMatrixFromFile(const char* fileInStr, int &rows, int &cols) {
ifstream f;
f.open(fileInStr);
if (f.fail()) {
cout << "Could not open " << fileInStr;
throw -1;
}
f >> rows;
f >> cols;
int** matrix = new int*[rows];
for (int i = 0... |
27b0590f2f9fe4bbef337d179ab3f5bfa994f252 | e6cf147049a014269dc216405396f5f5631619a3 | /revsyn.hpp | 20f2ba523684e2e419cfe7d2a866168bc788203a | [] | no_license | superpi15/revsyn | 1615c5a5da2bdeb362d3249f9623c2c07b48126e | 3f9fafe046747c162d36948fc654295bd342e089 | refs/heads/master | 2020-12-13T01:19:03.988398 | 2020-10-22T11:22:02 | 2020-10-22T11:22:02 | 234,274,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | hpp | revsyn.hpp | #ifndef revsyn_hpp
#define revsyn_hpp
extern Rev_Ntk_t * Rev_GBD(const Rev_Ttb_t& ttb);
extern Rev_Ntk_t * Rev_qGBD(const Rev_Ttb_t& ttb);
extern Rev_Ntk_t * Rev_sGBD(const Rev_Ttb_t& ttb);
extern Rev_Ntk_t * Rev_GBDL(const Rev_Ttb_t& ttb);
extern Rev_Ntk_t * Rev_qGBDL(const Rev_Ttb_t& ttb);
extern Rev_Ntk_t * Rev_Bit... |
e54f087633febb7c268533e6126bca0784ae8c91 | abe06b71aca19c05d647992b63b392cae66e4c47 | /engine/client/headless/HeadlessMainSwitch.h | bc16a61908f5b50d783dcaecd3f4537638ba0cb4 | [] | no_license | MyNewBie/teeworlds-teamhooker-bot | 1971f4374a8af8012449fdc5f1917e7d5292ede1 | d3461fe96078cb42743e27f65b837ce6dff8544f | refs/heads/master | 2021-06-30T20:41:00.692817 | 2017-09-22T15:49:30 | 2017-09-22T16:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 157 | h | HeadlessMainSwitch.h | #ifndef HEADLESSMAINSWITCH_H
#define HEADLESSMAINSWITCH_H
class HeadlessMainSwitch {
public:
static bool enabled;
};
#endif /* HEADLESSMAINSWITCH_H */
|
23dae5574c267315b823bbdbf6677c411dfd93e6 | c44fb0847f55d5a9a187e6e9518c1fa28957c480 | /FoundationLib/ColorSystemLib/ColorSystemConverter.cpp | 5a33c34b8882859247808de6bedf36accb31024d | [] | no_license | Spritutu/hiquotion_cpp | 54567d5d0e62c36415d94f851ef9631932480e33 | 39e35053f979f7b613075c6a582fe58333c95dff | refs/heads/master | 2022-03-29T13:08:54.752069 | 2020-01-21T05:00:19 | 2020-01-21T05:00:19 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,754 | cpp | ColorSystemConverter.cpp | // YUVRGBConverter.cpp: implementation of the CYUVRGBConverter class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ColorSystemConverter.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
/////////////////////////... |
71feaf45ff1862aea78750f2595649badc9c9523 | 01eb5e83aaff8f8bf2481c8343d119d2944a424e | /src/opencv/videoio/VideoWriter.h | 61401502d5f7c86ff84889df46172b1b33a55e1d | [
"BSD-3-Clause",
"MIT"
] | permissive | drorgl/node-alvision | 4d68814a9c6b778df68664884548a9a43f797194 | 5498cc6fb56b40326e1686f407f12c119744ae94 | refs/heads/master | 2021-01-10T12:22:35.062497 | 2017-03-30T18:48:37 | 2017-03-30T18:48:37 | 45,723,280 | 3 | 0 | null | 2017-03-30T18:48:38 | 2015-11-07T05:02:00 | C++ | UTF-8 | C++ | false | false | 648 | h | VideoWriter.h | #ifndef _ALVISION_VIDEOWRITER_H_
#define _ALVISION_VIDEOWRITER_H_
#include "../../alvision.h"
class VideoWriter : public overres::ObjectWrap{
public:
static void Init(Handle<Object> target, std::shared_ptr<overload_resolution> overload);
std::shared_ptr<cv::VideoWriter> _videoWriter;
static Nan::Persistent<Func... |
d130e620e1cedfd1efa7517247434d1f969b7833 | eceece21031a518323bcf36213a3e0ecbceb3780 | /qtUtils-flasher/mzFlasher/protoparser.cpp | 840efba663b9320a671c3033c45802beb6613f09 | [] | no_license | alex0freeman/nucbit | b5964faa20470bc6f3650bf68ff5b60306635349 | 15ada332ca802be70b87d7dab00d109bfec9f45a | refs/heads/master | 2020-05-25T14:08:15.693331 | 2014-09-05T10:49:34 | 2014-09-05T10:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 126 | cpp | protoparser.cpp | #include "protoparser.h"
protoParser::protoParser(QObject *parent)
: QObject(parent)
{
}
protoParser::~protoParser()
{
}
|
674282648a723ac4638cb8f63e3886b66b5adb88 | 0ba8576e02f77c413dec6dccdfd85c1b76b356ba | /2019NYPC달팽이게임.cpp | 1d6d035157e3056c63ee7bc41ebdc86c7ae0b526 | [] | no_license | ltnscp9028/C_plus_plus | 2fb99fac7595c8cad34aecced4695849f4bfa50d | 92d6d89e3250735c9ee7fc49ee0f1726bb9b2e2f | refs/heads/master | 2022-04-30T08:22:49.036614 | 2022-04-19T20:28:21 | 2022-04-19T20:28:21 | 205,290,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | 2019NYPC달팽이게임.cpp | #include<bits/stdc++.h>
using namespace std;
ary[1001][1001];main()
{
int ary[1001][1001];
int n, z, i, j, x=0, y=-1, turn=1;
int num=1;
scanf("%d",&n);
z=n;
while(z!=0){
for(i=0; i<z; i++){
y+=turn;
ary[x][y]=num;
num++;
}
z--;
for(i=0; i<z; i++)
{
x+=turn;
ary[x][y]=num;
num++;
}
tu... |
10afd44af9b94f61f89b0cf490204befa34f35ee | 095eda43725d319cd95a4f830e0ddf4357a778c7 | /Engine/Source/Shared/Math/MaMat4d.cpp | dd7ce568c7211700c8011940eb505b88ddb7493d | [
"LicenseRef-scancode-public-domain",
"Zlib",
"MIT",
"BSD-3-Clause"
] | permissive | Psybrus/Psybrus | b9fb6a5f7c56ed35533babaed53165c9bf268c05 | 000ea00ffcccc5fe388eff66e388d2d5c94a104d | refs/heads/develop | 2021-01-20T11:43:56.290703 | 2016-11-01T09:48:29 | 2016-11-01T09:48:29 | 1,612,818 | 26 | 3 | null | 2015-12-13T00:03:29 | 2011-04-14T05:11:24 | C | UTF-8 | C++ | false | false | 14,027 | cpp | MaMat4d.cpp | /**************************************************************************
*
* File: MaMat4d.cpp
* Author: Neil Richardson
* Ver/Date:
* Description:
*
*
*
*
*
**************************************************************************/
#include "Math/MaMat3d.h"
#include "Math/MaMat4d.h"
#include "Math/MaVec... |
3e5d5a07833dc519e8ea0af648420c8c89209778 | 0de85e1107d1a82672fa8dc193f02c88ec89008e | /turtlebot3_deliver_core/turtlebot3_core_icra2017.ino | f6540741d4b095526374e44129a0ef9ddcf8e42d | [
"Apache-2.0"
] | permissive | ROBOTIS-GIT/turtlebot3_deliver | 0f92ddc5758c865ef3ad1b7755893233d62789d1 | 41b2a825fdc943989b13853d5c35b85b2328f1f9 | refs/heads/master | 2021-03-24T12:50:25.305988 | 2018-04-02T04:11:21 | 2018-04-02T04:11:21 | 91,346,988 | 25 | 14 | null | 2018-04-02T04:11:22 | 2017-05-15T14:24:35 | C++ | UTF-8 | C++ | false | false | 23,253 | ino | turtlebot3_core_icra2017.ino | /*******************************************************************************
* Copyright 2016 ROBOTIS CO., LTD.
*
* 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.o... |
1b7e9a421bd4314ef608632fc67ce6a53711f210 | 595acc22d4884ab28723ebfdfcee073f8b2175ad | /src/dustParticles.cpp | 77bf4ab79d83e50f8d1caa13724f9ddcccf703f2 | [] | no_license | martyf1y/ATasteOfTheMoon | c0101d647098df3d6731c6f6f7ed1d3d038fd1c0 | dab63310163a73af66b565e42020df40f5b427a6 | refs/heads/master | 2022-12-21T01:23:58.911418 | 2020-09-22T16:04:38 | 2020-09-22T16:04:38 | 297,409,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,135 | cpp | dustParticles.cpp | //
// dustParticles.cpp
// particlesForOF
//
// Created by Matt Martin on 2/07/17.
//
//
#include "dustParticles.h"
//------------------------------------------------------------------
dustParticle::dustParticle(){
}
void dustParticle::particleSetup(ofColor appNewColor, int appMoonWidth){
pos.set(0, 0);
... |
3ab4292baf3de8575506b345c9705d8852becdf6 | 26299fc076e99023a67b8f9ae1b61aee514d2927 | /model/model.h | 7abec1f85e998a24ac08f4e5ea8f7fbeb0bea82b | [] | no_license | MichalKnapik/spatula | 188245ed0d05af2604a3fea2b927612e309c5873 | cc6c922585c53436f4cb49555cb76cd3c7cc0b44 | refs/heads/master | 2021-01-19T01:43:22.022879 | 2016-06-21T08:16:17 | 2016-06-21T08:16:17 | 13,232,559 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,436 | h | model.h | /**
*
* Copyright (c) 2013-... Michal Knapik, ICS PAS
* Distributed under the GNU GPL v2. For full terms see the COPYING.txt file.
*
*/
#ifndef MODEL_H
#define MODEL_H
#include <string>
#include <set>
#include <map>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <cmath>
#include <vector>
#inclu... |
5d5b0c91c1bee4c0b12f43fb122b083ec49bf6b4 | 9ddf7896619dd43d1aaae1f69c2e3abc86dc99b3 | /src/graphic/engine/RendererObject.cpp | d0aadb00727e9d22a2ac1ee4ec6d3d3c6e041568 | [] | no_license | Protoxy-/Zappy | 794958f62fca14eaa1debbfc2307fb5baa7c3d24 | 63f7e876af5c590415433623c9c01320983f4ffe | refs/heads/master | 2021-01-10T16:08:13.550369 | 2016-01-04T22:23:57 | 2016-01-04T22:23:57 | 44,639,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,406 | cpp | RendererObject.cpp | #include "engine/RendererObject.hh"
RendererObject::RendererObject(GraphicCore const &core, MapManager *map) :
ARenderer(core)
{
int i;
int s;
_map = map;
_depthDec = _cord->get("depth.x") * -1;
s = _cord->get("depth.w");
for (i = _cord->get("depth.x"); i < s; i++)
{
_objEnv.push_back(new std... |
33fefdf1ec303c3089d8bca523beeaf8e090f420 | 6d2d6bdf04038dbafea14d56e63abe4cf37ebe1d | /src/PCRE2Plus.h | 33db629b4f01a47a10da4203fe93a308d18fedfc | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | FoxTeamFree/PCRE2Plus | ab6d238daf02d2cba72d7d83d79ff14d4d594396 | 4a43ce0c7e97611de7c28379c1f9803266c3fb15 | refs/heads/master | 2021-05-31T21:21:46.479688 | 2016-05-22T13:28:02 | 2016-05-22T13:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,537 | h | PCRE2Plus.h | /*
Copyright (c) 2016, Boying Xu 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 the following disclai... |
157c2bf7ea70620dbbeb0bec629c5a4e5e124968 | b9f7c7a87292c1a9c231ce89933ae9d4bc51f487 | /src/sst/elements/ariel/ariel_shmem.h | d22bd800c71a730bf77403dd4af15b91f3cbea39 | [
"BSD-3-Clause"
] | permissive | sstsimulator/sst-elements | 3a8db475a7a6cbd4c2a5d737c32718752da9797a | 68cdb3ac843750705805653b3fdcd4b015e84089 | refs/heads/master | 2023-08-17T03:30:24.145168 | 2023-08-16T13:58:07 | 2023-08-16T13:58:07 | 43,475,440 | 85 | 145 | NOASSERTION | 2023-09-12T13:59:11 | 2015-10-01T02:57:18 | C++ | UTF-8 | C++ | false | false | 10,102 | h | ariel_shmem.h | // Copyright 2009-2023 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2023, NTESS
// All rights reserved.
//
// Portions are copyright of other developers:
// See the file CONTRIBUTORS.TXT in the top level directory... |
27a7b1e0bd724857f360800ae14c8a8ae36c6d5d | de180332655fa375a377118e71eb402fc4ecc880 | /第十届蓝桥杯/Aincrad's original solutions/G.cpp | 9ec2a320d9ed4761986976aee1d212490cb0e19f | [] | no_license | Ain-Crad/Algorithm-and-DataStructure-Practice | 037ab3dcb3abe178cef3d5c8a5f505decf46211e | cd9b6ba975061bfbe5d032dc215be47150697547 | refs/heads/master | 2023-03-14T09:39:04.306996 | 2021-03-09T16:22:29 | 2021-03-09T16:22:29 | 146,992,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | G.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <cstring>
using namespace std;
const int maxn = 1e5 + 5;
int n, m, t;
vector<int> d[maxn];
int p[maxn];
bool vis[maxn];
bool ok[maxn];
int ans = 0;
int main(){
//freopen("in.txt", "r", stdin);
cin >> n >> m >> t... |
2876f7417fbeac40d77a2105afc3eb2d506c41bf | 85bf2f967216dc49a9a8af71207039dbdbee6577 | /BOJ_DP/10844.cpp | e8d2938fc09a4c75828c8b47bbc952f454451f53 | [] | no_license | iSwanGit/BOJ_Study | 70a7481a50f19a83834566e1546c89767ec0e247 | 0c20d6a9afbcee7a69dec31ded06f1beae68b722 | refs/heads/master | 2020-03-28T06:07:44.780733 | 2018-10-11T14:44:14 | 2018-10-11T14:44:14 | 147,811,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 826 | cpp | 10844.cpp | // easy stairways
#include <iostream>
#include <cmath>
using namespace std;
int main(int argc, char* argv[]) {
int n;
cin >> n;
int dp[101][10];
//dp[1] = 9; // 9*1
//dp[2] = 17; // 12 23 ~ 89, 98~10 dp1-1 + dp1
// dp[3]= 32
// dp4= 61
// 끝자리에 따라 결과가 다름!! >> 끝수별 분할
dp[1][0] = 0; // not starts 0
for (int ... |
976077134779ae0098e5a3e45393bd6c7d887d9d | e20306ac36d0dc96178d61008aaf3b51fe70d792 | /Blatt_1/list.cpp | a3bbdf7ad215274ecf6b7b49c4a83cc749f33220 | [] | no_license | danielki/CUDA | c8d7752d579bbb802c9949b1abf4bf32cfd1b35d | a16e4f44d3e440353938ec5e367031734cf9fa0e | refs/heads/master | 2021-01-23T11:55:45.019941 | 2011-05-30T21:45:23 | 2011-05-30T21:45:23 | 1,613,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,963 | cpp | list.cpp | #include "list.h"
#include <stdlib.h>
#include <stdio.h>
const unsigned int memory_size_le = sizeof(listElement);
const unsigned int memory_size_l = sizeof(listElement);
list* createList()
{
list *l = (list*)malloc(memory_size_l);
l->firstElement = NULL;
return l;
}
void addBegin(list *l, int va... |
5c27160505f5d135f4bcf2a7f875243edfd81b41 | 0c879c9116738d4168cba25e4eac07aee098c457 | /Code/StateMachine_Servo/StateMachine_Servo.ino | 6e427d455e672c5b8a428ca636add367821a37be | [] | no_license | tomasdecamino/CursoArduinoIntermedio | bfd34fa4b0817a854296f7e51aae1dab0f6ef347 | ee8da742ccb07e091ae3436af87663a18852f5b4 | refs/heads/master | 2020-05-18T04:34:57.571130 | 2019-04-30T02:38:21 | 2019-04-30T02:38:21 | 184,178,168 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,262 | ino | StateMachine_Servo.ino | struct node {
//pointer to action function, returns new state
uint8_t (*actionDef)();//pointer to action function
};
//State Machine Objet
class TStateMachine {
public:
uint8_t currentState = 0; //state of thee machine
node *nodeSet; //array where actions are stored
//object constructor with n state... |
0a15ea2f3f2fdd15c049137c356807025a9e742d | d2311ff68f9b72647a282bc76ba23bf8cb11fd37 | /LORAXFiles/src/UART.h | fc3b217e98ffa4bf8e8919b3a219f0b5baa649e9 | [] | no_license | OBD2capstone/LORAX | 5b756dbcbed952d0a59b109005bf46ef6b03e678 | 577aabff938a3b6a66485f7ef9682a7c2b1d53d6 | refs/heads/master | 2021-01-10T15:00:59.923280 | 2016-05-03T17:09:05 | 2016-05-03T17:09:05 | 52,825,909 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,271 | h | UART.h | //####################################################
//#Saturday, 17.Januar.2015 made by Lars C. Schwensen#
//####################################################
//#################################################################
//#This file handles the UART functionality #
//#DEVICE: BeagleB... |
13391c50bc254a354fdff52f8ace1e873862ff32 | d7a97521b6a2c8d745e5686cbd64a5563dadfd09 | /Storm/src/message.h | 30ef852df420b450b6a4a2a394ff9da8ec77c3c1 | [] | no_license | kaustav-das/storm-mimic | 96d33096b2f747de87fefd3455df42f0ed510167 | be8878c80f8d60949fd632ca72e593acc6fb9140 | refs/heads/master | 2016-09-13T01:00:08.019698 | 2016-05-08T16:27:41 | 2016-05-08T16:27:41 | 56,592,503 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 193 | h | message.h | /*
* message.h
*
* Created on: 08-May-2016
* Author: Kaustav
*/
#ifndef MESSAGE_H_
#define MESSAGE_H_
class Message
{
public:
int id;
int count;
};
#endif /* MESSAGE_H_ */
|
85694b18123c0d280fb02f29d7a9741ee8d8e9b0 | 07d52b6e44d27f85a89326eb4e452308c278da40 | /DepthStencilSetting.cpp | c8e931a1460d1c6342ac324526018504f8e4eb6f | [
"MIT"
] | permissive | HeckMina/CGI | 0eb238fa906c79d9aeb64c127c9b60a735903626 | 976dfe064ec8021ef615354c46ca93637c56b8c6 | refs/heads/main | 2023-05-08T03:44:34.865458 | 2021-05-28T10:02:54 | 2021-05-28T10:02:54 | 349,279,629 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 32 | cpp | DepthStencilSetting.cpp | #include "DepthStencilSetting.h" |
574edcdb92bcbf6c61f39301776ad1fd0eba3966 | 111c3ebecfa9eac954bde34b38450b0519c45b86 | /SDK_Perso/include/graphicsxp/Include/Modeler/Animation.inl | 10559a423b06170119182089c81d9e7e76a75693 | [] | no_license | 1059444127/NH90 | 25db189bb4f3b7129a3c6d97acb415265339dab7 | a97da9d49b4d520ad169845603fd47c5ed870797 | refs/heads/master | 2021-05-29T14:14:33.309737 | 2015-10-05T17:06:10 | 2015-10-05T17:06:10 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 6,473 | inl | Animation.inl | inline void SetToMax(Vector3& v1, const Vector3& v2)
{
v1.x = std::max(v1.x, v2.x);
v1.y = std::max(v1.y, v2.y);
v1.z = std::max(v1.z, v2.z);
}
inline void SetToMax(Quaternion& v1, const Quaternion& v2)
{
v1.v.x = std::max(v1.v.x, v2.v.x);
v1.v.y = std::max(v1.v.y, v2.v.y);
v1.v.z = std::max(v1.v.z, v2.v.z);
v1... |
44c17d2743066495e9e5364d8b5c03e5305d7189 | e22c8227a01ee0ed2c1c95bac039e9303bcefc54 | /DataImage.cpp | 9615b3daec4430f7d253a834d0d0903a8e05dcd0 | [
"Apache-2.0"
] | permissive | Ded-Mozila/ReceiveInformation | 3b4fe2095eae5063401ced2155f17a0351f96451 | 36aa3deab21794802a60e4bc0fbc07ac8184b336 | refs/heads/master | 2016-09-10T20:33:12.117959 | 2015-06-06T08:43:49 | 2015-06-06T08:43:49 | 30,942,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,902 | cpp | DataImage.cpp | #include "DataImage.h"
////////////////////Class DataImage //////////////////////////////
DataImage::DataImage(const string strDir, int H):hour(H)
{
Open(strDir,hour);
}
void DataImage::Open(const string strDir, int H)
{
ps.OpenFile(GenNameFile(strDir,genName(H,"ps")));
ts.OpenFile(GenNameFile(strDir,genName(H,"ts"... |
8e23c7f1c7721dc15660924045048cb75c67025e | 6a174bf3b779ae22960130170c6fcc2930ec82bb | /James Moran Tutorial 04 Exercise 1/main.cpp | 7122183b0d8854847cce0d7386d7a0f56b127d79 | [] | no_license | FioKron/CGP---Tutorials | 83c7c048f7d383e1daf1981124e764d28bb85908 | 180689fba85373931afccb131a16078b972a2b68 | refs/heads/master | 2020-12-24T06:37:29.923561 | 2017-01-09T15:54:56 | 2017-01-09T15:54:56 | 73,468,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,276 | cpp | main.cpp | #include "Game.h"
#include "Input.h"
#include <iostream>
int main(int argc, char* argv[])
{
// For handling game and input logic:
Game* GameReference = new Game();
Input* InputReference = new Input();
// For Tutorial 4, Exercise 1: To move the bitmap with a transparency key:
int CurrentMonsterPosition... |
33c10959488c3e41558b006d88196488d051e1b6 | db97411cf36356e29f66e0376c87498007e626c5 | /T1/PollingServer.cpp | 5ceec474034481d6e463d2b9b10f3504c3147cba | [] | no_license | nicolasnascimento/RealTimeSystems | 8deb96978eab355398c6ce11f676a4b06372af38 | cf2c1e5198476626ac0b348ef0bf70d572517816 | refs/heads/master | 2020-12-25T14:38:37.535126 | 2016-10-25T16:37:16 | 2016-10-25T16:37:16 | 66,402,365 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,284 | cpp | PollingServer.cpp | //
// PollingServer.cpp
// T1
//
// Created by Nicolas Nascimento on 23/09/16.
// Copyright © 2016 NicolasNascimento. All rights reserved.
//
#include "PollingServer.hpp"
PollingServer::PollingServer(const unsigned computingTime, const unsigned periodTime, const unsigned deadlineTime): PeriodicTask(computingTime,... |
c4b7623c2219330e9f4d3c695858af90774b5ccf | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /TileCalorimeter/TileSvc/TileByteStream/src/TileBeamElemContByteStreamCnv.cxx | 0ecea833775f5d9b6f9546768165b55e58dbc69d | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,718 | cxx | TileBeamElemContByteStreamCnv.cxx | /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
// Gaudi includes
#include "GaudiKernel/StatusCode.h"
#include "GaudiKernel/DataObject.h"
#include "GaudiKernel/IRegistry.h"
// Athena includes
#include "AthenaKernel/StorableConversions.h"
#include "AthenaKernel/errorcheck.h"
#include "... |
dc396de1a95f77d04e466cadd4d600207b17290c | 696903fb332a6a3a036c781270f4fdff54699ec4 | /examples/4 Collision/Game.hpp | e46fa626591ad5f889654790741af8d96ca39ca0 | [
"MIT"
] | permissive | johnmarinelli/anax | 0adf7c54579bc53bd670e272a39f2219f137b3ab | 5f1d246595a3fbd250217f61f1257bcb6cbe0fc0 | refs/heads/master | 2021-01-16T23:13:32.982440 | 2014-03-20T02:53:47 | 2014-03-20T02:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | hpp | Game.hpp | #ifndef ANAX_EXAMPLES_COLLISION_GAME_HPP
#define ANAX_EXAMPLES_COLLISION_GAME_HPP
#include <map>
#include <SFML/Graphics.hpp>
#include <anax/anax.hpp>
#include <BaseGame.hpp>
#include <Systems/AnimationSystem.hpp>
#include <Systems/SpriteRenderingSystem.hpp>
#include <Systems/MovementSystem.hpp>
#include <Systems/C... |
ef08d538f70e8f45d5d211350d26997602aa8be0 | 2e482aa0e5236f1b29abdd73d623577db20ec390 | /BattleTank/Source/BattleTank/TankBarrel.h | 8e46d64cc543840fa5df68f9888eeab898ba32cc | [] | no_license | UkeleleTutorials/04_BattleTank | d5e1d47221dc4d2c317d5cd3c95dcfb953a652d7 | 27154fb69c3b8018aaff853d90e0d17f231a92a1 | refs/heads/master | 2020-03-23T08:12:57.690773 | 2018-08-13T10:08:55 | 2018-08-13T10:08:55 | 141,314,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | h | TankBarrel.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/StaticMeshComponent.h"
#include "TankBarrel.generated.h"
/**
*
*/
UCLASS(meta = (BlueprintSpawnableComponent))
class BATTLETANK_API UTankBarrel : public UStaticMeshComponent
{
... |
ae7714f1e8fbbe42d63d949dee045d0ce9db5653 | 1e697e7413837764073b97b5f1354049ab15c8d8 | /DFS_list.cpp | db17f4ea5e25a47095f1bc4af6a1c228e3cef4a5 | [] | no_license | MarufHamidi/Algorithm_Codes | 07ad4d8b7a83aa65917ce8c9bf31e67b671c78d0 | a7f58862b23084225240392c79ec4565656441bb | refs/heads/master | 2020-05-17T14:50:04.625711 | 2014-02-20T19:31:53 | 2014-02-20T19:31:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,994 | cpp | DFS_list.cpp | #include<iostream>
#include<cstring>
#include<fstream>
#define WHITE 0
#define GREY 1
#define BLACK 2
using namespace std;
fstream fin("graph input.txt");
int total_ver;
class Stack{
char ch[80];
int tos;
int size;
public:
Stack(){
tos=-1;
size=80;
}
void push(char c){
... |
d8c8220db4eaaddfff5c7781dd0430d3966e5477 | e9f3806cbe706a3d9e57b9308f5a90f6202ec764 | /analysis/cpp/src/make-histograms.cpp | 7cde2c5f0dfac52d2edb3df6c0bd5d8ee5587ed1 | [] | no_license | dantrim/mucoll-sandbox | a1b2cb2e19c02f166e6518ab2b9287ca8d15f6c9 | e441bc46336cdda08d479fc32a9ee477950ccc51 | refs/heads/main | 2023-08-11T08:04:27.178405 | 2021-08-09T19:07:19 | 2021-08-09T19:07:19 | 387,249,895 | 0 | 1 | null | 2021-08-05T20:48:38 | 2021-07-18T19:03:38 | C++ | UTF-8 | C++ | false | false | 6,649 | cpp | make-histograms.cpp | //std/stdl
#include <iostream>
#include <string>
#include <sstream> // std::stringstream
#include <map>
#include <vector>
#include <memory> // std::unique_ptr
//ROOT
#include "TROOT.h" // gROOT
#include "TCanvas.h"
#include "TH1F.h"
#include "TChain.h"
#include "TFile.h"
//////////////////////////////////////////////... |
1968c3c1d98e9fb9403d71030b83faad3ed68f50 | e6c7e7b2955c88aaaaf109ec207335b254551faf | /krizic kruzic/game.cpp | cb28478d017a306365eedb74721d5d80edff84f1 | [] | no_license | AlphaLeaper/nesto | 1301b43b9c45be0deaecd83980d138acdd799d72 | b0c59d3726d70dc0d85f0803559a4694cb3395c8 | refs/heads/master | 2021-01-04T12:26:43.177771 | 2020-02-14T16:24:24 | 2020-02-14T16:24:24 | 240,549,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cpp | game.cpp | #include "game.h"
#include <iostream>
game::game()
:
xTurn(true),
isRunning(true)
{
for (int i = 0; i < 3; i++)
for (int i2 = 0; i2 < 3; i2++)
grid[i][i2] = 0;
}
game::game(bool xTurn)
:
xTurn(xTurn),
isRunning(true)
{
for (int i = 0; i < 3; i++)
for (int i2 = 0; i2 < 3; i2... |
84c98e111d8cbb72d340a7e858ed4eab0f612ae7 | cca84eff983acc43989a082eb8466ee57fc5218b | /arr.cpp | 6cb897f28150ac0b7693841ad1ba78a6b05ed959 | [] | no_license | hantv3/c_plus_plus_beginer | 68b5707df2db0844c866606ece30dc104ad24144 | c3d333d1cffe71cc01b8f5126cb3b41f6ce1ecb8 | refs/heads/main | 2023-08-28T21:36:26.009724 | 2021-10-25T16:18:37 | 2021-10-25T16:18:37 | 416,167,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | cpp | arr.cpp | #include<iostream>
#include "Employee.cpp"
using namespace std;
class Student{
};
int main() {
Employee e(1, "Kien", "Hoang", 1000);
cout << "Id: " << e.getId() << endl;
cout << "Name: " << e.getFullName() << endl;
cout << "Salary: " << e.getSalary() << endl;
return 0;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.