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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df97ee90add683fe4f62559b0943ed93a0d7609f | 8fbf442d4f16c1f76a3761f152a01d3f99fba5fa | /src/Game.h | 2ea706b5ec1140d61c15c56859f0ac51063b47dc | [] | no_license | lukitree/RollHigh | 921313d650e46610343a9ad61177f4a9ebff8aa6 | 46ec11b713d555cc29158f43a929b19018945a02 | refs/heads/master | 2021-01-21T12:03:28.866272 | 2015-04-25T23:07:21 | 2015-04-25T23:07:21 | 33,465,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | h | Game.h | /*
* Game.h
*
* Created on: Apr 1, 2015
* Author: eddy
*/
#ifndef GAME_H_
#define GAME_H_
#include <ncurses.h>
#include <iostream>
#include <string>
#include "Player.h"
#include "UI.h"
#include "Roller.h"
#include <vector>
enum KEY {EXIT = 'q', RESTART = 'r'};
class Game {
public:
Game(void);
~... |
eddff614f88e42e935fc13eea82c71f1cc83c291 | 243146e027ab3504c667b7173887d48d2632c562 | /fscachesim-3.0-new/StoreCacheMQ.cc | c69e6a8b0dfbb99ec03b4595066cd840fb5f08bd | [] | no_license | walle0431/testfs | 0dd8bbe72c7496c53a03c1b68542153d57f1c10c | 7b996a5503ba360dc7b89295d4ae05eaed0cf82d | refs/heads/master | 2021-01-20T22:54:48.950512 | 2013-05-25T09:29:10 | 2013-05-25T09:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,918 | cc | StoreCacheMQ.cc | /*
RCS: $Header: /afs/cs.cmu.edu/user/tmwong/Cvs/fscachesim/StoreCacheSeg.cc,v 1.4 2002/02/18 00:23:45 tmwong Exp $
Author: T.M. Wong <tmwong+@cs.cmu.edu>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <math.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif /* HAVE... |
6e14764c4495fd67c99dca2c22186edc56c928c8 | 63ceee40730bd5b6193f01ba440773832bdb559c | /H34086149_hw11/H34086149_hw11_1.cpp | 5c45d5db83ba2ed28b277f7bce5ee8e5988801e8 | [] | no_license | visitorckw/computer-science | 426160287448ae1a34aeff1d53af56c0c8321a3d | a0faa0997dd5e682bd38990aced175ca609c55e3 | refs/heads/master | 2023-06-11T16:14:22.062297 | 2021-07-09T19:05:16 | 2021-07-09T19:05:16 | 384,527,233 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | H34086149_hw11_1.cpp | //============================================================================
// Name : H34086149_hw11_1.cpp
// Author : mr.NTD
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//=========================================================================... |
ec89968696d4541e7d15c84f96331e2a9906e396 | 0ffc1b87e74dbce62f399191bcd4278b3677543f | /Project10/Project10/Logo.cpp | cc8f5da936db0b539cc2e660ef0f961e68897330 | [] | no_license | ParkHD/school | 7b5cba8fca83fd81fb7cf079251988c0891cf780 | 98fcb43d79aa048b0bcd72882b14dff0587d6a1a | refs/heads/main | 2023-03-18T00:17:48.751346 | 2021-03-10T08:53:01 | 2021-03-10T08:53:01 | 337,343,304 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 698 | cpp | Logo.cpp | #include "Logo.h"
#include"Include.h"
#include"SceneManager.h"
#include"WindowController.h"
#include "DoubleBuffer.h"
void Logo::Initialize()
{
}
void Logo::Progress()
{
if (GetAsyncKeyState(VK_SPACE))
{
SceneManager::Instance()->Initialize(MENU);
}
}
void Logo::Render()
{
for (int y = 0; y... |
4c872bad7b96a7b230846e8530c380f5da213858 | 37616f72dc466cf058cd285bd3b28bcdae9f05b2 | /MyJSONVisitor.h | f0dc70c96aacb6176295ef4dea3af7f16f4c2bda | [] | no_license | theochp/antlr4-json-parser | 49bbb4a457ecfb37fcf70d1d4da4fad3ba2ad90a | 8e36d1eae9c00f5e52e0fbb6b26367d1f35b3086 | refs/heads/master | 2022-09-23T06:38:36.162460 | 2020-06-03T07:11:35 | 2020-06-03T07:11:35 | 269,022,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,323 | h | MyJSONVisitor.h |
// Generated from JSON.g4 by ANTLR 4.7.2
#pragma once
#include <iostream>
#include "antlr4-runtime.h"
#include "JSONVisitor.h"
using namespace std;
/**
* This class provides an empty implementation of JSONVisitor, which can be
* extended to create a visitor which only needs to handle a subset of the available m... |
6395dd340f4304d27ea0d938c4237ba117c15e0d | 3edf09116e2fba6fdc481af2fc223e4b6f181ec1 | /include/is_detected.hpp | 1816ca2c620e70138eb158d12ca104f080247c1e | [] | no_license | StefanGroth/template-stuff | 67b0b21ae0f76f862c3be15e6545cd8ff260f913 | 30967d8f5776fae5547180149bcf306a637b1e83 | refs/heads/master | 2020-04-28T01:22:02.914385 | 2019-03-10T20:16:48 | 2019-03-10T20:16:48 | 174,853,015 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | hpp | is_detected.hpp | #ifndef IS_DETECTED_H
#define IS_DETECTED_H
#include <utility>
template<typename...> using try_to_instantiate = void; // void is used to detect ill-formed types
using disregard_this = void;
//template<typename T, typename Attempt = void> struct is_incrementable : std::false_type {};
template<template<typename...> c... |
b335746fff0e647d4c9ff8ace0f716de5ef00c96 | dfdcfeadee39e694df0f633aa49270e04cc51d5e | /Sonar_OLED_3_5.ino | fc7d81ebe85cdfbc1bfbfb49de554eaee4776ed3 | [] | no_license | wxqwuxiangqian/arduino-Leonardo_2019spring | 7977ede1a796be055b517f876b9909e092b25c82 | 6dbfac394dac547383d6d7791ddd3cc77f9957da | refs/heads/master | 2020-05-18T06:33:29.635812 | 2019-04-13T07:00:48 | 2019-04-13T07:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,394 | ino | Sonar_OLED_3_5.ino | //2019.4.12————测距 + 声控、叠方块(从三个位置)
//用上位机软件写好动作组、保存到控制板,程序直接调用动作组
#include <NewPing.h>
#include <LobotServoController.h>
#include "U8glib.h"
#define TRIG 9 /*超声波TRIG引脚为 9号IO*/
#define ECHO 8 /*超声波ECHO引脚为 8号IO*/
#define MAX_DISTANCE 40 /*最大检测距离为40cm*/
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE ... |
56ed69c9c5a991d80273ac1a7bc2203024a92934 | b9e7a3857cfb48280c2d9810ab2d6cf16e83cab2 | /IOMemoryNet/LinkHelper.inl | 49c54d8226503608f952090a29675b917fb8d445 | [] | no_license | NeuroWhAI/IOMemoryNet | 39185022e2373ff19fc59ead1dd4c4489c74d92c | f65526f6c3bf941817232ea9db3b30a854bb8ec4 | refs/heads/master | 2021-01-10T15:52:46.019915 | 2015-12-21T07:58:00 | 2015-12-21T07:58:00 | 47,960,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | inl | LinkHelper.inl | #ifndef __LINK_HELPER_INL__
#define __LINK_HELPER_INL__
#include "LinkHelper.h"
#include "Cell.h"
#include "Linker.h"
#include "LinkerPort.h"
template <typename TCell, typename TLinker>
bool LinkHelper<TCell, TLinker>::connect(std::shared_ptr<TCell> pInCell, std::shared_ptr<TLinker> pLinke... |
599f7f436f34de3ceb3cdaa3f3647a891e3a2c3b | cef2b4199406a719b6a2fac726b83c5b716bed12 | /Epsi/include/sdtl/stream/map.hxx | 65833f2879f74b8bd6e9aeaf03191d525f4c9038 | [
"BSD-2-Clause"
] | permissive | dominiquehli/dm | 8fda9f661cff03bcf5b57ece1c5fbe0d2986cd4f | bad4092c97a075a44c19eddd1b7fdfd811a73533 | refs/heads/master | 2023-05-02T16:16:43.170288 | 2023-04-18T15:04:36 | 2023-04-18T15:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,443 | hxx | map.hxx | /*-
* Copyright (c) 2007-2012 Dominique Li <dominique.li@univ-tours.fr>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright... |
95f5c93013a8737bc3dd6cc24a9c06a7b0c5b750 | 19fc6e6c6767d91b37775f5707d1536df747369e | /mex/include/wildmagic-5.7/include/Wm5ConvexPolygon2.h | 68bd2a651baabf93a5be6ed38f9ae2940a7bb270 | [
"BSD-2-Clause"
] | permissive | HanLab-BME-MTU/extern | ef062722ffc3877e5691bc46135d9ff56d7199e6 | 8f0ab6a554006ebc60e12b1595ecaafd0aec541b | refs/heads/master | 2021-04-29T23:51:26.091473 | 2020-01-31T03:07:12 | 2020-01-31T03:07:12 | 121,562,896 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,974 | h | Wm5ConvexPolygon2.h | // Geometric Tools, LLC
// Copyright (c) 1998-2011
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.0 (2010/01/01)
#ifndef WM5CONVEXPOLYGON2_H
#define WM5CONVEXPOLYGON2_H... |
69f0d327fc531057222d5fde0a60d6c5fb573c37 | 591c1150c31fe03e64f319393cde9158008fda61 | /som/som.ino | 19a731f1a662473cf650a3c12143c16d490d28c2 | [] | no_license | jeronimopenha/ExemplosArduino | 6476be8f3bcef8f884880a087521c660357dea58 | 953b0152a06c59e0a62fb042aeeb053e20d77f64 | refs/heads/main | 2023-02-02T20:36:56.722516 | 2020-12-23T22:04:32 | 2020-12-23T22:04:32 | 323,442,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,531 | ino | som.ino | #define SOM 2
#define C 132
#define D 149
#define E 165
#define FA 176
#define G 198
#define A 220
#define B 248
byte nota;
byte counter = 0;
byte flag = 0;
void setup() {
Serial.begin(9600);
delay(1000);
//define o pino 9 como saída
pinMode(SOM, OUTPUT);
Serial.println("Programa Piano Rús... |
ec9585321352ea30d44763d05756db7285c8b1ff | 8a3780ddebe102fa8d8db439c18268f9b43b524e | /Motion/moves/ApproachMove.cpp | ab51d29239d28dbd1a0b152a3e3e52b6f63599f7 | [] | no_license | Rhoban/kid_size_public | 02c89392db808baadf2ba281e048c1072ccc2333 | 1ad2c2fc23d4582340e06b069c08c8f6fe53cb20 | refs/heads/master | 2020-07-24T16:33:27.520891 | 2019-09-12T12:59:46 | 2019-09-12T12:59:46 | 207,982,989 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,642 | cpp | ApproachMove.cpp | #include "ApproachMove.h"
#include "rhoban_utils/logging/logger.h"
#include "KickController.h"
#include "Walk.h"
#include "Kick.h"
#include "scheduler/MoveScheduler.h"
#include <services/LocalisationService.h>
#include <services/TeamPlayService.h>
#include <services/StrategyService.h>
#include <services/DecisionServ... |
2a9120f34d3c527c819ab0dd1308abcb474e15e8 | 7ff4b6ca4f9964210398759c73792ac486759439 | /Plugins/FaceRecognition/face_recognition/Fisherfaces.h | 8e5aaeac7a4d9cf31b48cbbc6ff47c91825f5d6d | [] | no_license | ITU-DASYALab/O3 | 56f4ee171d876949bf64ae5f5180f1e80916c581 | 34497af6a32ff154d5dcf61eeba12e24eb1b2d10 | refs/heads/master | 2022-12-01T22:16:12.332425 | 2020-08-20T10:29:07 | 2020-08-20T10:29:07 | 163,879,664 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | Fisherfaces.h | #ifndef __FISHERFACES_H__
#define __FISHERFACES_H__
#include <iostream>
#include <vector>
#include <float.h>
#include <opencv2/opencv.hpp>
#include "ImageList.h"
#include "RecImage.h"
#include "LDA.h";
#include "../common/common.h"
#include "Recognizer.h"
using namespace std;
using namespace cv;
... |
a863db6349ed09865c18339735ffef9c706a27f3 | c2812cc942d353b17cffe4b0e5263371e3b507ea | /BinaryNumber.cpp | fb10f1aa6b15c4efbf8531b40dbf30eceda12b0a | [] | no_license | retro040361/HackerRank_30DaysOfCode | d8b536374d67612f8348897148eb8d9ef9b97cb0 | 40b795fe6294e4e2b86964e730ccfae3584cd0a3 | refs/heads/main | 2023-02-06T17:26:44.285433 | 2020-12-31T18:36:24 | 2020-12-31T18:36:24 | 325,854,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,016 | cpp | BinaryNumber.cpp | #include <iostream>
#include <vector>
using namespace std;
int main()
{
long long int n;
while (cin >> n)
{
vector<int> binary;
for (int i = 0; n > 0; i++)
{
binary.push_back(n % 2);
n = n / 2;
}
// binary[i] means 2^i terms
... |
9eeff9872ee09c534639769be57503446a02a40e | c5905ec8b51a33ab87957d9f33cd48ff6b6e62c3 | /align_dlib.h | e8134b600c3da8a3f28f06eeafa74779b30b8455 | [] | no_license | dioververa/OpenFaceCPP | c9560f90f4aa958e3fc9c764d44fdaa48c5d0e7d | 4b5b44918ae25d44fe0bd09712ba2e538208d7b0 | refs/heads/master | 2020-05-29T15:12:40.582585 | 2017-10-18T14:25:23 | 2017-10-18T14:25:23 | 63,895,254 | 16 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | h | align_dlib.h | #ifndef ALIGNDLIB_H
#define ALIGNDLIB_H
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/gui_widgets.h>
#include <dlib/image_io.h>
#include <dlib/image_processing/render_face_detections.h>
#include <dlib/image_processing.h>
#include <dlib/opencv.h>
#include "opencv2/opencv.hpp"
#include <fstream... |
07d6ba504dfe6d47f6c5d86edaedcdb47ad196e0 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/new_hunk_7717.cpp | 68d043410b6bcb59c1f054d4c04991a57f059a13 | [] | 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 | 177 | cpp | new_hunk_7717.cpp | if (amend && initial_commit)
die("You have nothing to amend.");
if (amend && in_merge)
die("You are in the middle of a merge -- cannot amend.");
if (use_message)
f++;
|
fe0abaddb17a14d634e2778cd2fb899b15893849 | 0077a6decee6098b3ca8d44f98987efc60a129c0 | /QJsonRpcClient/qjsonrpcclient_private.h | 4df27b0cdcaafbe44212529dd41b242c1bc632f4 | [
"MIT"
] | permissive | ankertang/qt-rpc-client | 9810945739cd069522f72da6b948c05f99dcc31a | afe9441b8d8a7fe5f55255bcfc14d92a7bf3a171 | refs/heads/master | 2020-05-17T17:41:35.205486 | 2019-04-26T14:48:24 | 2019-04-26T14:48:24 | 183,861,960 | 1 | 0 | null | 2019-04-28T05:51:22 | 2019-04-28T05:51:21 | null | UTF-8 | C++ | false | false | 2,931 | h | qjsonrpcclient_private.h | /* ==============================================================
// https://github.com/thomas92911
// thomas92911@gmail.com
// BTC: 1HDTGpzYCK4BBvA3ik8gX7M1f3oDkX8Aax
//
// care not the gains but the progress
//
// MIT License
//
// Copyright (c) 2019 thomas92911
//
// Permission is hereby granted, f... |
1ca413c90c1cd41ac5241a10dbc89166f81abbfd | 22db05b98b98618ecee58dc9ac16047df9207e8a | /Supervisory/Frames/FrameChartView.cpp | ebcaeae7e2fc328a495ef23adb019d760bb40aa5 | [] | no_license | andreluizmiotto/ecgmonitoring | f3d78fcc2cd81831b12a0c79530313db0e9e6e28 | 49b7981c6f296d2a50142e52afa796a183929a01 | refs/heads/main | 2023-04-13T07:41:44.907101 | 2021-04-27T17:29:09 | 2021-04-27T17:29:09 | 358,887,076 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,876 | cpp | FrameChartView.cpp | //---------------------------------------------------------------------------
#include <fmx.h>
#pragma hdrstop
#include "FrameChartView.h"
#include "IniFiles.hpp"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.fmx"
TfraChartView *fraChartV... |
8e0af7847e6a1840f1e1ee4c10fe98dcd5fc9f85 | 98f9f977a39843e5f7719062f43011ebfd169e42 | /Libs/PluginFramework/service/event/ctkEvent.h | 128706e4f442246be13f6414830cbdac02925f53 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | txdy077345/CTK | 71cab2d77193d09340afe7a50e5dddc3ea66a06d | 7cd253376139ea73f0450e1bad75bab41aa1b507 | refs/heads/master | 2023-05-27T19:20:21.825916 | 2023-04-29T16:35:03 | 2023-04-29T16:35:03 | 276,658,777 | 1 | 0 | Apache-2.0 | 2020-07-02T13:50:30 | 2020-07-02T13:50:29 | null | UTF-8 | C++ | false | false | 4,027 | h | ctkEvent.h | /*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... |
1a299cfd45f603bf80deda5bbe568f881a3c81d8 | a60a76cf75535bdde08a48832f355187ec4ea00e | /recognition/data/avg.cpp | 43c461b413ec17a12f3f750f9909fc59a2608fa9 | [] | no_license | hlycharles/ece-capstone | 9aac6227804b98998b52461bb85f9aa7798aa54e | 8b9ea4a1bb8056532a761dcf8866a3f8f60ac562 | refs/heads/master | 2021-08-28T18:40:03.519079 | 2017-12-13T00:28:02 | 2017-12-13T00:28:02 | 104,920,973 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,597 | cpp | avg.cpp | int avgImg[400] = {
108,
107,
94,
95,
88,
105,
113,
116,
115,
114,
110,
113,
121,
120,
119,
108,
91,
81,
85,
107,
116,
93,
94,
101,
118,
136,
149,
149,
147,
140,
146,
154,
158,
160,
... |
d5cfaa0d7979da3b807bd8b11158fe5cca7e9135 | 184cca2b088d0577ecae7ec9873f8ce50eb5c971 | /src/MessageLib/SystemMessages.cpp | 10af8188b3098c66f740b606545e961055553b14 | [] | no_license | ferrin/mmoserver | b4cee672f725b768ef095f2f2af3f7eaf08acdcc | 0d31607c60d879737752541a6c007fa9d316aa4e | refs/heads/master | 2021-01-17T09:35:29.647731 | 2010-04-20T03:43:33 | 2010-04-20T03:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,826 | cpp | SystemMessages.cpp | /*
---------------------------------------------------------------------------------------
This source file is part of swgANH (Star Wars Galaxies - A New Hope - Server Emulator)
For more information, see http://www.swganh.org
Copyright (c) 2006 - 2010 The swgANH Team
-------------------------------------------------... |
313a2f3bc17bdaa40fb67050868b8ad4165a0c5f | f90c5ee0272b1cab1a44d0d32ad8fa32f15c7738 | /src/readcfg.cpp | 4568b02699d9e37541c6b08feb218aee3f965f67 | [
"MIT"
] | permissive | lkk7/particles-box | 8eab6cb3d38ccc1497715e1b2093fd964b3d14d2 | 2858c36372b630d6db556c6be14443a70feda99a | refs/heads/master | 2021-09-24T18:53:07.033751 | 2018-10-13T12:05:18 | 2018-10-13T12:05:18 | 149,906,415 | 0 | 0 | MIT | 2018-10-13T10:39:58 | 2018-09-22T18:42:32 | C++ | UTF-8 | C++ | false | false | 1,231 | cpp | readcfg.cpp | #include <fstream>
#include <string>
#include "readcfg.hpp"
bool readcfg(int& win_w, int& win_h, int& particle_px_size,
int& number_of_particles, double& particle_speed)
{
std::ifstream cfg_stream("config.cfg");
if(!cfg_stream.is_open())
{
std::cout << "error: couldn't open config.cfg\... |
d64fff289a11f5c0fadd3410e1d282e6cd05ad45 | 2e0d53d64469755352351b7f0ba86d28f1f2464c | /interface/HitSpecObj.h | 89b80ce1f8c8bd416e6b843439af59f3f94900a4 | [] | no_license | konec/usercode-L1RpcTriggerAnalysis | 809c7d9e49b413ee9ddc027748a73c69712c5c96 | 4e9883c704683034ad4a743f87a7546f9eb2a128 | refs/heads/master | 2021-01-21T21:39:14.496753 | 2015-11-24T13:39:50 | 2015-11-24T13:39:50 | 12,709,747 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,047 | h | HitSpecObj.h | #ifndef HitSpecObj_H
#define HitSpecObj_H
#include "TObject.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
class HitSpecObj : public TObject {
public:
HitSpecObj( unsigned int id=0,
const GlobalPoint &pos = GlobalPoint... |
0bf2166672d3dfb0ca9a3daecb90d9c258402f36 | 4b63d452fdadfa67b179c0c1145d35974e1e0be4 | /src/dmmm_to_csv.cpp | e193208f5d4e0f5160298a2311fe970279550430 | [
"MIT"
] | permissive | CrowdDynamicsLab/stackoverflow-stream | 6adee4112658aa6c9f6f6a9ad0cfc6cfe938ceab | 955b8ce50f68b587cff4f5f6d1fa1925ea6ef08d | refs/heads/master | 2021-03-24T09:41:08.728816 | 2019-04-03T14:28:52 | 2019-04-03T14:28:52 | 82,353,027 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,661 | cpp | dmmm_to_csv.cpp | /**
* @file print_hmm.cpp
* Prints the distributions for a HMM model file.
*/
#include <fstream>
#include <iostream>
#include "actions.h"
#include "meta/io/filesystem.h"
#include "meta/io/packed.h"
#include "meta/logging/logger.h"
#include "meta/stats/multinomial.h"
using namespace meta;
MAKE_NUMERIC_IDENTIFIER... |
9f93a9ecf54311381f50939dfd93ee11b2df7b69 | 6a158b414f487be33476caebdf2559ad49e56249 | /src/dungeon_map/dungeon_map.hpp | 2345abd5a11f2a2349a625368325d7cb246c69f7 | [
"MIT"
] | permissive | victorholt/heatgun | f827c4e3fb49b868a66fde42af8573b39505f1f4 | 0dadab61d278eb7334b2b2e7a1e88f5151696f9d | refs/heads/master | 2021-07-16T08:46:44.185932 | 2020-05-27T19:08:39 | 2020-05-27T19:08:39 | 137,523,619 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,955 | hpp | dungeon_map.hpp | /**********************************************************
* Author: Victor Holt
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction... |
869ab2cd54a63f3163e1449ea78c58b67a08ea60 | 31c38c6fa9d1aa2ad0ce113e7084cb8c0f7bc956 | /SDK/AB_GK_KeyRing_ACC01_functions.cpp | e03a3331f64cc79dac896259fb34e4ba4c9d362c | [] | no_license | xnf4o/DBD_SDK_461 | d46feebba60aa71285479e4c71ff5dbf5d57b227 | 9d4fb29a75b63f4bd8813d4ee0cdb897aa792a58 | refs/heads/main | 2023-04-12T22:27:19.819706 | 2021-04-14T22:09:39 | 2021-04-14T22:09:39 | 358,058,055 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,344 | cpp | AB_GK_KeyRing_ACC01_functions.cpp | // Name: DeadByDaylight, Version: 4.6.1
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//-------------------------------------------... |
b9e1be9c0c31bdc7a18a8245e454bac0b8a08bce | 6ddbc5941d969596d8c06cc2bc08827db175a3a7 | /predicate.h | b2852a2bdca26c83be2d7e4d34a75f26d3106ea3 | [] | no_license | Emzapp/proj2 | 99080d14703e99bfbd0d267e3d810dc89eb49603 | 2d5b4638fd21d51576ec4f9fa2acc5d9f932b3f7 | refs/heads/master | 2023-08-17T14:01:32.240809 | 2021-10-02T23:36:58 | 2021-10-02T23:36:58 | 412,933,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | h | predicate.h | #pragma once
#include "parameter.h"
#include <vector>
class Predicate {
public:
void SetName(string theName);
vector<Parameter> ReturnVector();
void PushPredicate(Parameter theParameter);
string ToString();
private:
vector<Parameter> parameterList;
st... |
44017fc81e6778c3c194a8b7cb5df8c7a966898d | 697ece97d86013137f38b6049a6755a7fec6e693 | /code/addons/network/multiplayerfeature/multiplayerfeatureunit.cc | 1315587669f1c8966e6dc9e8052f8da4969cdc89 | [] | no_license | Chinamming/nebuladevice3 | 6ace3c9fd97632ed43743e8eb7fce151f976a906 | 1180cec07aff77da1e9f97cedbcfbf5b56c3630d | refs/heads/master | 2021-01-10T18:17:09.958301 | 2012-11-23T19:55:13 | 2012-11-23T19:55:13 | 47,537,441 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,996 | cc | multiplayerfeatureunit.cc | //------------------------------------------------------------------------------
// multiplayer/multiplayerfeatureunit.cc
// (C) 2008 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "multiplayerfeature/multiplayerfeatureunit.h"
#inclu... |
c10dc54d5354284ac7422d86d35949302eed7a3b | 12d15595be8fe44125356f7af09d9e86da0a8601 | /Codes/C++/2327.cpp | 9d3dbd0c949cc84d6ea617e0357a12cb0117bea5 | [] | no_license | Doveqise/Cloud | d919ffab02cd95c95fb0b7185bc9ff9747d5a7ed | 86f9d38a52b03c5240568765aa0e50520b6fee9f | refs/heads/master | 2020-08-04T23:56:13.051505 | 2019-10-15T22:40:47 | 2019-10-15T22:40:47 | 212,315,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | cpp | 2327.cpp | #include<bits/stdc++.h>
#define N 10005
using namespace std;
int n;
int g[N];
int f[N][2][2];
signed main(){
scanf("%d",&n);
for(int i=1;i<=n;++i)
scanf("%d",&g[i]);
f[0][0][0]=f[0][0][1]=1;
for(int i=1;i<=n;i++)
switch(g[i])
{
case 0:
f[i][0][0]+=f[i-1][0... |
a33858ff4db2ead2f52de489c839c107ec09a81d | 0ebdd777b0656100397da11f1ed2e1873937fdea | /SonicDistance.cpp | 60fa67418e16e7ba5270b45781ff1432fd3ca160 | [] | no_license | gigix74/SonicDistance | 87034801a4a1715e5dee52d8db1f20a9c5582e57 | fe543f79eb1b80137b60d24ac19bbd24432a7af2 | refs/heads/master | 2020-05-24T15:09:00.113127 | 2019-05-18T07:00:11 | 2019-05-18T07:00:11 | 187,323,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,524 | cpp | SonicDistance.cpp | /*
SonicDistance.cpp - Library for UltraSonic sensor
Created by Gheorghe Nedelcu, April 8, 2019.
g_nedelcu@yahoo.com
*/
#include "Arduino.h"
#include "SonicDistance.h"
SonicDistance::SonicDistance(int trig, int echo, unsigned long min_limit, unsigned long max_limit)
: _time_ms(millis()), _last_distance(1000000)... |
091193ad510ff4f413b58f4cc2aa8cea7a645a59 | efcff187361a5c509872bab39ee58630a041730f | /extmem.cpp | cbe4a2feb157ba68fc81632d4b99a8e5c18ea07b | [] | no_license | sscholbe/jextmem | 50dad15abc8c0e07135a07c04a9264fc1c8c650c | f29c5395a2d84621e72a18c9b984a9c8c6d50ee2 | refs/heads/main | 2023-04-25T05:54:32.532517 | 2021-05-14T14:49:20 | 2021-05-14T14:49:20 | 367,379,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,231 | cpp | extmem.cpp | #include "extmem.h"
#include <Windows.h>
#include <sstream>
jclass FindWin32Exception(JNIEnv *env) {
jclass win32ex = env->FindClass("extmem/Win32Exception");
if (win32ex == NULL) {
env->ThrowNew(env->FindClass("java/lang/ClassNotFoundException"), "Win32Exception not found");
return NUL... |
d5bb0f0a35f40243ae86b80c1dda4765557451e9 | 1fafb6f2866275ca452b6e5d7443d4fdcc76d70c | /src/utils.cpp | 08b4f9be55cc95a0a966bf6c61d693a40d356bb3 | [
"Apache-2.0"
] | permissive | Farrael/Math_Solver | 27e75acb91a215043a0c438f8dfc9108ed0bf690 | fce48594b68837f8c69e178ae68e9d6f45b3cdd2 | refs/heads/master | 2021-01-25T06:00:49.213916 | 2015-07-02T15:35:00 | 2015-07-02T15:35:00 | 28,956,328 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,871 | cpp | utils.cpp | #include <iostream>
#include <string.h>
#include <stdlib.h>
/* Internal dependencies */
#include "utils.h"
using namespace std;
char hook[2] = {'[',']'};
char bracket[2] = {'(',')'};
/**
* Converts array of char into n.
* Returns if it was "successful"
*/
void toInteger(char* str, int& n){
unsigned int size = ... |
ca12815a3aa1986fa12c642e3da4159f2e0775a9 | 3a79db21b576f713b508cd3cde8d26c93a6f26c9 | /471B.cpp | 03100d9f633912fe67932ca5eb6631f502b22026 | [] | no_license | otaGran/codeForces | 1c39809baa1aef81bc7265cb7ec6ae2f406b41ee | e5ca5a100fc22127ab4c40254c0b71414e82cde2 | refs/heads/master | 2021-06-06T04:59:06.335636 | 2016-08-23T02:52:26 | 2016-08-23T02:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | cpp | 471B.cpp | #include <bits/stdc++.h>
using namespace std;
void print(vector<pair<int, int> > &v)
{
for (int i = 0 ; i < v.size(); ++i)
cout << v[i].second + 1 << ' ' ;
cout << '\n';
}
int main()
{
vector<pair<int, int> > v;
vector<pair<int, int> > troca;
int n;
int x;
cin >> n;
for (int i = 0 ; i < n ; ++i)
{
c... |
e7150f41088acee4e1d1a8efe35b573113153d37 | 859006ded9e1b0cffc7fa410498e3b8b94c9ad78 | /Sensors/Depth/include/Depth/DepthWorker.h | b107d2dd092a8798ce006932914dcc44b17aaf87 | [] | no_license | viron11111/sub-2012 | 608795566c5ee621e0c27ff53399dfb58b26ecf5 | 761972b1fdb577c59c693a670605b8aaabe90a4d | refs/heads/master | 2021-01-01T04:48:48.762686 | 2012-10-02T23:47:57 | 2012-10-02T23:47:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | h | DepthWorker.h | #ifndef DEPTH_DEPTHWORKER_H
#define DEPTH_DEPTHWORKER_H
#include "Depth/DataObjects/DepthInfo.h"
#include "LibSub/Worker/Worker.h"
#include "LibSub/Worker/WorkerEndpoint.h"
#include "HAL/HAL.h"
namespace subjugator {
class DepthWorker : public Worker {
public:
DepthWorker(HAL &hal, const WorkerConfigLoader &con... |
afdd821bbf9acee7cf0a6667ceab61eb01ef291f | fa7636f647a4df7c0e9c1888330293bc54a009ae | /util.hpp | 76bf2153fe65f4a2287530bf7375425d8e2e245b | [] | no_license | robryk/parsum | a4ed2ff08586c69ae596ca6d8eff262f834b4dc8 | d3433f7f7b137b52a73cfb244d46081528c696c3 | refs/heads/master | 2021-01-10T22:05:29.864610 | 2013-03-25T02:56:56 | 2013-03-25T02:56:56 | 4,130,334 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | hpp | util.hpp | #ifndef __UTIL_GUARD
#define __UTIL_GUARD
#include <memory>
#include <algorithm>
#include <cstring>
#include <cstddef>
#include <sstream>
#include "common.hpp"
template<typename T> class permuted_array {
private:
static const int CACHELINE_SIZE = 128;
int size_;
int step_;
std::unique_ptr<T[]> ptr_;
public:... |
a37d3fad121e593d6927a9ec15b51a2998e15b9a | e3d107007955a1a983ad9b646439ed9581d458f8 | /XTU_work/1108.cpp | d4fa04a8bfed1c45b5f4431059a478eea52c8146 | [] | no_license | xzljyy2021/xtu_shining_xzl_code | 98002433f86770bf17b361c49d2e3a614d1990a0 | 50b416bc64ca60dae4a1c9303d954c76250fcd19 | refs/heads/main | 2023-03-07T14:43:41.236077 | 2021-02-10T12:27:34 | 2021-02-10T12:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | 1108.cpp | #include <stdio.h>
#include <cstring>
#include <math.h>
using namespace std;
char a[37],b[37];
int an,bn;
int turn(char s[],int n)
{
int l=0,len,i,k=1,ans=0,p;
len=strlen(s);
if(s[0]=='-') l++;
for(i=len-1;i>=l;i--)
{
if(s[i]>='0'&&s[i]<='9') p=s[i]-48;
else if(s[i]>='A'&&s[i]<='Z') p=s[i]-55... |
35386efc48ddf0b711898342cfb813903ae21e94 | a4dc776594a883c818075859a86bb567e18247ca | /2022/Day_15.hpp | 0a88d6365a6e744222dcab8457aec5ac1927fb19 | [] | no_license | SinisterMJ/AdventOfCode | d46d4bf3877b3ae258c55ee05a00c154c37d4a37 | ca421e10dc010c1b82dffb1b14347c582774757d | refs/heads/master | 2022-12-27T00:02:32.214757 | 2022-12-25T10:23:07 | 2022-12-25T10:23:07 | 225,685,393 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,175 | hpp | Day_15.hpp | #ifndef ADVENTOFCODE2022_DAY15
#define ADVENTOFCODE2022_DAY15
#include <regex>
#include "../includes/aoc.h"
#include "../includes/Map2DBase.h"
class Day15 {
private:
std::vector<std::string> inputVector;
std::string inputString;
struct SensorPair
{
v2 sensor;
int distance = 0;
... |
47185e678f3b7113f47236864604ee6aa901159f | 60b1b24de7f2315bdec25747b0cdb4b0746ce820 | /v3/software/FSIM/source/frmKeyboard.h | aeda48dbbaee500713348039ae0f23a83a246563 | [] | no_license | robfinch/ANY-1 | c436c52a1b7d0adba2d54313596ba030820d8096 | 0a47c5dc055b85dff92a4ab14a65b7efd16f1196 | refs/heads/main | 2023-07-24T22:36:06.640147 | 2021-09-09T04:24:13 | 2021-09-09T04:24:13 | 332,168,690 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 60,805 | h | frmKeyboard.h | #pragma once
#include "stdafx.h"
#include "clsKeyboard.h"
extern clsKeyboard keybd;
extern clsPIC pic1;
extern volatile unsigned __int8 keybd_status;
extern volatile unsigned __int8 keybd_scancode;
namespace E64 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;... |
a2d6f49edee893c1da917d75e78bee37d2631c9f | cb2df16189c50348a40cf1b20d45c35512ee7907 | /Queue/Linked_Queue.cpp | cf7089757365d0069312cb1be673aa1687e6f182 | [] | no_license | Hqyanyan/DataStructure | 0c9b61b396077cbd521697ec907140f92530eede | 195c4c0238aefa741cf33f7acc37e950ad3f37bc | refs/heads/master | 2020-04-13T11:57:50.406366 | 2018-12-25T12:09:51 | 2018-12-25T12:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 78 | cpp | Linked_Queue.cpp | //
// Created by i_still_mess_up on 2018/10/24.
//
#include "Linked_Queue.h"
|
337c2bc35526fe7482b6c45b3737f750d0c95d29 | e031b8c2267adf33b75880fc109c40526da2e355 | /woody01/Budget.cpp | 459299e32fec6da5cb767e012c05d6a1bca26fb8 | [] | no_license | kartoshka7777/BFU | 3dafd6a4cd110cf4d35815506b2525855c6cda48 | e7af3ba3fb164d902153034272cf55b7db022f21 | refs/heads/master | 2018-01-16T07:11:04.095981 | 2015-05-09T16:59:09 | 2015-05-09T16:59:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | Budget.cpp | #include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int budget;
string filename;
cin >> filename >> budget;
ifstream input(filename + ".tsv");
vector<string> regionname;
vector<int> population;
int i = 0;
while (!input.eof(... |
a0e22f4c6c96ddc6515219100f1720ffaaad47e2 | fe91ffa11707887e4cdddde8f386a8c8e724aa58 | /components/gc/core/globals.h | a736d478765b9f87b634434ccf569bdb3030fed7 | [
"BSD-3-Clause"
] | permissive | akshaymarch7/chromium | 78baac2b45526031846ccbaeca96c639d1d60ace | d273c844a313b1e527dec0d59ce70c95fd2bd458 | refs/heads/master | 2023-02-26T23:48:03.686055 | 2020-04-15T01:20:07 | 2020-04-15T01:20:07 | 255,778,651 | 2 | 1 | BSD-3-Clause | 2020-04-15T02:04:56 | 2020-04-15T02:04:55 | null | UTF-8 | C++ | false | false | 1,156 | h | globals.h | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_GC_CORE_GLOBALS_H_
#define COMPONENTS_GC_CORE_GLOBALS_H_
#include <stddef.h>
#include <stdint.h>
namespace gc {
namespace internal {
... |
e2e53912b87e617221da2503830371240c927f2b | b5934ee80bc502d0a8232819ba1365d3d2471d54 | /CityRegionGenerator.h | 22ada8a22b18e205bdbf269d35c4a354c5a2f31b | [] | no_license | robcarlan/ProceduralCity | b5f54bf911cffe96dc7e087443150c0f3e9c8a0e | be97a52b6a87647c2e15c209dab64a61c32c5dea | refs/heads/master | 2020-12-02T22:19:11.841436 | 2017-12-07T06:52:21 | 2017-12-07T06:52:21 | 44,399,025 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,732 | h | CityRegionGenerator.h | #pragma once
#ifndef Q_MOC_RUN
#include <boost/foreach.hpp>
#endif
#include <vector>
#include <qdebug.h>
#include <QElapsedTimer>
#include "BuildingRegion.h"
#include "BuildingLot.h"
#include "IntersectionGeometry.h"
#include "RoadGeometry.h"
#include "Road.h"
#include "Enums.cpp"
class CityRegionGenerator {
int ... |
1ff9e707101b361ed3d832fc4966881d413b90b4 | 517cfadc80fe404bca3d243fd6d14db8aaf94c70 | /TP7 POO/exo4.cpp | 1554ce5d6b7eea33ab2fec3ee6828c2ef412a761 | [] | no_license | afadili/CPP | cc9cbf11fc40e9aa1574a05d67025ff9b8997771 | a55b6e158027a2884df1f983e0dc11f15c6dffb2 | refs/heads/master | 2020-04-06T18:26:40.177920 | 2018-11-15T11:28:51 | 2018-11-15T11:28:51 | 157,698,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | exo4.cpp | /* TP7 - La STL Partie 1
Amina FADILI IMAC2
*/
#include <iostream>
#include <deque>
#include <algorithm>
int main(int argc, char const *argv[])
{
std::deque<int> file;
for(unsigned int i=0; i<5; ++i)
{
file.push_back(rand()%10);
}
std::cout << "Initialisation de la deque: " << std::endl;
for(unsigned int i... |
952229375a15abb24a381ee8467e4204a3e40bdf | b0559426b69bbd175b9584fc393c718875bba639 | /66-Exercise6.10/main.cpp | de62bd00d23d9bddd887f4092114a0d3ac5a66ba | [] | no_license | QuangTran304/Cpp-challenge | ca8e58ed78bb9d66c8d6f8c5b6bf197575c736a8 | 256691a0d8b7e66c1adc757a3ab89363b22215ca | refs/heads/master | 2020-06-07T05:21:23.474750 | 2019-10-08T03:48:30 | 2019-10-08T03:48:30 | 192,934,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | main.cpp | /*
* Author: Quang Tran
* Date: July 29, 2019
*/
#include <iostream>
void swapTwoValues(int* a, int* b) {
int temp = *a;
*a = *b;
*b = temp;
}
int main() {
int x = 2;
int y = 5;
std::cout << "Value of x before swapping: " << x << std::endl;
std::cout << "Value of y before sw... |
fcdaa879372b245d948889231f3f3bbcb95d3cfa | 92739d8d44f8cc323f9295c4a48290671030784a | /src/png_image.cpp | dbde2c827d33602d04c834da435dc626c8d796dd | [
"MIT"
] | permissive | alexd2580/2dmarkov | 8646bff6d844e5dbb4d1b6a10f88a83326cc5eb2 | b2cd98ab9874392801c0d86e0b8d05843c0b5a2d | refs/heads/master | 2016-08-12T06:41:36.313810 | 2016-04-13T16:24:53 | 2016-04-13T16:24:53 | 55,787,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,551 | cpp | png_image.cpp |
#include <iostream>
#include "png_image.hpp"
using namespace std;
PNG_image::PNG_image(string const& fname) : filename(fname) {}
PNG_image::PNG_image(string const& fname, PNG_image& ref) : filename(fname)
{
height = ref.height;
width = ref.width;
rows = ref.rows;
bytes = ref.bytes;
}
ostream& PNG_image::... |
21a77b649f3efa22013a5a26463a2c91fa1956ee | d15f656f56daa0d1cf9d6bdcac9fab7ddbde393b | /UtilityLib/UtilityGlobal.h | 59d97ec2bb26e3ff6e8f90c499a179db185fac52 | [] | no_license | ljwdust/fold-hcc | 814d02a70bdb4fff90385028a2f76aa2a4ae2bb3 | fe371809065c292d6f36a1d70f8c6a415dd2bb6e | refs/heads/master | 2020-05-18T13:25:47.359249 | 2014-11-15T02:34:39 | 2014-11-15T02:34:39 | 35,209,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 883 | h | UtilityGlobal.h | #pragma once
#include "XmlWriter.h"
#include <QtXml/QDomDocument>
#include <QSharedPointer>
#include <QString>
#include <QVector>
#include <QQueue>
#include <QMap>
#include <QSet>
#include "SurfaceMeshModel.h"
using namespace SurfaceMesh;
namespace SurfaceMesh{
typedef Eigen::Vector2i Vector2i;
typ... |
22ddf3dff5f5bb313ae139d8ce68201b9c84f57a | 5c033b6c9a6c277cc678528c3cda42a36e10ca15 | /include/Objeto.hpp | 08bbda895d3e367e5b5d227d304eec28dbc090fa | [] | no_license | marciomonteiro/INE5420-CG | 5fc85e5cdc8e9d5562efe5d3009126c8c610809c | 77741108720eaa26fbaa4e90476f19007687ef02 | refs/heads/master | 2021-01-19T04:34:12.538113 | 2017-04-15T12:08:54 | 2017-04-15T12:08:54 | 84,434,213 | 1 | 1 | null | 2017-04-15T12:09:31 | 2017-03-09T11:24:47 | C++ | UTF-8 | C++ | false | false | 1,573 | hpp | Objeto.hpp | /*
* ================================================
* FEDERAL UNIVERSITY OF SANTA CATARINA
* ================================================
*
* $Objeto.hpp
*
* Created on: $13 de mar de 2017.
* Authors: Marcio Monteiro and Rodrigo Pedro Marques.
* GitHub: https://github.com/marciomonteiro/INE5420... |
d084321eb1884c9f5b8078d1ae133f6dcae3b44d | 34c81af880b0012bbe03d4fd99b3b012cacaf857 | /V_Engine/ModuleEditor.cpp | 6368d0002561bdbe108672c3259b1376a6922f59 | [] | no_license | Vulpem/V_Terrains | f8783f60fe437cc446add5db107cd2fc4814ebac | d680d2f0373a0a545bf27d68809b3f986e0bd96d | refs/heads/master | 2021-07-16T07:37:50.461246 | 2018-11-26T15:38:44 | 2018-11-26T15:38:44 | 109,832,995 | 0 | 0 | null | 2018-03-07T12:53:52 | 2017-11-07T12:30:34 | C | UTF-8 | C++ | false | false | 22,373 | cpp | ModuleEditor.cpp | #include "Globals.h"
#include "Application.h"
#include "ModuleEditor.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "ModuleAudio.h"
#include "ModuleRenderer3D.h"
#include "ModuleCamera3D.h"
#include "ModulePhysics3D.h"
#include "ModuleGOmanager.h"
#include "ModuleResourceManager.h"
#include "ModuleTerr... |
f077716f57323b1521baf37dcf811b49ddf1c7f7 | 82b950c78dffdc4ac35c2612f049b8fdbac6c1ef | /engine/file_system/manager/io_manager.h | f9ebf0132d02bc490614e211937971cb94281c60 | [] | no_license | OndrejRitomsky/Engine | bdd115cee1b1a8051e158af5c380bb12c10a61c2 | a6f7cde9cdb06127f25cb3eaee6ddb0b14b615e3 | refs/heads/master | 2021-10-10T19:19:58.492770 | 2019-01-15T17:48:36 | 2019-01-15T17:48:36 | 125,720,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 883 | h | io_manager.h | #pragma once
#include <core/collection/hashmap.h>
#include "../file_system_event.h"
#include "../internal/file_system_wrapper.h"
namespace eng {
class StringHashBank;
struct FileSystemEventLoad;
class IOManager {
private:
struct LoadData;
public:
IOManager();
~IOManager();
void Init(core::IAllocator... |
d483134326e60c1f376d65a3e3b1150e9447b7c2 | 556bc516271dfe48b13850d51a6f65dce425adc4 | /acm.timus.ru/1005. Stone Pile/stonepile-2.cpp | 6267ebb69c14291683e3155a9571d231c63780a3 | [] | no_license | nur-alam/Problem-Solving | 4fae30499b5dd802854b7efa0b702b3f173fa236 | b0db93d597142590010b60bfa2054409a6ca6754 | refs/heads/master | 2021-01-13T11:10:06.766089 | 2019-01-16T12:01:52 | 2019-01-16T12:01:52 | 77,365,261 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | cpp | stonepile-2.cpp | #include <iostream>
using namespace std;
int bin[100];
int a[30];
void toBin(int x)
{
int i=0;
while(x!=0)
{
i++;
bin[i]=x%2;
x=x/2;
}
}
int abs1(int x)
{
if(x<0)
return -x;
return x;
}
int main()
{
int i,n,m,b,c,d,e,f,sum1,sum2,j,ans=10000000;
cin>>n;
for(i=1;i<=n;i++)
cin>>a[i];
for(i=1;i<= (1<<n... |
09800865c7a817ad049ee6ac51c02c2229b1a442 | 4a2bffbddfdf046ebc4c4c39b42f55bd87962ab2 | /J_Server/ActionGame.cpp | 8ee85ae18fdfba63d0fc927924441d8dbf210724 | [
"MIT"
] | permissive | Inexika/Source-Priston-Tale | cac5ad0cfae10eeb2e5012cfb0bedd04c111d37a | b3061c945273bd48dd7c3d838703cc3e5478f76e | refs/heads/master | 2017-12-13T01:12:34.515767 | 2015-09-06T16:15:26 | 2015-09-06T16:15:26 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 8,878 | cpp | ActionGame.cpp | #include "smlib3d\\smd3d.h"
#include "smwsock.h"
#include "character.h"
#include "avictrl.h"
#include "playmain.h"
#include "srcsound\\dxwav.h"
#include "fileread.h"
#include "particle.h"
#include "netplay.h"
#include "sinbaram\\sinlinkheader.h"
#include "hobaram\\holinkheader.h"
#include "field.h"
#include "effect... |
b0c7be9576d41015a819c4b0b635d45dea465b7a | 16c16c50b0af4a7c8cd2cb47f6ec7a8bb03246b6 | /file program1.cpp | f6adf618e4344ba5f312ff46144b17eb4d22be42 | [] | no_license | satyaaditya/My_C | 74c546125ad971d9383ebdf3de9c8b629ce6c6fa | 9e7217b2f16f57c47b90e7bf7ced142c8e6baa9a | refs/heads/master | 2021-08-14T18:07:33.073993 | 2017-11-16T11:59:50 | 2017-11-16T11:59:50 | 110,708,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | file program1.cpp | #include<stdio.h>
#include<conio.h>
int main()
{
FILE *fp1; char c;
fp1=fopen("input.c", "w");
FILE *fp2 = fopen("spam.cpp", "r");
while ((c = getc(fp2)) != EOF)
putc(c, fp1);
fclose(fp1); fclose(fp2);
fp1 = fopen("input", "r");
rewind(fp1);
while ((c = getc(fp1)) != EOF)
printf("%c", c);
fclose(fp1);
get... |
b7e82fa7c11c2a9549f0611624c436da6d67fbf0 | ff5425426a001f6b4450ca3ec067ff666b7f2a1a | /JS-Jet/JetNconstituents/working/JetNconstituents.cc | 3db68b40bd4d3c0dfe6981b00abe73c855888ade | [] | no_license | starsdong/analysis | 8a07eeffb78e05e3bf8700738ca2eab275ec5b3c | ea8aa2b3806e30f974a0c14fd2d28a1ad5114196 | refs/heads/master | 2023-06-07T22:34:43.856887 | 2023-05-24T21:19:41 | 2023-05-24T21:19:41 | 78,267,960 | 0 | 0 | null | 2017-01-07T08:30:53 | 2017-01-07T08:30:53 | null | UTF-8 | C++ | false | false | 11,867 | cc | JetNconstituents.cc | //____________________________________________________________________________..
#include "JetNconstituents.h"
#include <fun4all/Fun4AllReturnCodes.h>
#include <fun4all/PHTFileServer.h>
#include <phool/PHCompositeNode.h>
#include <phool/getClass.h>
#include <g4jets/JetMap.h>
#include <g4jets/Jetv1.h>
#include <cen... |
fabed061dba2871228846c07c23ede16aae9ca6c | 44b927b09f8287f4cc79f78040d5fc4effc5e819 | /ShaderHandler/flatshader.cpp | 97b335ddf33d155e8b4499b0782b3bdb9764019d | [] | no_license | QtOpenGL/Renderable | b6f81855b7e0d4be5d0bab4ed841754591f7f389 | abc8c180e609dc02a8737d9af366885995bee264 | refs/heads/master | 2021-07-12T01:06:23.028736 | 2017-10-08T21:32:31 | 2017-10-08T21:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 941 | cpp | flatshader.cpp | #include "flatshader.h"
FlatShader::FlatShader(QObject *parent) : QOpenGLShaderProgram(parent)
{
}
void FlatShader::updateUniforms(QMatrix4x4 &projectionMatrix, QMatrix4x4 &modelViewMatrix)
{
setUniformValue(m_modelViewMatrixUniform, modelViewMatrix);
setUniformValue(m_projecionMatrixUniform, projectionMatrix);
}... |
c02ab5b84503d24559ed7ebc2d608b2dcb385d31 | bf29f90905c1aa85b6505025679e65e6f910b027 | /Code_SASA 저장소/전체/2231 거스름돈(Q).cpp | acb552bd7c8896a3cc5a21d3e8cdca82910eb71d | [] | no_license | Pentagon03/Code-SASA | a56c7a3703bf3342ebc85fa83fbd5ee77fb99b98 | ffecf9f8f70722f58abbcb0f71fb0b9feacc2f79 | refs/heads/master | 2022-12-14T16:59:42.704313 | 2020-09-10T08:52:34 | 2020-09-10T08:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | 2231 거스름돈(Q).cpp | #include <stdio.h>
#include <memory.h>
#include <queue>
using namespace std;
queue<int> Q;
int m, n, coin[10];
int main() {
scanf("%d %d", &m, &n);
for(int i=0; i<n; i++)
scanf("%d", &coin[i]);
int v[100000],flag=0;
for(int i=1;i<=m;i++) v[i]=0;
Q.push(0);
v[0]=0;
while(!Q.empty()){
int x=Q.fr... |
944de88c4787f25dab7d2f00fbb650afb7d66cfc | 9a6dee1aebf98224ef631d009d63c4490d5d85a2 | /include/AABB.h | 04933fb56e52b29ea74449ff0d06f6c3587a4f33 | [] | no_license | agjaeger/rt-one-weekend | f8a80464c4bf9afffec6acb99e9993160b948eb4 | fa9d0a0bee67c940eb2be9a35edfd8ddebc82c04 | refs/heads/master | 2020-04-05T01:24:40.555143 | 2018-11-06T19:19:11 | 2018-11-06T19:19:11 | 156,435,051 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 779 | h | AABB.h |
#pragma once
#include "Vector3.h"
#include "Ray.h"
using namespace rtow::math;
namespace rtow {
namespace scene {
inline float min (float a, float b) {
return a < b ? a : b;
}
inline float max (float a, float b) {
return a > b ? a : b;
}
... |
bfe8394f6d731e673e4de1b696dd305ad57e63c0 | 59683a2da3eab2b0eaa63f7f538ec7a487aaaee2 | /v2offer/07_ConstructBinaryTree/main.cc | f5a699c6f3e09c9eb5d850c26568ca3690745a64 | [] | no_license | abowloflrf/ALGS | 19767c221141a996299972ad2ec8ba61e00d27fa | 246dfed4aa37d77f2c39b9fbd3dd400ef1cd69b9 | refs/heads/master | 2021-12-29T07:42:59.426186 | 2021-10-25T09:55:28 | 2021-10-25T09:55:28 | 104,883,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,218 | cc | main.cc | #include <iostream>
#include <vector>
using namespace std;
class BinaryTreeNode {
public:
int data;
BinaryTreeNode *lchild, *rchild;
BinaryTreeNode(int val) {
this->data = val;
this->rchild = this->lchild = NULL;
}
};
BinaryTreeNode* constructCore(int* startPreOrder, int* endPreOrde... |
4fdda6a8c0f699db18ff9d099c3f7a3101a389ee | d6249a6c85101170b3e0dd548ca6982bc8a94fbd | /Chef/NOV17/PERPALIN.cpp | 9e5fbe916ed1c74e1ac72054ba526b58386ac4e9 | [] | no_license | anshumanv/Competitive | bb5c387168095f3716cabc6c591c3b7697da64da | 828d07ad5217de06736ae538f54524092ec99af4 | refs/heads/master | 2021-08-19T08:35:30.019660 | 2017-11-25T14:38:38 | 2017-11-25T14:38:38 | 81,228,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | PERPALIN.cpp | #include<bits/stdc++.h>
#define newl "\n"
#define MODULO 1000000007
using namespace std;
int main(){
std::ios::sync_with_stdio(false);
int t;
cin >> t;
while(t--) {
int n, p;
cin >> n >> p;
if(p <3 || n < 3)
cout << "impossible" << newl;
else {
int rep = n/p;
string s = "a";
for(int i = 0;... |
0b236294a29d0384158c4b6627d63b3488a30004 | 234343824d174f1d985e6ff5e0c13426f2bed717 | /VijverSpoeling.ino | 4a93a55b529c9bce0507916147c56a8746a735d8 | [] | no_license | Arno-Z/VijverSpoeling | a67d69f6fad5d509d0e7f3172d49ef35cef3caf9 | 46dc44a40ec0a91dd4899e5d5a633226a44a5977 | refs/heads/master | 2021-08-10T13:26:25.402840 | 2017-11-12T16:01:32 | 2017-11-12T16:01:32 | 110,445,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | ino | VijverSpoeling.ino | // the setup function runs once when you press reset or power the board
int levelSensorClean=2;
int levelSensorAlarm=3;
int motorRelais=10;
int solenoirRelais=11;
int alarmRelais=4;
int pollingTime = 5000; //ms
int cycleTime = 30000; //ms
bool alarmState = false;
void setup() {
// initialize digital pin LED_BUIL... |
045d31933c834c93160f2f1d70e3bd691600713f | d379f49b5a35d7816de80bc6467583979f7311a9 | /src/graphics/sdl/sdl_level.hh | eec225944f5c4c8902d41086fa62bdb8a7b7d297 | [] | no_license | hansottowirtz/pacman | aee8bda98fef95e0273a25dca63f9657739c11be | f34b83a3e7c3660fa36d1975d58995424ee1d8bb | refs/heads/master | 2021-01-24T04:42:52.495337 | 2018-06-25T11:59:41 | 2018-06-25T11:59:41 | 122,947,289 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | hh | sdl_level.hh | #pragma once
#include "../../core/level.hh"
#include "../../core/map_ref.hh"
#include "./sdl_window.hh"
#include <string>
class SDLLevel : public Level {
public:
SDLLevel(LevelRef ref);
void setWindow(SDLWindow* window);
void setLevel(MapRef mapRef);
void visualize();
void ... |
4cb5ac4ce42fe161a3776354cb18fa4a3cceeb5d | 1c7af5c70acff9b0699ad6241b151c30b31d1423 | /src/core/game_object/include/dog.h | fdf30d56d82c715cd9dd6574b151b590c2175cf6 | [] | no_license | vkaytsanov/DuckHunt | 79a2512972d9b6b315e2df629d6e150325ff04fa | dede24c70db7165b93fb1918e0524b7f40cf4854 | refs/heads/master | 2023-03-01T11:13:07.145655 | 2021-02-09T21:32:55 | 2021-02-09T21:32:55 | 321,346,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | h | dog.h | //
// Created by Viktor on 17.1.2021 г..
//
#ifndef DOG_H
#define DOG_H
#include "../generic/include/entity_animated.h"
#include "../generic/include/sprite_parsable.h"
enum DogState{
Sniffing,
Jumping,
Laughing,
OneDuck,
TwoDucks
};
class Dog : public EntityAnimated, public SpriteParsable{
private:
int REND... |
6e95d717d704b4dfc8018e8eb3fc7f90bddd664b | cb838e41a4ae8f21860cfe5a17a80a105915734a | /temp_sensor/code.cpp | e1e00f4c8d11f4e4d3f891aff56d3e4d609d766f | [
"BSD-2-Clause"
] | permissive | UCLA-ECE209AS-2018W/Dinggao-Ying | 0b63b6032105a9200aa8816b35336e470e8c7b1a | 87e2de985880e1c549ce5babdaf14842c76bb886 | refs/heads/master | 2021-04-06T19:38:51.542814 | 2018-03-26T05:14:37 | 2018-03-26T05:14:37 | 125,327,371 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,146 | cpp | code.cpp | /* ###*B*###
* Erika Enterprise, version 3
*
* Copyright (C) 2017 Evidence s.r.l.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your optio... |
9db7398499defbd2ebb0994e00583f9ff9943fa5 | e8a39f1ddefae7f39f9fba4cd8a188c08fbf2a06 | /admin.cpp | 38b5393d861d300152618c5ddd7bcb38ce1f742e | [] | no_license | Asmaroth/Mediatheque | 3673f2f96f94e052664d43b9a006ea69e3071767 | 80227ad31fc714ca83b429fabd7f79d0de5988a0 | refs/heads/master | 2021-01-19T22:08:42.732426 | 2017-05-16T08:56:58 | 2017-05-16T08:56:58 | 88,759,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | cpp | admin.cpp | #include "admin.hpp"
admin::admin(){
id = "200";
nom = "Inconnu";
prenom = "Inconnu";
initTableau(resReservee, LIMITE_RESERVATION);
resRendue;
initTableau(resEmpruntee, LIMITE_EMPRUNT);
initTableau(dateEmprunt, LIMITE_EMPRUNT);
mdp = "aaaaaaaa"; //8 a
}
/*admin::admin(int _id, std::string... |
f98d57959e63144f6bd28a2106aaffa40d735c20 | 461a108796fafb8483faafdc6dc114782d55a1cc | /STL/indianMoney_change.cpp | f3149a808774b799a7a4b4107b64fbbbff1f5107 | [] | no_license | aryansin08/DS-Algo | 1c099f0a97acbfa3af8719445ed7ce7eb589afb4 | 0da2c10b7b48f24da967a3ffc6550091b80c6b7e | refs/heads/master | 2021-09-15T14:19:29.888202 | 2021-08-17T10:37:32 | 2021-08-17T10:37:32 | 244,914,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | indianMoney_change.cpp | #include<bits/stdc++.h>
using namespace std;
bool compare(int a, int b) {
return a<=b;
}
int main() {
int coins[] = {1, 2, 5, 10, 20, 50, 100, 200, 500, 2000};
int money;
cout<<"Enter amount : ";
cin>>money;
cout<<endl;
int n = sizeof(coins)/sizeof(coins[0]);
while(money>0) {
int lb = lower_bound(coins, coi... |
c3949d24ec3f7839f3145a0ed9de37bbc4e7b401 | 93f7082e22b059f189311343f7bcf3f3f2db17b8 | /day04/ex01/RadScorption.cpp | 077a22036d5e17fd2e14444030f7505c19265d5c | [] | no_license | Kronx12/CPP | b68f3ee615d3c760214946f19d9d00f5c04280aa | f10ffcd83f3abf12cc4531c45e4ae553ccab4101 | refs/heads/master | 2023-02-07T13:46:26.270608 | 2020-12-29T13:45:42 | 2020-12-29T13:45:42 | 252,364,287 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | cpp | RadScorption.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* RadScorption.cpp :+: :+: :+: ... |
477faad5d4c74dad1393f591d2cf5f5322dbdeb2 | 8de14e73eae2ef2876c87d2de787234bc8c52706 | /ISeeYou/ISeeYouHook/dllMain.cpp | 497e1d6957a18c8acb0beb000b04192330b3aeb6 | [] | no_license | erthalion/Examples-of-code | d612e16c19b7512e13066859e045095fad6e624d | 09b28b92974a9d7d39d3d6dad2f72a5faa60d3c0 | refs/heads/master | 2016-09-11T13:33:59.624471 | 2012-08-19T09:30:55 | 2012-08-19T09:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | cpp | dllMain.cpp | // dllmain.cpp : Defines the entry point for the DLL application.
#include <Windows.h>
#pragma data_seg("SHARED")
HHOOK hook;
#pragma data_seg()
#pragma comment(linker, "/SECTION:SHARED,RWS")
HINSTANCE instance;
BOOL CALLBACK ChangeNameEnum(HWND hwnd,LPARAM lparam){
SendMessageW(hwnd, WM_SETTEXT, 0, LPARAM(L"Я за т... |
a3280ebf4507e05b3318d2a45e9e70fb4ac66efc | 4e0b17789bff7798250d82d593b4d421ffa72460 | /c++/3.cpp | 0b5da83a7ca755b15cf0ffd80b4ad852b101b7ba | [] | no_license | talentlyb/Leetcode | edf7324cb4e22093d897628712a189f74fff5a19 | f4999033e0aed7df0e748debd8d6a351bc3f5f0b | refs/heads/master | 2016-09-06T09:57:53.538389 | 2016-01-17T10:23:23 | 2016-01-17T10:23:23 | 33,287,262 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | 3.cpp | /** First time. 4/19/2015
*/
class Solution {
public:
int lengthOfLongestSubstring(string s) {
unordered_map<char, int> hash;
int len = 0;
int start = 0;
int maxLen = 0;
for (int i = 0; i < s.length(); ++i) {
if (hash.find(s[i]) != hash.end() && hash[s[i]] >= start... |
51ccf1610d9b57a6eea469142fcee5da0a506569 | 5ddd0ec20099a9c3ffe865c835dcceb5b7fd0332 | /of_v0.8.0_vs_release-gesture-recognizer/apps/myApps/GRT_Predict/src/testApp.cpp | b2893fd5d340c0eb799453cd8c27577d1194540b | [
"MIT"
] | permissive | MarkusKonk/Geographic-Interaction | af81f9f4c7c201dd55843d4dd0d369f2f407d480 | b74f6f04656611df8dc4ebdea43f263cea67b366 | refs/heads/master | 2020-12-30T10:36:34.414880 | 2014-02-03T12:37:45 | 2014-02-03T12:37:45 | 13,868,029 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,980 | cpp | testApp.cpp | #include "testApp.h"
MouseControl mouseControl;
GRT_Recognizer recognizer;
GRT_Recognizer oneHandrecognizer;
Nite_HandTracker tracker;
GrabProxie grab;
openniProxie openniP;
//--------------------------------------------------------------
void testApp::setup(){
//mouseControl.startMouseControl();
recognizer.initP... |
4b22d86b16226f88d7d7bee9711e265d7e0e450a | 43687c4dddc36da47122c2e9291a1c65e2bd45d7 | /zippedbufferpool.cpp | 5f5bd30a176979ce208ac3388099843e91be15bb | [] | no_license | stefhack/FileCompressorMultiThreaded | 98e7dad89944f8e7e89c3c6d27a6f9be00b8ec56 | 4071baab63d4e5e040006b2a1203e03c74a6903d | refs/heads/master | 2021-01-11T00:20:38.278079 | 2016-09-25T15:53:30 | 2016-09-25T15:53:30 | 69,173,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,112 | cpp | zippedbufferpool.cpp | #include "zippedbufferpool.h"
#include <memory>
#include "zippedbuffer.h"
#include <QPair>
#include <QDebug>
using namespace std;
ZippedBufferPool::ZippedBufferPool()
{
_allZippersHasDone=false;
}
void ZippedBufferPool::put(ZippedBuffer* buffer){
QMutexLocker locker(&_mutex);
_dataCompressed.push_back(... |
58348aa6808bae65b9d9cf6b3e03b0b2515186b7 | a0d97e57842892f29e77fb477441f86078d3a356 | /sources/tools/GroupTool/grouptool.cpp | b6b4acf028ce28be1323f993d96f5927e46d2a68 | [] | no_license | ymahinc/MyTypon | 89cac5385edeed2d171392e2160b62bf6ed2fd7f | 5fa2548d2cfa909575797474c66361772c9ce397 | refs/heads/master | 2020-04-27T21:03:20.178564 | 2019-03-09T10:56:12 | 2019-03-09T10:56:12 | 174,682,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,888 | cpp | grouptool.cpp | #include "grouptool.h"
#include "ui_grouptool.h"
#include "editgroupundocommand.h"
#include "global.h"
#include "items/myitembase.h"
GroupTool::GroupTool(QWidget *parent, MYItemBase *item)
: MYToolBase(parent), ui(new Ui::GroupTool){
ui->setupUi(this);
m_group = item;
ui->tableWidget->setCellWidget(0,... |
2e64f1bd6dff88291fa054ac7be2c5c51512c1e2 | 43f466020ab52772a07827a766bd4061b1609765 | /Flowers Flourish from France.cpp | ff0ebb7ec0d474651154af8e870ad7666798bc07 | [] | no_license | ALTOHA/COJ | d86a53e16aaf00831472c4247756cc5be3fc5bf5 | 4cbb2d348f60880a4c9d98c523e6ffe51c17dca3 | refs/heads/master | 2020-06-15T03:04:11.649928 | 2020-01-23T17:29:34 | 2020-01-23T17:29:34 | 75,335,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | cpp | Flowers Flourish from France.cpp | #include <cstdio>
#include <cstring>
using namespace std;
int main(){
char letras[100], texto[100000];
int tamano, ascci[100], cont=0, i, j, l=0;
do{
gets(texto);
if (texto[0]!='*'){
tamano=strlen(texto);
for (i=0; i<tamano; i++){
if (texto[i-1]==' ' || i==0){
ascci[l]=texto[i];
... |
1a1591dfc7290115a2ea402beacf6ec05e443c8f | 644ade2af173ac318aedaabee1e7a8b1c720b0b9 | /Source/Common/Shared.h | 885974e18a592311d8695ade1eebd84083e25b14 | [] | no_license | Met-CH4-An/FUNEngine | 0fc488407cabab713da98aeab289f78e62a05741 | 0c8eeda18e2992934e4f6ae2d7642b1aa0bb8eb9 | refs/heads/master | 2020-05-07T10:05:39.604956 | 2019-04-20T06:21:44 | 2019-04-20T06:21:44 | 179,972,181 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 881 | h | Shared.h | #ifndef SHARED__H
#define SHARED__H
////////////////////////////////////////////////////////////////
// секция компиляция файла
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// секция родительского класса
///////////////////////////////... |
2e2df9ff682c71dd7fafc1048832f3f3eea39d7a | 25310dec58e2197ac0a2501b9a8e13e5207e7898 | /MQTTServer/datastore.h | 1f153ac35193320d7272722027dd264e72fc85d0 | [] | no_license | Undertoe/CPE647Project | 572224a112eca283f5467f10a1f9af20af2e907d | 807be2e5c7cb48fcb3cb74fc555c645f4411b352 | refs/heads/master | 2020-05-18T02:21:08.981656 | 2019-04-29T18:23:53 | 2019-04-29T18:23:53 | 184,112,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,405 | h | datastore.h | #ifndef DATASTORE_H
#define DATASTORE_H
#include <deque>
#include <vector>
#include <map>
#include <chrono>
#include <memory>
#include <optional>
#include <iostream>
#include <QString>
#include "singleton.hh"
#include "container_helpers.hh"
#include "circularlockedqueue.h"
#include "semaphorefix.h"
#include "sen... |
550297b87410164e54a5e4073c69f0bd5005fd75 | 54d3f758fbf17d49144fd1b3f017a9697a3a8938 | /easy/test/0028_implement-strstr.cc | 7d92de981a5fbe5569cd432b59a7f5aaf5e9b6cb | [] | no_license | xs-han/leetcode-cpp | 4b8d34b9c64530615f24441d78c9ee494844645b | 7ffb917e5ada5c2186cb7f8c20434df046e4db19 | refs/heads/master | 2020-12-20T04:41:12.255847 | 2020-04-16T17:15:44 | 2020-04-16T17:15:44 | 235,965,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cc | 0028_implement-strstr.cc | //
// Created by xushen on 2/10/20.
//
#include <gtest/gtest.h>
#include "0028_implement-strstr.h"
TEST(T_0028, SOLUTION) {
std::string haystack = "aa", needle = "aaa";
Q_0028::Solution s;
int n = s.strStr(haystack, needle);
std::cout << n << std::endl;
} |
572d7229e2067f2b5159a5a2f197ab52b9e45d42 | a4a018a69e15e2edd43d1c4331b611c46f7a9277 | /Others/101hack30_FourPrimes.cpp | c13e4752cb43f848e5b9f62f3a607fcfea84232f | [] | no_license | sanchitkum/algorithmic-solutions | 207765580d02869cd59ec577db8662a6752a40e2 | b1eebee2ca3a012caf5f3cb6aa5cd799113218e8 | refs/heads/master | 2016-09-05T17:17:55.031903 | 2016-03-01T02:10:18 | 2016-03-01T02:10:18 | 40,711,722 | 11 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,194 | cpp | 101hack30_FourPrimes.cpp | #include <bits/stdc++.h>
typedef long long ll;
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define FOR(i,a,b) for( ll i = a; i <= b; i++ )
#define ROF(i,a,b) for( ll i = a; i >= b; i-- )
#define debug(x) cerr << "[DEBUG] " << #x << " = " << x << endl
#define F first
#define S second
#define mp make_pair
... |
402a59b31f1e63250158ed66ed8dffda37c3ee3e | fb397d527ad0ef6508e20cf911f239533593e2be | /Source/roomConnector.h | d769d8403a80f4057949aa1ce7d95b0a165fecfb | [] | no_license | AnzoDK/C-TxtRPG | 733587dfa55e8ffbe020b4f7eab15bc8a254f768 | 87d7e8bc37260080a8f650f2718e545dc84928af | refs/heads/master | 2021-02-12T10:13:39.462781 | 2020-03-10T13:21:13 | 2020-03-10T13:21:13 | 244,585,232 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 381 | h | roomConnector.h | #pragma once
#include "dungeon.h"
class Room;
class RoomConnector
{
public:
RoomConnector();
//int right;
//int left;
//int forward;
//int backwards;
Room* r_right;
//= Room();
Room* r_left;
//= Room();
Room* r_forward;
//= Room();
Ro... |
0527080d2b5fbea6324590445ef52d571c047132 | 80e36f6f4c2231be022d8ea84ca4a85d77d2c282 | /CursoWIK/ChatRepos/ServerPartDLL/ServerPartDLL/ServerPart.h | d78fa233dc2c4db7c442c415cfa4e2bf1e087cce | [] | no_license | HypeVLSU/CourseWork | 3f97f5155cf4c3c8117007fe250ee9c6fcc59136 | e0007e6a6f9fd32e33abcb1b2df0cb8e17a51d1a | refs/heads/master | 2020-03-19T00:28:26.440368 | 2018-05-30T23:43:27 | 2018-05-30T23:43:27 | 135,483,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,383 | h | ServerPart.h | #pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <thread>
#include <chrono>
#include <Windows.h>
#include <fstream>
#include <Evolution.h>
#include <vector>
... |
e8f51fd2ab3921cc2a1c27687842bc0ac6e1f06a | aa4733448f2768f936ae98379fa6555025e37dff | /Render/Video/CCRRR/Source/DDraw/CBaseRender.h | 84fad83bdf094ab60dab3c2872268a4f0910e546 | [] | no_license | schreibikus/nmPlayer | 0048599d6e5fc60cc44f480fed85f9cf6446cfb4 | 1e6f3fb265ab8ec091177c8cd8f3c6e384df7edc | refs/heads/master | 2020-04-01T20:34:56.120981 | 2017-05-06T08:33:55 | 2017-05-06T08:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,626 | h | CBaseRender.h | /************************************************************************
* *
* VisualOn, Inc. Confidential and Proprietary, 2003 *
* *
************************************************************************/
/*************************************************************... |
b90dddcad958e936d2fd3e9c9f01ed8326798c3f | e7ea789e64db77239ccc4b2ee7294b0d48ea8ddc | /Source/Oscillator.cpp | 654809aff240a46fa55a33fef5a860c520396223 | [] | no_license | Snazzie/SynthVst | a0c48b2a879e39b45ff24b4c5020964bc9f00825 | 5b562b36daac9748dfd955ea1060e819fa1228fd | refs/heads/master | 2023-02-21T01:43:21.689091 | 2019-05-09T00:50:42 | 2019-05-09T00:50:42 | 184,957,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | cpp | Oscillator.cpp | /*
==============================================================================
Oscillator.cpp
Created: 5 May 2019 5:58:52pm
Author: acoop
==============================================================================
*/
#include "../JuceLibraryCode/JuceHeader.h"
#include "Oscillator.h"
//================... |
cceff6ebbc61c14604fca7a0cd52166c1227b1a2 | fa4a1e5d5b2a4dddc73aac2b2828b92f4e3c520f | /Managers/ModelManager.cpp | 38a1ee1ccf53cd565cdf0c50f7766b0fe534e850 | [
"MIT"
] | permissive | GuMiner/agow | f733aa771cdf3e865871f353184ad27c478909fe | b8665d5879f43a6bcb6e878827b3b25af9cc1b1d | refs/heads/master | 2020-04-12T06:41:26.948141 | 2017-03-25T18:05:43 | 2017-03-25T18:05:43 | 60,741,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,634 | cpp | ModelManager.cpp | #include <limits>
#include <glm\gtc\matrix_transform.hpp>
#include "Generators\PhysicsGenerator.h"
#include "logging\Logger.h"
#include "ModelLoader.h"
#include "ModelManager.h"
ModelManager::ModelManager(ImageManager* imageManager)
: imageManager(imageManager), nextModelId(1), frameId(1)
{
}
unsigned int ModelMa... |
c4bba7dc104a0b3442a66112069efc2b9a74d4ba | dce62d2c4ec575b4ddea35325c51ebdac41c3788 | /Engine/Core/Clock.cpp | 29b02934ad1d0cc3f3b181b2f956c1c1527a7568 | [] | no_license | wvennes/BeatDetection | 19c1778fc8885e3ef6b87a5f9755e7121365fc0d | cec72979aec3d97686563aa805861bf3258abe37 | refs/heads/master | 2021-01-10T02:22:35.901252 | 2016-01-26T05:51:37 | 2016-01-26T05:51:37 | 50,263,103 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,093 | cpp | Clock.cpp | //---------------------------------------------------------------------------
// Clock.cpp
//---------------------------------------------------------------------------
#include "Engine/Core/EngineCommon.hpp"
#include "Engine/Core/TimeSystem.hpp"
#include "Engine/Core/Clock.hpp"
#define STATIC
STATIC Clock* Clock::s... |
e995cc4ea4cef7b2f8106deb07704c6c908a9ba5 | f72ad6d50a4e0c9e6310f9b8e740e04c12cd81b7 | /kicad/sk561-light2cv/sk561-firmware/sk561-firmware.ino | 7d426314e6c1bb1d1c42f365f7784e12cf5f6a83 | [] | no_license | mirdej/synkie | 53c20b4876a8ddfa220ae477012654190f1bea9d | f53f9b1cc55554d5ac0b0e49424c736633e7a2af | refs/heads/master | 2023-04-16T16:39:52.466322 | 2023-04-08T20:17:37 | 2023-04-08T20:17:37 | 48,944,902 | 30 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,443 | ino | sk561-firmware.ino | //----------------------------------------------------------------------------------------
//
// sk561 Firmware
//
// Target MCU: ATMEGA88
// Copyright: 2021 Michael Egger, me@anyma.ch
// License: This is FREE software (as in free speech, not necessarily free beer)
// published under gnu GPL v.3
//
//-... |
2a637ff992618bed3019745845db0c36b7ac4079 | d2471190088b1b8d876acb5a004296865a1ecb30 | /src/vediorecorde/realtimevedioplay.h | 391650c504a56e3127724c3102472226e3aea253 | [] | no_license | VideosWorks/player-ffmpeg-sdl2 | bd8fdc4bdf30e7b91ce28e04518cf01dad1937fc | cb4299b44841e5a9d6fa3543283934de9622dfda | refs/heads/master | 2020-09-23T21:29:14.626287 | 2019-11-21T01:14:38 | 2019-11-21T01:14:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,639 | h | realtimevedioplay.h |
#ifndef REALTIMEVEDIOPLAY_H
#define REALTIMEVEDIOPLAY_H
#include <QImage>
#include <QObject>
#include <QThread>
#include "sdlplaywidget.h"
#include "rtmpplugflow.h"
extern "C"{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/pixfmt.h>
#include <libswscale/swscale.... |
d9768d8cc64c15372d42ecb17a2afd4ce4d775f7 | fd42254832b12b647fd3b394f2afad9d333f2b0d | /E/gerador.cpp | f3994e839e0173ca227b69326a2b763119b927e9 | [] | no_license | ruybrito106/IO_OPEI_2017 | 53a786055f36ede15c3dfcac1739deee77f17fa9 | aa3cfcabeba37bb1d2a99f1f863ff3633c51d805 | refs/heads/master | 2021-07-21T08:52:34.443094 | 2017-10-31T02:13:30 | 2017-10-31T02:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | gerador.cpp | #include <bits/stdc++.h>
#define fr(a, b, c) for(int a = b; a < c; ++a)
using namespace std;
int main( int argc, char *argv[] ) {
int N = stoi(argv[1])+1, M = stoi(argv[2])+1, K = stoi(argv[3])+1;
cout << N << ' ' << M << endl << K << endl;
int a, b, c, d;
fr(i, 0, K) {
a = rand() % N;
b =... |
842cf733f1015f63ecfd761b5f24751354e81644 | 2cf4ad3f38acf122f8792325c73248dd4504e3b6 | /SourceCode/TankWar/Action/Hide.h | 2492bf0b604574878c36f0e62ea7e5cf6e1f120f | [] | no_license | irvin518/FCEngine | 4313a1b7850bda8fa0b564a3f3833a139bf75b05 | 824bb89825dd3fa0803c70f85b489777a94cf387 | refs/heads/master | 2021-01-19T14:30:01.354823 | 2014-05-16T11:33:47 | 2014-05-16T11:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | h | Hide.h | #ifndef TANKWAR_ACTION_HIDE_H_INCLUDE
#define TANKWAR_ACTION_HIDE_H_INCLUDE
#include "ActionBase.h"
class CHide : public CActionBase
{
typedef CActionBase super;
DECLARE_REFLECT_GUID(CHide, 0xB0BD8DA3, CActionBase)
public:
CHide();
virtual ~CHide();
virtual void ReflectData(CSerializer& serializer)... |
10e6afee9c372884ad570678a393b81e18b173c1 | bae21e89328126be65abc33a3a8b50cd445edd6b | /Source/Editor/OrbitEditor.h | 74fc6c063ad4eacb7a6dea8490ea8c20db6117c9 | [] | no_license | Janix4000/PlanetSimulator | dd982cf30f098348c1d5f5e843f0bb71245d1a7c | ee6de08757391bdf013708bd7b247020070ee3c0 | refs/heads/master | 2021-04-26T23:34:34.193391 | 2021-04-06T16:54:30 | 2021-04-06T16:54:30 | 123,822,543 | 0 | 0 | null | 2018-03-08T16:49:47 | 2018-03-04T19:44:24 | C++ | UTF-8 | C++ | false | false | 1,017 | h | OrbitEditor.h | #pragma once
#include "BaseEditor.h"
#include "Orbit.h"
class OrbitEditor
:
public BaseEditor
{
public:
OrbitEditor(PlanetHolder& holder)
:
BaseEditor(Key::O, holder)
{}
void handleInput(const sf::RenderWindow& window) override
{
if (isActive())
{
orbit.setOrbiterPos(getRealMousePos(window));
}
... |
07cdceb202972c19c9c7370abf73e35a589ce74d | cf7ae4ac2644daa52e0f7c5ae30c72b66d15fc7f | /GenerateMakeLists/STL/mySafeVector.h | d24818cbd68d27e26dfb061c0813ef3b9045cdee | [] | no_license | ZHOURUIH/GameEditor | 13cebb5037a46d1c414c944b4f0229b26d859fb5 | eb391bd8c2bec8976c29047183722f90d75af361 | refs/heads/master | 2023-08-21T10:56:59.318660 | 2023-08-10T16:33:40 | 2023-08-10T16:33:40 | 133,002,663 | 18 | 21 | null | null | null | null | UTF-8 | C++ | false | false | 2,281 | h | mySafeVector.h | #ifndef _MY_SAFE_VECTOR_H_
#define _MY_SAFE_VECTOR_H_
#include "mySTL.h"
#include "myVector.h"
// 如果Value是引用数据类型,则尽量设置为指针,否则在同步时可能无法获取正确的结果
template<typename T>
struct VectorModify
{
T mValue;
bool mAdd;
VectorModify(const T& value, bool add)
{
mValue = value;
mAdd = add;
}
};
template<typename T>
class my... |
ae72552cad853e44bb58184a30c34d6fecbff213 | 4950f533671492606403c519ce6c8ad967df433e | /path_planning/src/solver.cpp | 926912589ffb185db8e212ab842487d3fed7e962 | [] | no_license | koseng-lc/tugas-robotika | 3b02d7e011f8dcea367bee8f730ce112d83fd7e6 | fe659f38eff1293506a9816d878006485f49fed1 | refs/heads/master | 2020-07-29T22:50:20.562077 | 2019-11-01T08:15:39 | 2019-11-01T08:15:39 | 209,990,645 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,182 | cpp | solver.cpp | #include "path_planning/solver.h"
Solver::Solver()
: graph_(new Graph(CELL_ROWS * CELL_COLS))
, ogm_(new OGM(CELL_COLS, CELL_ROWS))
, finished_(false){
initGraph();
}
Solver::~Solver(){
}
void Solver::initGraph(){
std::cout << "Initializing Graph..." << std::endl;
constexpr auto sqrt_2 = s... |
035ea46b54e1bce3a2ee32c4cdc634d0abe9fd8d | c18e3cba4f445613b2ed7503061cdfe088d46da5 | /docs/mfc/codesnippet/CPP/how-to-make-a-type-safe-collection_5.h | 53d17b1dfa54222d4aa1a6fd6e9b32140360bf48 | [
"CC-BY-4.0",
"MIT"
] | permissive | MicrosoftDocs/cpp-docs | dad03e548e13ca6a6e978df3ba84c4858c77d4bd | 87bacc85d5a1e9118a69122d84c43d70f6893f72 | refs/heads/main | 2023-09-01T00:19:22.423787 | 2023-08-28T17:27:40 | 2023-08-28T17:27:40 | 73,740,405 | 1,354 | 1,213 | CC-BY-4.0 | 2023-09-08T21:27:46 | 2016-11-14T19:38:32 | PowerShell | UTF-8 | C++ | false | false | 198 | h | how-to-make-a-type-safe-collection_5.h | class CPersonList : public CObList
{
public:
void AddHeadPerson(CPerson* person)
{
AddHead(person);
}
const CPerson* GetHeadPerson()
{
return (CPerson*)GetHead();
}
}; |
39d854ba36b82021a3072774cf04260280d1ea51 | c0860afe6c3f3b25c6d344d6ce7f715e1139c9a2 | /big_integer_opt/vector_optimized.cpp | 478af9eb56f026ca2323f394284c82ece684d396 | [] | no_license | softitova/cpp_asm | 2edf1e5f11483dc6ffda98f61c8157da3beb4219 | 136f3d042e945a115ed97046afd5a4ca36669025 | refs/heads/master | 2021-06-23T19:01:42.143003 | 2017-09-07T22:54:57 | 2017-09-07T22:54:57 | 92,619,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,321 | cpp | vector_optimized.cpp | #include "vector_optimized.h"
#include <iostream>
#include <cassert>
#include <bits/stdc++.h>
opt_vector::opt_vector() : small_number(0), opt_size(0), is_big(false) {}
opt_vector::opt_vector(const opt_vector& other) : opt_size(other.opt_size),
is_big(other.is_big)
{
if(!other.is_big) {
... |
ad9f5735de00500d355403a26725409860b15152 | 3ef2c6f7dea91b29427eefa5397bac170da1320e | /Creating.cpp | cdf3e5206de1d363efa2173c30868dc382907046 | [] | no_license | ouaddani/Creating-and-writing-to-a-file1 | e39d1ae85c5a7d4a1a3c52f5b397cafc7940cbdc | 11d74b1afa33f525e6a8f7020251a90efdd79868 | refs/heads/master | 2021-05-08T02:10:34.323333 | 2017-10-25T20:44:49 | 2017-10-25T20:44:49 | 107,976,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | cpp | Creating.cpp | #include <iostream>
#include <fstream>
#include <vector>
using namespace std;
int main() {
int n;
cout<<"\n-------------------------------------------------------\n";
cout<<"\n---------------------Write your data-------------------\n";
cout<<"\n-------------------------------------------------------\n";
cout<< "Pleas... |
d8d355dc5aa2612543c7f10bd38afd03919c7718 | 229bc416fba574212edf87112d309b3b9ac3c629 | /为运算表达式设计优先级/为运算表达式设计优先级/test.cpp | d7456d8583707193461bf441a74c880ae44f5e07 | [] | no_license | lucky529/Leetcode | 1a1d105c29c28f9db3ad7c3bd139038f42a65bdd | f4f19f680b05f5f4ec26fdfeb55439f288bb39ff | refs/heads/master | 2020-05-04T06:04:46.357478 | 2020-03-03T08:52:55 | 2020-03-03T08:52:55 | 178,998,077 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,186 | cpp | test.cpp | //回溯搜索。该问题牵涉到括号的组合问题,一般使用递归 + 回溯的思想。主要想法:
//
//其一,递归回溯。可以产生所有的组合方式。
//
//其二,每个小组合方式相当于一个子集,不断的将计算结果返回给上一层。
//
//举例:a + (b - (c * d))会不断的变成a + (b - (res1 * res2))->a + (res1 - res2)->res1 + res2
//
//似乎计算结果不需要for循环?其实有这种情况,a + (b - (c * d))和a + (b - c) * d)),这里 a + res2
//,res2就可能有多种情况。
class Solution {
public:
vector<... |
7fba441b7245d65b6356135f9b058a795cf3c54f | f862ae64559a336b5876a788dae4bb3bad56b7a7 | /Tutorial05/Include/NsCore/BaseKernelSystem.h | afe75543cc654f88c5403dd4c0ea01ecb99ff108 | [] | no_license | nitianxiaoshuai/NoesisDemo | ef9485f4f015707cae15e017fcd8593ebc4fd216 | dc949eb8058361fbba0d6be58503bef824216453 | refs/heads/master | 2020-06-17T06:14:36.282909 | 2016-12-01T00:09:25 | 2016-12-01T00:09:25 | 75,034,645 | 1 | 8 | null | 2016-12-07T01:13:31 | 2016-11-29T02:28:47 | C++ | UTF-8 | C++ | false | false | 1,454 | h | BaseKernelSystem.h | ////////////////////////////////////////////////////////////////////////////////////////////////////
// Noesis Engine - http://www.noesisengine.com
// Copyright (c) 2009-2010 Noesis Technologies S.L. All Rights Reserved.
// [CR #931]
//////////////////////////////////////////////////////////////////////////////////... |
8443fcb989a98045e351e2f8bc222d80ccd99e10 | 5fef97704be8e4fdaf74babb02e9a79c3702c953 | /tscr/winlist.h | 70f9b9bc6b4f95f5aa893a356ca4b5f6b3d5a3d9 | [
"BSD-2-Clause"
] | permissive | kotohvost/yui | 44f8044d361fb3ef7189dc00349ead61e3456609 | bbe0e63c47901f0ab4657396f7d435cc2312d482 | refs/heads/master | 2020-04-26T06:28:35.068298 | 2014-09-21T22:41:58 | 2014-09-21T22:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | winlist.h | /*
$Id: winlist.h,v 3.2.2.2 2007/07/24 11:28:12 shelton Exp $
*/
#ifndef _WINDOWS_LIST
#define _WINDOWS_LIST
#include "listbox.h"
class winList : public listBox
{
protected:
int *no;
void setSelectedWin();
public:
winList( int *n );
~winList();
virtual void resizeScreen( Rect &old );
virtual int is... |
04e848493393fd320dacd8518391095790f8dd26 | 69ada3404842e83e09fc740876cf1c1f8a03d14b | /TestingGrounds/Source/TestingGrounds/Private/Terrain/Tile.cpp | f708c155ee6fb1ea67fa74d5c6125f92a8a05d78 | [] | no_license | DEM0N194/05_TestingGrounds | 4da913bffde6bedfa18ce7fdeb91388d6d9afd4d | ee88f29ea42c735b3d9a5134a7435f4b904ac1ba | refs/heads/master | 2020-03-23T00:54:29.890625 | 2018-09-28T15:36:37 | 2018-09-28T15:36:37 | 140,775,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,033 | cpp | Tile.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Terrain/Tile.h"
#include "Engine/World.h"
#include "DrawDebugHelpers.h"
#include "ActorPool.h"
#include "NavigationSystem.h"
// Sets default values
ATile::ATile()
{
// Set this actor to call Tick() every frame. You can turn th... |
40a962686c78d0bbb480da740f11cbf527753c28 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/TAO/orbsvcs/orbsvcs/Scheduler_Utilities.inl | c662025627ebe26e8892864cd9d551dee55626ec | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-sun-iiop"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 1,399 | inl | Scheduler_Utilities.inl | // ============================================================================
// ============================================================================
// Construct a helper class instance from values for
// the fields of the IDL struct it wraps.
ACE_INLINE
ACE_RT_Info::ACE_RT_Info (const char* entry_point_,... |
a4dd77fc91f1b08e217c6c5b2dd2e203b5d3d03f | a6a8ebf205181f9d370d3a603e7f7fd7b2f30fa3 | /Lab-10/Lab-10q1.cpp | 3ba53457657b91e33885dd25b76c270f8ff43693 | [] | no_license | rajatkhanna1999/DSA-CSL-106 | 46fd57bb3de3cd5823a6fdb2f143a1218a4a0c2d | 3a13917fdde82cddb2f86a18a3a7ed5fd0a8bd14 | refs/heads/master | 2021-10-10T06:01:33.802049 | 2019-01-07T13:38:36 | 2019-01-07T13:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,799 | cpp | Lab-10q1.cpp | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define PI 3.14159265358979323
#define debug(x) cout<<"Case "<<x<<": "
#define For(i,n) for(long long i=0;i<n;i++)
#define Frabs(i,a,b) for(long long i = a; i < b; i++)
#define Frabr(i,a,b) for(long long i = ... |
b2e82d6c8af3d40001eb64a7a55972acf2ec1941 | bf276c6108d219d29bab60ccfcefdde4d9c1b65d | /kernel/include/bs_vector_shared.h | 89a9eaf929b10f4a8073894624ada431d27a7b75 | [] | no_license | brbr520/bluesky | 4a66be03337a4bbae013489495a9a072ce308692 | a69bda4bf10364a32d9ae2557e6ab4ef5b7ee21a | refs/heads/master | 2021-01-23T22:06:19.260739 | 2013-04-27T12:53:17 | 2013-04-27T12:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,672 | h | bs_vector_shared.h | // This file is part of BlueSky
//
// BlueSky is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 3
// of the License, or (at your option) any later version.
//
// BlueSky is distributed ... |
5468e8f511c2c7d6983625105d7504ea28cf10e1 | 0924811574db23b20df99efa3e8e2b4e314c92c1 | /src/njoy21/input/BROADR/Card2/Temp1.hpp | 62a47ae24b8807a096b451460b5a9e006a2fce87 | [
"BSD-2-Clause"
] | permissive | McStasMcXtrace/NJOY21 | 32b0eb8c442f8a2f244be620a1d389ea6f8f0961 | c4c2657c8dcc3629bcdc35ba6b3707c91ae030e9 | refs/heads/master | 2021-01-09T05:23:27.780319 | 2018-06-14T12:11:43 | 2018-06-14T12:11:43 | 80,757,654 | 1 | 0 | null | 2018-06-14T12:11:44 | 2017-02-02T18:53:52 | C++ | UTF-8 | C++ | false | false | 679 | hpp | Temp1.hpp | struct Temp1 {
using Value_t = Quantity< Kelvin >;
static std::string name(){ return "temp1"; }
static std::string description(){
return
"temp1 is an optional argument specifying a temperature in Kelvin.\n"
"The argument value specifies the reference temperature from which\n"
"broadening ope... |
c7e76a4deca6184999fdeaa3689812e0c9d7654b | 8a0273fa6c3a5929cd6aed71b42bf8dd98bd2f32 | /tasks/ImuTask.cpp | d4f5e37e8fa27c731575347a315483bf0cf01ac1 | [] | no_license | joaobrittoneto/simulation-orogen-rock_gazebo | 9b352632357773b2ac6b1f9547202039008dcc73 | 6c0956c51900dd39d62ce8c6c14de836dd2e678d | refs/heads/master | 2021-04-15T08:10:20.522104 | 2018-03-02T13:19:26 | 2018-03-02T13:19:26 | 126,485,839 | 0 | 0 | null | 2018-03-23T13:00:52 | 2018-03-23T13:00:52 | null | UTF-8 | C++ | false | false | 3,412 | cpp | ImuTask.cpp | /* Generated from orogen/lib/orogen/templates/tasks/Task.cpp */
#include "ImuTask.hpp"
#include <gazebo/sensors/ImuSensor.hh>
#include <gazebo/sensors/SensorsIface.hh>
#include "Gazebo7Shims.hpp"
using namespace std;
using namespace gazebo;
using namespace rock_gazebo;
typedef ignition::math::Pose3d IgnPose3d;
typed... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.