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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a14ec32f2c1064aee9f3e5595a34aac801fdac3 | 49d40cf9498ce02c614604a41f6b5bc0b5f77bc8 | /day10/exam6/exam6.cpp | 51ae66933214f1a27b994c07ca02c7b58a231cc5 | [] | no_license | gbox3d/c_study2017 | a2a1237a61d841f187497dd66a88f7ac137a26af | 9ee8f8df10cb03dcf0b65eb3bd85710a7af99fec | refs/heads/master | 2020-04-05T13:04:36.179679 | 2018-07-13T01:45:11 | 2018-07-13T01:45:11 | 95,062,916 | 0 | 5 | null | null | null | null | UHC | C++ | false | false | 379 | cpp | exam6.cpp | // exam6.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다.
//
#include "stdafx.h"
#include <string.h>
int main()
{
char szBuf[32] = "disco";
strcat(szBuf,"very");
printf("%s \n", szBuf);
strcat(szBuf, "-channel");
printf("%s \n", szBuf);
TCHAR wszBuf[32] = L"디스코";
wcscat(wszBuf, L"배리");
wcscat(wszBuf, L"체널");
return 0... |
73ee8f1d901af6a4b4584a8f7247deff4658cb32 | b38e79b60909104a069f3f9a8a0fab64adf07665 | /src/ivp.cpp | c2964fbaf1c22684d69ad210156db7e7acb29161 | [] | no_license | pyrrhicPachyderm/interaction-partitioning | ec8b157195f5fa853092c97b4390504425355699 | 8d08ccd69159b5b2970ddbf48d5f85df4ee10dbb | refs/heads/master | 2023-04-18T19:29:47.347692 | 2023-02-25T08:32:20 | 2023-02-25T08:32:20 | 398,422,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cpp | ivp.cpp | #include "ivp.hpp"
Eigen::VectorXd IVPStepFuncs::forwardEuler(IVPDerivativeFunc f, Eigen::VectorXd y0, double t0, double h) {
return y0 + h * f(t0, y0);
}
Eigen::VectorXd IVPStepFuncs::rungeKuttaFour(IVPDerivativeFunc f, Eigen::VectorXd y0, double t0, double h) {
Eigen::VectorXd k1 = f(t0, y0);
Eigen::VectorXd k2 ... |
4aa8c86b60282e6a1b07ae73cd122aa6b79adc86 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /iecp/src/v20210914/model/DeleteConfigMapRequest.cpp | 189c81ca65b9477e49c095560191a3b3e91caafd | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 3,365 | cpp | DeleteConfigMapRequest.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
a1c75d835a8bea97e3d7e0626403c57eabed1a45 | c395d588ab517c53339d120d0a1b6a007a375587 | /header/custom_class/my_custom_smartpointor.h | 520c1ab8b7ae578fb83293952086366bc7ef8d9c | [] | no_license | HungXum/C-TestProject | f3266fed3b367e4772554e6c7bbec7d1fc89d194 | b6f55c3b0dab3871380044a38c4d49f3a5ca3dfe | refs/heads/master | 2020-06-05T02:36:05.230299 | 2019-07-18T08:43:39 | 2019-07-18T08:43:39 | 192,284,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,103 | h | my_custom_smartpointor.h | /*自定义智能指针*/
#ifndef SMARTPOINTOR_H
#define SMARTPOINTOR_H
#include <iostream>
using namespace std;
template<typename T>
class smartpointor {
//输入输出运算符必须是非成员函数---<<C++Primer>>,因为它们是istream 或 ostream的成员,同时也不能被拷贝
friend ostream& operator << (ostream& os, const smartpointor<T>& sptr) {
cout << "friend os... |
7f907a3c3c12206b43881f72a42520618fa9e8a8 | 8d362d09997e0d05b7c4280704c444dbae9b7a6f | /p3d_ecs/native/source/perf_utility.h | 1ce96f7472647feb2b13528714a1fa1725d3048e | [
"MIT"
] | permissive | PlumpMath/P3D-ECS | 69b8f1936490ba632582ab6a632269f9031933d5 | 8ff2f9b067f812700c25e172f0e9026f3cc4bed3 | refs/heads/master | 2021-01-25T06:55:35.533900 | 2016-11-25T10:28:26 | 2016-11-25T10:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,567 | h | perf_utility.h | #pragma once
#ifndef P3D_ECS_PERFUTILTIY_H
#define P3D_ECS_PERFUTILTIY_H
#include "config_module.h"
#include <vector>
#include <algorithm>
namespace p3d_ecs {
namespace performance {
template <typename T>
ECS_FORCEINLINE typename ::std::vector<T>::const_iterator vector_find(
const ::std::vector<T>& ... |
90b95cd41d068306ce85efa3cd5009e90782941f | 5aa916bf1650c7c28818cf569cf717b3db32ead6 | /TornadoEngine/Source/Base/MakerMarkupContainer/BasePacket.h | c6829ab31b67479cec96501b41196e370332f30d | [] | no_license | lxq2537664558/MMO-Framework | 125c21d2cec6e29ec42bb72f05691ddaef9de448 | b0bac7e040ec632543d3d3d4ee23be1bf6224dd9 | refs/heads/master | 2021-08-19T04:22:28.528036 | 2017-11-24T18:48:46 | 2017-11-24T18:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 843 | h | BasePacket.h | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information License.h.
*/
#ifndef BasePacketH
#define BasePacketH
#include "IMarkUpContainer.h"
#include "ContainerTypes.h"
#include <vector>
class TBasePacket
{
protected:
IM... |
42c0718144b7825684f5eed1a1ceb16498cf802b | 6d27a9f212bae7f85409ba95489b75386c170ce4 | /vs_project/leetcode/Rotate Image/Rotate Image.cpp | 50dad99a790155589a9e9c727b27aca165326317 | [] | no_license | yumdeer/daily_practice | 0b9dea55555070dd0f2ca1beb5e7b657d0b8f52b | 9d30c89ef78bfb4b8723827070489d924c4d45ad | refs/heads/master | 2023-07-28T09:08:29.190825 | 2021-09-05T01:14:41 | 2021-09-05T01:14:41 | 186,379,724 | 8 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,073 | cpp | Rotate Image.cpp | #include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
using namespace std;
//找规律 a[i][j]与a[n-j-1][i]互换
class Solution {
public:
void rotate(vector<vector<int>>& matrix) {
int matrix_num = matrix.size();
vector<vector<int>> matrix_copy (matrix_num,vector<int>(matrix_num)) ;
matrix_copy.... |
30ee799d8639291ee32b57833fb2962021c4bd7c | bbb0bc53dda330d866c97b2470cd800399e6787e | /owClient/Warden/Warden.h | 6584da746dd7ab31da41476061752b346ab3d4c9 | [
"Apache-2.0"
] | permissive | World0fWarcraft/OpenWow | b2a09eff76bc9e9c7ff16c370277c07ebfb252e6 | 1306f70a9069e032d9d52f223ad17fcf182d739d | refs/heads/master | 2022-04-28T05:50:53.189149 | 2022-04-05T23:01:53 | 2022-04-05T23:01:53 | 247,746,897 | 3 | 2 | Apache-2.0 | 2022-04-06T05:05:02 | 2020-03-16T15:29:36 | C++ | UTF-8 | C++ | false | false | 1,191 | h | Warden.h | #pragma once
#include "../AuthSocket/Cryptography/BigNumber.h"
#include "../AuthSocket/Cryptography/ARC4.h"
#include "WardenStructs.h"
#include "WardenChecks.h"
// FORWARD BEGIN
class CWorldSocket;
// FORWARD END
class CWarden
{
public:
CWarden(CWorldSocket& WorldSocket, BigNumber Key);
virtual ~CWarden();
bool... |
8b3bd284e1292a9ee7b5c3c2825a67951e8adbd9 | a6d3936eac053b55c600d961ce49c6537e9b1d9f | /C++/Varios/Principal.cpp | 7e149761bd729b7ea8638dd49a1a09eb29b1ca50 | [] | no_license | dcharua/code | 233e382ca5c37983565ca6cb134fb5be18b1af82 | 781fefb8e87334ec3b060c2dcfa9cf142feea0e7 | refs/heads/main | 2021-06-23T20:50:35.493288 | 2020-12-17T20:16:42 | 2020-12-17T20:16:42 | 146,336,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,143 | cpp | Principal.cpp | #include "Alumno.h"
#include <map>
map<int,Alumno*> minilista;
map<int,Alumno*>::iterator ita;
void inicializa()
{
vector<int> va;
va.push_back(1);
va.push_back(2);
va.push_back(3);
va.push_back(4);
va.push_back(5);
va.push_back(6);
Alumno *a = new Alumno("AAA",va);
minilista[123] = a;
vector<in... |
570672b47307019be78c5e88358decdae8e442cb | 098c88fecc65c8834906ea3dad6ecd30676952c5 | /sem-03/hora_fecha_complejos/fecha/persona.h | 1c9861051cf4b2863943dfb47479de3c44a625df | [
"Unlicense"
] | permissive | unmultimedio/im-umng-unmultimedio | 627a31651ab65e591d231e1b58ddbd4f1c3cae53 | 4dda7984b8cd91bb096e2890b2f668553b823b04 | refs/heads/master | 2021-01-18T15:17:19.674977 | 2014-01-20T21:26:48 | 2014-01-20T21:26:48 | 12,092,707 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | persona.h | /**
* DOCUMENT CREATED BY JULIAN R. FIGUEROA
* about.me/julianrfigueroa
* This work is under a Creative
* Commons License Atribution-ShareAlike
* 3.0 Unported. CC-BY-SA
*/
// persona.h
#include <iostream.h>
#include "date.h"
class persona {
private :
char nombre[25];
long cc;
const Date fechaNac;
public:
// co... |
b8adbab00bdf7aa9900ce97cb69f51080954319b | d20252afc53722c7a1dd2c95d03e2a58537fbbbd | /week10/FboTest/src/testApp.cpp | 573d5edd7755777630e514185aa166e5e23e2b89 | [] | no_license | gusfaria/gus_algo2013 | d3a00ecf5daffcbb42fdc2f77e474401a5475d60 | 1ec470b019887251125b70a4179c9fbee3c27cde | refs/heads/master | 2021-01-10T19:41:24.331695 | 2014-04-09T18:37:33 | 2014-04-09T18:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,030 | cpp | testApp.cpp | #include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofEnableAlphaBlending();
pos = ofGetWindowSize()/2;
vel.set( 20,9 );
mFbo.allocate(ofGetWindowWidth(), ofGetWindowHeight());
}
//-----------------------------------------------------------... |
8d99597060afa762ac3f8dae663f47a96f96a485 | 9a2176451c57b834ed2c2f7ca8d72b1379da5679 | /reverseno.cpp | bab7bce4bb7a745d1b4a7e12665372bbca959529 | [] | no_license | j33tmane/Cpp-Genral | d81a6d81c8f5f5aa9078d15c3493103b4b962a15 | b0e17a6f7c753a228208067fc8f08f281d0f418e | refs/heads/master | 2021-01-20T22:10:22.542503 | 2016-08-04T19:14:45 | 2016-08-04T19:14:45 | 64,960,794 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | cpp | reverseno.cpp | #include<iostream>
using namespace std;
int main()
{
int ans=0,tcase,no;
cin>>tcase;
for(int i=0;i<tcase;i++)
{
cin>>no;
while(no!=0)
{
int remainder = no%10;
ans = ans*10 + remainder;
no/=10;
}
cout<<ans<<endl;
ans=0;
... |
d991d731cdf034f8a8477e03912b64ba24f7dbed | 79a2b47b6a6c903a243773b0c69ab25623edcbe0 | /Task2/Lab1_3/Material/PhongMaterial.cpp | 3d809cc0960ff5861d6dbf0f02dcb8b4ea9687da | [] | no_license | 7kia/CG | 3a9bb11f3018d16c38c809d79536ec0dea7703df | 5a532afd685113b3a13a03dd03b08bf86cfef4bd | refs/heads/master | 2020-04-12T09:03:30.731305 | 2016-12-18T17:49:53 | 2016-12-18T17:50:13 | 61,549,242 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | PhongMaterial.cpp | #include "stdafx.h"
#include "PhongMaterial.h"
CPhongModelMaterial::CPhongModelMaterial()
: CMaterialCharactiristics()
{
}
void CPhongModelMaterial::Setup() const
{
glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, glm::value_ptr(m_emission));
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, glm::value_ptr(m_ambient));
glM... |
5852aff6a02392b3607c84a8d57cc3ed6d157ec1 | 390d95f4cd02d66b493ff82047b37681d46fa341 | /Func_Remotas.ino | e24536c654abe75c4462998f484393c37f33a3d9 | [] | no_license | KevenSoares/Smart_Remote | fd5be3657efa557b4a4a94216e3642f80a6e55e3 | 4792476952a950a2c9f7001e904b1297bfb8703d | refs/heads/master | 2020-09-14T01:16:04.086131 | 2019-11-28T18:59:38 | 2019-11-28T18:59:38 | 222,965,117 | 1 | 0 | null | 2019-11-28T03:30:36 | 2019-11-20T15:12:08 | C++ | UTF-8 | C++ | false | false | 1,990 | ino | Func_Remotas.ino | void control(char data)
{
switch(data){
case 'w': // função de ligar o ar via IR
{
//on
Serial.println("w");
lcd.setCursor(0,0);
lcd.print(" Ligando Ar ");
int khz = 38; // 38kHz carrier frequency for the NEC protocol
unsigned int irSignal[] = {9072,454... |
a92eba8e878da5fdfba68b891b9966e9956a92aa | b525696739538b467a9f216ca738af22f9adb704 | /Day8/Day8Q2.c++ | be88c8b7e734d2e4ddc2462b147d2c35c31c420e | [] | no_license | ujjwalrawat11/PlacementQuestion | cb8e189761bfbbf9e8b6fe2ceec28961f8f34339 | df83881e2747aead542534ce50e0ec08a7e34ebc | refs/heads/main | 2023-06-16T03:11:05.882357 | 2021-07-10T09:26:33 | 2021-07-10T09:26:33 | 381,073,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | Day8Q2.c++ | #include <bits/stdc++.h>
using namespace std;
string longestCommonPrefix(vector<string> &strs)
{
string s = "";
if (strs.empty())
return s;
int len = strs[0].length();
for (int i = 0; i < len; i++)
{
bool flag = true;
for (int j = 0; j < strs.size(); j++)
... | |
30c748951c60d1cb1e3f8ce17e63728004e90c58 | e7c459ebe0b7a42d4c46d74aad233f51ae123570 | /Longest Common Prefix .cpp | 64faedc2748dc2a295e6178f2721797ddf487a86 | [] | no_license | C5Compound/LeetCode | 3f5c92f305d54ecc6b39d5d448b234a54850c1b5 | c598c33c87b96c63388d8f44e89d852d860c5418 | refs/heads/master | 2021-01-10T19:36:51.674730 | 2015-09-12T00:43:34 | 2015-09-12T00:43:34 | 42,059,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 725 | cpp | Longest Common Prefix .cpp | class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
string re;
if (strs.empty()) {
return re;
}
int minlen = INT_MAX;
for (int i = 0; i < strs.size(); ++i) {
if (strs[i].size() < minlen) {
minlen = strs... |
2e638eb3158f6c9625d423af6b27fcdc0b34c3f9 | 70c00133e353a5555514327f0a3a20e9bd3de737 | /Problem-1192.cpp | 8d0e978be81cb457daea3ef821ba8d2734e811a4 | [] | no_license | VikasKumarRoy/Leetcode | 536d33a67d5448d75171682d82be7518648f39af | 953fe0380c0e64077fb2943d06b4ec0638a3c688 | refs/heads/master | 2021-06-25T16:18:47.367509 | 2021-03-21T16:58:45 | 2021-03-21T16:58:45 | 200,166,984 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | cpp | Problem-1192.cpp | // Problem - 1192
// https://leetcode.com/problems/critical-connections-in-a-network/
// O(v+e) time complexity and O(n) space complexity solution
class Solution {
public:
int time = 0;
vector <vector <int>> ans;
void dfs(vector <int> adj[], vector <int>& disc, vector <int>& low, int u, vector <int>... |
b73564f6d84fc668ec256bedf30675ba2801c9a1 | 8cabe8e9bdcfadcd58fb2267f2b7984e3e1d3d17 | /Test/SwarmBotData.cpp | ac6424818eded85c55e771fff8e35098866c1d15 | [] | no_license | Samuel-Harden/Advanced-Tech-A2-Take-2 | 500095d147f4db09cec6df75126eb2088a17ab34 | c077b7c41c22d1ae9ba39d8fd44323b8d2be7df8 | refs/heads/master | 2021-09-03T01:59:51.142506 | 2018-01-04T17:20:07 | 2018-01-04T17:20:07 | 112,836,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | SwarmBotData.cpp | #include "SwarmBotData.h"
SwarmBotData::SwarmBotData()
{
}
SwarmBotData::~SwarmBotData()
{
}
void SwarmBotData::setSepWeight(float _weight)
{
sep_weight = _weight;
}
void SwarmBotData::setPathWeight(float _weight)
{
path_weight = _weight;
}
void SwarmBotData::setBotMaxSpeed(float _speed)
{
bot_max_speed ... |
a87574fee4dfc19786c77778bfc4ddeb65ed983a | feaf5ed8ba4045ba149a77db276533bdb7b0a66f | /ClassExercise/EP10.cpp | 188697d5cd2d78e894af2d2f54a4990612e36491 | [] | no_license | OuyangRuihong/Euler | 7f3f7289ef82d39bd5be8ef8de4b3db479a51f6c | 5836445bb3ff5cd0da5be4f9f686ac17f12c4fef | refs/heads/master | 2020-05-09T13:43:21.020986 | 2019-09-17T13:16:08 | 2019-09-17T13:16:08 | 181,164,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | EP10.cpp | /*************************************************************************
> File Name: EP10.cpp
> Author:OuyangRuihong
> Mail:845540021@qq.com
> Created Time: 2019年06月15日 星期六 18时26分32秒
************************************************************************/
/*素数筛*/
#include<iostream>
using namespace std;
#de... |
8c84654e6c3d672e02d5e447f12270d1b2ddf824 | 2bdfec46f4725c9c7c0ad54935802d84076ff3e5 | /source/core/laser-manager/context/MQClient.h | 6bb2965388f406550e21316220103e2089750fcb | [
"Apache-2.0"
] | permissive | izenecloud/sf1r-ad-delivery | 66f73bc7764216a1faed3d8de0ab3a569b8d4900 | 998eadb243098446854615de9a96e58a24bd2f4f | refs/heads/master | 2021-01-19T14:09:42.842935 | 2014-09-23T10:41:15 | 2014-09-23T10:41:15 | 24,359,409 | 18 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,047 | h | MQClient.h | #ifndef SF1R_LASER_WEB_SCALE_METAQ_CLIENT_H
#define SF1R_LASER_WEB_SCALE_METAQ_CLIENT_H
#include <sf1r-net/RpcServerConnection.h>
#include <3rdparty/msgpack/rpc/server.h>
#include <glog/logging.h>
namespace sf1r { namespace laser { namespace context {
template <typename T>
class ReqData
{
public:
ReqData(const st... |
02e4e8a21fc5097ff9ff076eb1cbcc710fe95ea5 | d7253f871c1724626fe8bd0c64f71e03de9b8c2b | /lib/Color.h | a082161bd672cd8d69fde1270f244ae2eecd732b | [
"MIT"
] | permissive | amitkr/chess-knight-moves | e09ae3b07ad822ae033372735baa8601b1fe27d0 | 011c163935744f735215cf469081051998416e8a | refs/heads/master | 2020-05-30T01:18:44.004364 | 2013-01-09T00:44:42 | 2013-01-09T00:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 787 | h | Color.h | #ifndef __CHESS_COLOR_H
#define __CHESS_COLOR_H
namespace Chess {
class Color {
public:
/* Color of the piece */
typedef enum { Black = 0, White = 1 } color;
Color() { c = Black; }
Color(const color& cc) {
c = cc;
}
Color(const Color& cc) {
... |
b9488cfefe0d087ded97dd78ce9ac197eed61685 | 2bfddaf9c0ceb7bf46931f80ce84a829672b0343 | /tests/xtd.core.unit_tests/src/xtd/tests/environment_special_folder_tests.cpp | 45da58449af8092eca51d74101c88eb848e396b6 | [
"MIT"
] | permissive | gammasoft71/xtd | c6790170d770e3f581b0f1b628c4a09fea913730 | ecd52f0519996b96025b196060280b602b41acac | refs/heads/master | 2023-08-19T09:48:09.581246 | 2023-08-16T20:52:11 | 2023-08-16T20:52:11 | 170,525,609 | 609 | 53 | MIT | 2023-05-06T03:49:33 | 2019-02-13T14:54:22 | C++ | UTF-8 | C++ | false | false | 27,141 | cpp | environment_special_folder_tests.cpp | #include <xtd/environment.h>
#include <xtd/tunit/assert.h>
#include <xtd/tunit/test_class_attribute.h>
#include <xtd/tunit/test_method_attribute.h>
using namespace xtd;
using namespace xtd::tunit;
namespace xtd::tests {
class test_class_(environment_special_folder_tests) {
public:
void test_method_(desktop) {... |
e1046c9f7a6840dc686add5b1b233061d798759b | 18764973fb6947c80114c95e52f5e20ff1c7eda4 | /src/components/policy/src/policy/include/policy/policy_manager_impl.h | 937d02e5a6c4fcfb8a97a37c9980bbcdd6da2784 | [] | no_license | FaridJafarov-l/sdl_core | a75ff5f13572d92f09c995bc5e979c8815aaeb52 | 11d6463b47a00334a23e8e7cadea4ab818d54f60 | refs/heads/master | 2023-09-04T08:55:16.628093 | 2016-12-19T12:33:47 | 2016-12-19T12:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,521 | h | policy_manager_impl.h | /*
Copyright (c) 2013, Ford Motor Company
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 fol... |
8b9b93ab88379a4958d0ff14aac54b2658ee1646 | f9afa27efcfe23bc08ef1ab76fad1b0be6c98432 | /monotonicRenumerationE.cpp | d39b96d1af3c98dfa7bf3722c18d3acaeec96fd3 | [] | no_license | FABhishek/CodeforcesContests | c9686a8c1e1145fe399e5b950dbe9e3080b94884 | 854675e0d2d66098f2cb332c372604c753c13847 | refs/heads/master | 2023-06-02T06:46:47.435090 | 2021-06-15T16:59:58 | 2021-06-15T16:59:58 | 377,235,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,752 | cpp | monotonicRenumerationE.cpp | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
// Policy based data structure
template<class T> using oset=tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define ll long long int
#define pii pair<ll,ll>
#define rep(i,s... |
215e80af0bc4cc5799000eb4538b9f8a9ee7de65 | 16a76b410f030732ccf0e625fb0af6fd283e7afc | /Insertion Sort/Insertion Sort.cpp | 4abc3345e20764e15ad7e6d130563b81c8ca3a2f | [] | no_license | paperbody/CSE100 | 31e5a0540ae4fb0d28f22cf8f34b92ff228b902c | 281fca5f16e0e32d3d9d6427f88f606e5b09f04a | refs/heads/master | 2020-07-13T07:17:40.466363 | 2019-08-28T22:09:06 | 2019-08-28T22:09:06 | 205,030,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | cpp | Insertion Sort.cpp | #include <iostream>
using namespace std;
void insertionSort(int array[],int size){
int i;
int j;
int key;
for (j = 1;j < size; j++){
key = array[j];
i = j-1;
while (i >= 0 && array[i] > key){
array[i+1] = array[i];
i = i-1;
}
array[i+1] = key;
}
}
int main(... |
ae813e8ac44079417548a72a4a3fa87362b4c883 | 669789a63bd5c01df2e68efa7931e74eb52c1742 | /DDZ_AI/Range.h | 66d83c21921da2adfdae1b0cc30344b938af5d99 | [] | no_license | qq717337/ddzai | d47d4ab3c280a3832abbfd31cf26f8766b812c22 | 9e59e23a6e967ae3a91fb5d234d2bc782ea24eec | refs/heads/master | 2020-03-21T02:26:56.805637 | 2018-03-26T13:39:47 | 2018-03-26T13:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | h | Range.h | #ifndef _RANGE_H_
#define _RANGE_H_
template<class Type>
struct Range {
public:
Type Start;
Type End;
inline Type Length()const {
_ASSERT(End >= Start);
return End - Start + 1;
}
Range() {
}
Range(Type A, Type B) {
Start = A;
End = B;
}
bool operator==(const Range& rhs)const {
return Start == r... |
e66cb1989d4f1f95800ab56c63b3ee0f4bcf6fcb | 2800e49746e2119ae19596c9d6d3af029c7af60b | /common/gui/include/gui/MainWindow.h | f0a4aed5dfa8a612ee5003bd0e6f02919da65480 | [] | no_license | krisukox/PCs-connector | 8e37fae04ab57a215d606bca91f0608f3241e62a | 37cc96b8ff50370474452cef1a35c6f3747596e5 | refs/heads/master | 2023-05-31T04:46:40.511309 | 2021-06-14T19:54:17 | 2021-06-14T19:54:17 | 184,431,378 | 0 | 0 | null | 2021-06-14T19:46:42 | 2019-05-01T14:48:16 | C++ | UTF-8 | C++ | false | false | 916 | h | MainWindow.h | #pragma once
#include <QMainWindow>
#include <memory>
#include <thread>
#include "gui/ScreenIndicator.h"
#include "gui/ScreenResolutionMsg.h"
namespace commons
{
class IApp;
}
QT_BEGIN_NAMESPACE
namespace Ui
{
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
Mai... |
eb0bd0480a34fa262c58607ecad22e6b8129af15 | 56d0f02555b098cd393f22dbe00cf85509b41596 | /cpp/0638.cpp | 14ed4a0da32b4512e33e8afc8fc1de53746a8eb7 | [] | no_license | xfmeng17/leetcode | 05cca36038d111f53d8f1d541607ea365ded2dfb | 534ff8ef5617d230897d2bf0e1c0c7405bb309f9 | refs/heads/master | 2022-12-05T17:00:53.850397 | 2022-12-05T02:06:29 | 2022-12-05T02:06:29 | 121,209,775 | 0 | 0 | null | 2018-03-29T10:47:21 | 2018-02-12T06:37:18 | C++ | UTF-8 | C++ | false | false | 1,503 | cpp | 0638.cpp | class Solution {
public:
int shoppingOffers(vector<int> &price, vector<vector<int>> &special,
vector<int> &needs) {
return func1(price, special, needs);
}
// ** straight forward DFS
int func1(vector<int> &price, vector<vector<int>> &special,
vector<int> &needs) {
return... |
daf0b3375263a9f7d0c53534433740f712d2f626 | 323dccba799a1b4ea3052d8b96ffaf9394baf52e | /ソースコード/gpsLibrary/gpsLibrary.ino | a7f13daa66bc186549b05ff8585f28df15975d7f | [] | no_license | 100kinsat/seccamp2021-TeamA | 16b23588758efc851a36eed2375a0e78399d2a66 | ccede189b6dfd66683fac4582cb6098a2c4ef200 | refs/heads/main | 2023-07-17T11:43:42.202852 | 2021-09-04T16:49:30 | 2021-09-04T16:49:30 | 393,384,877 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 440 | ino | gpsLibrary.ino | #include "cansat_gps.hpp"
Cansat_gps cansat_gps = Cansat_gps();
HardwareSerial ss(2);
void setup() {
Serial.begin(115200);
ss.begin(9600);
Serial.println("GPS start!");
}
void loop() {
char* temp;
while(ss.available() > 0){
char c = ss.read(); // GPSセンサからの値を読み込み
if(cansat_... |
7cbbd134c64296b4027139c77263efd6fc0d558b | b9b966952e88619c9c5d754fea0f0e25fdb1a219 | /libcaf_core/caf/actor_system_config.hpp | 5b0422e72b99359b9174d28182c329f9702d62a3 | [] | permissive | actor-framework/actor-framework | 7b152504b95b051db292696a803b2add6dbb484d | dd16d703c91e359ef421f04a848729f4fd652d08 | refs/heads/master | 2023-08-23T18:22:34.479331 | 2023-08-23T09:31:36 | 2023-08-23T09:31:36 | 1,439,738 | 2,842 | 630 | BSD-3-Clause | 2023-09-14T17:33:55 | 2011-03-04T14:59:50 | C++ | UTF-8 | C++ | false | false | 13,774 | hpp | actor_system_config.hpp | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include "caf/actor_factory.hpp"
#include "caf/actor_profiler.hpp"
#include ... |
9f825d13f479a5147e9cc509296507c6c2d23768 | 1716936c6c29043a2af0b157b502fc041cf28cda | /1043.cpp | d0fdfd213cbef10b4210520f4a94fe625a2e93f4 | [] | no_license | jiqc/PAT | d6c559fe3e7f196397a0773238ef619fa278a988 | bd7ad0abfc41a301960f2ec538280c773c188ecf | refs/heads/master | 2020-12-29T01:11:28.185141 | 2017-11-17T05:32:37 | 2017-11-17T05:32:37 | 53,915,553 | 11 | 2 | null | 2016-06-08T13:56:11 | 2016-03-15T04:49:36 | null | UTF-8 | C++ | false | false | 2,049 | cpp | 1043.cpp | #include<cstdio>
#include<vector>
using namespace std;
struct node {
int num;
node * right;
node * left;
};
int N;
vector<int> numin;
bool mirror;
bool judge(int pre, int pos) {
if (pre + 2 >= pos) {
return true;
}
int mid = numin[pre];
int index;
pre++;
if (mirror) {
for (index... |
4161177a5683e269dba1ea95b2bc81e1b6498451 | 45246ec52b6002e2c07d4a9228d88a1cfbb4e632 | /Technology Leverage/Summatives/Concurrency/GDE/Maths/FVector3.cpp | d31f81205ae467aa0bb0d435d892dddb74a7079b | [] | no_license | simplegsb/media-design-school | ec8015b22dc879d0df394666997b2d412cf27301 | f2fbf7a9dabdeeffe22a09f5eea2519e3c668b63 | refs/heads/master | 2020-06-07T07:51:16.524820 | 2013-04-29T08:42:56 | 2013-04-29T08:42:56 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 15,813 | cpp | FVector3.cpp | /**
* @file GDE\Maths\FVector3.cpp
* @brief
*
* Copyright()
* Copyright © 2004-2011 Media Design School. All Rights Reserved.
*
*********************************************************************************************/
#include "GDE/Core/Core.h"
#include "GDE/Core/Logger.h"
#include "FVector3.h"
#include... |
b52c558b6ad137e1968e0cf939a9660c9e2be8cb | 503360a78c49306e3a56b7aa5d846b4bea2a409f | /src/hook_manager.cc | bd83b976a46a4ab4ec2d9ea3e91a6ab631693738 | [
"Unlicense"
] | permissive | naufraghi/kakoune | 21f2b23d07153b520de1634532295acda6482ce5 | 439f16892828177dfea19f73f2e588071ed075e0 | refs/heads/master | 2021-01-17T06:21:53.191055 | 2016-07-05T18:21:15 | 2016-07-05T19:08:13 | 62,800,541 | 0 | 0 | null | 2016-07-07T11:05:21 | 2016-07-07T11:05:20 | null | UTF-8 | C++ | false | false | 3,204 | cc | hook_manager.cc | #include "hook_manager.hh"
#include "containers.hh"
#include "context.hh"
#include "buffer_utils.hh"
#include "display_buffer.hh"
#include "face_registry.hh"
#include "regex.hh"
#include <chrono>
namespace Kakoune
{
void HookManager::add_hook(StringView hook_name, String group, HookFunc hook)
{
auto& hooks = m_... |
bdb7f225ef9d6d8b08b114cb42ab274cb3457f32 | ca307d63901380ab11279e33a8a30eeaf5ad035a | /Code/DnaWNumRep.h | d4946a62e9e216f9d474453077afee998acd712b | [
"MIT"
] | permissive | Avramis/AlignmentByNumbers | 33b6b6efad8ab0933ab4078a34838249b5e4c38e | 8e2c028e688bc24ed741cfc44424edd12a301787 | refs/heads/master | 2020-05-03T22:10:11.119587 | 2019-04-01T11:05:27 | 2019-04-01T11:05:27 | 178,838,796 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | h | DnaWNumRep.h | //
// DnaWNumRep.h
// Al_by_num_v2_array
//
// Created by Avraam_Tapinos on 19/02/2016.
// Copyright (c) 2016 Avraam_Tapinos. All rights reserved.
//
#ifndef __Al_by_num_v2_array__DnaWNumRep__
#define __Al_by_num_v2_array__DnaWNumRep__
#include <stdio.h>
#include <string>
#include "Process2dArray.h"
/*
Geenrate... |
70469a95080e44534a05b6a6591fa2895b0a9b4a | fdc2804d9513a0547f9e470b3a70ad761104ddb0 | /Applications/Utils/otbPixelValue.cxx | 37a5a972b21139e07234ae05b334c25e686234da | [] | no_license | boussaffawalid/OTB | 5244af9f3e4fd124e51da16be23e44dce58a42ab | 876328788199bb14d66e32398724d422f5e614d3 | refs/heads/master | 2020-12-28T04:46:56.765449 | 2015-08-28T12:49:30 | 2015-08-28T12:49:30 | 38,159,731 | 0 | 0 | null | 2015-06-27T12:43:49 | 2015-06-27T12:43:48 | null | UTF-8 | C++ | false | false | 4,767 | cxx | otbPixelValue.cxx | /*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRAN... |
c9c600b582edb2aa539eb6e04008e5898c771bbc | 339ba3ab82e03576638779e7240812c3eccff894 | /neo/Source/PainterForCurve.cpp | e01508fb6d77c74a58dac88a45ae6a7972f0fd3f | [] | no_license | Philosjay/OpenGL | 070b44f44f83fc9f309cd005b2296c816e523631 | 31984ad2e383cd9900a8c3190d14857d5fc8f362 | refs/heads/master | 2021-05-08T05:19:56.166787 | 2017-12-05T07:23:03 | 2017-12-05T07:23:03 | 108,499,458 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,226 | cpp | PainterForCurve.cpp | #include "../Include/PainterForCurve.h"
#include "../Include/Window.h"
#include "../Include/Graph.h"
#include "../Include/Painter.h"
#include "../Include/World.h"
PainterForCurve::PainterForCurve(Application* targetApp, Window* targetWindow, World* targetWorld)
: Painter(targetApp, targetWindow,targetWorld)
{
req... |
f7abcb3003981e29dd05cd7002ddc7c863991958 | 96479eb06ff3f4fbd470d48be308dfd6b9ef1975 | /filesystem/include/png_utils.h | 1085f00ef8b485e0c587eb3a13fead12e40d31ce | [] | no_license | AnatoliyYakimov/glassyrender | 294febb498f3f36800877fd393000991a0e3561b | d4ba05965e2f4b0339f6d8f90aad04adad91b6ec | refs/heads/master | 2020-08-12T12:46:59.508588 | 2020-04-20T15:05:05 | 2020-04-20T15:05:05 | 214,769,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,794 | h | png_utils.h |
#ifndef GLASSYRENDER_PNG_UTILS_H
#define GLASSYRENDER_PNG_UTILS_H
#include <image.hpp>
#include <memory>
#include <basic_image.h>
class png_utils {
private:
static constexpr uint8_t COLORS_8_BIT = 255;
static constexpr uint16_t COLORS_16_BIT = 65535;
public:
static png::rgb_pixel to_rgb_pixel8(const rgb... |
83f6504f61a0493777b1f4267e9534a06b4d1b51 | 9ce9a01f05677f495fa244667bc77f4ebcac3509 | /Tempest/Core/MemoryManagement/HeapManager.cpp | 4ca36083e8cb1e2258eb1a7835445e3aa49a8f37 | [] | no_license | Sumi-N/GameEngineProject | 644c81eaf2c0b98f78dd35b2d80697a264606185 | 8f522021a3a1a50d44fc901b9402e2f10fde4a0e | refs/heads/master | 2023-06-07T21:41:50.236576 | 2021-12-18T02:09:47 | 2021-12-18T02:09:47 | 225,953,189 | 0 | 0 | null | 2021-01-19T21:00:05 | 2019-12-04T20:41:50 | HTML | UTF-8 | C++ | false | false | 8,040 | cpp | HeapManager.cpp | #include "HeapManager.h"
void* _head;
void* _current;
void* _end;
size_t _size;
HeapManager::HeapManager()
{
DEBUG_PRINT("Heap Manager is created");
#ifdef ENABLE_CUSTOM_ALLOCATOR
#ifdef ENGINE_PLATFORM_WINDOWS
_head = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, HEAP_SIZE);
Initialize(_head, HEAP_SIZE);
... |
50fe5b97967eb94ba0863b5c22f65823fbdd1918 | 0875a3b39b8f6cc91bc64fd2d7ca7af1041d09f2 | /src/design_pattern.hpp | 21005e41218856ad66bfb6606aaf44ae73420dbc | [] | no_license | XuWensong/program | 26d02094a3a44c473ef08f1584d991b5dcafcfa5 | d079ab472c752782aac36cc67acb46a82c8beb7d | refs/heads/master | 2021-06-26T15:06:39.667286 | 2020-12-17T08:25:37 | 2020-12-17T08:25:37 | 37,705,205 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 789 | hpp | design_pattern.hpp | #ifndef SONGZI_DESIGN_PATTERN_H
#define SONGZI_DESIGN_PATTERN_H
#include "op/op.hpp"
#include "design_pattern/factory.hpp"
#include "design_pattern/abstract_factory.hpp"
#include "design_pattern/singleton.hpp"
#include "design_pattern/prototype.hpp"
#include "design_pattern/builder.hpp"
#include "design_patte... |
b35173d52df445454005ec47919e6daa95bb0b03 | b7d3d831804d4d52f3c5e0f234cd76808c114897 | /20200625/test.cpp | 2d7e10aec8ff4db8a6aaac0960806d864c76983a | [] | no_license | zhangxiaoyin0122/20200625 | 0df5d69562e2190bf0f998b7b7eae76a4a5428d3 | 1397f8634486dc24dc3aac6053852cd9387c27ce | refs/heads/master | 2022-11-07T10:17:05.376743 | 2020-06-25T15:24:56 | 2020-06-25T15:24:56 | 274,953,013 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,326 | cpp | test.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
using namespace std;
//字符串拼接
class Solution1 {
public:
string reverseLeftWords(string s, int n) {
string ret = "";
for (int i = n; i < s.size(); ++i) {
ret += s[i];
}
for (int i = 0; i < n; ++i) {
ret += s[i];
}
return ret;
}
};
/... |
f63b8ae634854cd77e60f21f256da8012ae8341b | 66d1b8faa416a288da64e5d1488051ebac9e3f15 | /ProtocolConnRules.cpp | 6164785f330481c6e3dd9bd16ad95b786d56956b | [] | no_license | KouenSoftWare/Rano | c91194910a245f12ea55141d0bbb2c3a4b12bcce | c65c52992c4306bbbac27d5450c40726849ea6d3 | refs/heads/master | 2021-01-01T17:21:13.926242 | 2015-08-26T09:42:51 | 2015-08-26T09:42:51 | 39,719,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31 | cpp | ProtocolConnRules.cpp | #include "ProtocolConnRules.h"
|
33db63d8a9b527678f3f0c0ff7eae9dfef0f42f2 | 96a7eb112e1484f2e06925eea799c938a824a217 | /Algorithms/Graph Theory/C++ Implementations/bellmanford.cpp | a269748f6a72940ec47f973cdbb5c16e02c1d69e | [] | no_license | Thenuga12/Data-Structures-and-Algorithm | 9b493d1bbcc88cf550acb2c22601e6f52b0e26bd | e2533f35fbc5abfbb1a888fee687bc513d81338e | refs/heads/master | 2023-01-03T21:53:00.398426 | 2020-10-31T19:40:12 | 2020-10-31T19:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | cpp | bellmanford.cpp | /** Bellman ford shortest path algorithm... Time Complexity: O(V.E)
** @author: Arpan Pathak **/
#include <bits/stdc++.h>
#define inf INT_MAX
using namespace std;
class Edge{
public: int u,v,weight;
Edge(int u,int v,int weight): u(u), v(v), weight(weight) { }
};
int main()
{
vector<Edge> G;
vector<int>... |
afed40ce49325df5e128dea49a542d09c8318da1 | a9717ff2a1072d77b702f4447f57b9fe5f08ce90 | /Game/Controllers/MonsterController.cpp | b7fa15350316b4ac9822ef3438edf160a3e63274 | [] | no_license | singingsingh/Indra | e0685e45a33e0f39af943582d10f8043124523d5 | 7c6526af77dc1c435e3c3a8b66acdb26db5222e6 | refs/heads/master | 2020-03-26T18:47:42.139305 | 2017-01-22T20:05:57 | 2017-01-22T20:05:57 | 60,437,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,885 | cpp | MonsterController.cpp | #include <Game\Controllers\MonsterController.h>
#include <Engine\Util\Assert.h>
#include <Engine\Util\ConsolePrint.h>
#include <Engine\Engine\PhysicsTickNotifier.h>
#include <Engine\Engine\AIUpdateNotifier.h>
#include <Engine\Engine\HitResult.h>
#include <Engine\Core\Math\Vector2f.h>
#include <time.h>
namespace Game... |
4c99d2b615a8273114c4fad0b50c197a21344e86 | b65cfd02fc0010e0bde6b5dda73a9765ffc1b19c | /Server/include/DamageBlock.h | b469d74f87f47c47271f8d0a789da3666e2c0935 | [
"MIT"
] | permissive | ROLL-E/roll-e | 58f5cf0b4c7f4a323b37784479af975c4e23e651 | ddf7112ed7bf196616bafa9b9453df6b0b22ca38 | refs/heads/master | 2021-01-20T11:05:09.512796 | 2014-01-19T20:20:33 | 2014-01-19T20:20:33 | 14,613,510 | 1 | 0 | null | 2014-01-19T14:02:14 | 2013-11-22T09:19:40 | C++ | UTF-8 | C++ | false | false | 855 | h | DamageBlock.h | #ifndef DAMAGEBLOCK_H
#define DAMAGEBLOCK_H
#include "LogicBlock.h"
#include <QString>
class ValueBlock;
class Character;
class DamageBlock : public LogicBlock
{
private:
Character* target{nullptr};
QString type;
ValueBlock* valueblock{nullptr};
public:
quint16 target_id;
quint16 valueblock_id;
DamageBlo... |
b37e9715c071584e82a5b4da09b6316f6da9bb61 | 8ff320e31e8ad83c75c93cd8f71347a38e718e71 | /src/player/content/library/albumView.cpp | 51654d792f6f64aafddb72d1fa44447312d8ee7c | [] | no_license | tavu/karakaxa | 60ff6e3e79196f5a3e079c5dc1cc1c430d9ff1be | 03f3df0f22a6a001438589d72c42c34a3f3dd519 | refs/heads/master | 2021-01-01T18:22:49.392260 | 2013-09-04T13:42:02 | 2013-09-04T13:42:02 | 4,357,814 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,594 | cpp | albumView.cpp | #include"albumView.h"
#include <Basic/tagsTable.h>
#include<QScrollBar>
#include<QPainter>
#include<QDebug>
#include<QPaintEvent>
#include <QHeaderView>
#include"albumDelegate.h"
#include<QApplication>
#include<views/models/treeView.h>
#include<views/decoration/decoration.h>
#include<views/models/urlRole.h>
#include<co... |
a533e1a87bf5e5d2983254d506474fbb0e2c9123 | d00d604cbdea1d459a0b15a564d921d58b5f4276 | /DnD/src/entity/Dragoon.cpp | 94fac62b8bc11adcec107c983a30a2c79490fee8 | [] | no_license | Iscandel/DnD | bc1fee8fe485dd1ca94ddd1c99a41a28f696a86d | 82810a45ba3ba1b13ebbdd3de9961423e4a7719f | refs/heads/master | 2020-06-23T17:44:33.079494 | 2019-07-25T00:21:08 | 2019-07-25T00:21:08 | 198,702,771 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,158 | cpp | Dragoon.cpp | #include "Dragoon.h"
#include "game/Game.h"
#include "game/GameEngine.h"
#include "game/MessageBuilder.h"
#include "gameState/serverState/SGameServer.h"
Dragoon::Dragoon(int id, Game* game)
:GraphicEntity(id)
,myGame(game)
,myIsAwake(false)
{
}
Dragoon::~Dragoon()
{
}
void Dragoon::update(GameState& state, const G... |
6a465ea2280a93837a1c5c16b02fdba82046cade | 86786a0141a3d5afa3974d6e87c13987215b1f67 | /5_more_struct.cpp | 8d57307ecab982d35ee601c6504a8beb5476f97a | [] | no_license | ZhangKangK/C-PlusPlus | 6d4c35804d9409d61fd988ceb62ede6c2aa0405a | 1d3bde40b998b8c56c1593b3cdb859eebe849464 | refs/heads/master | 2021-08-19T13:41:39.164932 | 2017-11-26T12:41:01 | 2017-11-26T12:41:01 | 112,079,481 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 347 | cpp | 5_more_struct.cpp | #include <iostream>
using namespace std;
struct Student
{
int id;
char name[20];
};
int main()
{
// C++中的结构体是一种新的数据类型,可以直接拿来定义变量,不需要再加 struct 关键字
Student stu = {10, "wang"};
cout << "id = " << stu.id << ", name = " << stu.name << endl;
return 0;
} |
c541dd05fb442ab21a1670f5824fff7cfb24235e | b70d6567f266bd4ec60b6ea292344f8e71127c54 | /labworks/lw04/Guskova/OC_lab4/lab4_41/main.cpp | 907b3bc46c3d5642aaf6b8b8951684e721f3b781 | [] | no_license | vladdy-moses/ulstu-ivk-os-2019 | 3766e15d1a0a6b64e9c1ce5dba86d786296abd6d | 26727bd7961a57f9a6256033a1d95de61703762e | refs/heads/master | 2020-04-28T02:52:26.347851 | 2019-06-13T09:42:54 | 2019-06-13T09:42:54 | 174,914,608 | 1 | 34 | null | 2019-06-13T09:42:55 | 2019-03-11T02:52:56 | C | WINDOWS-1251 | C++ | false | false | 1,678 | cpp | main.cpp | #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
//Лабораторная работа №4.4.1
//Межпроцессное взаимодействие через канал FIFO.
//Выполнила студентка гр.ИСТбд-22 Гуськова Ю.А.
int main()
{
printf("Лабораторная работа №4.4.1\n");
... |
d01da45421477beb68dc4636f803504f1d54fd48 | cb49c2c846eb29252ed37a885b7b3a546168c998 | /src/affinetransform.cpp | 498c756d85b67c9bf337cc928f02093cbcb02dc6 | [
"curl",
"MIT",
"BSL-1.0"
] | permissive | appelmar/scidb4gdal | 60dba13b18fb7a4cb9f054cecff13ac6c2a17305 | d040fe41761ab72a2cf1169b002df2c413e9ffad | refs/heads/master | 2021-06-14T05:05:46.595161 | 2017-04-13T06:44:44 | 2017-04-13T06:44:44 | 31,667,264 | 10 | 4 | null | 2017-04-13T06:44:45 | 2015-03-04T16:31:43 | C++ | UTF-8 | C++ | false | false | 7,950 | cpp | affinetransform.cpp | /*
Copyright (c) 2016 Marius Appel <marius.appel@uni-muenster.de>
This file is part of scidb4gdal. scidb4gdal is licensed under the MIT license.
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 wi... |
fd1a9730bdfdaa2b04ce9b0837fc103882b3f86b | 01e1525dba795c49d403ab7c513bd896c2d96c4b | /牛客/third-A.cpp | 5070600e466f1cb23ddcd0d49540399edbd9b367 | [] | no_license | Dyryamo/algorithm | c24bc3b92fa280af258966cbd149c4ad734c5480 | 0100f2d4e6cc69caa268a910adebb95cebda6ce0 | refs/heads/master | 2021-04-26T04:00:21.969733 | 2018-03-08T05:12:18 | 2018-03-08T05:12:18 | 103,379,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | third-A.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<math.h>
#include<algorithm>
using namespace std;
#define PI 3.1615926535
double log8=log(8);
double f(int n){
return (0.5*log(2)+0.572364929+0.5*log(n)+n*log(n)-n)/log8;
}
int main(){
int T;
scanf("%d",&T);
while(T--){
int n;
scanf("%d",&n);
if(n=... |
71c4b2a6ad1354d71eb98ff194de72dea2a9bb3d | ae936fb07d9478152cb998e94b9937d625f5c3dd | /UVA/11624.cpp | 5c9a182f7e07607c001f6988ece0112307f60c98 | [] | no_license | Jorgefiestas/CompetitiveProgramming | f035978fd2d3951dbd1ffd14d60236ef548a1974 | b35405d6be5adf87e9a257be2fa0b14f5eba3c83 | refs/heads/master | 2021-06-12T06:28:20.878137 | 2021-04-21T01:32:37 | 2021-04-21T01:32:37 | 164,651,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | cpp | 11624.cpp | #include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
int t, n, m;
string maze[1000];
int dx[4] = {-1, 0, 0, 1};
int dy[4] = {0, -1, 1, 0};
int solve() {
cin >> n >> m;
for (int i = 0; i < n; i++) {
cin >> maze[i];
}
int r[1000][1000];
queue<pii> pq;
queue<bool> tq;
pii J;
for (int i = ... |
7b53e6c8cd7f919b30cc8f16773640aed4debaab | 019ad59225930e297336939183b652c7c7a1aa6e | /http/httpParser.h | 883c4430bdec08c9d79819f0fdec3b8bd78e9cc1 | [] | no_license | Yeonon-Wyy/budd | c8b7fbfc8fe9e039bb11f68ccf8bd0372e6a594c | d6771f02977cb4ef38d100dde0ed4113b5389b7a | refs/heads/master | 2023-07-24T23:25:36.017330 | 2020-10-11T12:31:12 | 2020-10-11T12:31:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | h | httpParser.h | #ifndef HTTPPARSER
#define HTTPPARSER
#include <memory>
#include "base/buffer.h"
namespace budd
{
namespace http
{
class HttpContext;
class HttpRequest;
class HttpParser
{
public:
HttpParser()
: m_state(EXPECTSTARTLINE)
{
}
bool parse(base::Buffer *buffer, std::shared_ptr<HttpContext> contex... |
d4526ec1d5d633b0d1e0f68563ac6079d43a8dd6 | 67d616bdde1b978f6d43a0d540471ec111a93827 | /cpp/inheritance_review/Review-06-CPP-Shapes/Example-3/source/ShapeCollection.cpp | f346492d117de3c7da1565a0d2b907ecacb271fb | [] | no_license | Crusaton/cs330fall2020 | 6efad5dcd0d14bca6a2bba00129c9a43e3964769 | 282827769eb4f737b6c12ac730cee90f73a2ff45 | refs/heads/main | 2023-01-30T11:19:04.390813 | 2020-12-08T01:13:28 | 2020-12-08T01:13:28 | 314,138,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,555 | cpp | ShapeCollection.cpp | #include <utility>
#include <algorithm>
#include "ShapeCollection.h"
//------------------------------------------------------------------------------
ShapeCollection::ShapeCollection()
:shapes() // Is this necessary?
{
}
//------------------------------------------------------------------------------
ShapeColle... |
87b9b41463a320288afcdedc04f960136d7a785b | 8fb8ddf3d5f310ae94c61dd72467a644ce3f8ad1 | /libraries/shifter_example2/shifter_example2.ino/shifter_example2.ino.ino | 5321e7b41a085c0c1191f574d5a72b25990a64d3 | [
"MIT"
] | permissive | scarybeard/Pinball_01 | 4340174bc7f9c21984c35fc0f0a872113228566c | e6c1a835d5c65a121e7c6c1aa6890844d0642b5c | refs/heads/master | 2020-04-02T03:31:51.195405 | 2016-07-09T21:07:37 | 2016-07-09T21:07:37 | 60,320,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | ino | shifter_example2.ino.ino | #include <Shifter.h>
#define SER_Pin 7 //SER_IN
#define RCLK_Pin 6 //L_CLOCK
#define SRCLK_Pin 8 //CLOCK
#define NUM_REGISTERS 2 //how many registers are in the chain
//initaize shifter using the Shifter library
Shifter shifter(SER_Pin, RCLK_Pin, SRCLK_Pin, NUM_REGISTERS);
const int redLight = 12;
const int ... |
ea628a242c0ab3a6cd03f03040b2bb9adab50e8b | 291401bb1fa7f07e906f5d3551585101afbd848a | /SimulationControl.cpp | 484b67d81105a82ffb82018ce34cfc78ecbb1358 | [] | no_license | ljmotta/2019_2022_GenESyS | 65c1dad3ab077bcfa1f4f2ac92203362cf4b5841 | 2d3331ec1998c9ac0cd88b2a826472fcff48e795 | refs/heads/master | 2023-04-12T14:41:39.638474 | 2021-04-24T12:34:32 | 2021-04-24T12:34:32 | 350,146,492 | 1 | 0 | null | 2021-04-09T17:39:11 | 2021-03-21T23:28:32 | C++ | UTF-8 | C++ | false | false | 800 | cpp | SimulationControl.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: SimulationControl.cpp
* Author: rafael.luiz.cancian
*
* Created on 10 de Outubro de 2018, 18:01
*/
#include "Simu... |
84527f2c68c548b0022803a481d44d694df4d351 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/collectd/gumtree/collectd_repos_function_2250_collectd-5.6.1.cpp | 5b41b77fd5fb211b9c2dcc09e823019a24303ae5 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80 | cpp | collectd_repos_function_2250_collectd-5.6.1.cpp | void oconfig_free (oconfig_item_t *ci)
{
oconfig_free_all (ci);
free (ci);
} |
b45389eb6b4ec03f95d1583bb716bbcda1bfa493 | d867e76750cfaf6aec301a6c104bee9121f03655 | /src/Rendu/Map.cpp | e15fa024511e0ffd266c0f74f3177107ca079159 | [] | no_license | AnaisVincent/DuelMaster | 778ce6c24cc9740486a0723665eac186879979f0 | 505d0c53c77cb2e0969722ad36c2e1b06ca347b7 | refs/heads/master | 2021-03-12T20:04:24.021434 | 2016-01-14T19:31:26 | 2016-01-14T19:31:26 | 42,943,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,068 | cpp | Map.cpp | #include "../Rendu_headers/Moteur_de_Rendu.hpp"
using namespace Moteur_de_Rendu;
Map::Map()
{
}
Map::~Map()
{
}
void Map::levelMap()
{
w = 48;
h = 24;
level = {
25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 70, 20, 21, 21, 21, 21, 21, 21, 21, 21, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01... |
58b89ab97a836af9ebd95977511fdc6e8def813c | 0d4b07303fe9facd5ab1464ceec12d69316f1773 | /src/ProgramSegment.cpp | 24edf8703f2f4c52920276c58d147b701f1528f3 | [] | no_license | ricardobg/EventSimulator | 9d8b0850775a66e5f8d2da5ce526a4524b7231d3 | a704f0ebf4f62b6357232c8447b3ce3abbc99093 | refs/heads/master | 2021-01-15T08:49:25.102380 | 2015-08-01T13:09:20 | 2015-08-01T13:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,308 | cpp | ProgramSegment.cpp | /*
* ProgramSegment.cpp
*
* Created on: 06/06/2015
* Author: Ricardo
*/
#include "include/Job.h"
#include "include/ProgramSegment.h"
#include "include/MemorySegment.h"
#include "include/Debug.h"
ProgramSegment::ProgramSegment(int64_t segment_number, int64_t size, ProgramSegment* parent)
: _segment_number(... |
e762130d1df79d0675c646c7f3de5104fac7bea8 | e753f8ab10eb6732f272217169e48ab4754295ee | /devel/boost-libs/dragonfly/patch-boost_system_config.hpp | 690b7684d710d1fc7089efdf003db66f4a00afa4 | [
"BSD-2-Clause"
] | permissive | DragonFlyBSD/DPorts | dd2e68f0c11a5359bf1b3e456ab21cbcd9529e1c | 4b77fb40db21fdbd8de66d1a2756ac1aad04d505 | refs/heads/master | 2023-08-12T13:54:46.709702 | 2023-07-28T09:53:12 | 2023-07-28T09:53:12 | 6,439,865 | 78 | 52 | NOASSERTION | 2023-09-02T06:27:16 | 2012-10-29T11:59:35 | null | UTF-8 | C++ | false | false | 595 | hpp | patch-boost_system_config.hpp | No push, lets try to reduce deprecated support in this.
Keep NEEDS just in case.
--- boost/system/config.hpp.orig 2016-09-21 17:33:27.000000000 +0300
+++ boost/system/config.hpp
@@ -10,6 +10,12 @@
#ifndef BOOST_SYSTEM_CONFIG_HPP
#define BOOST_SYSTEM_CONFIG_HPP
+#if defined(__DragonFly__) && !defi... |
e66440dc8effb0397cc704d06765082e1f42bd61 | e86fcbd73260f184a678bac683bb4ed687649355 | /src/opendnp3/gen/StaticFrozenCounterVariation.h | 25af5ef8f5db3b2fd7ad20304e4f0689eff97f15 | [] | no_license | kyle8615/ddd | 5b725b438e004e5670c62cf3d82417e05dc743fa | fa891318224af1d69f248d2fbcf1819d6e230133 | refs/heads/master | 2023-04-09T15:44:32.350679 | 2020-04-29T15:16:25 | 2020-04-29T15:16:25 | 258,099,556 | 0 | 0 | null | 2021-04-20T19:49:04 | 2020-04-23T05:04:17 | C++ | UTF-8 | C++ | false | false | 1,028 | h | StaticFrozenCounterVariation.h | #ifndef PYDNP3_OPENDNP3_GEN_STATICFROZENCOUNTERVARIATION_H
#define PYDNP3_OPENDNP3_GEN_STATICFROZENCOUNTERVARIATION_H
#include <Python.h>
#include <pybind11/pybind11.h>
#include <opendnp3/gen/StaticFrozenCounterVariation.h>
#ifdef PYDNP3_OPENDNP3
namespace py = pybind11;
using namespace std;
void bind_StaticFrozen... |
e5c8f02259dcd9e015268301e8c89e9638cd9069 | cab800f3e7fd25c30483065256c014957dc2ad76 | /CppProject5_3D/CppProject5/src/renderEngine/SelectionRenderer.h | 5102d3d7fbc3d55f224616ca6ff22e393655f56e | [
"MIT"
] | permissive | Damoy/Cpp-3D-game-engine | 461fefd19a56ee30d97e3e25412ac300e7d42fd0 | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | refs/heads/master | 2021-09-01T07:59:43.068557 | 2017-12-25T22:00:47 | 2017-12-25T22:00:47 | 115,257,370 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,151 | h | SelectionRenderer.h | #pragma once
#include <sstream>
#include "Renderer.h"
#include "entities\graphics\Camera.h"
#include "shaders\SelectionShader.h"
#include "models\TexturedModel.h"
#include "input\InputController.h"
#include "loaders\ModelLoader.h"
#include "world\World.h"
#include "TextRenderer.h"
/*
The player mouse map collision ... |
9a96a47c647d32e87b0d380413d401b893c32e73 | 1b90be9561c10508eea59cb36c1f1665d0ef947f | /stan/math/prim/fun/sort_desc.hpp | 4c8d7307d97ad1f455e30f52fdd5505c2015417b | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | stan-dev/math | 473e7c1eaf11f84eaf2032c2455e12ba65feef39 | bdf281f4e7f8034f47974d14dea7f09e600ac02a | refs/heads/develop | 2023-08-31T09:02:59.224115 | 2023-08-29T15:17:01 | 2023-08-29T15:17:01 | 38,388,440 | 732 | 240 | BSD-3-Clause | 2023-09-14T19:44:20 | 2015-07-01T18:40:54 | C++ | UTF-8 | C++ | false | false | 1,358 | hpp | sort_desc.hpp | #ifndef STAN_MATH_PRIM_FUN_SORT_DESC_HPP
#define STAN_MATH_PRIM_FUN_SORT_DESC_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <algorithm>
#include <functional>
#include <vector>
namespace stan {
namespace math {
/**
* Return the specified sta... |
8f67c97b96715ff0a91ed726ed5b49f14891de8e | 24e804a369d507b177cd6ba44d44b2278f1bbd97 | /Trabalho 2/AVL.cpp | 587573ca9342d7c999e0a831815fce2ab5e6ff45 | [] | no_license | techmarktm/trabalhoED2 | e9fadb4d47177a7ac32a23768da87fe46e21aee4 | 6be60f3e070fc58f4becc30c4fe017dfb08bd443 | refs/heads/master | 2021-08-23T09:10:30.444280 | 2017-12-04T12:46:53 | 2017-12-04T12:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,705 | cpp | AVL.cpp | /*---------------------------------------
TRABALHO DE ESTRUTURA DE DADOS 2
GRUPO:
Bruno Carvalho
Diogo Destefano
Rafael Terra
Pedro Bellotti
--------------------------------------*/
#include "AVL.h"
//construtor e destrutor
AVL::AVL()
{
raiz = NULL;
numCompar = 0;
numCopias = 0;
tempoGast... |
42ee4f8514354f3ee6517a781d11df32621f6c02 | 6a2d97622c4d5d504611d774119d8c2cfb49ff65 | /src/entities/Entity.cpp | 585f463c10e99fd1b2a6844a8e932f0c71ff0ff3 | [] | no_license | SemvdH/SDBA | 50e63b9fd4b7f46f3eb8f5faf6ee82000c2d643d | 85f341e576bcbace04386eaf413a3cfba1ff9bcc | refs/heads/main | 2023-05-29T02:05:46.688068 | 2021-06-18T15:56:41 | 2021-06-18T15:56:41 | 368,453,279 | 1 | 0 | null | 2021-06-18T15:56:42 | 2021-05-18T08:18:27 | C++ | UTF-8 | C++ | false | false | 565 | cpp | Entity.cpp | #include "entity.h"
namespace entities
{
Entity::Entity(const models::TexturedModel& model, const glm::vec3& position, const glm::vec3& rotation, float scale)
: model(model),
position(position),
rotation(rotation),
scale(scale)
{
}
void Entity::IncreasePosition(const glm::vec3& distance)
{
position.x +... |
217105f848de2efa4d73d071db857543588a870a | 0e5ea03c2455b34a2f416c6c94c1669d7fe26e37 | /_2018_03_20 BattleShip 1/stdafx.h | 427f30cffd128c1790b92a468e13b12230fd3b17 | [] | no_license | Arroria/__old_project | 8682652fac9a95898b41eff5b4fdfab023cda699 | efb655b2356bd95744ba19093f25ab266a625722 | refs/heads/master | 2020-09-05T08:02:44.806509 | 2019-11-06T18:01:23 | 2019-11-06T18:01:23 | 220,033,980 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | stdafx.h | #pragma once
#include <vector>
#include <map>
#include <list>
#include <string>
#include <array>
#include <iostream>
using std::cout;
using std::endl;
#include <windowsx.h>
#define DEVICE (DXUTGetD3D9Device())
#define CONSTEXPR
#include "SoundManager.h"
#include "TextureManager.h"
#include "InputManager.h"
#include... |
1a42ea38d2edec80de61a2e7d3432a474a9cf4bb | e93a80168efe321e3586118ee7097f5192a284ec | /src/OpenCvSharpExtern/features2d.h | 724c72e4ae1e4346510f77160bb1cf42b9a60c1e | [
"BSD-3-Clause"
] | permissive | TWhidden/opencvsharp | bc2d5120bb53ca393493bcaf4dcf31e0a493fc71 | b88305b021c88775a0da8ada237778f4ed90dc41 | refs/heads/master | 2021-07-11T05:06:32.867687 | 2020-11-29T18:44:38 | 2020-11-29T18:44:38 | 222,134,723 | 2 | 0 | BSD-3-Clause | 2019-11-16T17:26:55 | 2019-11-16T17:26:54 | null | UTF-8 | C++ | false | false | 6,682 | h | features2d.h | #ifndef _CPP_FEATURES2D_H_
#define _CPP_FEATURES2D_H_
#include "include_opencv.h"
CVAPI(ExceptionStatus) features2d_drawKeypoints(cv::_InputArray *image, cv::KeyPoint *keypoints, int keypointsLength,
cv::_InputOutputArray *outImage, MyCvScalar color, int flags)
{
BEGIN_WRAP
const std::vector<cv::KeyPoint... |
a1b120b00ed7d0c607d26ca237eaf186c6c538e9 | 702191129549fb9e28ed327b9eed344218e82496 | /Problems/1021/1021회전하는큐.cpp | 57441b351936a0bba3cf7c356f3fa62831fa9304 | [] | no_license | Sunjae95/BOJ-Algorithm-Study | 219997490c5098a34e7b9d008070e0799345ac92 | 8154101bd1c4b2ab0cea957f8bd7594d569cb517 | refs/heads/master | 2022-12-30T17:47:10.473181 | 2020-10-20T15:34:11 | 2020-10-20T15:34:11 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,134 | cpp | 1021회전하는큐.cpp | #include<iostream>
#include<algorithm>
#include<queue>
#include<vector>
using namespace std;
int n, m;
int ans = 0;
deque<int> q;
void moveLeft(deque<int> &q) { // 2번 연산
q.push_back(q.front());
q.pop_front();
}
void moveRight(deque<int> &q) { // 3번 연산
q.push_front(q.back());
q.pop_back();
}
int main(void) {
io... |
98e800b6ad0c34e3726dbf0adba5382595c0610f | 0fba32eabcf1a4b22bee010b4dbf79503c6050c9 | /include/cmdlime/simpleconfig.h | c6cedd0a24b2e52f2b3b4b990acb5d811664f392 | [
"MS-PL",
"MIT"
] | permissive | lineCode/cmdlime | a7a3b0da132525352bfa3d442232a47ecc68fc25 | 1f99cf7cb79ccb113007ad175728d6385f91a03d | refs/heads/master | 2023-05-04T13:28:29.088463 | 2021-05-21T14:30:32 | 2021-05-21T14:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | h | simpleconfig.h | #pragma once
#include "customnames.h"
#include "configreader.h"
#include "detail/config.h"
#include "detail/configmacro.h"
#include "detail/simpleformat.h"
namespace cmdlime{
using SimpleConfig = cmdlime::detail::Config<cmdlime::detail::FormatType::Simple>;
}
|
0a674e4f7ebccaf96c25030bb7fa33fb70e8cdb0 | 12d2d105d55ac0061bbbd1a29122c165e79c4b0a | /Scheduler/src/Scheduler.h | cf65275d4be941e0a852b210be5f972ad1263531 | [] | no_license | giulianoc/CatraLibraries | 75d3f22f7636ae001d4bd2cc4e83648664e0734e | 928730f656290b0f9907e7794935f96d2a895df1 | refs/heads/master | 2023-03-03T11:28:54.408320 | 2023-02-26T11:13:30 | 2023-02-26T11:13:30 | 29,320,791 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,892 | h | Scheduler.h | /*
Copyright (C) Giuliano Catrambone (giuliano.catrambone@catrasoftware.it)
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
ve... |
90c7091670dafea28a2d937f5ba0f9f4247eb910 | be6e6f384fa5eb61f14eb2a418541efb9ddbaed1 | /daemonsofchaosslaaneshfaction.cpp | 2699c11380d0724d0f3ca8c6593baa8243a4e81d | [] | no_license | mehoggan/ArmyBalancer | fdc9ccb12cb1a0139486a76124f493788bd37101 | b1a3698e3bdb38cc25281ea203f2642ff5a08725 | refs/heads/master | 2021-06-06T08:14:39.542664 | 2019-11-29T18:56:32 | 2019-11-29T18:57:46 | 39,392,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,444 | cpp | daemonsofchaosslaaneshfaction.cpp | #include "daemonsofchaosslaaneshfaction.h"
namespace WarScrollGeneration
{
WarScroll Keeper_of_Secrets(const std::string &name)
{
WarScroll ws;
ws.setTitle(name);
ws.setCharacteristics(14, 10, 10, 4);
ws.addWeapon(WarScroll::Weapon("Razor-sharp Claws", 2, 6, 3, 3, 1, 2));
ws.addWeapon(WarScrol... |
c39ebce86392695a6285f487d21aadd758123af9 | 41b3dc19df92c63a34ac4d0965557f8bc8e11b3c | /Data Structures/Arrays/WaveArray.cpp | 9b5ac9b9f8f6a2f04c6a10ecd58e7e3cb40cafca | [] | no_license | AyushSri19-777/Coding-2020 | 6153228dad129f8bdbb8923bfe4c9ffacafb2e98 | 8585c2ec2573871a182c72183f372416039019e7 | refs/heads/master | 2022-12-24T20:46:49.235973 | 2020-10-01T18:39:33 | 2020-10-01T18:39:33 | 259,876,021 | 0 | 3 | null | 2020-10-01T18:39:34 | 2020-04-29T09:02:41 | C++ | UTF-8 | C++ | false | false | 690 | cpp | WaveArray.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cout<<"Enter the number of array elements\n";
cin>>n;
int arr[n];
cout<<"Enter array elements\n";
for(int i=0;i<n;i++)
cin>>arr[i];
for(int i=0;i<n;i+=2)
{
if(i-1>0&&arr[i-1]>arr[i])
{
ar... |
841624df19dc0845bba62d4181324bd7aac44bb4 | ccd40b971ef0ad5bec9e12fcaa81a7e63d74c551 | /src/primitives.cpp | d5aa866f70bcb1721235e2c4296370e7d2eb95a8 | [
"MIT"
] | permissive | Sindisil/ray-tracer-challenge-cpp | dd43ac7d89155f26c977111127838dd2f2efa18d | 7588a28171f4546843d4fb97a9aad22b9a62b539 | refs/heads/main | 2023-02-28T05:20:10.983465 | 2021-02-04T06:54:07 | 2021-02-04T06:54:07 | 311,523,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | cpp | primitives.cpp | #include "primitives.h"
#include <ostream>
namespace raytrace {
auto Vector3::reflect(Vector3 normal) const -> Vector3 {
return *this - normal * 2 * this->dot(normal);
}
auto operator<<(std::ostream &os, Vector3 const &val) -> std::ostream & {
os << "Vec3(" << val.x << ", " << val.y << ", " << val.z << ")";
r... |
c3488b2f3e1d0ada5ef837f957b40608053c7234 | b3cc0105d9cc7b25a6de5a637047872b6a87a0e1 | /Trabalho2/Exercicio5/Exercicio5/Exercicio5.cpp | ccde9f1ab89597d0c63f9243cab439d2f40818ae | [] | no_license | joseeduardoleite/trabalhos-faculdade | 300761cfe90d19fbf80dea3104a36f0b1330476c | 8f21727d9616c54c5e8145e0d9bdad7871b336a6 | refs/heads/main | 2023-01-05T14:18:59.079896 | 2020-11-06T02:26:07 | 2020-11-06T02:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,348 | cpp | Exercicio5.cpp | #include <iostream>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
//criação das structs
struct ponto2d
{
int x, y; //atributos
};
//estruturas
struct ponto2d ponto_inicial;
struct ponto2d ponto_final;
int main()
{
int resposta = 0; //variavel para verificação d... |
756906e85db1875f930d853548c2fd70948fe984 | 0253211cf030ee20f34894442e8ef222c0aebb25 | /Pr03a-Patient-maharjan-pratistha (1).cpp | b31a80ecc2cff86c24a19c3bf5eba5ffbd4d6af5 | [] | no_license | Pratistha98/Comsc-110 | bb27bb968bdc0ef749863f07abe47780abb81488 | b158ed29dc9e8c6ebb4f9a711807a2c109d4954f | refs/heads/master | 2020-06-29T17:42:10.939540 | 2019-08-05T04:30:51 | 2019-08-05T04:30:51 | 200,582,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | cpp | Pr03a-Patient-maharjan-pratistha (1).cpp | /*
School: Diablo Valley College
Term : 2017 Fall
Course: ComSc-110-3120,
Introduction to Programming (With C++)
Chapter: 3
Program: Pr03a-Patient-maharjan-pratistha.cpp
Author : Maharjan, Pratistha
Date : Aug.24,2017
Purpose: Get familiar with:
-- declaring variables of different types
-... |
52015e6e13232889de88a41f20067d5ebfa93988 | 76270c3a731e8f4906153a897fbbcf2e3ef63711 | /src/Parser.cpp | 9cbd365e5234dece18b94fa477369d1c355d7312 | [
"BSD-2-Clause"
] | permissive | wrighteagle2d/wrighteaglebase | c16c5f0e5e15dace3bf3bbf9464017fd6b495487 | 758b7fc3ef2166e33b4e1a91a9bd799e26aefa6b | refs/heads/master | 2022-09-23T20:54:56.466493 | 2022-09-19T05:53:44 | 2022-09-19T05:53:44 | 42,196,878 | 96 | 46 | null | null | null | null | UTF-8 | C++ | false | false | 65,641 | cpp | Parser.cpp | /************************************************************************************
* WrightEagle (Soccer Simulation League 2D) * BASE SOURCE CODE RELEASE 2016 *
* Copyright (c) 1998-2016 WrightEagle 2D Soccer Simulation Team, * Multi-Agent
*Systems Lab., * School of Computer Science... |
54d3b0a6ba3a1a86979448ddf98037215ae77135 | e94559835dec204537927865800f95b81a191b7f | /Tympan/geometric_methods/AcousticRaytracer/Acoustic/Source.h | 24f0a5afc385b8f63b4176596a803c914dfc2110 | [] | no_license | FDiot/code_tympan3 | 64530a3fc8a392cdbe26f478a9ea9ce03abab051 | cf4383c4a162962b68df470e2bf757ad534880b9 | refs/heads/master | 2022-04-07T10:54:05.711913 | 2019-10-24T13:27:42 | 2019-10-24T13:27:42 | 239,812,326 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,792 | h | Source.h | /*
* Copyright (C) <2012> <EDF-R&D> <FRANCE>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is dis... |
d57701aa3fcedaaf66bb69ffe77662ed581d14da | 40c276887b62c128248883246839687f20f23cb4 | /src/main/native/src/org_broadinstitute_hellbender_tools_spark_bwa_NativeSplitFastqSparkEngine.cpp | ae5b4097b82b5f9abd0263ab2d0122b0e9891c7d | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | falcon-computing/gatk | 08ebbda56920beaa430be20cce04e55c22786432 | 384de223ac1c788ed7a2be3ab7837adedacfbb11 | refs/heads/master | 2021-06-27T09:12:39.992898 | 2017-09-11T21:56:44 | 2017-09-11T21:56:44 | 95,244,579 | 0 | 0 | null | 2017-06-23T18:08:19 | 2017-06-23T18:08:18 | null | UTF-8 | C++ | false | false | 2,655 | cpp | org_broadinstitute_hellbender_tools_spark_bwa_NativeSplitFastqSparkEngine.cpp | #include<string>
#include<jni.h>
#include"org_broadinstitute_hellbender_tools_spark_bwa_NativeSplitFastqSparkEngine.h"
using namespace std;
int SplitFASTQ(const int kVerboseFlag, const size_t kBatchSize, int* seq_length, const string& kInputFastq1, const string& kOutputFastq1, const string& kInputFastq2, const stri... |
5fa638d7bb7a13a0f04698f8b2a200820c693448 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /services/network/public/cpp/devtools_observer_util.h | 5090e66eae7430cfe6a0fb6892e3fdd0f897a73d | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 803 | h | devtools_observer_util.h | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_NETWORK_PUBLIC_CPP_DEVTOOLS_OBSERVER_UTIL_H_
#define SERVICES_NETWORK_PUBLIC_CPP_DEVTOOLS_OBSERVER_UTIL_H_
#include "base/component_export.h"
#include "servic... |
7029f89e864986f18687110ff87e2841c106a111 | ae29d4dab4f10c7ccd5b106544e00fb1a11de82b | /Embedded and Real Time Systems/110/Complete Code/src/GpioOutAct/GpioOut/GpioPattern.h | d279896e7c6f3f6ec48c15874bd62dcdec0e941f | [] | no_license | djgordon-maker/Portfolio | 9ab2d4c8b8eaf72f27c8aae20e3a900209f4360d | 9d336a29a2349b1c2f89fec93bafd4e27b20a8d9 | refs/heads/main | 2023-04-22T05:59:35.022742 | 2021-05-16T23:08:49 | 2021-05-16T23:08:49 | 367,220,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,621 | h | GpioPattern.h | #ifndef GPIO_PATTERN_H
#define GPIO_PATTERN_H
#include "bsp.h"
#include <stdint.h>
#include "fw_log.h"
#include "qassert.h"
#define GPIO_PATTERN_ASSERT(t_) ((t_)? (void)0: Q_onAssert("GpioPattern.h", (int32_t)__LINE__))
namespace APP {
class GpioInterval {
public:
uint16_t m_levelPermil; // Brightness level... |
f02e3b10b06871b288ebbc6ce6861932bc93fbdd | 568b312985afec4e83112020f4683bd8141fdabf | /FineMesh.cpp | 7c2805e9a6197a8aa2bb528d273ec326417318ae | [] | no_license | pkestene/carmen | 8b9040f3edf972ad4875ec0e0dfac9aff6532093 | 280d8d0048f20c8663ddfb471d16ab66841a7186 | refs/heads/master | 2020-12-25T23:56:58.828202 | 2016-08-23T08:25:08 | 2016-08-23T08:25:08 | 66,345,593 | 1 | 0 | null | 2016-08-23T07:48:39 | 2016-08-23T07:48:37 | null | UTF-8 | C++ | false | false | 51,516 | cpp | FineMesh.cpp | /***************************************************************************
FineMesh.cpp - description
-------------------
begin : Wed Jun 13 2001
last correction : Thu Jan 10 2012 by Margarete Domingues
copyright : (C)... |
54b1a5cd2a35daee6e5c4d4f1acf85e8c9dd72a6 | 142763726959c21bb1dc75baff1e3a227534604a | /libraries/chain/get_config.cpp | 8028a199fc73330e6b52cd15f79af63f3cca9086 | [
"MIT"
] | permissive | xeroc/graphene | 5df3120d4b18122436f494177fb84e2f48821f5a | a3e609d331e196679ba48a0a346eb5c25eda3b4f | refs/heads/master | 2020-04-05T04:41:45.963467 | 2016-02-09T12:59:22 | 2016-02-09T12:59:22 | 51,822,072 | 2 | 0 | null | 2016-02-16T09:02:37 | 2016-02-16T09:02:35 | null | UTF-8 | C++ | false | false | 8,267 | cpp | get_config.cpp | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Any modified source or binaries are used only with the BitShares network.
*... |
8f4e7163a49de5688403d78423e12e38f5ed54c6 | 0c22d527c18df1f4edb90523f01e4a56cdf58606 | /NaoTH2011-light/NaoTHSoccer/Source/Core/Cognition/Modules/Modeling/GoalLocator/ActiveGoalLocator/AGLSample.h | 675e6164c11b252a1264eca8f07d4f2ee2de1776 | [] | no_license | IntelligentRoboticsLab/DNT2013 | 3d9fdb1677858fe73006132cc47dda54b47ef165 | ddc47ce982fe9f9cfaf924902208df1d5e53a802 | refs/heads/master | 2020-04-09T06:04:30.577673 | 2013-12-11T13:39:12 | 2013-12-11T13:39:12 | 9,521,743 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 619 | h | AGLSample.h | /**
* @file Sample.h
*
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a>
* Declaration of class Sample
*/
#ifndef __AGLSample_h_
#define __AGLSample_h_
#include "Cognition/Modules/Modeling/SelfLocator/MonteCarloSelfLocator/Sample.h"
#include "Tools/ColorClasses.h"
class A... |
17a5029d9f6cbe5f5f9f423d990531352399bc13 | f9b2a0ad56047a42823d3d9bec67b78752d4c8a2 | /src/demosaic.cpp | 47f9dea244309f817563b1fce1b13cc125640198 | [] | no_license | KailunL/418 | 7bec5bf5c1527b4fe64c1b618988a06721f608e2 | a0ab87c75909bc7c6ce9fcb2904209413529d3dc | refs/heads/master | 2020-04-17T05:18:18.049400 | 2019-01-17T18:09:27 | 2019-01-17T18:09:27 | 166,272,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,512 | cpp | demosaic.cpp | #include "demosaic.h"
void demosaic(
const std::vector<unsigned char> & bayer,
const int & width,
const int & height,
std::vector<unsigned char> & rgb) {
rgb.resize(width * height * 3);
////////////////////////////////////////////////////////////////////////////
// Add your ... |
2e98c8dd51d9c001b6c0bafedfe671fcb382d528 | 71ce9666e1b0f78c2deb08e5550483ce57c5b9e6 | /(mini)/winapi(labs)/pentamollis/pentamollis/source.cpp | f61a9eddeccbd529c8a098415bbd3e1f7c71918b | [] | no_license | RV8V/code-cpp | c49f2bd2fd8fe20c8a916590e99ceea9dc552a86 | 16076bdb9318f0aad15bbc6a78f3c72d40958d79 | refs/heads/master | 2023-02-15T04:13:08.147451 | 2021-01-10T12:20:15 | 2021-01-10T12:20:15 | 290,825,039 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,845 | cpp | source.cpp | #include <Windows.h>
#include <stdlib.h>
#define FILE_MENU_NEW 1
#define FILE_MENU_OPEN 2
#define FILE_MENU_EXIT 3
#define CHANGE_TITLE 4
#define CHANGE_TITLE_VIA_BUTTON 5
#define GENERATE_BUTTON 6
#define ID_DIALOGBOX 7
#define INPUT_TEXT_SIZE 100
#define NAME_SIZE 30
#define AGE_SIZE 10
#define OUT_SIZE 50
LRESULT... |
82c0dbe9078a64597e3f52853538e04f881acbcc | 14967a93424babfb3d8e80c6c0aa5fc54f857b9a | /FluxSol-Solver/Tmp/TmpI-.h | e58ca4a0caf40fe691895297b93edfd3f9616cfe | [] | no_license | luchete80/fluxsol | aec0cdf118e0726d559916aba3f8d6e32d3cc609 | a29af77858597d3fe77d3715d7c0fb65dba07736 | refs/heads/master | 2020-03-22T09:26:40.640514 | 2018-07-18T16:25:00 | 2018-07-18T16:25:00 | 42,241,640 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,793 | h | TmpI-.h |
//#include "error.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class T>
inline FluxSol::tmp<T>::tmp(T* tPtr)
:
isTmp_(true),
ptr_(tPtr),
ref_(*tPtr)
{}
template<class T>
inline FluxSol::tmp<T>::tmp(const T& tRef)
:
isTmp_(false),
ptr_(0),
ref_... |
b9be5b7ea080af16c378ebc4601095fac08b6fe4 | 0ce14ede0093afa61f977723f718c5f326226601 | /nopsn/natives.h | 9f58705f424cd31783e84377f50c441df83da92c | [] | no_license | esc0rtd3w/nopsn-sprx | faff4de8cf6a559de5baf543d60195a28f332d99 | 797f1fc4eaf4f1a5ea88b91534bc4710cb5b88d9 | refs/heads/master | 2021-01-19T09:08:04.988970 | 2017-04-22T23:42:45 | 2017-04-22T23:42:45 | 87,726,010 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 259 | h | natives.h | #pragma once
#include "core.h"
namespace YouTube
{
// Unknown Text 1
opd_s _UNK_TEXT_1 = {UNK_TEXT_1, TOC};
void(*UNK_TEXT_1)(char* unk1, int* unk2, int* unk3, int* unk4, int* unk5) = (void(*)(char*, int*, int*, int*, int*))&_UNK_TEXT_1;
};
|
f3f87364b5c775ed5a56de5dc880f0f63607099f | aad28fa1140e713c8591db5a383ac5f6605f743b | /343 Поиски минимума/Поиски минимума.cpp | 5566ddad21fe254474e363a8bc3e517004137b6b | [] | no_license | DaniilMuntyan/Solutions_e-olymp | d7ad45357d4f999c853efefcd47c39bc17e33664 | 7a318572e13f2e6103a2ade49c8ce9c5210caad9 | refs/heads/master | 2021-02-28T15:22:58.506994 | 2020-03-07T21:42:50 | 2020-03-07T21:42:50 | 245,708,666 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | Поиски минимума.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long n,i,mi;
cin >> n;
vector <long long> d(n);
cin >> d[0];
mi = d[0];
for(i=1;i<n;i++){
cin >> d[i];
if(mi > d[i])
mi = d[i];
}
cout << mi << endl;
} |
395b89c0194c4f2512a6715d2641d2f79a04ad4e | 25f96fbbf57000b1c4dbe3f48fa15d1dc9032245 | /Soluciones/SPOJ/LUCKY/LUCKY.cpp | 91bbbf37ba5f137e68fb2b243af3848aaa2dba6a | [] | no_license | joacru/Programacion-Competitiva | 2a16655403b9c057b79e102a17e3beaec37a2b84 | b0d58b1690214556e27ef626aae2a54eec4062dc | refs/heads/master | 2023-07-19T21:28:07.369044 | 2023-07-09T00:14:51 | 2023-07-09T00:14:51 | 207,465,986 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,772 | cpp | LUCKY.cpp | #include<bits/stdc++.h>
#define forn(i, n) for(int i = 0; i < n; i++)
using namespace std;
const int MAXN = 1E5 + 5;
struct edge{
int u, v, comp;
bool lucky;
int getTo(int x){
return (u ^ v) ^ x;
}
};
int dfsN[MAXN], dfsM[MAXN], bicC = 0;
vector<int> adj[MAXN];
vector<bool> lucky(MAXN);
edge edges[MAXN];
st... |
fd732487c711dd45cf8cee988ac7400ad6198e7a | 0cf74b1be006bff40e929c37a8cd721e6c2d970e | /src/Timsort.h | 1d00c13da13ab3c33f2cd7beb3637e7380439e7c | [
"MIT"
] | permissive | mmwind/timsort-cpp | 422e5b05703b0ce85bbd4f0254b4cdf0e94dba30 | d10829ed5746cb63214b9f6b6e390ffcd9f2865b | refs/heads/master | 2021-01-10T06:47:04.158722 | 2015-11-03T15:01:10 | 2015-11-03T15:01:10 | 44,866,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,691 | h | Timsort.h | /*
* Timsort.h
*
* Created on: 24 окт. 2015 г.
* Author: mmwind
*/
#ifndef TIMSORT_H_
#define TIMSORT_H_
#include <cstdlib>
#include <vector>
class Timsort {
public:
Timsort(){ };
virtual ~Timsort(){ };
void sort(){
if(Array == NULL) {
throw (std::bad_array_length());
}
... |
3fa51fc7dd8516d0685cefc8afcf48f298d00bb3 | f20e965e19b749e84281cb35baea6787f815f777 | /Hlt/Hlt/HltLuminosity/src/LumiCountVertices.h | d5745903ba1d5ccc0d6d14c2d24fc88a1d81794d | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | h | LumiCountVertices.h | // $Id: LumiCountVertices.h,v 1.2 2008-08-25 10:59:04 panmanj Exp $
#ifndef LUMICOUNTVERTICES_H
#define LUMICOUNTVERTICES_H 1
// Include files
// from Gaudi
#include "GaudiAlg/GaudiAlgorithm.h"
// from LHCB
#include "Event/Vertex.h"
#include "Event/RecVertex.h"
/** @class LumiCountVertices LumiCountVertices.h
*
*
... |
e191a0b50af154c78cb534c29040de1ab07a14a3 | 8072f4d2c4d7416c1ffd975b059f79573cbbceec | /exceptionhandler.hpp | 022cf5c2ccb84282e494a8d5f98d05ac2fc8f415 | [] | no_license | jjzhang166/angle | 1857719a9d813cb7f862e953376190cd6cbc98ff | 041766ae941a81b5b8dcaa5d06126a593fb9815e | refs/heads/master | 2021-01-01T19:36:37.169393 | 2017-03-07T19:06:18 | 2017-03-07T19:06:18 | 98,623,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | hpp | exceptionhandler.hpp | //@ {
//@ "targets":[{"name":"exceptionhandler.hpp","type":"include"}]
//@ ,"dependencies_extra":[{"ref":"exceptionhandler.o","rel":"implementation"}]
//@}
#ifndef ANGLE_EXCEPTIONHANDLER_HPP
#define ANGLE_EXCEPTIONHANDLER_HPP
#include "error.hpp"
namespace Angle
{
class ExceptionHandler
{
virtual void raise(... |
e0c33eced98866b4e11b4ae9cd731e2e8d18d0ce | 16f6c597e76e65bf77400c28a12cc6bb2a51f3ff | /Project/LEDA/test/core/misc/qsort_isort.cpp | d514cd1ea473a8e9395c02de686bf0afcd03329c | [] | no_license | raghukul01/Randomized_Algorithms | 347e82d7518e693c2d2adada28b0f7faaeecd3c2 | 36488f45b4ee2d3f4415ddacaedee61c2b94921a | refs/heads/master | 2020-03-27T06:07:48.920465 | 2018-11-15T13:01:05 | 2018-11-15T13:01:05 | 146,081,033 | 10 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,771 | cpp | qsort_isort.cpp | #include <LEDA/system/basic.h>
#include <LEDA/core/array.h>
#include <LEDA/core/basic_alg.h>
#include <LEDA/core/quicksort.h>
#include <assert.h>
using namespace leda;
#if defined(LEDA_STD_IO_HEADERS)
using std::cout;
using std::endl;
using std::flush;
#endif
int main ()
{
int N = read_int("N = ");
array<i... |
037fb90acf58c41af5e28c8605a6d4ca45b81f0f | 96de4fc452fc9d1a6473ec8ad68c1d6cf0cf60bf | /les1_knipperlampje.ino | 6a9ee05748eb6d1264b45701f9244c79a201e12f | [] | no_license | shoebby/arduino_experiments | 7d81e26f38556596d21cabfa768c16ea13f9e769 | 7f448ddc2c2a2c4dddc6127354607ff8289845bf | refs/heads/master | 2020-12-09T21:38:34.182097 | 2020-01-12T16:36:04 | 2020-01-12T16:36:04 | 233,423,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | ino | les1_knipperlampje.ino | void setup() {
pinMode(3,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(9,OUTPUT);
}
void loop() {
for (int i=0;i<255;i++) {
analogWrite(3, i);
delay(5);
}
for (int i=0;i<255;i++) {
analogWrite(5, i);
delay(5);
}
for (int i=0;i<255;i++) {
analogWrite... |
b6e6e02b089bfbeb275a727313e2653eb05f5be3 | 56ba2984d5f47c13ebb3ded8a041d43f9522e27f | /inexlib/ourex/SOPHYA/src/SkyMap/spherehealpix.cc | d6b2b225a64db7ced4bd7f5e8ae9c6158eb54185 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | gbarrand/TouchSky | 2ad7ec6eef209a8319698829877c20469857dbe1 | a6216fb20fbcf9e38ac62a81cef8c4f053a07b8c | refs/heads/master | 2021-09-11T07:25:41.523286 | 2021-08-31T09:29:39 | 2021-08-31T09:29:39 | 133,839,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,543 | cc | spherehealpix.cc | /* ------------------------------------------------------------------------------------
SOPHYA class library - (C) UPS+LAL IN2P3/CNRS , (C) CEA-Irfu-SPP
Spherical map in HEALPix pixelisation
G. Le Meur, F. Touze 2000
Updated: R. Ansari 2015
-----------------------------------------------------... |
ba58e68b5adfb547f8feaaecc1888f5388d2a077 | 539aff4c4469b2cc74fa08a3f574377b4c76c484 | /COJ/2185.cpp | 84bd29f7868168350d12691b59b7e1c366401449 | [] | no_license | jorgenunezsiri/competitive-programming-solutions | ddf837547ec7cdb5360b50d46e1b536421faf91f | e0193020d0a0dbadec6bbee21eb1d3e0ce76e849 | refs/heads/master | 2020-06-22T07:51:22.414944 | 2019-07-20T03:26:26 | 2019-07-20T03:26:26 | 197,675,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cpp | 2185.cpp | // Copyright (c) Jorge Nunez Siri. All rights reserved.
// Problem URL: https://coj.uci.cu/24h/problem.xhtml?pid=2185
#include <iostream>
using namespace std;
int main()
{
int A, B;
cin >> A >> B;
cout << (A+B) << "\n";
cout << (A-B) << "\n";
cout << (A*B) << "\n";
cout << (A/B) << "\n";
... |
6afb3df86d4b413dcf2077cda5bb4d5824366640 | 45bebb1cf4e951d673755e5700a9e30b27b1c3ae | /VME/mafVMEGenericAbstract.h | be405ff568d7dd90fdd20e626f7fda2a638d5d61 | [] | no_license | besoft/MAF2 | 1a26bfbb4bedb036741941a43b135162448bbf33 | b576955f4f6b954467021f12baedfebcaf79a382 | refs/heads/master | 2020-04-13T13:58:44.609511 | 2019-07-31T13:56:54 | 2019-07-31T13:56:54 | 31,658,947 | 1 | 3 | null | 2015-03-04T13:41:48 | 2015-03-04T13:41:48 | null | UTF-8 | C++ | false | false | 5,612 | h | mafVMEGenericAbstract.h | /*=========================================================================
Program: MAF2
Module: mafVMEGenericAbstract
Authors: Marco Petrone
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; with... |
70cf8e3b609a184b37803329d58af797c8ee3f5c | 0f7da6410704d3682de7e4e2968355911ba0bd80 | /AVR/AVR/Trampoline.cpp | 7890723e2082b17879e0ee7e6652824486e3cf55 | [] | no_license | modulolabs/firmware | 21c95b2995dfd1e8a8a2662ed287bced5c65495e | 1f5bf96faac5b894de3654d3c7c86894703cc52b | refs/heads/master | 2020-04-09T10:11:23.956729 | 2015-12-06T23:38:31 | 2015-12-06T23:38:31 | 21,027,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 225 | cpp | Trampoline.cpp | /*
* Trampoline.cpp
*
* Created: 11/2/2015 12:08:58 PM
* Author: ekt
*/
void startApplication() __attribute__((section (".trampoline"))) __attribute__((naked));
void startApplication() {
asm("rjmp __ctors_start");
}
|
a187f74999e81b7838648452fc1ff8b26cb22629 | 7e45ea36e7919ab7335ee4079b6d102cfd91c69d | /Bomberman/createpartymultigamer.cpp | bf456578c95d0227ec1a4f0adc320498164b8687 | [
"MIT"
] | permissive | CPI4Admin/BomberMan | aadf9e7cc99fa0eb81d53b17b58b9ad1ff5a1982 | 9f9aae50e71e458c55671952216ea85fa13dc5f4 | refs/heads/master | 2021-01-10T18:58:32.573642 | 2014-06-23T08:57:23 | 2014-06-23T08:57:23 | 16,377,048 | 0 | 0 | null | 2014-06-23T08:57:23 | 2014-01-30T12:45:27 | C++ | UTF-8 | C++ | false | false | 840 | cpp | createpartymultigamer.cpp | #include "createpartymultigamer.h"
#include "ui_createpartymultigamer.h"
#include "bmnetworktcpserver.h"
#include "bmnetworktcpclient.h"
createpartymultigamer::createpartymultigamer(QWidget *parent) :
QDialog(parent),
ui(new Ui::createpartymultigamer)
{
server = new BmNetworkTCPServer();
ui->setupUi(... |
3a69459502b6e5e3ac92b3360a93993194514aab | 21556e8fdf12bee1a9d6990c3c84b8eba2843900 | /src/Emulator/mappers/uxrom.cc | 225ebe183bf62775e2f2416f938fd761930b4824 | [
"MIT"
] | permissive | DalePutnam/D-NES | 60989b24d3d49d90646245f22d93fa37e47bf61b | a169ed69edf2d895ae26f412d068433254d7c39b | refs/heads/master | 2021-04-03T02:09:00.290213 | 2020-05-28T02:36:24 | 2020-05-28T02:37:49 | 17,896,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,458 | cc | uxrom.cc | #include "uxrom.h"
UXROM::UXROM(iNesFile& file)
: MapperBase(file)
, _register(0)
{
}
void UXROM::SaveState(StateSave::Ptr& state)
{
MapperBase::SaveState(state);
state->StoreValue(_register);
}
void UXROM::LoadState(const StateSave::Ptr& state)
{
MapperBase::LoadState(state);
state->StoreV... |
a22cd82003a02ad9cace57f83f8ff03513f4a78c | 3f4aefcdf695627adb590e8d7a87487772d548f1 | /ecoin/build/ui_savingsdialog.h | 72d934247839697e0f112feb332697b352e8261f | [
"MIT"
] | permissive | aleph1888/ecoin | a502d7ce993440e3f5cb551ca0b8539487f0f05c | 862358161037c863018d2b801892adfcb8d4cd27 | refs/heads/master | 2020-12-11T01:50:34.888901 | 2015-04-11T23:15:20 | 2015-04-11T23:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,881 | h | ui_savingsdialog.h | /********************************************************************************
** Form generated from reading UI file 'savingsdialog.ui'
**
** Created by: Qt User Interface Compiler version 4.8.6
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.