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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37e30aad40dfcde9afbc1414ffe55d1bb5dbfe22 | c5e5fb80c36f7d9c7cb6f75791d5ac251e6621b6 | /projeto_final/Address.h | 698e1c0fa0217b3676e95abc55c31f5ffd8a2156 | [] | no_license | zemacedo99/FEUP-PROG | 5af242c313bb989c2f6c879cd58a5766434be6ab | 3d84bc6edd760afbd4e9f77e502d1cd3c29c181f | refs/heads/main | 2023-04-21T20:57:26.462373 | 2021-05-17T19:07:13 | 2021-05-17T19:07:13 | 368,257,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | h | Address.h | #pragma once
#include <iostream>
#include <string>
#include <vector>
#include <iomanip>
#include "defs.h"
using namespace std;
class Address {
private:
string street; // street name
unsigned short doorNumber; // doro number
string floor; // floor number ("-" if not applicable)
string postalCode; // postal code... |
bb13a899d20da1822715c9df8603da6f6633a930 | 1675a2040dccefb5816d0a42f9aad7d65814f16d | /Core/Headers/support.hpp | 702ecf2ecf6786df16ce5b57266175311b300646 | [
"MIT"
] | permissive | SonicwaveNL/Horror_Game_Project | 63f1c5618b1891912a074ce57b3bb13843c4a768 | 42a637f4638582aad4d9e923530e10fcbda0b805 | refs/heads/master | 2022-04-05T15:49:38.869679 | 2020-02-03T12:07:05 | 2020-02-03T12:07:05 | 233,560,017 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | hpp | support.hpp | #ifndef SUPPORT_HPP
#define SUPPORT_HPP
#include <SFML/Graphics.hpp>
#include <iostream>
//Defines the size of the tiles in the game.
#define PIXEL16 16
///@file
///\brief
/// inputType contains the types of input a user can use (for now only keyboard is implented).
enum class inputType { keyboard, controller };
//... |
09175449e40c1cb04e37162789605e1c3fb6fe1c | 5055fec053570b2e3d29f12ef01f74d6f0e0c1e4 | /C++/Single Number II.cpp | 76ae66f9bf5caa7540498796444b42d420d6b9aa | [] | no_license | kmather73/LeetCode | 395f7e930a999253949cd1399d160cb808c5549f | a20d2632342a508686a26efe930ee68d6bc4a561 | refs/heads/master | 2021-04-15T09:09:33.809620 | 2020-03-15T22:32:23 | 2020-03-15T22:32:23 | 35,895,372 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | cpp | Single Number II.cpp | class Solution {
public:
int singleNumber(vector<int>& nums) {
unordered_map<int,int> mp;
for(const int& num : nums) {
++mp[num];
}
for(const auto& x: mp){
if(x.second != 3) return x.first;
}
return 0;
}
};
|
23e4e4ea05026cd6db64f2ef5de062c0a98bdbca | f080a40fe93b20d9de93c75f2cb5b53b841a4668 | /NepsAcademy/Problemas/Facil/Montanha.cpp | 317b027a4380b43db0f5e25deaeb373751a1f6ce | [] | no_license | samueljrz/Competitive-Programing | a88e2a52b4640b7094dc979d1c3fd204e8de7f59 | 5de2655725e9beccfc5320b89334fd2d1b8adf19 | refs/heads/master | 2021-07-17T06:51:35.346238 | 2020-09-21T00:22:14 | 2020-09-21T00:22:14 | 214,507,466 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | Montanha.cpp | #include <bits/stdc++.h>
using namespace std;
int solve(int a, int b) {
return b<a;
}
int main() {
vector<int> aux;
int n, x;
cin >> n;
for(int i=0; i<n; i++) {
cin >> x;
aux.push_back(x);
}
sort(aux.begin(), aux.end(), solve);
if(aux[1] == aux[0]) {
cout << "S" << endl;
}else
cout << "N" << endl;
... |
8a34159e41c4244d4309c3bb592a1e09ee87c8c9 | 55c48947cd58be4492122de693118d2ef2fa44b7 | /shaggyAndDistances.cpp | 4a4d05c9f29f04b4f5c816dd5cd95e77806c3eda | [] | no_license | akshit-rohra-debug/ProblemSolving-DSA | 3c38a9ec520d7aa458de1946dbf61dfc3a97ecf4 | 88216a1c2ab17c450fdcac85d0009d5d28a47745 | refs/heads/main | 2023-07-17T02:41:41.656003 | 2021-09-02T16:43:02 | 2021-09-02T16:43:02 | 365,571,996 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | cpp | shaggyAndDistances.cpp | /*
* Shaggy has an array A consisting of N elements.
* We call a pair of distinct indices in that array as a
* special pair if elements at that index in the array are equal.
* Shaggy wants you to find a special pair such that distance
* between that pair is minimum. Distance between two indices is
* defined as |i-j|. I... |
701d34dbf1a04702ce9bad6f0b979731b7e260b2 | 20bf22f1c852f1ad1ac528b5469287d2603497bf | /cc.cpp | 7959ec7d78803535f726fb5353051784def681df | [] | no_license | Dwijesh522/Compiler_Design_Assns | bb797c5c85e6de828acd3423f6c2b1b870eb9e8d | 20760bbf8e3c8418a6fb4648f5d432f025a3f1a7 | refs/heads/master | 2023-02-18T11:01:51.041238 | 2021-01-21T06:34:19 | 2021-01-21T06:34:19 | 331,535,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,060 | cpp | cc.cpp | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "ast.hpp"
#include "c.tab.hpp"
#include <iostream>
using namespace ast;
using namespace std;
extern "C" int yylex();
int yyparse();
extern "C" FILE *yyin;
static void usage()
{
printf("Usage: cc <prog.c>\n");
}
int
main(int argc, char **argv)
{
... |
9679cad23ec0a25d26f95641b6cab4b3428812a3 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5640146288377856_1/C++/dongockhanh1997/A-large.cpp | aecf665a69c13e256981acdccd7fb6ecf263efb0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | A-large.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
assert(freopen("A-large-0.in", "r", stdin));
assert(freopen("A-large-0.out", "w", stdout));
int numTests; cin >> numTests;
for (int test = 0; test < numTests; ++test) {
int r; cin >> r;
int c; cin >> c;
int w; ... |
aca3fd9b8f502843b6e422f0b7b59c044a7c07f8 | 5428c2d8a5df241bf2dbdccc41aeef726e1a02fa | /Servidor/server_HiloBatalla.h | 2f0628a70d2255c3ca0f45930da152e685b28e6a | [] | no_license | tomasmussi/tatucarretarun | 10671201b2c94fc0d84cdf1d6496f1d62092d770 | 75e9ada7d4867d96dd600602db080b55ff6b5f96 | refs/heads/master | 2021-01-24T09:15:34.564344 | 2016-10-03T15:31:23 | 2016-10-03T15:31:23 | 69,884,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,051 | h | server_HiloBatalla.h | #ifndef __HILO_BATALLA_H__
#define __HILO_BATALLA_H__
#include "server_HiloManejadorCliente.h"
#include "common_Thread.h"
#include "server_Mensaje.h"
class HiloBatalla: public Thread
{
private:
/* Guarda la referencia al la lista de mensajes recibidos del
* administrador para devolverle el contro luego */
... |
f3069b0bf1021b930470a8f95e89d2738e66b117 | cc82779dd0816b61ad80ccf5f7f885ebfe8dbaa8 | /tag.h | 04518fa2c84c694ed864fc4df3ac90c390ea6d1f | [] | no_license | ringostarr80/tag2html | 2f055e75fffe1979a9312fdacfa7c53a1828ed4d | af73a8c8a2afa81096f3aa000699e2914a27ed94 | refs/heads/master | 2021-01-25T12:30:53.654736 | 2020-10-02T12:06:28 | 2020-10-02T12:06:28 | 7,920,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,430 | h | tag.h | /***************************************************************************
main.cpp - description
-------------------
program : tag2html
version : 0.2.0
begin : Mon Mär 3 22:34:16 CET 2003
copyright ... |
1da5c171da7e44cd24511fb2afef4a701c859b6d | c95937d631510bf5a18ad1c88ac59f2b68767e02 | /src/common/c_types_map.hpp | 06f7a477b821f64d539c7de6a1b5c6aaffb9c0b6 | [
"BSD-3-Clause",
"MIT",
"Intel",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | oneapi-src/oneDNN | 5cdaa8d5b82fc23058ffbf650eb2f050b16a9d08 | aef984b66360661b3116d9d1c1c9ca0cad66bf7f | refs/heads/master | 2023-09-05T22:08:47.214983 | 2023-08-09T07:55:23 | 2023-09-05T13:13:34 | 58,414,589 | 1,544 | 480 | Apache-2.0 | 2023-09-14T07:09:12 | 2016-05-09T23:26:42 | C++ | UTF-8 | C++ | false | false | 89,037 | hpp | c_types_map.hpp | /*******************************************************************************
* Copyright 2016-2023 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
dc25d54ac625f3a40e17ea490f67eb8abdaf2f8d | 4f64a5f1eea0243aef6a4190b666edc58e64b5f2 | /test/session_test.cpp | d6466b32edb18e6be5df594af5384d7823fc7c85 | [] | no_license | achimkrause/akss_cpp | c9c58d87c62c9f447c2236c02b96e853bd4f9803 | b8d19b963620e63780300be91a8fa3fa1d364f51 | refs/heads/master | 2021-01-21T04:40:01.566113 | 2016-07-18T13:17:00 | 2016-07-18T13:17:00 | 45,900,427 | 0 | 1 | null | 2015-11-16T17:36:22 | 2015-11-10T09:08:48 | C++ | UTF-8 | C++ | false | false | 1,700 | cpp | session_test.cpp | #include "gtest/gtest.h"
#include <string>
#include "common.h"
#include "../src/session.h"
TEST(SessionInit, Parse)
{
std::string TEST_DATA_PATH = TEST_DATA_DIR + "SessionInitParse/";
Session session(2, TEST_DATA_PATH + "ranks.dat",
TEST_DATA_PATH + "v_inclusions.dat",
TEST_D... |
66e6ef36f219abc7b031665465f016914b98d97f | 6ffa696613bb1f55c6c4c430d2091b104f3bfbea | /build-chat-Desktop_Qt_5_9_2_MinGW_32bit-Debug/ui_registerin.h | 4c170b7602c4385fd9a0f399b55468dfb2789aa1 | [] | no_license | depp609/chatting_room | e14932d38b7c40d294e61529c595fce57e716e92 | d085a690a83c0a739e278a6d130a799706b25be9 | refs/heads/master | 2020-09-25T02:49:39.119032 | 2019-12-15T02:55:20 | 2019-12-15T02:55:20 | 225,900,984 | 0 | 0 | null | 2019-12-15T02:55:22 | 2019-12-04T15:40:27 | C++ | UTF-8 | C++ | false | false | 3,003 | h | ui_registerin.h | /********************************************************************************
** Form generated from reading UI file 'registerin.ui'
**
** Created by: Qt User Interface Compiler version 5.9.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
**********************************... |
f7ce0d8747849d1603766fb919901ba11a55e39d | 312f19e486ffad0e1598bf84a2b59b742e1a4bdc | /Relays_ESP32.ino | 5823b11ea235e7aaf7c96e8f376e82138e3cd10f | [] | no_license | Aldofenix79/Embebidos | bd95640ff6f4423785e2eb3ce4e2a495c775f26a | b2cbc27bda0de8a50b3610161d9a8224caf88472 | refs/heads/main | 2023-09-06T03:15:55.326797 | 2021-11-22T22:52:33 | 2021-11-22T22:52:33 | 408,569,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | ino | Relays_ESP32.ino | int relay1 = 12;
int relay2 = 14;
void setup() {
pinMode(relay1, OUTPUT)
pinMode(relay2, OUTPUT);
}
void loop() {
digitalWrite(relay1, HIGH);
digitalWrite(relay2, LOW);
delay(1000);
digitalWrite(relay1, LOW);
digitalWrite(relay2, HIGH);
delay(1000);
}
|
80cfb54295bda8772ed664efdb31b0740478133d | 90819c0b63417a1f0508e4ff2419008fb68aca69 | /assignment4/main.cpp | 8ba7c00d5b5b9452b79361d041e9c5e7be1950e4 | [] | no_license | ArthurFirmino/icg | 0fd6cd655211811cb27fcd9882e9227f82c8d879 | 5a4ef5e74ab5bb42e064042cb85f8cf20fc36c12 | refs/heads/master | 2021-09-10T05:10:39.141269 | 2018-03-21T03:04:42 | 2018-03-21T03:04:42 | 115,828,798 | 11 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 8,643 | cpp | main.cpp | #include <OpenGP/GL/Application.h>
#include "OpenGP/GL/Eigen.h"
#include "loadTexture.h"
#include "noise.h"
using namespace OpenGP;
const int width=1280, height=720;
const char* skybox_vshader =
#include "skybox_vshader.glsl"
;
const char* skybox_fshader =
#include "skybox_fshader.glsl"
;
const char* terrain_vshade... |
170f7728771b0b70d43b17ff71434cdc16c2158c | c6ab9ca49bb6f0a9fc709460a5d0056b599a44eb | /lib/test/CodeGen.cpp | 3802bc9a6b97e97aa96746c528a99f9c9b2363b2 | [
"Apache-2.0"
] | permissive | bzcheeseman/tyr | 0bb07c93f6c44a219e0b4e7574a627e115df427a | 66cb174452fe01d1459e7cc8f325b4878c9a868d | refs/heads/master | 2020-03-23T03:49:04.102157 | 2019-05-02T10:04:23 | 2019-05-02T10:04:23 | 141,050,497 | 3 | 0 | Apache-2.0 | 2019-03-01T05:54:50 | 2018-07-15T18:50:46 | C++ | UTF-8 | C++ | false | false | 6,812 | cpp | CodeGen.cpp | //
// Created by Aman LaChapelle on 11/25/18.
//
// tyr
// Copyright (c) 2018 Aman LaChapelle
// Full license at tyr/LICENSE.txt
//
/*
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
... |
41b5c1d49fad0a1f040d501ec158f2658ce6c8e5 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/pchealth/sr/enumlogs/enumlogs.cpp | 66ea605718556ccf3b620571f64ab99320cee48c | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 10,716 | cpp | enumlogs.cpp | /******************************************************************************
*
* Copyright (c) 2000 Microsoft Corporation
*
* Module Name:
* changelog.cpp
*
* Abstract:
* CChangeLogEnum functions
*
* Revision History:
* Brijesh Krishnaswami (brijeshk) 03/17/2000
* created... |
000b0c508fcba23f2396abbd43da90b914dcbbcf | 35e28d7705773eed54345af4440700522c9d1863 | /src/collections/rasterband_pixels.cpp | 3303a260c0b5d1990137552b50505ad8fae093e9 | [
"Apache-2.0"
] | permissive | naturalatlas/node-gdal | 0ee3447861bf2d1abc48d4fbdbcf15aba5473a27 | c83e7858a9ec566cc91d65db74fd07b99789c0f0 | refs/heads/master | 2023-09-03T00:11:41.576937 | 2022-03-12T20:41:59 | 2022-03-12T20:41:59 | 19,504,824 | 522 | 122 | Apache-2.0 | 2022-06-04T20:03:43 | 2014-05-06T18:02:34 | C++ | UTF-8 | C++ | false | false | 12,848 | cpp | rasterband_pixels.cpp | #include "../gdal_common.hpp"
#include "../gdal_rasterband.hpp"
#include "rasterband_pixels.hpp"
#include "../utils/typed_array.hpp"
#include <sstream>
namespace node_gdal {
Nan::Persistent<FunctionTemplate> RasterBandPixels::constructor;
void RasterBandPixels::Initialize(Local<Object> target)
{
Nan::HandleScope s... |
9d6f8733601e194045206fcfa2e241780bd3d3df | 99b5244a05f92290f7f99109d9c6393f376a7bd1 | /Source/AveRenderer/AveRenderer/IAveLayerWithMaskImpl.h | f72c2d3185ea52fbc8a2419d6c64c74d55772734 | [] | no_license | AndreasVerhoeven/AveDesktopPainter | 0a3bc6b3a1b03e48990b1fe4db130467ecc7dcdc | e14a7a5927a1c7540591f5312f375759ffef0ec8 | refs/heads/master | 2020-12-24T15:32:34.661507 | 2015-02-21T14:32:31 | 2015-02-21T14:32:31 | 31,127,982 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,560 | h | IAveLayerWithMaskImpl.h | #pragma once
#include "IAveLayerImpl.h"
#include "ImageTexture.h"
template<typename T> class IAveLayerWithMaskImpl :
public IAveLayerImpl<T>
{
public:
CComPtr<IImageTexture> maskImageTexture;
STDMETHOD(GetPropertyType)(BSTR name, DWORD* pType)
{
if(NULL == name || NULL == pType)
return E_INVALIDARG;
*p... |
3688179ee3b5ce6bf52b4784c60a0732c811f0b9 | 0a5ad5900e88e4df2fa99f5a0281765b6e9298ed | /Source/gamejamue4/DeadlyMultiplyingSubstance.h | a91d60e855fdc09c8e6de8ba58a2b1ab81316877 | [] | no_license | LuGO0/UE4_Summer_GameJam | 91c74c0bc48d033b5ab96707dd2957a85548f20f | ea195c9dc37f2acffeddd9fd9e6d747792a212e8 | refs/heads/master | 2020-03-26T22:44:48.808258 | 2019-04-26T17:55:07 | 2019-04-26T17:55:07 | 145,484,075 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,139 | h | DeadlyMultiplyingSubstance.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include"Engine/World.h"
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "DeadlyMultiplyingSubstance.generated.h"
UCLASS()
class GAMEJAMUE4_API ADeadlyMultiplyingSubstance : public ACharacter
{
GENERAT... |
bf2660755caf24655fdb1165fd8796d306dd63f2 | 25acff66102cc03252e5232211f3b19d6502375b | /ray_tracing/header/pdf/light_pdf.h | 8056a98f14cf4e34c4cbe8c92dbccf8167cce438 | [] | no_license | zybao0/ray_tracing | 59eed8b180169f534e66cfac7be6bc881beacf0b | bff3a5a1e65f34758f519afba4e2ae34c54191c8 | refs/heads/master | 2020-12-15T19:50:27.135872 | 2020-04-21T12:30:07 | 2020-04-21T12:30:07 | 235,234,836 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | h | light_pdf.h | #pragma once
#include"../ray.h"
class light_pdf:public pdf
{
public:
// cosine_pdf(const vec_type &t);//默认生成的方向是绕z的但实际上我们要生成绕法向,所以要旋转
light_pdf(intersect *item,intersect *world);
virtual value_type value(const vec_type &origin,const vec_type &direction)const override;
virtual vec_type generate(const vec_type ... |
122ba389b18afdfef67aac975416d4e31421bcda | 7f597f759afc110477cf4779a9d3f0b1e6e4c096 | /DuggooEngine/src/graphics/render/renderer.cpp | 0919d0cc272bc670cc7282ec5074c7520b738f16 | [] | no_license | Zn0w/DuggooEngine | 52454fa08b10f5abd085e6b0774c85ef19a41c92 | 64fe037176f52d7c7f0ba872927271e00254b3ec | refs/heads/master | 2020-04-03T03:38:24.670435 | 2019-10-23T06:33:13 | 2019-10-23T06:33:13 | 154,991,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | cpp | renderer.cpp | #pragma once
#include "renderer.h"
#include <glad/glad.h>
namespace dg { namespace graphics {
void Clear(math::Vector4 clear_color)
{
glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w);
glClear(GL_COLOR_BUFFER_BIT);
}
void DrawIndexed(VertexArray* vertex_array)
{
glDrawElements(G... |
ff15c4eaa48aaa9782187a78a975d54fa11c2b28 | a461205b7fbab5b2b13088f2b428bab6f0c221a8 | /CF/dp/466C.cpp | 8f2be7811784d85d594e64f04f6147b22d86963b | [] | no_license | tjandbjzy/ACMcode | 5c6237247ae46fed27ea6a279f014ca027faca1d | 0826fd42b6c2c7842b71d2f1287e987d387e501b | refs/heads/master | 2020-05-21T19:27:53.033223 | 2017-08-03T15:46:13 | 2017-08-03T15:46:13 | 65,696,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,295 | cpp | 466C.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <queue>
#include <vector>
#include <cmath>
#include <cstdlib>
typedef long long ll;
const int MAXN = 500000 + 100;
ll s[MAXN];
int main(){
int n;
ll sum = 0;
std::cin >> n;
for(int i = 0; i < n; ++i){
std::c... |
903454b9881fe7e819a3001fac47d220784400c9 | 184e03d9b1139e74c71b29edb902dad0132cf227 | /练习代码/5.6计算e的值.cpp | 353d840037b66127603d0f47cd571f3c655a7a69 | [] | no_license | VestigesH/C | 95909de75327741d283826ba0f5529f457e93b73 | 38010ca250869cb3a7f271286f975ac6790614d8 | refs/heads/master | 2020-06-16T14:06:30.762105 | 2020-03-30T02:18:08 | 2020-03-30T02:18:08 | 195,602,542 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 251 | cpp | 5.6计算e的值.cpp | //编写一个程序,求e的值,当通项小于10的-7次方停止计算 e=1+1/1!+1/2!+1/3!+....+1/n!
#include <stdio.h>
int main()
{
int n=1;
double t=1,sum=1;
while((1.0/t)>=1e-7)
{
t*=n;
sum +=1.0/t;
n++;
}
printf("%lf",sum);
}
|
6a925f4fbcf13cc0afc07ebe17a019e22c4294a9 | e60ca08722245d732f86701cf28b581ac5eeb737 | /xbmc/windows/GUIWindowScreensaverDim.cpp | 2ebf5d7383d3506d836af5a60dbc345870c86e5b | [] | no_license | paulopina21/plxJukebox-11 | 6d915e60b3890ce01bc8a9e560342c982f32fbc7 | 193996ac99b99badab3a1d422806942afca2ad01 | refs/heads/master | 2020-04-09T13:31:35.220058 | 2013-02-06T17:31:23 | 2013-02-06T17:31:23 | 8,056,228 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,397 | cpp | GUIWindowScreensaverDim.cpp |
#include "GUIWindowScreensaverDim.h"
#include "guilib/GraphicContext.h"
#include "guilib/GUITexture.h"
#include "Application.h"
#include <climits>
CGUIWindowScreensaverDim::CGUIWindowScreensaverDim(void)
: CGUIDialog(97, "")
{
m_needsScaling = false;
m_dimLevel = 100.0f;
m_animations.push_back(CAnimation::... |
dc157160a27a74285df85d0245985fe9052446f1 | 372e6304caefd487412b4f786c3ba55483c37e5d | /_00_stepper_declaration_v4.0/_05_routines.ino | ec8140451218b5978479988a2956c849a5aba424 | [] | no_license | nikh1508/robocon-2K18 | 9290739d7de8fc8644c2245c88cb1e1b7dc5dfa1 | 5bee26eb27cb67e86cdf8923eb9c8a4f11764de3 | refs/heads/master | 2021-09-24T16:02:16.770863 | 2018-03-02T13:49:06 | 2018-03-02T13:49:06 | 108,727,136 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,914 | ino | _05_routines.ino | void global_initialize() {
for (i = 0; i < 3; i++) {
step[i].multiplier = 9;
step[i].divisor = 10;
filter[0].target = 2100;
filter[1].target = 2100;
filter[2].target = 2100;
step[i].set_brake = 400;
}
}
//////////////////////////////////
void routine_00(double step0,char ch,double alpha) {
... |
66e6ec917b0faeafe079a9c2e977d629a8356968 | 7d1038823be79a6deb11141a4da2c1c8177fff43 | /includes/Error/BadCmd.hpp | 3a8037694b310549a17eacbae542569a9cb2deee | [] | no_license | kermit987/plazza | 2b1467fd26a25b0d621e80846a5f1fa04ece4a52 | 516480cd791be4ba81a9509d480018ac74e87f7f | refs/heads/master | 2022-02-19T18:57:09.430622 | 2019-09-05T07:06:10 | 2019-09-05T07:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | hpp | BadCmd.hpp | //
// BadCmd.hpp for plazza in /home/le_l/Workspace/plazza
//
// Made by Victor Le
// Login <le_l@epitech.net>
//
// Started on Mon Apr 11 17:07:33 2016 Victor Le
// Last update Sun Apr 17 18:26:08 2016 Steven Loo Fat
//
#ifndef BADCMD_HPP_
# define BADCMD_HPP_
# include <exception>
# include <string>
/// Excepti... |
4682297ab9a197206e8a2bf8b22780a9d663b709 | b8cc97f67dfa3d3a6ff6fd9906a80d2dc4cd3f7e | /main.cpp | 496684b00f553922f44c78ddc11aa7375f3b3e35 | [] | no_license | Cosss7/Design-Patterns | f61325d62bbd6543d2bf809fe8d3c67149d2e3e1 | 724f5075726b09daa7fdc45f956a3f8169a4cb3e | refs/heads/master | 2021-06-24T03:31:16.168603 | 2017-08-20T17:33:55 | 2017-08-20T17:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | main.cpp | #include <iostream>
#include "AbstractFactory.h"
#include "Builder.h"
#include "FactoryMethod.h"
#include "Prototype.h"
#include "Singleton.h"
#include "Adapter.h"
#include "Bridge.h"
int main() {
//AbstractFactory::AbstractFactory();
//Builder::Builder();
//Factory::FactoryMethod();
//Prototype:... |
36b961c3622456301574e7877bf940c5604ec287 | 1154814c89c84b7e23ec1feed96be67491a5b7eb | /crest/extlibs/horn_registration/bak01/etkRegistration.hpp | 8d311b460848fc50d5e28f64824636c4f304841d | [] | no_license | linlut/View3dn | cc8e741a9a6967277a65a01793ddc61f7ac5ead9 | 4ba9a3b5414d95ac358d0e05f2834ebb451efedd | refs/heads/master | 2020-03-26T23:43:41.132808 | 2014-02-21T01:28:11 | 2014-02-21T01:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,823 | hpp | etkRegistration.hpp |
//File: etkRegistration.hpp
/*! \file etkRegistration.hpp
\brief 3D-3D point registration using the Horn method.
Click \htmlonly <a href="../Horn1987.pdf">here</a> \endhtmlonly
to read the original Horn paper: "Closed-form solution of
absolute orientation using unit quaternions" (1987)
*/
... |
6e7f4fdcb2e7007931fbc84da51017e23dbc85f9 | d5e391adccd2d1d093bc2f33b7693a0ee09ce156 | /src/version.cpp | ea0074aa35c3ad17544fd0c9bec2f7920f33ca91 | [] | no_license | privefl/libsassr | 74ab44565ee896548cea6de700e2a28d0d03736f | 4a430d929b44648eeec10192d006f9e4f9ff706b | refs/heads/master | 2020-03-23T09:24:00.415613 | 2018-08-27T15:00:22 | 2018-08-27T15:00:22 | 141,385,456 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 171 | cpp | version.cpp | #include "sass/version.h"
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
std::string version() {
return LIBSASS_LANGUAGE_VERSION;
}
/*** R
version()
*/
|
08e59d69a819d2723224ca128533853afd16ea78 | 3a78bbdd8622c76404ca07f664f7c1df137516bd | /mlp/pthread_testing_nn.cpp | 6538ba6f09b490b517b1ee132305ee7d10b2fbdf | [] | no_license | kde1203/zion_server | 7277afef9111c0265ceecc17f89c9d49684c71dc | 97c7dde83eb7609dd4a5a58d1be30bde510905ad | refs/heads/master | 2021-05-08T02:54:27.339597 | 2017-10-24T14:20:37 | 2017-10-24T14:20:37 | 108,091,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,913 | cpp | pthread_testing_nn.cpp | // Software: Testing Artificial Neural Network for MNIST database
// Author: Hy Truong Son
// Major: BSc. Computer Science
// Class: 2013 - 2016
// Institution: Eotvos Lorand University
// Email: sonpascal93@gmail.com
// Website: http://people.inf.elte.hu/hytruongson/
// Copyright 2015 (c). All rights reserved.
#inclu... |
ede0c586888f6533536f268d7ac6a9a8043ed422 | 3b03cc4858d548a9135545dff952b1baf7e7aec2 | /plugins/RDM/src/RDM/Schemes/B.hpp | 4d3d5e80a596e3460797867251d196d274162c80 | [] | no_license | uabti/coolfluid3 | 04364a468a18038e8a21ea4960bbcc033958c2b2 | 31c78a10a3b506212ae5367f1d47326bf35c5bd0 | refs/heads/master | 2021-01-15T19:34:41.090988 | 2013-04-29T12:26:31 | 2013-04-29T12:26:31 | 3,153,698 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,782 | hpp | B.hpp | // Copyright (C) 2010-2011 von Karman Institute for Fluid Dynamics, Belgium
//
// This software is distributed under the terms of the
// GNU Lesser General Public License version 3 (LGPLv3).
// See doc/lgpl.txt and doc/gpl.txt for the license text.
#ifndef cf3_RDM_Schemes_B_hpp
#define cf3_RDM_Schemes_B_hpp
#include ... |
dfa5081882c632b63a41ffad90846047a107ca44 | 6b62469cdc1b93e781e317ed91956c117eca9a2a | /sportvACTS/generator/main.cpp | 3690702f6b069e9ee8251e4e960cb20019ac6cc7 | [] | no_license | DanielEbert/LeanTestingBeispieleModified | 61a0364abc709c62fb131d255b4b7a803bfbae00 | 7457dab49fd00c06f33a6e7e87a60fb03cda7ab8 | refs/heads/main | 2023-01-31T19:02:43.762436 | 2020-12-19T00:43:02 | 2020-12-19T00:43:02 | 322,707,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | cpp | main.cpp | #include <fstream>
#include <iostream>
#include "../../util/split.h" // String mit Trennzeichen in einen Vector
// aufsplitten
int main() {
std::ifstream testdaten("testdaten.txt"); // Input
std::ofstream ergebnis("../dertest.cpp"); // Output
ergebnis << "// Von generator/gene... |
111a10ac10fbb7b0a344261a212ac259aa0f5a83 | 8dc10ba21bb2e2a15e3abdc134243f606e4478e4 | /Andre1_medidor-temperatura-umidade.ino | 177c519b39c344145a40d35306f19a3016ad2f7e | [] | no_license | Capolupo/arduino | fb0be5ddf9b1bbebb635586cbb42f933389c6979 | 0a3989fd659dd492e3594eed33b516130114b2c1 | refs/heads/master | 2021-04-15T13:35:34.870929 | 2018-03-23T18:19:35 | 2018-03-23T18:19:35 | 126,197,776 | 0 | 0 | null | 2018-03-23T18:19:36 | 2018-03-21T15:11:22 | C++ | UTF-8 | C++ | false | false | 3,025 | ino | Andre1_medidor-temperatura-umidade.ino | // --- Biblioteca Sensor Temperatura umidade DHT ---
#include <DHT.h>
//COPIADO PARA FUNCIONAR O DISPLAY
#include <Arduino.h>
#include <U8x8lib.h>
//#ifdef U8X8_HAVE_HW_SPI
//#include <SPI.h>
//#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
//COPIADO PARA FUNCIONAR O DISPLAY
// --- Definições Sensor Tempe... |
3113d07f7d3d4411223c3893370b31274a5287ef | 1dde79999832d2f88120c1c493bd053b95bd724d | /sim/iu.h | cefe19009f1115f9a643c0dbecffbe419779a85c | [] | no_license | HugoTian/MESI | d6358fae3e86e44e3004c766f5fa5ca981abf943 | 999386fe96ea032a9c03546a2dc12f453196733e | refs/heads/master | 2021-01-10T17:51:44.609228 | 2015-11-09T05:03:59 | 2015-11-09T05:03:59 | 44,552,324 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,204 | h | iu.h | // iu.h
// by Derek Chiou
// March 4, 2007
//
// STUDENTS: YOU ARE ALLOWED TO MODIFY THIS FILE, BUT YOU SHOULDN'T NEED TO MODIFY MUCH, IF ANYTHING.
// for 382N-10
#ifndef IU_H
#define IU_H
#include "types.h"
#include "my_fifo.h"
#include "cache.h"
#include "network.h"
struct directory_t {
bool dirty_p;
u... |
46db29316d09a5dab3bde7d352a18e8794edcc48 | 050c8a810d34fe125aecae582f9adfd0625356c6 | /RCPC2019/B/rebus.cpp | 458ce9b70a5c8fd500243155c4eefa6f704a741b | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,933 | cpp | rebus.cpp | #include <fstream>
#include <algorithm>
#include <cstring>
#include <queue>
using namespace std;
ifstream f("rebus.in");
ofstream g("rebus.out");
int tests;
int n;
string s[30];
string t;
class MaxFlowMinCost {
int n;
int cap[100][100];
int flux[100][100];
int cost[100][100];
vector<int> graph[1... |
d666cb7e9e76ba958e8d3e80d264dc7d4e9801f4 | f3170d6ac35b457fdecfc9ce2c6269c18121e06c | /cpress/cpress.hpp | d70ceb7d53c2a2d87fb61c64d6507b9efefa8958 | [] | no_license | j16out/rocketSIM | b7cb8a62eda345551b9b968a23ab455fc4d9579c | 3bb3ef549f294ca4c8abe11a97ce0f3d76d35c46 | refs/heads/master | 2020-04-17T20:54:54.591160 | 2016-09-29T17:05:14 | 2016-09-29T17:05:14 | 66,587,932 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 890 | hpp | cpress.hpp | #ifndef cpress_INCLUDED
#define cpress_INCLUDED
//g++ macro.cpp GPT.cpp mroot.cpp -Wall -o2 -o test1 `root-config --cflags --glibs` -std=c++0x -pthread
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <math... |
3126e57713cb21efa8260ae100f11f7be6a04f93 | 8ebcb0607d0329e857f2dc18b3343b0c80f2fd27 | /src/utility/Timer.h | 17ad03d734462d7860eb5960e96e063cf989bf2d | [] | no_license | fengyoung/metis | 54a0788368ea117ac330f0c4d8c0e7eb70e408e0 | a8e6981af1c71f7a368d83aedc3f7bbac8b46819 | refs/heads/master | 2020-05-21T18:05:49.110404 | 2017-04-06T06:45:07 | 2017-04-06T06:45:07 | 61,193,107 | 5 | 2 | null | 2016-09-09T09:52:00 | 2016-06-15T08:56:18 | C++ | UTF-8 | C++ | false | false | 1,698 | h | Timer.h | // Timer.h
//
// Definition of class Timer
//
// AUTHOR
// fengyoung (fengyoung82@sina.cn)
//
// HISTORY
// v1.0 2016-03-14
//
#ifndef _METIS_UTILITY_TIMER_H
#define _METIS_UTILITY_TIMER_H
#include <string>
#include <vector>
using namespace std;
#include <stdint.h>
#include <sys/time.h>
namespace metis_uti
{
... |
0ec2f54d986750283f866cc845f1ba310bebabd6 | 287aa942262c71ad98aceb695e8467326f27695f | /aio/AdlinkAIOStateMachine.cpp | e34e68fc55ea15fb6b36d63e1ca55c76cf671d6e | [] | no_license | catunlock/AdlinkIODS | 4f28474e353eb7b4244ae7a0f974f419c2ed1878 | 6c55daf9decb24a0ebed42b2c898553521644dfb | refs/heads/master | 2023-03-20T22:59:40.391718 | 2021-03-08T12:54:02 | 2021-03-08T12:54:02 | 341,200,686 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21,871 | cpp | AdlinkAIOStateMachine.cpp | static const char *RcsId = "$Header$";
//+=============================================================================
//
// file : AdlinkAIOStateMachine.cpp
//
// description : C++ source for the AdlinkAIO and its alowed.
// method for commands and attributes
//
// project : TANGO Device... |
0716e59c8737de7988d701cd32cd389717a17607 | 93231c191a95d486e110488cf1f8d2e78e7b5827 | /main.cpp | c00c4698d7f6f3ef85ee3ae9232aa40bfb1acf5c | [] | no_license | emanuele232/cbuffer | 29b4027766705e7a4e3762a1976e1aa1ba9b2346 | 581a0d49637355c130de3e159583338c0a7ab903 | refs/heads/master | 2021-09-06T22:23:17.882760 | 2018-02-12T13:52:04 | 2018-02-12T13:52:04 | 118,627,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,832 | cpp | main.cpp | #include "cbuffer.h"
#include <iostream>
#include <cassert>
#include <string>
#include <vector>
//funzioni e costrutti usati nel test di evaluate_if
bool even(int i){
if ((i % 2) == 0)
return true;
else
return false;
}
struct testei {
int primo;
std::string secondo;
};
bool is_true (tes... |
e501f4f8518a928c3728fea4474c9f8a59ef37f0 | d30537985a7060a669f0ac0f480e571c26daf70d | /Codeforces/C++/0705/705_A.cpp | 12cc1eaf10b5a605730e44ae041e7e4a37d0c617 | [] | no_license | Navidulhaque/competitive-programming-solutions | ab8e58d15bed071fdb6da1f5eccab1b5500383c9 | b6d204ac2b87c091709fdd52c7ff695e4b973156 | refs/heads/main | 2023-08-21T03:25:08.766083 | 2021-10-29T15:41:00 | 2021-10-29T15:41:00 | 419,967,083 | 0 | 0 | null | 2021-10-22T04:37:10 | 2021-10-22T04:37:10 | null | UTF-8 | C++ | false | false | 345 | cpp | 705_A.cpp | // https://codeforces.com/problemset/problem/705/A
#include <iostream>
using namespace std;
int main()
{
int n;
string s="",perm="";
cin>>n;
for(int i=1;i<n+1;i++)
{
if(i%2==1)
{
s+="I hate that ";
}
else
{
s+="I love that ";
}
}
for(int i=0;i<s.size()-5;i++)
{
perm+=s[i];
}
perm+="it";
... |
3dc1f4fee8498ebf85cb0d4b23c14059ebf64c06 | 51d74436a56eac68396681fca2680489bb151dcc | /src/lib/hash.hpp | 687a5b7b8967780424568f600009e195a59de1e4 | [
"MIT"
] | permissive | paulhuggett/digraph-hash | 960fefcc487a3727917a43b40b0849e9d66d0f43 | 00bba9f2319e6b214dfc36e618eb8af0d74ca5f8 | refs/heads/master | 2020-12-10T13:14:10.012119 | 2020-06-25T09:31:35 | 2020-06-25T09:36:01 | 233,604,094 | 0 | 1 | MIT | 2020-05-25T11:04:14 | 2020-01-13T13:39:10 | C++ | UTF-8 | C++ | false | false | 1,626 | hpp | hash.hpp | #ifndef HASH_HPP
#define HASH_HPP
#include <cstddef>
#include <cstdint>
#include <string>
#include "config.hpp"
class vertex;
// There is a choice of two hash functions: one that simply accumulates a string representation of
// its inputs (good for observing the code's behavior). A second implementation is based on... |
83b5dc9c2632d26f778588c20d2d3b8dac0f652d | 4106d790b043816baac3b52de672fee3fcb4b799 | /Week 3/hw3q3.cpp | 1f32b8b4b69bf6bc541a36fd12de94ccff2d57d6 | [] | no_license | jasonbasuil/NYU-Tandon-Bridge-2021 | d958e9a5426a51f0040187033c8ec65618cf644a | f32974f6ca08fb60b5479562995ca007e1b5256d | refs/heads/main | 2023-02-26T07:36:58.989908 | 2021-01-23T01:38:02 | 2021-01-23T01:38:02 | 326,904,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,051 | cpp | hw3q3.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
int a, b, c;
string predictedNumberOfSolutions;
double quadraticRoot;
double addQuadraticSolution, subQuadraticSolution;
cout << "Please enter the value of a: ";
cin >> a;
cout << "Please enter the value of b: ";
cin >> b;
cout ... |
f5be7586e0ef1f7996ed6aa46439d9191cb1eafc | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5708921029263360_0/C++/yosss/C.cpp | 387feff970fbb94a99a403d9843076195883259f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,131 | cpp | C.cpp | #include<vector>
#include<cmath>
#include<complex>
#include<iostream>
#include<stdio.h>
#include<string>
#include<stdlib.h>
#include<float.h>
#include<set>
#include<map>
#include<queue>
#include<math.h>
#include<algorithm>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef ... |
ff67d0e0858d8f561fff847ada70d659f43e8c62 | 449dbc9c7d26de12588ac27c4628ce75da0629c6 | /demo/cpp/pnp.cpp | f7860a76ee977f9b3925148952d7226f999947cc | [
"BSD-3-Clause"
] | permissive | berak/opencv_smallfry | fde87d2b9aa0698cfc3cdd2d3ac286e0da7e0509 | 2653a3b823499d1412c5a1d6dd977502d88d6590 | refs/heads/master | 2022-07-07T23:41:39.914141 | 2022-07-03T19:58:06 | 2022-07-03T19:58:06 | 12,484,192 | 61 | 28 | null | 2019-01-16T07:01:08 | 2013-08-30T10:39:40 | C | UTF-8 | C++ | false | false | 769 | cpp | pnp.cpp | #include "opencv2/opencv.hpp"
using namespace cv;
#include <iostream>
using namespace std;
int main()
{
cv::Mat_<float> obj_points(4,3); obj_points << 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0;
cv::Mat_<float> img_points(4,2); img_points << 700, 400, 700, 600, 900, 600, 900, 400;
cv::Mat_<float> cameraMatrix(3,... |
d5384f53e9cfca12d45bd3e2f84cb1539f34be60 | 9e409a0a4333c376059ef795a336ef580c1ded20 | /codeforces/contest/416/c/47684630.cpp | 57d7f27453e287d5740ee526237915ea57d84152 | [] | no_license | hobby10/problems-solution | 569d4f52f7fe5d437c91041f5f6b9247c70915b1 | f35fb13a34f32b789e707b854eb0778c2c3c8484 | refs/heads/master | 2023-06-14T13:21:38.941953 | 2021-07-07T13:42:04 | 2021-07-07T13:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | 47684630.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
vector<pair<pair<int, int>, int>> groups;
vector<pair<int, int>> res;
vector<pair<int, int>> ables;
bool visited[1001] = {};
// t {} []
int main() {
cout << fixed << setprecision(0);
ios::sync_with_stdio(false), cin.tie(nullptr), cout.ti... |
915797fb5814c7bb8966d0250c03955200758491 | e99c20155e9b08c7e7598a3f85ccaedbd127f632 | / sjtu-project-pipe/thirdparties/VTK.Net/src/Rendering/vtkWorldPointPickerDotNet.h | 47d59f0c2cc896051d4c8314334502246719c9b9 | [
"BSD-3-Clause"
] | permissive | unidevop/sjtu-project-pipe | 38f00462d501d9b1134ce736bdfbfe4f9d075e4a | 5a09f098db834d5276a2921d861ef549961decbe | refs/heads/master | 2020-05-16T21:32:47.772410 | 2012-03-19T01:24:14 | 2012-03-19T01:24:14 | 38,281,086 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,456 | h | vtkWorldPointPickerDotNet.h | #pragma once
// managed includes
#include "vtkAbstractPickerDotNet.h"
// native includes
using namespace System;
namespace vtk {
ref class vtkRenderer;
public ref class vtkWorldPointPicker : public vtkAbstractPicker
{
public:
// Did not wrap: static vtkWorldPointPicker *New ();
// const ... |
76b2088fca868e31859354bb2833bb7d5350d5df | ec44dc426d479eec210cf968c62f51710ebb5b5c | /4 算法初步/4.4 贪心/D Repair the Wall.cpp | b6757a1b03dacb7ea4f72fc5034cdcce7ceeda30 | [] | no_license | Madness-D/CodeUp | be3cb65ec0460f237cfb2ccae2d8e9c6d3bdc21e | 821bafa247abf5c3a04d52839c2c83589bdfeb1b | refs/heads/main | 2023-08-18T00:32:03.568027 | 2021-10-10T12:34:21 | 2021-10-10T12:34:21 | 401,964,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | D Repair the Wall.cpp | /*
输入
整数 L 裂纹长度 N 木块 数
N个整数 木块的长度
输出
需要的木块数
或者impossible
*/
#include<iostream>
#include<algorithm>
using namespace std;
const int MaxN=610;
int a[MaxN];
bool cmp(int a,int b){
return a>b;
}
int main(){
int L,N;
while(cin>>L>>N && L){
int sum=0;
int ... |
19d4fa64816a3ee0e23b1cf139851d569550b97d | a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e | /leetcode/1-1000/696-count-binary-substrings.cpp | 9c71bf76ee2ed1c87a55ae27ebd93625fb4301b4 | [
"Apache-2.0"
] | permissive | tangjz/acm-icpc | 45764d717611d545976309f10bebf79c81182b57 | f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d | refs/heads/master | 2023-04-07T10:23:07.075717 | 2022-12-24T15:30:19 | 2022-12-26T06:22:53 | 13,367,317 | 53 | 20 | Apache-2.0 | 2022-12-26T06:22:54 | 2013-10-06T18:57:09 | C++ | UTF-8 | C++ | false | false | 300 | cpp | 696-count-binary-substrings.cpp | class Solution {
public:
int countBinarySubstrings(string s) {
int ans = 0, n = s.size(), las = 0;
for(int i = 0, j; i < n; ) {
for(j = i; i < n && s[j] == s[i]; ++i);
ans += min(las, i - j);
las = i - j;
}
return ans;
}
};
|
9cc431884b08415fc26abb72992806ab7145acd9 | f9b3ba77ae4d6889cb942d3011121e1fe6a1bcd6 | /5.14.cpp | f4c091ac9433a0c837e9d79b8fa7a0abf1334996 | [] | no_license | ttwang0303/C-plus-Primer | d6865f44fe2d9117e94860dd25d1285ee3773dae | 42a7017513a967cfe8f06738b4a9cc9ef664a802 | refs/heads/master | 2021-05-10T08:26:00.544594 | 2018-02-01T07:51:41 | 2018-02-01T07:51:41 | 118,889,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,998 | cpp | 5.14.cpp | /*题目要求:编写一段程序,从标准输入中读取若干string对象并查找连续重复出现的单词.所谓连续重复
出现的意思是:一个单词后面紧跟着这个单词本身.要求记录连续重复出现的最大次数以及对
应的单词.如果这样的单词存在,输出重复出现的最大次数;如果不存在,输出一条信息说明
任何单词都没有连续出现过.例如,输入的是: how now now now brown cow cow
那么输出应该表明单词now连续出现了3次*/
/*解题思路:使用while循环遍历用户输入的每一个字符串,根据当前字符串与上一个字符串是否相等决定
如何更新各个变量的状态。如果相等,判断当前字... |
b323dac91377e57985ff4cfd83215eb6a6680d54 | 75fa4c0d599215b15107c729428891e2a01a29fe | /133/main.cpp | 5780deaaf8a48c74c2d917684a1352d1a1baa71c | [] | no_license | richardcypher/leetcode | db577631415499a63044c1efe9ddfc4197157c85 | cfedb8d713c4770b24b23a09cfdebc043d74a838 | refs/heads/master | 2021-01-17T11:21:02.689077 | 2016-04-10T10:23:16 | 2016-04-10T10:23:16 | 34,598,465 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <map>
using namespace std;
struct UndirectedGraphNode {
int label;
vector<UndirectedGraphNode *> neighbors;
UndirectedGraphNode(int x) : label(x) {};
};
map<int, UndirectedGraphNode*> clone;
UndirectedGraphNode *cloneGraph(UndirectedGraphNod... |
1ca071903aa64fcfa467e775794850e35bc8d4f9 | 6e9e26c7521a0f825eb6208d637f93ee163dc39c | /PathFind/Grid.cpp | e64f223402b5ddd12cee6c24743bda215123aa50 | [] | no_license | rombourcier/AstarCpp_With_Preprocessor_Fibonnacci_WithPreprocessor | 86b8db9572bcd5a715d8db151673e174e4933aed | 2d752462e056449ddcd8455e092d502d91107519 | refs/heads/main | 2023-03-23T13:00:43.268412 | 2021-03-24T09:38:42 | 2021-03-24T09:38:42 | 348,374,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,086 | cpp | Grid.cpp | #include "Grid.h"
void Grid::ClearGrid()
{
while (Nodes.size() > 0)
{
Node* temps = Nodes[Nodes.size() -1];
Nodes.pop_back();
free(temps);
}
}
void Grid::InitNeighbours()
{
for (int i = 0; i < m_Width * m_Height; ++i)
{
bool canRight = i % m_Width != m_Width - 1;
bool canLeft = i % m_Width != 0;
bool... |
a283b0ea2186018ef1d9d3bcefa8e1825ad515f1 | 41073cb6cb646503113db91a96d6a8db818ea409 | /language_categorize.cpp | 6d0cbf082b6fbdd0972ccbdc2035ee716ca17a6e | [] | no_license | Xangis/wbsrch | 824a881e6455ac9e552c7826f414d4b8701bcc3d | f95fb65e54fce29e9d2157f66ce79c7f4da91639 | refs/heads/master | 2023-06-28T23:53:06.365752 | 2021-07-26T18:43:27 | 2021-07-26T18:43:27 | 52,846,758 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,756 | cpp | language_categorize.cpp | // Requires package libpqxx-dev.
//
// Build: g++ -std=c++11 -o language_categorize language_categorize.cpp -l pqxx
//
// Builds a list of all of the domains that have URLs ni the database and
// no language set for them.
#include <iostream>
#include <sstream>
#include <string>
#include <list>
#include <pqxx/pqxx>
usi... |
6e2afa7dfa80389d3b037502e993f2b8a19c50a7 | f9b45fd409384de3c69d68c62c0f21d9196e6927 | /Felix/ManagerViewQCBrowse_test.cpp | 636745c2253da7d30301f306b7d63aad394788e7 | [
"MIT"
] | permissive | ultimatezen/felix | 04799eb666b54e2eeea961dc983cf3721f5182de | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | refs/heads/master | 2020-04-08T14:21:02.872525 | 2016-02-16T01:18:11 | 2016-02-16T01:18:11 | 159,433,144 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | ManagerViewQCBrowse_test.cpp | #include "stdafx.h"
#include "ManagerViewQCBrowse.h"
#ifdef UNIT_TEST
#include <boost/test/unit_test.hpp>
#include "felix_model_fake.h"
#include "manager_window_listener_fake.h"
#include "view_interface_fake.h"
BOOST_AUTO_TEST_SUITE( TestManagerViewQCBrowse )
using namespace mem_engine ;
using namespac... |
e437c0dc749a9d1200152fdf3732f59d2360689f | d2add169afaff80fd1f2fcd79179d3cd63ad597b | /public_html/asset/submission_files/8309276446451a9aa47d45dbb2d62eb8.cpp | 482ddbd69ceeff9969c4559cf0632941b81ff9c7 | [
"MIT"
] | permissive | zyxave/baba | 60e3063cdb2fcf37943ad4e20c718f460ef965d5 | 7287a1b421a3503657986e0a13c9c4a02615dea5 | refs/heads/master | 2020-03-20T05:52:01.062398 | 2018-06-13T14:47:15 | 2018-06-13T14:47:15 | 136,165,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | 8309276446451a9aa47d45dbb2d62eb8.cpp | #include<bits/stdc++.h>
using namespace std;
int coin,a,b,t;
int main ()
{
cin>>t;
while(t--)
{
cin>>a>>b;
a-=b;
coin=0;
if(a/100>0)
{
coin+=a/100;
a%=100;
}
if(a/20>0)
{
coin+=a/20;
a%=20;
}
if(a/5>0)
{
coin+=a/5;
a%=5;
}
coin+=a;
cout<<coin<<endl;
}
}
|
4576c3e9a4875e603a18fd868f98370cd72f5b4b | feff5dadc85629c0947abf87a79f86ace8c84539 | /codeforces/edu81/D.cpp | b153155b18ac1d66afecfa1653869c4e88e24dcb | [] | no_license | Redleaf23477/ojcodes | af7582d9de8619509fa4ffa5338b2a59d9176608 | 7ee3053a88a78f74764bc473b3bd4887ceac6734 | refs/heads/master | 2023-08-13T22:34:58.000532 | 2023-08-10T15:54:05 | 2023-08-10T15:54:05 | 107,507,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | cpp | D.cpp | // by redleaf23477
#include <bits/stdc++.h>
#define endl '\n'
#define var(x) "[" << #x << "=" << x << "]"
using namespace std;
using ll = long long int;
ll a, m;
void init();
void process();
int main()
{
ios::sync_with_stdio(false); cin.tie(0);
int T; cin >> T;
while(T--)
{
init();
... |
fa873b81f57f9959d6ffa3b9b2b2766ec8fef937 | 8d7d0fc1807ae22a05064d6d84b5cd7a8eaa8ce5 | /tiny_apps_bot/viber_packet_handler.cpp | 2cfaa78338cda747b6226c5478b4feff6552473b | [] | no_license | thormotor/tinyAppsBot | 10a3b08ef65b3739d153dfbdf699b510e045d382 | f2dee01ea6ac7502dab4b8d71e73f769c8891685 | refs/heads/master | 2020-09-30T17:00:20.584499 | 2019-12-20T13:33:33 | 2019-12-20T13:33:33 | 227,330,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,579 | cpp | viber_packet_handler.cpp | #include "viber_packet_handler.h"
#include "main_config.h"
#include "logger.h"
namespace handlers {
namespace http {
using boost::property_tree::ptree;
ViberPacketHandler::ViberPacketHandler(IHandlersFactory* factory_ptr)
: BasePacketHandler(factory_ptr),
webhook_comparison_string_(MainConfig::g... |
1561728f66c28c9c4f33e32057c9154ff434fcd8 | 3193fab36a50300d58d8ef5c8a5f19257573efcc | /Session1/307_Range_Sum_Query-Mutable.cpp | d4401fad8508a473fdcaf20eb095dba36e2458a0 | [] | no_license | truthspy/LeetCode | bf04e5e5b6bb872d781ea37f2985ef1561a393b3 | 3c1ac54a10d7cdc42ebdffad2b761c552cb93acb | refs/heads/master | 2021-01-20T18:24:46.914617 | 2016-10-23T10:53:39 | 2016-10-23T10:53:39 | 48,662,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,313 | cpp | 307_Range_Sum_Query-Mutable.cpp | /**
* Method1: from discuss
* TODO
* Binary Indexed Tree 树状数组
* TODO
* 还可以用Segment Tree,没看
*/
class NumArray {
public:
NumArray(vector<int> &nums) {
}
void update(int i, int val) {
}
int sumRange(int i, int j) {
}
};
/**
* Method2:可AC,但是比较慢
*/
/*
class NumArr... |
acc4b0e587987c8c9e8d5d0947706e6e8f073f9a | b0388953e18c67f92095a6ae835e68a2f694713a | /Test_11_24/Test_11_24/Test.cpp | 0afd210d04b81f76d32d24b4cb6eb03d4b913a75 | [] | no_license | wjlkongxi002/C- | 020c16b23cd6e785c8b0b0c99fbd21709cb06e68 | 8e19e3d62bcebad55d1a4df0f65164c17ef4f80d | refs/heads/master | 2021-07-04T01:25:24.318815 | 2021-02-10T15:49:25 | 2021-02-10T15:49:25 | 223,765,071 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,602 | cpp | Test.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
// 1 常方法的const 怎么了
// 2 GetData() 与 GetData()const 能否共存
// 3 拷贝构造函数的const
// 4 赋值语句
//operator= 重载运算符
// Test& operator=(const Test &t)
// void operator=(Test t)
class Student
{
public:
char name[10]; //成员数据 数据成员
private:
char... |
4aa721d43115aa7155f1135b4e8cdf0f0519ef97 | 8a964d9fdb6e7b1f99ce44b7a38ae9615f8399c3 | /codebase/apps/refractt/src/Cinrad2CDFSweep/tspack.cpp | 4c13bb340d64599e048d2b1863fb25761872c31b | [
"BSD-3-Clause"
] | permissive | zhaopingsun/lrose-core | 93edd9b354ba2db08a52c45a6d9fcd561525403e | 98461699e9cfb8b3547a7143491a0cf42671c66f | refs/heads/master | 2021-10-09T22:21:54.872633 | 2019-01-04T06:18:51 | 2019-01-04T06:18:51 | 110,906,414 | 0 | 0 | null | 2017-11-16T01:20:12 | 2017-11-16T01:20:12 | null | UTF-8 | C++ | false | false | 1,016 | cpp | tspack.cpp | #include <stdlib.h>
int const LOOK_UP_TABLE_SIZE=65536;
float gLookupTable[LOOK_UP_TABLE_SIZE];
int gTabledInited=false;
void depackIQ_kernel(unsigned short *code, float *iq,size_t count)
{
for(int i=0;i<count;i++)
{
unsigned short c=code[i];
float val=0;
if(c&0xf000)
{
int man=c&0x7ff;
int exp=(c>>12)... |
32d31968cc910000c9513259a64e25a44ff7a6d2 | 19bb9067a70af56eab4a3ca8671bee94651e8095 | /Worksheet 6/Exercise 3/Exercise 3/build/mainwindow.cpp | 254a36b40aeec29ae4db6fa078dd65271a234c6f | [] | no_license | GeorgiosXanth/Git-Repository | b25fd901d8d70c2256943dc068fbf5eaf6b90e72 | 4c489942e4e13c30d4b1028cd53eb58608066053 | refs/heads/master | 2023-04-21T07:23:43.469012 | 2021-05-21T15:50:09 | 2021-05-21T15:50:09 | 321,283,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,995 | cpp | mainwindow.cpp | // mainwindow.cpp-----------------------------------------------------------
#include <vtkSmartPointer.h>
#include <vtkCubeSource.h>
#include <vtkActor.h>
#include <vtkProperty.h>
#include <vtkCamera.h>
#include <vtkPolyData.h>
#include <vtkDataSetMapper.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteract... |
d074b1b8540526c348bc2c5a39bdc5d5ffa58043 | 270b6c88b5fb3adefbb71d139edb894222332d2f | /Talisman.OLD/LinkedList/linkedlist2.h | d9d6392242ad59f12651e2a4774ef71d0823d995 | [
"ISC"
] | permissive | mgwalker/talisman | 420d278b8c546cc840ae88267e6b8c446957bd2c | c159ade7dff22c62ac0c7f45ca04a70de70ca8aa | refs/heads/main | 2023-03-11T19:20:18.536963 | 2021-02-25T02:36:01 | 2021-02-25T02:36:01 | 342,100,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,463 | h | linkedlist2.h | #include <stdlib.h>
template<class Type>
class Node
{
public:
Node(Type _object)
{
previous = NULL;
next = NULL;
item = _object;
}
Node *previous;
Node *next;
Type item;
};
template<class Type>
class LinkedList
{
public:
LinkedList()
{
head = NULL;
current = he... |
928f44db721475c0db4c522fe7792caceca321dc | c66feb3b452d64d21ba1bb33833c17f4a41adfe7 | /rate_in_maze.cpp | ca8f58c2af4b2fc544adf16290f70219058ea68e | [] | no_license | gautamshah6/Coding_Blocks_Solution-c- | ac7cb0d9170681e04c903110e5e1c380ec5eba0c | 7c392ed71e950dc0a33627a3a0dcfd1b18cb13b9 | refs/heads/master | 2023-06-03T04:59:49.604623 | 2021-06-17T18:16:26 | 2021-06-17T18:16:26 | 377,826,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | cpp | rate_in_maze.cpp | #include<bits/stdc++.h>
using namespace std;
bool maze(char a[][1000], int i ,int j, int n , int m,int o[][1000])
{
if(i==n-1 && j==m-1)
{
o[i][j]=1;
for(int x=0;x<n;x++)
{
for(int y=0;y<m;y++)
cout<<o[x][y]<<" ";
cout<<endl;
}
return... |
5ea35f91660268c07de2001f2b0057109fe1354c | d7c94f4a713aaf0fbb3dbb9b56c9f6945e0479c1 | /URI Online Judge/uri1796.cpp | 7b7419f026c4c057b884bafc1e639b925ede4699 | [] | no_license | fonte-nele/Competitive-Programming | 2dabb4aab6ce2e6dc552885464fefdd485f9218c | faf0c6077ae0115f121968f7b70f4d68f9ce922b | refs/heads/master | 2021-06-28T09:24:07.708562 | 2020-12-27T14:45:15 | 2020-12-27T14:45:15 | 193,268,717 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | uri1796.cpp | #include <bits/stdc++.h>
int main () {
int n, x = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
int k;
scanf("%d", &k);
if (k) x++;
}
if (2*x < n) printf("Y\n");
else printf("N\n");
return 0;
} |
a41ca5ab087616e5f69119573ba40697fdadd46a | 1fc4474774ed931a71878b201c7604356506441d | /src/Render.hpp | 54514369d5672e02662d9be4c6a270dbe40361b6 | [] | no_license | tmglncc/Visualizador | 1097bd8c4154e516a19a93afd2afb728af6d546a | 9dabbdb23abfe0fe9f31a3ae8c8a396e3f4b451c | refs/heads/master | 2020-03-15T07:33:41.807717 | 2018-07-29T21:37:40 | 2018-07-29T21:37:40 | 132,030,883 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 617 | hpp | Render.hpp | #ifndef RENDER
#define RENDER
#include <GL/glut.h>
#include <vector>
#include <array>
#include "Cell.hpp"
#include "Util.hpp"
#include "ConfigHandler.hpp"
namespace ogl {
#define NUM_SEGMENTS 20
class Render {
private:
void drawCell_(Cell c, ViewMode viewMode, ColorRGBA primary, ColorRGBA seconda... |
2a38ed4ed4b11dbd023a76fa457643b8d6e96e1e | 7c63a96fad4257f4959ffeba0868059fc96566fb | /cpp/std-14/m_gregoire-prof_cpp-3_ed/ch_22-memory_management/04-arrays_of_objects/main.cpp | f91316ace87cc9aae6e5dca161e0ef9358980464 | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | cpp | main.cpp | #include <iostream>
class Simple
{
public:
Simple() {
std::cout << "Simple constructor called!" << std::endl;
}
virtual ~Simple() {
std::cout << "Simple destructor called!" << std::endl;
}
};
void example1() {
Simple* mySimpleArray = new Simple[4];
... |
feb28237362bee7bdd8cd0a5001dd0863352afbf | c0f0941e3d6f62dbe6932da3d428ae2afed53b43 | /simulation/g4simulation/g4detectors/PHG4TrackStatusDecode.cc | 8e5e5f8de2b8dc64c4dfba58d1e4991fe6b656ee | [] | no_license | sPHENIX-Collaboration/coresoftware | ffbb1bd5c107f45c1b3574996aba6693169281ea | 19748d09d1997dfc21522e8e3816246691f46512 | refs/heads/master | 2023-08-03T15:55:20.018519 | 2023-08-01T23:33:03 | 2023-08-01T23:33:03 | 34,742,432 | 39 | 208 | null | 2023-09-14T20:25:46 | 2015-04-28T16:29:55 | C++ | UTF-8 | C++ | false | false | 860 | cc | PHG4TrackStatusDecode.cc | #include "PHG4TrackStatusDecode.h"
#include <Geant4/G4TrackStatus.hh>
#include <TSystem.h>
#include <iostream>
#include <map>
static std::map<int, std::string> trackstatus;
std::string PHG4TrackStatusDecode::GetTrackStatus(const int istatus)
{
if (trackstatus.empty())
{
std::cout << "filling trackstatus ma... |
3d1a088149ba042567b98017f547e24709099e2a | 03a75b919809fb54bdf8d8b979c7c79eb506300c | /Aritificial-Life-Simulator/Soup/SoupSFML.hpp | 2ed9b7d4372ec38c17c25fe9d1a166009b633546 | [] | no_license | tadeuszjt/old | 30e8fac65480dfc881498bc59bc043a8e4b7739c | 0378fc7bf6db3c6e7e1bcfa4ffc0540c8ed7d344 | refs/heads/master | 2020-05-19T19:38:13.335277 | 2019-12-02T11:02:49 | 2019-12-02T11:02:49 | 185,184,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | hpp | SoupSFML.hpp | #ifndef SOUPSFML_HPP
#define SOUPSFML_HPP
#include <SFML/Graphics.hpp>
#include "Jackstd.hpp"
void sfQuadPositions(sf::Vertex quad[], Vec2f p0, Vec2f p1, Vec2f p2, Vec2f p3);
void sfQuadPositions(sf::Vertex quad[], Rectf rec);
void sfQuadTexcoords(sf::Vertex quad[], Rectf rec);
void sfQuadColour(sf::Vertex quad[], Co... |
be5974e6545c42bf9f2335878468bb932c8d4eaa | 6aee2122da74138c9cab1ca6255e866991377b8f | /Mustachers II/Framework/Purchase.cpp | 2744c724ea665600955f844e9a1d3cf863a603d2 | [] | no_license | nraptis/Roxus | c4bc0076c1f28d3fd75eab6304d8bd45c3aadf57 | c59e70fb9825c137e03fd372bba511a76c9317ab | refs/heads/master | 2021-07-11T15:32:48.921200 | 2019-01-11T16:13:53 | 2019-01-11T16:13:53 | 139,342,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,137 | cpp | Purchase.cpp | /*
* Purchase.cpp
* Darts
*
* Created by Nick Raptis on 12/1/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#include "Purchase.h"
Purchase::Purchase()
{
mConsumable=false;
mPurchaseCount=0;
mPurchased=true;
}
Purchase::Purchase(FString pName, bool pConsumable)
{
mConsumable=pConsum... |
d224afa3ced75bd06d185281d79d0ed0053ce91a | cd6ebe5fe2d7cb7ae98ab1f97b5b95c5c8b30296 | /components/generic/src/hook.cpp | 877da0be315391ebf6fd25622bc6728ce96dc70e | [
"MIT"
] | permissive | ahmad009/gameoverlay | 88aa102ca1349f1a3158a9e6a378ec028bbc7dce | 0cb8faa963746edc5c3d1af18e296a0831b13fe7 | refs/heads/master | 2020-06-05T02:26:29.292121 | 2018-09-27T21:01:50 | 2018-09-27T21:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 851 | cpp | hook.cpp | #pragma once
#include "hook.hpp"
namespace gameoverlay
{
namespace utils
{
hook::initializer::initializer()
{
MH_Initialize();
}
hook::initializer::~initializer()
{
MH_Uninitialize();
}
hook::hook() : target(nullptr), original(nullptr)
{
static hook::initializer _;
}
hook::~hook()
... |
f07c18569cafc6b1b511b6a9062916802e4448f7 | ea1d219273bb970bff8dafa910d56decf0310a61 | /pat-advanced/1050.cpp | d45f5b3cbff085a9866914732cb7b8e2b8028aae | [] | no_license | Shuailong/PAT | bd352a42161943a43f583cefa024531cf916696d | b8de7a84f96f78e4d9927bfeec7fdfac0c59ce0d | refs/heads/master | 2021-05-02T08:53:52.999240 | 2016-09-16T08:54:14 | 2016-09-16T08:54:14 | 15,626,752 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | 1050.cpp | #include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main()
{
string s1, s2;
getline(cin, s1);
getline(cin, s2);
bool* subchars = new bool[128];
memset(subchars, false, sizeof(bool)* 128);
for (int i = 0; i < s2.size(); ++i){
subchars[s2[i]] = true;
... |
ef998de03889b682e9459ac709d98afcce05091e | f664c1a82134558729b94fa37577d808740608b7 | /MS03/ms3/Workstation.cpp | ec85a69f4fc668f9f6603efc4c0c60b452aa4e94 | [] | no_license | nathanolah/OOP345 | b26e6c3f1363c2a49d520b759c45fb5377bb2e59 | 8cc98deae2f31e073abe5b8a73bfa6fca063ac9d | refs/heads/master | 2022-06-14T13:47:30.930943 | 2020-03-31T21:24:16 | 2020-03-31T21:24:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,157 | cpp | Workstation.cpp | /*Name: Nathan Olah
Seneca Student ID: 124723198
Seneca email: nolah@myseneca.ca
Date of completion: 2020/03/28
I confirm that I am the only author of this file
and the content was created entirely by me.*/
#include <iostream>
#include <memory>
#include <deque>
#include "Workstation.h"
#include "Station.h"
#in... |
888043ad2793829b15883429397000f0776e5115 | 302af8b2d0be567fe57b1e19d7393c5835d03e0f | /uva/unfamiliar/10926_How_Many_Dependencies.cpp | fd2a7d0a89dd85b26a0c69ee3913ecb414fff7b1 | [] | no_license | smallhand/codePractice | c2dec2222ceb9497f27018e19805d0604387cc3d | 8dd7007fa9b2f145a5ab5d7f54a73441a9c64e1a | refs/heads/master | 2021-01-15T15:32:34.316923 | 2019-04-29T03:30:47 | 2019-04-29T03:30:47 | 65,838,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,051 | cpp | 10926_How_Many_Dependencies.cpp | #include <iostream>
#include <string.h>
#include <vector>
using namespace std;
#define N 101
vector<int> tree[N];
int visited[N];
void init(){
for (int i=0; i<N; i++)
tree[i].clear();
}
int dfs(int now) {
visited[now] = 1;
int next;
int depth = 0;
for (int i=0; i<tree[now].size(); i... |
4b380cfb1334ea6cb5f6db6d08f3106acb67cd14 | 0147ecfd0d96b2d05e61cad79f1de41e0ec66700 | /219_list.cpp | 8c8daf94c2d7740a9cf601e6fb24187f8158ec6d | [] | no_license | Abstraction1/shag_listings | 4981fe4a126128374c947ea2a49317d2be7dc08c | b51056d00acc43b3fb58873a8fdd78b7690302d2 | refs/heads/master | 2021-07-15T00:41:57.919837 | 2017-10-21T09:31:10 | 2017-10-21T09:31:10 | 106,046,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | 219_list.cpp | //219 list
#include <iostream>
class ClassName
{
public:
ClassName()
{
std::cout << "ClassName!!!\n";
}
ClassName(ClassName& obj)
{
std::cout << "Copy ClassName!!!\n";
}
~ClassName()
{
std::cout << "~ClassName!!!\n";
}
};
void f(ClassName o)
{
std::cou... |
f927c976d289dc2a8de1a7886c8cd9160ae85708 | 1cfbdd7c99aef454a34e0d1c6c811e48e3c48f6b | /apps/tenmom/core/rp_10m.cc | b123257b43a0bfecf1e15abd0c86f7393070d77e | [] | no_license | ammarhakim/miniwarpx | cbfae9a6cf567805c0af486438c4e048b37e8085 | 06fe6d36fc311cbaee868cc17b17d6a48ef4cd58 | refs/heads/master | 2021-06-21T17:10:44.069927 | 2021-03-09T17:29:03 | 2021-03-09T17:29:03 | 203,458,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,696 | cc | rp_10m.cc | #include <stdio.h>
#include <iostream>
#include <math.h>
#include "miniwarpx.h"
extern
void
eigensystem(const Run_Data& rd, double *ql, double *qr, double *ev, double **lev, double **rev);
void
rp_10m(Run_Data& rd, FArray<double>& ql, FArray<double>& qr, FArray<double>& df,
FArray<double>& wave, FArray<double... |
8a23bb01090259fe6d0b853f562f96a9e1aa7ada | 267106a97993492a3ba8897b023708c578f25da0 | /Code/c++/Backjun/TotalCode/SamsungSW/2_bruteForce/15650/Code_15650.cpp | 5519875d4a218ed7e81f1a859e7146196e011bf8 | [] | no_license | gwonii/algorithm | fdd8d3f7a95e55e8dc00fcabb0ebaa4304ba154c | f39bceadb7ef874c425f171ddd6d01720082857e | refs/heads/master | 2020-06-05T14:03:00.462755 | 2019-08-19T11:37:49 | 2019-08-19T11:37:49 | 192,455,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cpp | Code_15650.cpp | //
// Created by hoho on 2019-07-03.
//
#include "Code_15650.h"
#include <iostream>
#define MAX 9
using namespace std;
int N_15650, M_15650;
int arr[MAX];
int targetArr[MAX];
void dfs_15650(int index, int count) {
if (index == M_15650){
for(int i = 0; i < M_15650; i++){
cout << targetArr[... |
76b895aa9747a32da8592ae7d2914fc897bacc82 | 5bcfe24df0851ea34e64e2ef1624f720ece62ab9 | /Peca.cpp | 3a0c091c84233bdd1fcd22ae02d49fad45017f05 | [] | no_license | LucasSsouza10/Chess-Game-CPP | 4c2d9c22462a8470ade46e37bbd9202c705ecaa3 | e9fe2e3acd33fbaf04a2bc8a19d2aa1bfdead428 | refs/heads/master | 2022-09-19T00:30:00.938129 | 2020-06-01T22:42:31 | 2020-06-01T22:42:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | Peca.cpp | #include "Peca.h"
using namespace std;
//Construtor com cor definida
Peca::Peca(char c){
cor = c;
situacao = 1;
}
//Destrutor
Peca::~Peca()
{
}
//Retorna a cor da pe�a
char Peca::getCor(){
return cor;
}
//Checa o movimento de cada pe�a (implementada nas subclasses)
bool Peca::checaMovimento(Posicao origem, Pos... |
b161ef49af6b972596c5044ea1612fc8098ea004 | ea46e1e37414d13aa36a70ebcff89df0b7b46ef9 | /bin/testBddKernel/99-Poubelle/main2.cpp | d55b950d1b04340ff2737354415b942f6b968b82 | [] | no_license | oberkampferic/voca | ab069d0eed8ecc371246dd72f95f1f5fa289164f | 5c49ce912a426e95ef681ce03b70e3776973b63a | refs/heads/master | 2020-04-26T00:24:20.304801 | 2019-03-08T10:34:51 | 2019-03-08T10:34:51 | 173,163,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,019 | cpp | main2.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
template <typename T>
class element: public vector<T> {
public:
T maVal;
element(){};
~element(){};
// T& operator [](int idx) {
// T
// return this->data;
// }
T& operator [](int idx) {
T* p = vector<T>::data();
... |
7f08a62255ded0132f8b3975452e34d712854840 | e4dad95aeab2797bd536a2f00ed1279174b51d1a | /lib/Utilities/rtosim/ArrayConverter.h | d1215a74c99bb3fb05cfdc18233195f1026d7c20 | [
"Apache-2.0"
] | permissive | RealTimeBiomechanics/rtosim | bc40a562cb707398b7482ca51c72ac20fb4aecac | e8831e4e4b0ce2d82ffcb35b58387a1d4693c36f | refs/heads/master | 2022-02-26T15:32:57.921637 | 2022-02-17T07:24:41 | 2022-02-17T07:24:41 | 61,508,597 | 27 | 17 | Apache-2.0 | 2022-02-17T07:24:42 | 2016-06-20T01:26:05 | C++ | UTF-8 | C++ | false | false | 1,835 | h | ArrayConverter.h | /* -------------------------------------------------------------------------- *
* Copyright (c) 2010-2016 C. Pizzolato, M. Reggiani *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
... |
849c786bf3a8b9d37f59ccaf4c70dd6fe83dac2a | 3bf91b10c47d677ac6caf121eeb4d1ead8d2b561 | /src/helium/robot/framePolicy.cpp | fd8029800aeacb73a5fc66545305df74a93d1fa1 | [] | no_license | fabiodl/helium | 8d9dea1e433973632199ea10a5bf54b6a3741afe | fe8f58eb55e033c596d66e377dc808c46ca0dfce | refs/heads/master | 2020-12-06T15:09:29.227558 | 2020-03-10T07:48:28 | 2020-03-10T07:48:28 | 67,750,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,792 | cpp | framePolicy.cpp | /*!
* \brief libhelium
* \author Fabio Dalla Libera
* \date 2012.07.01
* \version 0.2
* Release_flags ge
*/
#include <helium/robot/framePolicy.h>
#include <helium/math/interpolation.h>
#include <helium/core/nan.h>
//#include <helium/util/ioUtil.h>
using namespace helium;
FramePolicy::FramePolicy(const ... |
42fe3863cedcdb75d643024dc9ec757a2a7051a5 | 114736cf8f56d95aa67d0a56f8909165bbeba569 | /2_Binary_Search.cpp | 0ece5c251dc7f30542b6de8c1f6f9be80c83b474 | [] | no_license | arshmishra007/Algorithm-Implementation-Using-C- | 7af28aaf835859ae6cbf35b2a82f4c5f5295b846 | 339ef268db75a8a4df049c50ddb32a652435becc | refs/heads/main | 2023-03-02T20:39:41.513663 | 2021-02-14T17:50:22 | 2021-02-14T17:50:22 | 336,778,066 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | cpp | 2_Binary_Search.cpp | #include<iostream>
using namespace std;
int binarysearch(int arr[],int left,int right,int x)
{
while(left<=right)
{
int mid = left + (right-left)/2;
if(arr[mid]==x)
{
return mid;
}
else if(arr[mid]<x)
{
left = mid+1;
}
else
{
right =mid-1;
}
}
return -1;
}
int ... |
fcb61c63ba05b64cf269f0680c87989ab048a124 | 79583cb52f7f9d32118b117e6a5df688216de135 | /baekjoon/1406/1406.cpp | a6708f71f873dc03d97f0b82db92735d911af719 | [] | no_license | danaser72/baekjoon | f8f15096c90a04d59d034a6a8e25e6b066c0144d | bf3fb1e035f5b5e4c05ebf28865512addee818b2 | refs/heads/master | 2021-04-27T18:19:06.754507 | 2018-07-23T12:06:37 | 2018-07-23T12:06:37 | 122,337,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | cpp | 1406.cpp | #include <iostream>
#include <string>
#include <list>
using namespace std;
list<char> li;
int len;
int N;
string str;
list<char>::iterator iter;
int main() {
char c[3];
cin >> str;
for (int i = 0; i < str.size(); i++) {
li.push_back(str[i]);
}
iter = li.end();
scanf("%d", &N);
for (int i = 0; i < N; i++)... |
6fa1a3080a093f46b1e3c4dd8699ab33a9321709 | 753e8ed6950f0fc4aaba504db25596a8bbaed12d | /include/nDjinnCamera.hpp | 4d4a6f1236d60f7b496039cbd21886c7e772ffed | [] | no_license | thinks/nDjinn | ebea3f5461599e661a0e2ae53a1f2043d69f8c6a | 2487e81958b827622b4e9d9639e10d835128a8a3 | refs/heads/master | 2020-04-06T04:32:16.720499 | 2017-04-08T14:02:01 | 2017-04-08T14:02:01 | 3,463,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,600 | hpp | nDjinnCamera.hpp | //------------------------------------------------------------------------------
//
// Contributors:
// 1) Tommy Hinks
//
//------------------------------------------------------------------------------
#ifndef NDJINN_CAMERA_HPP_INCLUDED
#define NDJINN_CAMERA_HPP_INCLUDED
#include <algorithm>
... |
4d1a8f9262d504e0599656c90cb9e95db2a33a52 | dfc10b58b23687b618804a1dc7d54652723691ec | /cv-2018-summer/W2_use_opencv/QtApp/myqtapp.cpp | eeddedff9a89648a432730329835cb6ae968f6b2 | [] | no_license | goodgodgd/sch-seminars | 52f577a393deb5c23edc899da1ea0bd00ab63a2e | 756a72516c0da2df7676871a3276ff2d4e1c5b24 | refs/heads/master | 2020-03-21T00:19:44.356954 | 2019-05-10T07:17:47 | 2019-05-10T07:17:47 | 137,887,900 | 8 | 1 | null | 2018-11-26T14:13:49 | 2018-06-19T12:22:59 | C++ | UTF-8 | C++ | false | false | 2,014 | cpp | myqtapp.cpp | #include "myqtapp.h"
#include "ui_myqtapp.h"
#include <QFileDialog>
#include <QDebug>
#define USE_FUNCTIONAL
MyQtApp::MyQtApp(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MyQtApp)
{
ui->setupUi(this);
ui->lineEdit_imagesize->setText("400,300");
ui->lineEdit_circleparams->setText("200,100,5... |
d3db9e768fb434d19df367ce5350cfcc9c3f9ba7 | 4c98e525ccd7662b5f0cb649ba8c5ab00a63e134 | /BranchClipper/Widgets/qSlicerBranchClipperFooBarWidget.cxx | 8f6fb422784fe5a15881a052309ab13be12e1531 | [
"Apache-2.0"
] | permissive | vmtk/SlicerExtension-VMTK | 9fe4cf58b267b37a4b62c07565c81a27d7268967 | 69de55c06fa61af223e4f2d9127451ef6b94d4cc | refs/heads/master | 2023-08-17T05:37:21.578492 | 2023-08-13T15:18:14 | 2023-08-13T15:18:14 | 17,647,614 | 67 | 36 | Apache-2.0 | 2023-08-21T20:47:43 | 2014-03-11T22:32:49 | Python | UTF-8 | C++ | false | false | 2,462 | cxx | qSlicerBranchClipperFooBarWidget.cxx | /*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License... |
67b7167f41fdddde228b155539436de5a0c9d002 | b4f07abd321b0c297a91209f2fd92279c56f6e7c | /STL_CONTAINERS/K.cpp | 70d443e442d0155103735b43fc9010855316afc6 | [] | no_license | Alex-Criwer/Algorithms | 7b7124060c702647d1891fa8ee98d92757d32279 | 3f674ace280a63cc3122e50f62f821090cd8d035 | refs/heads/main | 2023-03-28T19:59:26.446135 | 2021-03-29T19:44:58 | 2021-03-29T19:44:58 | 336,295,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | cpp | K.cpp | #include <iostream>
#include <queue>
#include <algorithm>
#include <vector>
int main(){
int size, number;
double sum = 0;
std::cin >> size;
std::priority_queue<int,std::vector<int>,std::greater<int>> calculator;
for (int i = 0; i < size; ++i) {
std::cin >> number;
calc... |
544b5ef5c0974a9a9c3e1e68916977bb6b3fb885 | 07fed703e6c2cf82988a4378a22d295ccc9ee649 | /Arduino_code/src/initial_sketch/ultrasonic_initial/ultrasonic_initial.ino | 70bc4348976ff3416eb5efcb3f64e661c8758e3d | [] | no_license | renu285/Arduino_Robot | ce4fa6fe8cb225195d88f0a06ef8c08e2a386971 | 7942fa6e82a3c66de5f7ec41c56528e278e8e810 | refs/heads/master | 2020-05-21T21:03:06.381441 | 2016-09-17T15:55:24 | 2016-09-17T15:55:24 | 65,203,676 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,433 | ino | ultrasonic_initial.ino | class ultrasonic
{
int trigPin,echoPin,uState;
float udistance,pudistance;
unsigned long duration;
unsigned long previousMicros;
public:
ultrasonic(int tPin,int ePin)
{
trigPin=tPin;
echoPin=ePin;
pinMode(tPin,OUTPUT);
digitalWrite(tPin,LOW);
pinMode(ePin,INPUT);
uState=0;
u... |
2f72771dd6419331ded699324d94bef3ad566e4b | 2625d1313e4828fe7ed8f581f86d06e6564bb2a3 | /Tarea02/ControlViajes/main.cpp | 9c9dfe71036df3671219fa98801a8ed421429b11 | [] | no_license | Lymh/Assignments-Data-science | a0e6f24994ae192e6fb44b24c9c9954a53f2f8c4 | bf1f5aa15a3549345bd6a7910b5ad7e5e58a8fbe | refs/heads/master | 2023-04-14T07:31:06.063594 | 2021-05-08T22:51:20 | 2021-05-08T22:51:20 | 365,623,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,768 | cpp | main.cpp | #include <iostream>
#include "vuelo.h"
#include "vueloLocal.h"
#include "VueloInternacional.h"
#include "pasajeroFrecuente.h"
#include "pasajeroNoFrecuente.h"
#include "vueloCarga.h"
using namespace std;
void modificarVueloInternacional(VueloInternacional& internacional,string _numeroVuelo,string _horaSalida,string _... |
8c2d806095e1aa35650867a9dc7f00a0e9853e0b | ec76c1297252070d72fd194baebca3146bafac59 | /damBreak_laminar/damBreak/2.85/phi | 9e8041b82c682d84fa5ced2704476a7301523a2f | [] | no_license | Shivam-IITKGP/CFD_InterFoam_BottleFill | 413cdb5536cf71d95da882821fa36c7bd138e17e | be711e0f19a5331bb1094b8e54982c9ad101da5c | refs/heads/main | 2023-04-13T12:58:09.332312 | 2021-04-15T16:24:42 | 2021-04-15T16:24:42 | 358,315,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 225,928 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
d90e72fd5393212beb95857b44b3a735548d3e02 | 9f0e4c0d85a78db555f69bb30cede63a6d19fa6b | /problems/easy/1544-make-the-string-great.cpp | 98990146f22501e1d4914fe76fe842db64e12709 | [
"MIT"
] | permissive | azartheen/leetcode | d00e4c4e02214f275d53895ad38c6f80fef5a3cd | 4610507de3a45be074c414016dddbe2867e470a1 | refs/heads/master | 2022-12-10T09:13:39.809615 | 2020-08-26T12:28:00 | 2020-08-26T12:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,494 | cpp | 1544-make-the-string-great.cpp | /*
Make The String Great
Given a string s of lower and upper case English letters.
A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where:
0 <= i <= s.length - 2
s[i] is a lower-case letter and s[i + 1] is the same letter but in upper-case or vice-versa.
To make the string good,... |
6259d2481abf6eb7ba97e2f602b58d8b0af345cd | e75648059cdba347dc7bb41a3d9dd798b78e47e5 | /dlgv32/dlgv32/DLGOverlayComponent.h | 4965da0866fb8a1a5f91e75ecc28ff64ef8f1bbd | [] | no_license | beikehanbao23/dlgv32 | 5568faa7424ba5e27d72d7e547588787c53992f9 | 4b8cdde86922e2e40d4eba6b6d02638982d5e79f | refs/heads/master | 2020-04-04T23:10:17.720148 | 2018-11-06T08:14:12 | 2018-11-06T08:14:12 | 156,349,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | h | DLGOverlayComponent.h | // DLGOverlayComponent.h - header file for DLGOverlayComponent class
//
// Developed by: Mike Childs
// Started: 1/23/97
//
#ifndef _DLGOVERLAYCOMPONENT_H_
#define _DLGOVERLAYCOMPONENT_H_
#include "OverlayComponent.h"
class DLGOverlay; // forward declaration of DLGOverlay class
class DLGOverlayCom... |
17e73ddce35a4337bb69e9d8405563d74780ea10 | 6a34620d753bfd6b09c93ef279ba4522a323a205 | /strutil.cpp | c0d1ec6dc0006b28bbe027ce62aa1a1ce277205b | [
"MIT"
] | permissive | FashGek/chazelle-triangulation | 1f0048b9553bb34fdf7f1168a5ff936e38eeb287 | 3ef89edb225dbfdd09ce8fde103fe657d01bcc98 | refs/heads/master | 2020-12-11T04:00:44.077267 | 2015-09-28T02:44:50 | 2015-09-28T02:44:50 | 48,221,382 | 5 | 1 | null | 2015-12-18T07:38:20 | 2015-12-18T07:38:20 | null | UTF-8 | C++ | false | false | 2,020 | cpp | strutil.cpp | #include "strutil.h"
#include "colors.h"
#include <boost/lexical_cast.hpp>
using namespace std;
using namespace boost;
ostream& operator<<(ostream& o, VertDesc v)
{
o << vert2uint[v];
return o;
}
string to_string(EdgeDesc e, Graph const& g)
{
auto src = lexical_cast<string>(vert2uint[source(e,... |
c9fdc8f5296339c6e8ea0130410220ec02468818 | a68b74bf09fb75e99a687f2ef432efc9b580bb3f | /test/integration/console/test.cpp | 002285ba38b0d89c4b2e3e539f43e8d84509115f | [
"MIT"
] | permissive | dyle71/hcs-logger | 30d3ef8d5e8594d9bbcb80f07cf33d2694681a23 | 488bbe24cc60acfea697c0804dbad8817e8a4cec | refs/heads/master | 2023-04-02T07:02:26.846850 | 2021-02-03T18:45:30 | 2021-02-03T18:45:30 | 334,880,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | cpp | test.cpp | /*
* This file is part of the headcode.space logger.
*
* The 'LICENSE.txt' file in the project root holds the software license.
* Copyright (C) 2021 headcode.space e.U.
* Oliver Maurhart <info@headcode.space>, https://www.headcode.space
*/
#include <headcode/logger/logger.hpp>
using namespace headcode::logger;
... |
a0ce9c8ee8cb0eceb448561aa92a84e0564be264 | f161e5fba06e21b1f28c137293ed77149b233fcf | /List/List.h | 88649f3112cd56745f55cc4e7d888f2221d06381 | [] | no_license | kaleid-liner/DataStructure | 07a93f9d0fad444707a7bc3233889bb57279877e | ea2eb772f046178e148083c9d788de6c7a1ef07e | refs/heads/master | 2020-03-31T20:14:00.364841 | 2019-03-21T14:11:02 | 2019-03-21T14:11:02 | 152,531,093 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,421 | h | List.h | #ifndef _MY_LIST_H
#include <iostream>
#include <iterator>
#include <exception>
namespace DataStructures {
template <typename T> struct _ListNode;
template <typename T>
class List {
public:
using size_t = size_t;
using value_type = T;
using iterator = _List_iterator<List<T>>;
using const_iterator = _List... |
5098aeecd4dbc42c1a7c6f430c12dd08ae42b8cc | 11e10626f75770590fb27ecc73506b1a6cd0490a | /perfdata_reader.cc | 7d95b2deb8e3190b6472e8566bbfd973c962d030 | [
"Apache-2.0"
] | permissive | google/autofdo | 439407ca8de6170b88e9138f83bc547d664f83e0 | 61b25e4a049c33998f910603ca47e963d1c6b982 | refs/heads/master | 2023-08-29T07:29:13.748428 | 2023-06-29T16:58:43 | 2023-06-29T16:58:43 | 18,347,398 | 437 | 109 | Apache-2.0 | 2023-06-27T21:44:22 | 2014-04-01T22:37:47 | C++ | UTF-8 | C++ | false | false | 19,738 | cc | perfdata_reader.cc | #include "perfdata_reader.h"
#include <functional>
#include <list>
#include <optional>
#include <string>
#include <utility>
#include "llvm_propeller_perf_data_provider.h"
#include "third_party/abseil/absl/status/status.h"
#include "third_party/abseil/absl/strings/str_format.h"
#include "llvm/ADT/ArrayRef.h"
#include ... |
9475d2e1d734d40be9f69e050f61208b8dfb2df8 | adce6ec37a3bd41b6b26246615bceace9580a31b | /C_div_2_educational.cpp | 561c1a7d1ee9425c1d1513ef7e05b0e742e8872a | [] | no_license | shivamkasat/Placement_Preparation_GFG | 8b2b2ad79ef2552bd5d4976b998239dd2cfb72eb | e7097ab03b2d86508476a831858b22840c30c861 | refs/heads/master | 2020-09-27T10:47:35.342988 | 2020-08-15T13:32:49 | 2020-08-15T13:32:49 | 226,497,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,602 | cpp | C_div_2_educational.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int R;
int G;
int B;
cin>>R>>G>>B;
priority_queue < pair <int, int >, vector < pair < int, int > > > redpq;
priority_queue < pair <int, int >, vector < pair < int, int > > > greenpq;
priorit... |
1167710b621edbf8562b6b94f825fc790e424f47 | e1d821314c3da779126d223d152f7f58a8cdffbc | /First SFML Game/src/First SFML Game/mapManager.h | d2bc15996ef748cf5087423deb68066e4568e687 | [] | no_license | Th3FrankXD/RTS | 2836875b339bf55329e03f0e382af085b0071999 | d363a9c4363caaf9a7bffca478db4f1b5c9e37e7 | refs/heads/master | 2021-01-17T07:25:48.808127 | 2016-06-04T13:23:51 | 2016-06-04T13:23:51 | 30,602,166 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | h | mapManager.h | #include <SFML/Graphics.hpp>
class TileSet
{
public:
TileSet();
~TileSet();
std::string image;
int imageHeight;
int imageWidth;
int tileHeight;
int tileWidth;
std::vector<sf::Texture*> data;
void setTextureData();
};
class Map
{
public:
Map();
~Map();
TileSet* tileSet = new TileSet;
int height;
int width... |
e8a9f062af8e66a0c88af2267ae434e50a91a0c7 | c9ec9bd7cef67f49da579a9ee508167c8c08a41a | /UNS/GMS_COMMON/GMSExternalLogger.cpp | c8c423ce49d5a006c50e0e69931e462879282113 | [
"Apache-2.0"
] | permissive | intel/lms | e02d559f0407f42222a97a25482891373918fec6 | 3527c534c0c5ea3577b78c192811f01a6cf9a707 | refs/heads/master | 2023-08-16T18:04:17.618338 | 2023-06-16T03:35:42 | 2023-07-18T10:32:08 | 180,466,574 | 23 | 11 | Apache-2.0 | 2023-07-18T10:32:09 | 2019-04-09T23:50:31 | C++ | UTF-8 | C++ | false | false | 4,350 | cpp | GMSExternalLogger.cpp | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2006-2007, 2009-2021 Intel Corporation
*/
/*++
@file: GMSExternalLogger.cpp
--*/
//*****************************************************************************
//
// Class: GMSExternalLogger
// Date created: 28 May 2006
// Description: EventLogger fo... |
90c7dc846dff3573ce888bb0374d015a88050b20 | bcaed92dd213f483038801b8e6b16ddbd09b43e2 | /src/Input.h | 80dfe0e7385d0db5ac5d31f7856a1df2468df4f4 | [
"Apache-2.0"
] | permissive | sdkrystian/MultiplayerTest | 237982de452c881d0c80bfbd23fa46f3340b3b7d | 4b7231c4ba7abe36758a8bc92886e4a762e1c66b | refs/heads/master | 2021-09-18T15:50:13.841217 | 2018-07-16T23:33:40 | 2018-07-16T23:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | h | Input.h | // Copyright 2018 Krystian Stasiowski
#pragma once
#include <map>
#include <chrono>
#include <windows.h>
#include <iostream>
class Input
{
public:
static bool GetKeyDown(char key, unsigned delay = 150);
private:
static std::map<char, std::chrono::time_point<std::chrono::steady_clock>> keys_;
}; |
ab3aeaad176b0d66185d2f96067c816c8b0503f8 | fca36a1099a3c540a4c4d0a7a1130ecf421d1384 | /src/playback/youtube/src/youtubeplaybackhandler.h | 7022ba51e9bdc0ded2bfc62c44ececeab5609ff2 | [
"Apache-2.0"
] | permissive | jimmypoms/couch | 2d692e4bdc22a3fcf14ea63a938e3450a45b0d17 | 2371ad236a04bf9623098da9b1fdec10997f1dd0 | refs/heads/master | 2021-01-22T18:33:58.897598 | 2017-06-14T11:26:07 | 2017-06-14T11:26:07 | 85,093,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | h | youtubeplaybackhandler.h | #ifndef YOUTUBEPLAYBACKHANDLER_H
#define YOUTUBEPLAYBACKHANDLER_H
#include "couch/playbackhandler.h"
#include <qmap.h>
#include <qnetworkaccessmanager.h>
#include <qnetworkreply.h>
#include <qobjectdefs.h>
#include <qstring.h>
class YoutubePlaybackHandler : public PlaybackHandler
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "o... |
ecd837e986f347f469f1788f648bac2c61d951e7 | 5f5d0f86cc4e2cf61adbfd68e049c3fa15335542 | /Breakout/Server/ConfigHandler.cpp | 68178ac744d9b7e68aa2cdd8c749f143835e9714 | [
"MIT"
] | permissive | woliveirax/SO2_Breakout | 9ad80845ea648561b7ccd10b4fc31c2a4b67b58e | 15d964acaca0b163ffd44eea446cea304c88c31c | refs/heads/master | 2022-02-22T21:35:49.017477 | 2019-06-10T05:50:48 | 2019-06-10T05:50:48 | 179,088,992 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,179 | cpp | ConfigHandler.cpp | #include "ConfigHandler.h"
ConfigHandler::ConfigHandler(GameConfig& cfg, tstring fname)
:config(cfg), filename(fname)
{}
int ConfigHandler::importConfigs() {
tifstream file(filename);
tstringstream tss;
tstring line, command, value;
if (!file.is_open()) {
return -1;
}
while (getline(file, li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.