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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40e82669b6d6618c8c81f810730802160b113144 | 8413273bab84228dad6ff5247f6d581b7796d142 | /sample/sdl/bomberman/PlatformerObject.h | 088db1c98a62f6f81523edfde4673a5403df064f | [] | no_license | pdpdds/yuzaos | 91b6f5bb51583da3827594489fc700821bc5cd6a | ce3b6d0907f7be470fcbc408382a20e2b75e9ef2 | refs/heads/master | 2023-05-01T09:51:21.007740 | 2023-04-27T08:37:42 | 2023-04-27T08:37:42 | 289,303,507 | 28 | 5 | null | 2021-03-20T14:58:37 | 2020-08-21T15:30:10 | C | UTF-8 | C++ | false | false | 1,484 | h | PlatformerObject.h | //
// SDLGameObject.h
// SDL Game Programming Book
//
// Created by shaun mitchell on 19/01/2013.
// Copyright (c) 2013 shaun mitchell. All rights reserved.
//
#ifndef __SDL_Game_Programming_Book__SDLGameObject__
#define __SDL_Game_Programming_Book__SDLGameObject__
#include <SDL.h>
#include "GameObject.h"
class... |
a2050215e8aa56b200b10a6db422cbc01251ab15 | beb4e2be58abe6112cbd13f1173084f62e2439e7 | /p2/Cuasi-Práctica 2/Parser.cpp | d9e7f4b65e2af47d04e034b363735493da2ef869 | [] | no_license | adlopor/Redes | 3de81a3d2151700c0d73ef7d533e7b3aca01096a | 7f6f5109fe880de7de319cec2320b0c152bc0dac | refs/heads/master | 2020-08-08T15:07:06.115126 | 2019-10-09T07:53:53 | 2019-10-09T07:53:53 | 213,854,975 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | Parser.cpp | void parser(char * linea_comandos, std::string fichero_usuarios){
char opcion[256], resto[256];
int aux;
sscanf(linea_comandos, "%s %s", opcion, resto);
if(opcion == "REGISTRO"){
sscanf(resto, " -u %s -p %s", usuario, password);
if(registro_usuario(fichero_usuarios, usuario, password)){
std::cou... |
9f2fc1c22d0d4a649ca143303b8f339169c963ae | 7cfde5f55477a33232f218e877037b07b55f689e | /src/scoreboard/overlay_scoreboard.cpp | 41ecfcff41d35dab93c90e51bb1557b36a57b436 | [] | no_license | libretro-fork/daphne-libretro | aa90a9581962e2433fbfb86a2912e50e3c2952b5 | dad8599a204b0f917126180c4be115cb0ba85814 | refs/heads/master | 2020-03-16T23:49:48.575743 | 2018-05-12T14:20:46 | 2018-05-12T14:20:46 | 133,092,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,213 | cpp | overlay_scoreboard.cpp | #include "overlay_scoreboard.h"
#include "../video/video.h" // for draw_string
#include "../main_android.h"
#define OVERLAY_LED_WIDTH 8
#define OVERLAY_LED_HEIGHT 13
void OverlayScoreboard::DeleteInstance()
{
delete this;
}
void OverlayScoreboard::Invalidate()
{
m_bNeedsRepaint = true;
}
bool OverlayScoreboard::... |
8aa30fb795953279e851ce428f7a575e37767860 | dee25a9d518640f21148900cd16af45d24ffcf2d | /Skechs/RN4020connecttest/RN4020connecttest.ino | acc35dcc80daa4d8c7d8c64abf52cb7cb738c769 | [] | no_license | shingokawaue/arduinoSketch | 49ff218c38818bb23363db136d252e7a19521c96 | 9c89856edcf0e2846982d1a36b6ee2beb1f56c58 | refs/heads/master | 2020-07-24T05:13:41.085476 | 2019-09-11T13:20:15 | 2019-09-11T13:20:15 | 207,811,805 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,158 | ino | RN4020connecttest.ino |
const int swichLED_Pin = 4;
bool beforeConnection = false;
String str = "";
//初期化
void setup() {
pinMode(13,OUTPUT);
pinMode(swichLED_Pin,OUTPUT);
Serial.begin(9600); //USBのやつ 9600bpsで通信開始
Serial1.begin(115200); //DIGITAL0番,1番ピンをシリアル通信で使用,RN4020(シングルモードBluetooth smartモジュール)と通信開始
// シリアルストリームが開いていないときには、何もしない:
whil... |
4295a642f62f12869eaf2c48c5854fec45c0b252 | 5673c02f4c6ddf9722c6afe53db40cd2674bed01 | /ALL/1065.cpp | 65d8a9c4d8ff6d4fbe14ce4ad49fdd22e7d797de | [] | no_license | weegwangjin/baekjoon | 5f42a4cd9091007d1299bee610b581dafe62a5c5 | b2e857eca48d4c799a7f4103af4c043a3160a530 | refs/heads/master | 2021-01-12T06:25:24.198968 | 2017-12-26T05:59:33 | 2017-12-26T05:59:33 | 77,357,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | cpp | 1065.cpp | #include <iostream>
#include <string>
using namespace std;
bool ishansu(int n) {
int bak = n / 100;
n -= bak * 100;
int sip = n / 10;
n -= sip * 10;
int one = n;
if (bak + one == 2 * sip) return true;
return false;
}
int main()
{
int num;
cin >> num;
if (num <= 99) {
cout << num << endl;
return 0;
}
in... |
355bb11b5cf9e7dd324a2cba1ab785c3a44f75f3 | 8cad8abc1ea14bcc0080f52594b4eeb814504507 | /Src/EB/AMReX_WriteEBSurface.cpp | 75a0421c94debf020ab305306bcd8a0db5912534 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | AMReX-Codes/amrex | 627370aa29f112bee3c32223b58998d3a31cf388 | de7c6189623bc3ba178a380e703e3173f33f78ef | refs/heads/development | 2023-09-01T02:12:15.348574 | 2023-08-30T17:01:15 | 2023-08-30T17:01:15 | 89,738,953 | 457 | 416 | NOASSERTION | 2023-09-14T07:12:15 | 2017-04-28T19:37:00 | C++ | UTF-8 | C++ | false | false | 2,078 | cpp | AMReX_WriteEBSurface.cpp | #include <AMReX.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Geometry.H>
#include <AMReX_MultiFab.H>
#include <AMReX_MultiCutFab.H>
#include <AMReX_EBFArrayBox.H>
#include <AMReX_EB2.H>
#include <AMReX_WriteEBSurface.H>
#include <AMReX_EBToPVD.H>
namespace amrex {
void WriteEBSurface (const BoxArray & ba, const Di... |
14418789f71fc33a2c1f1772517c5a93170a1e89 | 4065c8f9ea9b8dfa52cc029a7d3f3402c40638c6 | /TPS/Modal.h | d8f28cad3f44eb213c7d999390e401fad6987ec6 | [] | no_license | yongdono/Panasee | 4fd5ffa048aa4d12e745464736b8811a08fb17d1 | cade89049e22c8866aa9f04dabbbb9388f3e99cd | refs/heads/master | 2021-08-31T11:22:04.899654 | 2017-12-21T03:51:56 | 2017-12-21T03:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,083 | h | Modal.h | // Modal.h: interface for the CModal class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MODAL_H__6CD9FCB8_068F_4BEA_BB44_C5DD2D726CF6__INCLUDED_)
#define AFX_MODAL_H__6CD9FCB8_068F_4BEA_BB44_C5DD2D726CF6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 10... |
2e8a9c07944ff33db37a2513fb4088843449f745 | 4787ec00fc613eaa77256f35056bc6ad32a177dd | /course_work/Problem_1/IReader.h | 254677194454759a1133e60313ebdf661de10fc6 | [
"MIT"
] | permissive | pavelhristov/cplusplus | ad1c63b060a0ceedff6f7b8f0561837b2fe3f0ce | 3731815fd5681cbc53b4415e2df2f42fc74aaef1 | refs/heads/master | 2020-06-07T07:10:33.291003 | 2019-06-20T17:30:17 | 2019-06-20T17:30:17 | 192,958,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 193 | h | IReader.h | #ifndef IREADER_H
#define IREADER_H
#include <string>
#include <vector>
class Reader {
public:
virtual std::vector<std::string> readLines(int linesCount) = 0;
};
#endif /* IREADER_H */
|
f97196e106a509c55eac690362b62d72d1f4bfad | 30e1b23df7b8e024758ce44fbf5e759fbae81d2b | /tests/ut/common/graph/testcase/ge_graph/ge_reg_unittest.cc | 48e6a069386c942e2b309d45ea081a662442afad | [
"Apache-2.0",
"LGPL-2.1-only",
"MPL-1.0",
"MPL-2.0-no-copyleft-exception",
"GPL-2.0-only",
"BSD-3-Clause",
"AGPL-3.0-only",
"MPL-1.1",
"MPL-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leonwanghui/graphengine | dd730f91d64bb9a047e06aa9bffdde9e591ab0fc | 534a45c714fbddf344f1260100f48b9e66735b53 | refs/heads/master | 2022-12-04T18:57:15.957663 | 2020-08-29T06:37:07 | 2020-08-29T06:37:07 | 291,641,909 | 1 | 0 | Apache-2.0 | 2020-08-31T07:10:12 | 2020-08-31T07:10:11 | null | UTF-8 | C++ | false | false | 4,364 | cc | ge_reg_unittest.cc | /**
* Copyright 2019-2020 Huawei Technologies 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.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
8738e754a0c263b2b7011a4f463a5ee003e838cc | 09b612b846f15e4a7571d8d7797a8cb152e5994b | /utils.h | 90fdbbb82ef5722e61005c1d7934fb09eb8ecd5c | [] | no_license | anatcruz/FEUP-AEDA-UghEats | 26cdca48c999c3d2eef31dfc2cf1ffe217d43538 | b69b8d703630656bf3515d74f4959aa7c20f4e20 | refs/heads/master | 2021-02-03T23:48:33.277758 | 2020-01-04T20:01:38 | 2020-01-04T20:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,996 | h | utils.h | #ifndef AEDA_UGHEATS_UTILS_H
#define AEDA_UGHEATS_UTILS_H
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <map>
using namespace std;
/** Checks if a string is made up exclusively by numbers.
* @param str is the string... |
f1f5b64cdb0b44e1c532e07fff2ee5b6fd5777b0 | af2f5806cdb788749a9987a4294a8e270aab3ec8 | /Project/09_SnakeBite/Class/ItemManager.h | 3a51f392e129b1f4a471c32d5e0a060f9171e862 | [] | no_license | pdpdds/SDLProgramming | 65f53bf7a7d28952780a06b4a1b80b4a80aeea95 | f69683aa41908f8f1b3b80b7076ca0e7908f59da | refs/heads/master | 2021-01-18T22:35:12.116696 | 2020-12-31T06:22:53 | 2020-12-31T06:22:53 | 37,397,842 | 12 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 575 | h | ItemManager.h | /**
@file ItemManager.h
@date 2013-03-03
@author 심재환(sim436@gmail.com)
@brief 아이템을 생성, 정보를 가지고 있는 클래스
*/
#pragma once
#include "common.h"
#include "SnakeGameObject.h"
class Point2D;
class ItemManager : public SnakeGameObject
{
private:
Point2D* pos; ///< 아이템의 위치
int inc; ///< 아이템의 종류(증가치)
public:
void Init... |
e79e647e5245d8eef568517787682873b0b3afcb | 0af827799bb94af1de233c01a67fa819d94be254 | /question4-algorithm/question4-algorithm.cpp | 30561bbfbb45e64c49587d3d674f89b17ad6f78e | [] | no_license | aJoohongKim/stack-permutation | d296462c41990776102950b6f1dd93fb5cdb8c54 | 87e778b5e9fa6d1a86261e61fc6d987273b5d703 | refs/heads/master | 2020-05-05T06:35:09.853933 | 2019-04-06T05:52:51 | 2019-04-06T05:52:51 | 179,794,089 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,904 | cpp | question4-algorithm.cpp | // question4-algorithm.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
//
#include "pch.h"
#include <iostream>
#include <vector>
#include <queue>
#include <stack>
using namespace std;
int *base = NULL;
// https://www.geeksforgeeks.org/stack-permutations-check-if-an-array-is-stack-permutation... |
5250e444e46db552d67c6e22c0aa6b8f1fd1f66c | 1f932eed26f7b214755d00ceedd49b48cc287c91 | /include/Basic/Types.hpp | 35f2c16433d5b558766ce0ea04410f2bdf95a51a | [
"MIT"
] | permissive | IrisTechnologiesOfficial/Edea | 1d897a3a313cccdc3b1d541e5f601b51102e2133 | 252a47a32dcbf466e045363883dd00c9b2af6b38 | refs/heads/master | 2020-07-29T21:28:48.058534 | 2019-09-23T23:47:30 | 2019-09-23T23:47:30 | 209,968,149 | 3 | 0 | null | 2019-09-21T23:21:22 | 2019-09-21T10:45:19 | C++ | UTF-8 | C++ | false | false | 949 | hpp | Types.hpp | //Copyright 2019 Iris Technologies, All Rights Reserved
#pragma once
#include <cstdint>
/**
* @typedef u8
* Unsigned 8-bit integral type */
typedef std::uint8_t u8;
/**
* @typedef s8
* Signed 8-bit integral type
*/
typedef std::int8_t s8;
/**
* @typedef u16
* Unsigned 16-bit integral type
*... |
b496d44eccd13859f5238066d7c79d23eed49a6a | 733de464662408d2ed3fa637b0c7ecdc7c281c0a | /device/devices/mouse/imouse_device.h | e9233836f94ba70ffd33d0c1149e04b18a5602d4 | [
"MIT"
] | permissive | aconstlink/snakeoil | f15740eb93d3e36b656621bb57a0f7eb2592f252 | 3c6e02655e1134f8422f01073090efdde80fc109 | refs/heads/master | 2021-01-01T17:39:53.820180 | 2020-02-23T20:56:36 | 2020-02-23T20:56:36 | 98,117,868 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | h | imouse_device.h | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#pragma once
#include "../idevice.h"
namespace so_device
{
class SNAKEOIL_DEVICE_API imouse_device : public idev... |
d1eaf4dfbf79382563bbb4656fa8e432de58dc6c | 8f671c2622ec2c4910c868b00b6d325a70679797 | /tests/auto/cpp/users/tst_usersprofilebanner/tst_usersprofilebanner.cpp | 7b38253381b55d605ad4ca7e6d956cc3ee8a98af | [
"BSD-3-Clause"
] | permissive | qt-users-jp/twitter4qml | 0f90582c8a2a0e9e8ebed92011df4b53883c1260 | 31f34a56ff392058772b0643b34dc7943aebba32 | refs/heads/master | 2021-01-20T19:13:21.264123 | 2015-04-17T03:47:25 | 2015-09-05T00:22:43 | 69,147,462 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,587 | cpp | tst_usersprofilebanner.cpp | /* Copyright (c) 2012-2013 Twitter4QML Project.
* 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 li... |
412926f9ca5d6e92cb8ca18cb3201eba3ac0ebf8 | 3aa317f44322d3b4a9b46fa7a79f889ea373e2aa | /Project/03. Tool/TestSceneMaker.h | 88a38674da1854bdb3d690d13cfe937570105346 | [] | no_license | oung/MapleStory-1 | 11580c7ee28337e0ba8f2cb70dcb54ab1c106f26 | 3ddbbbcd7c20a0bf835e724046be1072908b9bae | refs/heads/master | 2023-08-11T11:03:52.630096 | 2021-10-07T14:00:39 | 2021-10-07T14:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 70 | h | TestSceneMaker.h | #pragma once
class CTestSceneMaker
{
public:
static void init();
};
|
4da4765eaa4189397dca7f6106943ed285361ca9 | 4f63be3e3611466511742491cb18797ebcfd9f57 | /shouyou/common/LibHNLobby/HNLobby/ChildLayer/GameExitChangeLayer.cpp | 78ad1f5d2c96bcadd766329ef7be11474a484fb5 | [] | no_license | xubingyue/wulejiu | 0a9083c08270b453dff316cc827d943908572559 | ee71a1e299b700436f01c3acab7e4617826b9f85 | refs/heads/master | 2020-05-24T06:38:40.276805 | 2017-03-30T05:54:12 | 2017-03-30T05:54:12 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,929 | cpp | GameExitChangeLayer.cpp | #include "HNLobby/ChildLayer/GameExitChangeLayer.h"
#include "HNLobby/PlatformDefine.h"
GameExitChangeLayer::GameExitChangeLayer()
{
onExitCallBack = nullptr;
}
GameExitChangeLayer::~GameExitChangeLayer()
{
}
void GameExitChangeLayer::showExitChoose(Node* parent, int zorder, int tag)
{
CCAssert(nullptr != parent... |
2cf7e9749af0e5b816968a70b0de25bf5ed06402 | d27d644ff889367d78ff9fa900d9335157313f4a | /DataLinkV5/devs/component/core_j3_broadcast_handler.cpp | a2a4627a806e5ef583bdfc1be1a9996f89fdcc06 | [] | no_license | ydar95/DataLink | 9f1206f59f3c61608b95aebb7438b177e9c6794b | 4cd90291d2184e8c57ab7a5dce8a89fbeb8185b5 | refs/heads/master | 2020-07-12T02:39:18.553134 | 2019-09-27T08:18:14 | 2019-09-27T08:18:14 | 204,695,358 | 0 | 3 | null | 2019-09-05T03:30:21 | 2019-08-27T12:11:00 | C++ | GB18030 | C++ | false | false | 1,967 | cpp | core_j3_broadcast_handler.cpp | #include "core_j3_broadcast_handler.hpp"
#include"../handler.hpp"
#include<algorithm>
#include"../time.hpp"
devs::component::CoreJ3BroadcastHandler::CoreJ3BroadcastHandler(Ju & ju, Digraph & _digraph, const std::string & _name, PortType _uid)
:JuComponent(ju,_digraph,_name,_uid)
{
BindSelfRecvSubTS();
}
void devs:... |
dd08549adc0525ff79a5297a1227648d021877d6 | 1339f7ba46065e24effd1d8a7197339931bb8f42 | /dp-18(canconstruct tabulation).cpp | a6e2906a6c8f1603ace962dc84affed9923c7e99 | [] | no_license | jahnavikolli/Dynamic.Programming | 5dd94564fa8ca4f287889244cc562e503410646e | b7f45ad1273c4fc0bc402ca6395dc7d3de5d681e | refs/heads/main | 2023-04-08T08:02:51.268630 | 2021-04-11T11:45:34 | 2021-04-11T11:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | cpp | dp-18(canconstruct tabulation).cpp | #include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
string s;
int n;
cin>>s>>n;
vector<string> v;
for(int i=0; i<n; i++)
{
string x;
cin>>x;
v.push_back(x);
}
int length=s.size()+1;
bool table[length];
... |
2cf5e39f3de29dbb6bb4cfb0226aa328c4fd95f9 | d9c613d803bb717861bf1f03591c053caf1d5c1d | /GestaoDePessoas/Pessoa.hpp | 16131abbf4707d0a3e948bd67b9d8bf3ac559bf6 | [] | no_license | CARVALHOMARCOS93/POO2021-1 | 6e3dca328a4c467db828883d4aa5c137055c8e74 | f539fa5ad7f065d9194b79a1ce3f323e6ad58ad4 | refs/heads/main | 2023-06-05T08:13:47.802361 | 2021-06-20T14:32:52 | 2021-06-20T14:32:52 | 347,510,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | hpp | Pessoa.hpp | //
// Pessoa.hpp
// GestaoDePessoas
//
// Created by Marcos Carvalho on 13/06/21.
//
#ifndef Pessoa_hpp
#define Pessoa_hpp
#include <stdio.h>
#include <iostream>
using namespace std;
class Pessoa
{
public:
Pessoa(){};
Pessoa(string n, string e, string t);
string getNome();
string getEndereco();
... |
b34c992c27c7000c4092471112944ffc35fa6914 | 52c98acab51455162deab677bfe5e211884989cf | /src/tests/class_tests/smartpeak/source/MetaDataHandler_test.cpp | df3822c69d60be80a7dd14156f0db8eabc54afa1 | [
"MIT"
] | permissive | ChristopherAbram/SmartPeak | 6d997d9e5e0b4982818983a7b95b1924309aaebc | 2851c4b43ad02e436a2dfe0f102ea0ce1e303484 | refs/heads/develop | 2023-03-18T15:32:48.045226 | 2021-03-15T19:48:25 | 2021-03-15T19:48:25 | 337,477,102 | 0 | 0 | MIT | 2021-03-15T19:51:14 | 2021-02-09T17:08:24 | C++ | UTF-8 | C++ | false | false | 7,092 | cpp | MetaDataHandler_test.cpp | // --------------------------------------------------------------------------
// SmartPeak -- Fast and Accurate CE-, GC- and LC-MS(/MS) Data Processing
// --------------------------------------------------------------------------
// Copyright The SmartPeak Team -- Novo Nordisk Foundation
// Center for Biosustainabil... |
7d07f6d8f12fc9ac8d028ba7d99612adbae34c28 | 7bc6c383bbaabc774124be09e9e3672c2f8c01af | /lab/lab20/lab20.cpp | ab12bc7bef41db5827c63028d670289b0e8f50de | [
"MIT"
] | permissive | xivol/AM-PRO1-2018 | 0fbdc44beafbea0584d177bd05213aef0f5eeafe | ffa187673912de1789b43567d474664b217d2d3a | refs/heads/master | 2021-10-24T10:13:59.045852 | 2019-03-25T07:31:26 | 2019-03-25T07:31:26 | 118,263,032 | 1 | 1 | MIT | 2019-03-25T07:31:27 | 2018-01-20T17:04:47 | C++ | WINDOWS-1251 | C++ | false | false | 1,739 | cpp | lab20.cpp | //
// Лабораторная работа №20. Рекурсия в списках
// lab20.cpp
//
#include <cassert>
#include <iostream>
#include <fstream>
#include "lab20.h"
using namespace std;
tlist *read_list(size_t length)
{
if (length == 0)
return nullptr;
tlist *begin = nullptr;
tlist::datatype da... |
2a6bc601add0d5e82f3d040fa669525cc543d3f8 | 9247cc17fbcf5ce96960e1b180d463339f45378d | /.LHP/.Lop10/.O.L.P/.T.Van/Colp2/matkhau/MATKHAU.cpp | 942eee7ea2d70a39578c6de30e799b5cfbf1d7c1 | [
"MIT"
] | permissive | sxweetlollipop2912/MaCode | dbc63da9400e729ce1fb8fdabe18508047d810ef | b8da22d6d9dc4bf82ca016896bf64497ac95febc | refs/heads/master | 2022-07-28T03:42:14.703506 | 2021-12-16T15:44:04 | 2021-12-16T15:44:04 | 294,735,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,218 | cpp | MATKHAU.cpp | #include <iostream>
#include <cstdio>
#include <string>
#define maxN 1000001
#define maxC 3
#define so 0
#define thg 1
#define hoa 2
#define minL 6
typedef char maxa;
typedef std::string str;
typedef long long maxn, maxr;
typedef int maxc;
str a;
maxn f[maxN][maxC], n;
maxr res = 0;
void Prepare() {
std::cin >... |
3005cc8fa449bc86a1ce3f821fa06e5650143dc6 | a210253de470807ae1ea6a98419cbb87438968b9 | /DXTK/VortexCube.cpp | bf0f7e096564355b75d5f2ed8bf3fb8edf928031 | [] | no_license | g2-pelns/CTP_FireSimulation | 0e9b10ecb70bb0bb9772b49245a6e359b82eee33 | 48ef742d00582a01695e2d501d34128d7fdbed28 | refs/heads/master | 2021-09-13T07:04:46.700140 | 2018-04-26T09:42:51 | 2018-04-26T09:42:51 | 130,504,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,653 | cpp | VortexCube.cpp | #include "pch.h"
#include "VortexCube.h"
VortexCube::VortexCube(ID3D11DeviceContext1* _d3dContext, DirectX::SimpleMath::Matrix _world, DirectX::SimpleMath::Matrix _view, DirectX::SimpleMath::Matrix _proj, int _x, int _y, int _z, bool _fire)
{
m_alive = true;
//Apply random fuel amount (80 - 100)
m_fuel = rand() %... |
e4e1de8fd669c8d097d92a40c817902e6181844f | aef414dba7a19a0471f1338727c7ee779aa5d6be | /SampleCode/9-3_Data.h | 9bdced794c45545824c29a895c1892227365869d | [] | no_license | Poissonfish/CptS122 | 7ee468a721c148c34b791bb3933fca4b1a40cb23 | 1547e6652ed6076d7dbd7c9299a73574ddb02d64 | refs/heads/master | 2021-05-05T07:31:32.723227 | 2018-04-10T17:15:38 | 2018-04-10T17:15:38 | 118,815,302 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | h | 9-3_Data.h | #pragma once
#include <iostream>
#include <fstream>
#include <string>
#include "Rational.h"
class Data
{
public:
Data()
{
}
Data(Data &newData);
Data & operator= (Data &newData);
Rational getRational();
void setRational(Rational &newRational);
private:
Rational mNum;
};
// ... |
19106fca20460e2721c0960c4d3f87bca6290c7f | 3037cad993cf2de015b17ceb1627f01ce11fc82c | /coreApp/src/psc/cblist.h | 81f090f834365d2985c8fb281d318efceb1fbd1b | [] | no_license | mdavidsaver/pscdrv-dev | 9dbd840fad8aaa9efc3d08b4321d61d4160a224a | f0ff311be6464c119b380c0f9a1dacbfd7a826c9 | refs/heads/master | 2023-03-31T12:54:11.975839 | 2020-10-17T18:46:17 | 2020-10-17T19:19:27 | 354,068,046 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,331 | h | cblist.h | /*************************************************************************\
* Copyright (c) 2014 Brookhaven Science Assoc. as operator of
Brookhaven National Laboratory.
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\**********... |
0bd224e35e1a7760224d9460b3a9929379d63f32 | d073625f26109523ef3441544c45b00442619df5 | /instrukcje iteracyjne cz.II/zadanie5/main.cpp | 1b49a3cbfc8b69e509a772e0431c0102af31afd4 | [] | no_license | DavidDeep/ZSTH-Programowanie | 74e281384a337833c2a51b0f1feba4d20471b448 | c060c4f18f50c6ac7ac97ba9cbebd3b9b6649101 | refs/heads/master | 2020-06-02T09:26:04.961063 | 2012-01-23T23:59:20 | 2012-01-23T23:59:20 | 3,250,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | main.cpp | #include <cstdlib>
#include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
int liczba1,liczba2,wynik,podanyWynik;
srand(static_cast<int>(time(NULL))); //zainicjowanie losowania
for( int i = 1; i <= 10; i++ ){
... |
a927ea635f6a507106532805832b4a08801be97e | 8dc1d507328d70c298adb8f3bacfc7e987f113dc | /include/mgcpp/operations/mult.hpp | 1ff63fbefc77e04b5c67bfbacee5ac82bb708b73 | [
"BSL-1.0"
] | permissive | juice500ml/mgcpp | 64de71872760bf31a403faefe6da072bb5c90d9c | 7dcaff0b84ecf8e5d77d57086eb1d7602a440938 | refs/heads/master | 2021-05-08T11:06:16.593717 | 2018-02-02T09:28:54 | 2018-02-02T09:28:54 | 119,879,165 | 0 | 0 | null | 2018-02-01T18:55:39 | 2018-02-01T18:55:38 | null | UTF-8 | C++ | false | false | 2,441 | hpp | mult.hpp |
// Copyright RedPortal, mujjingun 2017 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef _MGCPP_OPERATIONS_MULTIPLICATION_HPP_
#define _MGCPP_OPERATIONS_MULTIPLICATION_HPP_
#include ... |
104c79346795a07f831f0ed0270a3a0239134c36 | 629fff41e850e4413064e714205c7fe6b4fb69bf | /theAlgorithm/迷宫递归.cpp | 2a4cb2319e2803b3e35492705b36e27043d746e6 | [] | no_license | Jiangpeiqi44/vscode_1 | eb9b25de7e7af9b28f965fe2d6fc4676ecb1ff73 | 988c44815a26a9b922b6a3af8ce2b75f5e0de6cb | refs/heads/master | 2020-11-27T15:56:10.346160 | 2020-03-28T10:01:17 | 2020-03-28T10:01:17 | 229,520,175 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,665 | cpp | 迷宫递归.cpp | #include <iostream>
#include <stack>
#include <windows.h>
using namespace std;
struct Point
{
int X;
int Y;
};
//打印地图
void PrintPath(int arr[][10]);
//递归算法
int Maze(int arr[][10], Point cur, Point end);
//非递归算法
int next(int arr[][10],Point cur, Point end);
//动态效果
void Gotoxy(int x, int y); //光标移动到(x,y)位置
void Hide... |
98877279557058ac711b0b160eccdbba0b42f3b6 | 5d22c35cfee8e0ddfec52b24c495ded867ceecde | /exercise-2/reduceFractions.cpp | 27548c4cdc2686fd597ac58703f2570bc88598b3 | [
"MIT"
] | permissive | DerHumm3l/oop-cpp | 9b662f83c22dbe37031f2229b8d82b9354e34076 | 767ca4e553bfc037aa1fac3f41fdf0baf56a3304 | refs/heads/master | 2023-01-05T22:56:02.145154 | 2020-11-02T10:10:28 | 2020-11-02T10:10:28 | 264,649,966 | 0 | 0 | MIT | 2020-11-02T10:10:29 | 2020-05-17T11:33:53 | C++ | UTF-8 | C++ | false | false | 1,384 | cpp | reduceFractions.cpp | #include <iostream>
#include <string>
using namespace std;
int getGreatestCommonDivisor(int a, int b)
{
if (b == 0)
{
return a;
}
return getGreatestCommonDivisor(b, a % b);
}
void reduce(int numerator, int denominator)
{
int gcd = getGreatestCommonDivisor(numerator, denominator);
cou... |
192b36a89427cdada4f0c24af10e0d6df66938a2 | 3247375136dc768d0a4f5bca7341ab403a817327 | /C_Program_Code/version_5_0/locus_algorithm_5_1/src/quick_sort_5_0.h | 8eab2e2bf52494d7bd9f268afe49f072d9dc0606 | [] | no_license | creanero/locus | 79d155b005671d10a534973697c3581cd18058e6 | 833da2fb36c0dcc65e6ce4bac8ad4a94a2578f7a | refs/heads/master | 2022-05-25T18:08:23.629091 | 2022-05-10T16:48:31 | 2022-05-10T16:48:31 | 166,679,955 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | h | quick_sort_5_0.h | #ifndef QUICK_SORT_2_0_H_
#define QUICK_SORT_2_0_H_
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
//needed to define the structures
#include "struct_definitions_5_2.h"
//needed to allow for error checking routines
#include "error_checking_5_3.h"
/*int quick_sort_star (struct star **p_struct_star, long ... |
5f378a17d4ede47ba82eb87ce69e9fcb26055c6a | db91fbb10df982b40bbafed82b254e04ff35f2fd | /abstract-factory/concrete_product_b_y.h | 22ee522a71d10ab388d4154728cbb0ad7bf285c2 | [] | no_license | xulzee/design-patterns-cpp | 3d49b55ce36ee327663341ed6f238505271870c8 | 65b4d5c8d9f20641b6163b8ef14cb5f7b0caa8bc | refs/heads/master | 2021-05-17T10:07:44.502707 | 2020-04-20T11:26:47 | 2020-04-20T11:26:47 | 250,734,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | h | concrete_product_b_y.h | //
// Created by xulzee on 2020/4/17.
//
#ifndef DESIGN_PATTERNS_CPP_ABSTRACT_FACTORY_CONCRETE_PRODUCT_B_Y_H_
#define DESIGN_PATTERNS_CPP_ABSTRACT_FACTORY_CONCRETE_PRODUCT_B_Y_H_
#include "product_b.h"
class ConcreteProductBY : public ProductB{
public:
std::string GetName() override {
return "B-Y";
}
};
#... |
9ff8ecbddbc311eaaf507762c4a7c7d99949d7f3 | 1f66df2de800c6e46924a51d39d2be6aed481949 | /my_extend/src/a/a.h | b13d4be94eb453d269f41aedead0af5789a22a66 | [] | no_license | minhanghuang/FKCpp | 6969c17cd6bdd75933ea2be738dbf86aa3b04a41 | 53d2aa713fcafd275b3e8ccf98b8900a5be197e5 | refs/heads/master | 2023-03-25T02:42:19.003732 | 2021-03-24T06:55:50 | 2021-03-24T06:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | h | a.h | /*
* Copyright (C) Trunk Technology, Inc. - All Rights Reserved
*
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
*
* Written by Huang Minhang <huangminhang@trunk.tech>, 2020/12/4 4:50 下午
*/
#ifndef MY_EXTEND_A_H
#define MY_EXTEND_A_H
#include <iostream>... |
4d0e8e88ce99261a0174eedf3d6516fcfe651b9a | b1ac00d4a73bd18976316d77fd4c4b89c5e9f3b7 | /qualifier/book.cpp | bdac1f0cf6b903833f864da60ae2871ece081d69 | [] | no_license | Pratyush1014/CPP | 35b66b1bc1d877af7cf8a65f2106d72ce2d1e07f | 9f1fcb5e39fe11efa4eb9c30a391777701486d3b | refs/heads/master | 2022-06-05T04:05:14.079933 | 2020-05-03T09:05:45 | 2020-05-03T09:05:45 | 260,859,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | book.cpp | #include"iostream"
using namespace std ;
struct book
{
char * name ;
char * author;
mutable int price;
mutable int page;
mutable int edition;
};
main()
{
const book var = {"book","author",450,234,1};
cout<<var.name<<endl;
cout<<var.author<<endl;
cout<<var.price<<endl;
cout<<var.page<<endl;
cout<<var.edition<... |
22e59455799adfe97b34fbc9c416fa8098c753f7 | e4afc5df1a31132d4963b67ea9d5d4ca8cc9407a | /Plugin/sources/UnityAudioGrabber.cpp | d6fc53fbe69a0d9580cfb58f1ed2cfda365929a5 | [
"MIT"
] | permissive | mrayy/mrayGStreamerUnity | 8e1a201779f8f49498e28e408d5407cb0832cc3b | 83577f36f68858afcba23a53c96f4d5bf8c67cdd | refs/heads/master | 2023-09-01T11:57:28.270831 | 2023-03-20T02:57:19 | 2023-03-20T02:57:19 | 34,888,591 | 108 | 35 | MIT | 2023-09-11T11:46:12 | 2015-05-01T03:45:09 | C | UTF-8 | C++ | false | false | 1,972 | cpp | UnityAudioGrabber.cpp |
#include "stdafx.h"
#include "UnityAudioGrabber.h"
#include "IThreadManager.h"
#include "MutexLocks.h"
#include <cstring> // memcpy
namespace mray
{
namespace video
{
UnityAudioGrabber::UnityAudioGrabber()
{
m_mutex = OS::IThreadManager::getInstance().createMutex();;
_samplingRate = 44100;
_channels = 1;
_b... |
04c3839ca4ee3b8c0c952ceb8dadecf61ba6205f | e5ad5b35aee51bd58b05f86d797d6e9b02a12f44 | /DMOJ&MCPT/PHP/PHP.cpp | c92e5a99a8a687edb1ed251122b47c30f64f619f | [] | no_license | jtyliu/Competitive-Programming | 2c1b1d554e60c781b4aecd3ab0ff683decb23f04 | eb3a8071e84e9f495617c02e37bfa65b73382aa1 | refs/heads/master | 2023-01-19T19:39:23.700082 | 2020-11-22T02:01:29 | 2020-11-22T02:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | PHP.cpp | #include <bits/stdc++.h>
using namespace std;
int pointingTo[5010];
int main() {
memset(pointingTo,-1,sizeof(pointingTo));
scanf("%d",&n);
for(int i=1,a; i<=n; i++){
//Check if any are going into i
//If not i is not apart of loop
for(int j=1; j<=n; j++){
if(j!=i&&pointi... |
19daf6757469cc4664690d32f867b62e6bd08266 | e2f4959c4a6bd008c271294e6eae7ef0e207e8c6 | /28.cpp | a10f09031afb31a7750d48eb2b63b7a0b5748796 | [] | no_license | axknightroad/code-of-leetcode | e32789d85a1dd6f2e509fe499ac884b36448d0b2 | 56b134a7d68e903336006bc86f20901a822b8da2 | refs/heads/master | 2016-08-12T02:41:51.405829 | 2016-01-20T16:25:27 | 2016-01-20T16:25:27 | 47,251,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | 28.cpp | #include <string>
#include <iostream>
using namespace std;
int strStr(string haystack, string needle) {
if(!needle.size()) return 0;
if (needle.size() > haystack.size()) return -1;
for(int i = 0; i < haystack.size() - needle.size() + 1; i++){
for(int j = 0; j < needle.size(); j++) {
if (i + j > haysta... |
39886982dda41d214518550c69b6d66160ca09c9 | 076ba173f5b518977d30f4336c63b177a5a7f66d | /cases/adaptative_surfers/param/post/objects/surfer__us_1o0__surftimeprefactor_3o0/py/group/all/parameters.h | 979aea0eca5b6570c51ae5533ca06ab456ecd95a | [
"MIT"
] | permissive | C0PEP0D/sheld0n | a661b27ffee7b087731f0a3e9f92c2ee26d7d560 | a1b9a065cfaa2e3faf5a749f14201a84baa41ce9 | refs/heads/master | 2023-04-28T20:53:27.684636 | 2023-04-18T21:20:00 | 2023-04-18T21:20:00 | 421,041,396 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 626 | h | parameters.h | #ifndef C0P_PARAM_POST_OBJECTS_SURFER__US_1O0__SURFTIMEPREFACTOR_3O0_PY_GROUP_ALL_PARAMETERS_H
#define C0P_PARAM_POST_OBJECTS_SURFER__US_1O0__SURFTIMEPREFACTOR_3O0_PY_GROUP_ALL_PARAMETERS_H
#pragma once
// app include
#include "core/post/objects/object/post/group/all/prop.h"
// post member choice
#include "param/post... |
082f3fcd2c13174703f153c370c354d601692c02 | 3d8b9f4280f161f39c65bc0970a0e7522a36fad9 | /Kỹ thuật lập trình - Programming Techniques/C4/9.cpp | c6303a6f700e64edfb2313a214bc653c4db40f3a | [] | no_license | CaoHoaiTan/HCMUTE | 972f2ff27ed1bb9e299e2009b4ee681710a78055 | b643dfe2f7875e3809e19f078184e7a7fd011f08 | refs/heads/master | 2022-12-11T20:10:00.371946 | 2020-09-06T11:15:11 | 2020-09-06T11:15:11 | 293,289,417 | 0 | 1 | null | 2020-09-06T14:06:42 | 2020-09-06T14:06:42 | null | UTF-8 | C++ | false | false | 289 | cpp | 9.cpp | #include <stdio.h>
#include <string.h>
#define SIZE 1024
int isPalindrome(char s[]);
int main()
{
char s[SIZE];
gets(s);
printf("%d",isPalindrome(s));
return 0;
}
int isPalindrome(char s[])
{
int n=strlen(s);
for (int i=0;i<n/2;i++)
if (s[i]!=s[n-i-1])
return 0;
return 1;
}
|
7351603093ea0975c8e03443d7f1821cedb5dfd6 | 1c33b6fd7fbf966a961ccd679ad2ba344f2fc05f | /UVA/Princess Farida.cpp | 1e93441a1976edae931d1f8b2779f3dcc395c33a | [] | no_license | zim2510/Online-Judge-Solves | f57170e5bf14f339944079ed62bed01bdc5b27e3 | 949ab3cfba0cc7ec4ffaa6f2b3e5b0c517d9377a | refs/heads/master | 2022-01-07T10:23:12.653572 | 2019-05-19T11:30:58 | 2019-05-19T11:30:58 | 135,351,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | cpp | Princess Farida.cpp | #include <bits/stdc++.h>
using namespace std;
long long dptable[10000];
int sz;
int golds[10000];
long long dp(int ci)
{
if(ci>=sz) return 0;
if(dptable[ci]!=-1) return dptable[ci];
dptable[ci] = max(golds[ci] + dp(ci+2), dp(ci+1));
return dptable[ci];
}
int main()
{
int tc;
... |
9b4974bedd54503afbdacfc1edbf742ecf918516 | ac2d662df239581e80caff085a28158447fa584b | /UVA Online Judge/problem10755.cpp | f9573e1467cb126b02c97df16bf58e8cd6e94389 | [] | no_license | basimkhajwal/ProgrammingChallenges | 4283b8a22c8ac2ccd6c0db642c607e9a5f0a797c | 0f4ea3837a9085fc4fa4a9069b1e3fdfa124f442 | refs/heads/master | 2023-08-22T08:19:52.997699 | 2023-08-15T12:55:53 | 2023-08-15T12:55:53 | 72,464,921 | 0 | 1 | null | 2019-03-16T11:37:38 | 2016-10-31T18:14:39 | C++ | UTF-8 | C++ | false | false | 2,580 | cpp | problem10755.cpp | #include <cstdio>
#define ll long long
int main() {
int T, A, B, C;
ll grid[25][25][25], prefixSum[25][25][25];
scanf("%d", &T);
while (T--) {
scanf("%d %d %d", &A, &B, &C);
for (int i = 0; i < A; i++) {
for (int j = 0; j < B; j++) {
for (int k... |
72852f2819da195ec457062bff2b41bd050359ce | 5c7977bf9a81574010ab3ccafd28e22d048e9d32 | /9663.cpp | 0eb65091f212863107887a3c8c90ec6d1df8e324 | [] | no_license | PSKyun/Difficult | 0e483569faf1bd802e648278ffcf32d2bc553eab | 388c7a6694be13f299478e7fa03118801bc408b5 | refs/heads/master | 2022-11-21T13:34:37.699102 | 2020-07-17T11:25:38 | 2020-07-17T11:25:38 | 259,620,805 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | 9663.cpp | #include <iostream>
using namespace std;
int n,col[15],count;
bool promising(int i){
int k=1;
bool s=true;
while(k < i && s){
if(col[i]==col[k] || abs(col[i]-col[k])==i-k)
s=false;
k++;
}
return s;
}
void queen(int i){
int j;
if(promising(i)){
if(i==n) ... |
e0a24c1f44de7269b7de3347b50183533087cd96 | e5be4154ec50dfe2f9270ee6498f2529bedda77d | /buffer/buffer.hpp | 2c6fc590ad9fe48a948c179835ccad1432e4fc15 | [
"MIT"
] | permissive | Tommoa/Snippets | 78f7930ae4f4cdb419c3c13bc26a2fc9fa79e795 | ceaa29b1486615abdbab0e6a7ad152353d3a3ccc | refs/heads/master | 2021-01-25T06:44:31.070404 | 2018-04-25T11:14:12 | 2018-04-25T11:14:12 | 93,597,424 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,555 | hpp | buffer.hpp | #ifndef __SNIPPETS_BUFFER_INC_HPP__
#define __SNIPPETS_BUFFER_INC_HPP__
#include "../abstractions/allocators.hpp"
#include "../abstractions/global.hpp"
#include <ios>
namespace Snippets {
class buffer {
char* buf;
struct malloc : public Allocator {
void* allocate(size_t size, void* v = nullptr);
void* rea... |
e0619cbd78ae86dabae26918d4119aca8bdcf25e | 1e8c820fe672d3a7392c5bfa7213a662ddc6c59e | /cpp/helper/external_api.h | e447576b5d7995a854cbaf88d506cd1c26bb67f3 | [] | no_license | Biceeeeepss/meta_fastdl | ef7632ded34ef711c8f4fe1823892a3bff0f86c6 | 437aa33f54cff758af3860278afd35cce794bbfe | refs/heads/master | 2023-06-30T09:42:06.585210 | 2019-07-06T13:10:42 | 2019-07-06T13:26:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 684 | h | external_api.h | #pragma once
#ifndef EXTERNAL_API_H
#define EXTERNAL_API_H
// This is some "hacky" way to avoid multiple "zero as null" errors in metamod and hlsdk headers
#ifndef CXXTEST_RUNNING // cxxtest generated runner.cpp file for some reason causes compile time errors.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignor... |
ad3f85b64ab11f47aa3c38263681a707c3c02c2f | 5ac4f358eef507d47bf17767c36fc55e5bff08b8 | /board.h | ff60488cf409100f7442753294a45b6d519d1138 | [] | no_license | kamil0074/Reversi-CUDA | 6d9589848bd60630be3bda757f7ed6429dd2dc30 | a962d61f62517c65d965d1be6604989af9d22aa8 | refs/heads/master | 2020-05-26T02:16:33.320557 | 2018-03-09T15:59:32 | 2018-03-09T15:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,934 | h | board.h | #ifndef BOARD
#define BOARD
#include <iostream>
#include <list>
#ifdef __CUDACC__
#include "cuda.h"
#define CUDA_CALLABLE_MEMBER __device__
#else
#define CUDA_CALLABLE_MEMBER
#endif
struct cell_t
{
int first,second;
CUDA_CALLABLE_MEMBER
cell_t(int first,int second):first(first),second(second)
{}
};
using names... |
2ea37229347ef919ece233c88d07e87ee8968455 | a4fe99bd392f32d8ac91be42258e903fc2787f56 | /src/leetcode/206_reverse_linked_list.cpp | 22582e6524b8b9ea5c8be29841f1f761aee104dd | [] | no_license | rickyggg/leetcode_and_swordoffer | 4b1534baa532920b6dcb952e3f7f426af384ccea | 447d28e6162ee406df4ab784602fb389dfabf0c7 | refs/heads/master | 2023-06-09T04:37:53.111477 | 2021-06-27T07:28:35 | 2021-06-27T07:28:35 | 294,115,817 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | 206_reverse_linked_list.cpp | class Solution {
public:
ListNode *reverseList(ListNode *head) {
if (!head || !(head->next))
return head;
ListNode *first = nullptr, *second = head;
while (second) {
ListNode *tmp = second->next;
second->next = first;
first = second;
second = tmp;
}
return first;
}
... |
420184278aa6a37eb7d323e9f8906b20c6ae17f9 | 5f85b78564048ca205e52d07266e1b78fdc92cc2 | /test/test/Policia.cpp | 75d89fcc3952b5b0dab212e5596daa7b4b71a0a7 | [] | no_license | sendim/AedaProj2.0 | a20205d6605cf0a7c3ae8744e4451ac2533dea17 | a1b68c3dd722664bee1cc5ab1910089fd6ab4bfe | refs/heads/master | 2021-08-19T03:40:01.819980 | 2017-11-24T15:53:37 | 2017-11-24T15:53:37 | 111,933,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,802 | cpp | Policia.cpp | #pragma once
#include "PostosDeSocorro.h"
Policia::Policia(int numSocorristas, int numVeiculos, string local, double x, double y, int numCarros, int numMotos) : PostoDeSocorro(numSocorristas, numVeiculos, local, x, y) {
setNumVeiculos(numCarros + numMotos);
this->numMotos = numMotos;
this->numCarros = numCarros;
}... |
c6b842c56789b5db76ebcd7bc89d7eef16d4ca4d | d17d5053089151c676a8fcbe683f0334e0396c32 | /Project26/Check.h | 0fce6f12bfb7bc40713dcf230a4066388ec0bfd1 | [] | no_license | neonmag/Check | fec05493957877b6fc2d6e485e448b2ec8f5f1b0 | bac7ddbce9c2046185af36af62058d978e171556 | refs/heads/master | 2023-08-25T10:48:27.087340 | 2021-09-29T17:21:40 | 2021-09-29T17:21:40 | 411,766,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,707 | h | Check.h | #include <iostream>
using namespace std;
class Check
{
private:
char* str;
public:
Check();
Check(const char* str);
Check(Check& obj);
void Test();
void Output();
void Input();
const char* GetStr();
void SetStr(const char* str);
~Check();
};
Check::Check()
{
this->str = nullptr;
}
Check::Check(const char*... |
af49759e49c964471f9889e06832c647f32830c2 | 8dccfb43df8f8ac7d2d8a06717d378a231152bd7 | /CygniCompiler/StringBuilder.hpp | 12d728efecc91940e60ac11a46a3e567fbeef18e | [] | no_license | YanjieHe/CygniCompiler | b87612de4cc5e439e0eee848e2a82ef56686d5ea | c84ee5e039d5c79d87a354bfa995bc7a999a0508 | refs/heads/master | 2020-03-21T12:25:45.989757 | 2018-11-04T17:47:21 | 2018-11-04T17:47:21 | 138,551,718 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | hpp | StringBuilder.hpp | #ifndef STRING_BUILDER_HPP
#define STRING_BUILDER_HPP
#include <string>
#include <vector>
using std::vector;
using std::wstring;
class StringBuilder
{
public:
void Append(wchar_t c);
void AppendStr(wstring s);
void Clear();
wstring ToString();
private:
vector<wchar_t> characters;
};
inline void StringBuilder::Ap... |
c227aea940dcbccac616114568870e6d9f6f6b07 | fe43035ae28bdee729990660c5f35fe5329e9a1d | /HW9/0110813_09_33.cpp | 4606727b09f6f820294c9f9421330532234a3cf3 | [] | no_license | whereitisvc/DataStructure | 711333344c5cb3485d5412b462c67c3c56c823e3 | f0180f38d31638ea2f420b9d4a3edfb05d7c753a | refs/heads/master | 2020-03-28T07:32:15.501372 | 2018-09-08T06:29:31 | 2018-09-08T06:29:31 | 147,908,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,619 | cpp | 0110813_09_33.cpp | #include <stdio.h>
#include <conio.h>
#include <string.h>
#include "0110813_09_33.h"
typedef struct data
{
char name[100];
int priority;
}DATA;
int compare( void* p1, void* p2 )
{
int x1,x2;
x1 = ((DATA*)p1)->priority;
x2 = ((DATA*)p2)->priority;
if(x1>x2) return 1;
else if(x... |
4fb44280e0c7a268a1c0f20509e5c7fffdc4b82d | bc6b55224c05e7f662c4147d499989609ff8cd1c | /ZCWebServer/JsonRequest/IJSONRequestHandler.h | 895495fafef609555896070b134910b152a618f3 | [] | no_license | lossed1990/jinying | 76fb2aabfbc9ca240549a00046d02e2100cddaf4 | 0d4131d773ff3b2a872a37a87b29064ee32e9e80 | refs/heads/master | 2021-09-02T11:38:41.390743 | 2018-01-02T09:26:35 | 2018-01-02T09:26:35 | 114,993,525 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,130 | h | IJSONRequestHandler.h | #pragma once
#include <string>
using std::string;
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <boost/asio/streambuf.hpp>
using boost::asio::streambuf;
#include "document.h"
#include "writer.h"
#include "stringbuffer.h"
using namespace rapidjson;
#include "EncodingToolsClass.h"
#define CUR_MAX... |
a62b62e1a5e9c85c86c4d46c2b21af0c234ac87f | 92bcac8dc852edfac54afbb3d7864fb9b2766cbc | /example/main.cpp | 1afee905e655ad08eb07c7042afa114f4ad16d14 | [] | no_license | ForwardLoopLLC/amg8833 | 8305068658e50b8820b709d905d99e776fbaf5cf | 0e712093a1f5fb6f2cab50011ed3abc859e3aa9e | refs/heads/master | 2020-03-19T18:11:02.616673 | 2018-06-29T10:34:11 | 2018-06-29T10:34:11 | 136,797,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,465 | cpp | main.cpp | #include "amg8833/amg8833.h" //drivers
#include <stdlib.h> // getenv
int main() {
AMG8833 amg8833(getenv("AMG8833_BUS")[0] - '0');
if (amg8833.error()) {
printf("Error: AMG8833 did not initialize\n");
return 1;
}
// reset all registers and settings
if(!amg8833.resetInitial()) {
... |
8595a492007b45071aa7d1b58cedfd22a7360e95 | 1a03bbd8c602ee68a094f7ff5a35e59a3c28c756 | /include/lua_vm.h | 712a63a17a4ae1d8453cf3f881eb3ce2c549fe35 | [] | no_license | Joco223/Electronics | 95f563346dca4a0e72095ebb43edebeea1290784 | a13717241f7f75d8ce5bb40f06dbfff55f69261f | refs/heads/master | 2022-11-19T05:35:17.029089 | 2020-07-21T17:31:33 | 2020-07-21T17:31:33 | 280,533,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | h | lua_vm.h | #pragma once
#include "sol.hpp"
#include <string>
#include <iostream>
#include <array>
#include <vector>
#include <fstream>
#include <sstream>
#include "tile.h"
namespace luaVM {
void initVM();
void updateTile(tile& t, std::array<tile*, 8>& sTiles);
} |
f57eadd96b76e617f889980c6bfa41eb6de607e4 | 5b7e69802b8075da18dc14b94ea968a4a2a275ad | /DRG-SDK/SDK/DRG_BP_StickyFlame_classes.hpp | 04ecb5290b3b69a672c6566328ab539ed0195a88 | [] | no_license | ue4sdk/DRG-SDK | 7effecf98a08282e07d5190467c71b1021732a00 | 15cc1f8507ccab588480528c65b9623390643abd | refs/heads/master | 2022-07-13T15:34:38.499953 | 2019-03-16T19:29:44 | 2019-03-16T19:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | hpp | DRG_BP_StickyFlame_classes.hpp | #pragma once
// Deep Rock Galactic (0.22) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "DRG_BP_StickyFlame_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//--------------------------------------------------------------------------... |
b2a5a93621b1780405debdc3ac8e24cda5ca292c | ac9d24fedee3ca997f9fb036b43c7482c83b6be3 | /src/operators/source/backend/gdal_source.h | 4e28127470b79f433825910ff0f5819bf7a4552d | [
"MIT"
] | permissive | SoerenHoffstedt/raster-time-series | 80948fedaee03bbdd1364af51b52d897d241a210 | b6b763c741fa8655e42ec38ae6c3fe1524bb5d28 | refs/heads/master | 2020-03-28T14:15:54.259358 | 2019-04-03T09:16:47 | 2019-04-03T09:16:47 | 148,472,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,040 | h | gdal_source.h |
#ifndef RASTER_TIME_SERIES_GDAL_SOURCE_H
#define RASTER_TIME_SERIES_GDAL_SOURCE_H
#include "operators/source/source_operator.h"
#include "util/gdal_util.h"
#include "util/time_interval.h"
#include <gdal_priv.h>
#include <boost/date_time/posix_time/posix_time.hpp>
namespace rts {
/**
* Source operator loadi... |
bdcf0813e827da96d4010188c422bb08fa718695 | 54b4b6e7494ab4e133ec908a7832c3c0aadeb6ec | /main.cpp | 01346b790e0ab7db10458504ec4fa4373e3eb380 | [] | no_license | xxvms/Lab3 | d307cc14829128b84cd66c618228d1c6994a517e | ac8048a8a00c2799fcad43c9057525712255eb0b | refs/heads/master | 2021-01-02T22:59:38.902659 | 2017-08-05T15:47:52 | 2017-08-05T15:47:52 | 99,432,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,447 | cpp | main.cpp | #include <iostream>
/*
*
1. Create a Person base class with common attributes for a person (first_name, last_name, age, race, phone, as examples)
2. Make the age variable private
3. Make the phone variable protected
4. In the Person class, create a pure virtual function called OutputIdentity() that accepts no paramete... |
5091210c30a8f0c862849cdffe7be26d3fe30184 | 7311568cf895f7e2e79b81f805c970f7a0211294 | /clusterizer/miniBall.hh | 583ef32bef4de8c5a2fa7b3327686c5f630cd1e1 | [] | no_license | ggrocca/vcont-ssp | fe5f79946e37f89c518528bcec9b1d4e148fe2b5 | 84dd37542f27ef6d90dabc335b7e0b7d30c2f8ed | refs/heads/master | 2021-07-08T22:21:54.835511 | 2015-06-09T02:36:46 | 2015-06-09T02:36:46 | 106,338,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | hh | miniBall.hh | /* The following code is taken and adapted from BVH: https://code.google.com/p/bvh/ */
#ifndef MINSPHERE_H
#define MINSPHERE_H
#include "mtxlib.hh"
#include <math.h>
#include <vector>
#define radiusEpsilon 1e-4f
typedef vector3 Point3;
class miniBall
{
public:
miniBall();
miniBall(const Point3 &O);
miniBall... |
d971d0c7075cbb50110f6cc211c7008710b45c1f | 33f48429e074b4f52f42249e088b6f73e31b0a9b | /include/FileConstants.h | 48f3fc5349f84d0890fbf5b20c3cc56fd3ec26a6 | [
"MIT"
] | permissive | forthommel/pps-tbrc | 1e67cd04f47a35131fa019abfdabda23845e2a78 | fcfac644c948790db6c646db73b2f66270b38feb | refs/heads/master | 2020-12-24T16:32:27.898536 | 2015-10-31T17:42:38 | 2015-10-31T17:42:38 | 32,762,581 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,767 | h | FileConstants.h | #ifndef FileConstants_h
#define FileConstants_h
#include <stdint.h>
#include <stdlib.h>
#include <string>
#include <map>
#include <fstream>
#include "VME_TDCEvent.h"
/**
* General header to store in each collected data file for offline readout. It
* enable any reader to retrieve the run/spill number, as well as th... |
61aeb582dddc12e0e4748401bbb0e94c69bb227a | 3530657ad0df71dd18f16b4947be6f7fb4150341 | /Homework 5 - Self-Balancing Trees/Red-Black Tree(Incomplete).cpp | 07f8e7162a076c1c1cdd33b9038df4a39612f123 | [] | no_license | akatzuka/Algorithms-Practice | eb3fee07a71b26b4dca215302ea25e3ddbab9e44 | 4e02f4d3f66dd1397c9aa658ffd74426bb3200a5 | refs/heads/master | 2020-04-27T09:47:20.694035 | 2019-03-06T22:10:55 | 2019-03-06T22:10:55 | 174,228,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,139 | cpp | Red-Black Tree(Incomplete).cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <queue>
using namespace std;
struct Node {
int data;
Node *left;
Node *right;
bool red;
Node *parent;
public:
Node(int d, Node *p) {
data = d;
parent = p;
red = true;
}
};
void swapColor(... |
6be8a8156b741e782c72921470777edc40a41881 | dc7c38f1f91ab45c3047caf66c736454c429bc61 | /Lib/Source/Interpreter.cpp | 774f0303e680d5341bdf4cbebe69fd9886e7635c | [
"MIT"
] | permissive | RcCreeperTech/V3DLib | 83d76e2b252c3cc5143df4ea43aaf9c72642ad85 | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | refs/heads/main | 2023-07-17T18:21:20.855603 | 2021-08-21T05:02:22 | 2021-08-21T05:02:22 | 398,517,570 | 1 | 0 | NOASSERTION | 2021-08-21T09:28:05 | 2021-08-21T09:28:05 | null | UTF-8 | C++ | false | false | 16,240 | cpp | Interpreter.cpp | #include "Source/Interpreter.h"
#include <algorithm> // reverse()
#include "Common/SharedArray.h"
#include "Source/Stmt.h"
#include "Common/BufferObject.h"
#include "Target/EmuSupport.h"
#include "Support/basics.h"
namespace V3DLib {
using ::operator<<; // C++ weirdness
namespace {
Vec const Always(1);
// State ... |
b07708df812c0e9984fb77fc9f939c2418900d83 | 558b456f7bf3e763517a44e91833962c6bb4a85a | /demo/proj/base_classes/policies/serialization.h | f167ebf5198eb44c98bd3e1ccfda05396964428d | [
"BSD-3-Clause"
] | permissive | gui-works/opengl_gui | cdbbd13bb1b9d2de473a9649eb02fa2d0bdbc599 | be90af5d5c351e3b2ed3be5d9f6ba2cf07ef8130 | refs/heads/master | 2020-07-03T22:53:29.305888 | 2018-06-03T23:15:14 | 2019-02-20T23:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 921 | h | serialization.h | #pragma once
#include "code.h"
#include <cereal/archives/binary.hpp>
#include <cereal/types/unordered_map.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/array.hpp>
#include <sstream>
namespace code_policy
{
template<class...P> vector<char> serialize_into_vec(P &&...p... |
eea91d5b48b09d176134bb282242e69d379f1f42 | 316afd119d51b273a523f25844cfea4c6c820df7 | /score/src/mainScore.cpp | f1d055e92d530abe852e8e7cb66371a87371d26e | [
"BSD-3-Clause"
] | permissive | victoriapc/HockusPockus | 1232f8256c67a781b046cd026e04ab9191a8693f | 2130b462b0038a527061744ab7faf20c2996c04f | refs/heads/master | 2020-12-12T10:35:58.058950 | 2020-04-20T20:49:37 | 2020-04-20T20:49:37 | 234,106,668 | 0 | 4 | BSD-3-Clause | 2020-04-09T17:21:01 | 2020-01-15T15:09:11 | HTML | UTF-8 | C++ | false | false | 2,845 | cpp | mainScore.cpp | #include "Game.h"
#include "ROS_topicNames.h"
#include <ros/ros.h>
#include <std_msgs/Bool.h>
#include <iostream>
#include <vector>
#include <dynamic_reconfigure/server.h>
#include <score/scoreConfig.h>
ros::Subscriber _startSubscriber;
ros::Publisher _scorePublisher;
ros::Publisher _endOfGamePublisher ;
class NewG... |
df154bcde91f157f6890944eb0dfc73976216639 | 62134f077506e836e5b8025f2ea0b6a5557f7d1f | /ConsoleApplication2/LA.cpp | ea28bcf5d8a8f0e164a93431bae9edd2b2014f0e | [] | no_license | kang9kang/- | 190b1c31357560bab82d6451cec90abce28b185d | b18da17aeea33d340438aca1e5d19998c0a90264 | refs/heads/main | 2022-12-25T06:21:19.109536 | 2020-10-09T07:06:13 | 2020-10-09T07:06:13 | 300,542,887 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 13,244 | cpp | LA.cpp | #include <iostream>
#include "LA.h"
using namespace std;
LA::LA(const char* s) :fin(s), line(1), num(0), fg(0), ch('\0')
{
sin << fin.rdbuf();
txt = sin.str();
fin.close();
fin.clear();
}
void LA::scan()
{
int p = 0;
cout << " {\"ch\":[" << endl;
//读取第一个非空字符
do {
ch = txt[p++... |
ebb404330c0573b820ce0088202520a814385fa3 | 2394fba0f77ea69fd7c2c36f7752ead4a991a694 | /1erExParcA00815174.cpp | d3e6dab89fcbdfbaf3af2e76d847b8b29d0b2cdf | [] | no_license | newold12/Algorithms-design | 5dd56fb4e9e1247dd762bc53ccc3c07091184988 | 4cc6f81f05f60b5a03218c9ebef256c4c2624743 | refs/heads/master | 2022-02-13T07:04:44.859022 | 2017-10-26T01:12:09 | 2017-10-26T01:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,850 | cpp | 1erExParcA00815174.cpp | /*
Alumno: Gerardo Mauricio Gutiérrez Quintana
Matricula: A00815174
1er Examen Parcial
*/
#include <iostream>
#include <time.h>
using namespace std;
int n, m;
int terreno[20][20]; // Matriz original donde se plantaran las bombas
int terrenoAux[20][20]; // Matriz auxiliar
// Funcion que busca las minas en la mat... |
181336c9480a613367a9bc6fa1d7b92bb75d2a7b | 916eda757b1e239928011a46666e289072bbaeed | /Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_24Table.cpp | 2c03bb3cfbb53939a2a80c8517c0d44393466fe9 | [] | no_license | suisuisan/Atariya | bf7fa43b28e56f4d11a613371ed207a11a400839 | d68dae5ee4299cdd7677f2f05e958b9e1a0bb830 | refs/heads/master | 2021-01-25T13:48:22.339663 | 2018-03-03T17:01:17 | 2018-03-03T17:01:17 | 123,617,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251,088 | cpp | Il2CppCompilerCalculateTypeValues_24Table.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il... |
db0a0a7591778364d9656d234d87d11d160b22aa | 2b849aa758ba3137e9ec6ea5858f4281ac637348 | /src/world/objb/MtlBuilder.hpp | 9c07d8c9aa9c2095bd27767bde4332a29830d4cb | [
"MIT"
] | permissive | JiangKevin/ofxPlanet | 9dd948f99e5395d5b6f482c4b219f8634b8d3fed | fe364e83f4c0ec0f169df63ce989a88ae6328c07 | refs/heads/master | 2022-12-05T10:47:36.047470 | 2020-03-02T01:56:58 | 2020-03-02T01:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | hpp | MtlBuilder.hpp | #pragma once
#ifndef WORLD_OBJB_MTLBUILDER_HPP
#define WORLD_OBJB_MTLBUILDER_HPP
#include <glm/glm.hpp>
#include <string>
#include <vector>
namespace ofxPlanet {
namespace objb {
/**
* MtlElement is material information.
*/
class MtlElement {
public:
explicit MtlElement(const std::string& name);
... |
bda97c2644a481800581dc5766211a745cf6c881 | 5ce4f30b23fe55bfe4f1edab08e4625558536820 | /staticScheduling/staticDecomposition.hpp | 391186785f9bf3dc44146f42e44b07dd942bf7f7 | [] | no_license | rajuramj/Dynamic-Task-Scheduling | 113b3df28c1eb9a0453be7aa80a9fb419223f414 | 896332134b181c954e64ce57fb3325a2fd823e63 | refs/heads/master | 2023-06-11T08:50:41.618427 | 2021-06-12T14:35:22 | 2021-06-12T14:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | hpp | staticDecomposition.hpp | /**
header file: staticDecompostion.hpp
Purpose: to declare class variables and member functions of StaticDecompostion class
@author Raju Ram
@version 1.0 04/07/18
*/
#include <iostream>
#include <thread>
#include <vector>
#include <mutex>
#include <cstdlib> // for size_t
#include <utility> // std... |
56ac61ccf60b374c28ae61acfb5446120ea779ff | 02130234c005b6506b42d76ab92f209f5597143b | /2016 Plan/数据结构代码/第5章 数组和广义表/bo5-3.cpp | 957034a5037b7b0b93c234b9d765a2bdb45b3fdc | [
"Apache-2.0"
] | permissive | qinting513/Learning-QT | ccc08e09f8657fcf10583a9782961d764280bb8d | c7ed7a39c75d47bee7eb614d6e65018323c7ca93 | refs/heads/master | 2020-05-23T06:25:37.362918 | 2016-12-23T11:03:29 | 2016-12-23T11:03:29 | 70,233,226 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 753 | cpp | bo5-3.cpp | // bo5-3.cpp 三元组稀疏矩阵的基本操作(4个),也可用于行逻辑链接结构
void DestroySMatrix(TSMatrix &M)
{
M.mu=M.nu=M.tu=0;
}
void PrintSMatrix(TSMatrix M)
{
int i,j,k=1;
Triple *p=M.data+1;
for(i=1;i<=M.mu;i++)
{ for(j=1;j<=M.nu;j++)
if(k<=M.tu&&p->i==i&&p->j==j)
{ printf("%3d",(p++)->e);
... |
4faceab2aa42f95d3fd17c36151c1b77e664d7ed | e7a792081e9371c243295df2a5f1852b3552e156 | /Billiard Bubble/Classes/UI/Level.cpp | af15d94be5b05ed46044533059a94b1b330e0575 | [] | no_license | DustinJia/Alliance-Warfare | 7ed2fadcad6a52a15dbe34ec2b91b6d558dcf6ea | e444d0c90a6b888b9552e0ef2bdf4cfd81a955cd | refs/heads/master | 2021-01-01T15:44:36.385929 | 2015-11-04T21:47:22 | 2015-11-04T21:47:22 | 23,674,619 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,379 | cpp | Level.cpp | #include "Level.h"
#include "Menu.h"
#include "World.h"
#include "Interface.h"
#include "SimpleAudioEngine.h"
using namespace CocosDenshion;
CCScene* Level::scene()
{
CCScene* scene = CCScene::create();
Level* layer = Level::create();
scene->addChild(layer);
return scene;
}
bool Level::init()
{
i... |
ccb35f8074da128510e7deff6e322db8dacb9626 | ea13d5b49631b3fd8b528eea8abf9c754c15ab28 | /src/connect.cpp | f7eaaec8df877774dfb607cc87f3f38f2dc9ebf2 | [] | no_license | TheBestLogic/QNX_Resource_Manadger | 5757869d5564b894d801cc5b99e622fc32eb7573 | d5db128a4f666013318b38bc907a9c619e788fed | refs/heads/master | 2021-04-06T11:05:00.731807 | 2018-03-21T14:23:53 | 2018-03-21T14:23:53 | 125,324,159 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 5,166 | cpp | connect.cpp | #include "connect.h"
using namespace std;
using namespace DataSend;
//extern DoConnect doConn;
void DoConnect::CreateIN()
{
/*
* resmgr_attr_t resmgr_attr_IN;
dispatch_t *dpp_IN;
dispatch_context_t *ctp_IN;
int id_IN;
static resmgr_connect_funcs_t connect_funcs_IN;
static resmgr_io_funcs_t io_funcs... |
cec09aa7c082e7753a7212a974283c257c6f14fb | 271c4daa096c020fe57072a30251b10ccd7112f5 | /element.h | cb10e55f4e96081adc296a6d0efba06d1e7110c0 | [] | no_license | adriaanwm/485L3 | adedf0440839d1496c90024baa16138eb9e180d0 | 72132dc4e8b86a3280397b63c099fea3e4b01cab | refs/heads/master | 2016-08-12T07:40:18.547424 | 2016-02-28T03:07:11 | 2016-02-28T03:07:11 | 51,561,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | h | element.h | #ifndef ELEMENT_H_
#define ELEMENT_H_
#include <vector>
#include <iostream>
using namespace std;
struct element {
element() : touched(false), lowerCounts(0) {}
vector<int> upperLex;
vector<int> upperCover;
vector<int> lowerCover;
int lowerCounts;
bool touched;
int key;
int lex;
};
void dump(vector<element> ... |
bc00918ffdf586a383f271909d87a3a7995251fa | 9edcbf2646ff38ca2b85b8c45332e8b7806ee28c | /Headsoccer/class.h | 400b5d0cdf108c0b1dbea6ca9169cfaeb7f2bfb4 | [] | no_license | anhtuanng689/roboKick | 4aa79c8411e67cecdc12e501abdae996a24dd418 | 969422069d30ce0811eab924d1f02ce6e21cdf27 | refs/heads/master | 2021-02-13T11:50:24.232384 | 2020-03-03T17:11:06 | 2020-03-03T17:11:06 | 244,694,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | h | class.h | #ifndef CLASS_H_INCLUDED
#define CLASS_H_INCLUDED
#include <string>
#include <SDL.h>
class Painter{
float x;
float y;
float angle;
int width;
int height;
SDL_Color color;
SDL_Renderer* renderer;
#endif // CLASS_H_INCLUDED
|
1408bda73b0373ffd2bac89320d44667e3c3f9cc | 0243726f2168b61895ec23d1b1314aa4d968c925 | /client/TaskQueue.h | e9fbc8a34bf6fb9d47a7f47bad35291c8e992473 | [] | no_license | 3F/FlightSDC.RPC-WebSockets | 6eae6b2349c0d39efb7e65018af3746080fcd97c | fa73c59aa5de8e6bba0f1fc9e9062c40d339ae18 | refs/heads/master | 2021-01-21T08:12:18.221113 | 2013-07-07T16:03:11 | 2013-08-05T14:47:09 | 68,389,120 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,674 | h | TaskQueue.h | /*
* Copyright (C) 2001-2011 Jacek Sieka, arnetheduck on gmail point com
*
* 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 ... |
8ae5a7516277acbb3ee0efb8f6b062233e4ad5f4 | 48d64302d5873a404c299f271ecd9ee20d7d810e | /Game structure/combat_handler.h | d93816ceddcda8a278e496b6a0d4a593632f10be | [] | no_license | MFA8CL/OOP-Text-based-adventure-game-in-c-for-PHYS30672 | bf57b5ab59c54ef7e3a05385264d30dbff82485b | 50a6b97a4b2b9fdc0793d50767a0daba05346a9e | refs/heads/main | 2023-07-02T19:22:46.267707 | 2021-08-11T16:57:38 | 2021-08-11T16:57:38 | 395,045,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | h | combat_handler.h | #pragma once
#include "Enemy.h"
#include "player.h"
#include <conio.h>
class combat_handler
{public:
combat_handler();
~combat_handler();
int fight(enemy &e, player &p);
};
|
91e3586c5a1519de4c0e386b998d14541809f867 | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /cassandra/src/model/DescribeBackupsResult.cc | 60e88596168f4b702b46cb7be7ff663dfb737bf0 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 2,460 | cc | DescribeBackupsResult.cc | /*
* Copyright 2009-2017 Alibaba Cloud 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... |
177ea48ea28231f7cc75c03ef365ecb59efe801f | bc77b4119832adf303644d8d0a6b92aa752b5f8e | /An-Introduction-to-Programming-the-Internet-of-Things-(IOT)-Specialization/3. Interfacing with the Arduino/Week 3/Assignment.ino | 087e6566785a52c2ca7546928d4fa3985f19cd2b | [] | no_license | dhankhar313/Coursera-Courses | e20f3b57d115cb870b451e8f4d8914c2272cb2a2 | 1f5324d57172b7a1d0798d3c7b6f8cb4cf5e91ce | refs/heads/master | 2023-08-11T18:54:51.255866 | 2021-10-03T10:45:53 | 2021-10-03T10:45:53 | 293,840,411 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 736 | ino | Assignment.ino | #include <EEPROM.h>
void setup()
{
Serial.begin(9600);
}
void loop()
{
String buffer = "";
buffer = Serial.readString();
int address, data;
if (buffer.startsWith("read"))
{
address = buffer.substring(buffer.indexOf(' ') + 1).toInt();
Serial.print("Data:");
Serial.print(ad... |
e98c0097fe4da567131bde787d3729bf07698690 | b7e65ae41a8e46f1344da84b9510e5903286280d | /9012.cpp | 5a5a2ec9e6aa12972eed84142db00470d26f4644 | [] | no_license | RulLu16/baekjoon_problems | f0af80befba4b3ca47170d88001780a547dad141 | 594fb9a6f176f2c07da5343b4a2e6c80af6a3056 | refs/heads/master | 2021-11-20T21:12:42.553246 | 2021-10-06T06:22:35 | 2021-10-06T06:22:35 | 232,083,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | 9012.cpp | #include <stdio.h>
#include <algorithm>
#include <vector>
#include <iostream>
using namespace std;
int main(){
int t;
char temp;
int flag=0;
vector <char> v;
scanf("%d",&t);
getchar();
for(int i=0;i<t;i++){
while(1){
scanf("%1c",&temp);
if(temp=='('){
v.push_back(temp);
}
else if(temp... |
98127240c383847aba8edb6cb2e00184bff8e822 | 970aba56d1c56bcd88aca3dee72bdf46369af69d | /stack/linkedStack/linkedStack.h | 54e09c6bd3836792fa97e4c543c9bc4c525d38e7 | [] | no_license | zagreos/DataStructure | e370327552fbc675040e180c138733df8cc68773 | b5b8afbc47d457e248e8d3918f6506777f205efb | refs/heads/master | 2023-04-09T19:12:38.558069 | 2020-05-01T15:49:03 | 2020-05-01T15:49:03 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,285 | h | linkedStack.h | #pragma once
#include <iostream>
#include <sstream>
#include <string>
#include "myExceptions.h"
#include "stack.h"
#include "ChainNode.h"
template <typename T>
class linkedStack : public stack<T> {
public:
linkedStack(int initial_capacity = 10) {
stackTop == NULL;
stackSize == 0;
};
~link... |
b41584577ce6026cbfe7cb91ed276ecc23f0c6c2 | 8e6b39024c7a4b6e3447e737046f83a31bcf4fa9 | /src/pigmain.cpp | f44a8aef38ee17078b1702522b49f31d4e628b0b | [] | no_license | guptha-/birdypigs3 | f33ebfb3208c8f76bf7391e97af43fdfd9bafd8b | f5aea869afcdd2ec513876898dc8b56b8063eb89 | refs/heads/master | 2020-03-30T00:48:11.709665 | 2013-05-07T19:24:14 | 2013-05-07T19:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,101 | cpp | pigmain.cpp | /*==============================================================================
*
* Filename: pigmain.cpp
*
* Description: This starts off the pig's execution
*
* =============================================================================
*/
#include "../inc/piginc.h"
OwnStruct ownNode;
vector<O... |
464a1a866986d262c111e4703bf9e39ee7ae8237 | 7c8d05c31133dfebeb2be46c3ac4cbc532c903e3 | /source/pbr_demo/command_sort_key_generators.cpp | 0d6c8ecd8621e02983511765967cffd5971e4651 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | iCodeIN/thehalflingproject | 0a2c9fb3599560863050af2309688ae1b1e9f8bf | dd3c322f3ede8935766de6a85d438602e7c27887 | refs/heads/master | 2022-02-24T07:50:40.370283 | 2019-09-08T23:19:42 | 2019-09-08T23:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,688 | cpp | command_sort_key_generators.cpp | /* The Halfling Project - A Graphics Engine and Projects
*
* The Halfling Project is the legal property of Adrian Astley
* Copyright Adrian Astley 2013 - 2014
*/
#include "pbr_demo/command_sort_key_generators.h"
namespace PBRDemo {
uint64 GBufferSortKeyGenerator::GenerateKey(Graphics::MaterialShader *materialSh... |
c1ff4a0ad9f65ba248c84a5f0246bc434c378eaa | bf85d279332f0f54759919ffe366813038962f6c | /dwarfdecorator.h | ed9e308926beb5c4c646035060225a97f0cf1b21 | [] | no_license | KarinaSang/simple-rogue-like | 5412d19b5b9ae05620f040eac104c18550760fa6 | 493e4aadfb2b7953efac199beb5d2ec5952d08a9 | refs/heads/master | 2022-03-18T10:32:59.907519 | 2019-12-09T20:35:55 | 2019-12-09T20:35:55 | 198,051,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | h | dwarfdecorator.h | #ifndef DWARFDECORATOR_H
#define DWARFDECORATOR_H
#include "playerdecorator.h"
class DwarfDecorator : public PlayerDecorator{
public:
DwarfDecorator(shared_ptr <Player> p): PlayerDecorator{p}{}
void addGold(int) override;
};
#endif
|
405f4b9ce253dddb7df5eade2fe9728605a12e97 | 4a73b9fe1290e4a5c579c50c6f293fcbdabc3f04 | /day04/ex03/ClassIce.hpp | c61cef7085d039fa283310149d8a53032c905423 | [] | no_license | dimashipicyn/cppStudy | a87ed51db107f21f51e718746cabf358fe02a368 | f3ef4bf1d2e237d474d848afdbe8418fede0410f | refs/heads/main | 2023-08-29T06:56:11.821326 | 2021-10-06T09:03:59 | 2021-10-06T09:03:59 | 393,662,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | hpp | ClassIce.hpp | //
// Created by Lajuana Bespin on 9/10/21.
//
#ifndef CPPSTUDY_CLASSICE_HPP
#define CPPSTUDY_CLASSICE_HPP
#include "ClassAMateria.hpp"
#include "ClassICharacter.hpp"
class Ice : public AMateria {
public:
Ice();
virtual ~Ice();
virtual AMateria *clone() const;
virtual void use(ICharacter &t... |
ff9ffd574833a337b71f3a7f48921214490af830 | d7d32d142dbd8af66bc9e7e59096286eae0b08c3 | /example/chat/ChatClient.h | b99799f88e60d075140f302082328b53e13f8f2f | [] | no_license | xiaoqiangkx/dio | 272ecb419abb40c77c77a0e19b5071b45785aa4c | edfe8514d8bc2b38d473214aaadb0d7480b9fd34 | refs/heads/master | 2020-05-21T23:54:53.338158 | 2016-09-27T17:11:44 | 2016-09-27T17:11:44 | 65,309,999 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | h | ChatClient.h | //
// Created by parallels on 9/25/16.
//
#ifndef PROJECT_CHATCLIENT_H
#define PROJECT_CHATCLIENT_H
#include <boost/core/noncopyable.hpp>
#include <dio/net/LengthHeaderCodec.h>
#include <dio/net/TcpClient.h>
#include <dio/net/InetAddress.h>
#include <dio/base/Callbacks.h>
namespace dio {
class EventLoop;
class Ch... |
64676c746eef23df1ef91d677307b67114613aac | 1597c85e9178c9a703ee46056da7d354d717b38e | /src/queryinstrument.cpp | a6103924a8309141f0a23e7f6e56ffd77968b279 | [] | no_license | ciobaca/rmt-from-2019 | de7a09b3cd3e82fe2d00a1f08f3be141ea5958c8 | ccb24939fd30c11a9f9871f55567dc15b21c3e16 | refs/heads/master | 2020-06-18T02:38:13.886074 | 2019-07-16T12:57:01 | 2019-07-16T12:57:01 | 196,138,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,529 | cpp | queryinstrument.cpp | #include "queryinstrument.h"
#include "parse.h"
#include "factories.h"
#include "z3driver.h"
#include "log.h"
#include <iostream>
#include <string>
#include <map>
#include <cassert>
using namespace std;
QueryInstrument::QueryInstrument()
{
}
Query *QueryInstrument::create()
{
return new QueryInstrument();
}
void ... |
28a8c26ebe9192b2d2ec749815a2860daa0234a8 | 9dd29d031493354d594ca73c2e2dbbd2c048597f | /third_party/vss/GoogleVssAgent/util.cpp | 9824afa5a35340fddde87c1c7df87fb639a9d8e3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"MS-LPL",
"LicenseRef-scancode-unknown"
] | permissive | GoogleCloudPlatform/compute-image-windows | d28a5b150a8bd6e2cbc78edffb72ab5c5c59fde3 | 9706dcff5d5e6000121aac48ff11aaf5a1ee7d99 | refs/heads/master | 2023-08-17T12:05:18.058535 | 2023-02-17T01:37:26 | 2023-02-17T01:37:26 | 31,079,594 | 108 | 75 | Apache-2.0 | 2023-08-21T17:09:37 | 2015-02-20T18:57:42 | PowerShell | UTF-8 | C++ | false | false | 4,598 | cpp | util.cpp | #include "stdafx.h"
#include "util.h"
DWORD GetHardDiskNumberFromVolume(PCWSTR Volume,
std::vector<DWORD>* DiskNumber) {
HANDLE handle;
DWORD ret = ERROR_SUCCESS;
VOLUME_DISK_EXTENTS extents;
DWORD bytes_returned;
wstring volume_no_trailing_back_slash(Volume);
// All Win... |
c88b7c8a45bfda4a7c26900d4a83fca511c76ea5 | 50c2e632e04c86aca1be33dfe2b2671468456595 | /misc/hackerrank/csindia/keyboard.cpp | 49feef51ec8cda5885b10ac7d219de48061fb524 | [] | no_license | rohith2506/Algo-world | b413b4c4b572ec1d0c9539af526fa7edfa584444 | 064241d0c8f3ec43f9abc7905cab75214db1b9e0 | refs/heads/master | 2022-08-03T13:37:56.406913 | 2019-08-16T12:23:28 | 2019-08-16T12:23:28 | 24,947,086 | 0 | 0 | null | 2022-07-21T22:32:16 | 2014-10-08T15:28:36 | Python | UTF-8 | C++ | false | false | 572 | cpp | keyboard.cpp | #include <iostream>
#include <stdio.h>
#include <vector>
#include <cstring>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int t;
cin >> t;
for(int tst=0; tst<t; tst++){
string str1,str2;
cin >> str1 >> str2;
vector<int> letters(26,1);
for(int i=0;i<str1.length();i++){
int val =... |
a4252fa67a5c34aa637677b26b89146eb662dbd3 | 69e29020d31a1fdf23052ec57ccc247179c09be0 | /src/data.hpp | c0cea1ba5f0ce9a95bcdc3793bfc29819d7d60ed | [] | no_license | pgalindo-isart/ibl | 132fa40340597216bf931d162c9817db1bc330b0 | fc301d145c056212242be52b459effd6e4bea50a | refs/heads/main | 2023-03-11T03:07:24.020272 | 2021-02-24T15:36:00 | 2021-02-24T15:36:00 | 327,258,034 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 131 | hpp | data.hpp | #pragma once
#include "types.hpp"
namespace Tavern
{
extern float3 CandlesPositions[];
extern int CandlesCount;
} |
13607b267866687ebb5c4a3a62d47f7bcf485f7e | 4cd78346b16f83a7ff121ee1c3dd154fe8b4c6d1 | /cpp/isogram/isogram.cpp | 66e65e50848a6becec0b9b300f55c640a36fa69a | [] | no_license | Mufassir-Chowdhury/Exercism | 691a8dfb200a54f01fdb783a27748ae7402bb9bc | fdaae52ba91392d922b677c00f02d01aaa009dbe | refs/heads/main | 2023-02-26T04:23:00.526692 | 2021-02-04T17:16:44 | 2021-02-04T17:16:44 | 333,815,620 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | isogram.cpp | #include "isogram.h"
namespace isogram {
bool is_isogram(std::string input){
std::set <char> ordered_input;
for(auto character: input)
if(isalnum((unsigned char) character) and ordered_input.insert(tolower( (unsigned char)character) ).second == false)
return false;
return true;
}... |
ff7a2d3a6237d55a8659570a96f42b3beb2a65c1 | 43452d62da797640c517379268ee2a2df757ea70 | /include/lib/Engine/Rendering/Texture2D.hpp | 50932ccac8634f290c44c9b798b040508f78502c | [
"BSD-3-Clause"
] | permissive | wangscript007/UniEngine | 5b29141b988575ea688688c5cc87707d7b43c6d2 | 33246eba2fce4d040368ff9499b50195a249b9c9 | refs/heads/main | 2023-07-16T17:00:47.285053 | 2021-09-06T07:07:54 | 2021-09-06T07:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | hpp | Texture2D.hpp | #pragma once
#include <Core/OpenGLUtils.hpp>
namespace UniEngine
{
enum class UNIENGINE_API TextureType
{
Albedo,
Normal,
Metallic,
Roughness,
AO,
};
class UNIENGINE_API Texture2D : public IAsset
{
friend class Material;
friend class RenderManager;
friend class Bloom;
std::shared_ptr... |
4ce0109fff59ee74157d4daf9d676417001ccf9e | 62efc7dd0b95a4504ef77fa620008b284f552cb2 | /p1/ssdavis/SeansSrc/LongInt.cpp | 8e36256583a926907576b9b4d1bb93efb6dad8b4 | [] | no_license | shutAp/ecs60 | 0ef01524d1811c7e3457a6122aa909f32071fc12 | 3c7bb53ec2fcd26f73069a6ddf6c385c43f88032 | refs/heads/master | 2020-04-29T15:12:23.601215 | 2014-05-29T01:01:45 | 2014-05-29T01:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,070 | cpp | LongInt.cpp | #include <ctype.h>
#include <limits.h>
#include "LongInt.h"
#include "StackLi.h"
LongInt::LongInt()
{
digits.makeEmpty();
} // LongInt
istream& operator>> (istream &in, LongInt &rhs)
{ // digit are stored in reverse order!!!
char c = '0';
rhs.digits.makeEmpty();
ListItr <char> itr = rhs.digits.zeroth();
... |
cf44dcbc3ac44ab9d0335c50f0e3049c5bc060e8 | 101b515ed28375ead0c88d14ed31311c4d4c8f4c | /09-love-calculator/09-love-calculator.cpp | e9104de231b318d3e6d20e9d5143be7af2dd2ea6 | [] | no_license | bpieszko/programming_challenges_cpp | ea04577ea98e73a1bdc532dd444d40589f2580b0 | 6dcad6bd78ce0e56436a6f5565ddf4b7b58d139f | refs/heads/master | 2020-03-22T11:17:17.982421 | 2018-09-18T15:11:17 | 2018-09-18T15:11:17 | 139,961,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,262 | cpp | 09-love-calculator.cpp | #include <iostream>
#include <vector>
#include <algorithm>
void print_intro()
{
std::cout << "Love calculator - bpieszko" << std::endl;
std::cout << "Written as a part of /g/'s programming challenges." << std::endl << std::endl;
}
const long long prime = 31;
const long long mod = 1000000007;
int hash(const std::s... |
ad2d3c74dee3cec179c805d25936109b7d80a23a | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /paddle/phi/kernels/funcs/eigen/pad.cc | 8041fc4ae175ec9e68e8a393e5d5cc5ef7180b39 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | C++ | false | false | 2,814 | cc | pad.cc | /* Copyright (c) 2022 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 by applicable law or... |
3a561d7206b57f41de74c5a10d2cbd10adaf85d7 | fb4f925e03d5e31679d984bf3e74af4480157866 | /Disser/SVM/descriptor_svm_trainer.h | fe9e6c7899354f74e632bab81bab71787e1310cf | [] | no_license | nelenivy/mol_descr | f79402df29c801c6a47c57acddd3dd56510f305f | 0947fdc2521a14a29678c227291e5b2cc887a090 | refs/heads/master | 2023-02-12T10:13:23.934391 | 2023-02-01T22:32:12 | 2023-02-01T22:32:12 | 15,648,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,327 | h | descriptor_svm_trainer.h | #pragma once
#include "stdafx.h"
#include <utility>
#include <vector>
#include "opencv2/core/core.hpp"
#include "shark/Models/Kernels/KernelExpansion.h"
#include "element_with_index_and_id.h"
//namespace boost
//{
// namespace serialization
// {
// template <class Archive/*, typename T*/>
// void serial... |
7a28faa26bce2c8ff80983d4defa1fedd0bd2ec5 | 33bd7c6d8df57039ec636cbf62f02265e7b861fb | /include/h3api/H3Managers/H3HiScoreManager.hpp | 7fb6894b75251b33dc094fc2b4c60ce1371e6abb | [
"MIT"
] | permissive | RoseKavalier/H3API | 26f5bd1e2d63d1a61f762bba16a009ba33bf021f | 49c65f1e30fe82a2156918aa7e45349f91a8524d | refs/heads/master | 2023-08-18T14:07:00.214661 | 2022-11-14T02:27:17 | 2022-11-14T02:27:17 | 367,050,838 | 21 | 8 | MIT | 2023-08-06T16:55:05 | 2021-05-13T13:04:01 | C++ | UTF-8 | C++ | false | false | 1,515 | hpp | H3HiScoreManager.hpp | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... |
a61eace6e5230d5baeff1be045f7839920d02879 | fc73264e6a2632dc229962e2e55e8f7e51af646a | /._retired_/example/frame/concept/core/manager.hpp | 16d97134c3721378bdacaa80e09922b1564058fb | [
"BSL-1.0"
] | permissive | zodsoft/solidframe | 8b259b208bda99bd85029664d92a05a0f254420c | 136e913027cd94a54bff3dee4b0a6673f2123a7f | refs/heads/master | 2021-01-12T23:59:56.403982 | 2016-12-22T09:50:52 | 2016-12-22T09:50:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,979 | hpp | manager.hpp | // manager.hpp
//
// Copyright (c) 2007, 2008 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// 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 CONCEPT_CORE_MANA... |
2fe012ec826ad132b95507929c9259da78c79457 | 6aee64c18e277886580b447a6bacb404fb7212ed | /参考/智能主动防御系统/应用程序代码/Defender825/AdvanceSetting.h | 28e74f4c80841e1a886df90a0b607311e7b0e781 | [] | no_license | 15831944/information_security_invitational | acbbcc3b4bd8d373bbd15d4fbf7fac85a8dac83b | 361441f76a238f24853e970631591740c83a0cf5 | refs/heads/master | 2022-04-17T10:13:45.025461 | 2017-05-23T09:43:38 | 2017-05-23T09:43:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,816 | h | AdvanceSetting.h | #if !defined(AFX_ADVANCESETTING_H__EF06BC72_2555_4312_B1C5_CE0EAB9992FF__INCLUDED_)
#define AFX_ADVANCESETTING_H__EF06BC72_2555_4312_B1C5_CE0EAB9992FF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AdvanceSetting.h : header file
//
///////////////////////////////////////////////////... |
23fbb6816a170df14aaf4a4566420740780c88c7 | dad2f02cfb07c03acf5acda8830db0bed20a6f9b | /CompOutput.h | 3db8940c1b3e73cb4c1a058c361a4930ca0986fb | [
"MIT"
] | permissive | cdrttn/fragmon | 43784b61b3f4841b460e5ec776db51692335c77b | 77b1989a23f44cc12ff361ed6547e2ccd60a587e | refs/heads/master | 2016-09-06T03:47:19.148244 | 2013-04-14T20:04:10 | 2013-04-14T20:04:10 | 3,863,637 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,737 | h | CompOutput.h | /*
** Copyright (c) 2006 Christopher Davis
**
** Permission is hereby granted, free of charge, to any person obtaining a copy of
** this software and associated documentation files (the "Software"), to deal in
** the Software without restriction, including without limitation the rights to
** use, copy, modify, merge... |
f4a72d52654708f75efbde8f6045eeaa6db349b1 | 9f9660f318732124b8a5154e6670e1cfc372acc4 | /Case_save/Case20/case9/700/U | 5b69d8676837303752836a3d31cd1b8e7960f6ae | [] | no_license | mamitsu2/aircond5 | 9a6857f4190caec15823cb3f975cdddb7cfec80b | 20a6408fb10c3ba7081923b61e44454a8f09e2be | refs/heads/master | 2020-04-10T22:41:47.782141 | 2019-09-02T03:42:37 | 2019-09-02T03:42:37 | 161,329,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,324 | U | // -*- C++ -*-
// File generated by PyFoam - sorry for the ugliness
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "700";
object U;
}
dimensions [ 0 1 -1 0 0 0 0 ];
internalField nonuniform List<vector> 459
(
(0.0640304 0.0699852 0)
(-0.135283 0.011764 0)
(-0.128452 0.00422798 0)
(... | |
1644c150fb85c7aa9301d43e4cad750ea996f8a8 | d5a68a89c0ed9e3895f5a25ceacf92fee9e058bd | /Warehouse Manager/CDialog_CLass.h | 84e42d85f6097b0158f1494f913aaf224e89f7c5 | [] | no_license | uwitec/wavehouser | 1c3424a6cda5dd2e506fe75c018349a19c654168 | ff3555cf850e6868b00ea9661b5175f9e35db81f | refs/heads/master | 2021-01-25T08:55:02.667020 | 2013-05-21T02:24:48 | 2013-05-21T02:24:48 | 41,086,828 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 840 | h | CDialog_CLass.h | #pragma once
#include "CDate_Class.h"
#include "afxwin.h"
// CDialog_CLass 对话框
class CDialog_CLass : public CDialog
{
DECLARE_DYNAMIC(CDialog_CLass)
public:
CDialog_CLass(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDialog_CLass();
// 对话框数据
enum { IDD = IDD_DLG_CLASS };
protected:
virtual vo... |
cee5a90384fdbbb3b320ba5eb5c198e121ddf0e9 | 81a1367960cf88168ba38bccfdcd01e22b33a4fc | /include/nmtl/tnmcvec.h | 86d0d69161e9cdae9a5b81c7ed33a2dc75a4a22f | [] | no_license | RC-MODULE/nmpp | 3ade5fdd40f24960e586669febae715885e21330 | a41c26c650c2dee42b2ae07329f7e139c4178134 | refs/heads/master | 2022-11-02T07:56:09.382120 | 2022-09-21T17:34:38 | 2022-09-21T17:34:38 | 44,173,133 | 9 | 12 | null | 2022-04-28T08:42:55 | 2015-10-13T11:59:04 | Assembly | UTF-8 | C++ | false | false | 5,610 | h | tnmcvec.h | //------------------------------------------------------------------------
//
// $Workfile:: tnmcvec. $
//
// Векторно-матричная библиотека
//
// Copyright (c) RC Module Inc.
//
// $Revision: 1.2 $ $Date: 2005/05/03 13:22:40 $
//
//! \if file_doc
//!
//! \file tnmcvec.h
//! \author Сергей Мушкаев
//! \brief ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.