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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91c9a7fa22685d0a339abd85885a98fc60c6fd8a | 2f4e8373b3fe230d2cf24c135c76b264de8449dd | /src/print/MariaPrinter.h | e73c4ae903547b0536d11005b50b94a4d8a203c3 | [
"MIT"
] | permissive | zhuochenbioinfo/Sniffles | b49eb4f6ce2c179d3414f4b964749a3a1f60c08f | 4620d189a043a733978d26ca74e93fdb0defb958 | refs/heads/master | 2021-01-17T22:50:02.675907 | 2016-06-20T17:50:35 | 2016-06-20T17:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | MariaPrinter.h | /*
* MariaPrinter.h
*
* Created on: Sep 4, 2015
* Author: fsedlaze
*/
#include "IPrinter.h"
class MariaPrinter: public IPrinter{
private:
void print_header();
void print_body(Breakpoint * &SV, RefVector ref);
public:
MariaPrinter(){
}
~MariaPrinter(){
}
};
|
9ae0019ce2a58c563786be14cbc5427338234581 | 66339fcf4b2abd2deb9388a34692509fed892905 | /geeksforgeeks/stack/Longest valid Parentheses.cpp | 073c46122c0cb0eef75437392c27f3b5fe91836d | [] | no_license | indra215/coding | aa4a6f91bf6dc2ce52e2e7054a3ce75160840789 | 588fbe3abfd6912c82597ca596f29589e3c48ba7 | refs/heads/master | 2020-03-24T14:14:18.315934 | 2018-07-29T13:30:52 | 2018-07-29T13:30:52 | 142,763,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | cpp | Longest valid Parentheses.cpp | #include <iostream>
#include <string>
#include <stack>
using namespace std;
int longestValid(string inp){
int len = inp.length(), curr = 0;
stack<int> s;
s.push(-1);
for(int i=0;i<len;i++){
if(inp[i] == '('){
s.push(i);
}
else if(inp[i] == ')'){
s.pop();
if(!s.empty()){
curr = max(curr, i-s.to... |
b3dafcc24d341855d850bc018959e8b17c61576a | 84a9cf5fd65066cd6c32b4fc885925985231ecde | /GDS2/Plugins/src/RenderViewer/RenderViewer.cpp | a13956ff705e442d3d3ec933abab2949a68bc6ad | [] | no_license | acemon33/ElementalEngine2 | f3239a608e8eb3f0ffb53a74a33fa5e2a38e4891 | e30d691ed95e3811c68e748c703734688a801891 | refs/heads/master | 2020-09-22T06:17:42.037960 | 2013-02-11T21:08:07 | 2013-02-11T21:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,233 | cpp | RenderViewer.cpp | //=====================================================================
// File: RenderViewer.cpp
// Description: Defines the initialization routines for the DLL.
// Started: 05/12/2005
// Original: Brian Bazyk
/// \note Elemental Engine
/// Copyright (c) 2005-2008 Signature Devices, Inc.
///
/// ... |
e7a478b6f20a4cb982ae6c2be1c50ec4936d8171 | 8adafe96914bf039cb0455f3f84c04d5e782bd60 | /practise/src/leetcode/count_binary_substrings.h | 081f3154011aea07572f818db9fcd6fb295ce21f | [] | no_license | sryanyuan/cpp11_practise | 1e7d78341349b91773fa8d667bd9ac83e51ea5d0 | 0ead6d5d2f16bd344fee92668fd5b364439a86ac | refs/heads/master | 2021-06-25T13:51:29.957869 | 2019-04-10T04:08:47 | 2019-04-10T04:08:47 | 133,794,224 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,350 | h | count_binary_substrings.h | #ifndef _INC_COUNT_BINARY_SUBSTRINGS_
#define _INC_COUNT_BINARY_SUBSTRINGS_
#include "_common_all.h"
class CountBinarySubstrings {
public:
static void test() {
auto ret = main("00110");
}
static int main(string s) {
if (s.empty()) {
return 0;
}
vector<int> cnts;
cnts.reserve(s.size());
cnts.push_ba... |
f5c4f780dc8e87b2a6f86954b80dfa604e7d0143 | e000dfb2e1ddfe62598da937d2e0d40d6efff61b | /venusmmi/framework/ui_core/mvc/vfx_skinned_mesh.h | 410a64a1e14fec025edf638060e4f99520adc1d6 | [] | no_license | npnet/KJX_K7 | 9bc11e6cd1d0fa5996bb20cc6f669aa087bbf592 | 35dcd3de982792ae4d021e0e94ca6502d1ff876e | refs/heads/master | 2023-02-06T09:17:46.582670 | 2020-12-24T02:55:29 | 2020-12-24T02:55:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,668 | h | vfx_skinned_mesh.h | /*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or dis... |
db6f168bb6b225eeb28e629823a680bd34f6e85f | 4a1ef66e84febdd996ccccb1d7cdf0002ba9e411 | /projects/Sample2/Headers/Sample2.h | 8fc7b62165b0b6bf3dc036d86bc0fb39a7d5d56c | [
"MIT"
] | permissive | grtwall/kigs | dc782b517626ab792048a3f74e670ba39ae17aaa | 2ada0068c8618935ed029db442ecf58f6bf96126 | refs/heads/master | 2023-06-06T12:11:44.054106 | 2021-06-28T11:31:43 | 2021-06-28T11:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | h | Sample2.h | #pragma once
#include <CoreBaseApplication.h>
class Sample2 : public CoreBaseApplication
{
public:
DECLARE_CLASS_INFO(Sample2, CoreBaseApplication, Core);
DECLARE_CONSTRUCTOR(Sample2);
protected:
void ProtectedInit() override;
void ProtectedUpdate() override;
void ProtectedClose() override;
};
|
1beb073960dfd956b108fbf13687c242ea02b50b | a4a42a64d0dc26d3529a0408ace5844bee8fbf8b | /asg2/frameGen/main.cpp | d07783427e6a191b4806d22fa6dda21e6d1d648b | [] | no_license | ctrull-clemson/2d_fall17 | 6c366bf5dbc2542f91f5f2928eede8a57210aae0 | 2e36c8113347ef375d7be2e35329b652ff53085a | refs/heads/master | 2021-08-28T18:45:26.531039 | 2017-12-13T00:44:46 | 2017-12-13T00:44:46 | 103,997,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | cpp | main.cpp | #include <SDL2/SDL.h>
#include <iostream>
#include "frameGenerator.h"
#include "circle.h"
#include "pokeball.h"
const int WINDOW_WIDTH = 640;
const int WINDOW_HEIGHT = 640;
int main(void) {
SDL_Renderer *renderer = NULL;
SDL_Window *window;
SDL_Init(SDL_INIT_VIDEO);
SDL_CreateWindowAndRenderer(
WINDOW_W... |
bbcd8ddfa9dc5074e8e0b7e862c158ac21f1638d | 809f8aefb33fa7be522a0111b72dca1ac0564747 | /13-tree_ky/include/base.h | 22b63a438de20deed666cfd8d12efbb1088fa912 | [] | no_license | hello-lx/DataStructureCpp | e5b3459141a175f819ee59e1270e0fb97daa2246 | 4c7fbf5482256dd4a8474e0dc5ddc552706744b4 | refs/heads/master | 2023-02-20T17:22:01.702622 | 2021-01-24T15:30:54 | 2021-01-24T15:30:54 | 266,643,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,731 | h | base.h | #ifndef BASE_H
#define BASE_H
#include <iostream>
#include <string>
using namespace std;
#define MY_TRUE 1
#define MY_FALSE 0
/** 定义各种树的数据结构
* 树存储结构:
* 双亲表示法 寻找双亲节点效率高,寻找孩子节点效率低
* 孩子表示法 寻找双亲节点效率低,寻找孩子节点效率高
* 孩子兄弟表示法 寻找双亲节点效率低,寻找孩子节点效率高,方便实现树转换为二叉树
* 二叉树:
* 类型:
* 普通... |
05fa105b97daeb0a33515150d61bdb132db48a28 | 9e58f29d028568b8aa1e76e06ee98718cffffdcb | /src/PitFinder.cpp | 17d1b86042f65f1eb9ba1841136660855018fc63 | [
"MIT"
] | permissive | scribblemaniac/Skeleton-Key-Solver | 62a3b1f29e4caad12c4042ec59180f3c50005f09 | 4da549c60379cc410ec8a67aaf744c7e58f789d3 | refs/heads/master | 2020-03-22T12:37:49.151218 | 2018-07-07T06:14:29 | 2018-07-07T08:07:37 | 140,051,832 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,389 | cpp | PitFinder.cpp | #include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
#define MAP_WIDTH 6
#define MAP_HEIGHT 8
// Recursively backtracks through the level from the position (x,y).
// This function only moves right, left and up. If a key ends up in any
// spot not expored by this function, it is impossible fo... |
6dfae13cc6d953e7801fe0b10edbad0ce27f1ac4 | 30ff457cba36b56dcfb11fc04679d66c3d5dae9a | /src/GUI/Widgets/Box.cpp | 24dbcc405dbe39a295caa2e6107a52c3ec7bd803 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | terraKote/Engine | d508d4e6c26337bbc106be6e160bcb78fb04e00a | 8361c31f614097d3d401f8ec0fe69919af49ae79 | refs/heads/master | 2022-04-07T23:47:46.838670 | 2022-03-12T10:01:58 | 2022-03-12T10:01:58 | 468,270,885 | 0 | 0 | NOASSERTION | 2022-03-10T09:15:30 | 2022-03-10T09:15:29 | null | UTF-8 | C++ | false | false | 4,106 | cpp | Box.cpp | /*!
boldtemple Gaming ©, http://gaming.boldtemple.net
OpenSource Project - Check Development, License & Readme Sections.
BGE - boldtemple Cross Platform Game Engine
/GUI/Widgets/Box.cpp
!*/
#include "GUI/Widgets/Box.h"
Box::Box(const Vec2& pos, const Vec2& size, const std::string& font, int font_pt_size) :... |
ba4bae731745f69cdd6d6f633ecf225998bfd3b0 | 799a21e89a17fffee2508d40072d68e065c903e4 | /JK2501105/TruthTable/main.cpp | 134a48d3aed21634abce79b21ebd3ddb3807286f | [] | no_license | Hillash/CSC5_Spring_2014_42450 | 5b8204b124338587a06210cf4cf05163463ac557 | 7a513d1a2f355da9a62cf86bf7ea5120699004fa | refs/heads/master | 2020-12-28T23:04:32.682727 | 2014-10-01T06:19:38 | 2014-10-01T06:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | main.cpp | /*
* File: main.cpp
* Author: julio
*
* Created on March 12, 2014, 10:15 AM
*/
//System Libraries
#include <iostream>
using namespace std;
//Global Constants
//Funtions Prototypes
//Execution Stars Here
int main(int argc, char** argv)
{
//Declare Variable
bool x=true;
bool y=true;
//Outp... |
c2807283eecf5b0b49556846f8041c54f7790a98 | c70ffe04668c4e81622f30a6ff6db27df9c518e3 | /database/src/include/firebase/database.h | d0dc904c107b9545a64e7e6c657613b8b4d69ccf | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | firebase/firebase-cpp-sdk | 469a8514beb1425afdcc923e0f5f9fb64092cdc1 | f55c43c2485e91c67a52ce60e1191fa3b0c4df61 | refs/heads/main | 2023-09-01T11:50:35.258358 | 2023-08-31T00:35:26 | 2023-08-31T00:35:26 | 175,263,313 | 270 | 112 | Apache-2.0 | 2023-09-14T19:41:20 | 2019-03-12T17:23:01 | C++ | UTF-8 | C++ | false | false | 8,723 | h | database.h | // Copyright 2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
2f7d674ed104b5d3bc6829c7e965bae11cf5d991 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArROD/LArROD/LArRawChannelBuilderToolOFC.h | 6cc4bb26ab50ca6faa377bfd39b58165157c5de6 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | h | LArRawChannelBuilderToolOFC.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/**
* @class LArRawChannelBuilderToolOFC
* @author Rolf Seuster
* @brief Obtain ADC_max by optimal filtering
*
*/
#ifndef LARROD_LARRAWCHANNELBUILDERTOOLOFC_H
#define LARROD_LARRAWCHANNELBUILDERTOOLOFC_H
#include "GaudiKernel/Tool... |
a726d4d4d36cec2b4ff8fe923c20d431408f4f61 | 83010fe0442b0cf6f7260ee71a452d087f328a5d | /apm2.cpp | cc2678e185202e77a83a18d3d6a6a4c7ac95886b | [] | no_license | samkumartp/Competitive-programming-problems | d6b32233d36dbd91fe5c78d2f4b4e37afcfe67df | 399d966d5e77aae4c3823405e3989b4e1b1bbea5 | refs/heads/master | 2020-04-08T11:54:06.225640 | 2017-09-17T16:25:35 | 2017-09-17T16:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | cpp | apm2.cpp | # include <fstream>
# include <vector>
# include <algorithm>
using namespace std;
ifstream f("apm2.in");
ofstream g("apm2.out");
struct elem
{
int nod, cost;
}E;
struct elem2
{
int x, y, cost;
}a[100005];
vector <elem> v[10005];
int i,j,n,m,q,x,y,VV,ok;
int R[10005],cost[10005],ap[10005],H[10005],maxx[10005];
b... |
1d9ee7bb638e5283ba297aa2ccbe95c421625352 | 4f9bffdb2d9a9a0b94dbaa761720492ddab79867 | /cbu/cbu/malloc/new.h | e09ec4cd05b7356158c75b0dfd983fcc6444b8eb | [] | no_license | chys87/toolchain | b4775662ffba7ea5d4976c1bfe252fec6a991339 | 129b522a645b973ffd516302a4d6e66e08637a93 | refs/heads/master | 2023-08-18T23:06:08.522163 | 2023-07-31T06:49:10 | 2023-07-31T06:49:10 | 150,109,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,076 | h | new.h | /*
* cbu - chys's basic utilities
* Copyright (c) 2019-2023, chys <admin@CHYS.INFO>
* 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 ab... |
b76db78829f1152dad75370030b106b2e96b8827 | be2480b1104d4cc002db0c2b63c09ece964ba716 | /Socket/Socket/AirListener.h | 5a45427007d17c3572b93668bcdde22be1ccaae4 | [] | no_license | PengHao/Demo | 01e28615423fa66eeb1a90b6a724616e71407e83 | b888bc0fb1ebe2e14c395f9077565a4087719bc7 | refs/heads/master | 2020-05-22T03:59:19.213794 | 2017-06-05T06:11:01 | 2017-06-05T06:11:01 | 63,064,556 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,686 | h | AirListener.h | //
// Listener.h
// AirCpp
//
// Created by Penghao on 14-2-25.
// Copyright (c) 2014年 PengHao. All rights reserved.
//
#ifndef __AirCpp__Listener__
#define __AirCpp__Listener__
#include <iostream>
#include <map>
#include "AirConnection.h"
namespace AirCpp{
typedef std::function< void(const int &handle, Conn... |
2030d9fa5d25f65b20a16380cdfabcc89c5be340 | 209cc22776dcc195f7fa5f3df27324f006efe893 | /RemoteControl/http_logic.cpp | a78c826350a06575a1559d71254d7142178840ce | [] | no_license | ninjachris81/TemperatureControlESP8266 | f5825e434286bf54b8cb694400de2fde29cc6053 | 815e863dfad785500d2c24e2b760a28b22d5529a | refs/heads/master | 2021-01-10T06:27:35.406000 | 2016-02-14T15:40:36 | 2016-02-14T15:40:36 | 51,250,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,699 | cpp | http_logic.cpp | #include "http_logic.h"
#include "password.h"
#include "debug.h"
#include "http_utils.h"
void HttpLogic::init() {
}
void HttpLogic::update() {
if (lastCheck==0 || millis() - lastCheck > HTTP_CHECK_INTERVAL_MS) {
checkData();
lastCheck = millis();
}
if (ENABLE_FLASH) {
if (lastFlashCheck==0 || mill... |
f651c0d655c6ac8104628f91ba3c96a6a0b114a8 | 9c65b7cb50f96499cf8e1d72b8283ff34be90abc | /mediaAl2/include/wav.hpp | 569d24191cd87bd1833a1554f5dff9baadd3c40a | [] | no_license | Lacty/Glfw | 6b2ca36f3c0dd5f99080dc9e59c67838c5d9c113 | f0ba17103aed3f2a4fff2ce3a8af4a4ed5f82555 | refs/heads/master | 2016-08-12T18:54:37.345396 | 2016-02-03T10:59:30 | 2016-02-03T10:59:30 | 48,664,830 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | hpp | wav.hpp |
#pragma once
//
// wavデータを扱う
//
#include <string>
#include <vector>
#include <fstream>
class Wav {
public:
struct Info {
unsigned int id;
unsigned int ch;
unsigned int sample_rate;
unsigned int bit;
unsigned int size;
};
explicit Wav(const std::string& file);
// チャンネル数を返す
unsigned int chan... |
c35008880b93af980ccaffea6d81aaf3a1a606b7 | 03f4e79a5f3c56c667b0623ad5fab03adcaea310 | /Practice little bit hard fun c++ projects/TicTactoe.cpp | f439f1009d446aa0b9ec8b6921aa0852fc26eb4b | [] | no_license | miha53cevic/CPP | e117765b38cf980b465789129a18e802c1a4e32c | 35020a6d1d33f3405894b25415c401b8dd7178c5 | refs/heads/master | 2021-06-19T22:18:06.363993 | 2021-06-11T19:11:33 | 2021-06-11T19:11:33 | 157,119,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,694 | cpp | TicTactoe.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
//Tic - Tac - Toe V3
char square[9] = {'1','2','3','4','5','6','7','8','9'};
int x,o;
int win=0;
int used[10];
void logic();
void draw();
void check_win();
/////////////////////////////////////////////////////////////////////... |
226d5a4df05cfe65df57789ccb7282349a06aa9c | 96bbb2fde4233422369fdfec9edcad816b24fe99 | /Game - Client/FrameData.h | a674bacd1a9121b89ff36b45bdd65c9db70c5e60 | [] | no_license | staswiner/virheimur | 1bc153c5b465e7a0eede6b8f1bdb702060d1debe | 2f789d9d8242f4fdae6dd8174ed54e6d6f31b298 | refs/heads/master | 2021-03-27T11:52:54.703289 | 2017-06-11T08:00:13 | 2017-06-11T08:00:13 | 75,431,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | h | FrameData.h | #pragma once
#include "string.h"
#include "Graphics_Header.h"
using namespace std;
using namespace glm;
class FrameData
{
private:
FrameData();
FrameData(FrameData const&) = delete;
void operator=(FrameData const&) = delete;
static FrameData instance;
public:
~FrameData();
static FrameData& Instance()
{
static... |
68f81db1685ae09cfae2605594b652a8416efc78 | 0e797166b432d2d27088e26c14ba76f5366d3344 | /1506D.cpp | b42712b205f26e2f6fd4c848ace3cb733f31e09f | [] | no_license | SajibTalukder2k16/Codeforces | 6305d769ba9c3c266f1153273e09b3b506084ba6 | cdffde5611b61714ea8a2beb9e2094230d0948fd | refs/heads/master | 2023-06-02T21:24:45.584916 | 2021-06-18T18:26:23 | 2021-06-18T18:26:23 | 284,424,447 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,209 | cpp | 1506D.cpp | #include<bits/stdc++.h>
using namespace std;
#define fastread ios_base::sync_with_stdio(false);cin.tie(NULL);
#define fileRead freopen("input.txt","r",stdin);
#define fileWrite freopen("output.txt","w",stdout);
#define ll long long
int main()
{
int test;
cin>>test;
while(test--)
{
int n;
... |
7c2fb62077c0e160ef5d43b4f19f9394cc9cab06 | 2bb0725d62e75bfb901005610b8ee40fd0d9f40f | /UVA/Volume 107/10762-Treasure Castle/castleV2.cpp | 06343659269f76143d844be60d840872fbff527b | [] | no_license | geraldolsribeiro/contests | 623965ede4536ef9654866a1b991c8abf10369f0 | 5c41e07c1e54a48b15ab1816190ac571c8a35593 | refs/heads/master | 2021-01-21T21:05:13.464323 | 2017-03-09T18:35:18 | 2017-03-09T18:35:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,860 | cpp | castleV2.cpp | #include<iostream>
#include<vector>
#include<cmath>
#include<deque>
#include<map>
#include<set>
#define INSIDE 1
#define OUTSIDE 0
#define BOUNDARY -1
#define INF 0x7FFFFFFF
#define MAXV 10000
using namespace std;
const double EPS = 1e-10;
inline int cmp(double x, double y = 0, double tol = EPS)
{ return (x ... |
3d371013ecaeb6a6782c51de3b5101f29390d1ae | 43c719fde993f70b475f2936905464e66f9dde6b | /wxWidgets-Paint-Program/Command.cpp | 84e50412874931aecfd38aa2a2cce746051c4da4 | [] | no_license | dcheng289/Class-Projects | 913917020f9c59d53ee7315a2e9dad855cb07a6a | 2e834678d9bd898a67c08f10b7829eefe3a0e7af | refs/heads/master | 2021-01-11T14:25:15.230140 | 2017-03-16T06:31:52 | 2017-03-16T06:31:52 | 81,398,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,614 | cpp | Command.cpp | #include "Command.h"
#include "Shape.h"
#include "PaintModel.h"
#include <iostream>
Command::Command(const wxPoint& start, std::shared_ptr<Shape> shape)
:mStartPoint(start)
,mEndPoint(start)
,mShape(shape)
{
}
Command::Command()
{
}
// Called when the command is still updating (such as in the process of dra... |
74e159f480ea38953aee93247107456ff5720fc8 | e881a80473c7798ff8e2722da7f173ae332c9e3a | /7zip/CPP/7zip/UI/FileManager/Panel.cpp | afb5649a107dd34265a4c64b3ccfc9400c885e2c | [
"ISC",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unknownbrackets/maxcso | 4a69151a7b9325b3f24033862113275e2e3c3fc2 | e4bdee13ffa8959a2ba052bf5b2f53e0455f8994 | refs/heads/master | 2023-06-14T07:44:37.357559 | 2023-06-04T05:26:06 | 2023-06-04T05:26:06 | 25,741,910 | 333 | 35 | ISC | 2023-06-04T05:26:07 | 2014-10-25T18:33:44 | C | UTF-8 | C++ | false | false | 27,235 | cpp | Panel.cpp | // Panel.cpp
#include "StdAfx.h"
#include <Windowsx.h>
// #include <stdio.h>
#include "../../../Common/IntToString.h"
#include "../../../Common/StringConvert.h"
#include "../../../Windows/FileName.h"
#include "../../../Windows/ErrorMsg.h"
#include "../../../Windows/PropVariant.h"
#include "../../../Windows/Thread.h... |
79b2ee21c9d44c5f36a5680e9c781866bf8ace4e | 634451da48acec97fbd1cf0d8748f5b3d6d0b0a5 | /daemon/config_parse.cc | 1f7027b3498348ff7440cecab1641a0c89213388 | [] | permissive | paolococchi/kv_engine | 522400a511bd18d46576a3b17f2ac41d01e259ba | 40256dca6bf77fb4bcc18e8ef7d9b8f991bf4e45 | refs/heads/master | 2020-07-03T13:53:31.745707 | 2019-09-25T10:35:11 | 2019-09-27T15:31:58 | 191,713,509 | 1 | 0 | BSD-3-Clause | 2019-06-13T07:31:22 | 2019-06-13T07:31:21 | null | UTF-8 | C++ | false | false | 2,528 | cc | config_parse.cc | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018 Couchbase, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
fc3e19e2c03deef5708c09b85bcd1baf65014443 | 359c6cdf62034568b1e88c6f97ab30d4f13cb381 | /3D Pong/Utils.cpp | 2de5b00d0a406f346fd9148ba47cea653d8b3ec2 | [] | no_license | charmaine-lim/cautious-tribble | a413a24c7253044d21bb1dd78a9967852d3b89be | 1cd8c0c1a6c8874346a528882afdab04acc425c6 | refs/heads/master | 2021-06-22T19:32:40.622726 | 2017-08-28T11:46:40 | 2017-08-28T11:46:40 | 100,146,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,575 | cpp | Utils.cpp | //
// Bachelor of Software Engineering
// Media Design School
// Auckland
// New Zealand
//
// (c) 2016 Media Design School
//
// File Name : Utils.cpp
// Description : Separates the initialisation from the bulk code required to set the vertices and indices for each model type.
// Authors : Charmaine Lim
// Mail : C... |
de6e5cdfb22a7cce64925f663f9af281a996ac0c | 0dac8999f9a528cfb61e86a95282655171d4baac | /src/test/pegtl/rule_raise.cpp | 25a67c8136e84fa840775efba6f2487c7121f856 | [
"MIT"
] | permissive | avsej/PEGTL | 67f82c03d586d00a54654b4935654a5a5ecb00b3 | 24b7915cf1dc6ffeaca31053075a88a85988db5e | refs/heads/main | 2023-07-02T00:34:41.868435 | 2021-08-19T21:39:07 | 2021-08-19T21:39:07 | 398,081,103 | 0 | 0 | MIT | 2021-08-19T21:40:55 | 2021-08-19T21:40:54 | null | UTF-8 | C++ | false | false | 1,148 | cpp | rule_raise.cpp | // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#if !defined( __cpp_exceptions )
#include <iostream>
int main()
{
std::cout << "Exception support disabled, skipping test..." << std::endl;
}
#else
#include "test.hpp"
#include "... |
df90038d30e03d552f9714a1239f6235071ba91a | 3894c1c0a265dfa91e114ff4df12236454efdb2c | /LeetCode/iter1/c++/ExcelSheetColumnNumber.cpp | 3ef8a16ce9f9b52dc1e882d796d19212ceb2f778 | [] | no_license | jonathenzc/Algorithm | d770802337a8f4f36b94e42722d4d1954b45f408 | f6b3d1a3f987dd3f38aa38c6de4b37caef0880bc | refs/heads/master | 2020-04-04T00:16:38.780515 | 2020-03-12T16:10:43 | 2020-03-12T16:10:43 | 33,028,640 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 681 | cpp | ExcelSheetColumnNumber.cpp | #include <iostream>
#include <string>
using namespace std;
bool checkStrUpper(string s)//检查字符串s中的字符是否都为大写
{
for (int i = 0; i < s.size(); i++)
{
if (s[i]<'A' || s[i]>'Z')
return false;
if (i == s.size() - 1)
return true;
}
}
int titleToNumber(string s)
{
if (s.size() == 0 || !checkStrUpper(s))
retu... |
6f6e09557fa2f9aacdb418f99b3f6ab41ceb8bc1 | bdbd47433eeb8d0a919e2d9d3d9ce19cb6bd77df | /Assignment-2/fibonacci_heap.h | 9884514de35684ba99dad70fd9abf04a4342f24b | [] | no_license | 26prajval98/ADS-Assignmnets | c23a0079f37207ef8a39ffd1c3f51bc32738ab81 | 7480244e9ad4cd88e579120265c07e22867fb512 | refs/heads/master | 2020-04-26T18:23:01.890773 | 2019-10-14T10:06:38 | 2019-10-14T10:06:38 | 173,743,338 | 0 | 1 | null | 2019-10-14T10:06:39 | 2019-03-04T12:45:36 | C++ | UTF-8 | C++ | false | false | 7,704 | h | fibonacci_heap.h | #ifndef FIBONACCI_HEAP_H
#define FIBONACCI_HEAP_H
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#include "key_val.h"
#define TRUE 1
#define FALSE 0
struct node
{
/* Heap node attr */
int key;
int data;
struct node *parent;
struct node *child;
struct node *left;
struct node *righ... |
e8073c2dcc5cc60d4d8974c0373064866d88eb40 | 603d5408d2bb266e5917d6c78bb8a313a3f9fdcb | /test/utests/fakes/FakeStreamAbstractionAamp.cpp | 34708d2c51eb490867580fdd91f05e241fdf6fb0 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"curl",
"LGPL-2.1-only"
] | permissive | rdkcmf/rdk-aamp | 8450a8feac36b238ff89324eaa4af22aabeaf221 | 3e572144bdce84e518f484a53b88e6ea866f04c2 | refs/heads/stable2 | 2023-01-30T14:24:42.301329 | 2023-01-12T14:01:01 | 2023-01-23T04:22:19 | 149,111,450 | 6 | 8 | Apache-2.0 | 2023-01-25T17:11:29 | 2018-09-17T10:55:57 | C++ | UTF-8 | C++ | false | false | 2,597 | cpp | FakeStreamAbstractionAamp.cpp | /*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2022 RDK Management
*
* 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... |
e1533a87f29c64a4f942b83a34b67e181ff2ac6e | f1869e75df7c06a74c65130d54512e5240950bdd | /Server/userConnection.cpp | 7bbdbca9c082c4e724f8770c26781662b73ea45b | [] | no_license | Salizer/MergeCode | fccb88e4fbc1cefc2bfd98f17bcdc70b4e3d2ce9 | 77c30241235ab9cdb2467d6f04a48da91a57c138 | refs/heads/master | 2020-04-14T19:23:05.133949 | 2011-12-22T20:27:22 | 2011-12-22T20:27:22 | 2,622,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,144 | cpp | userConnection.cpp | #include "userConnection.hpp"
#include <stdio.h>
// Prototypes
// -Thread for user
void *waiting(void *data);
UserConnection::UserConnection(int fd, Session *sess)
{
fdClient = fd;
sessServer = sess;
if(authUser() == false)
{
// What to do if no authoriate
}
else
{
pthread_create(&tIDConnection, NULL, wa... |
30f0ddc239ee019b4c20d015bb6084107d0f7f33 | 489277b426d9ce799bda1c8be871407b27f7f091 | /Node/Node.h | dfd4df2d466d8575ee37c266be60e1a8a817e08b | [] | no_license | Joel-Araya/Tarea-1-Datos-II | 6f8e28474d893c9e91f8bf9025ed233296bfcb9d | d77f3a00da4fe0b1af476c91d03ace009739b6f2 | refs/heads/main | 2023-03-19T10:37:52.297689 | 2021-03-13T05:31:57 | 2021-03-13T05:31:57 | 347,241,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | h | Node.h | //
// Created by joel on 10/3/21.
//
#ifndef TAREA_1_NODE_H
#define TAREA_1_NODE_H
#include <clocale>
#include <iostream>
#include "../Collector/Collector.h"
using namespace std;
/*
* Genera un objeto de la clase nodo y que contiene un valor y un puntero al siguiente nodo
*/
class Node
{
private:
int value;
... |
c3ab226c99c69c99441b1ed959558ef9e99a1498 | 0c7e20a002108d636517b2f0cde6de9019fdf8c4 | /Sources/Elastos/Packages/Apps/Settings/inc/elastos/droid/settings/CSettingsApplicationSettingsActivity.h | a2d0210e0ba190e7ae78d1e0e9c980ceb69c062c | [
"Apache-2.0"
] | permissive | kernal88/Elastos5 | 022774d8c42aea597e6f8ee14e80e8e31758f950 | 871044110de52fcccfbd6fd0d9c24feefeb6dea0 | refs/heads/master | 2021-01-12T15:23:52.242654 | 2016-10-24T08:20:15 | 2016-10-24T08:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | h | CSettingsApplicationSettingsActivity.h |
#ifndef __ELASTOS_DROID_SETTINGS_CSETTINGSAPPLICATIONSETTINGSACTIVITY_H__
#define __ELASTOS_DROID_SETTINGS_CSETTINGSAPPLICATIONSETTINGSACTIVITY_H__
#include "elastos/droid/settings/CSettings.h"
#include "_Elastos_Droid_Settings_CSettingsApplicationSettingsActivity.h"
using Elastos::Droid::Settings::CSettings;
names... |
a821e75d542b02802abed255d0524d9ac0e4050b | a3415f8c72f99778af4599a9e84240ad707c125f | /Scripts/PKU-Course1-task6/6-CircleShift.cpp | 1c00d575531a6f59adcea88c1c27918e9181217e | [] | no_license | Happykelee/the-study-of-C | 48d4a63fd28abb28325ea947adba0a16e874e2fb | c9db3ad060f5f4a1b5aa8f7160636d7621faabb5 | refs/heads/master | 2021-06-23T17:39:23.982622 | 2021-06-21T03:20:33 | 2021-06-21T03:20:33 | 147,782,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,377 | cpp | 6-CircleShift.cpp | /*
【循环移动】
来源: POJ
注意:总时间限制: 1000ms 内存限制: 65536kB
描述:给定一组整数,要求利用数组把这组数保存起来,再利用实现对数组中的数循环移动。
假定共有n个整数,则要使前面各数顺序向后移m个位置,并使最后m各数变为最前面的m各数。
注意,不要用先输出后m个数,再输出前n-m个数的方法实现,也不要用两个数组的方式实现。
要求只用一个数组的方式实现,一定要保证在输出结果时,输出的顺序和数组中数的顺序是一致的。
输入:输入有两行:第一行包含一个正整数n和一个正整数m,第二行包含n个正整数。
每两个正整数中间用一个空格分开。
输出:输出有一行:经过循环移动... |
e62f0b7934c91f578833e270a2f47ae1a8f3e439 | 668b7f0ca80fdaccd21e278d76f51c681de2389d | /src/objectManager.cpp | 5b2a373c22fa9e9978964cce52435ea2e249a692 | [] | no_license | pawelsag/ManInTheJungle | 354a599b4accf3c6c4f560a2ca643e86f6d6f60d | b03a5fd2f28e283faf27f0588510e83ca8cabe6e | refs/heads/master | 2021-08-01T23:02:49.648500 | 2021-07-18T19:56:39 | 2021-07-18T20:03:32 | 137,870,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,910 | cpp | objectManager.cpp | #include "gameController.h"
objectManager::objectManager(SDL_Renderer & render_Object, size_t x_size, size_t y_size)
:render_Object(render_Object),
visibleRenderTiles(new jungleObject[ ( x_size+1) * y_size ] ),
MainPlayerObjects(new characterObject[ ST::STATE_COUNT ]),
mapRowsCount(y_size), mapColsCount(x_size)
{
... |
dc0016605e6bce116efbe0ff97f0b089072b7b6b | cc00a09df5fa05dd8b3e0e44d3cffce71e9d1f04 | /Spoj/main/DICT.cpp | 1757dc73ef5943581a6bc5b754804bd8656e1715 | [] | no_license | chiragjindal/Competitive-programming | 30b905559a95c03ac63d66c2883d0caf04adf285 | 204a54d00b8dcd6ab73575e68c13c0fb787a052d | refs/heads/master | 2020-12-31T03:43:08.750918 | 2013-03-24T10:18:14 | 2013-03-24T10:18:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | DICT.cpp | using namespace std;
#include<cstdio>
#include<iostream>
#include<string>
#include<algorithm>
int main(){
int n,k;
bool match;
scanf("%d",&n);
string words[n],search;
for(int i=0;i<n;i++)cin>>words[i];
scanf("%d",&k);
for(int Case=0;k--;Case++){
cin>>search;
string output[n];int ocount=0;
prin... |
98a40616acfdf86edb10c020c6ee84f38ae7b678 | 4e6ff0df53eed87a7e6af713e57df1b7d926d945 | /test/bin_rank_select_tests.cpp | 86c04920f6fc9ef163a78c990bccf93ef349531d | [
"BSD-2-Clause"
] | permissive | Kimundi/pwm | 878c4f52f88a12a24f543a0eb06bd68cf0fc334c | 7e0837d0e3da6cf7b63e80b04a75a61b73b91779 | refs/heads/master | 2022-11-13T13:34:04.755324 | 2020-07-12T20:28:51 | 2020-07-12T20:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,108 | cpp | bin_rank_select_tests.cpp | /*******************************************************************************
* test/bin_rank_select.cpp
*
* Copyright (C) 2018 Florian Kurpicz <florian.kurpicz@tu-dortmund.de>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
******************************************************... |
ed648cf8ba05fd48dbe21138b4f2584980095fdd | 1501f50acc22b9e915d04df435210d68e2a907ee | /include/GlobalNamespace/ColorStepValuePicker.hpp | 40f6645a0b92edeb4b375472b93b78ec7c9577f3 | [
"Unlicense"
] | permissive | sc2ad/BeatSaber-Quest-Codegen | cd944128d6c7b61f2014f13313d2d6cf424df811 | 4bfd0c0f705e7a302afe6ec1ef996b5b2e3f4600 | refs/heads/master | 2023-03-11T11:07:22.074423 | 2023-02-28T22:15:16 | 2023-02-28T22:15:16 | 285,669,750 | 31 | 25 | Unlicense | 2023-02-28T22:15:18 | 2020-08-06T20:56:01 | C++ | UTF-8 | C++ | false | false | 13,954 | hpp | ColorStepValuePicker.hpp | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#... |
f1abc1e21f4d8a1b08d605e7bd0f8a915e050477 | 29a1989e08f9fc2b7f9bbf663b04a1fc6442735a | /Dynamic Programming/9095.cpp | 61dbf6e819b9410ec36823ab7f39d714c1f17a11 | [] | no_license | giantim/algorithm_practice | 310a6130dca72a211e1624fea09af69a20a44bda | 009132a428c9ed7291078fe2d777e9e95b0bbc49 | refs/heads/master | 2021-06-17T13:50:31.510429 | 2021-04-10T01:48:34 | 2021-04-10T01:48:34 | 193,831,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | 9095.cpp | #include <iostream>
using namespace std;
int arr[11];
int main()
{
arr[1] = 1;
arr[2] = 2;
arr[3] = 4;
int i;
for (i = 4; i <= 10; i++)
arr[i] = arr[i - 1] + arr[i - 2] + arr[i - 3];
int T, n;
cin >> T;
for (i = 0; i < T; i++)
{
cin >> n;
cout << arr[n] << endl;
}
return 0;
} |
b0acd7995d0f155956d52fcc25aa61b5360f0329 | 04c6d6a2534fa2e63aba918f2c038f45915ff828 | /模拟/29. Divide Two Integers.cpp | 57692e0627c81a0a1410fad0ff8b72aa1a50bf78 | [] | no_license | ttzztztz/leetcodeAlgorithms | 7fdc15267ba9e1304f7c817ea9d3f1bd881b004b | d2ee1c8fecb8fc07e3c7d67dc20b964a606e065c | refs/heads/master | 2023-08-19T10:50:40.340415 | 2023-08-02T03:00:38 | 2023-08-02T03:00:38 | 206,009,736 | 17 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | 29. Divide Two Integers.cpp | class Solution {
public:
int divide(int dividend, int divisor) {
double a = dividend, b = divisor;
long long x = a / b;
if (numeric_limits<int>::min() <= x && x <= numeric_limits<int>::max()) {
return x;
} else {
return numeric_limits<int>::max();
}
... |
48b2dd41582de0fe08e78c902de8d12c4245c9f8 | 4406eaedb7eb7bec64f6c9105c1da11707361a46 | /c8/interpret/printfunc.cpp | 5cb64ab188f1c8c28b0b43061fa365a80f83a13d | [] | no_license | kotrenn/c8 | 8d1ecfc80167ea96111a79bd92c78bd772e7e003 | 80c416e4e6278b1ea0a244c4340a4991c657079d | refs/heads/master | 2021-01-09T23:42:31.920825 | 2015-04-07T17:00:31 | 2015-04-07T17:00:31 | 33,556,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 598 | cpp | printfunc.cpp | #include "printfunc.h"
PrintFunc::PrintFunc()
:Func(NULL, NULL, NULL)
{
}
PrintFunc::~PrintFunc()
{
}
Data PrintFunc::eval(VarTable *,
FuncTable *,
vector<Data> &argv)
{
if (argv.size() > 1)
{
printf("Error: too many arguments to function print\n");
... |
487157f312b6cae1fdc888f6ea66b16a836e3296 | ba357f25df66a8c36acea27c0747144d84cbe70e | /include/flang/Frontend/ASTUnit.h | fce1c7d75d53e9618cd503f9a36268630af2e30b | [
"NCSA"
] | permissive | llvm-flang/flang | 55949f533641f45c0dce3a7ad3bcbaf75bf47ce5 | 45dec2772a6696ad28dca16e976aeaf980ff4052 | refs/heads/master | 2021-06-03T06:29:43.970681 | 2018-03-25T08:38:58 | 2018-03-25T08:38:58 | 47,829,795 | 45 | 6 | null | 2018-03-25T08:38:59 | 2015-12-11T14:02:11 | C++ | UTF-8 | C++ | false | false | 7,314 | h | ASTUnit.h | //===--- ASTUnit.h - ASTUnit utility ----------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
f9400db6b1dc8dd5c74a73cef6f7b74b2628bcc0 | c2fc43440e75b9cca67bb26f1dfb15d4a3b76b7e | /main.cpp | 9a79cbe07f893b7d3b3eeea441a8c42a0817720d | [] | no_license | mystery110/DS_Fibonacci | ae33399c8e896e6030a6243e0bd10e2f044cfb44 | bbb0175ac24bd302143009381484c76731481b88 | refs/heads/master | 2020-04-25T16:41:50.026221 | 2019-02-27T13:31:45 | 2019-02-27T13:31:45 | 172,921,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 752 | cpp | main.cpp | #include <iostream>
using namespace std;
int fibonacci (int);
int main (){
int x,tempans;//to record the temporary ans
cin>>x;
int index=0;//record the number of turn
int ques[x],ansIterative[x],f0=0,f1=1,ansRecurssive[x];;//two fibonacci number
for (int i=0;i<x;i++){
cin>>ques[i];}
while(index!=x){
for (in... |
f0ac00f5879b9ae311f86a39fc1837a75f44e072 | 24cd93a27b4b8bf66002747e04717b09a8a076a1 | /D08/ex03/PrintByte.hpp | 71b2f1b6d821bd15d8ce63b3768963014bf061b4 | [] | no_license | ygarrot/PiscineCpp | d4a8895bb7817a49aa017e09a0941a9985d024b6 | 50b061bf65c08aca72ae17b9d469302317467633 | refs/heads/master | 2021-10-11T04:16:11.622207 | 2019-01-21T20:18:05 | 2019-01-21T20:18:05 | 166,874,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,350 | hpp | PrintByte.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* PrintByte.hpp :+: :+: :+: ... |
e803c693ba1ca00699aab66a325edb4cef3a6936 | 6982a4d2feab96fb36e64066ff27f4c8d2838097 | /Tools.cpp | 224cb84cfd77c98984bed613f74060f58ed85890 | [] | no_license | akheireddine/P-TL | 1fa5d16b7a1b392ded0f05f86890d9d5bf023d93 | 27921c5b7437ea204fd6138d60055f503d022879 | refs/heads/master | 2022-02-16T05:13:03.523433 | 2019-08-29T07:27:50 | 2019-08-29T07:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,974 | cpp | Tools.cpp |
#include "Tools.h"
#include <iostream>
#include <algorithm>
#include <numeric>
#include <ilcplex/ilocplex.h>
#include <cstdlib> // std::rand, std::srand
#define PI 3.14159265
float Tools::euclidian_distance(vector<float> v1, vector<float> v2){
float dist = 0;
for(int i = 0; i < (int)v1.size(); i++)
dist ... |
b6a70abab1aa12001fdaf3128ee764988958bd2c | d44fe46073bcee3b42d84f43170614dc2249687d | /GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Base/Math/Types/Mx/hkMxMathTypes.h | f9b22d8529999ce7f8be64aea5e2fa50b27199a3 | [
"MIT"
] | permissive | aditgoyal19/Tropical-Go-Kart-Bananas | 1b162a3c994f90d3e5f432bd68251411a369812c | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | refs/heads/master | 2021-01-11T15:21:24.709156 | 2017-07-06T21:07:36 | 2017-07-06T21:07:36 | 80,340,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,229 | h | hkMxMathTypes.h | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... |
0608b9e6ab1c7dd8b926f9027cfeceac0bdd3cdd | 9e210f73f09de13dd8b96a274931b07d388130e3 | /src/KC/KCAttractionRanker.cpp | eee57aa7e22d8879e54619b6940dd1f2378642c0 | [] | no_license | SentinelTheFirst/ProjectZero | 3d241f5810c7cbd477aa6a62013335f74d454381 | 24f22418a00cd5a72e930f041501514d99ed71c3 | refs/heads/master | 2021-07-23T12:17:15.352131 | 2017-11-03T17:10:46 | 2017-11-03T17:10:46 | 108,866,362 | 0 | 0 | null | 2017-10-30T14:59:01 | 2017-10-30T14:59:01 | null | UTF-8 | C++ | false | false | 3,479 | cpp | KCAttractionRanker.cpp | #include <iostream>
#include "KCAttractionRanker.h"
/*
Super Class Methods
*/
KCAttractionRankerSuper::KCAttractionRankerSuper(){
std::cout << std::endl << "Ranker Super Created";
}
KCAttractionRankerSuper::~KCAttractionRankerSuper(){
std::cout << std::endl << "Ranker Super Deleted";
}
void KCAttractionRan... |
68bb1ce375d80335d39618ba16b1e73f8786c1e8 | 98aee6d3a39626a13f510f57ad222549b09b9928 | /zombi_attack/main.cpp | 47516c9dfb2ac5433cdd6a0654752132ae5984ca | [] | no_license | intmpg/TvimsDefence | 7056c55aeba36aad37bebedb91f02c7a4c41cbec | d46b69d151091e6cc9c93686b60d32775cbd5e7e | refs/heads/master | 2021-01-10T10:21:56.932579 | 2016-01-14T23:40:34 | 2016-01-14T23:40:34 | 45,854,088 | 0 | 1 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 127 | cpp | main.cpp | #include "Game.h"
using namespace sf;
int main()
{
gameRunning();//запускаем процесс игры
return 0;
} |
1f14cf674013ce751db0d2ea83020c4951dd006b | 3ae80dbc18ed3e89bedf846d098b2a98d8e4b776 | /header/SSWR/AVIRead/AVIRImageResizeForm.h | e6fb326871d710db2e33543cd370e458b3237b95 | [] | no_license | sswroom/SClass | deee467349ca249a7401f5d3c177cdf763a253ca | 9a403ec67c6c4dfd2402f19d44c6573e25d4b347 | refs/heads/main | 2023-09-01T07:24:58.907606 | 2023-08-31T11:24:34 | 2023-08-31T11:24:34 | 329,970,172 | 10 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,413 | h | AVIRImageResizeForm.h | #ifndef _SM_SSWR_AVIREAD_AVIRIMAGERESIZEFORM
#define _SM_SSWR_AVIREAD_AVIRIMAGERESIZEFORM
#include "SSWR/AVIRead/AVIRCore.h"
#include "UI/GUIButton.h"
#include "UI/GUICheckBox.h"
#include "UI/GUIComboBox.h"
#include "UI/GUIForm.h"
#include "UI/GUIHScrollBar.h"
#include "UI/GUIHSplitter.h"
#include "UI/GUILabel... |
c5f72c70eaa4344a1ac94cfa94e06e2e35ac3318 | 28cbb24e0bd37a2aee502e9ca7bc093483e3b3cb | /HelloSFML/Ranger.cpp | 48acfcb071ad08217a4ba8879a19cf6c934fe8bc | [
"MIT"
] | permissive | Inshal240/Side-Scroller-Game | 647504c27ca091d32863e56ccc1a6c1ec32176d3 | 92f41b78e3f40e738b3efa2ff5f82fca6ed0d109 | refs/heads/master | 2020-05-30T21:19:25.575838 | 2015-01-24T14:13:17 | 2015-01-24T14:13:17 | 22,262,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,107 | cpp | Ranger.cpp | #include "Ranger.h"
using namespace sf;
using namespace std;
void Ranger::changeSprite(State _state)
{
switch (_state)
{
case Idle:
_animatedSprite.setLooped(true);
_animatedSprite.setFrameTime(sf::seconds(0.2f));
_currentAnimation = &_animationBank[Idle];
break;
case Walking:
_animatedSprite.setLooped(... |
d14a86ff078a5cac95e07268ade20aba48217769 | b8ec63a3eb5b4829d2f0d27275dfe658095eb952 | /Source/ProjAtores/InserirGranadas.h | f83ea7529a5c4a8ebb84efbc4db1d1c00ee9c169 | [] | no_license | JoelSchecheleski/ProjAtoresUE5 | 809fdd8c551d4a4e8e15587e85e99de8c1414add | ec92f6875428c7a4fca710c21ae8805b1589c1e1 | refs/heads/main | 2023-06-16T21:12:01.203856 | 2021-07-03T03:00:34 | 2021-07-03T03:00:34 | 382,025,237 | 0 | 0 | null | 2021-07-03T03:00:35 | 2021-07-01T12:27:12 | C++ | ISO-8859-1 | C++ | false | false | 807 | h | InserirGranadas.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "InserirGranadas.generated.h"
UCLASS()
class PROJATORES_API AInserirGranadas : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this a... |
52141f3ad0a94968a87a5ba9a29cebbb7d101c2e | 0e0d85550163f798d82e5a8b868d82f527f6802c | /ContactPickerQml/src/ContactPickerQml.cpp | 5157fd65cab3f227d1aa9ce691fcb44925e367d3 | [] | no_license | Krzysztof-Hofman/Cascades-Community-Samples | 8e06fa03f5bb7d98aff2a6f99e0d6bb4755cd6f9 | d805558cd863b44e7ad9496fb37e0d4ed6cc83da | refs/heads/master | 2021-01-15T19:03:43.630915 | 2013-02-12T11:01:26 | 2013-02-12T11:01:26 | 8,139,134 | 0 | 1 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 7,843 | cpp | ContactPickerQml.cpp | // Default empty project template
#include "ContactPickerQml.hpp"
#include <bb/cascades/Application>
#include <bb/cascades/AbstractPane>
#include <qdebug.h>
using namespace bb::cascades;
using namespace bb::pim::contacts;
using namespace bb::pim::account;
ContactPickerQml::ContactPickerQml(bb::cascades::Application... |
4edd704b94f4272b8d28d41cf0dc448e108f177f | a3db7fb88fc2d06969fadf134488d9c4313ea974 | /Physics/Physics/Objects.h | 49fa103c3e9955e2a85210e7bcbe21ec010f329d | [] | no_license | JustZack/CPP-Projects | 0993f5ff7aaeca4075f6b52e18713218fc7659cd | dc55e5662ba35a81aa1c729c39a9446a4b8e46cb | refs/heads/master | 2021-01-20T22:11:50.455798 | 2017-03-11T00:40:34 | 2017-03-11T00:40:34 | 64,170,974 | 0 | 0 | null | 2016-08-10T10:18:01 | 2016-07-25T22:04:46 | C++ | UTF-8 | C++ | false | false | 860 | h | Objects.h | #pragma once
#include "Object.h"
class DynamicObject : public Object
{
public:
DynamicObject() : Object()
{
isAffectedByGravity(true);
isMoveable(true);
hasCollision(true);
};
DynamicObject(float X, float Y, float Mass, float Width, float Height) : Object(X, Y, Mass, Width, Height)
{
//TODO: Learn more... |
d66783b4f680b6ff3c8adb5c876d89edc4e65240 | f10d6e5d908589f4326a58d8a9fb7a6247e23019 | /mylexer.cpp | 3a31efbf1d70de1ce8d55b09037f01a9f877e0de | [] | no_license | yayi2456/minusCpp | fac663a21dcdeefe740889bd91aa856bab5542b8 | dcaa65f1f8870d64e43e5609ccc82e915d23735b | refs/heads/master | 2021-05-14T15:06:25.122526 | 2018-01-03T19:08:19 | 2018-01-03T19:08:19 | 115,985,745 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 22,821 | cpp | mylexer.cpp | /****************************************************************************
* U N R E G I S T E R E D C O P Y
*
* You are on day 110 of your 30 day trial period.
*
* This file was produced by an UNREGISTERED COPY of Parser Generator. It is
* for evaluation purposes only. If you continue to use... |
797466d6e92082c6302a84e38c153bfa7302a48e | 751bdc3d365a64b18d78e8c2fb9f6ea00452764f | /aura/platform/aaa/aaa_definition.h | 76a6dcee51f1de5f98b33090554e2752b09afd1b | [] | no_license | ca2/app | b1de035566d9664aa7c5c9a94378cc352b1836ec | afdedd20df2f6dce81c63bc8a9db6de14503076e | refs/heads/main | 2023-08-27T07:19:45.584624 | 2023-08-26T12:28:28 | 2023-08-26T12:28:28 | 98,031,531 | 19 | 7 | null | 2017-08-14T11:13:14 | 2017-07-22T12:59:27 | C++ | UTF-8 | C++ | false | false | 12,889 | h | aaa_definition.h | #pragma once
// from 7-zip
namespace aura
{
template <class T> inline T MyMin(T a, T b)
{
return a < b ? a : b;
}
template <class T> inline T MyMax(T a, T b)
{
return a > b ? a : b;
}
template <class T> inline i32 MyCompare(T a, T b)
{
return a < b ? -1 : (a == b ? 0 : 1... |
c2ee06e5b71c96c77fe438e093b9cbc51e6157d7 | 84eb0ab8cccd04174da750de208f01c0229b49fb | /mainwindow.cpp | 44f392c72074fde7939d84068ded22ff0cfd4fdd | [] | no_license | hbdgr/simple_gui | 440772665b4dbfcc2fd828129fb6ac0619b621bf | 331b5a6bedc08d08957c2fa0e14b865374927f12 | refs/heads/master | 2021-06-09T10:21:48.441668 | 2016-11-25T12:36:47 | 2016-11-25T12:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,802 | cpp | mainwindow.cpp | #include <QDebug>
#include <QProcess>
#include <QTcpSocket>
#include <QHostAddress>
#include <QFileDialog>
#include <QFormLayout>
#include <regex>
#include "mainwindow.hpp"
#include "ui_mainwindow.h"
#include "addressdialog.hpp"
#include "paramscontainer.hpp"
#include "dataeater.hpp"
#include "debugdialog.hpp"
#inclu... |
b40fd15e24a727d651881d5da2b2241300c68582 | f15b9126c21f0f501567de3cbfe9c477a0c186ad | /Test/src/main.cpp | 36f6c03c72ba23e21e1ef63cbb703d56565b4ea7 | [
"BSD-2-Clause"
] | permissive | SorcererX/SepiaCore | 72a2814ae36811ec40a7334db87951aea427f3eb | 5b94afabb08d05f3db5494f270e05785b311d230 | refs/heads/master | 2023-07-26T16:42:21.162285 | 2023-07-10T07:34:53 | 2023-07-10T07:34:53 | 26,193,133 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | cpp | main.cpp | #include <sepia/reader.h>
#include <sepia/writer.h>
#include <sepia/compression/compress.h>
#include <sepia/compression/enc3b11b.h>
int main()
{
sepia::Reader reader( "XI_IMG" );
reader.update();
sepia::Writer writer( "COMPRESSED", reader.getGroupHeader()->count,
reader.getHeader... |
550354b852222dd2a93dc5b87c94f1c440fc6fa6 | 7a7addc0e81bbd75fcb4912195adaf3032b2c24d | /USACO/Contests/2007/November/Gold/Telephone Wire/Telephone Wire - O(NHlogH).cpp | 576bc660d9b4f82500bb26bf924f37f3760a9760 | [] | no_license | saribekyan/competitive-programming | 6e492ee0c1550fc4bab538a965e4825609cfbda2 | eeae87c2c40d85680b97a5d5f27e4dfbc02437e7 | refs/heads/master | 2021-05-04T03:07:22.576203 | 2019-04-06T14:55:55 | 2019-04-06T14:55:55 | 120,372,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | Telephone Wire - O(NHlogH).cpp | #include <stdio.h>
#include <math.h>
#define MAXH 100
#define MAXN 100000
#define inf 1000000000
int h[MAXN+10];
int d[MAXN+10][MAXH+10];
int main()
{
freopen("telewire.in", "r", stdin);
freopen("telewire.out", "w", stdout);
int n, c, p, q, k, l, r, i, j;
scanf("%d%d", &n, &c);
for (i = 0; i < n; i+... |
6578ded1e7dd3f0dc0a651923c050564d9c8097b | 81b9b8ae0e9cc6cf320a95cf373594599d81fe12 | /Tools/FindReplace/FindAndReplaceManager/FindAndReplaceManager.cpp | 00f789bef793da3713cbaebe9ac316aca4220995 | [] | no_license | mouchtaris/delta-linux | 1041b9dcc549bda2858dcedbc61087bb73817415 | cca8bd3c1646957cb3203191bb03e80d52f30631 | HEAD | 2016-09-01T19:28:43.257785 | 2014-09-02T05:00:54 | 2014-09-02T05:00:54 | 23,297,561 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,961 | cpp | FindAndReplaceManager.cpp | /*
* FindAndRplaceManager.cpp
* author: Koutsopoulos Nikolaos
* mail : koutsop@ics.forth.gr
*/
#include <stack>
#include <time.h>
#include <stdio.h>
#include <assert.h>
#include <algorithm>
#include <windows.h>
#include <iostream>
#include "RegExpr.h"
#include "KeyLogger.h"
#include "MyTemplates... |
b261c0476671f9ee8e772e740a7530548700393f | 445818eb70a629c9f4fa68142d8bfd944bacd3a7 | /source/drivers/common/common_types.hpp | d212f7b4845b1542a2e98f006bd2f4321c2f5a11 | [
"MIT"
] | permissive | brandonbraun653/Chimera | 7528520d9406f6c57e90c6d8e8451882abfa6e11 | b25d699f392882d7f4b3b1305f6181f5a5e1fbc1 | refs/heads/master | 2023-08-17T01:32:39.583277 | 2023-05-27T00:31:03 | 2023-05-27T00:31:03 | 127,049,804 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,353 | hpp | common_types.hpp | /******************************************************************************
* File Name:
* common_types.hpp
*
* Description:
* Common Chimera system types
*
* 2019-2023 | Brandon Braun | brandonbraun653@gmail.com
*****************************************************************************/
#pragm... |
fa1b03bb2c790bd654b0aa5d79394ac294fbd8ce | bc8f3cdb3fc5842e41e9a8874990603e5bc0014b | /Message_Route.cpp | ba80b5bfd1a47c2d0f8cb8406ab9eadded58da01 | [] | no_license | Pankajadhana97-bit/COMPETITIVE_CODING | f9ff7069153ba35dade40af55a2a1a1c0ab140b4 | 1626a5cf95d9ed176ae261acfcebfd16c1f529b1 | refs/heads/master | 2023-03-14T01:58:06.614084 | 2021-02-22T06:54:13 | 2021-02-22T06:54:13 | 309,471,923 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | Message_Route.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
vector<ll> graph[100005];
int parent[100005];
ll n,m;
void dfs()
{
queue<ll>q;
q.push(1);
parent[1]=-1;
while(!q.empty() )
{
ll p = q.front() ;
q.pop();
if( p==n) break;
for(auto i:graph[p] )
... |
0c17eb89bcdbcff565ea962d9b0d7930149e95ca | 3b93c6875e7645286941ad1aaa5e98b306f2af18 | /src/moon/my.hpp | 3da58a7b121767ac5159d122c8478ce34f38bd53 | [] | no_license | institution/moonzone | 229aa5dbe6fd47b34f1801f4095dceb3a606088b | 904587f4f31ba8e3b43e3c78d584e4b759d78719 | refs/heads/master | 2020-09-09T19:20:16.719298 | 2019-11-13T20:00:24 | 2019-11-13T20:00:24 | 221,540,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | hpp | my.hpp | #pragma once
#include <GL/glew.h>
#include "ext/ext.hpp"
#define AGL() A(glok());
B glok();
HC* get_gl_err_msg(U4 x);
V myShowGLInfo();
V myAttachShader(U4 prog, U4 shader_type, HC* shader_src);
V myLoadShader(U4 shad, HC* shader_src);
V myShowShader(U4 shad);
V myLinkProgram(U4 prog);
U4 myAttLoc(U4 prog, HC* name);
U... |
586a1061989c26c4c75295ea2073c1e0cb6a7663 | 5bb9fd77d2a88a97e11cf782f821b563ea14bb6b | /samples/02_oop/2017/Functions/cutfunction.h | 97745ede7afc8109a96c5eaee2f077a4fa251151 | [
"MIT"
] | permissive | stranxter/lecture-notes | d844e3f5453c250cbe299babf0baf5870b6b0ee3 | 44151b4c88a478e8debeb75c002619d2aee6b654 | refs/heads/master | 2023-05-31T17:26:30.929596 | 2023-05-31T12:05:18 | 2023-05-31T12:05:18 | 40,540,330 | 43 | 52 | MIT | 2023-04-21T06:22:42 | 2015-08-11T12:27:38 | TeX | UTF-8 | C++ | false | false | 196 | h | cutfunction.h | #ifndef __CUTFN_H
#define __CUTFN_H
#include "functions.h"
class CutFunction : public Function
{
private:
Function *f;
public:
CutFunction (Function*);
double value (double);
};
#endif
|
0f3dab49a9940de61d744b7999314c4ee6ce3a5e | 713811c2faab199d4f8d7c947d180d92b6abdc8f | /hw8/btrim.cpp | 39489c62b4d6d5388c6d0ce754c1f8cfd1d92266 | [] | no_license | sillybowen/Heuristic | 5ec4788adf2985a65978d97b46e3af5f7292aadf | f84034f74ab0806573e8378bb70b5c81b7bebe9a | refs/heads/master | 2021-01-01T05:34:31.539462 | 2012-12-11T05:14:13 | 2012-12-11T05:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | cpp | btrim.cpp | #include "btrim.hpp"
using namespace std;
void ltrim(string& str, const locale& loc) {
string::size_type pos = 0;
while (pos < str.size() && isspace(str[pos], loc)) pos++;
str.erase(0, pos);
}
void rtrim(string& str, const locale& loc) {
string::size_type pos = str.size();
while (pos > 0 && isspace(str[pos ... |
17c52edc810b73f5b5f3dc120261683994f6e28d | 503d0d86a05cb5f3c60086f7cfd14f3b1bf8e5a3 | /SDK/simVis/RFProp/ThresholdColorProvider.cpp | 2b3e920a3ed91120f82b995a66507ddff99f6d9b | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | USNavalResearchLaboratory/simdissdk | 28532f05b7c347de03d1c5616042094ccffbac58 | 318e5682bf89b26ece85edd8d4d064e33f5ab2b6 | refs/heads/main | 2023-08-08T20:09:36.560013 | 2023-08-04T18:19:47 | 2023-08-04T18:19:47 | 101,054,357 | 106 | 42 | NOASSERTION | 2023-05-31T16:56:09 | 2017-08-22T11:10:12 | C++ | UTF-8 | C++ | false | false | 4,131 | cpp | ThresholdColorProvider.cpp | /* -*- mode: c++ -*- */
/****************************************************************************
***** *****
***** Classification: UNCLASSIFIED *****
***** Classified By: ... |
cffafede3f99a6029a2a4da61d85b72e248c921e | 38030e497b6e172cb926ebce4d25019175713bbd | /Easy/the ligt problem.cpp | 1a18d45bb5391efd9c1db8a9ff7f9976461cd9fd | [] | no_license | KushRohra/GFG_Codes | 7e6126434360bd0e376ce13be7e855c380b88d24 | 54e2b0affeaac3406aa052c28cfebcefc6492f90 | refs/heads/master | 2021-03-26T00:37:05.871686 | 2020-12-27T12:51:53 | 2020-12-27T12:51:53 | 247,659,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | cpp | the ligt problem.cpp | using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n,k,i,j,c=0;
cin>>n>>k;
int a[n];
for(i=0;i<n;i++)
cin>>a[i];
for(i=0;i<n;i++)
{
if(a[i]==1)
{
a[i]=2;
for(j=i;j<=i+k;j++)
{
if(j<n && a[j]!=1)
a[j]=2;
}
for(j=i;j>=i-k;j--)
{
if(j>=0 && a[... |
449febf3362dda4ed392cdd6315e68f9a6b2ebe8 | b1bf2d9fa5f43323dda785b8b35930c75f0cdcc1 | /akim20224753_CIS22A_lab7_wip.cpp | 19b102dd933ebfb4053bb72af48ccf4db628e979 | [] | no_license | tokkiboi/C- | 2d9295ee211f859a24591502a0c5e9bf9ea96ba0 | a8035a522a12401c0a13541fdd95ddcc161e1f5f | refs/heads/master | 2021-01-10T02:39:06.514621 | 2015-12-07T10:25:54 | 2015-12-07T10:25:54 | 43,973,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,371 | cpp | akim20224753_CIS22A_lab7_wip.cpp | // Alex Kim - 20224753
// alexkim80@gmail.com
// Lab 7 - Choosing a University
#include <iostream>
#include <fstream> // Allow file handling: Input/Output to and from file(s)
#include <string> // Utilize string variable
#include <cstdlib> // Required for Exit() function
#include <iomanip> // Input/Output Formatti... |
2f3fb41c95849a53b5dba96234ba0f056e4b5e50 | fddac13c6c5ba7a24d75e083fbddd09f641f39eb | /Niveau 3/9 - Éfficacité temporelle/premier_absent.cpp | a1f8ec16e1d5c2676a1ff87068e6e5858902b8dd | [] | no_license | Jon1105/olympiads | 5a43ecc77726adf31884665f02e72754a278e666 | fc309829f7233bc4432b3eae87d6525f7c0c920b | refs/heads/master | 2023-06-25T20:10:25.151060 | 2021-07-30T03:11:02 | 2021-07-30T03:11:02 | 383,168,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,231 | cpp | premier_absent.cpp | #include <iostream>
#include <vector>
bool get(uint8_t const *present, size_t index)
{
size_t b = index / 8;
size_t shift = index % 8;
return 1 == ((present[b] >> shift) & 1);
}
void set(uint8_t *present, size_t index, bool value)
{
size_t b = index / 8;
size_t shift = index % 8;
present[b] |=... |
524a8fbc310264ccc62286254b8172ce959bf569 | a8143a726bc9ef218e6114b11a8490ca341235f8 | /prelude/bin_iomanip.hpp | 9e1661b2af94aab5632164d33329104744a2b01e | [
"LicenseRef-scancode-public-domain"
] | permissive | Eelis/geordi | d6306d6a2b8ced3e4818b77942c4993bacd8a770 | aafaaf930d52de2b37c124aa11c0eefc3375cc62 | refs/heads/master | 2022-10-13T13:06:37.271306 | 2022-10-05T22:15:08 | 2022-10-05T22:15:16 | 556,657 | 140 | 34 | NOASSERTION | 2020-07-07T23:13:36 | 2010-03-10T22:39:03 | Haskell | UTF-8 | C++ | false | false | 6,693 | hpp | bin_iomanip.hpp |
/* Binary integral output manipulator
==== Usage ====
some_stream.imbue(std::locale(some_stream.getloc(), new bin_num_put<>));
some_stream << bin << 123;
Also see the testing section at the bottom of this file.
==== Implementation ====
Implemented using a custom facet deriving from and replacing the std::num_put... |
479d4ef83123b309a58bf8971a1d11f8f6217a8a | eb96ea3bed8b6e9e460099cce938641d207ad736 | /teleinfo_ble_embedded_software/arduino/core/wuart.cpp | e78b3f49acbe2ff10454bea11fe23f2e7eda8939 | [
"MIT"
] | permissive | OpHaCo/teleinfo_ble | 740272cc96a55f701b3a0174267c9e3ea73fed38 | cd1f802448a1b50160f684bb6ed2e358c0c98206 | refs/heads/master | 2021-01-21T04:30:43.690988 | 2016-06-23T07:18:43 | 2016-06-23T07:18:43 | 45,857,909 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,250 | cpp | wuart.cpp | #include "wuart.h"
#include "nrf51_bitfields.h"
/**********************************************************************
declared
**********************************************************************/
UART0_States UART0_State = UART0_NotStart;
Buffer rxbuffer;
UARTClass Serial( &rxbuffer );
static void UART0_handle... |
c57a752bc098762c1e1ef0135e55d358d2273d7f | 18b69b1fc11c00ac1bfc6cc267dea5c7adfe20a7 | /rush_01/includes/ACursesModule.hpp | a6f133feef2d94245666be6813ae9278a9d86ea5 | [] | no_license | ArtemisKS/Piscine_CPP | e6344a3c386b431e5c6eb2fedc9ed16b8f9530ca | 83881e01fb391ef70e58858e9716923ae75ebaac | refs/heads/master | 2020-04-09T07:09:48.963450 | 2018-12-03T06:33:42 | 2018-12-03T06:33:42 | 160,142,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,278 | hpp | ACursesModule.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ACursesModule.hpp :+: :+: :+: ... |
3b2200c6ad62b76149c77721d25d0af66e94aad9 | 7098c5dc61916f5a378170728f6b81dcbf95616f | /Empresarial.h | b9f8d1651ae5f81783f21c3c43671d2bf1bb3dad | [] | no_license | HectorNLeon/Proyecto3 | c38c23db43cbbdc0cf1e2aa5bb6079cefec601ff | 7709f26dcf829c6e4a004f3d3016e6fb4434a373 | refs/heads/master | 2021-08-17T05:28:56.848606 | 2017-11-20T20:20:37 | 2017-11-20T20:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,565 | h | Empresarial.h | #ifndef EMPRESARIAL_H_INCLUDED
#define EMPRESARIAL_H_INCLUDEDE
class Empresarial:public Servicio{
private:
double costoxDia;
int maximaCantidad;
string descripcion;
public:
Empresarial();
Empresarial(string, char, double, int, string);
void setCostoxDia(... |
cb86905e996f8305b9c6d75dd5b15e99a072bd28 | 853d44d220dff372f61c2a5cf7302536321fbf77 | /Vass_2/media_player.h | 4d297781924475baa5a8ff5705f7720efb44a07a | [] | no_license | fobannit-studio/Vass-2 | c53c6d86451e0431f4a087c3a3bd7dd950f4238e | fd92b1a2e68030fbb10221e9631cdacb80998c9e | refs/heads/master | 2020-05-15T14:19:18.105295 | 2019-05-15T23:42:35 | 2019-05-15T23:42:35 | 182,330,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,029 | h | media_player.h | #ifndef MEDIA_PLAYER_H
#define MEDIA_PLAYER_H
#include <QWidget>
#include <QMediaPlayer>
#include <QFileDialog>
#include <QtDebug>
#include <QListWidgetItem>
#include <QMediaPlaylist>
namespace Ui {
class Media_Player;
}
class Media_Player : public QWidget
{
Q_OBJECT
public:
explicit Media_Player(QWidget *pa... |
767b1dc7afd5806d8b2f1d76649857c80d5d8107 | 86de461a799014b2a9425e0b4dedb44979c4d95d | /Shellsort/main.cpp | 9f1323876a036091350c68d97cd4c6f0c880c55f | [] | no_license | olegatt/sorts | 79dd04fb1cadcb25523e065c64a3422aa3d86924 | 2c0509939862f557c4b4014150c72cb96b4de377 | refs/heads/master | 2020-04-23T10:39:52.592816 | 2019-02-17T13:18:21 | 2019-02-17T13:18:21 | 171,111,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
void ShellSort (int n, int arr[])
{
int t;
for (int step = n/2; step > 0; step /=2 )
{
for(int i = step; i<n; i++)
{
int j;
t = arr[i];
for(j = i; j>=step; j-=step)
... |
2c5293b61f1a184d019129aade076c509ce6171b | 670b019a09ee611e6e13bff32dca6cc6ed1de9f8 | /Analyse/Personne.cpp | 9fa2ef9673a78461c30177ac06c3e521bc97b8ee | [] | no_license | maxoumime/Timberhead-Show-Movie-Finder | cf613ed92a5253b683b58ffd1ca7cd4d03f5a882 | cd5fbabbebd34cec9bd49e532af887ad526d4aa9 | refs/heads/master | 2021-01-01T20:05:50.947787 | 2015-04-07T07:39:45 | 2015-04-07T07:39:45 | 27,422,565 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | cpp | Personne.cpp | #include "Personne.h"
Personne::Personne(){
}
Personne::~Personne(){
} |
51b4528ef5cac2b0e81830e20958d51567156b2e | 73e53c0cb5a010536080b5a6f45f1fc87f4eac5f | /NewSDKBuild的副本/rcode/c_qjmDyGMkcYNrtyJWGm7MyNLv.cpp | ba6ecbbc6211a347216ab723225f4a6801d79466 | [] | no_license | Kratos28/HYSDK | 2299f85dd07ee7cf6da32779195f1bd86a7b66b4 | 2463766b231675b13e080f736e0cb1d8a48019bb | refs/heads/main | 2023-08-13T02:56:26.080809 | 2021-10-15T06:49:05 | 2021-10-15T06:49:05 | 417,354,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,120 | cpp | c_qjmDyGMkcYNrtyJWGm7MyNLv.cpp | // implement c_qjmDyGMkcYNrtyJWGm7MyNLv
#include "c_qjmDyGMkcYNrtyJWGm7MyNLv.h"
#include <string>
#include <stdio.h>
int c_qjmDyGMkcYNrtyJWGm7MyNLv::get_m_i0pIjNtkkIBkCfbpXJetaXvVx() {
return m_i0pIjNtkkIBkCfbpXJetaXvVx;
}
void c_qjmDyGMkcYNrtyJWGm7MyNLv::set_m_i0pIjNtkkIBkCfbpXJetaXvVx(int val){
m_i0pIjNtkkI... |
86c58a5d351ef6f84996552df4b48cf12ab1ce0d | 9ebf58413676f88b8d1e72b41eede00905718155 | /Day-1/missing_number.cpp | 3798e364be929122652c717a3ab01c36a39a21a2 | [] | no_license | Lekheshwar/SDE_Problems_Striver | 867152c6393081fed39fd114078fca27ea4c1c72 | 4fe3c1c816a3ae75da74ddaee1c19b9403d3cd05 | refs/heads/master | 2023-08-18T00:35:27.597544 | 2021-09-21T16:46:54 | 2021-09-21T16:46:54 | 350,592,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | missing_number.cpp | int missingNumber(vector<int>& nums) {
// int n = nums.size();
// int sum = (n * (n + 1)) / 2, asum = 0;
// for(auto x : nums)asum += x;
// return sum - asum;
int xr = nums.size();
for(int i = 0; i < nums.size(); i++){
xr ^= nums[i];
xr ^=... |
8a5a15d0c750ce2ec22681c8cc4c89a2e09ac119 | 8465159705a71cede7f2e9970904aeba83e4fc6c | /src_change_the_layout/core/io/processinterface.cpp | 378be77f69a38a91e32ab30a4c13a39707e836f4 | [] | no_license | TuojianLYU/forte_IO_OPCUA_Integration | 051591b61f902258e3d0d6608bf68e2302f67ac1 | 4a3aed7b89f8a7d5f9554ac5937cf0a93607a4c6 | refs/heads/main | 2023-08-20T16:17:58.147635 | 2021-10-27T05:34:43 | 2021-10-27T05:34:43 | 419,704,624 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,393 | cpp | processinterface.cpp | /*******************************************************************************
* Copyright (c) 2016 - 2018 Johannes Messmer (admin@jomess.com), fortiss GmbH
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclip... |
57e9ace4b8bcc17fcb44fd96f3ffc7dd91426571 | 90261a1e55731b05bef5e4de3bda9d62ed2227a0 | /GraphMatrix.h | 7cf1a46371a17a3381a44de7f5b1c9904bb37885 | [] | no_license | XianmingChen/Graph_Design | d9584d0eecdceb2ce62e24649deb404e774f6779 | 31ddd6b6ec478108d2b65e6abcaec571410b604e | refs/heads/master | 2021-01-10T14:37:17.664017 | 2016-02-15T05:40:25 | 2016-02-15T05:40:25 | 51,733,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,277 | h | GraphMatrix.h | #ifndef _GRAPHMATRIX_H
#define _GRAPHMATRIX_H
#include<iostream>
#include<limits>
#include<ctime>
#include<stack>
#include<queue>
using namespace std;
typedef char ElemType;
typedef int EdgeVal;
const int MaxSize=10;
const int MaxEdgeVal=9;
typedef struct MSTEdgeType
{
int value;
int StartV;
int EndV;
}MSTEdgeT... |
40ea7378e149d024ef6b461faa886420b8916857 | 8dc31889551a9eaf567fb8af89a81bd615220c7e | /Codeforces/Round/630/2/e2.cpp | b76bbdd86359fb9e90f286ceee9725c629957139 | [] | no_license | mijinko17/competitive-programming | c025cd731a227908f93b150c020a01d144b4358a | 8743ef7f62aadba66c5c2f46bd199e50ce4160da | refs/heads/master | 2020-07-30T07:34:23.255781 | 2020-05-19T15:46:16 | 2020-05-19T15:46:16 | 210,136,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cpp | e2.cpp | #include <bits/stdc++.h>
typedef long long lint;
using namespace std;
lint mod = 998244353;
lint n, m, l, r;
struct mat {
lint a, b, c, d;
mat(int _a, int _b, int _c, int _d) : a(_a), b(_b), c(_c), d(_d) {}
};
mat mat_pow(mat M, lint k) {
if (k == 0) {
return M;
}
}
int main() {}
|
ab6f8f9acbeffff5ed97da1ffe9ded1a91faffa6 | b140c3292ff3b54c65ab016d2d28243681999524 | /src/thgreedy_main.cpp | 634436141cf746581a4f3d42956ed9f00939f058 | [] | no_license | Charana123/Masters-Dissertation | 0d37ed2bc2bad308d4cc42dadbe338f27d3f4a24 | a5206d03b8ebfe85baf2089e3ecb6803009b3767 | refs/heads/master | 2020-04-20T22:09:26.921508 | 2019-05-05T16:19:47 | 2019-06-02T15:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | thgreedy_main.cpp | #include "thgreedy.hpp"
#include <chrono>
void summarise(string name, std::function<void()> func){
auto t1 = chrono::high_resolution_clock::now();
func();
auto t2 = chrono::high_resolution_clock::now();
cout << "===========" << endl;
cout << name << endl;
cout << "===========" << endl;
cout... |
1bb415451acebdb047575b7fee6f740910c75539 | 0cb2a887c6c8ff3da3d586d8a92b68caa0d6cd40 | /test/CodeGenCXX/debug-info-alias.cpp | e354ef0a73818e15ab310e4dd50b8cb53ae9f32a | [
"NCSA"
] | permissive | benoit-canet/clang | 4f0109ce81327aec76e93ba13bdf61304c0be296 | 02f2999745fc2a8a113747272064a9f8d2bf60b8 | refs/heads/master | 2020-04-13T07:55:14.866388 | 2014-04-23T19:54:54 | 2014-04-23T19:54:54 | 19,083,284 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 782 | cpp | debug-info-alias.cpp | // RUN: %clang -g -std=c++11 -S -emit-llvm %s -o - | FileCheck %s
template<typename T>
struct foo {
};
namespace x {
// splitting these over multiple lines to make sure the right token is used for
// the location
template<typename T>
using
# 42
bar
= foo<T*>;
}
// CHECK: metadata [[BINT:![0-9]*]], i32 0, i32 1, {{.*}... |
68259f12e8c0fe6d9c966f384fbd377383aaf305 | 799eb7df3aedf6347f53fed97aa43a07ca6cf873 | /src/KernelFunc.h | 7d8c9938a272e11215c295415d466868410e98b3 | [] | no_license | ouj/gpu-sph-fluid | 38236cfb5a61ac264da6b08fb57197b46d5445be | 30c5a4dd2987a3284856ed13bc6ac25523f53126 | refs/heads/master | 2021-01-10T22:00:19.956165 | 2019-05-15T05:29:49 | 2019-05-15T05:29:49 | 32,124,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,079 | h | KernelFunc.h | #pragma once
#include "assert.h"
#define PI 3.141592654f
class CKernelFunc
{
protected:
CKernelFunc(void) {}
~CKernelFunc(void) {}
public:
static inline FLOAT SmoothingKernel(const float r, const float h)
{
const float q = r/h;
if (q>1.0f)
return 0.0f;
... |
96b8c44a032a1df60d7fc672034e4d5e253f577f | ebe9a197f07055c52044eb584955f37bd49ec754 | /src/my_collection_route.h | a282d45ba0a16a2158eae4a701e42d633a3cc156 | [] | no_license | TKONIY/algorithms-analysis | ebd5df9704c7f8aaf3eb9ad1a7a2bfde1896da0b | 27b3dba592cf91d4784d13cadb7b0b093ca2764c | refs/heads/main | 2023-01-29T12:48:56.386930 | 2020-12-12T14:07:09 | 2020-12-12T14:07:09 | 305,071,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | h | my_collection_route.h | #pragma once
#include "my_utils.h"
/**
* S是步数, 第一步为0, 走到终点一共2n-2步
* 当前x+y = S;
*/
template <int MAX_N>
class TwoCollectionRoute {
private:
int dp[MAX_N][MAX_N][MAX_N][MAX_N]{0};
const int *const *a;
int n;
void DP() {
dp[0][0][0][0] = a[0][0];
for (int s = 0; s <= n + n - 2; ++s)
for (int x1 ... |
e0457dc28c7d5ff05e2a43683ce11e7a3987e600 | 4e9149093cfa35945b24b24ba001738660b22eaf | /cplusplus/DoorSensor/doorSensor/doorimgadd.cpp | b5cdb7095864eba31c0fc77a41c0724d15eeb7bc | [
"MIT"
] | permissive | chenliru/cweb.io | d9b2bd5156b58535558d3f1e3dcf6eed78e382dd | e97b26f9276a818d7639794403cbd63e8cc6dcbe | refs/heads/main | 2023-03-30T18:30:46.658453 | 2021-04-01T11:22:14 | 2021-04-01T11:22:14 | 343,245,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,585 | cpp | doorimgadd.cpp |
#include "doorimg.hpp"
#include <opencv2/optflow.hpp>
#include <opencv2/videoio.hpp>
using namespace cv::motempl;
bool updateMHI(const cv::Mat& img, cv::Mat& dst, int thresholdDiff, Monitor& monitor)
{
double timestamp = (double)clock() / CLOCKS_PER_SEC; // get current time in seconds
Size size = img.size();
... |
5d44c3df1dc98416bf0268b59eb3a4ed3dab5569 | f8ddaf0096bbf7a2cc937bbb6cc00a1a2464565b | /src/hello.cpp | d10cbe5ca5000bbb8ab3e1102983e804b76fec8c | [] | no_license | nasoym/cmake_cpp_json_test | ed127ed930b45c8587300b5fcb5f2e749415f186 | c311356bd2b052f0bd1317b506e4905df30ce5c8 | refs/heads/master | 2020-04-24T09:25:45.004225 | 2019-03-07T14:51:22 | 2019-03-07T14:51:22 | 171,862,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,021 | cpp | hello.cpp |
#include <iostream>
#include <string>
#include <unistd.h>
#include <sys/poll.h>
#include <deque>
#include <nlohmann/json.hpp>
using namespace std;
using json = nlohmann::json;
int main(int argc, char *argv[]){
char newline = '\n';
char bytes_from_stdin[1024];
ssize_t bytes_read;
string appended_bytes_fro... |
d8c2133279b338f290cee38a31a3d68aa127dafd | 5a6b52ae1d7794a9b9f76c53e027f2b5151cf79a | /test/TestSendInput.cc | d1c33ff31f699943139056f231c7b0f0a33c3a1b | [] | no_license | mahhov/windows-window-node-plugin | 97131b723b3f81ae74766ef12df188628a41d242 | 76b6921b44fcfabb777b839eae83b555379a6549 | refs/heads/master | 2022-12-17T07:50:07.300962 | 2019-04-04T14:00:02 | 2019-04-04T14:00:02 | 148,792,938 | 0 | 0 | null | 2022-12-08T01:06:17 | 2018-09-14T13:32:30 | C++ | UTF-8 | C++ | false | false | 556 | cc | TestSendInput.cc | #include <windows.h>
#include <stdio.h>
#include "../src/Utility.h"
int main() {
WORD shift = 16; // slash is / 191
WORD ctrl = 17; // slash is / 191
WORD slash = VkKeyScanA('A'); // slash is / 191
printf("slash %d\n", slash);
std::vector<std::pair<Utility::SendKeysState, std::vector<WORD>>> vkss = {
{Utility... |
aa020edaae7828868aba12fe1eec54ddfa2caec2 | e45369cc2a955fc924481375b9f181bd35ad45a4 | /ShellAndNameSpace/TaskbarIconAndMenu/TaskbarIconAndMenuDlg.h | 17d850355e13d15979000e2e1ec150393cc03030 | [] | no_license | winwingy/Study2 | ba59248ccd591b8ed0108c39c295ee5cf9dd0019 | 69bc16c759a6f3c82519cfc92d1fa03c2a3ebf22 | refs/heads/master | 2020-12-02T07:49:18.396304 | 2018-06-22T02:26:19 | 2018-06-22T02:26:19 | 96,725,886 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 972 | h | TaskbarIconAndMenuDlg.h |
// TaskbarIconAndMenuDlg.h : 头文件
//
#pragma once
// CTaskbarIconAndMenuDlg 对话框
class CTaskbarIconAndMenuDlg : public CDialogEx
{
// 构造
public:
CTaskbarIconAndMenuDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_TASKBARICONANDMENU_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pD... |
0e5e9e342851da4563880464a2fa45dc872259e9 | 1454cff64df338e92696236027e15097f80b9dc9 | /prime_factors.cpp | 0454b6d33237e376667d796a80b91a292ea39d3c | [] | no_license | nrgsy/bobsweep_challenge | 9f8abc1b50b4cfc95145126d04043f9a41f7e56f | de24b6c53a9a43bde74d2391fd20b95cfc17907c | refs/heads/master | 2021-01-13T14:54:45.952325 | 2016-12-17T00:27:44 | 2016-12-17T00:27:44 | 76,694,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,680 | cpp | prime_factors.cpp | #include <iostream>
#include <vector>
#include <string>
#include <boost/lexical_cast.hpp>
#include <math.h>
using namespace std;
//Program to find the prime factors of a positive integer.
//Should work up to the maximum range of the int datatype.
//If the user enters nothing, a negative number, or anything that fails... |
f9ca791b3245d3bbde5989050fff0b9ef6917162 | c5ca8058d3a346a748804e7fba09352034c48a3e | /GriptDemo/GriptDemo.cpp | 3767eb4632e28823e13a0be544b79d4c4f20653c | [
"CC0-1.0"
] | permissive | ogamespec/Gript | 68261125583c656561593718aa02c753eb009eb2 | 7e77947c170b59cda4ebc90661324861543ca3cd | refs/heads/main | 2022-12-30T07:51:20.591260 | 2020-10-10T15:33:02 | 2020-10-10T15:33:02 | 302,898,044 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | cpp | GriptDemo.cpp | #include "pch.h"
/// <summary>
/// Simple implementation that just prints out the name and text of the node.
/// </summary>
class DummyGriptEngine : public Gript
{
public:
DummyGriptEngine(std::vector<uint8_t>& source) : Gript(source) { }
~DummyGriptEngine() { }
GriptNode* InvokeNode(GriptNode* node)
... |
3213792e774e46532735aaed199575fef33ff1f1 | 2064a7336988bfb9f68a1075d6fbf435334caf68 | /CommandBasedDoneRight/src/CommandBasedDoneRight/src/RobotMap.h | b361f1a88ea593680563e5df9ef16a3bb2777c05 | [] | no_license | PiBoticsFRC3814/2018 | 0907d28a7eec5738f877ea88035852ba9b9786c3 | b5c7c74ba941a9e6d2c7cfeed6d5f4eed02c9583 | refs/heads/master | 2020-03-26T18:43:54.950102 | 2018-10-25T23:44:05 | 2018-10-25T23:44:05 | 145,227,392 | 0 | 0 | null | 2018-10-25T23:44:06 | 2018-08-18T14:38:32 | C++ | UTF-8 | C++ | false | false | 1,684 | h | RobotMap.h | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks ... |
e56d6eb2716cb51b60140faf556552928433a215 | e4bc18f9be33096443c837a2bd846ec9c593d6f3 | /src/shapes/Quad.cpp | 3a9dd225c3b9c18e22d3450d5aeb4553f034d3ea | [] | no_license | lPrimemaster/VectorLite | cdcd127428ddba19480f07f76c874e6b292aca25 | 415916d56c667bd751a1985457d02e56446d1c05 | refs/heads/master | 2020-09-01T19:42:46.843246 | 2019-11-02T17:11:40 | 2019-11-02T17:11:40 | 219,039,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | cpp | Quad.cpp | #include "Quad.h"
#define SIMILAR_ASSIGN(val) this->val = val
Quad::Quad(float xTL, float yTL, float xTR, float yTR, float xBL, float yBL, float xBR, float yBR, std::string style)
{
SIMILAR_ASSIGN(xTL);
SIMILAR_ASSIGN(yTL);
SIMILAR_ASSIGN(xTR);
SIMILAR_ASSIGN(yTR);
SIMILAR_ASSIGN(xBL);
SIMILAR_ASSIGN(yBL);
SIM... |
afca4d80870c393a9b0d8cb951c5bb88be8fdc98 | d053e0e8687f122d120bcd0fa1f9076deb35afa5 | /Olymp/codechef/Muscle/ANDTUPLE/ANDTUPLE.cpp | 57d4b0dcf5cd137476310f7a84da6f8401f3ccc1 | [] | no_license | shaihitdin/CP | e8911bc543932866d6fc83eb1d48d9cf79918c61 | dc90082f3ebedaccbfb0818cc68539c887f86553 | refs/heads/master | 2021-01-11T17:10:20.356635 | 2017-10-05T08:53:56 | 2017-10-05T08:53:56 | 79,729,913 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | ANDTUPLE.cpp | #include<iostream>
#include<stdio.h>
using namespace std;
long long t,n,k;
int main(){
/*
freopen("in","r",stdin);
freopen("out","w",stdout);
*/
cin>>t;
++t;
while(--t){
cin>>k>>n;
cout<<(n/2+1)%1000000009<<"\n";
}
return 0;
} |
d74d6a6ee0246483d4f9e5c5271b42be3a66134f | a5c0bf7c5413bdded8b18427975ba24f596d5fb9 | /src/openpr/netlist/XdlImporter.hpp | 7ad42ce01f81aa6640ead7be85afcaae7c909851 | [] | no_license | asohangh/openpr-vt | 16e98ab5a03ea083dbd1633eb89fd622497eef7a | 13f1236715b05ca0dd3af54c82dd1500fd10319c | refs/heads/master | 2021-01-22T09:09:18.185090 | 2014-03-12T19:39:40 | 2014-03-12T19:39:40 | 37,819,138 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,879 | hpp | XdlImporter.hpp | // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
// $HeadURL: https://svn.code.sf.net/p/torc-isi/code/tags/torc-1.0/src/torc/architecture/XdlImporter.hpp $
// $Id: XdlImporter.hpp 16 2013-11-12 22:50:42Z nsteiner $
// This program is free software: you can redistribute it and/or m... |
1e5c1d1764e6ab726b116344479781cd56be847c | 207f672b084d714bd29dc7b2322a2d39cf1c14fe | /src/Book.h | 15651485acdbad96b11f5173827da05dc96e251e | [] | no_license | ei12134/library | b86e03983354011dc1040bca4be390adb6dd58f4 | 3d29aecb88d93446ae8bf5c421e8b08dcb7e29f4 | refs/heads/master | 2020-05-18T06:46:01.908561 | 2015-01-05T22:29:10 | 2015-01-05T22:29:10 | 24,850,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,456 | h | Book.h | #ifndef BOOK_H_
#define BOOK_H_
#include <string>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <fstream>
#include <stdlib.h>
#include "Exception.h"
#define BOOK 5
using namespace std;
class Book {
private:
unsigned long int ID;
vector<strin... |
50a5d3b54a85b2e9196a4c3abe841d72500e5669 | 18ada590c57daf1c3759938f039d2f228a4ab1da | /Max and Min value in Matrix.cpp | 30f5e0add5fbe87f0194ab4c69aba5164619a471 | [] | no_license | MuhammadTayyab26/Find-max-and-min-value-of-matrix-in-C- | 7a2f921c3724ead7dfffdf97dbdbb03e9538d695 | 03bcf51ad98af9a74d25af732fb5ee87666bbe2a | refs/heads/main | 2023-03-30T14:02:46.397836 | 2021-03-30T17:46:20 | 2021-03-30T17:46:20 | 353,091,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,340 | cpp | Max and Min value in Matrix.cpp | #include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int arr[4][4],sum=0;
for(int i=0;i<4;i++)
for(int j=0;j<4;j++)
{
cout<<"Enter Number:";
cin>>arr[i][j];
}
cout<<endl;
for(int i=0;i<4;i++)
for(int j=0;j<4;j++)
{
sum=sum+arr[i][j];
}
cout<<"Sum of ALL Elements:"<<sum<<endl;
///Sum of all ele... |
458b8984a7bcd256b5c5b96bf331fa26f011d2e0 | 053309314b081dcb3fca08fc5ea15e6e8596141d | /day5/source/青岛二中宋骏凯又阿克了/one.cpp | e3000f3a2d1296e38f7fdf9d931493bf65bcb606 | [] | no_license | cppascalinux/jinanjixun | a6283e1bbdc4cac938131e8061a8b5290f6bb1dc | 555a95c7baf940c38236ac559f0a2c11a34edd0c | refs/heads/master | 2020-05-29T14:46:31.982813 | 2019-06-14T07:14:19 | 2019-06-14T07:14:19 | 189,192,981 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,814 | cpp | one.cpp | #include<bits/stdc++.h>
#define ll long long
#define mk make_pair
#define pb push_back
#define pa pair<int,int>
#define rint register int
#define debug(x) cerr<<#x<<"="<<x<<"\n"
#define fir first
#define sec second
#define SZ(x) (x).size()
#define N 650
using namespace std;
const int mod = 1e9+7;
inline int read(){int ... |
78ec4d772046b25000db856159951076ca25a305 | bfb066e9c5525483d256e6c0f72d3a798159ecbc | /lpg2/src/PlxasmTable.cpp | 7115a226b5de3b5fb0923a97e20924f8d21327ed | [
"MIT"
] | permissive | kuafuwang/LPG2 | f3c71186c0d1867a0efd5c475edf87229ef8887d | 5cda43c109633d951facbeac361e060dd6d59dcd | refs/heads/main | 2023-07-10T08:26:50.297030 | 2021-08-15T00:54:15 | 2021-08-15T00:54:15 | 378,531,151 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,644 | cpp | PlxasmTable.cpp | #include "tuple.h"
#include "PlxasmTable.h"
#include <iostream>
using namespace std;
//
// Print address declaration
//
void PlxasmTable::PrintAddress(const char *name)
{
char *ptr_name = new char[strlen(name) + 4]; // +3 for "PTR" +1 for gate
strcpy(ptr_name, name);
strcat(ptr_name, "PTR");
dcl_buff... |
4d1ef5e2fd70b08b7239b530e4444176bb5448db | 3132120361c5200c532682dacf34b0801d3b69cc | /src/apnsocket.cpp | 89226d9110135809566988c1644e92c9ac205a00 | [] | no_license | contextlogger/pyaosocket | 813df6b59d4b8ca1d919479d9d8ef98af91656e4 | dcc9af380b5216cf3e3956270ab7be3a7f11c871 | refs/heads/master | 2021-01-20T13:47:44.684577 | 2017-11-02T19:11:15 | 2017-11-02T19:11:15 | 1,657,982 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 36,909 | cpp | apnsocket.cpp | // -*- symbian-c++ -*-
//
// apnsocket.cpp
//
// Copyright 2004 Helsinki Institute for Information Technology (HIIT)
// and the authors. All rights reserved.
//
// Authors: Tero Hasu <tero.hasu@hut.fi>
//
// A wrapper for the native RSocket class, with selected functionality
// made available. Supports TCP and Blueto... |
038df90bd34d11f4963832ea96086f5812f9e30d | 9ba3f6ecbe31b11657e8c0fb1da7e547866b793a | /C++编程语言/operator1.cpp | f2ea7e83217160cfef4efeb95a585470f41e581a | [] | no_license | zhangbowen-jpg/Code--Practice | 01fd2149154454de6af9346d09d243a1f3579f7c | 24a5f8d4355ca0fa4c23e50762989199bfe3131a | refs/heads/master | 2023-01-20T19:52:18.267466 | 2020-11-20T09:55:04 | 2020-11-20T09:55:04 | 314,512,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,028 | cpp | operator1.cpp | /*************************************************************************
> File Name: operator1.cpp
> Author: zhangbowen
> Mail:
> Created Time: 2020年03月10日 星期二 19时50分11秒
************************************************************************/
#include<iostream>
#include<stdio.h>
#include<string.h>
#include<st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.