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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5608ea91c02f6977608c4eeab30a2a9b743b7f96 | 1a56507d22f7c51091966091397d861b953ff8c2 | /Source/PluginProcessor.cpp | 989ca4791723567fc548dfa0fc7c25a84f89c5f3 | [
"MIT"
] | permissive | godofecht/Statik | 80f42b7d2e5b49b891ab4e1a790a6de30f5a98c9 | 0ea4a8e21dff89d9be8a0c26c00050a89f8925fb | refs/heads/main | 2023-01-04T17:19:29.156298 | 2020-10-29T11:22:13 | 2020-10-29T11:22:13 | 308,286,131 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,486 | cpp | PluginProcessor.cpp | /*
==============================================================================
This file contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
//==============... |
7d65476dc5c0f0e24a8ddce9f77dba8035b8e322 | 74317a6c7dad669b5e44aa86ca9cd2f4369509be | /Source/LuxShooter/Public/Characters/LuxCharacterBase.h | 970a0b103700ef1abc4c93bda208d83fd7c825b6 | [] | no_license | JTuthill01/LuxShooter | 395e549cd437aa19b237bec01dd46911f6b22f5d | 4b7916a473975083141e68a3e7d5014423708787 | refs/heads/master | 2020-12-09T01:46:34.055879 | 2020-01-16T15:30:15 | 2020-01-16T15:30:15 | 233,155,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,216 | h | LuxCharacterBase.h | #pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "LuxCharacterBase.generated.h"
class UCameraComponent;
class AWeaponsBase;
UCLASS()
class LUXSHOOTER_API ALuxCharacterBase : public ACharacter
{
GENERATED_BODY()
UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category... |
c265650a67d68592bf662cb596db3edd0c7e1b0c | 550857279944d9a316ce699ef5efbd3d3d64d582 | /AVR_Site/Ard/Ard.ino | 91499df48fe3b1e052a0cad5242b008b7a2f9df2 | [] | no_license | Dejv99/Arduino | c073da5dab09b05ca940fb145e3c1a0dbe7cacbe | 59d1fa4e2bfd27efa2e4e28999a038ddca002003 | refs/heads/master | 2021-05-29T15:29:46.088597 | 2014-04-01T07:23:50 | 2014-04-01T07:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | ino | Ard.ino | #include <Arduino.h>
void blink();
volatile int state = LOW;
volatile bool x = false;
void setup()
{
Serial.begin(9600);
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
attachInterrupt(0, blink, CHANGE);
pinMode(5, OUTPUT);
pinMode(2, INPUT);
}
v... |
4bb222af2baabe099c5cdf36ef6393892545eefc | 2c6016eed76923974a9d9c1fe5ca0615d9dd2919 | /Open-cv3/Practice_project/equalizeHist.cpp | c25b10b9ca194876f936acc3489ff887f6fd671f | [] | no_license | Kwongy/Picture-Processing | 41aa693f33b387b190d7ed24bb752037de71b7ab | 6f9735708957851ac187019e3f157f2aeb99d76b | refs/heads/master | 2020-07-13T19:36:15.943743 | 2019-12-30T14:24:21 | 2019-12-30T14:24:21 | 205,140,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | equalizeHist.cpp | #include<iostream>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
using namespace std;
using namespace cv;
Mat g_srcImage, g_dstImage;
int main() {
g_srcImage = imread("C:\\Users\\kwong\\Pictures\\girl.jpg", 1);
if (!g_srcImage.data) {
cout << "Image reading error!" << endl;
return... |
4f0f3056fadd68387e3070eb6c0b322ffc382113 | c881fbd7d09e9518fce21f8feacd4f764566737b | /src/http/HttpChunk.h | 9a7f576da824811f6f359cc860640dda4cde4b69 | [
"BSD-2-Clause"
] | permissive | yishui81/octopoda-github | d545e2f429b60c85130a3b61f1e37465e32d1fa1 | 0742041a26a378ff5d99f0ec45b9eb34f11f6ffe | refs/heads/master | 2021-03-12T20:32:48.590065 | 2014-06-03T09:18:59 | 2014-06-03T09:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,879 | h | HttpChunk.h | /*
* HttpChunk.h
*
* Created on: 2014年5月5日
* Author: jacky
*/
#ifndef HTTPCHUNK_H_
#define HTTPCHUNK_H_
#include "ts/I_IOBuffer.h"
/*
*
*/
enum TunnelChunkingAction_t
{
TCA_CHUNK_CONTENT,
TCA_DECHUNK_CONTENT,
TCA_PASSTHRU_CHUNKED_CONTENT,
TCA_PASSTHRU_DECHUNKED_CONTENT
};
class ChunkedHandler
{
... |
245e9f9ea0395b71ba23781ee3b0eaba33306f8c | 1634d4f09e2db354cf9befa24e5340ff092fd9db | /Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Resource/Texture/VWTextureGroup.h | 0f89a10c02eb9574e1651e8616dc2e951508a5d6 | [
"MIT"
] | permissive | RodrigoHolztrattner/Wonderland | cd5a977bec96fda1851119a8de47b40b74bd85b7 | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | refs/heads/master | 2021-01-10T15:29:21.940124 | 2017-10-01T17:12:57 | 2017-10-01T17:12:57 | 84,469,251 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,911 | h | VWTextureGroup.h | ////////////////////////////////////////////////////////////////////////////////
// Filename: VWTextureGroup.h
////////////////////////////////////////////////////////////////////////////////
#pragma once
//////////////
// INCLUDES //
//////////////
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include "..\..\... |
ca112279ebed37b5e547d56041531d66ec0df20f | 89486a3a1005e2cba9f0d83bf62193e6f43a900c | /common/helpers/ApplicationBase.cpp | ed2ba960f05f3def9ebbaeb8dc5e3a0087860824 | [] | no_license | open-source-bb/osbb-event-1-dbus-ipc | 7fafc1a389390cf136bdff31bc1b909626a80f06 | 03149bfc7dcf81b0f337bbe2aa612379bdbf6934 | refs/heads/master | 2020-04-02T18:27:53.454399 | 2018-10-29T10:51:58 | 2018-10-29T10:51:58 | 154,701,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,172 | cpp | ApplicationBase.cpp | #include "ApplicationBase.hpp"
#include <QCommandLineParser>
#include <QThread>
#include "CustomLogger.hpp"
ApplicationBase::ApplicationBase(QObject *parent) :
QObject(parent), m_shouldQuit(false), m_cmdLnParser()
{
LOG(QString("Application %1 version %2 started...").arg(APP_NAME).arg(GIT_VERSION));
m_... |
251fcbde4d0d783f757c795c6fa7e41ea1ef77b4 | bddc4ad48c491e537fba26d0e7078657c874dbac | /Chapter_4/4.cpp | 50d2b3d46186caf3971ec737708bbaddeaf8a861 | [] | no_license | sersajur/Prata | 4d95fb1cc8a4df206dd5a8afa7aafdc81273a166 | 090dfed103f9491c4a10a9647d37c69f13b9d0b9 | refs/heads/master | 2021-03-24T13:56:17.564892 | 2014-09-06T18:32:43 | 2014-09-06T18:32:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | 4.cpp | #include<iostream>
#include<string>
int main()
{
std::string first_name;
std::string last_name;
std::string combined_string;
std::cout << "Enter your first name: ";
getline(std::cin, first_name);
std::cout << "Enter your last name: ";
getline(std::cin, last_name);
combined_string = last_name + ", " + fir... |
e1bd2f40c0cbdf44a2cfdb5273985da1d0574b48 | 90618c07ec0f92dca2ee0a17de9c370afd979b44 | /src/second_step/SecondStepAlg.h | 4b4c51c67505a3fe9d9c1c7c1c95618f7cc2deaf | [] | no_license | szkudi/KODA_BWT | 94f4501213cfd2d57ac57ade11c59e365470b646 | 76abf344daa51114beee476815ae1ed6422c1c24 | refs/heads/master | 2020-05-17T19:19:13.465516 | 2011-01-18T08:47:51 | 2011-01-18T08:47:51 | 1,122,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 731 | h | SecondStepAlg.h | /*
* SecondStepAlg.h
*
* Created on: 29-11-2010
* Author: szkudi
*/
#ifndef SECONDSTEPALG_H_
#define SECONDSTEPALG_H_
#include <stdint.h>
namespace SecondStepAlgs{
class SecondStepAlg{
public:
virtual ~SecondStepAlg() {};
virtual void encodeBuf(const uint8_t* in_buf, uint8_t* out_buf, int buf_size) = ... |
5e08ac6cd68af1f3176960a4b1aac6fd44e7f9dd | 5fd0b45b2f6ec6a6c1802fce1b52e0218d189f89 | /src/mbgl/style/light_observer.hpp | 45beb6492865d68b5f9ac6d82f12d8b78f8e0fff | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause",
"curl",
"ISC",
"BSL-1.0",
"JSON",
"BSD-2-Clause"
] | permissive | reezer/maplibre-gl-native | ca8e7a87331e39a23e2f3cade3578cfb7be50aa8 | d716b5b408900776cbffdc5cffa00c5486e7d1d2 | refs/heads/master | 2023-04-17T03:24:26.571128 | 2021-04-07T01:46:21 | 2021-04-07T01:46:21 | 357,980,368 | 0 | 1 | BSD-2-Clause | 2021-04-30T12:59:38 | 2021-04-14T17:00:10 | null | UTF-8 | C++ | false | false | 229 | hpp | light_observer.hpp | #pragma once
namespace mbgl {
namespace style {
class Light;
class LightObserver {
public:
virtual ~LightObserver() = default;
virtual void onLightChanged(const Light&) {}
};
} // namespace style
} // namespace mbgl
|
78bbada86eea5bdcc7454d6e103b6b711f4fe284 | cfb800c3a1659afc3ce16c65bb013c66de66f160 | /final_ex_1014.cpp | b3fbe8af06cb07d84180a87b4904479c386829e1 | [] | no_license | zhushh/AlgorithmHomeWork-2014 | 361b7fdba73d95b0965538075c7cf6963276bfbb | 3bacafe57acd7b02174781c3d1f8e526e017bf53 | refs/heads/master | 2021-01-17T12:56:31.318383 | 2015-01-16T11:21:49 | 2015-01-16T11:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,616 | cpp | final_ex_1014.cpp | #include <iostream>
using std::cin;
using std::endl;
using std::cout;
#define MAX 201
#define INF 100000006
int m, n;
int dist[MAX];
int visited[MAX];
int graph[MAX][MAX];
int dijkstra(int start, int end) {
for (int i = 0; i < n; i++) { // init param
visited[i] = false;
dist[i] = graph[start][i... |
92b980b7b5e913f27cceae2b613775eba3502a0d | 1199c9106fb7b786b17941677a203b5e5489099b | /include/AST/Expression/UnaryExp.hpp | 7f69c3c628066174b7bd8c8211ee88a8804b0cab | [] | no_license | AntonGladyr/go-lite-compiler | ca03be39e85228b2af34c57a8a3c974474a7428e | 02021fe4e52ae6df37bf00c7947aad88846ed0e8 | refs/heads/master | 2023-03-21T19:11:23.013258 | 2021-03-10T19:36:02 | 2021-03-10T19:36:02 | 346,464,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | hpp | UnaryExp.hpp | #ifndef UNARYEXP_HPP
#define UNARYEXP_HPP
#include <string>
#include "Services/Visitor.hpp"
#include <AST/Expression/Expression.hpp>
const std::string UNARY_BANG = "!";
const std::string UNARY_MINUS = "-";
const std::string UNARY_PLUS = "+";
const std::string UNARY_BWXOR = "^";
class UnaryExp : public Expression {... |
94f5bdc81939c19e368dc561b2fffa87121a4d43 | 994b7371f7861624e72a78487fdb451e5dc32134 | /ООП/Course Project/end_copy/Film.cpp | 68a9240380136bce326c8ed8680adce239f64e77 | [] | no_license | q6q9/Universe | 2e2bff866f4db3473a3afeea2887608e5ee0c55b | c1481d61d7403d75e2d0a4f18f918163bd41ef3e | refs/heads/main | 2023-05-27T20:22:54.577715 | 2021-06-16T00:21:44 | 2021-06-16T00:21:44 | 366,762,124 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 7,892 | cpp | Film.cpp | #include "Film.h"
#include <iostream>
#include <vector>
#include <fstream>
#include <stdarg.h>
#include <string>
#include <regex>
#include <algorithm>
#include <iterator>
#include <ctime>
#include <random>
#include "Repertoire.h"
class Cinema;
void cc();
void print(string text);
void r_cin(int &j);
void to_lower(char ... |
38172aaea166d98238d20b3e17a65d9b8217f12f | 8fdab174252614c3d0eea09a4bd7aa262c087fd1 | /cpp/ZetCode/Qt4/08-EventsSignals/timer.cpp | f7ffa8cafaf6fc81c59136408c31e89538a5ed7d | [] | no_license | idreesdb/Tutorials | a5190c72ad9ad25d9e8302c01357939bd62b75d8 | 754cd20250b7f826caf76a1d3c188826a4babbd3 | refs/heads/master | 2021-01-17T07:37:01.623156 | 2016-05-27T14:03:28 | 2016-05-27T14:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | cpp | timer.cpp | #include <QtCore/QTime>
#include "timer.h"
Timer::Timer(QWidget *parent)
: QWidget(parent) {
label = new QLabel("", this);
label->move(50, 50);
QTime qtime = QTime::currentTime();
QString stime = qtime.toString();
label->setText(stime);
startTimer(1000);
}
void Timer::timerEvent(QTime... |
cd06bb02a77b9888ead161ec2ac161f3eff00609 | 50aefc9656bb8e4136ff51f9366e0a6fe178f7f5 | /src/layers/learning/deconvolution.cpp | 4831d765fd321ebe27cad87c8e0a66d1f1bcdf4d | [
"Apache-2.0"
] | permissive | JaeseungYeom/lbann | 76f3875d4bb3e7d071d3c044a34f4721348e9c0a | e9a31b509d22fe4e53b03cf43de829b7eb6f7dd8 | refs/heads/develop | 2022-11-06T00:10:45.723233 | 2022-05-02T22:41:02 | 2022-05-02T22:41:02 | 118,492,507 | 0 | 0 | NOASSERTION | 2019-02-11T17:55:43 | 2018-01-22T17:44:13 | C++ | UTF-8 | C++ | false | false | 18,042 | cpp | deconvolution.cpp | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
20e0f7abf900b16ec159fb0c1e6f09c0ba21a3e5 | 3bbf3ae74e0c5f8d90f1ec2503e679a5530b73ee | /main.cpp | 2d3889867978284a6413f925b67ae58f9b13afa6 | [] | no_license | sergsenta1995/bounding-rects-on-binary-image | 322d7c082150a086941f31e3601a241597207354 | e31b578af5ba4104c891d6e1887afa1a14b6b2ae | refs/heads/master | 2021-01-13T10:14:10.910120 | 2016-10-07T15:19:53 | 2016-10-07T15:19:53 | 70,157,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,831 | cpp | main.cpp | //
// Created by sergsenta1995 on 06.10.16.
//
#include <opencv2/core/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
/**
* @brief Вычисляет ограничивающие прямоугольники из контуров.
* @param image Входное изображение.
* @return Вектор ... |
2c7ee2729e617252afb5900ef91ab6f3f123ac04 | c68c841c67f03ab8794027ff8d64d29356e21bf1 | /Recover Rotated Sorted Array.cpp | d4aeb7e6af90f4dd870d46f329175392f11809d4 | [] | no_license | jke-zq/my_lintcode | 430e482bae5b18b59eb0e9b5b577606e93c4c961 | 64ce451a7f7be9ec42474f0b1164243838077a6f | refs/heads/master | 2020-05-21T20:29:11.236967 | 2018-06-14T15:14:55 | 2018-06-14T15:14:55 | 37,583,264 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | Recover Rotated Sorted Array.cpp | class Solution {
public:
void recoverRotatedSortedArray(vector<int> &nums) {
// write your code here
int i = 0;
for (; i < nums.size() - 1 && nums[i] <= nums[i + 1]; ++i)
{
}
if (i == nums.size() - 1)
{
return;
}
//reverse
... |
977c50e469d27496c526672aa268733fab862d6e | 3083572413349e6791049b1347333b8cf3ab3d2c | /MotorCommunication/capture.h | 92ba4bf6fac14b5180274a9c00ce7e734a4559c5 | [] | no_license | Dat-Tien/THESIS | d48df2950de2ea0414a3f8747ffc5be42438c3e0 | 39bd1ec5b424b24bbbdcedaef37bdf271b65d62f | refs/heads/master | 2023-05-09T05:10:45.599210 | 2021-05-31T03:01:54 | 2021-05-31T03:01:54 | 360,075,596 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,579 | h | capture.h | #ifndef CAPTURE_H
#define CAPTURE_H
#include <QObject>
#include <QPixmap>
#include <QImage>
#include <QThread>
#include <opencv2/opencv.hpp>
#include <librealsense2/rs.hpp>
#include <librealsense2/rsutil.h>
using namespace std;
using namespace cv;
class capture : public QThread
{
Q_OBJECT
public:
explicit ca... |
72e94da300041ad67dae54454425bf164c2e4c67 | 292827a33c60bdba5643a19a58b0add3d8f7bd1e | /GameBall/Tricks/Tricks/Trick_BigFall.cpp | 9857fcb60c5b00fee91a68407ac3db38b9864147 | [] | no_license | artcampo/2012_3D_96k_Procedural_game | 143c9a6ca351fca127f8b00d2ebb8a461a002e9c | ae33e17c795457d777a0569762a3d157de4774b1 | refs/heads/master | 2021-01-12T04:27:50.727862 | 2016-12-29T14:01:49 | 2016-12-29T14:01:49 | 77,615,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,720 | cpp | Trick_BigFall.cpp | #include "GameBall/Tricks/Tricks.hpp"
#include "GameBall/Tricks/Tricks/Trick_BigFall.hpp"
#include "GameBall/Tricks/TricksPunctuation.hpp"
using namespace TricksScore;
const float Trick_BigFall::mHeight = 100.0f;
const float Trick_BigFall::mHeightExtra = 250.0f;
enum states{
ready,
jump
};
... |
2222dad1b5819bc6d516f748933a96407c9be477 | 62bde7e76a520f1ccf234f9e692c2dd844204b18 | /webmmux/webmmuxstreamaudio.h | 7bb71a28db7eb98bf926e3f5da44fb830f1fc0fc | [
"BSD-3-Clause"
] | permissive | webmproject/webmdshow | d0e0088a2e7121d56ef642d16c30dec50ad60c0d | 26defd7794c992a25156f8f718b5cadf70e62779 | refs/heads/master | 2020-04-06T20:01:28.037521 | 2018-03-15T22:59:53 | 2018-03-15T23:01:07 | 19,468,091 | 18 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 1,415 | h | webmmuxstreamaudio.h | // Copyright (c) 2010 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing p... |
65b50274c69377469f5fc25f2217d32552ee5879 | 7fa0f3c7ea18bb43996b038ee50b31c7b255bd59 | /lab4/HedgeHog/main.cpp | d3f68bf27a59aa1f86e89ecb10ea8a848d1d6df7 | [] | no_license | univkiev/OOPterm3 | 28bca79044351eef4b0e7ee1857fa982ca788c61 | 3ff313fff0afae33cba215a230eb09dcff476aa7 | refs/heads/master | 2021-01-10T02:06:18.235209 | 2016-01-05T14:30:04 | 2016-01-05T14:30:04 | 49,070,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,865 | cpp | main.cpp | // HedgeHog
#include <iostream>
//GLM
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
// Other Libs
#include <SOIL/SOIL.h>
// Other includes
#include "Shader.h"
#include <vector>
#include <r... |
9f02d2adf5f05dda857df7b1135ba54924ec4ad4 | 7f67fb29806bf037b1f0b1ec2134f82435c73082 | /src/Enemy.h | fcecad1f52ad129ec08def2b45dadb5f12313358 | [] | no_license | popoca/OSG_ShootingGallery | a65f92c121ea8741750c8a572123a0062a331db9 | 75f9b58b0dddc274d05deda716072354f7e23f31 | refs/heads/master | 2020-04-09T02:40:51.579783 | 2010-12-17T10:11:01 | 2010-12-17T10:11:01 | 1,242,956 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,779 | h | Enemy.h | #ifndef ENEMY_H
#define ENEMY_H
#include <osg/Node>
#include <osg/Group>
#include <osg/Geode>
#include <osg/Geometry>
#include <osgDB/ReadFile>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
#include <osgViewer/Viewer>
#include <osg/PositionAttitudeTransform>
#include <osgGA/TrackballManipulator>
#include <osg/C... |
29f756f2044d24c44e7d31f8147babc1c2a63c44 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir29315/dir29712/dir30926/dir31204/dir31387/file31640.cpp | 9c7853609e970deae5ec2f38f6b44ba4f8a505f4 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file31640.cpp | #ifndef file31640
#error "macro file31640 must be defined"
#endif
static const char* file31640String = "file31640"; |
397caff57cd95f4cefe43d88665b927e91bd8fed | 8431e5f305e00e940c1e5cfcc4b2323e31f04510 | /Structural Design Patterns/Adapter/Basic/Adaptee.cpp | 668969ee41b2e8334e187661167b6110b66bcca2 | [] | no_license | Tcrumy/Cpp-Design-Patterns | 4cf6a9497582cc3655ca1d79db59a20b6b2c3215 | 3957420a86478134e61817e376b4ad015ba89470 | refs/heads/main | 2023-07-16T21:01:14.985517 | 2021-08-26T18:42:22 | 2021-08-26T18:42:22 | 373,353,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | cpp | Adaptee.cpp | #include "Adaptee.h"
#include <iostream>
void Adaptee::specificRequest()
{
std::cout << "[Adaptee] SpecificRequest\n";
}
|
3f6cdc2e6a23a866132796cccf65a4c1883c6778 | e926bede54cbddf08870036ae478124e0a6cec77 | /include/jet/svd.h | d4c4883b06f462c306f0e591ec5eda47650d72d4 | [
"MIT"
] | permissive | doyubkim/fluid-engine-dev | 2d1228c78690191fba8ff2c107af1dd06212ca44 | 94c300ff5ad8a2f588e5e27e8e9746a424b29863 | refs/heads/main | 2023-08-14T08:04:43.513360 | 2022-07-09T06:24:41 | 2022-07-09T06:24:41 | 58,299,041 | 1,725 | 275 | MIT | 2022-07-09T06:24:41 | 2016-05-08T06:05:38 | C++ | UTF-8 | C++ | false | false | 1,413 | h | svd.h | // Copyright (c) 2018 Doyub Kim
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#ifndef INCLUDE_JET_SVD_H_
#define INCLUDE_JET_SVD_H_
#include <jet/matrix2x2.h>
#include <jet/matrix3x... |
f4aa933942260b845f406e1cc66052548fb6f420 | abafba20e115f6ff95f94847c668354710a8328d | /C++ Practice/12.7.9Char_vec.cpp | 19e391098d591ac61cc89d645b4ada3b3ee1a96e | [] | no_license | oldteb/Practices | b813878e52bde42a25b863aa96f0068ff3fc04a3 | 827603b80e03e83e6809b29fc49aebb8c30f4d4b | refs/heads/master | 2021-01-10T05:54:32.449453 | 2015-06-22T02:39:43 | 2015-06-22T02:39:43 | 36,441,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | 12.7.9Char_vec.cpp | #include<iostream>
#include<new>
using namespace std;
class Char_vec{
int sz;
char element[1];
public:
static Char_vec* new_char_vec(int s);
char& operator[](int i){ return element[i]; }
};
Char_vec* Char_vec::new_char_vec(int s){
char* temp=new char(sizeof(Char_vec)+s-1);
C... |
dd28c2ca587053d0d1d06e832d32b5417585adc3 | ffa92ba37b45c6ef45dda20e49195ea4f520c834 | /labs/modules/tnm067lab1/utils/interpolationmethods.h | c923b6e9b35da76a60b9152d3ddcef93900e7435 | [] | no_license | maror757/TNM067 | f37595351b8b94bfd4c70db401c1bf6442585435 | 44ef593650c25892d5e1ffa6a23c6e22a49b9876 | refs/heads/master | 2020-03-29T22:06:25.529910 | 2018-10-16T08:43:00 | 2018-10-16T08:43:00 | 150,403,045 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 4,283 | h | interpolationmethods.h | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
72a36ff560f341fcd6ae8041f5e92ae3ce903328 | 8538a737bfef44d0e57ca79baa1a6f93b1332627 | /IR-comm/sw-serial-v1/sw-serial-v1.ino | 582acb05230e06182bb2c8f1ba2675af6433ccfc | [] | no_license | chittojnr/RC-Lowbed-Steering-Control | f358f5ae67be72e6ea8f1162938436ad5ece894b | caa65c641818ec03c165e87859f740f8741ba12c | refs/heads/master | 2023-03-20T21:08:45.052576 | 2017-12-18T22:05:59 | 2017-12-18T22:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,058 | ino | sw-serial-v1.ino | #include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
#define CHANNEL_1_PIN 2
int pulse_time;
volatile unsigned long timer_start;
volatile int last_interrupt_time; //calcSignal is the interrupt handler
void calcSignal() {
//record the interrupt time so that we can tell if the receiver has a sig... |
e7416f94cce2f21ab3d5693811d4320d736ab5f0 | 77c4f4dd27b8d7497e66a7a5a87ad7ea83f2c4be | /cpp/src/arrow/array/array_test.cc | 0b82a82fbdb26bd0a9f85fd303ecd57afdc7baf6 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"NTP",
"OpenSSL",
"CC-BY-4.0",
"LLVM-exception",
"Python-2.0",
"CC0-1.0",
"LicenseRef-scancode-protobuf",
"JSON",
"Zlib",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-licens... | permissive | apache/arrow | 0714bfbf6fd491e1f4ed4acf838845ce4b94ec3e | 59954225d4615f9b3bd7a3c266fb68761794229a | refs/heads/main | 2023-08-24T09:04:22.253199 | 2023-08-24T07:21:51 | 2023-08-24T07:21:51 | 51,905,353 | 12,955 | 3,585 | Apache-2.0 | 2023-09-14T20:45:56 | 2016-02-17T08:00:23 | C++ | UTF-8 | C++ | false | false | 127,462 | cc | array_test.cc | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
62fef3300af6838fd2fc99105691ba105d8fcf6b | e4b0bdedd0709dfa9505757163dae094a68d9a5a | /UVa/10523.cpp | b813cd5a37c633cfc78940464c94e0009de3bbe9 | [] | no_license | torikazi/Competitive-Programming | 4543fffe87cf8f3ea384a6c2aaa04c9e90f31036 | dac444f6630e7918a3fd423d60bf53137414426a | refs/heads/master | 2021-04-06T20:44:05.539366 | 2018-10-05T00:53:56 | 2018-10-05T00:53:56 | 125,230,160 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | cpp | 10523.cpp | #include<stdio.h>
#include<iostream>
#include<math.h>
#include <iomanip>
using namespace std;
int main()
{
long double A,N,sum,i;
while(cin>>A>>N)
{
for(i=1,sum=0;i<=N;i++)
{
sum+=i*pow(A,i);
}
cout<<fixed<<setprecision(0) <<sum<<endl;
}
return 0;
}
|
e1bfbc1fede67cb7b51e0aa67d5ac6cc2239246c | 9d3ba35d7136ce6c4245a467deda44c941b2c6f2 | /pg20045日文原始程式碼/chap01/01_09.cpp | 7c441efc73b233bb9fdef72476c58c30d289e228 | [] | no_license | jtlai0921/PG20045_example | 86310ae8a37aadf6586640088f3fd0b8f7be378f | 959b06f9e696635d42d85811ad3fc6c3c131f643 | refs/heads/master | 2021-01-06T07:08:16.183360 | 2020-02-18T01:01:36 | 2020-02-18T01:01:36 | 241,241,621 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 214 | cpp | 01_09.cpp | #include <iostream.h>
int main(void)
{
cout << "sizeof('A') :" << sizeof('A') << '\n';
cout << "sizeof(char):" << sizeof(char) << '\n';
return (0);
}
/*
実行結果
sizeof('A') :1
sizeof(char):1
*/
|
0b9da0791ba21e7481b33c561bda2841dea73e7b | 8fffb6008956eb2fe2df94a0ea70b321b04d1114 | /11085-Back to the 8-Queens.cpp | 2ad064524b104eb86ca59d09d1acd701dfd8f1dd | [] | no_license | abinashkg/UVA | 14c8bfa221abd42a22d3894a3b84143412b18f14 | d0d2b2bd49b9855f9dd5708b63ccd68e26226bd6 | refs/heads/master | 2020-12-24T11:46:53.742073 | 2016-11-07T17:19:29 | 2016-11-07T17:19:29 | 73,011,999 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,063 | cpp | 11085-Back to the 8-Queens.cpp | #include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cmath>
#include <cstring>
#include <climits>
#include <iostream>
#include <iomanip>
#include <vector>
#include <list>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <sstream>
... |
afe0ce96ade820414a7ebb89c4dc54d6cc959cf9 | 3e2d8d119b450196c956d59363a3296b59b5ca2c | /test/TestWS2812B.cpp | 5a85db0396927ca0a96a726a414af1257f6617e1 | [
"MIT"
] | permissive | kammerjaeger/hyperion | 2e63fa89022a92ea2392b74fef6a93529ac26089 | c6ac112c395e1d22af87bf1247f71097a2641943 | refs/heads/master | 2021-01-18T12:54:03.477603 | 2015-02-07T17:47:32 | 2015-02-07T17:47:32 | 20,128,080 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,485 | cpp | TestWS2812B.cpp |
// STL includes
#include <vector>
#include <ctime>
#include <cstring>
#include <string>
#include <unistd.h>
#include <iostream>
#include <vector>
// Local includes
#include <utils/ColorRgb.h>
#include "../libsrc/leddevice/LedDeviceWS2812b.h"
bool _running = true;
#include <csignal>
void signal_handler(int signum)... |
28d05242480d7b075a386d53dcbf0598e2575167 | e3c1378a36143a73643f8ce32decffcbc748365e | /Gold/February 2020, Gold/February 2019, Gold P3/February 2019, Gold P3/main.cpp | b4912a9a1ee536df53cbad3ca07642f4e4ed3849 | [] | no_license | VittalT/USACO-Solutions | 27f8de3726adc424983ebbf444a621cf0e2080ef | 5a9dfc28a64d0f45a849ace9f2506e323157aece | refs/heads/main | 2023-02-27T00:46:43.096312 | 2021-02-02T05:53:40 | 2021-02-02T05:53:40 | 335,173,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,409 | cpp | main.cpp | /*
NAME: Vittal Thirumalai
TASK: deleg
LANG: C++11
*/
/* LANG can be C++11 or C++14 for those more recent releases */
#include <cstring>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <math.h>
#include <vector>
#include <climits>
#include <fstream>
#include <string>
#include <list>
#include <map>
... |
cd57d019f0531468353cc963364d90f729d9e875 | 6e7832e89080aa07ee2f6534d5c8ed6465adc84a | /one/SQConnect/SQSaveFile.cpp | 10d3904f6ade70731a50a7b3e526fedd2d0c6f5c | [] | no_license | HundterG/MateBit | 67d4a59a64361fc3e196f4f4be75def4a73ea997 | 5bd30fb682dc6a2651ead57f39a7bd7cbf9be73e | refs/heads/master | 2021-05-14T02:19:53.103134 | 2018-01-07T19:28:19 | 2018-01-07T19:28:19 | 116,592,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,789 | cpp | SQSaveFile.cpp | #include "../Squirrel/squirrel.h"
#include "SQForwardDeclares.h"
#include "../Core/BinaryFile.h"
namespace
{
SQInteger SQFileDestruct(SQUserPointer data, SQInteger)
{
delete reinterpret_cast<BinaryFile*>(data);
return 0;
}
SQInteger SQFileConstruct(HSQUIRRELVM v)
{
sq_setreleasehook(v, -1, SQFileDestruct);... |
d109a0b0f9db1e3a168a36c73c0652a798fad0cd | ef3fa8e089c53422db4a5bbff9721268976bae53 | /project/mfr/15/U | 1c7f347c2b3438b125a772ebe1d0a74d59d6c30b | [] | no_license | will214/CFDcourse | 6b22f00a86f5ac83378e059074eb907e288693f2 | 37bd665013d77095f85ea4e6bc464caa11f91db1 | refs/heads/master | 2021-05-09T18:51:12.192394 | 2016-11-20T10:02:50 | 2016-11-20T10:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,235,911 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
... | |
c8437ec3180c51f9a8d4dad76fc23ba74e913c81 | 80600ab15fd4d3a4adaf1ae31c845660f34ce033 | /core/math/Point.h | 4cff5837557596924bf1a01628f490ed220ff6f3 | [] | no_license | perandersson/playstate2 | abc208478967f4388cd4cbee2c2d5cd6e9994395 | 46d5ae8fa8324b32aa97e64a7ca46024f4bc2cdf | refs/heads/master | 2021-01-19T07:54:13.417455 | 2015-01-07T17:01:06 | 2015-01-07T17:01:06 | 21,142,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,216 | h | Point.h | #pragma once
#include "../typedefs.h"
namespace core
{
struct Point
{
union
{
struct
{
int32 x;
int32 y;
};
struct
{
int32 width;
int32 height;
};
int32 _array[2];
};
Point();
Point(const Point& point);
Point(int32 _x, int32 _y);
inline Point& operator = (const Po... |
0d3aae19da793e3add4116b78434f330cfaf989d | d23ad21efc3c96cf2331ecf8d28d04d394258151 | /CalculatePi/Calculation.cpp | e6d6cfdb8dda9e78d70c5f3706eecd7e51537513 | [] | no_license | DianYueGuo/CalculatePi | 6a54f74ce15a63ebb4b2f2231749b10b01344a52 | f057e5ac382705852fd8048d239c1abe25becd6c | refs/heads/master | 2023-02-13T10:31:48.313006 | 2021-01-07T12:50:37 | 2021-01-07T12:50:37 | 321,057,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,214 | cpp | Calculation.cpp | //
// Calculation.cpp
// CalculatePi
//
// Created by 郭典約 on 2020/12/13.
// Copyright © 2020 郭典約. All rights reserved.
//
#include "Calculation.hpp"
#include "Digit.hpp"
#include "Number.hpp"
void Calculation::numberAddition(Number& a, const Digit b, const Number::num& n){
const Digit::digit B = b.get();
... |
8770d1ff8dec18b73be508883e94980819c0f4d8 | c475cd8531a94ffae69cc92371d41531dbbddb6c | /Projects/bullet3-2.89/examples/ThirdPartyLibs/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h | 395daa8e47a02e77e171f3b40fda5442025c3cd1 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Zlib"
] | permissive | WolfireGames/overgrowth | 72d3dd29cbd7254337265c29f8de3e5c32400114 | 594a2a4f9da0855304ee8cd5335d042f8e954ce1 | refs/heads/main | 2023-08-15T19:36:56.156578 | 2023-05-17T08:17:53 | 2023-05-17T08:20:36 | 467,448,492 | 2,264 | 245 | Apache-2.0 | 2023-05-09T07:29:58 | 2022-03-08T09:38:54 | C++ | UTF-8 | C++ | false | false | 9,184 | h | ConjugateGradient.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... |
b07c56b3749d3de8fac900753109e03903d09d15 | bb9373a53a3d998ae23b82b054f68ebaae7185bc | /Talisman_Game/Mage.h | ddeceb1b71412c8876f18dd0e016591dc7b96042 | [] | no_license | Maromarius/TalismanGame | 706330965322292c8714a61af4b8011fcc5b44f8 | ddb6ab00f1841fad7ba07b81fc96796edbd26adb | refs/heads/master | 2016-09-05T09:51:52.382630 | 2013-11-05T21:56:26 | 2013-11-05T21:56:26 | 7,075,827 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116 | h | Mage.h | #pragma once
#include "stranger.h"
class Mage :
public Stranger
{
public:
Mage(void);
~Mage(void);
};
|
be380f8e12ba740d9ad6c7e9088cc700a34e053a | 78d10af5f80b11ecc04720982cdd91460b3e2e59 | /src/Gui/GFileOpenButton.h | e9069de4af159e19fa0d2cd7edf145c9bd21e2a8 | [] | no_license | hondem/icp_project | 4f9ce07c814bac0cb22a59a69317d88208cf6461 | 3d8cdaf41738bd270e5a789776b92c91b61ac939 | refs/heads/master | 2020-05-19T06:52:09.183615 | 2019-05-24T13:26:41 | 2019-05-24T13:26:41 | 184,884,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | h | GFileOpenButton.h | /**
* @authors Martin Buchta (xbucht28@fit.vutbr.cz) Jan Demel (xdemel01@fit.vutbr.cz)
*/
#ifndef CHESS_GFILEOPENBUTTON_H
#define CHESS_GFILEOPENBUTTON_H
#include <QPushButton>
/**
* @brief File open button
*/
class GFileOpenButton : public QPushButton {
public:
/**
* @brief Creates new button for file ... |
d27b789f49de1e168ecfd45aab43c7bdc9be931f | a830f2e77840dd639ff07c8e87d221283e960ef4 | /code/arm9/source/Mario.cpp | 9cb2e5531f682a4a894305a44751b4e19eda4e86 | [] | no_license | EmielBon/nintendo-ds-framework | ac86fc193c6d5ccb113445ced7d5e73a92a55b9c | b16ce73ea3eb11090b6e3f3282cfacbbc1a16fe5 | refs/heads/master | 2020-12-24T08:41:01.888746 | 2014-08-26T13:55:57 | 2014-08-26T13:55:57 | 18,135,199 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,446 | cpp | Mario.cpp | #include "Mario.h"
#include "Input.h"
#include "Texture.h"
#include "MathFunctions.h"
#include "Test3D.h"
#include "Model.h"
#include "BasicEffect.h"
#include "Debug.h"
#include "Scene.h"
#include "SceneObject.h"
namespace Test
{
using namespace Input;
//------------------------------------------------------------... |
02df956c297684dec5c2d0ab57dfedb1c63db116 | b8f26051d928c298d8cf54f8e41a192fce4265a2 | /161109阿拉伯数字转中文数字.cpp | 8f5cb5033dd7d5ce4d33243ea0568ddfaf19591e | [] | no_license | wangfutao/algorithm | abbd2fb1ab1869291a35bd11f0f7d2a4f4b224f6 | 42e44792869efc9cfae47441cc583420e3e4c34b | refs/heads/master | 2022-12-27T15:43:31.056796 | 2020-08-27T01:22:30 | 2020-08-27T01:22:30 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,008 | cpp | 161109阿拉伯数字转中文数字.cpp | /************************************************/
// 一亿以内阿拉伯数字转中文数字
// 把小于一亿的int型数字转换成中文表示,如:
// 17:一十七;
// 110:一百一十;
// 12345:一万两千三百四十五;
// 10101:一万零一百零一
/************************************************/
#include <iostream>
using namespace std;
void addStr(char* &str,char* str1);
char* transferToChinese... |
15fc33677d089970357b4f6fabe93a7d3d74380a | 648cf121f894d999dc67794d6803cd0d97aae810 | /postpre.cpp | f1f0dff5e919c2198c3abf9cbf2f1208b52ad115 | [] | no_license | upadhyatejas/OOPS-Lab-Assignments | dff99ae2724c104c3f458c81a38cec517d550975 | 43adcbcfa2f293d98abf495b7a002be2f0ba57f0 | refs/heads/master | 2020-03-13T11:45:37.080632 | 2019-07-14T06:28:53 | 2019-07-14T06:28:53 | 131,106,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 763 | cpp | postpre.cpp | #include <iostream>
using namespace std;
class Integer {
private:
int value;
public:
Integer(int v) : value(v) { }
Integer operator++();
Integer operator++(int);
int getValue() {
return value;
}
};
// Pre-increment Operator
Integer In... |
48f9ab5fab294aaa480ceb3312b3bd67aad4bcbc | 11652dfbaccc4f7928cd0d0c37e4fc476ec7bc58 | /Engine/Components/Component.cpp | 02989fc91b39fb4906483f8d084a4909e73d4e12 | [
"MIT"
] | permissive | FeikoJoosten/GameEngineFramework | 8ebbbd5e4a40c798348edc2cb8a379c73b2563b7 | 09017f92270db6d0fc649949a2960f9a14d5db0e | refs/heads/master | 2022-12-21T01:57:04.274895 | 2019-09-28T21:43:43 | 2019-09-28T21:43:43 | 163,863,606 | 7 | 0 | MIT | 2019-01-08T13:37:15 | 2019-01-02T16:20:23 | C++ | UTF-8 | C++ | false | false | 1,438 | cpp | Component.cpp | #include "Engine/Components/Component.hpp"
#include "Engine/Entity/Entity.hpp"
#include <ThirdParty/cereal/include/cereal/archives/binary.hpp>
#include <ThirdParty/cereal/include/cereal/archives/json.hpp>
namespace Engine
{
eastl::weak_ptr<Entity> Component::GetOwner() const
{
return owner;
}
Component::Compon... |
5d1d1cfc8794d5be77664aa25c1cfd9b5ef87126 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetEventCnv/InDetSimEventTPCnv/InDetSimEventTPCnv/InDetHits/SiHit_p1.h | 15e958d245f026668aec48e14da92f7ee459ffd5 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | h | SiHit_p1.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef SIHIT_P1_H
#define SIHIT_P1_H
#include "GeneratorObjectsTPCnv/HepMcParticleLink_p1.h"
class SiHit_p1 {
public:
float m_stX, m_stY, m_stZ;
float m_enX, m_enY, m_enZ;
float m_energyLoss; // deposited energy
float m_meanTim... |
27ae6cf7699ffd383ccb429a368703c3402dfeb5 | 86fe133453fee07029a3e2b13dea74d6bdea35ed | /event/hwndmanager.cpp | a037b39cbae572e2ac9756d812e9ad5b3a57ece3 | [] | no_license | fuZhRen/SoftwareManager | fa095eba9499ca9facbaa3282169aa3b33de40fc | 46bc68ff4a9f6dda0ef66fc15a3ad2561f1b8191 | refs/heads/master | 2022-04-13T11:30:18.090047 | 2020-03-11T01:22:26 | 2020-03-11T01:22:30 | 243,260,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | cpp | hwndmanager.cpp | #include "hwndmanager.h"
WINBOOL CALLBACK EnumChildWindowsProc(HWND hWnd, LPARAM lParam)
{
Q_UNUSED(lParam)
char WindowTitle[512] = { 0 };
::GetWindowText(hWnd, LPWSTR(WindowTitle), 512);
QString title = QString::fromStdWString(LPWSTR(WindowTitle));
if(title.contains(HwndManager::instance()->fil... |
41ba42c2d37d9896abca32ef7490a66bec06caa1 | 66303020674016227039be01bd6c9f777771decd | /1_2/solution.cpp | cbf7f5764dc478b9aeb8d0c0a51fd52be57a733f | [] | no_license | attatrol/made_2019_algorithms | 8fa47172afedf115f985d3b21db3a03eda5ac241 | b4e99ad13f9d3a360f44fd4606ade9e38b736d89 | refs/heads/master | 2020-08-26T21:31:17.065480 | 2020-01-09T16:53:52 | 2020-01-09T16:53:52 | 217,154,563 | 0 | 0 | null | 2020-01-09T16:53:53 | 2019-10-23T21:12:51 | C++ | UTF-8 | C++ | false | false | 6,698 | cpp | solution.cpp | /*
* Во всех задачах из следующего списка следует написать структуру данных, обрабатывающую команды push* и pop*.
* Формат входных данных.
* В первой строке количество команд n. n ≤ 1000000.
* Каждая команда задаётся как 2 целых числа: a b.
* a = 1 - push front
* a = 2 - pop front
* a = 3 - push back
* a = 4 - pop back... |
3f2dfabc48b98b19daec49534899bd232f2f6717 | 25bec2a5d3cbe2ec4bb9270daa015501d5bf8e76 | /src/rats.cpp | ccfb08f0cbc7f166964a17ba91f4668a438e576c | [] | no_license | Trevski13/Rat-Genome-Generator | a53784a2a9671f3b31b6ddf6b1583b698a119ea8 | b7331b005692d1b64612189c9823e1ce3e751476 | refs/heads/master | 2021-01-12T14:51:32.787569 | 2016-09-22T14:46:52 | 2016-09-22T14:46:52 | 68,930,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,977 | cpp | rats.cpp | #include <iostream>
#include <string>
#include <vector>
#include <bitset>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
#include <ctime>
#include <algorithm> // std::shuffle
#include <array> // std::array
#include <random> // std::default_random_engine
#include <chrono> // std::chrono... |
f8e37245d5d0d93e57e025a10a2340d4ea88d711 | d7869995141b8809ebb300c4aff54ced0c17e057 | /bzoj1336/main.cpp | bc00faf26cd4c74740a67f741fbd6817d2bca4d6 | [] | no_license | Kirinosama/code | 8d9e76f3fe70a2166dbe81e12b250dadcbc91bf7 | 584cea66c22201546259e3490c42afe5eb8c6e09 | refs/heads/master | 2021-06-11T18:46:05.096966 | 2019-09-25T12:56:05 | 2019-09-25T12:56:05 | 115,096,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | cpp | main.cpp | #include <cstdlib>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <cmath>
#include <algorithm>
#include <iostream>
using namespace std;
const double eps=1e-12;
#define MAXN 100010
struct node
{
double x,y;
}p[MAXN],o;
int n;
double r,q[5][5];
double fabs(double x) {return x>=0 ? x : -x;}
double di... |
c3a4fde3268b923863a39e44b7851226f34e0b44 | 3bcf8677aaaf6deb112deb3be4972f040b016356 | /helicopter/led/led.ino | 662819df61c156ec6f805f2448cce884a8f9e967 | [] | no_license | hobson/pycon2014 | 5db411e88cc369e2ba3c856fd73596aad8cdf73b | a4316057f336cf66ab5b7e5bb5d9e27b908b6290 | refs/heads/master | 2021-01-23T09:52:33.522982 | 2014-04-16T16:15:08 | 2014-04-16T16:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | ino | led.ino | int led = 13;
void setup(){
pinMode(led, OUTPUT);
Serial.begin(9600);
}
void serialEvent(){
byte in = Serial.read();
if(in == 0){
digitalWrite(led, LOW);
}else if(in == 1){
digitalWrite(led, HIGH);
}
}
void loop(){
delay(1000);
}
|
5503e853e848843e5c4f03db1ff22635b630b8c7 | 9eaaaa4f97c388990ac7ab91647d8495d1de1617 | /Lab_5/Unit3.cpp | b7bf2a6ea024f5e67dcc61e56dddeb9aaff8a571 | [] | no_license | PashaEfimchik/OAiP | 2d6563d9c6499c6bc369fb060dd9a5f947e4a14f | 48fe014aebf95d4ce13a9a7a8388dc8e5cd0f6af | refs/heads/master | 2023-05-04T07:43:57.265839 | 2021-05-22T11:06:22 | 2021-05-22T11:06:22 | 275,660,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | Unit3.cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit3.h"
#include "List.h"
#include "Queue.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm3 *Form3;
Queue... |
86f0c8511c9ad5f0a5fa7bb3d5f8363615e711df | 7981f9247815e1dd663ce090d550a8d3b0ad2dc8 | /CodeForces/CF912-D2-E.cpp | 01d9ff33ffcc530e27c7a7c206044b0a49da29fc | [] | no_license | MetalBall887/Competitive-Programming | 647b553c30ec42395f1cd7021dd55f7bd12750fd | 28c07f57160aaa8c31b51f92af4f14ad34892f8b | refs/heads/master | 2021-06-29T13:42:41.181397 | 2021-02-03T22:02:05 | 2021-02-03T22:02:05 | 190,224,523 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,445 | cpp | CF912-D2-E.cpp | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
//We can binary search the answer. Here we will use meet-in-the-middle technique to reduce the number of elements we traverse
//Divide our set of primes into two roughly equal subsets, generate all numbers for both of them independently, sort
//then you ... |
7f6e14b15084d7570c389eb9633467b9f9ba096f | 7b44bb56c3395ab679e191532f64b65c8971f692 | /COLLADAFramework/include/COLLADAFWIntArray.h | 898414976975df1c6e080d77accbcc4d996088b9 | [
"MIT"
] | permissive | Geopipe/OpenCOLLADA | 7114c459ec4bc723227f4aee13b0b7e2a28c4039 | 9eec2dcf700c3bc77db6ab3ee06b2f67646b009e | refs/heads/master | 2023-02-22T11:40:22.417502 | 2023-02-17T17:54:46 | 2023-02-17T17:54:46 | 95,818,664 | 0 | 0 | null | 2023-02-17T17:54:47 | 2017-06-29T20:51:17 | C++ | UTF-8 | C++ | false | false | 2,265 | h | COLLADAFWIntArray.h |
#ifndef __COLLADAFW_INTARRAY_H__
#define __COLLADAFW_INTARRAY_H__
#include "COLLADAFWPrerequisites.h"
#include "COLLADAFWTypes.h"
#include "COLLADAFWAnimatable.h"
#include "COLLADAFWFloatDoubleOrIntType.h"
namespace COLLADAFW
{
/** Holds a integer array. */
class IntArray : public Animatable
{
private:
/** Th... |
c9ce38a38047b687ed96057a9898976367573705 | c78390e52609d3a20c58469e1ca155da7674e904 | /WordServer/main/wordServer.cpp | f980f6f50f47b4b99e42ef58e5d7390a37def20c | [] | no_license | bitvcat/domi_server | 241f061c88dd26598f290e966e5a4bd2c7ef255d | 46dbef410185581fed08b45996477c075b7adbdf | refs/heads/master | 2023-07-09T07:51:14.186203 | 2018-08-16T07:22:19 | 2018-08-16T07:22:19 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,264 | cpp | wordServer.cpp | /********************************************************************
创建时间: 2015/06/22 14:44
文件名称: GameServer.cpp
文件作者: Domi
*********************************************************************/
#include <iostream>
#include "wordServer.h"
// 处理消息
static uint64 STnowTime = getSecond();
CWordSer... |
daff1c0ec5b209be107765cf18d6ba285d9709a4 | b4ba3bc2725c8ff84cd80803c8b53afbe5e95e07 | /Medusa/MedusaExtension/MedusaExtensionModule.cpp | bb68f3830859582cf37e7e1369f38c745173ed68 | [
"MIT"
] | permissive | xueliuxing28/Medusa | c4be1ed32c2914ff58bf02593f41cf16e42cc293 | 15b0a59d7ecc5ba839d66461f62d10d6dbafef7b | refs/heads/master | 2021-06-06T08:27:41.655517 | 2016-10-08T09:49:54 | 2016-10-08T09:49:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | cpp | MedusaExtensionModule.cpp | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaExtensionPreCompiled.h"
#include "MedusaExtensionModule.h"
#include "CocosStudio/BinaryEditor.h"
#include "CocosStudio/JsonEditor.h"
#include "Node/Ed... |
44c95dd5c81534122b2421e8268714949f8ca06e | d72607af6214b38eaaade6c7d178a20cb142be71 | /web-practise/webassembly/wabt/src/writer.cc | 1e25fe217ea8920c0077c6f2385e70f1c3f8c1ed | [
"Apache-2.0"
] | permissive | Pliman/practising | 92f7f6317d22006f48dd073d9622bd94669509bc | 9e2420e1d5c506e8ec8a390e5bbbf500bde34112 | refs/heads/master | 2023-02-28T19:48:27.347057 | 2023-02-16T00:13:35 | 2023-02-16T00:13:35 | 101,260,027 | 1 | 0 | null | 2022-12-22T04:59:26 | 2017-08-24T06:07:54 | JavaScript | UTF-8 | C++ | false | false | 4,316 | cc | writer.cc | /*
* Copyright 2016 WebAssembly Community Group participants
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
663f212040767542dc9396bd0019e6e40394d9cb | c8bbccd8ec055e72ef9589a8814cd5b3dc474c05 | /shocktube/openfoam3/0.0022/p | 0290a0920e24dcbd4ee059fe4c476e3a420412b7 | [] | no_license | samtx/adv-fluids | f221253be7290a0b04a50b6fbaa9f30efc181e28 | 8baf7a4f12ed3d5bc24418fa685a9dd2c72aee61 | refs/heads/master | 2021-01-21T06:38:16.914084 | 2017-05-06T20:49:27 | 2017-05-06T20:49:27 | 82,866,684 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,904 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
... | |
20878d53c23a5e85b329befa078a8122cbc040b2 | 10b8445ec3f2ca256e4734ee49d52719ef401def | /05_EXORCODE/exor_code.cpp | 0f9a36cf43c4b532ea563b3d2175fb2932c8469e | [] | no_license | Vamosz/Prog1 | 1ef510297390d84142270d2b6753359f95d9ba88 | 67b95413ed4a89bf630902413b11f38eb5e4cf83 | refs/heads/master | 2021-04-29T17:49:34.570124 | 2018-06-09T00:33:20 | 2018-06-09T00:33:20 | 121,679,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | exor_code.cpp | //g++ exor_code.cpp -o exor_code
//./exor_code "kulcs" <tiszta.szoveg >titkos.szoveg
#include <iostream>
#include <unistd.h>
using namespace std;
int main(int args, char *argv[]){
string kulcs = argv[1]; //2. argumentum a kulcs (első: ./exor_code)
char c;
int index = 0;
while(cin.get(c)){ //... |
1ea3c6849b29acb8f199cafcce38a0f2713e190f | f5c368f37731839b6ab3ed0a0555c02e0d6a4c95 | /DpLib/DpDXUtils.cpp | 3498d85609f4b288e3f8552924ab41a81ac775f9 | [] | no_license | mi2think/DoPixel | c9f85993c44a124c7fdea233efb1bcfc26c27738 | b95cd294e7e94ea2ce30cbb99524842ac2980c29 | refs/heads/master | 2021-01-22T07:35:45.852536 | 2016-05-31T08:26:53 | 2016-05-31T08:26:53 | 24,449,336 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,482 | cpp | DpDXUtils.cpp | /********************************************************************
created: 2016/01/07
created: 7:1:2016 22:32
filename: D:\OneDrive\3D\DpLib\DpLib\DpDXUtils.cpp
file path: D:\OneDrive\3D\DpLib\DpLib
file base: DpDXUtils
file ext: cpp
author: mi2think@gmail.com
purpose: DX Utils
************************... |
66bb1a064849fb4955d0c5e3ed83f47c5a0c77c9 | a6dd54cb560dddccef0b2233fa2990f25e818c7b | /TJU/3778.cpp | 8104c2c846c8d41d52f71abef3fb653f152bc2ec | [] | no_license | renzov/Red_Crown | ec11106389196aac03d04167ad6703acc62aaef6 | 449fe413dbbd67cb0ca673af239f7d616249599a | refs/heads/master | 2021-07-08T04:56:22.617893 | 2021-05-14T18:41:06 | 2021-05-14T18:41:06 | 4,538,198 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | 3778.cpp | #include<cstdio>
int main(){
char c;
int e;
int max = 0;
int size = 0;
while (scanf(" %c",&c) != EOF){
if (c == 'n'){
scanf("%d",&e);
size++;
if (e*e > max) max = e*e;
}
else {
size--;
if (size == 0) max = 0;
}
}
printf("%d\n",max);
return 0;
} |
b4759538c7469c32b0b2bf792dc196c7c51eae86 | fbfb4712ea2a23b4b6c5d7926cdf33c1ec9b9482 | /CPP/acm/Project3/Project3/源.cpp | e9d61643c03f27e6efdab727b46b7ddc50d39750 | [] | no_license | memory4963/Codes | d25f030b8d857c13116694cf8df375ca3d6b48d8 | f0ecbf97048bbad07add854e8d7936b49e6aedb7 | refs/heads/master | 2021-01-20T21:16:20.097309 | 2016-07-18T06:19:16 | 2016-07-18T06:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,138 | cpp | 源.cpp | #include<stdio.h>
#include<string.h>
int NUM(char str[], int t);
int Answer(int n, int num1[n], int num2[n / 2 + 1], int m)
int Printf(char str[])
int mmain()
{
int i, a = 1, m = 1;
long long int n, sum = 1, answer;
char a = 'a', b = 'b';
char str[];
while (scanf("%s", str[]) != EOF)
{
Printf(str[]);
}
return... |
8c0e2772157e21c3399f9aba32b26bbf71ebcd1e | e617b61370a5f2eb550cd1e2b902d69b0f78d566 | /unittests/traders_rating/service_tests.cpp | 815de238a6dc7cb180965a27eeafcb13996e6dc3 | [] | no_license | sergey-kurenkov/test_traders_rating | 3e265a578975977cf511bfd2773276ce6ccec896 | ed48a9fb8e9f4d3ba568634768129b4f0f9e51fa | refs/heads/master | 2021-09-16T10:47:31.951299 | 2018-06-19T17:10:53 | 2018-06-19T17:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,127 | cpp | service_tests.cpp | #include "gtest/gtest.h"
#include "traders_rating/cmds.h"
#include "traders_rating/service.h"
#include "traders_rating/utilities.h"
namespace tr = ::traders_rating;
struct test_get_rating_result {
test_get_rating_result()
: callback(std::bind(&test_get_rating_result::upload, this,
... |
756186ad2f8f84be8a43649dae1f4508c29b011e | aa095611e30d7e61c1bfdca88a22e0981d272641 | /BinarySearch/Medium/Linked List/SwapKthNodeValues.cpp | 8d57aa83b10018479ec586b3abff0ee693798278 | [] | no_license | hmnt007/CPP-Pogramming | de6787728a5786d6548c6db8b6d3c68a57c0c7c4 | b691a5b88dd1f291fa191c2d84535d1e2d62e11a | refs/heads/master | 2023-08-24T04:54:17.166172 | 2021-10-03T06:22:06 | 2021-10-03T06:22:06 | 209,529,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | cpp | SwapKthNodeValues.cpp | // https://binarysearch.com/problems/Swap-Kth-Node-Values
/**
Swap Kth Node Values
Medium
You are given a singly linked list node and an integer k. Swap the value of the k-th (0-indexed) node from the end with the k-th node from the beginning.
Constraints
1 ≤ n ≤ 100,000 where n is the number of nodes in node
0 ≤ k... |
20d38f812e1945036c2ed079e984a6679dc4b400 | fb6e1b288e76b34903b5d79262e5942148f1b188 | /TestCapi/Test_HashTable.cpp | af54bfe75b43b9dfde778adceadd7ffd96d62c26 | [] | no_license | zhangnju/capi | 2fee06bb32b4871ca79dc062115a8dacf6b3febf | bc64605c18e47b90dd2f69ff9d1d622e3a89d6a1 | refs/heads/master | 2020-03-18T01:31:13.212222 | 2018-05-20T11:52:06 | 2018-05-20T11:52:06 | 134,145,645 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 14,472 | cpp | Test_HashTable.cpp | /*
* Copyright (c) 2006-2008
* Author: Weiming Zhou
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permissi... |
22b1a58a14a4a903bcad2e20906deeaea5ecaf00 | 3dd0de1364334b2b35627d39ad865d0a8f4d2683 | /510.cpp | 1eadabc35996a4310a7a7dc339f9c5a7d5f7aa9d | [] | no_license | inexxt/euler | c12b8e91f56c5da8f4a168d5628b0864ab7084dc | c858d254524122ce660c0eaa460472456c19ba86 | refs/heads/master | 2021-01-10T09:46:44.158676 | 2015-12-30T18:20:27 | 2015-12-30T18:20:27 | 48,813,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,269 | cpp | 510.cpp | #include <iostream>
#include <algorithm>
#include <list>
#define INF 100000001
#define mp make_pair
using namespace std;
const int MAXI = 5;
list<pair<int, int> >lst;
pair<int, int> mdn;
list<pair<int, int> >::iterator it;
list<pair<int, int> >::iterator it2;
int a;
list<pair<int, int> > totalList[MAXI];
void pri... |
a70e0de6415fa6e919cef0404cf77069e9e2e863 | 01821a491aa581420b8d88ec5cbc1fdba04799a7 | /c++ class/time_operator_overloading.cpp | 2dccfa757a3b69daf598822372399643d63b28bf | [] | no_license | ajinkya005/class-codes | 936de8054ee865b9b3c0d3708840daa3f6c8459f | eaf309d6e4219cb9003d26f7cde9946905badaa5 | refs/heads/master | 2020-04-25T00:07:08.425084 | 2019-03-25T17:10:02 | 2019-03-25T17:10:02 | 172,367,653 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 896 | cpp | time_operator_overloading.cpp | #include<iostream>
using namespace std;
class time
{
int hrs , mins;
public:
void get()
{
cout<<"\nenter hrs and mins :\n";
cin>>hrs>>mins;
}
void disp()
{
cout<<"\nhrs :"<<hrs<<"\tmins :"<<mins;
}
time operator+(time);
time operator+(int);
friend time operator+(int , time);
};
time time :: ... |
a9af1cd7046a1c23a6b7ad8726e28ae321672e11 | 229ebc93bb4e2d237517a3e322bdb88ebe67c8f9 | /algadv/aula9/b.cpp | 228d9dc1b1345c3f742e88933641c7f6e9d11f83 | [] | no_license | fredbr/usp | d145e6798c8e5617b18d3bcedcb8b7a36fa5f4ee | 3e54a0167048ab4d25727876a87f60e683a258a4 | refs/heads/master | 2023-05-18T23:54:43.425159 | 2021-05-27T20:56:36 | 2021-05-27T20:56:36 | 181,331,797 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 973 | cpp | b.cpp | #include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
#define clr(v, s) memset((v), (s), sizeof((v)))
int const maxn = 110;
int dp[maxn][maxn];
string a, b;
int n, m;
int ind(char a) {
return a-'a'+1;
}
int solve(int i, int j) {
if (i == n and j == m) return 0;
int& d = dp[... |
ca40e6b5579627a1530c1d51a41d284933bcbd44 | 4ae88ba7baae2ba16152421b6e40be765b275249 | /2.Firmware/OpenHeat-fw/src/MathFun.cpp | 6b39a902ebc9c65fda1d341bb1ee371bb633eba4 | [] | no_license | WSTRN/OpenHeat | a64470952f86e89cd3872485243cef4cc208e484 | d23ece9d008d74245f92f22f9c711b2e625c1123 | refs/heads/main | 2023-08-18T12:30:24.208998 | 2021-10-18T14:30:22 | 2021-10-18T14:30:22 | 418,531,811 | 1 | 0 | null | 2021-10-18T14:13:33 | 2021-10-18T14:13:33 | null | UTF-8 | C++ | false | false | 4,169 | cpp | MathFun.cpp | #include "OpenT12.h"
extern U8G2_SSD1306_128X64_NONAME_F_HW_I2C Disp;
/*
@作用 获取数值某一位
@传入 数值 指定位数
@传出 数值指定位数的十进制值
*/
int get_Dec_Bit(int x, int n)
{
return (int) (x / pow(10.0, n)) % 10;
}
/*
@作用 获取数值长度
@传入 数值
@传出 数值长度
*/
int Get_Dec_Deep(int x)
{
int i = 0;
do
{
i++;
x /= 10;
... |
9c10f5e9bae1b309fcf189af168b68483122b0d3 | 3624e9f0a026b57ebdafa4e842b93f56e5a8504d | /Codeforces/IndiaHacks 2016/Problem D/D.cc | 1ded2fe94a664c8ba42b1afd7295b2896988d46d | [
"MIT"
] | permissive | ailyanlu1/Competitive-Programming-2 | 54109c8644d3ac02715dc4570916b212412c25c0 | 6c990656178fb0cd33354cbe5508164207012f24 | refs/heads/master | 2020-03-23T07:48:20.560283 | 2018-02-15T06:49:49 | 2018-02-15T06:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,839 | cc | D.cc | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foreach(it, v) for(__typeof((v).begin()) it=(v).begin(); it != (v).end(); ++it)
#define meta __FUN... |
20fee03b1b42f55b8c5da5299d1c1da4bce93d41 | 6f157d27ee466d5600e4f6af8ee38f168a8d0e8c | /asmodean/asmodean tools/exlfa/exlfa.cpp | 580ab3fecc8ef245ff13cef61df894185fa10f59 | [] | no_license | chrisdevchroma/galgametools | bd85333e440e10d6cf704167bbcd540e1cddf0d5 | d3fa44bf13e48757c57720ad6070e0e660e17f45 | refs/heads/master | 2023-08-21T13:45:02.524512 | 2020-08-12T03:21:21 | 2020-08-12T03:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,535 | cpp | exlfa.cpp | // exlfa.cpp, v1.0 2009/12/20
// coded by asmodean
// contact:
// web: http://asmodean.reverse.net
// email: asmodean [at] hush.com
// irc: asmodean on efnet (irc.efnet.net)
// This tool extracts Leaf's *.a archives.
#include "as-util.h"
#include "as-lzss.h"
#include "mt.h"
struct AHDR {
... |
fb777356dcb9f6b4ea35b1f3cf8b2d43f383abda | c2c4ef8c45a01b2f9b49cda3726a60a02e158934 | /Caso5.1/FingerPrint.cpp | 00978356101c3256d58d0bbf37173213da2e6dd5 | [] | no_license | Fao2212/Caso5.1 | 516d809000d686d1b0a83042c1ca8bfac499aac7 | 2b68dd31f5f4ce10c06595609cd104641428d348 | refs/heads/main | 2023-01-23T04:13:38.111547 | 2020-12-02T21:43:25 | 2020-12-02T21:43:25 | 316,075,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | FingerPrint.cpp | #include "FingerPrint.h"
#include<sstream>
std::vector<int> FingerPrint::getFingerPrint(std::string pString)
{
std::vector<int> fingerPrint;
std::stringstream ss(pString);
std::istream_iterator<std::string> begin(ss);
std::istream_iterator<std::string> end;
std::vector<std::string> tokens(begin, end);
... |
99c720a86c82a76093d1a84b2efbff022dfd7d93 | fe3cc6465e2ed72565c03f7952b337e6b5875425 | /OpenFOAM_Examples/Quasi_DNS_Dowtherm_Mixed_Conv/Stable_RANSCase1/98.8/T | ca7187b1f21dc03d87473edd81c3885c040ebbee | [] | no_license | EXthan/turbulenceModelling | 185772aac79c2a3e6b3620b5b5e285304c1b2de0 | fdb66b497c15db1a570edb05a0cd83ed93df68c8 | refs/heads/master | 2022-12-04T20:47:50.965306 | 2020-08-24T02:34:23 | 2020-08-24T02:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,655 | T | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
... | |
8f5f577284061d88530a90ba5337a14364ffd50a | 006829d2c6bcc0a41c591b5d4615b8c9b23d126e | /algorithm/Tree/Traversal.cpp | cb65040a17c461e2cecb1ce5d91143b261c4507d | [] | no_license | LEEYOONJONG/Algorithm | c533f7bd8fc53894a2cbbee9406d60ac28b9b8d0 | dfdcd73693c07947cced74fab7feb85dc7094d74 | refs/heads/master | 2023-06-11T09:28:55.229178 | 2021-07-03T13:53:07 | 2021-07-03T13:53:07 | 331,961,634 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 795 | cpp | Traversal.cpp | #include <iostream>
using namespace std;
int pre[101];
int in[101];
int n;
void tree(int start, int end) { // (1, 3)
int inorderMid=-1;
for (int i = 0; i <= end; i++) {
if (pre[start] == in[i]) {
inorderMid == i;
break;
}
}
//tree(start, inorderMid - 1); // (0, 2)
//tree(inorderMid + 1, end); //... |
ea673ea91b76ec0f45689602f6ed8c815583a2b2 | b9fa1febba8608bb8308dd397abf0d1ba4e68e42 | /baekjoon/심부름 가는 길(5554).cpp | b5feaf3d24570b6773615930919bdfb097b0296d | [] | no_license | foreverever/baekjoon | bde59c630183b128e8f377ec9ee513f74c6e6b31 | 4ca4bd6ef72051285d9a750bd4bb6c6310015242 | refs/heads/master | 2021-06-12T15:12:47.052083 | 2019-10-25T08:56:11 | 2019-10-25T08:56:11 | 145,474,672 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 302 | cpp | 심부름 가는 길(5554).cpp | #include <iostream>
using namespace std;
int x, total;
int main() {
for (int i = 0; i < 4; i++) {
cin >> x;
total += x;
}
int m = total / 60;
int s = total % 60;
cout << m << '\n' << s;
return 0;
}
//분 : 전체 초를 60으로 나눈 몫
//초 : 전체 초를 60으로 나눈 나머지 |
a87fb6c0dad8c719c95c55c054ed0954e6aca0de | 8d31a9565438b58d267958448f53a168edb26b9d | /lab09_mvc/ModelViewController/EquationSolver.cpp | f832b9790f0c53c983702e7c6f6d892991bee91d | [] | no_license | Und3rMySk1n/ood | 8a70e6ad91310e040b9fb0dbdcdb251389d708d6 | 2c5046af66eec77a929f527438dc6a0a8dda069e | refs/heads/master | 2021-01-18T13:12:52.122596 | 2018-08-01T20:57:36 | 2018-08-01T20:57:36 | 80,749,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,741 | cpp | EquationSolver.cpp | #include "stdafx.h"
#include "EquationSolver.h"
#include "FunctionType.h"
#include <cmath>
using namespace std;
CEquationSolver::CEquationSolver()
{
}
CEquationSolver::~CEquationSolver()
{
}
sig::connection CEquationSolver::DoOnSolutionChange(const SolutionChangeSignal::slot_type & handler)
{
re... |
392e50b9acda6cf019d4d780e964b947421aa2f8 | 18d5e9b3aa66a788387d65460bf66977fb340b5d | /Template Codes/DsuOnTree_246E.cpp | adebe755c2498b22ae591474327941eeab8db23e | [
"MIT"
] | permissive | SajibTalukder2k16/competitive-programming | 430e7a8845ae0c5ae61bf965c114d9674ecf9484 | 9932371c937be34d29d495e9a39ecdcad5c1b448 | refs/heads/master | 2020-09-27T21:29:04.953313 | 2019-11-25T22:24:26 | 2019-11-25T22:24:26 | 226,613,903 | 1 | 0 | MIT | 2019-12-08T04:25:41 | 2019-12-08T04:25:40 | null | UTF-8 | C++ | false | false | 2,388 | cpp | DsuOnTree_246E.cpp | #include<bits/stdc++.h>
using namespace std;
#define fRead(x) freopen(x,"r",stdin)
#define fWrite(x) freopen (x,"w",stdout)
#define LL long long
#define ULL unsigned long long
#define ff first
#define ss second
#define pb push_back
#define ... |
e20f01d07b66b8fb24de0d3cc475535887ec3a48 | f7c4450e8e3294e6041b16081214a18d38c0c99c | /imageGrapAssistant/mainwindow.cpp | 7822a495575cb367420d1de76b2cb499cf391364 | [] | no_license | lonly-wolf/imageGrapAssistant | 4cf35c57de14902e456ddd907d718d5d8e70789c | 7f0b4a48e8a4eaeeb334d53ae269a52038cbd458 | refs/heads/master | 2021-01-10T08:17:47.535571 | 2016-04-06T08:44:31 | 2016-04-06T08:44:31 | 55,216,429 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 24,390 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QtSerialPort/QSerialPort>
#include<QSerialPortInfo>
#include<QTimer>
#include<QDebug>
#include<QMessageBox>
#include<QSettings>
#include<QVBoxLayout>
#include<QGridLayout>
#include<QHBoxLayout>
#include<QChar>
#include<QByteArray>
#include<QString>
#include<Q... |
4490485c14b27e7ec0bd85290456ae082bf03615 | 87f54a40c43244695aa82ae3c4c2a3c7cee03c55 | /src/cegis/instrument/meta_variables.cpp | 437bafec83e7023ebfb512524bf4a0974d94e268 | [
"BSD-2-Clause",
"BSD-4-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | smowton/cbmc | 6de9f78c3e56a2a73ab5361dc0ebbddcb29ed370 | ab1b9448517a18d23ac68099d8bf0260be1fefa4 | refs/heads/master | 2021-05-23T03:06:42.077145 | 2016-11-29T23:13:44 | 2016-11-29T23:13:44 | 75,178,953 | 1 | 1 | NOASSERTION | 2019-05-01T12:23:12 | 2016-11-30T11:02:38 | C++ | UTF-8 | C++ | false | false | 4,221 | cpp | meta_variables.cpp | #include <util/namespace_utils.h>
#include <ansi-c/c_types.h>
#include <goto-programs/goto_functions.h>
#include <cegis/cegis-util/program_helper.h>
#include <cegis/instrument/literals.h>
#include <cegis/instrument/instrument_var_ops.h>
#include <cegis/instrument/meta_variables.h>
#define NS_SEP "::"
namespace
{
s... |
3edefcb2e662a3440a77edff688aebe5b744b8b6 | a97b97620026b3ff8874abe8255ad5ced0ec5a25 | /Step2/DecorSpartyTreasure.cpp | f73563cdb835997d47ad8a4ff1bc64d96bfe5cf5 | [
"MIT"
] | permissive | maraujo/cse335project1 | ffc6f9e057398bf40c91da9aabd0e46cc7a92399 | 2ff1f0dd3b55295bad2e63d3bcc64944b4d58f70 | refs/heads/master | 2021-03-12T23:08:03.325888 | 2014-10-18T23:10:14 | 2014-10-18T23:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,802 | cpp | DecorSpartyTreasure.cpp | /**
* \file DecorSpartyTreasure.cpp
*
* \author Zachary Walters
*/
#include "stdafx.h"
#include <string>
#include "DecorSpartyTreasure.h"
#include "Aquarium.h"
#include "AirBubbles.h"
#include "Item.h"
#include "FishAngel.h"
#include "FishBeta.h"
#include "FishCat.h"
using namespace std;
using namesp... |
3f08a835905fe6a367b8fde15e5d1f7c98491ced | 6504215c8de43b1e3d1bfb9e9740d8d1848e6282 | /SDK/UE4_W_PartySlotInfo_functions.cpp | 8def216d6449ccc0860a3a29234da3b37fc81f7c | [] | no_license | MuhanjalaRE/Midair-1.0.4.9504-SDK | d9d82cdaf72d16bcd56400edf27092d85867db5f | c935e6e8f07953c3ab71e10d405db42a7c60627b | refs/heads/main | 2023-02-24T11:59:43.891011 | 2021-01-29T19:04:11 | 2021-01-29T19:04:11 | 334,117,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,005 | cpp | UE4_W_PartySlotInfo_functions.cpp | // Unreal Engine 4 (4) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "UE4_W_PartySlotInfo_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function... |
024ffdbbea9cb427706fdbbaa4bf1d12a017e439 | 5c9777049a5af6fb2400578ba6214ea8b8249b59 | /practices/Q19.cpp | f4c6ba1562771d2ef4d34d897dd8f2a1367553fd | [] | no_license | brucelee503jo3/F611700 | 092e0233dbc2037fcd1fae06fecd37191e59d426 | de4d00cc4ba05576b19a919d0707f082b2b5ebb2 | refs/heads/main | 2023-06-20T02:48:58.920659 | 2021-07-20T05:51:13 | 2021-07-20T05:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | Q19.cpp | #include<iostream>
#include<cstdlib>
using namespace std;
int gcd(int, int);
int main()
{
int a;
cin>>a;
for(int i=0;i<a;i++)
{
int b,c,e;
cin>>b>>c;
e=gcd(b,c);
cout<<e<<endl;
}
return 0;
}
int gcd(int a, int b)
{
int n;
for(int i=a;i>0;i--)
{
if(a%i==0&&b%i==0... |
75b0c9b50170218d8b477094843af7a2588a396b | cb41a9b2c6a2184fdc42dbcc8f5ae739a4073472 | /headers/main.h | 34179f76ac387e17e13d007fb2e065a22a680339 | [
"MIT"
] | permissive | LoneVValker/GmodDone | 476ce085e78b2f5c54da3a9fd36ea63baac79d26 | 586a3ba75f90f24c3d468ed9eb0836e623367b74 | refs/heads/master | 2021-05-08T04:57:00.270525 | 2017-10-28T13:33:19 | 2017-10-28T13:33:19 | 108,471,399 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | h | main.h | #include "player.h"
#include "bhop.h"
#include "util.h"
#ifndef MAIN_H_
#define MAIN_H_
namespace Main {
extern Player player;
extern Bunnyhop bhop;
extern HWND window;
extern DWORD pid;
extern DWORD module_base;
extern Util util;
extern HANDLE process;
extern DWORD player_base;
extern DWORD ... |
8c863da0bfc8cd7791fa7b5b23e97cc20eb1484f | 5ec3ca0893a3ec8a18e0dbf83a10cd75ec07abb8 | /src/core/structs/CameraData.h | 63b17534eeacce10c871e6cc74232eac741b02be | [] | no_license | pmabres/stairdismount | 2427683cfa86972e440016882c9bf0aa7fedf71b | d3a542001329951198939c8921d100e851fb6528 | refs/heads/master | 2020-03-21T04:31:17.373047 | 2018-06-07T10:44:53 | 2018-06-07T10:44:53 | 138,112,513 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 166 | h | CameraData.h | #pragma once
#include <glm/glm.hpp>
namespace Game
{
struct CameraData
{
CameraData()
{
}
glm::mat4 viewMatrix;
glm::mat4 projectionMatrix;
};
}
|
b12a9e8be8338a0a7ac0abed396c7974d670cfb8 | f559d279f85223ae40426df6c6ee33de31395f42 | /test3/9.cpp | 40231aa57f2efabec05833f719c33a881022d1c1 | [] | no_license | mark9856/DataStructures_2014 | 0ff3f0e41c65f012ba2f60f655e96fd6e56233af | 1c31455afe87980fdd258d9771a6a895155cb5da | refs/heads/master | 2021-01-01T19:23:56.105057 | 2015-02-24T01:50:42 | 2015-02-24T01:50:42 | 31,240,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,082 | cpp | 9.cpp | void swivel_left(Node * & root){
if(root -> left == NULL){
return 0;
}
else {
if(root -> left -> right != NULL){
Node * tmp = root -> left;
root -> left = tmp -> right;
tmp -> right -> parent = root;
tmp -> right = root;
if(root -> ... |
a013eaab1a603f9a61a7156a9221048efea2f3a1 | 5d8f2a090e3461155f5a3b6bd1b38e8f59ed1062 | /include/detail/Vector.inl | 096b618690f48b5a6db6feef8707f7ea3e421b64 | [
"Apache-2.0"
] | permissive | Aantonb/gotham | 97ea1504bf1ac4a2d8865919aeec4a6fba077824 | e3551cc355646530574d086d7cc2b82e41e8f798 | refs/heads/master | 2021-01-18T06:56:11.690181 | 2012-01-26T01:25:44 | 2012-01-26T01:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | inl | Vector.inl | /*! \file Vector.inl
* \author Jared Hoberock
* \brief Inline file for Vector.h.
*/
#include "Vector.h"
Vector
::Vector(void)
:Parent()
{
;
} // end Vector::Vector()
Vector
::Vector(const float x, const float y, const float z)
:Parent(x,y,z)
{
;
} // end Vector::Vector()
Vector
::Vector(const... |
80b90bb2519e7fabc2de8d0f7f059115c2623a3a | 355449f7d87a7367c072541f8a22bdb4bb46ba08 | /Containers/Some_example_of_comparable.cpp | 646169c8c04f973662f55ba1e2c0704b54204ad1 | [] | no_license | Erickdrakus93/Pool_proyect | fa8655646839a22f84c1406142b4125d7aed13d7 | b15fc5d40d2d2d241a0ddbd793ae05bfaa36c91c | refs/heads/master | 2022-11-08T23:58:23.729954 | 2020-06-19T17:54:57 | 2020-06-19T17:54:57 | 256,092,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,313 | cpp | Some_example_of_comparable.cpp | //
// Created by erick-hdz on 02/06/20.
//
#include "iostream"
#include "vector"
#include "algorithm"
using namespace std;
/**
* Here we call to use or call in all the script
* @param vr
*/
void print_sort(vector<string>& vr);
struct Some_case;
void Print_the_Structure(vector<string>& vr);
struct the_founder;/... |
cb0f14bbc74cdb767cf6e9e4cdd8f8e12fdfa242 | 570d2158497528c1b83553fa12d6c631c5949d6b | /algo.cpp | 54a2400314d25f763a8498ed0ab8a76a60feb869 | [] | no_license | sumaiyadabeer/SW-III | df6f8c9f5a976c0f649f31bf82be66ebe1d7d4f1 | 239043f0b0f1d2416cef96f417dc30235f708575 | refs/heads/master | 2020-05-23T15:23:55.306093 | 2019-05-15T12:50:28 | 2019-05-15T12:50:28 | 186,825,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 943 | cpp | algo.cpp | #include <cstdlib>
#include <iostream>
using namespace std;
//member function
void insertion_sort(int arr[], int length);
void print_array(int array[],int size);
int main() {
int i,n;
int array[50];
cout<<"enter the no of element n";
cin>>n;
for(i=0;i<n;i++)
{
cout<<"enter the no of element"<<i+1... |
457d2ce3b9723f22471feec0f971ac3c27fe2b45 | 976fad5bd27823017d4b9bac1fcc3d2f1685714f | /releases/pre-alpha/1_0_0 Kasia/yen/Settings.h | a726b1e4125f8b4a48a652562c73785309f78667 | [] | no_license | piter10p/yen_old | 462bef71ba3f39b3d6224b4713b6bf6cfb2ef097 | 2a378239c57a5e934423c6e2ed55bf7cf7507e72 | refs/heads/master | 2021-08-27T17:47:05.818793 | 2017-09-23T15:50:34 | 2017-09-23T15:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | h | Settings.h | #pragma once
#include "Vector.h"
#include <string>
namespace yen
{
struct GraphicsSettings
{
uVector resolution;
bool fullScreen;
unsigned int fpsLock;
bool vSync;
};
struct Settings
{
GraphicsSettings graphicsSettings;
std::string language;
};
}
|
96a74f2621d920e6715ba48fbf49861d1c018efd | cbd7f17ec8e983e3f302aa3c9a4c5bd676789bef | /code/steps/header/model/load_relay_model/UFLS_test.h | efab41367a51afa143d6b7a9e085868e2ddd16ad | [
"MIT"
] | permissive | yuanzy97/steps | 477bce28a11c8e5890f27bb56490f3b80b343048 | 139193a9c84ad15e342f632ac29afac909802b78 | refs/heads/master | 2023-04-29T10:00:13.987075 | 2022-04-13T13:08:17 | 2022-04-13T13:08:17 | 256,682,978 | 0 | 0 | MIT | 2020-04-18T06:13:20 | 2020-04-18T06:13:20 | null | UTF-8 | C++ | false | false | 723 | h | UFLS_test.h | #ifndef UFLS_TEST_H
#define UFLS_TEST_H
#include <istream>
#include <cstdlib>
#include <cstring>
#include <iostream>
#ifdef _MSC_VER
#pragma warning (disable: 4290)
#endif
#include "cpptest.h"
#include "header/model/load_relay_model/load_frequency_relay_model_test.h"
#include "header/model/load_relay_model/UFLS.h"... |
41dc8ac41a25499f7dad9ef4792f2adcc77bf26b | 29036fe2e1e0002b2348715d60b2c28b30466a6f | /src/currentactivitytableview.h | a80467bbb444b0c9437ec33f633e12563dc77e28 | [
"MIT"
] | permissive | anjinkristou/hourglass-qt | d70495a542f1c435b486a77ca555c6f6eb6082ef | 90a726de0249f34a2db9603b3c0e6dc77522e915 | refs/heads/master | 2021-01-17T23:25:44.235962 | 2012-10-03T16:04:34 | 2012-10-03T16:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | h | currentactivitytableview.h | #ifndef __CURRENTACTIVITYTABLEVIEW_H
#define __CURRENTACTIVITYTABLEVIEW_H
#include "activitytableview.h"
#include <QSize>
class CurrentActivityTableView : public ActivityTableView
{
Q_OBJECT
public:
CurrentActivityTableView(QWidget *parent = 0);
const QSize &stopButtonSize() const;
void setStopButto... |
09a8239a5ee2d16feea059834f316de71f3dd06b | 6048717695c765b2a59e37e0510d4d30d57571d2 | /CodeForces/CodeForces Round #122 Div 2/B/B.cpp | 778a1e5300339c4223b41c9b3c239c2138ded8c8 | [] | no_license | scipianus/Algorithm-contests | 4515cf3afde76695a480ab1cf9972c722524222b | 1fc34b7049a2735589e7531c53f6f083c41f086c | refs/heads/master | 2016-09-03T06:45:10.499243 | 2015-03-26T19:07:24 | 2015-03-26T19:07:24 | 32,945,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | B.cpp | #include<iostream>
using namespace std;
int T;
long long n,d,m;
long long Cmmdc(long long a,long long b)
{
long long r;
while(b)
{
r=a%b;
a=b;
b=r;
}
return a;
}
int main()
{
cin>>T;
while(T--)
{
cin>>n;
if(n==1)
cout<<3<<"\n";
else
{
d=Cmmdc(n*4LL,n+1);
m=n;
m*=4LL;
m*=(n+1);
... |
c3fb4df842c1aab189f2a219bd1658bdd99392ff | 7bc76175a17f0172513a6452b0bba273f78fd742 | /nested_loops2.cpp | 1081593881c2d55975df195a4066320eaed5a8cb | [] | no_license | Venutian/ZYCpp | d12293d90bf70eca99f77021961765b559e3ff26 | eef4fa8aa45e6b5e827f3fa9a464442648bd411a | refs/heads/master | 2020-03-28T11:44:55.556627 | 2018-10-02T06:27:09 | 2018-10-02T06:27:09 | 148,243,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | cpp | nested_loops2.cpp | #include <iostream>
using namespace std;
int main() {
int numRows = 2;
int numCols = 3;
// Note: You'll need to declare more variables
int k = 1;
for(int i = 0; i < numRows; i++){
char letter = 'A';
for(int j = 0; j < numCols; j++){
cout << k << letter << " ";
letter++;
}
k ++;
}
cout... |
a445687c5d23611efd48a7ccd4c21f16faafbd5f | 4b81a20f05329f0ca53dcb5731238cbbb6c5f8ca | /C&Cpp/cpp_primer/chaper10/1018.cpp | a9ab69c8f28b72dfd3606f2926df861a662f698d | [] | no_license | linw/Workplace-in-Linux | 2dcda11be3a728dec72705af7bc06628f4e99968 | 72511f25780f3655966320cbd76fc6c84219b085 | refs/heads/master | 2020-04-24T02:33:24.053902 | 2012-10-11T01:40:26 | 2012-10-11T01:40:26 | 2,848,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,361 | cpp | 1018.cpp | /*
* File name: 1018.cpp
* Author: linwei
* E-mail: kinglw8729@gmail.com
* Date: 2011-12-8
*/
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include "stdio.h"
using namespace std;
int main()
{
map<string, vec... |
e99e7f81bd2b9429406e3b702ae3f5fa698de8a3 | 72b0f3be22e20f6555303a06ada05f1dc5868d68 | /q26-remove-duplicates-from-sorted-array.cpp | a8c49e2454e1548947d1e75e880daea327299261 | [
"MIT"
] | permissive | risyomei/leetcode | bc7d2e6fc0940c6179ee2cd0c7de644e89b57d04 | 8532a9e36b8d55a359549ce53ba57a51abd83950 | refs/heads/master | 2022-10-31T08:14:33.154367 | 2022-10-10T10:59:42 | 2022-10-10T10:59:42 | 232,588,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | cpp | q26-remove-duplicates-from-sorted-array.cpp | /*
ANSWER:
Always use i to record last non-duplicates.
Always use j to check next
[0,0,1,1,1,2,2,3,3,4]
| |
i j
*/
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
if(nums.size() < 2)
return nums.size();
int i = 0, j = 1;
... |
fb85c79e9dd21b24e6728596f8fcaca21609b7a8 | c72d5fce6ed53fb3cf353a7f1566f14ecea66419 | /C/sort_word.cpp | 5389a1837bcaae24597c2305f1771f98290f1ba5 | [] | no_license | zhl306540637/WordSorter | 4e497cfac592cb7d968a9103cd307216a47ade1f | 56b54cc2b8876b4644974dca5c866a8f6374b75c | refs/heads/master | 2021-01-20T11:17:23.398505 | 2012-09-28T09:49:58 | 2012-09-28T09:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,127 | cpp | sort_word.cpp | /*
* sort_word.cpp
*
* Created on: 2012-9-28
* Author: yewang
*
* 多线程 无锁 数字比较 预先分组
*
*/
#include <stdint.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <ctype.h>
#include <time.h>
#include <errno.h>
#include <pthread.h>
#include <sys/time.h>
#include <loc... |
e1202eec8c3f9cc01e50e2a802a215fb0ef36c25 | f8d20bb9c534d570970331158b7538e4c8f2ac77 | /UVa/514.cpp | 49357a2bbd6e571def65bc522f91e49b9599ef0f | [] | no_license | pietroluongo/bronze-do-labgrad | d0b81197276ca1f7c1ed8a1f70d3f8c35271b211 | 31eb676282d7d847e5b28310c1ae610a43f78a74 | refs/heads/master | 2020-04-19T14:00:54.172497 | 2019-06-05T02:32:12 | 2019-06-05T02:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,767 | cpp | 514.cpp | #include <vector>
#include <cstdio>
#include <map>
#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <stack>
using namespace std;
int main() {
int n;
bool flag = true;
while(1) {
scanf("%d", &n);
if(n == 0) {
break;
}
// else if (flag){
// ... |
463623c92f515003e7189781e5890ad3121bd05e | 4bf2ee10c6594f70c32feb3bcb50eec186daa9cf | /solutions/1251/1251.cpp14.cpp | 64940f0e195ae46cc0419c6a0f9f6e65c2506a16 | [] | no_license | jwvg0425/boj | 7674928dc012ba3c404cef3a76aa753828e09761 | 4b7e7389cbe55270bd0dab546d6e84817477b0f1 | refs/heads/master | 2020-07-14T02:37:36.658675 | 2017-07-13T06:11:44 | 2017-07-13T06:11:44 | 94,295,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | 1251.cpp14.cpp | #include <stdio.h>
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <tuple>
#include <memory.h>
int main()
{
std::string word;
std::cin >> word;
std::string min;
for (int i = 1; i < word.size(); i++)
{
for (in... |
9606a93884fa62b1315d7bfdb8fef409e2f2203f | 69e8af5defbb694794a0437084be69c10319b0d9 | /weakptr-tree.cpp | 30add4c5742503bc6569df40beeefcae476718ed | [] | no_license | OpsRaven/SenecaOOP345-attic | 64e79ff5313e1eed69c787182218f5b5e3b826d5 | b8f9c2bae3c10e24e17e5d037172bcad8a21563b | refs/heads/master | 2021-01-16T20:49:13.917549 | 2016-02-12T18:22:16 | 2016-02-12T18:22:16 | 52,182,396 | 2 | 0 | null | 2016-02-21T00:08:34 | 2016-02-21T00:08:34 | null | UTF-8 | C++ | false | false | 7,240 | cpp | weakptr-tree.cpp | // GB - embellished from:
// http://programmers.stackexchange.com/questions/274801/raw-weak-ptr-unique-ptr-shared-ptr-etc-how-to-choose-them-wisely
#include <vector>
#include <string>
#include <memory> // *_ptr family
#include <memory.h> // memcpy
#include <iostream>
class ObjNew { // simple rule-of-5 class
size... |
1a5a010775239b82c0fe5b0b77dac3c8cab78570 | b35018adc5c098ea2fdd7b42c792fdcb2bcf0863 | /src/yocto/yocto/ipso/real-indices.cpp | 527f3f6ade710a17ab06c47d11f870f40b3d5b0c | [] | no_license | ybouret/yocto | 02451e792a9bd83b84cbadf001fc248dd21cd77c | a8dbf49f00d989024e55de7c9f4349e97e50aecf | refs/heads/master | 2023-02-11T08:02:39.425477 | 2023-02-01T08:08:01 | 2023-02-01T08:08:01 | 67,982,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 584 | cpp | real-indices.cpp |
#include "yocto/ipso/real-indices.hpp"
namespace yocto {
namespace ipso
{
real_indices:: real_indices() throw() : imin(), imax()
{
}
real_indices:: ~real_indices() throw()
{
}
real_indices:: real_indices( const real_indices &other ) throw() :
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.