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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df119d1832a9f9ada097d42bca3f5335598c4a5f | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_2/processor38/30/p | f6baffb1f0de6594f90708c4d1dc192198bbaf0a | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,615 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
a022f804ce3319d313906840cd0c30be0cf0a481 | c439f86008dbc081eb1bf04031474476d4dcef4e | /src/movementEvents/intakeControl.cpp | e6f4c4bb95f7f1b0fa3815ae93305b295ad75283 | [] | no_license | Fluhf-Devs/ChangeUpV5 | 97feb2f47479a6b18075ed2190774b6cad23ac20 | d93f31bb306c5066837073de425104499125b152 | refs/heads/main | 2023-03-18T12:01:38.862245 | 2021-03-12T00:27:53 | 2021-03-12T00:27:53 | 317,671,383 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,472 | cpp | intakeControl.cpp | /*----------------------------------------------------------------------------*/
/* */
/* Module: intakeControl.cpp */
/* Author: Liam Teale ... |
445e47009cd373f34703e358fcec3dd1211f17e3 | 077b52d6bf4438d2e0172531ba6acb27b1aaf8dd | /Inheritance/8/automaticteapot.hpp | dca01878575e9f0c5ffe5bb5b097a3ea8adb8c88 | [] | no_license | bmvskii/OOP | a41ccf5a9862f6f112e8a82a25462bac4c605a64 | 810ad97eb418024cfac7beb66a8fff76cae73b90 | refs/heads/master | 2020-03-25T02:03:42.824530 | 2019-08-01T13:31:00 | 2019-08-01T13:31:00 | 143,271,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | hpp | automaticteapot.hpp | // (C) 2013-2016, Sergei Zaychenko, KNURE, Kharkiv, Ukraine
#ifndef _AUTOMATICTEAPOT_HPP_
#define _AUTOMATICTEAPOT_HPP_
/*****************************************************************************/
#include "teapot.hpp"
/*****************************************************************************/
class Automat... |
eadf5cbb5520bd3063968a067a73310317cf9f1c | 4ca3f1e4170bb02f437111c89010d4b4a432d431 | /core/libmpxx/mpxx_memareacpy.cpp | 42b99e1aa49028f70eca8071c4da210c13ad29a9 | [] | no_license | TSN-SHINGENN/libs3 | f2eb21b581b9db139b081ec4cdec0a23cea69d30 | b8e0d1989f2b45189c18d669faf5dfb921b3abd4 | refs/heads/master | 2023-02-02T18:46:12.370772 | 2020-12-02T02:49:23 | 2020-12-02T02:49:23 | 317,729,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,182 | cpp | mpxx_memareacpy.cpp | /**
* Copyright 2012 TSN-SHINGENN All Rights Reserved.
*
* Basic Author: Seiichi Takeda '2012-August-07 Active
* Last Alteration $Author: takeda $
*/
/**
* @file mpxx_memareacpy.c
* 二次元バッファの領域から矩形領域を指定してコピーします。
* CPUがコア数に関わらずメインメモリコントロールエンジンが一つしかないので並列化できない
*/
#ifdef WIN32
#if _MSC_VER >= 1400 /* VC++2005... |
ce159c6d33af2845288b966f3fe6d2bba7e91cba | e8d736380d9abd1c5c3b0a4a3e4e0e2a8e0789cf | /Source/Grandpa/PathUtil.h | e9ffc96161c52188998b3970fb0ec18b84180df4 | [] | no_license | ColinGilbert/grandpa-animation | 79b1fc4d9d798b999c1d26926d3e1fafeeaafe81 | 109ba004125d9b51c6ed55cda2d1267fced94c68 | refs/heads/master | 2021-01-01T05:39:03.927379 | 2013-06-14T20:11:38 | 2013-06-14T20:11:38 | 35,481,750 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 212 | h | PathUtil.h | #ifndef __GRP_PATH_UTIL_H__
#define __GRP_PATH_UTIL_H__
#include <string>
namespace grp
{
bool containFolder(const STRING& url);
void getUrlBase(const STRING& url, STRING& baseUrl);
}
#endif
|
52b20c3d96dc7165eab44de3b9534d7bfcb33290 | 157fd7fe5e541c8ef7559b212078eb7a6dbf51c6 | /TRiAS/TRiAS V2.07/Include/Ident.hxx | a7a4946622bcd66d311b60600454859b1edf5067 | [] | no_license | 15831944/TRiAS | d2bab6fd129a86fc2f06f2103d8bcd08237c49af | 840946b85dcefb34efc219446240e21f51d2c60d | refs/heads/master | 2020-09-05T05:56:39.624150 | 2012-11-11T02:24:49 | 2012-11-11T02:24:49 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 16,354 | hxx | Ident.hxx | // Klassen für die Beschreibung diverser Identifikatorstrukturen
// File: IDENT.HXX
#if !defined(_IDENT_HXX)
#define _IDENT_HXX
// Funktionsprototypen --------------------------------------------------------
extern "C" {
_TRIAS02_ENTRY bool EXPORT02 isDBTextObjekt (HPROJECT hPr, long ONr);
_TRIAS02_ENTRY b... |
ead77078c073793efea5fd72dda5cffba5a67c3b | cafcf6a79e61ae811c461e9b57016bb5c77eda24 | /app/ChannelMsgProxy.h | dee4941998b139086ee2d577ad8ca80e7e4a32ca | [
"MIT"
] | permissive | jj4jj/playground | fa3f3a0da0e4f112b0e407a1cce8faf002151b4f | be0ab129d28359199008af8282e7395186a211a5 | refs/heads/master | 2021-01-22T04:40:44.470282 | 2014-11-05T16:53:01 | 2014-11-05T16:53:01 | 23,486,561 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | h | ChannelMsgProxy.h | #pragma once
#include "base/Buffer.h"
#include "ChannelProxyDispatcher.h"
//just wrap channel
//send dst id to a channel
//init all channels
struct AppContext;
class ChannelMsgProxy
{
public:
typedef unordered_map<int,ChannelMessageDispatcherPtr> ChannelProxyMsgHandlerMap;
typedef std::pair<int,int> Chan... |
414081a46472de5f59d4926bbe6471ccfce6d490 | 6023d40c3221725fa316b89f6f4ae12a1a8bf5f3 | /Matrix.cpp | 352f2a51da78cf2cd59b31d7bec48bd255199ebb | [] | no_license | liorait468/Image-processing | abc446cd1174b458bae61793b34f121e759d887b | 2e790cecc1465c69201b6f8024cfe90701082d15 | refs/heads/master | 2022-06-30T13:36:55.829145 | 2020-05-12T09:41:59 | 2020-05-12T09:41:59 | 263,272,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,227 | cpp | Matrix.cpp | /**
* @file Matrix.cpp
* @brief a program that implements Matrix.h. represents and creates a matrix object that contains
* an array of float.
* @section DESCRIPTION a program that implements Matrix.h.
*/
// -------------------------------------- includes ------------------------------------------------... |
99af898de76766d1dc0401042d1603d5987ec1e7 | 61557a371e38c7f299ed94e67d0463512c339e1e | /11.8.cpp | 6c47b3846901415b4c3763401e1626f282c6f7b2 | [] | no_license | yhshu/CPlusPlus-Primer | 153f28de0212183fc9f9b686f41885b56a715f0b | 620d23f237b27b616061b18648430bf7878f2597 | refs/heads/master | 2021-06-26T16:38:14.311102 | 2017-09-04T13:48:03 | 2017-09-04T13:48:03 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 500 | cpp | 11.8.cpp | /*
* 编写一个程序,在一个vector而不是一个set中保存不重复的单词。
*/
#include<iostream>
#include<vector>
#include<string>
#include<list>
#include<algorithm>
using namespace std;
int main()
{
vector<string> words = { "C++", "my", "C++", "c", "is", "world", "c", "like" };
sort(words.begin(), words.end());
auto iter = unique(words.begin(),... |
863f7ba341cc15dd360d8d708411ebf42f9759d3 | 25e4fa95738472b0ee10f0ea993f0016e912457b | /productos.hpp | 44f175f0683ef4ce8a7d45a7ffe2dee82159a811 | [] | no_license | WalterReyes1/P3Lab4_WalterReyes. | 4c64dd7928db4915dae213eb5e2423407818d498 | ec1f1b60f484177b31acde0b6119810dd18f7518 | refs/heads/master | 2023-03-01T09:50:18.611201 | 2021-02-12T23:37:39 | 2021-02-12T23:37:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | hpp | productos.hpp | #ifndef PRODUCTOS_HPP
#define PRODUCTOS_HPP
#include <string>
#include <iostream>
using namespace std;
class productos{
private:
int id;
string nom;
string categ;
int cant;
float precio;
public:
productos();
productos(int,string,int,string,float);
~productos();
int getId();
string getNom();
string get... |
b97a014917032d0930f207f9c9dc6ad103032c5a | fc3bca040602fd6cb1f208369d0dcb59ac261584 | /R3_Source/RMainWindow.cpp | edee1416345838589918fda5ca558e9892b7618a | [] | no_license | rccosta1/R3 | 907cc42fe541609f3e76c9e23d6d6aed0362642b | 082542ee1d0d1461814a44c3b4ebc55a73918616 | refs/heads/main | 2023-06-03T17:56:54.415562 | 2021-06-29T20:33:22 | 2021-06-29T20:33:22 | 381,476,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 40,560 | cpp | RMainWindow.cpp | #include "RMainWindow.h"
#include "ui_RMainWindow.h"
#include <QtGlobal>
#include <QPlainTextEdit>
#include <QFileDialog>
#include <QMessageBox>
#include <QInputDialog>
#include <QTextStream>
#include <QDockWidget>
#include <QSettings>
#include <QApplication>
#include <QtGui>
#include <QMdiArea>
#include <... |
c5125ddf147b06a289b7c706a827a0265af711c4 | 0f0add5e2c721c7a3381de612093a41bae0c190d | /Study/LapTrinhHuongDoiTuong/TH/BT7/Cau_2/Cau_2/Nguoi.cpp | 17c2c96ddd437865bf391bf33b9112f1042af232 | [] | no_license | phanybien/University | 9d5a8b0a8598823b6612e07980b820469223f7e1 | 409496c8c9feca3d8420d93d6a5d91ac583cb71a | refs/heads/master | 2023-06-11T17:39:13.619405 | 2021-01-08T06:01:58 | 2021-01-08T06:01:58 | 80,742,472 | 1 | 4 | null | 2023-05-31T18:17:29 | 2017-02-02T16:11:05 | C++ | UTF-8 | C++ | false | false | 1,474 | cpp | Nguoi.cpp | #include "Nguoi.h"
Nguoi::Nguoi(void)
{
HoTen="";
GioiTinh="";
ngaysinh=0;
thangsinh=0;
namsinh=0;
}
Nguoi::~Nguoi(void)
{
}
void Nguoi::Nhap()
{
fflush(stdin);
cout<<"Ho ten: "; getline(cin,HoTen);
cout<<"Ngay sinh: "; cin>>ngaysinh;
cout<<"Thang sinh: "; cin>>thangsinh;
cout<<"Nam sinh: "; cin>>namsinh;
f... |
753a124a35615eac51de3978f7be019255472a0b | d076a96f7a7b0be760453027757f625d4674ec8d | /JunHyun_Park/BOJ/1992_쿼드트리.cpp | 128444edbef12821ec468a9d2866fc1f90f05119 | [] | no_license | Goodgaym/ProblemSolving_ | 0c0a83bbb51835b849571c14dbbd95c831dc2f72 | aba0b48f4c752626e7e74b0d2ae623c279e2a706 | refs/heads/master | 2022-12-06T03:48:45.862905 | 2022-11-22T08:11:37 | 2022-11-22T08:11:37 | 231,822,070 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | 1992_쿼드트리.cpp | #include<cstdio> // 1992_쿼드트리 [분할정복]
using namespace std;
int N;
bool board[65][65];
bool checkQuad(int x1, int y1, int x2, int y2){
bool set = board[x1][y1];
for(int i=x1; i<x2; i++){
for(int j=y1; j<y2; j++){
if(board[i][j] == set);
else return false;
}
}
if(... |
4419afddbee8ce811eed34b824d38a967e00b61e | 3ab49d69704fb09ab30b5493999b9570b5385d6e | /src/InputManager.h | 1294db62a64e8cd0005f93d6902b7ea7ac7e4537 | [] | no_license | herculesS/shmup | 095a5a9e6284cb272b0a248abf697fae696056e4 | 9c9483c15efc2d22129745ad7eb29bf4ab7e43f2 | refs/heads/master | 2021-04-03T01:04:19.031100 | 2018-03-13T16:00:04 | 2018-03-13T16:00:04 | 125,073,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | h | InputManager.h | /*
* InputManager.h
*
* Created on: 14/05/2013
* Author: vitor
*/
#ifndef INPUTMANAGER_H_
#define INPUTMANAGER_H_
#include "SDL/SDL.h"
#define N_KEYS 323
#define N_MOUSE_BUTTONS 7
class InputManager {
private:
static InputManager* instance;
Uint8 mouse;
Uint8* teclado;
Uint8 keyDown[N_KEYS], keyUp[N... |
3481af624ff55065e51d1d85897a2ad99c14ae9d | 86d4e6c40a3e72b5f9ca7a0b31bb8f3d2fd6f661 | /src/StringUtils.cpp | 20569c6b2740bed9701987f024b99bc324ea64b8 | [
"MIT"
] | permissive | Gabriele91/Word-indexing-in-web-page.reduce | b03f22ad6f06f03e61e3651800c9636648903d60 | 792874f5c306c90354ab23a686cfcb0d1298e159 | refs/heads/master | 2021-12-14T02:18:06.285870 | 2015-06-08T17:44:37 | 2015-06-08T17:44:37 | 36,066,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,037 | cpp | StringUtils.cpp | #include <StringUtils.h>
#include <codecvt>
#include <clocale>
#include <cstdlib>
#if _WIN32
#include <Windows.h>
#endif
void StringUtils::from_utf8(std::wstring& outwstr, const std::string& data)
{
#ifndef _WIN32
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
outwstr=converter.from_bytes(da... |
99c42552b0a58260ccb9fba66139f517d0eef3eb | 426af4169b030c4691867f9083e336b0fdf0aa2e | /My DSA Practice/Hashing/countDistinct.cpp | 5d11fff3f4aeaad4b17e392a2b5fdf2ac20692c0 | [] | no_license | kk-source/DSA-Practice-Repo | b0f896e7a7692786deb121e80258b793054c0094 | 06ae5af6a180910bcb03fe7c28a72befb3611114 | refs/heads/master | 2023-07-10T20:26:01.721486 | 2021-08-22T12:01:33 | 2021-08-22T12:01:33 | 372,847,622 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | countDistinct.cpp | #include <bits/stdc++.h>
using namespace std;
int countDistinct(int arr[], int n){ // naive
int res=1;
for (int i=1;i<n;i++){
bool flag=false;
for (int j=0;j<i;j++){
if (arr[j]==arr[i]){
flag=true;
break;
}
}
if (flag==false... |
9b8a6a5feb056920a03d9a2ddd1021bab5b8bc2e | 9da37e127eb58d2c2e9a36c888ffe09a7a981c6d | /app/src/main/cpp/jni_bridge.cpp | 123b4d75c3cc8c75b54f623c76cccc41dc2bcd2d | [
"Apache-2.0"
] | permissive | wenxin-wang/PulseDroidRtp | 1ab37a9748d76729aa291811b2804606c56bacff | 3e2f23f02a9522a8ac6582104bcae4765a9b0808 | refs/heads/master | 2023-06-18T07:02:27.334087 | 2021-07-05T14:05:26 | 2021-07-05T14:08:13 | 274,973,713 | 40 | 2 | null | 2020-09-03T15:17:27 | 2020-06-25T17:15:45 | C++ | UTF-8 | C++ | false | false | 5,227 | cpp | jni_bridge.cpp | /*
* Copyright 2020 Wenxin Wang
*
* 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... |
c4a6f40b72b13c30c45ab482e103941c7d2e4bdc | af2b0c302d111454a940fdba09e66090484d6756 | /C++/DAY9/stacks/stack.cpp | 84f1bd87b74549d5d8701045c3564c68375aa4ae | [] | no_license | carlogravador/nokia-academy-training | 2eb3197822a4d760f5dc90a05f4c2aee9fc2f5b4 | de65778e115c3a00558bf6eef2dca50937f8d71e | refs/heads/master | 2022-11-08T21:46:22.142997 | 2020-06-30T14:18:01 | 2020-06-30T14:18:01 | 276,119,580 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 884 | cpp | stack.cpp | #include <iostream>
#include "stack.h"
using namespace std;
template <class T>
Stack<T>::Stack(){
head = NULL;
count = 0;
}
template <class T>
Stack<T>::~Stack(){
while(!isEmpty()){
pop();
}
}
template <class T>
void Stack<T>::push(T data){
if(head == NULL){
head = new node();
head->data = data;
head... |
5e4086bc11d770401662fd45a417b88ac41950e8 | 4dfbff3f8aa9a26143f673be1cd78e2010b71d6b | /RPG_01_Server/Player.cpp | 045f31d689659024f1c524e25fee52aedc35e521 | [] | no_license | mobinsheng/RPG_01 | 23bf26986548c316b093e4e1105d8ec8ac0084bb | a979988238f6a9936a346bcffaa9e0a77bdc828e | refs/heads/master | 2021-01-10T06:06:34.459821 | 2016-03-10T06:50:21 | 2016-03-10T06:50:21 | 53,562,416 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,943 | cpp | Player.cpp | #include "Player.h"
void Player::ConvertPack2Player(const GamePackage_Player& pack_player,Player& player)
{
player.SetID(pack_player.userid());
player.SetSpeed(pack_player.speed());
player.SetDirection(pack_player.direction());
player.SetDestPointX(pack_player.destpointx());
player.SetDestPointY(pack_player.destp... |
0c289d6c870da60785f34c23bf73c68515db3c64 | c3c83cc18cac3974b5f31fa2bde583ec8022e5d7 | /menu/ncurses/include/mainMenu.hpp | 05dcdf7adc68a857150633919bf84862868a7c16 | [] | no_license | Panzershrekk/cpp_arcade | 36945be4faf9333dbe1fc17af144da5d20769cf0 | 57357d6122bfa604560a6e2e570b3a98efa5c8ee | refs/heads/master | 2021-07-11T23:14:45.407239 | 2017-04-09T17:35:04 | 2017-04-09T17:35:04 | 106,286,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,060 | hpp | mainMenu.hpp | //
// Created by huguet_t on 31/03/17.
//
#ifndef CPP_ARCADE_MENU_HPP
#define CPP_ARCADE_MENU_HPP
#include "IGraph.hpp"
#include "IGame.hpp"
class menu : public Graph::IGraph
{
std::map<int, std::string> _games;
std::map<int, std::string> _libs;
int ch;
int pos;
int boolean;
public:
... |
e7a47ba8af171657182eb00187175a25d111c9b1 | bd48d56445b30c74d237d178f29cc6e01f3eb843 | /Project2/puyo.h | 16153ffc7e312f5264370cb33719d5797d2d3dd6 | [] | no_license | terataichi/2- | b43ab20b439a1bb264c76b4bacb8144831b9d9b5 | 2649c3c325941e553f18e10da4a7567f91d43931 | refs/heads/master | 2023-02-16T12:05:51.445632 | 2021-01-18T19:16:56 | 2021-01-18T19:16:56 | 268,970,944 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,302 | h | puyo.h | #pragma once
#include <map>
#include "common/Vector2.h"
#include "Input/INPUT_ID.h"
enum class PuyoState
{
Drop, // 落ちてる
Stop, // 止まる
Die, // 消える
Max
};
enum class PuyoID
{
Non,
Red,
Green,
Bule,
Yellow,
Purple,
Ojama,
Wall,
Max,
};
using VecPair = std::pair<Vector2, Vector2>;
// 方向の入力のビットフィールド
stru... |
f72a34e40418d4721820616065763985b3e72dcb | ac25bd2ddd4fe0d4d82d1bb4a7fb231488fddaf0 | /src/java_bytecode/java_bytecode_typecheck_expr.cpp | c83ad68078409496a3c29b65660c11a6014adb20 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause",
"BSD-2-Clause"
] | permissive | polgreen/cbmc | edb7846859432627e29e1b8f7aff463c649854cf | dd42ef89dabcd010ed63e089ced04f9a7b6f1199 | refs/heads/master | 2023-03-19T10:58:49.657381 | 2017-05-13T18:33:10 | 2017-09-06T15:37:26 | 97,494,073 | 1 | 2 | NOASSERTION | 2023-03-07T21:27:23 | 2017-07-17T15:52:09 | C++ | UTF-8 | C++ | false | false | 9,452 | cpp | java_bytecode_typecheck_expr.cpp | /*******************************************************************\
Module: JAVA Bytecode Conversion / Type Checking
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
/// \file
/// JAVA Bytecode Conversion / Type Checking
#include "java_bytecode_... |
5e5caa6e81612592e76fbaeed6bd0046ffd3d9ad | c4f74d69ed04fd89b45ee697ccafb693f034468c | /lab1.6(2)/Source.cpp | 2c940a163b7d76e95a7b9a850dd832156aaf0cc0 | [] | no_license | DenysKachalup/lab1.6.2 | cd4d656ade379e313234846a829924d037e370d8 | 6d70e51bf57e8fdffc1cb0ec726e5019bd18e4c1 | refs/heads/master | 2023-06-28T15:31:31.428116 | 2021-03-04T17:48:52 | 2021-03-04T17:48:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | Source.cpp | #include "Time.h"
#include<iostream>
using namespace std;
int main()
{
Time::Triad g, f;
cout << "Triad 1 : " << endl << endl;
g.Read();
cout << "Triad 2 : " << endl << endl;
f.Read();
g.Display(g, f);
g.Equals(g, f);
Time tim;
do
{
tim.Read();
} while (!tim.Equal());
tim.Display();
return 0;
}
|
f9c6ac206b4bbc4a9b8f8fda600461178afa54e0 | e91e89f5c749f92e7bd6666abe7d1fb214a30e13 | /external/libraries/math_lib/include/lms/math/polyline.h | a03e06474afecea30bcb4e9b874f6d02ad2d8b92 | [] | no_license | Aand1/drive_ros_trajectory_generator | 8e1257594eb43618b6a9d8530d1302ab75069203 | fe52980b9cbcc027d982645b89ce6e05a3f15c09 | refs/heads/master | 2021-01-20T10:00:10.204002 | 2017-07-04T15:52:16 | 2017-07-04T15:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,944 | h | polyline.h | #ifndef LMS_MATH_POLYLINE_H
#define LMS_MATH_POLYLINE_H
#include <vector>
#include "lms/math/vertex.h"
#include <algorithm>
#include <functional>
#include <lms/inheritance.h>
#include "lms/serializable.h"
#include "cereal/cerealizable.h"
#include "cereal/cereal.hpp"
#include "cereal/types/vector.hpp"
#include "cereal/... |
0de1b6c783f3ba57e349b18799fe2be92aab50e4 | 29f1798615c88309a115e8adaf21d9e737c5531e | /include/fl/model/observation/joint_observation_model_iid.hpp | aa19c43490b060f8d445f4695fce1195aaaba026 | [
"MIT"
] | permissive | SimonEbner/fl | 8b131372d8137a0d681fad30196d5c6e35a391f8 | 1877a415f52aacdfa082846a38f9db321b53ff1e | refs/heads/development | 2021-01-22T15:12:12.049097 | 2015-11-27T11:50:36 | 2015-11-27T11:50:36 | 39,135,425 | 0 | 0 | null | 2015-07-15T12:25:35 | 2015-07-15T12:25:35 | null | UTF-8 | C++ | false | false | 7,737 | hpp | joint_observation_model_iid.hpp | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... |
f480b48fc3053783025152772a3b04156a473c94 | a91796ab826878e54d91c32249f45bb919e0c149 | /modules/gapi/src/backends/fluid/gfluidimgproc_func.hpp | 79715d17547c5a80ffdb5e6a24dff5c6b2177b54 | [
"Apache-2.0"
] | permissive | opencv/opencv | 8f1c8b5a16980f78de7c6e73a4340d302d1211cc | a308dfca9856574d37abe7628b965e29861fb105 | refs/heads/4.x | 2023-09-01T12:37:49.132527 | 2023-08-30T06:53:59 | 2023-08-30T06:53:59 | 5,108,051 | 68,495 | 62,910 | Apache-2.0 | 2023-09-14T17:37:48 | 2012-07-19T09:40:17 | C++ | UTF-8 | C++ | false | false | 4,759 | hpp | gfluidimgproc_func.hpp | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#pragma once
#if !defined(GAPI_STANDALONE)
#include <opencv2/core.hpp>
namespac... |
8511f4e96f181f3c72c47dd57c0bb8d03d2ae932 | 65f2d974482ba75d276b69f8f3d1ee74dce379e8 | /mobi/mobi_headers.hpp | 61b6f35085323d4f78a0cc57332c357538dffa99 | [] | no_license | sevear/mobi2epub | ae856e815160f8b9bc02fe98c605aaa1c7145288 | 06b7d949712b3f4e32e7fc2684b293782f3fadb4 | refs/heads/master | 2020-12-24T19:13:11.340041 | 2013-03-03T05:33:29 | 2013-03-03T05:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,796 | hpp | mobi_headers.hpp | #pragma once
#define PALMDOC_DB_HEADER_LEN 78
#define PALMDOC_HEADER_LEN 16
#define MOBI_HEADER_LEN 232
#define COMPRESSION_NONE 1
#define COMPRESSION_PALM 2
#define COMPRESSION_HUFFDIC 17480
#define MOBI_TYPE "BOOKMOBI"
#include <cstdint>
#include <iostream>
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uin... |
694cd0667a0152b496cc75831af2f18c485abdee | 3209df75963925dc6cc7941b63119fb7f1c4e97f | /Headers/AvailabilityDependencies/FGSchematicPurchasedDependency.h | 592f64334fd4fad29829e11c22437db2700e4bc4 | [] | no_license | SatisGraphtory/SourceData | a06aff42b0da2156c0519e7c69093f3e1e7a83f5 | 7948e28a16ed600c4a9fae7873ef5ebbbbea6796 | refs/heads/master | 2023-08-18T09:27:14.186240 | 2021-04-20T18:38:54 | 2021-04-20T18:38:54 | 309,817,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | h | FGSchematicPurchasedDependency.h | // Copyright Coffee Stain Studios. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "AvailabilityDependencies/FGAvailabilityDependency.h"
#include "FGSchematicPurchasedDependency.generated.h"
/**
* Dependency that's met if we have purchased all the given schematics
*/
UCLASS( Blueprin... |
dc9061ee0913df00d2535fb1155ffa198725d7d3 | 7a6b852d4bff1dbbdc94d49f9f1735ea9d95d431 | /testfiles/c++/alot.cpp | 097d7d01d679bbf8285257dd0ad4d66ae4d5b22e | [
"MIT"
] | permissive | eoswald/hdb | d1d4f42b1621975373ebd103d9b847a3b2510ded | fb5987b72a81c204ea1300757a32d0657913622d | refs/heads/master | 2016-09-02T02:45:01.170443 | 2015-03-07T05:07:58 | 2015-03-07T05:07:58 | 26,691,585 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | cpp | alot.cpp | #include <iostream>
int main(int argc, char ** argv){
int i;
for(i = 0; i < 100000;++i){
std::cout << i << "\n";
}
}
|
a981f053c0a776f90677c87981ee7873f4b9b0e5 | aceaf048853cba0c0392ad089bea22f9e3528098 | /_tutorials/code/nano33-ble-sense-imu/nano33-ble-sense-imu.ino | 4f977bbec85312c9baef7fcafb8af9c298c7faca | [
"MIT"
] | permissive | hutscape/hutscape.github.io | c5b640bbfda21b9bc7260b5d2f6164c60ff9158a | 27c5d8a79d48025d3270fea704df7a5e5cb43f5d | refs/heads/master | 2023-02-13T04:05:12.235290 | 2023-02-01T05:37:53 | 2023-02-01T05:37:53 | 176,517,102 | 40 | 38 | MIT | 2021-07-15T07:02:01 | 2019-03-19T13:23:46 | C++ | UTF-8 | C++ | false | false | 647 | ino | nano33-ble-sense-imu.ino | #include <Arduino_LSM9DS1.h>
void setup() {
Serial.begin(9600);
while (!Serial) {}
Serial.println("Started");
if (!IMU.begin()) {
Serial.println("Failed to initialize IMU!");
while (1) {}
}
Serial.print("Accelerometer sample rate = ");
Serial.print(IMU.accelerationSampleRate());
Serial.printl... |
d51224d4704e0bdb91c0b257d013853c6b328073 | c81088d0eabc53ce4133a8efad0f510198c74bab | /C/Project2/10-7.cpp | 5559b64bef321120f9fcd647825bd8cd01cf5f59 | [] | no_license | alexmin777/Learning | b7429231bef792a868207917a363ba346d20df4d | c7efc2138dd78d9b0084f430d78472b3d2498295 | refs/heads/master | 2023-04-20T07:23:02.794232 | 2021-05-17T15:03:14 | 2021-05-17T15:03:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | cpp | 10-7.cpp | #include <stdio.h>
void copy_ptr(double source[][3], double target[][3], int index);
void show_array(double target[][3], int index);
int main(void)
{
double source[2][3] = { {1.1, 2.2, 3.3}, {4.4, 5.5, 6.6} };
double target[2][3];
copy_ptr(source, target, 2);
show_array(target, 2);
return 0;
}
void copy_ptr(d... |
7e9fd6c5a20c1e0f1ab2322eb98e3e18778a3785 | b4eb55446571ba02bc907640e0d153003b167e2f | /metrics-agent/src/service-guide.pb.cc | 152a7b568535e15f63b990515cf53c989c5b0488 | [] | no_license | Open-Monitor/dmon | 86209dc4fa484b60fdd917f09ba190d696eb84cd | 5f65581fc6223990edc8afca1220dbc4d794e67a | refs/heads/dev | 2023-01-22T03:02:11.994103 | 2019-11-22T23:08:10 | 2019-11-22T23:08:10 | 220,084,980 | 10 | 0 | null | 2023-01-06T00:06:22 | 2019-11-06T20:36:07 | C++ | UTF-8 | C++ | false | true | 80,608 | cc | service-guide.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: service-guide.proto
#include "service-guide.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite_in... |
7ddd435c54ab5fbe7c980ad9723bcc6215faae32 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_3459_squid-3.4.14.cpp | e10f9f126e4da46b85c1d8e0a2a22dd31c1f2b8f | [] | 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 | 1,125 | cpp | squid_repos_function_3459_squid-3.4.14.cpp | void
clientReplyContext::processReplyAccess ()
{
/* NP: this should probably soft-fail to a zero-sized-reply error ?? */
assert(reply);
/** Don't block our own responses or HTTP status messages */
if (http->logType == LOG_TCP_DENIED ||
http->logType == LOG_TCP_DENIED_REPLY ||
al... |
8cc34108af36bb9a912c6216d94552e2b3ee20dc | c3099f0394ff2abc937801e895e209779a07a0fc | /output/aK23U.cpp | 2691ab772f855cf18b13e633fe013665ab124e1c | [] | no_license | sehe/ideone_slurp | d9307b9591f63c531a454b9809e1c60cdd7d04b0 | 2936fda7aa5a49921e599f8fccc586047eb760fd | refs/heads/master | 2020-05-18T19:07:22.729233 | 2014-03-17T23:29:48 | 2014-03-17T23:29:48 | 17,847,331 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 757 | cpp | aK23U.cpp | // error: OK
// langId: 1
// langName: C++ 4.8.1
// langVersion: gcc-4.8.1
// time: 0
// date: 2012-02-03 13:48:46
// status: 0
// result: 11
// memory: 0
// signal: 0
// public: false
// ------------------------------------------------
namespace {
template <typename V>
/*static*/ int& operator=(int& i, const V... |
7bc4be936353093e293a9257e461a3e4bc729e37 | c9e7d8f381a2f59a33e547a9c20926f1d2932e83 | /packages/MC/geometry/RTK_Array.cc | 2f0aa2dccbb0bce7089050dd371d725ed1530f4c | [
"BSD-2-Clause"
] | permissive | GCZhang/Profugus | 173452239a3064543e6a9892ef71e61f485871ba | d4d8fe295a92a257b26b6082224226ca1edbff5d | refs/heads/master | 2021-05-02T17:02:46.477974 | 2019-02-17T02:11:13 | 2019-02-17T02:11:13 | 72,552,155 | 0 | 0 | BSD-2-Clause | 2019-02-17T02:11:14 | 2016-11-01T15:58:29 | C++ | UTF-8 | C++ | false | false | 5,942 | cc | RTK_Array.cc | //----------------------------------*-C++-*----------------------------------//
/*!
* \file MC/geometry/RTK_Array.cc
* \author Thomas M. Evans
* \date Tue Dec 21 12:46:26 2010
* \brief RTK_Array specializations on RTK_Cell.
* \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//--... |
c0280d6f1a334c1b62a8e831d364904b06dca673 | 7c096207ee3b9bfd5b95c012359b888fdae16d41 | /pizzaMaster/vln2/src/models/Employee.cpp | 3335a9c20170f34adc1e6830e5dff0c651bc4703 | [] | no_license | wallband/verklegt1-2017 | 3bebd54049585ab78297afd9c265b4c2efd342d0 | 401c6c9298aad08cc03343eab9aec016cdbc7182 | refs/heads/master | 2021-05-06T20:06:49.761292 | 2018-02-21T10:44:56 | 2018-02-21T10:44:56 | 112,264,965 | 1 | 0 | null | 2017-12-02T13:38:57 | 2017-11-28T00:28:03 | C++ | UTF-8 | C++ | false | false | 270 | cpp | Employee.cpp | #include "Employee.h"
Employee::Employee(){
}
Employee::Employee(string name, unsigned long int kt) {
this->name = name;
this->kt = kt;
}
string Employee::get_name() {
return this->name;
}
unsigned long int Employee::get_kt() {
return this->kt;
}
|
2381104daa96f2ff9465154d0379951168bab0ca | 5f7f0a51bfa1c73973b8d0e7e30e848552379ec4 | /aviutl-waifu2x-w2xc.cpp | f9f307ab97916fe807fa77abd9d7370c39bc87af | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | YSRKEN/aviutl-waifu2x-w2xc | 13d5d19537a52330d8291571ec90a85842ae5cac | 5935efab4c217b8ab9340120ae4c9ba694286af0 | refs/heads/master | 2019-01-19T06:52:54.542732 | 2015-11-15T14:12:03 | 2015-11-15T14:12:03 | 37,715,001 | 21 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 7,381 | cpp | aviutl-waifu2x-w2xc.cpp | /* プリプロセッサ */
#include <chrono>
#include <sstream>
#include <string>
#include <vector>
#include <windows.h>
#include "w2xconv.h"
#include "filter.h"
/* using宣言 */
using std::string;
using std::vector;
/* 定数宣言 */
const int kColors = 3;
// トラックバー
const int kTracks = 3;
TCHAR *track_name[] = { "noise", "scale", "block" ... |
53e53544650297cadf8c46bf4efb1e3345217ed0 | 2b29046a1539f942e9737eaeb36a8271d093ac16 | /1º/MP/examenesResueltos/junio2012/include/polilinea.h | e75a01722412b67b598ce3a9459f2f72335b036f | [] | no_license | JJavier98/Support | 283d0e47ae3af3f150c65ee7150b1e374a3142ad | ad28ace97b6c35132c43a3f0b512a893c278f7b6 | refs/heads/master | 2020-03-19T06:46:28.669531 | 2018-06-04T16:42:47 | 2018-06-04T16:42:47 | 136,053,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,988 | h | polilinea.h | #ifndef POLILINEA_H
#define POLILINEA_H
#include <stdexcept>
#include<iostream>
#include<fstream>
#include "punto.h"
using namespace std;
class Polilinea {
private:
// Vector con los puntos de la polilinea
Punto *p;
// Numero de puntos de la polilinea
int num;
/**
* Metodo privado para lib... |
2366164e4f4431ba5563849dda2ce34f3bd04906 | 29b15b91f886b45e53d353359ab4b7150baf14df | /DisplayLCD/LCD_contagem_regressiva/LCD_contagem_regressiva.ino | 6f44b7a1dc6ec29dc4ae0da948f5f9005c6fbf66 | [] | no_license | EdgarOlv/Arduino_Projects | cf5daea92f4d6d488dfcfdf4b4e2683c030b1664 | a98ae69870d4feaaaae31927d5bca03ae27bc179 | refs/heads/main | 2023-08-15T19:00:36.597678 | 2021-09-25T17:37:40 | 2021-09-25T17:37:40 | 340,031,468 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | ino | LCD_contagem_regressiva.ino |
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
//Escolhe onde posicionar-> lcd.setCursor(0, 0);
LiquidCrystal_I2C lcd(0x3f,16,2); // Criando um LCD de 16x2 no endereço 0x20
void setup()
{
lcd.init(); // Inicializando o LCD
lcd.backlight(); // Ligando o BackLight do LCD
}
void ... |
9edf07b152458bac4c901fd42fdcd3bcd2f1ae0f | c9c41adca80ad363396334f1be9d4e43c35a2edb | /src/common/flags.h | 3182fc5a9902f6e342ef34971eceb5e01ef03845 | [] | no_license | MattKackles/xbox360-emu | bcbace649045410c7875486ffb71a1c12b823503 | c021c9fb29ac07baf6888208e6b294d4281a0080 | refs/heads/master | 2021-01-09T20:17:25.530741 | 2014-05-13T00:03:14 | 2014-05-13T00:03:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | h | flags.h | #ifndef FLAGS_H
#define FLAGS_H
template<typename Enum>
class Flags
{
private:
int m_value;
public:
Flags() :
m_value(0)
{
}
Flags(Enum f) :
m_value(static_cast<int>(f))
{
}
Flags & operator&=(Flags f)
{
m_value &= f.m_value;
return *this;
}
Flags & operator... |
47a35f6304a4e3be4588efdb40cb8c8786022bbb | b58e15acf5387663241a85c6227a95551e363260 | /include/engine/component/renderer/ARenderer.hpp | e835960e8235fc65e257bee1530dd12306b3087e | [] | no_license | Kitsuku/RType | 37d6095160b8749ddfadb7577dcb0685f6203c6b | 67683467589a11222bc8909bbae8c4fcb50266d8 | refs/heads/master | 2020-04-07T20:12:51.422306 | 2019-01-22T06:23:38 | 2019-01-22T06:23:38 | 158,679,622 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,546 | hpp | ARenderer.hpp | //
// EPITECH PROJECT, 2018
// rtype
// File description:
// arenderer
//
#ifndef ARENDERER_HPP_
#define ARENDERER_HPP_
#include <string>
#include "Vector.hpp"
#include "Rect.hpp"
namespace Engine {
class ARenderer {
public:
// Ctor & Dtor
ARenderer(const std::string &texturePath,
const Rect &spriteRecta... |
4fbad57b450bdcd479f5d14c92fb76ed16c72544 | 8200be15d0eab149c117a269591b01d05a091010 | /rpg/mainwindow.cpp | 8b0fd27a7ed46584bce958ba741d0995e57059bd | [] | no_license | starsea202055/cl | fa150f4855d70934f2d59dfde2531fe98f495b79 | 1d8018b5dfe569a23a1d1a48cfe261584de7a22f | refs/heads/master | 2020-03-17T08:43:45.329332 | 2018-06-02T03:18:05 | 2018-06-02T03:18:05 | 133,447,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QPainter>
#include <QMessageBox>
#include <QPushButton>
#include <QHBoxLayout>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
_game.initWorld("");
}
void MainWi... |
1e910f20f1dc8da9034773f9a01ed6d7c04cdab6 | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /ACM-ICPC/Others/432.cpp | d8c04ecaeaef75834eeef10359bf58c2dba31054 | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 995 | cpp | 432.cpp | #include <cstdio>
using namespace std;
int x,y;
void line(int x1, int y1, int x2, int y2) {
printf("(%d,%d)(%d,%d)\n",x1,y1,x2,y2);
}
void left_inv_tri(int p) {
line(x>>p,0,x>>(p+1),y>>(p+1));
line(x>>(p+1),y>>(p+1),(x>>p)+(x>>(p+1)),y>>(p+1));
line((x>>p)+(x>>(p+1)),y>>(p+1),x>>p,0);
if (p>0) line(x>>p,0,... |
aabe520a7c326ebd5eae19b29c88e42dc39626ab | 66303524922c9fa6b4d3c2caf4b3c3ea5a0164e1 | /TestApp/Grammar.h | 192519b1438e353222d4672efa97fec5a431af49 | [] | no_license | martijnws/Compiler | d4258034d79037363dcc7207afc690a12b670e50 | 5fea9fd5392a044569693ae6c60330680bd0c729 | refs/heads/master | 2021-05-14T11:17:22.406757 | 2018-01-05T11:14:04 | 2018-01-05T11:14:04 | 116,375,684 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152 | h | Grammar.h | #pragma once
#include <Grammar/Grammar.h>
namespace mws { namespace arith {
enum class NonTerminal { S, E, F };
grammar::Grammar& getGrammar();
}}
|
599f5466f15fa816806dd64b6a480e5715487f24 | 6693c202f4aa960b05d7dfd0ac8e19a0d1199a16 | /Codeforces-Gym/101095 - 2016-2017 CT S03E03: Codeforces Trainings Season 3 Episode 3 - 2007-2008 ACM-ICPC, Central European Regional Contest 2007 (CERC 07)/Y.cpp | 254e0d4e35793482389932b222c85997ea998024 | [] | no_license | eliogovea/solutions_cp | 001cf73566ee819990065ea054e5f110d3187777 | 088e45dc48bfb4d06be8a03f4b38e9211a5039df | refs/heads/master | 2020-09-11T11:13:47.691359 | 2019-11-17T19:30:57 | 2019-11-17T19:30:57 | 222,045,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | Y.cpp | // 2016-2017 CT S03E03: Codeforces Trainings Season 3 Episode 3 - 2007-2008 ACM-ICPC, Central European Regional Contest 2007 (CERC 07)
// 101095Y
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000;
int p[MAXN];
int em[MAXN];
vector<int> p2[MAXN];
int sol[MAXN];
int main(){
ios::sync_with_stdio... |
cc8469c92f151a93193555c190b7a66eb954e788 | 3c55d6287d3888f2940656bb5e5dda3ab08103cb | /Main.cpp | 59c9484305dfdc7e9371108a561f3df2a049ce17 | [] | no_license | DanProff/Introduction | 4ded421fabf2ff4331934c5f38e95b143652c70f | e63dab7b984508aa03b14f5132c17b4b060470a2 | refs/heads/master | 2020-04-07T12:36:20.928506 | 2018-11-20T10:48:49 | 2018-11-20T10:48:49 | 158,374,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | cpp | Main.cpp | #include"Ferma.h"
Ferma::Ferma(string name,
string Location,
int Animal_amount,
double Vents_power,
int Shepherd_amount,
double Sq,
int Animal_capacity) {
newName = name;
newLocation = Location;
newAnimal_amount = Animal_amount;
newVents_power = Vents_power;
newShepherd_amount = Shepherd_amou... |
3cb74ebb76563a57c15689b0e4bc3a56cadd6bde | 19e259d0dca1390fc004ae82805e522d2ef2c33a | /Qt_v4/articleediteur.h | 57f00cea6efd809fc020fef51e08c0c45b23a8a0 | [] | no_license | jberthomier/LO21_Projet | e753ec3afdb91cab167fd5fbfc2d20343d859001 | c00732d337e8b0f12057b8c950792e8a81da49ee | refs/heads/master | 2020-12-30T13:19:53.231364 | 2017-06-15T21:09:12 | 2017-06-15T21:09:12 | 91,343,788 | 0 | 2 | null | 2017-06-15T13:30:38 | 2017-05-15T13:54:53 | C++ | UTF-8 | C++ | false | false | 986 | h | articleediteur.h | #ifndef ARTICLEEDITEUR_H
#define ARTICLEEDITEUR_H
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QTextEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QMessageBox>
#include <QObject>
#include "notemanager.h"
class ArticleEditeur : public QWidget
... |
c1f525aad72d4cc8619008bf08bfe0bff989edf7 | 895c9e22ca063119e5ddeeb99067b3089c190d31 | /Dynamic Programming/count.cpp | ab2654e00b75f60ff4a74fd18165a620e928dac4 | [] | no_license | shivamgoel008/Data-Structure-and-Algorithms | 5c543877c6201d89de5a5393d748fa27025282b1 | 82b4694a92f8383ae867b98f2e0f2e6bfbe862b1 | refs/heads/main | 2023-08-22T20:06:20.270832 | 2021-10-09T06:02:04 | 2021-10-09T06:02:04 | 352,412,307 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | count.cpp | #include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define ll long long
#define fo(i,n) for(i=0;i<n;i++)
#define set(a) memset(a,0,sizeof(a))
#define MOD 1000000007
#define test(t) ll t; cin>>t; while(t--)
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
... |
28feda9fdb3376064e50c169f43162b481c5c161 | 4140d51ba6891469294307d12f18f2ef8121534b | /Kernel/Include/driver.h | 1e0f8ece5834c1d73377b6220b302fc5c90a4c79 | [] | no_license | andreas-kleven/AndyOS | 8ff916c17c28dd0728de48b1041eca4e2945da5b | 9a1da06533700d8705f50c8f21622cabacbef0e3 | refs/heads/master | 2021-06-11T05:13:44.074799 | 2020-11-15T20:02:02 | 2020-11-15T20:02:02 | 128,439,100 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,959 | h | driver.h | #pragma once
#include <FS/file.h>
#include <errno.h>
#include <types.h>
#define MKDEV(major, minor) ((((major)&0xFFFF) << 16) | ((minor)&0xFFFF))
#define MAJOR_TTY 4
#define MAJOR_CDROM 11
#define MAJOR_HARDDISK 13
#define MAJOR_INPUT 13
#define MAJOR_SOUND 14
#define MINOR... |
58bd81edb804ca4eb49fa93e006c4a71e73f38ad | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/wget/new_hunk_3589.cpp | 7b7f55388b72cf1c50ccb9a67232a431728b0e29 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,007 | cpp | new_hunk_3589.cpp | /* Support for Robot Exclusion Standard (RES).
Copyright (C) 2001 Free Software Foundation, Inc.
This file is part of Wget.
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... |
f3ccc8466500cf383764684160d337aeb23f7a0e | b4d6ed88270d95ca64cbffc1126db18bc2ef2827 | /Homework 5/Homework 5/Source.cpp | 3e727329cb58cf5d07aa7e165baeb90e8d2cb315 | [] | no_license | ShaneNH/Homework5 | b597d566ec9dce5df4e652f152faa12b3a5f147e | 185efd21ad96665d6efbfaf6d861d29da44b1eac | refs/heads/master | 2020-06-01T16:29:41.107619 | 2014-06-11T23:08:31 | 2014-06-11T23:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,949 | cpp | Source.cpp | #include <iostream>
#include <string>
#include <vector>
#include <ctime>
using namespace std;
//ex05_01
template<typename A>
A linearSearch( A list[], A key, int arraySize);
//ex05_02
template<typename T>
bool isSorted(T list[], int size);
//ex05_03
template<typename T>
class Vector
{
public:
Vector();
void push_b... |
15994fe6ad0370831cb1016463b07214b1d772b0 | 210bd6c47465ba1e73c432909df37a9791133c5e | /UVA/132.cpp | 7f9bc25ecb25979f8051d57739610bd79f8426c9 | [] | no_license | engyebrahim/CompetitiveProgramming | a5458502da53f3b5d5f9fc0b057c36045c3b8e0d | 38379283f84007413a2a2b84dc9de2285e0e6e1e | refs/heads/master | 2021-01-11T15:12:17.245288 | 2018-10-10T06:49:50 | 2018-10-10T06:49:50 | 80,691,258 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | 132.cpp | #include <bits/stdc++.h>
using namespace std;
vector<pair<int,int> >v;
int n,p,idx;
void check(pair<int,int> p1,pair<int,int> p2)
{
int val;
for(int i=0;i<v.size();i++)
{
val=(p2.second - p1.second) * (v[i].first - p2.first) -
(p2.first - p1.first) * (v[i].second - p2.second);
... |
1aee695bf54fb78e0035a9a9cebe52c01c86004c | 998d4ce1054987f24562219bd6f79c37cbaa19c2 | /tc++/basic/uva11542.cpp | 9e3715bb4eee6f91c60a65043a084056d44454e9 | [] | no_license | tankche1/ACM-NOI | 0cedccd7f5fa53070c03cbc1845d5de06385f52b | 1cb3d1fc08493e62c5cb4396e0352abef65b93f8 | refs/heads/master | 2022-12-13T03:22:18.971576 | 2022-12-05T15:56:34 | 2022-12-05T15:56:34 | 98,779,042 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,498 | cpp | uva11542.cpp | # include<stdio.h>
# include<string.h>
# include<iostream>
# include<algorithm>
using namespace std;
const int maxn=510;
typedef bool matrix[510][510];
int prime[510],prime_cnt=0;
bool vis[510];
void get_prime(){
memset(vis,false,sizeof(vis));
for(int i=2;i<=500;i++)
if(!vis[i]){
for(int j=i*i;j<... |
b490bd134697408f008f2f5719157d6395269322 | 075392fba62d5fa92931d448c3bef9ab65c17ee3 | /OOP/Interfaces.cpp | 78325b3bf9fc658b1fe929ce71ee8c90f291164b | [] | no_license | Frankcs96/Learning-CPP | 2a0cfee5cfe79e3303f30926659254e6f6e3a810 | eb3fcd507ed04f0595c232916ea5dd18cff1fe3d | refs/heads/master | 2020-09-22T05:55:02.893078 | 2019-12-02T18:40:57 | 2019-12-02T18:40:57 | 225,075,886 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | cpp | Interfaces.cpp |
#include <iostream>
#include <string>
class Printable {
public:
virtual std::string getClassName() = 0; // INTERFACE you have to implement getClassName in every class with printable
};
class Entity : public Printable {
public:
virtual std::string getName() {
return "Entity";
}
std::string getClassNa... |
d3084908fdd748ae6281aefb2fc05f729004a754 | 501ab25fa68690556d90d528b0c8fb6ef5b0eeee | /Белый пояс/Неделя 2/3. Контейнер map/4. Автобусные остановки - 2/AutoStop_2.cpp | 4abe44db3a77a048a25831736ef3675f060b200c | [] | no_license | spectrdort/kurs_yandex | 2ec6badf4532eb2ae70a44c54bfafabe7f9f7407 | 3c2571720947f9b508bd577f8c4fd435cd984193 | refs/heads/master | 2023-06-09T14:09:08.869588 | 2021-06-15T19:55:38 | 2021-06-15T19:55:38 | 366,669,939 | 0 | 0 | null | 2021-06-15T19:55:39 | 2021-05-12T09:58:06 | C++ | UTF-8 | C++ | false | false | 711 | cpp | AutoStop_2.cpp | #include <map>
#include <vector>
#include <iostream>
#include <string>
int main()
{
int Q, n = 1;
std::map <std::vector<std::string>, int> bus;
std::map < std::vector<std::string>, int> :: iterator it = bus.begin();
std::vector<std::string> stops;
std::string stop;
std::cin >> Q;
for (int i = 0; i < Q; i++)
{... |
c53c38d9472be65f69f285e78e15a46692fd4275 | ac2a8ab6f2f808d6af0e4b387812b65491f6d2d0 | /TheRealFPamin/TheRealFPamin/Object.cpp | 51e5b7646637535facb6ba875363327cb93105cd | [] | no_license | pizzaismyname/BlocksDestroyer | cb24bbe181312328e154bf90010a6a8bef25b320 | 91b5bf455aef98392fc77a0ac33cd33e3f6fa5fc | refs/heads/master | 2020-04-07T04:52:44.217059 | 2018-12-17T23:03:09 | 2018-12-17T23:03:09 | 158,074,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | cpp | Object.cpp | #include "Object.h"
void Object::draw(int x, int y, int w, int h, vector<Object*>* allObj)
{
}
Object::Object(int x, int y, int w, int h, vector<Object*> *allObj)
: x(x), y(y), maxX(w), maxY(h), allObj(allObj)
{
r = 50;
g = 50;
b = 50;
vX = 1;
vY = 1;
dirX = 1;
dirY = 1;
}
Object::~Object()
{
}
void Obje... |
b3b483370797ab04b23afccc770e350543f390cc | e42fc3753093fad6d55a6149098eb47bd095f9d2 | /Source/Renderer.h | 13df287f7b5fb18154c3e913354c532bac7cf0dc | [] | no_license | mikemayne/ffc-import | b0232365d4fe1999dc82ceadbdc2b46f37d0c011 | 952a156ee0795478117ca9be459948d4f6399640 | refs/heads/master | 2022-02-27T19:18:57.247438 | 2019-08-19T21:24:49 | 2019-08-19T21:24:49 | 198,300,972 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,650 | h | Renderer.h | /*
==============================================================================
Renderer.h
Created: 20 Jun 2017 5:11:20pm
Author: Mike
==============================================================================
*/
#ifndef RENDERER_H_INCLUDED
#define RENDERER_H_INCLUDED
#include <JuceHeader.h>
... |
fb933f5b03174fc6dfecfb56ea5ea5b6c543c7d8 | 5863e9a742b367480d232df0ad9300ee2e20d41a | /Projects/BouncingCircles/BouncingCircles.cpp | 49723c8884db4aaeeb55f0e416430666172d1dfc | [] | no_license | Redbassist/Graphics-2 | d8a1812da7cfbb8610066ae5e4648fb81802f1a3 | d1d4f2346869470c641a5bb40ff4e224cbeb9f89 | refs/heads/master | 2021-01-22T02:34:14.401274 | 2014-11-03T14:50:00 | 2014-11-03T14:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,545 | cpp | BouncingCircles.cpp | ////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include "stdafx.h"
#ifdef _DEBUG
#pragma comment(lib,"sfml-graphics-d.lib")
#pragma comment(lib,"sfml-audio-d.lib")
#pragma comment(lib,"sfml-system-d.lib")
#pragma comment(lib,"sfml-win... |
3cec56d59e3cb09b8ace8dbb6115452b89faf429 | 17470cdc9f76974d98494ebcc56a9eb667706b87 | /code/generator/output/output.h | 8922c2da7d94fbb089f199a0bd2d15527ff2ca1b | [] | no_license | Electroshare/Ledcube | b11a55eddb3763fa81679c5af94ac40a5015065d | 22e9236edebb54c9040dca7ddb3957ec85f9b2d4 | refs/heads/master | 2020-05-04T02:53:09.281138 | 2019-04-01T20:59:36 | 2019-04-01T20:59:36 | 178,936,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | output.h | #ifndef OUTPUT_H
#define OUTPUT_H
#include "../cube.h"
enum OutputType
{
OUTPUT_GRAPHICS,
OUTPUT_NETWORK
};
class Output
{
private:
OutputType type;
protected:
bool running=false;
public:
Output(OutputType t){type = t;};
bool isRunning(){return running;}
virtual void outputFrame(Cube* c){};
virtu... |
9ee26ea0f989c939bd88d57a27e599e96ca42c34 | b46d198b4e64a482597b6d1ed599391599ac26f2 | /detectorEfficiency/TFotracSelector.cc | 4c749d3b8798d7563b009e86f53718e245b1ac41 | [] | no_license | pawelstrzempek/traking | 5dbe7c023d864274dd57f65f4f9fb6010ba26414 | 53190845ebdb57ea62e2e8bc91f7d1ec75510bff | refs/heads/master | 2021-01-10T05:26:23.722519 | 2016-02-15T11:50:05 | 2016-02-15T11:50:05 | 47,683,224 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,619 | cc | TFotracSelector.cc | #define TFotracSelector_cxx
#include "TFotracSelector.h"
#include <TH2.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <vector>
#include <iostream>
#include "entryHolder.cc"
/*
class entryHolder{
public:
Int_t s_globEvNum;
Int_t s_chNum;
Double_t s_ftTDC2;
Double_t s_T... |
938d9b780c2e50574eb89895eca8b991fc715644 | 69e23ffdd42eae8ef2b3ff1e7606d59522265c5d | /codeblocks/virtual-hecate/operation.cpp | 214e04e322daae251cd8ac0c6ae70613a5e39414 | [] | no_license | polakovicp/LuaCL | 4c35fedf149f4fe3018a0a4dc781b2ad8b57fca3 | 5e4981dd0faae20bc48b0796ff5bdb528e7beff0 | refs/heads/master | 2020-12-24T15:57:54.466606 | 2015-03-12T12:06:53 | 2015-03-12T12:06:53 | 1,168,470 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 784 | cpp | operation.cpp | #include "operation.hpp"
#include "disk.hpp"
namespace Hecate
{
int GetNextOperation(ifstream& ifs, OPERATION& op)
{
op.Type = READ;
ifs.read((char *)&op.Sector, sizeof(uint64_t) * 2);
if(ifs.gcount() != (sizeof(uint64_t) * 2))
{
if(ifs.eof() && (ifs.gcount() == 0))... |
1f83aec7c3a3b45491bea6653040c6025e2bbda4 | 5178ebecc4458b360b7593e31353ab18e519953e | /include/npstat/stat/lorpeBackground1D.hh | 6f88c8b6ea17a22606b36e0d2f337712e135fada | [] | no_license | KanZhang23/Tmass | 9ee2baff245a1842e3ceaaa04eb8f5fb923faea9 | 6cf430a7a8e717874298d99977cb50c8943bb1b9 | refs/heads/master | 2022-01-10T10:51:49.627777 | 2019-06-12T14:53:17 | 2019-06-12T14:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,016 | hh | lorpeBackground1D.hh | #ifndef NPSTAT_LORPEBACKGROUND1D_HH_
#define NPSTAT_LORPEBACKGROUND1D_HH_
/*!
// \file lorpeBackground1D.hh
//
// \brief A driver function for 1-d density estimation by LOrPE in a composite
// signal plus background model
//
// Author: I. Volobouev
//
// October 2013
*/
#include <cfloat>
#include "npstat/stat... |
1f15e33053f3cf600da490aa4f0ad25e4727c0e3 | 5bb9fd77d2a88a97e11cf782f821b563ea14bb6b | /samples/02_oop/2016/03_DynArray/dynarray.cpp | f4c0b3645e783dc4ebe10366b56dc70c2f875ec6 | [
"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 | 4,114 | cpp | dynarray.cpp | #include <iostream>
#include <assert.h>
using namespace std;
class IntArr
{
private:
int *arr;
//a.arr = NULL;
int size;
public:
//!
IntArr (const IntArr& other)
{
//this: IntArr*, other: const IntArr&
//this->arr = v.kjbvkjbvjkdfbvdjzbv
//this->size = sdcjknsdkcnkcjnsckjsncjkasncka
//other.arr = {... |
0ed9a5d1a4d09288ca44168104010eb622c0e034 | d37baff3e25a0dde11a7e67265597db374fe5d50 | /Hash_table/Списки.cpp | 29ba5706acbf24e6bf7ce3e0c466cfada6a42e6c | [] | no_license | pomahn/erunda2 | e3068617ac5f1599425217f44db7e2483155fdb3 | 28f06380720d967af2a719a0f710bca315e8683c | refs/heads/master | 2021-01-25T09:01:05.425097 | 2017-06-08T16:57:49 | 2017-06-08T16:57:49 | 93,772,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,947 | cpp | Списки.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include <ctype.h>
#include <assert.h>
#define TRASH 0xFEFEFEFE
#define CANARY 0xBADF00D
#define MAX_STR_LEN 100
#define HASH_TABLE_SIZE 10
typedef struct ListElem
{
double can1;
char info[MAX_STR_LEN];... |
744c20eb1de56153e34e5393e4579510740be2b8 | e1653317a806e19c2156a296322af595500927c7 | /square.h | 942b610174ebace74dfb1565eff5ab32a7d8d143 | [] | no_license | konradandrysiewicz/shapes_ut | b02bda15da9bdfab1cff06eaf6f40de0d653d93a | fa5df4e17a3f67d05a6d4250866c00371240cfa7 | refs/heads/master | 2021-01-23T00:25:20.586139 | 2017-05-30T08:24:39 | 2017-05-30T08:24:39 | 92,812,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | h | square.h | #ifndef _SQUARE_H__
#define _SQUARE_H__
class Square :public Shape
{
float a;
public:
Square(float=1);
~Square();
void loadData();
float getArea();
};
#endif
|
7602e493d7e3093ffd0c91ecff7c2fafd3f222b0 | 313e37460514c75e24d775c3876c715a4c8e3168 | /src/virt/Virt.cpp | c021ead33aee7c47954a747bbfc45af8e15d422d | [] | no_license | devin-dominguez/SND-Virt | 3a4df5a61bbc1788d5845b4a080eef7acf3a0bb2 | 4ebc012081257bf8a7e0f1ec92bda4ce34f0ce63 | refs/heads/master | 2020-12-25T19:03:29.147920 | 2015-05-19T01:55:01 | 2015-05-19T01:55:01 | 35,852,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,835 | cpp | Virt.cpp | #include "Virt.h"
void Virt::setup(ofPixels *heightMap) {
ofSetCircleResolution(180);
ofEnableSmoothing();
World::setup(heightMap);
dt = 0;
pt = ofGetElapsedTimef();
Settings::setup();
AudioSystem::setup("localhost", 6666);
Origin::container.push_back(new Origin());
Emitter::container.push_back(new WaveE... |
98c8308ea39e19e8f5847bd44fec35794fd1ce46 | e2cf639b474fc59d123e2ff3f5b173bd784fb3ff | /function_task8.cpp | 6fd6c0aab339044a91f9d174fc5d5a754f32d77e | [] | no_license | AMROZIA-MAZHAR/function_tasks | 5e124792fbb9dd02140bd72c2edc7e7afcf59924 | 809f2e6628480b7d4f54052a54889bc5c91b5319 | refs/heads/master | 2021-02-03T21:54:10.735884 | 2020-03-07T08:57:51 | 2020-03-07T08:57:51 | 243,552,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 377 | cpp | function_task8.cpp | /*Write a program to sort two numbers by using call by reference functions*/
#include<iostream>
using namespace std;
void swap(int &x,int &y);
void swap(int &x,int &y){
int temp;
temp=x;
x=y;
y=temp;
}
int main(){
int num1=5;
int num2=10;
swap(num1,num2);
cout<<"after swap num1="<<num1<<endl;
... |
534da00985b2ddd8f665547b8befde6870f2796b | 1067a36d5cae0cacfde3dcda345357865cfcce74 | /ConsoleApplication5/InputManager.h | 488c79e8c29806b5546f73a7222cbd57ec3142ed | [] | no_license | Vanislavsky/GameEngine | 771a67dea36181586627e83c194dbf382cf18e78 | 258ed4992633c7d0d6b5dffa385449051f8d4fd3 | refs/heads/master | 2023-06-03T19:42:59.349226 | 2021-07-03T08:14:09 | 2021-07-03T08:14:09 | 349,097,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | h | InputManager.h | #pragma once
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include"camera.h"
#include"Window.h"
#include"Components.h"
#include"Object.h"
class InputManager
{
public:
void setWindow(Window*);
void checkWindowEvents(std::vector<Object>& objects);
private:
Window* window;
}; |
870a1d02035a48893911ef36f374c6d5b4f39ce6 | f8083f1ac05ecb07b93c58af98eaf78e8eab9367 | /others/Code_Festival/2016/final/D.cpp | 7841d3402b3248b1da1ddfa0d05bf03a0f54664f | [] | no_license | itohdak/AtCoder | 4f42ccc7b2b7f71d0d51069bd86503ee0f4b3dbf | 9ee89bac3ced919b94096ffd7b644d3716569762 | refs/heads/master | 2021-06-24T14:42:54.529474 | 2020-10-16T18:41:27 | 2020-10-16T18:41:27 | 134,136,836 | 2 | 1 | null | 2020-02-07T12:45:10 | 2018-05-20T09:26:13 | C++ | UTF-8 | C++ | false | false | 1,572 | cpp | D.cpp | #include <bits/stdc++.h>
#include "/home/itohdak/AtCoder/000/print.hpp"
using namespace std;
#define ll long long
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(i,n) RREP(i,n-1,0)
#define REPL(i,m,n) for(ll i=(ll... |
e5d88c483261915e6a1d95a373e9b341650cd443 | 6c2961116fb4af485ec0f5806b6dca34c84eb27c | /paddle/fluid/framework/ir/embedding_eltwise_layernorm_fuse_pass.cc | d02688dfd13a91d04f317a4db58af7b3f22450bd | [
"Apache-2.0"
] | permissive | NHZlX/Paddle | 29e81479116e3766d50856cbd33c18f606580560 | 91a2627251ed8d989c45b15fea323572bc9c5544 | refs/heads/develop | 2020-12-30T16:33:15.983832 | 2020-03-18T05:52:11 | 2020-03-18T05:52:11 | 92,489,093 | 1 | 2 | Apache-2.0 | 2019-04-15T09:20:27 | 2017-05-26T08:24:43 | C++ | UTF-8 | C++ | false | false | 11,938 | cc | embedding_eltwise_layernorm_fuse_pass.cc | // Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
8ec2456f80dc526cbff5d07c3c8b1fe19ea0468e | deb09c2c51edd14cf5f27553d66643565b98a145 | /CVATools/Golf/PlayerRanking.h | 02e001d68393aa133ebed22070bd13acb2947ff9 | [] | no_license | humeaua/CVATools | 00edb01e83aff40bce21d789390009f1f7406eb1 | 405f7caaed597a63a63811d9fc3ff7759f4b1ba0 | refs/heads/master | 2020-06-01T00:54:56.046305 | 2015-07-19T19:12:08 | 2015-07-19T19:12:08 | 8,816,936 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | h | PlayerRanking.h | //
// PlayerRanking.h
// CVATools
//
// Created by Alexandre HUMEAU on 28/12/14.
//
//
#ifndef __CVATools__PlayerRanking__
#define __CVATools__PlayerRanking__
#include <iostream>
#include <vector>
#include "Date.h"
class PlayerRanking
{
protected:
std::vector<std::pair<Utilities::Date::MyDate, double> > m_res... |
93e8a640963650e83ebcafdff89030c6e3ecd4a7 | 20f2d3168bde918ea8a98c80d11e3f22aa647581 | /ratelframe/ratelframe/ThreadMangerPool.cpp | d16b28225f6b7d621bd9cb8b9c7ed34c203c28a4 | [] | no_license | lxb1226/Ratel | 28f93a88bd19c52aaac5ae57928a877e3ce0f3a5 | 3f3a5f76d70810dde1387e68ce45ace765dcc564 | refs/heads/main | 2023-09-06T01:07:12.132532 | 2021-11-21T08:53:03 | 2021-11-21T08:53:03 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,140 | cpp | ThreadMangerPool.cpp | /*
* by CallMeEngineer 2021/10/24
*/
#include "stdafx.h"
#include "ThreadMangerPool.h"
CThreadMangerPool::~CThreadMangerPool(void)
{
{
std::lock_guard<std::mutex> guard(threadMutex);
for (auto& iter : threadTaskList)
{
iter.reset();
}
threadTaskList.clear();
}
}
bool CThreadMangerPool::init(int threa... |
9452839f5185cebcc32dbf287821a2f3f3f2bc6d | d6cddc57bc535b69c933a5395e3c1f0e9ce5c8aa | /GCD.cpp | 3dacc9b742a8e852320d13b9118de3cb60e6b530 | [] | no_license | YashiBindal/100-C-C-programs | ef6c071d2055bcf40ffa061b47f3106bb2a5d331 | 4fc6c2b119b091503dcfb1366a6e303d1ead62e3 | refs/heads/master | 2020-06-24T19:57:26.548286 | 2019-07-26T19:27:25 | 2019-07-26T19:27:25 | 199,069,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | cpp | GCD.cpp | #include<iostream>
using namespace std;
int main()
{
int num1,num2;
cin>>num1>>num2;
if(num1==0)
cout<<"GCD is "<<num2;
if(num2==0)
cout<<"GCD is "<<num1;
if(num1==num2)
cout<<"GCD is "<<num1;
while(num1!=num2)
{
if(num1>num2)
num1=num1-num2;
else
num2=num2-num1;
}
cout<<"GCD is... |
3ecc9229fcaac09c939318eb44cd6207dbb6a462 | a7f7c9780605c879a5d46b03f421abc66414e11c | /静态贪吃蛇/Snack.h | c00dbde051525bb7a39d348cd7eaf8b6a2b33d59 | [] | no_license | hauqu/snack_twoDemo | b6742393d230fc981708edab062543b7de61b68a | 95641a48b68f07c353bf130a7df8840282a1511d | refs/heads/master | 2023-01-23T14:30:25.580308 | 2020-11-25T08:00:58 | 2020-11-25T08:00:58 | 314,965,769 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | h | Snack.h | #pragma once
#include<list>
using namespace std;
struct node
{
int x;
int y;
};
enum class Dir
{
Stop = 0, Up, Right, Down, Left
};
class Snack
{
public:
Snack(node head,int K,int w,int h);
list<node>s;
Dir headDir;
bool move();
node food;
int nodeSize;
int winW;
int winH;
}; |
1396dd3c41b133a5005ee0529ca9c66fa93c8542 | d5d94c992d0596080ba694c518dfdb58d3490847 | /0029/slow_answer.cpp | 8bfd7bc8a8e6e4aa2b3768f1518269198f79a244 | [] | no_license | calgagi/leetcode | 1bf24b750e44c2c893935983e5d88e0f071d9f2d | 431aba979d92e331f2f92a07eb80167a823a49bd | refs/heads/master | 2022-11-17T11:26:01.596496 | 2020-07-19T06:56:04 | 2020-07-19T06:56:04 | 276,207,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | cpp | slow_answer.cpp | class Solution {
public:
int divide(int dividend, int divisor) {
int r = 0;
while (dividend >= divisor) {
dividend -= divisor;
r++;
}
return r;
}
};
|
a155fe6c88763f3f07c9bf2fc0238a58f3501086 | 6188f1aaaf5508e046cde6da16b56feb3d5914bc | /CamFighter/Graphics/OGL/GuiCheckBox.cpp | 16895755e3d0da5789aebe6a4993c219dd770df9 | [] | no_license | dogtwelve/fighter3d | 7bb099f0dc396e8224c573743ee28c54cdd3d5a2 | c073194989bc1589e4aa665714c5511f001e6400 | refs/heads/master | 2021-04-30T15:58:11.300681 | 2011-06-27T18:51:30 | 2011-06-27T18:51:30 | 33,675,635 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,943 | cpp | GuiCheckBox.cpp | #include "GuiCheckBox.h"
#include "GuiManager.h"
using namespace Graphics::OGL;
void CGuiCheckBox::Zero()
{
OnCheckedChanged = ControlEvent(*this);
m_hBoxIcon = HTexture();
m_hTickIcon = HTexture();
m_pcLabel = 0;
m_nBoxX = m_nBoxY = m_nBoxWidth = m_nBoxHeight = 0;
m_nT... |
c82ba16f7ac98d2d88763a23529920bab5a661c9 | 10eccad146f4cfa83c2dde2c78e7859ccbf752f1 | /uitbc/src/gui/uirectcomponent.cpp | 311d114e7b2dab78a4d30a508628299be88d5b16 | [
"BSD-3-Clause"
] | permissive | highfestiva/life | 4b7098432efc46e8dae7bcede4eee39e090d2772 | b05b592502d72980ab55e13e84330b74a966f377 | refs/heads/master | 2020-05-25T15:45:46.557932 | 2019-06-07T11:29:30 | 2019-06-07T11:29:30 | 58,243,887 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,363 | cpp | uirectcomponent.cpp |
// Author: Jonas Byström
// Copyright (c) Pixel Doctrine
#include "pch.h"
#include "../../include/gui/uirectcomponent.h"
#include "../../include/gui/uidesktopwindow.h"
namespace uitbc {
RectComponent::RectComponent(Layout* layout):
Component(layout),
shaded_(false),
hollow_(true),
behave_solid_(false),
i... |
9bcc38580e5257a7366590c2d617d572568a90dd | e90ef07161745d7f3e4f8fe42d61522e74cd261a | /ObjectiveToPick.cpp | 7e10d71d4ddf63f695f8545cf8177d4a2de4cd51 | [] | no_license | javierdalma8588/MazeGame | 09dd9f10d1c346b079019dba842a46b1000acaa4 | a6f9062921c6fb63a588b20d0e993e26ed786b6e | refs/heads/master | 2020-12-07T00:59:43.577448 | 2020-01-13T15:50:31 | 2020-01-13T15:50:31 | 232,595,904 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,017 | cpp | ObjectiveToPick.cpp | #include "ObjectiveToPick.h"
#include "PlayerBase.h"
#include "Engine/World.h"
#include "Practica1GameModeBase.h"
void AObjectiveToPick::BeginPlay()
{
Super::BeginPlay();
OnActorBeginOverlap.AddDynamic(this, &AObjectiveToPick::OnOverlap);
}
void AObjectiveToPick::OnOverlap(AActor* me, AActor* other)
{
... |
79445e44ac1a9b5d737fa0b1dcd000d460005eda | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-events/include/aws/events/model/PutPartnerEventsResult.h | d8b41f96b60c2f58e2dc8d242fcca334a477fa25 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 4,315 | h | PutPartnerEventsResult.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/PutPartnerEve... |
0107f2d4669da08a91167ec308c2e3294e3f824f | 0934782cc900ef32616d3c5204bca05b2aa34032 | /SDK/RC_WBP_AsyncIcon_parameters.hpp | 66ef9f5acb47d62c4aca21b0a44e6ec518bbc542 | [] | no_license | igromanru/RogueCompany-SDK-9-24-2020 | da959376e5464e505486cf0df01fff71dde212cf | fcab8fd45cf256c6f521d94f295e2a76701c411d | refs/heads/master | 2022-12-18T05:30:30.039119 | 2020-09-25T01:12:25 | 2020-09-25T01:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,556 | hpp | RC_WBP_AsyncIcon_parameters.hpp | #pragma once
// RogueCompany (4.24) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function WBP_Asyn... |
4e1bd729e6b8e531665cc97d54ef79493b070f09 | 753637b77a611b2837ff1c9f4184baaca5853c42 | /Source/R6Copy/R6CopyGameModeBase.cpp | 4de4410fb9be29b8522c5668aacdf3e2beb417ec | [] | no_license | LorinczDaniel2000/R6Copy | 0216a2215c00ff4917cad4438976cb7bc285b060 | 5fcb32b6dbc0f3128db23b93e810cdb0c8d78219 | refs/heads/master | 2023-04-06T23:14:43.323858 | 2021-04-22T10:14:03 | 2021-04-22T10:14:03 | 360,338,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | cpp | R6CopyGameModeBase.cpp | // Copyright Epic Games, Inc. All Rights Reserved.
#include "Kismet/GameplayStatics.h"
#include "EnemyCharacter.h"
#include "R6CopyGameModeBase.h"
#include "Blueprint/UserWidget.h"
int32 AR6CopyGameModeBase::GetKillCount()
{
if (_KillCount >= 4)
{
if ( wWinScreen != nullptr )
{
m_WinScreen = CreateWidget<U... |
bbd3a4ba32c7712473bc7b49ec594df51a8b59a8 | d61e718eb470faef3f422280f825127729cac901 | /Template/Template of Other Teams/lbn/cpp/5.1.4.1.cpp | 297dc9bfb611d06f84073cebb6026cc50d1de14a | [] | no_license | sjtu-imperishable-night/code-library | 737e871ad5287fd52a596902b32f07ce56563a78 | 0818f507c76b534f9144ed9b64bc138c37b30c5e | refs/heads/master | 2020-06-24T15:43:25.051083 | 2020-04-27T11:43:26 | 2020-04-27T11:43:26 | 199,004,542 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | 5.1.4.1.cpp | LL inv(LL a,LL n){//求a关于模数n的逆元
LL d,x,y;
exgcd(a,n,x,y,d);//如果(a,n)=1有逆元
return d==1?(x+n)%n:-1;//如果x是负数对其调整
}
|
3266cc373e5e112ca9f00ac13a18af7407095fc2 | f68d644d293626104e53268ad8149995b84b7b40 | /stacks/infixtopostfix.cpp | 8eec76aebc2e6ca9b30c2a0a912d27292423e667 | [] | no_license | vinith-123/datastructures | 13c1d137c54eda65919e382abd4ac2061675b730 | ada25b4c6557d29781551c921f849de0d3922fa4 | refs/heads/master | 2022-12-24T20:36:44.073369 | 2020-09-29T15:57:31 | 2020-09-29T15:57:31 | 299,599,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | cpp | infixtopostfix.cpp | #include<iostream>
using namespace std;
struct stack{
int size;
int top;
char elements[50];
};
bool isfull(stack s)
{
if(s.top==s.size-1)
return true;
else
return false;
}
bool isempty(stack s)
{
if(s.top==-1)
return true;
else
return false;
}
void push(stack &s,char c)
{
if(isfull(s)... |
1f87397eea9a09b020c8aa54eb4af67d93b53b3b | 08573d388fa0699444988be9769cd1344fe0e3e9 | /core/Texture.h | 5647c38c96c445d1c9b6fee366ce22c51b01539c | [
"Apache-2.0"
] | permissive | JoeElMasry0213/D3D11Wrapper | 014a22656aee11a0ab9b0b1799ad48af75e53700 | c374c7ff6d0b92bb939cfadedf749716d05b4173 | refs/heads/master | 2023-03-17T05:02:01.236872 | 2020-08-13T13:12:18 | 2020-08-13T13:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,306 | h | Texture.h | #pragma once
#include <vector>
#include <cstdint>
#include <d3d11.h>
#include "Interfaces/Serialisable.h"
#if defined(CORE_D3D11)
#define PD3DCustomDevice D3D11CustomDevice*
#define PD3DSubResData D3D11_SUBRESOURCE_DATA*
#elif defined(CORE_D3D9)
#define PD3DCustomDevice D3D9CustomDevice*
#define PD3DSubResData void*
... |
f5ce9a235734a140706df58fb5402d9dd41982fc | 127534ea53afbc71a41309f83b1e483c97280c2d | /examples/RCPassthrough/RCPassthrough.ino | e34d0659f88e2d6d74482b6afe4d9bb1cd2b7f16 | [] | no_license | RoboSail/RoboSail_Hardware_Tests | 3b9f43f4e69acdac3a35e469226c69bee3449994 | a1c7b31d97f6b09b8392509a60db1673d6cbdcf5 | refs/heads/master | 2020-06-07T10:53:40.228318 | 2019-09-23T14:00:35 | 2019-09-23T14:00:35 | 193,005,818 | 1 | 2 | null | 2019-09-23T13:29:22 | 2019-06-21T00:52:13 | C++ | UTF-8 | C++ | false | false | 3,373 | ino | RCPassthrough.ino | /* RCPassthrough rev 9/21/2019
© 2014-2019 RoboSail
This program puts the Arduino micro-computer in the RC (Radio Control) system
It takes in the control signals coming in from the Receiver and
pass them back to the Rudder and Sail servo motors on the boat.
It also displays several values to the Serial Monitor:
- The... |
68597f7cc304e1b290f19a82ea0fd4649207a2cf | d11b2ca9129b74c54807a865ae7036a60a907d58 | /tests/gridgen/regular_grid/main.cpp | 1471ee29814a97d365ad6a4230c94c313eada5ae | [] | no_license | bollig/rbffd_gpu | 858469d6d2020f526041fcd749341c29cd56838e | 0c9383479ec0d1abbe9ad6faa791d58b5f8989ba | refs/heads/master | 2016-09-06T04:03:09.588524 | 2014-05-09T16:05:36 | 2014-05-09T16:05:36 | 3,287,068 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,965 | cpp | main.cpp |
#include <stdlib.h>
#include "utils/conf/projectsettings.h"
#include "grids/regulargrid.h"
using namespace std;
int main(int argc, char** argv) {
ProjectSettings* settings = new ProjectSettings(argc, argv);
int dim = settings->GetSettingAs<int>("DIMENSION", ProjectSettings::required);
int nx = sett... |
a6f03389744a19584098b67ff79d7cb9bddeb296 | 3c80665e5512edbd2d0cbef6db6846ef79f3cfe3 | /bubble.cpp | 805e56b5b5faa2208e97a3ab175329612b4d3556 | [] | no_license | d4nte-out/Trial | 3cc05af9d23962c1bf5ebb4dfe536634da891b62 | d947db5d5576718165e9faf20c13e3166e4b782a | refs/heads/main | 2023-04-14T01:35:20.454741 | 2021-04-27T20:37:28 | 2021-04-27T20:37:28 | 362,232,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | bubble.cpp | using namespace std;
#include<iostream>
int main()
{
int max;
cout<<"Enter the number of elements in the array\n";
cin>>max;
int arr[max];
cout<<"Enter the elements in the array\n";
for(int x=0;x<max;x++)
{
cin>>arr[x];
}// hello
for(int i=0;i<max-1;i++)
{
... |
a87b15dd9c3ed2d64311ffec5dd09062bd21591a | 813d9380b3fbf66a0d344937a6be52f408b54078 | /runtime/examples/HelloWorld/CompB.h | 114c8dbd1b5d95a93e66c37d47bf85ffbb252c3c | [] | no_license | SBU-BMI/region-templates | 6b63fab2809ac281e458053069d26782d04cd1e5 | ab311b70eaeee3353ae09e1b8ba694e29d4d982d | refs/heads/master | 2023-03-05T03:26:03.580106 | 2017-07-13T03:02:35 | 2017-07-13T03:02:35 | 35,566,013 | 5 | 6 | null | 2017-04-17T20:04:58 | 2015-05-13T18:10:24 | C++ | UTF-8 | C++ | false | false | 320 | h | CompB.h | /*
* CompB.h
*
* Created on: Feb 16, 2012
* Author: george
*/
#ifndef COMPB_H_
#define COMPB_H_
#include "PipelineComponentBase.h"
class CompB : public PipelineComponentBase {
private:
int b, c, k1, k2, aOut, bOut, cOut, dOut;
public:
CompB();
virtual ~CompB();
int run();
};
#endif /* COMPB_H_ */
|
0be357c0d9f9811d6f171083adc7a82d71982a06 | c945d1901ed99649432e553768d476b8e53cbcf2 | /computer_science/142-intro_to_computer_programming/Projects/Exam1/Exam1/Change.cpp | b51f2a5f436eac69e3ef42760f7cee73d41f3a16 | [] | no_license | misterpink14/byu_course_work | a0d0909efbc00862d380ba3b271293577ace8cb2 | 5cdd1c580971d0c304a57956543b20681a135f72 | refs/heads/master | 2021-06-19T00:05:30.820383 | 2017-04-30T20:05:25 | 2017-04-30T20:05:25 | 68,180,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,519 | cpp | Change.cpp | /*
Test 1 Menu Option: U.S. Dollars
INPUT 1 85
Burton Seppi Clement Child Tee-A
EXPECTED OUTPUT 1 1 1 1 1
ACTUAL OUTPUT SAME
________________________________________________________________________________
Test 2 Menu Option: U.S. Dollars
INPUT 2 85
Burton Seppi Cl... |
4219056a2b13783ead29be3f0b71cbf1148fa209 | edccbf5e1e7e9f7d10c905b696ee87f190aa7a8f | /hw7working2/Tag.h | 6cfc588e5584f42d828e8b10ab2c762126de6532 | [] | no_license | ayip10/post-reactions | d49184bf835b7a49ec4177f204aef80cdc5d17b1 | 97eb0b65d1df3880313c4f489d50751fbf05ea38 | refs/heads/master | 2022-11-30T17:29:10.008528 | 2020-07-24T07:00:21 | 2020-07-24T07:00:21 | 282,144,974 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | h | Tag.h |
#ifndef _TAG_H_
#define _TAG_H_
// Tag.h
#include "Core.h"
class Tag
{
private:
protected:
public:
int index;
std::string avatar_name;
std::string vsID;
std::string comment;
Tag(int arg_index, std::string arg_avatar_name, std::string arg_vsID, std::string arg_comment);
Json::Value * dumpJ();
};
#end... |
50d96787368fbdc7fca67a941008448f9a2e707f | 6b0ca4ece69cb52c30228395d8201137028605eb | /cpp/751-760/Set Intersection Size At Least Two.cpp | ca4b4f6259a4cef50971fff8f9779713fde692af | [
"MIT"
] | permissive | gzc/leetcode | d8245071199e1b6321856ba0ddbdef5acfb5b2ac | 1a604df1e86c9775b8db364bfb3a5462ed96e9d0 | refs/heads/master | 2022-02-04T00:12:19.448204 | 2022-01-30T03:08:14 | 2022-01-30T03:08:14 | 32,258,529 | 178 | 68 | MIT | 2021-03-28T16:50:18 | 2015-03-15T12:04:59 | C++ | UTF-8 | C++ | false | false | 1,175 | cpp | Set Intersection Size At Least Two.cpp | class Solution {
public:
int intersectionSizeTwo(vector<vector<int>>& intervals) {
auto comp = [](const vector<int>& p1, const vector<int>& p2)
{ return p1[1] < p2[1] || (p1[1] == p2[1] && p1[0] > p2[0]); };
sort(intervals.begin(), intervals.end(), comp);
int n = interv... |
549d96b5270409ee1b251fab3375ef033000f74e | 7df58f4fa2e46b4e0b80c1316b8af1de01d7a48c | /Epoll.h | 7879ca696c94f6c5f15043190c78dfb9e91180e3 | [] | no_license | wwxxxx/tinyhttp | e310dcfc177f65dbc1bc619c9328c5a1800f3cc6 | d4a61b9f217a43766003f8fabbe9436550010324 | refs/heads/master | 2020-03-25T08:42:58.210708 | 2018-08-05T16:18:26 | 2018-08-05T16:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,131 | h | Epoll.h | #ifndef EPOLL_H
#define EPOLL_H
#include "Handler.h"
#include <iostream>
#include <sys/epoll.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
class EventLoop;
class Epoll
{
public:
explicit Epoll(EventLoop *loop)
: own... |
73f945a4aae8dd6774aaddeecf7419e4f1815b93 | 81d4dfe5a51f7d68b0a1721d91135c1cd5fcdc27 | /C++/CBinaryTree/CBinaryTree/main.cpp | adfb5280ff475a5235eb27e4db4535b652a54da7 | [] | no_license | iluvdadong/BenchmarkInMultipleLanguages | 4eb26926973c7d7a649e4f2829f26ee4b95f4205 | 454470614611dd1fd1427352dc4ceaa0d603741e | refs/heads/master | 2021-01-02T09:22:18.758240 | 2017-07-23T18:55:54 | 2017-07-23T18:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | main.cpp | //
// main.cpp
// CBinaryTree
//
// Created by Sohn on 23/07/2017.
// Copyright © 2017 Sohn. All rights reserved.
//
#include <iostream>
#include "tree.hpp"
using namespace std;
int main(int argc, const char * argv[]) {
BinarySearchTree<int> bst;
function<int(int&, int&)> comparator = [](int& lh... |
d36c2dabd49ab030f046435231c82000cb70fdfc | 7bf27f48b59ba2f6e01ae26efc33965feb9a4d06 | /native/crash.h | 029c892b9a14c22f60082ea2d935662c450c95d1 | [
"Apache-2.0"
] | permissive | Alexandr2144/allocators | d8e7e1bd3211d3f3c5ddb68c923e0a5cee15b031 | 69b8788b4da0886b05234634da24b92780bdae42 | refs/heads/master | 2021-01-24T04:19:58.576655 | 2018-02-26T23:36:49 | 2018-02-26T23:36:49 | 122,931,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | h | crash.h | #pragma once
#ifndef NATIVE_CRASH_H
#define NATIVE_CRASH_H
#include <stdint.h>
#include "native/export.h"
#define M_CL Native::CL{ __FUNCTION__, __FILE__, __LINE__ }
namespace Native {
struct CL {
const char* function;
const char* file;
int line;
};
struct ICrashHandler {
virtual void onTrace(void* fPtr... |
88ae9f5c74f097c21cacc78e184729bfec008cb0 | cc9fc2d2ab96798598074fc89a86122cbbb00094 | /src/camera.cpp | afc2b6f81b43baca22980222b9892007976da847 | [
"MIT"
] | permissive | kvmanohar22/3DR | 23b5a7e5d920664497268b7326e5a3d641cfc882 | 5eaa28e577888ea39c78f5da82d01be544c10a94 | refs/heads/master | 2020-04-04T13:25:22.501679 | 2019-05-16T13:06:00 | 2019-05-16T13:06:00 | 155,961,196 | 3 | 0 | null | 2019-03-23T06:22:45 | 2018-11-03T07:37:33 | C++ | UTF-8 | C++ | false | false | 2,139 | cpp | camera.cpp | #include <opencv2/core/types.hpp>
#include <opencv2/imgproc.hpp>
#include <vikit/math_utils.h>
#include "camera.hpp"
namespace dr3 {
Pinhole::Pinhole(double width, double height,
double fx, double fy,
double cx, double cy,
double d0, double d1, double d2,
... |
358e2994ffbb54077b1811f11c05068a0e9147ed | dc798752496d85b057c1576ad1c0322f04be91eb | /main.cpp | 5042048d4ee293aa6138f7d93156ffd6e189df17 | [] | no_license | pointwiseproduct/2DCollision | b0b7ac4d9eece3fac823d5b00b400da59b103ed0 | aba0517c39b5f3d6ff43c3a11c8e9e6b05507f20 | refs/heads/master | 2021-01-18T17:47:03.633072 | 2017-03-31T22:12:04 | 2017-03-31T22:12:04 | 86,816,308 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 9,018 | cpp | main.cpp | #include "CollisionAPI.h" // 衝突判定API
#include "ColTrees.h" // 線形4分木ヘッダー
#include <cstdint>
#include <DxLib.h>
#include <windows.h>
using namespace std;
using namespace IKD;
///////////////////////////////////////////////
// グローバル変数群(数値を変えて遊べます)
////////////////
double g_Circle_Ref = 0.90; // 球同士の反発係数
doubl... |
907c8c6cac852df8cbd0fa05b62b635909c4af7d | 9ee4b9ec65cd58655de5e7cee249de4d71a32921 | /mc9808/mc9808.ino | f9757f4a2ad544d02d5194a8f7c2b702d5d99bb1 | [] | no_license | danielamorais/venturus4tech-arduino | 476caca1f7673122313b4cbdb82e74abcaa23b8f | 2015abb9093d5fdf3d40297534412d5dba9a0a8b | refs/heads/master | 2021-01-17T17:09:00.464851 | 2016-07-27T13:19:51 | 2016-07-27T13:19:51 | 64,216,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | ino | mc9808.ino | #include <Wire.h>
#include "Adafruit_MCP9808.h"
Adafruit_MCP9808 sensor = Adafruit_MCP9808();
void mostra_temperatura();
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
delay(2000);
Serial.println("Ligando Arduino...");
Serial.println();
if(!sensor.begin()){
Serial.pri... |
a1a4dce663330fca8f99ea428d73081ddd0b2e08 | e29e40c030b77a4cd34364116cda621007acafdc | /C++基础/map的输入输出.cpp | 69fc8ce0c8f44f4071964eaff4307f089214f7c6 | [] | no_license | echorap/mywork | 924ad71d412e0b3649b7c6d2ab84d4cfaaf60b99 | 969c1d9f9947deae3baae78fba5de671fa9040f5 | refs/heads/master | 2020-04-05T20:14:49.342531 | 2018-11-25T09:03:46 | 2018-11-25T09:03:46 | 157,171,288 | 0 | 0 | null | 2018-11-25T08:49:34 | 2018-11-12T07:11:52 | null | UTF-8 | C++ | false | false | 386 | cpp | map的输入输出.cpp | #include<iostream>
#include<map>
using namespace std;
typedef map<int, string> mymap;
typedef mymap::iterator itor;
int main()
{
mymap * map = new mymap();
int key;
string value;
while(cin>>key>>value)
{
map->insert(make_pair(key, value));
}
for(itor it=map->begin(); it!=map->end();++it)
cout<<"key: "<<it... |
0fcb29ecfb8d7f2a88675d4cd3bc01ac17b2061f | 6f8f369664875a9addef58401f9e78d99a2c4510 | /widgets/colorselection.h | 2f7246a0320bdd51846f0cf94d7b519d0622b960 | [] | no_license | Dearg9/graphics-editor | 32b4c4c98c40a892555ee63f0045278fb36cb93d | 0b7ebd60d591cbe6f2431d2f59a53558d0ee6a97 | refs/heads/master | 2021-06-01T03:49:09.092154 | 2016-05-04T20:16:21 | 2016-05-04T20:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 607 | h | colorselection.h | #ifndef COLORSELECTION_H
#define COLORSELECTION_H
#include <QWidget>
#include <QLabel>
#include <QPixmap>
#include <QMouseEvent>
#include <QPainter>
#include <QColor>
class ColorSelection : public QLabel
{
Q_OBJECT
public:
explicit ColorSelection(QColor color, QWidget *parent = 0);
~ColorSelection();
pr... |
1d645e5664af1eada455755a405047d2482d51bb | f124c86e49a22386661648abce7bf6e240db01de | /DS Project/DS Project/Events/ArrivalEvent.h | 8fd3b7159ef12ac0bcb424036b6bb9e3e7f909cf | [] | no_license | MohammedEl-sayedAhmed/Resturant-Managment-SystemUsing-CPP-DataStructure-Project | 140f7b0403018358a944f3c3699add1dcd3fee75 | 12886341149be805216a068a3d50253d0a0cff4b | refs/heads/master | 2020-12-20T20:50:12.053117 | 2020-09-03T01:33:15 | 2020-09-03T01:33:15 | 236,205,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 853 | h | ArrivalEvent.h | #pragma once
#include "Event.h"
#include "../Rest/Order.h"
//class for the arrival event
class ArrivalEvent: public Event // class arrival event is inherted from the base class event
{
//info about the order related to arrival event
ORD_TYPE orderType; // order type: normal, vegan, VIP of the new order ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.