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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0a2beb866525c8933bfacc8c5bfc3fd3f8b169b | 7fa689caaeea36783b31bc0ca6da36ea5adaf262 | /cxx/tests/test_hirm_animals.cc | 05407e3c6e756a3be666c08e36224cf424fb4520 | [
"Apache-2.0"
] | permissive | probsys/hierarchical-irm | 28aaa44d38d7d61a538c637f6e45fb70ef39b96c | 042aaea56d66d05c4c54848353696ca60c692581 | refs/heads/master | 2023-07-11T02:55:35.492135 | 2021-06-18T21:32:14 | 2021-06-18T21:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,751 | cc | test_hirm_animals.cc | // Copyright 2021 MIT Probabilistic Computing Project
// Apache License, Version 2.0, refer to LICENSE.txt
#include <cassert>
#include <random>
#include "hirm.hh"
#include "util_hash.hh"
#include "util_io.hh"
#include "util_math.hh"
int main(int argc, char **argv) {
srand(1);
PRNG prng (1);
string path... |
c8232abe7b5e684b32c34173c541020553334eb0 | 02a0312af0a33329bf8d54560bfb4f81d2ce9255 | /P6/SDLProject/SDLProject/Scenes/Dungeon.cpp | 5e5757537004d1a7155af0580e6297b95b6ba8b8 | [] | no_license | fk798/CS-UY-3113 | d663c258f5ac1b5b8a64ff26b2acdb6fdce93a6a | cb8ecbb2fb0ea9e1c71c47fb64bdad3d78ec003f | refs/heads/main | 2023-04-21T03:29:43.440485 | 2021-05-13T02:46:30 | 2021-05-13T02:46:30 | 330,031,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,431 | cpp | Dungeon.cpp | #include "Dungeon.h"
#define DUNGEON_WIDTH 10
#define DUNGEON_HEIGHT 10
#define DUNGEON_ENEMY_COUNT 1
using namespace std;
void Dungeon::Initialize(Entity *player) {
state.nextScene = -1;
GLuint mapTextureID = Util::LoadTexture("medieval_tilesheet_2X.png");
state.map = new Map(DUNGEON_WIDTH, DUN... |
6d3223f20d934841479c75bc1a02d65b2cd5657c | 08cf73a95743dc3036af0f31a00c7786a030d7c0 | /Editor source/OtE/menus/SinglePlayerMenu.h | 1e0f81106d08ef08006bc967c99f33e4bf1958d5 | [
"MIT"
] | permissive | errantti/ontheedge-editor | a0779777492b47f4425d6155e831df549f83d4c9 | 678d2886d068351d7fdd68927b272e75da687484 | refs/heads/main | 2023-03-04T02:52:36.538407 | 2021-01-23T19:42:22 | 2021-01-23T19:42:22 | 332,293,357 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,256 | h | SinglePlayerMenu.h | /*********************************
*
* On the Edge
* Copyright (2005) Azuris Productions
* Jukka Tykkyläinen & Ismo Huhtiniemi
* http://koti.mbnet.fi/jtykky
*
* SinglePlayerMenu - handles single player (ship selection)
* menu functionalities and inizialiting
*
*********************************/
#ifndef __CS... |
ea32369499cdcf6632c1580d97c39292e9031c92 | 87bd32c1dcfc98c09491e8c720d7d1ba70016a37 | /Classes/Pocket.cpp | cf78ad4a7c1e3e4b1f39d0f2f4be719723fde831 | [
"MIT"
] | permissive | sue602/skynet_cocos2d-x_network | 78a469d5de701958e675e06bad02586de2cbd6fb | 0ff00d7843fb70e1187065632697761018502f74 | refs/heads/master | 2021-01-18T08:38:57.627955 | 2016-01-15T11:15:47 | 2016-01-15T11:15:47 | 50,024,840 | 0 | 1 | null | 2016-01-20T11:09:18 | 2016-01-20T11:09:18 | null | UTF-8 | C++ | false | false | 162 | cpp | Pocket.cpp | #include "Pocket.h"
//#include "Util.h"
Pocket::Pocket():length(0),version(0),id(0),msg(NULL){
}
Pocket::~Pocket()
{
if (msg != NULL) {
delete[] msg;
}
}
|
9b15bca11f7a3bc348bfc60466ed1b870e6305b2 | 98f9f977a39843e5f7719062f43011ebfd169e42 | /Libs/Widgets/ctkPushButton.h | 9e091ae0fd64ded31d10825b1dba46729c1f3192 | [
"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 | 3,245 | h | ctkPushButton.h | /*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.ap... |
998b778a6d117b9023972039d861e1008b11df05 | a253ccb9df6064847e0ca092144684bbecbc8af4 | /Rectangle.h | 4b178585c2f2281cfd40e9b112dea825c1cc675d | [] | no_license | Oberon222/Polimorphism-Shape | 3c84f3dc3dca321f2bc48408dd114cb9a12c4d49 | 8632aebb45b95dd0427891c566a9d4fa2e66274d | refs/heads/master | 2022-11-11T13:58:20.774305 | 2020-06-28T13:25:48 | 2020-06-28T13:25:48 | 275,589,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,772 | h | Rectangle.h | #pragma once
#include<iostream>
#include <fstream>
#include"Shape.h"
using namespace std;
class Rectangle : public Shape
{
int rectangleLeftCornerX;
int rectangleLeftCornerY;
int rectangleLength;
int rectangleHeight;
public:
Rectangle() : rectangleLeftCornerX(0), rectangleLeftCornerY(0), rectangleLength(0), rectan... |
a613d53f67bb4378d14beca35c3ef853bbf327e0 | ae5e633003f23b107350e640d8e21e6e61f6b097 | /unit_tests/gtest_string_iterator.cpp | 6d16660bdd0ea6cf0c80507d037238481c58300b | [
"MIT"
] | permissive | nCine/nCine | 6a723f0a26d53fd5d1f6694ad244122cbcdbe4e0 | d80f0e651be8981fde21ddccbc8a695b7a738727 | refs/heads/master | 2023-07-20T02:43:48.931548 | 2023-07-10T20:59:49 | 2023-07-10T20:59:49 | 189,073,851 | 954 | 70 | MIT | 2021-06-30T16:55:45 | 2019-05-28T17:31:43 | C++ | UTF-8 | C++ | false | false | 3,843 | cpp | gtest_string_iterator.cpp | #include "gtest_string.h"
namespace {
class StringIteratorTest : public ::testing::Test
{
public:
StringIteratorTest()
: string_(Capacity) {}
protected:
void SetUp() override { string_ = "String1String2"; }
nctl::String string_;
};
TEST_F(StringIteratorTest, ForLoopIteration)
{
unsigned int n = 0;
p... |
3350226fad4df364db92261f74347c3c350d3513 | 0b7d78e82c7fa2d9ccbd375e5f5c20121e2d6792 | /codeforces/wrong_subtraction.cpp | 4b4886f45673deb37a038f88633fe708f1375070 | [] | no_license | bdugersuren/exercises | 6c5f16f38731c06b6e46dc80bab844f0ba749161 | 43bd1c1399921c5b0b314f7f7159f3339b9d2605 | refs/heads/master | 2023-04-25T13:41:31.786355 | 2021-05-13T05:22:32 | 2021-05-13T05:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 160 | cpp | wrong_subtraction.cpp | #include <iostream>
using namespace std;
int main() {
int n,k,i;
cin >> n >> k;
for (i=0;i<k;i++) (n/10*10==n ? n/=10:n--);
cout << n << endl;
} |
139d7367d47b4e64a5df2c9fad24d58ff1000026 | 996dbc3c2656fa3a4b362d58f582322ada857bb6 | /Board.h | 086095a00b14f86bb8d63496aac75c49ecce2063 | [] | no_license | jacob-anabi/cpsc350-assignment2 | c249bde462c75124be9c14cf6c12bbaa1d9e825f | 57ccd1f0fe871555bb5b32399ffd0e631e26934b | refs/heads/master | 2020-03-29T11:02:17.003636 | 2018-09-30T06:53:02 | 2018-09-30T06:53:02 | 149,833,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,138 | h | Board.h | /**
* @author Jacob Anabi
* @date 2018-09-29
* @version 1.0
* 2294644
* CPSC 350
* Assignment 2
*/
#ifndef BOARD_H
#define BOARD_H
#include <string>
#include <fstream>
class Board
{
public:
/**
* default constructor
*/
Board();
/**
* variable constructor
* @param row - number... |
069b3199ebaa8b4f2511027e06d7653080ecde4c | d543bd6e66eebbef9f9f8df69f5eb1143b1b280c | /VHMScript/VHMScriptInterpreter.h | d29be2587addf007c61baf9b49cdf553f5fa44fc | [] | no_license | byeongkeunahn/VirtualHDDManager | de9218558abcf1fc46eabc762cdf5b23790d849c | 4ad4188dfc7f907930b536ac1b3781ef9ab549d5 | refs/heads/master | 2021-01-22T22:57:23.530769 | 2017-03-20T15:19:00 | 2017-03-20T15:19:00 | 85,592,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 117 | h | VHMScriptInterpreter.h |
#pragma once
class CVHMScriptInterpreter
{
public:
CVHMScriptInterpreter();
virtual ~CVHMScriptInterpreter();
};
|
fc24a3e94d91daf02e022e13ea674d79d1f69f68 | 8e12a396645f46c0b14dfc69b84ea1f7ad3e2314 | /Sniffer/Src/qsn/FrameListener.h | ac088b003f3d86eb7914ba6fa208e9e3e4258742 | [] | no_license | SKNmain/Sniffer | 20ba4443128ffff0449ff9903df6bb0a4eb9ac31 | abadff2a9e3ff9384b8001465d0c877efafd7d2e | refs/heads/master | 2021-03-07T21:05:54.539086 | 2020-02-20T18:47:36 | 2020-02-20T18:47:36 | 246,297,227 | 0 | 0 | null | 2020-03-10T12:38:56 | 2020-03-10T12:38:55 | null | UTF-8 | C++ | false | false | 1,371 | h | FrameListener.h | #pragma once
#include "stdafx.h"
#include "Adapter.h"
#include "Utils/Stoppable.h"
#include "FramesStash.h"
namespace qsn
{
class FrameListener
{
public:
FrameListener(FramesStash* packetsStash);
~FrameListener();
bool isListening() const;
bool loadDumpFile(const std::string& dumpFil... |
1a5897e316ecf4a79ad1c5c9a78e7733fe7bec55 | ec36a2c8720897ea188fa2af666223329ba9b444 | /Source/AssignmentGame/Single/ManagerClass/ManagerClass.h | 50e8934ab927123d131dc5575ebd0a81640fa53a | [] | no_license | HongRin/AssignmentGame | 8a27fb395b884aa15a7c1f9bf35f048ac548828b | 82732570636362f852a8d821053805502cbb0d0a | refs/heads/main | 2023-05-14T14:09:42.729812 | 2021-06-12T04:58:29 | 2021-06-12T04:58:29 | 374,904,443 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 588 | h | ManagerClass.h | #pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "ManagerClass.generated.h"
// ManagerClass Type 의 객체를 간편하게 불러올 수 있는 매크로
#ifndef MANAGER_INSTANCE
#define MANAGER_INSTANCE
#define GetManager(ManagerClassType) (GetGameInst(GetWorld())->GetManagerClass<ManagerClassType>())
#endif
UCLAS... |
1ca975836ee3473d2e9d205c364563d6be68b46e | 1adb9272ee30261882d56e6f955ad482f80b9584 | /comp15/labs/lab6/StringSet.cpp | ecfb32ff12a20ab9665d6e8279446aba77dce225 | [] | no_license | tomma367/Tufts-Stuffs | 45d7b2881e3bfa698c9c5029c08dbf8750ac5872 | 723bc0902bb246d8650a5d6651bcbf5a453d3ace | refs/heads/master | 2020-09-02T10:37:08.816715 | 2014-08-07T13:22:23 | 2014-08-07T13:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 766 | cpp | StringSet.cpp | #include "StringSet.h"
StringSet::StringSet()
{
company="";
numFlavors=0;
}
StringSet StringSet::produceIntersection(StringSet* other)
{
StringSet inter;
for(int i=0; i<numFlavors; i++)
{
for(int j=0; j<other->numFlavors; j++)
{
if(flavors[i]==other->flavors[j])
{
inter.add(fla... |
bb2e5895ef50bc2e72fbbdde6ef123e88a9990c8 | ab1dedf215dc0d34cdc9aafb9613ceac549821b1 | /Linear3DInterpolator.h | 642e4116f526f2e69bde8772597abe72c744b447 | [] | no_license | zyzdiana/MotionCorrection | 8cdb5cfd84ff420bcfd2168808821fb90c13212e | 930cda92c56c9de598dd554176e95dd6e6d4e07f | refs/heads/master | 2020-12-20T09:46:02.144459 | 2017-11-20T23:03:33 | 2017-11-20T23:03:33 | 49,975,702 | 0 | 1 | null | 2016-03-14T16:56:48 | 2016-01-19T19:01:38 | C++ | UTF-8 | C++ | false | false | 2,214 | h | Linear3DInterpolator.h | #ifndef Linear3DInterpolator_h
#define Linear3DInterpolator_h
#include "Interpolator3D.h"
#include <Eigen/Dense>
#include <cmath>
#include <vector>
template <typename VolumeT, typename CoordT>
class Linear3DInterpolator : public Interpolator3D<VolumeT, CoordT> {
public:
typedef typename VolumeT::value_type T;... |
d3d7b673f19fd185b99f9fe85796e5eb74fe5985 | 0a754910d2dce595afbb69984c786165825aa37c | /GameC1/Scene.h | 9418455e218b2e13e92e96c65665eccc6dde0f71 | [] | no_license | Danerwilling/learnc | 58b167228bbc770a6a7046d7137920007b01cc07 | ea5980f148b76a7a767a4dc34477c631e410f00f | refs/heads/master | 2020-05-04T21:36:52.362242 | 2015-04-24T21:51:05 | 2015-04-24T21:51:05 | 34,463,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 149 | h | Scene.h | #pragma once
#include <iostream>
#include "Sound.h"
using namespace std;
class Scene:Sound
{
public:
Scene();
~Scene();
virtual void play();
};
|
a2710bab2f35a72c40b5bf0809ffdc1f4dd63f28 | 1b49fac0f0ea40589ecd29d04a6f1ca4d6c3a7eb | /lib/update/molecdyn/monomial/two_flavor_monomial_params_w.cc | b9a75787d99c1930dd922420ec4860419cd23a88 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | orginos/chroma | cc22c9854e2a0db2d4f17488904671015196c36f | 57ba8783393dd7668c6a45e7f4c9919280c29cd3 | refs/heads/master | 2021-01-16T21:38:32.182916 | 2015-10-18T16:03:54 | 2015-10-18T16:03:54 | 24,952,861 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,513 | cc | two_flavor_monomial_params_w.cc | // $Id: two_flavor_monomial_params_w.cc,v 3.2 2006-07-04 02:55:52 edwards Exp $
/*! @file
* @brief Two-flavor monomial params
*/
#include "update/molecdyn/monomial/two_flavor_monomial_params_w.h"
#include "io/param_io.h"
namespace Chroma
{
// Read the parameters
TwoFlavorWilsonTypeFermMonomialParams::TwoFl... |
fe33461a3557abdb9851920d0d9f5ce7d80af4f5 | 11e11384d50043341b021bff5eaebbe48c032254 | /Main/Core/engine.cpp | b5bfd88f92f12427e3ee48a913db062d84b18c67 | [] | no_license | rghvdberg/Anthem | 748e7b594834a03e716df7cbec60ef6fe9018120 | 8f12385265d1d390c60c56ce6d951cb1305cfa8a | refs/heads/master | 2020-09-07T06:54:18.082966 | 2019-11-11T14:52:37 | 2019-11-11T14:52:37 | 220,693,374 | 0 | 0 | null | 2019-11-09T19:32:54 | 2019-11-09T19:32:53 | null | UTF-8 | C++ | false | false | 4,792 | cpp | engine.cpp | #include "engine.h"
#include <QDebug>
using namespace rapidjson;
Engine::Engine(QObject* parent) : QObject(parent) {
engine = new QProcess(this);
QObject::connect(engine, &QProcess::started,
this, &Engine::onEngineStart);
QObject::connect(engine, &QProcess::readyRead,
... |
03592f6f2dec6521e67195457d5333aecd1a7e5a | 8bf4d4002f44976131171395329e1dbe0b5d8410 | /src/ASTType.h | 17f38230385f2e678331856071002206d840fb55 | [] | no_license | fg123/sea | 7cae6e0d86d16bf72e986734974bd6faa1013dd4 | 1b9de0f3df9aeb82191e8b911cb7d1537e08e222 | refs/heads/master | 2021-06-05T15:09:24.523086 | 2021-04-14T02:29:25 | 2021-04-14T02:29:25 | 135,646,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | h | ASTType.h | #pragma once
#include "Util.h"
class TypeDeclaration;
struct Name {
std::vector<std::string> path;
Name() {}
Name(std::string str) {
path.push_back(str);
}
std::string ToString() {
return ListToString(path, ".");
}
};
struct SeaType {
Name name;
... |
dc8a0d76dbdfcffb9a56d28eed314234d9c7b008 | 1ffe4a35cf8244cb94e2b8e50ffd026f2e9ecef4 | /Tools/ResourceEditor/Classes/Commands/LandscapeOptionsCommands.cpp | 385af7d2d1a9d6d89dfa36ed3e33b9899247e9ab | [] | no_license | jjiezheng/dava.framework | 481ff2cff24495feaf0bf24454eedf2c3e7ad4bc | 6e961010c23918bb6ae83c0c3bee5e672d18537b | refs/heads/master | 2020-12-25T08:42:01.782045 | 2013-06-12T11:13:05 | 2013-06-12T11:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 472 | cpp | LandscapeOptionsCommands.cpp | #include "LandscapeOptionsCommands.h"
#include "DAVAEngine.h"
#include "../Qt/Scene/SceneDataManager.h"
#include "../Qt/Scene/SceneData.h"
using namespace DAVA;
CommandNotPassableTerrain::CommandNotPassableTerrain()
: Command(Command::COMMAND_WITHOUT_UNDO_EFFECT)
{
}
void CommandNotPassableTe... |
3bccd1e540256c7e98ac6421303cebf9177b38d4 | bbf8f711cbaaa78af6f354aadeb8ab9e7143b255 | /CaseStudy/HomeExercises/QML-C++/23102017/Team2/MessageBoard/message.cpp | bad3850cf61a06fc6ef635f908f07dd06fde31d7 | [] | no_license | ngocthanhpham/TrainingQML | 8381331180378adc11aa3603cc974a59d1f4440e | 32419cf3064a36e05c517c2c6be77dfef230d706 | refs/heads/master | 2021-09-06T10:09:19.266526 | 2018-02-05T10:36:21 | 2018-02-05T10:36:21 | 108,637,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | cpp | message.cpp | #include "message.h"
CMessage::CMessage(QObject *parent) : QObject(parent)
{
p_author_ = new CMessageAuthor();
p_body_ = new CMessageBody();
}
CMessage::~CMessage()
{
delete p_author_;
p_author_ = NULL;
delete p_body_;
p_body_ = NULL;
}
CMessageAuthor *CMessage::author() const
{
return t... |
112dcffc5e67e60843519ddf87f54b56a1037893 | 764ce8838747251ec0728d03f5d1543c9de0ace4 | /Himinn_Engine/Minigin/Scene.cpp | 039d8588c693f24c74cf8077343b961faf85f619 | [] | no_license | Himistyr/Himinn_Engine | f2d2986e7a34e1bf8f6f78ead45461efb3c385cf | bd4a399e9ff9140bfb60cd05d2e3074b57ad2e06 | refs/heads/master | 2023-05-16T23:01:02.499207 | 2021-06-07T03:57:38 | 2021-06-07T03:57:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | cpp | Scene.cpp | #include "MiniginPCH.h"
#include "Scene.h"
#include "GameObject.h"
using namespace Himinn;
unsigned int Scene::m_IdCounter = 0;
Scene::Scene(const std::string& name) : m_Name(name) {}
Scene::~Scene() = default;
void Scene::Add(const std::shared_ptr<GameObject>& object)
{
m_Objects.push_back(object);
}
void Scene... |
5e3aeacb81013e6eb7ca986293184e9bd52252cd | dd9b591cc6ffb832a67f2d4dfb772f12b47cddcc | /对象储存器/list/10.list_splice.cpp | 8d334d0d7c316c8aee571146787ecf5b84574f2e | [] | no_license | qiqzhang/CPP-Extends | 5ad308893c3f154584cb39eb368b1370d35ed5eb | 290ac86bf15982f31174415d3efe0a651ec3e679 | refs/heads/master | 2020-04-06T09:11:21.293050 | 2018-07-02T12:12:36 | 2018-07-02T12:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,325 | cpp | 10.list_splice.cpp | #include <iostream>
#include <list>
#include <string>
#include <algorithm>
using namespace std;
void print(int &ele)
{
cout << ele << ", ";
}
int main(void)
{
list<int> l0, l1, l2, l3;
list<int>::iterator it1, it2, it3;
l0.push_back(9);
l0.push_back(-1);
l1.push_back(1);
l1.push_back(5);
... |
908886a7624ccc7c4f82b990bb85bdfa84f18d8b | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-cplusplus/leetcode/Question_0423_Reconstruct_Original_Digits_from_English.cc | 590afcecd9ffb4e54e634b997a76709af9b66057 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,383 | cc | Question_0423_Reconstruct_Original_Digits_from_English.cc | #include <string>
#include <vector>
using namespace std;
class Solution {
public:
string originalDigits(string s) {
string res = "";
vector<int> counts(128, 0), nums(10, 0);
for (char c : s) {
++counts[c];
}
nums[0] = counts['z'];
nums[2] = counts['w'];
nums[4] = counts['u'];
... |
ca79e3d43438aed63c43681b3635895b012db7c2 | f0cb80bcba4fcdff0969ffe6d4b343ff61655965 | /MemoForm/SaveMenu.h | 99ae08351c568d163017d258b28d54a089c4085c | [] | no_license | rlagudtn/Memo | 4975c5cede72542ef1dbcf965989ca0403deff99 | ff15a9780b84d10a93cf66e9bf8771268fbe112d | refs/heads/master | 2023-06-06T07:59:18.326987 | 2021-06-24T05:50:32 | 2021-06-24T05:50:32 | 113,292,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 236 | h | SaveMenu.h | //SaveMenu.h
#ifndef _SAVEMENU_H
#define _SAVEMENU_H
#include "MenuAction.h"
class MemoForm;
class SaveMenu :public MenuAction {
public:
SaveMenu();
virtual ~SaveMenu();
void Implement(MemoForm *memoForm);
};
#endif // _SAVEMENU_H
|
b4fdf9e45f3a319571badb07bfc720a01439761e | bed3ac926beac0f4e0293303d7b2a6031ee476c9 | /Modules/Core/Mesh/include/itkSimplexMeshVolumeCalculator.h | c7437c158cba3b36d778b51120ceea3ab29dc693 | [
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"SMLNJ",
"BSD-3-Clause",
"BSD-4.3TAHOE",
"LicenseRef-scancode-free-unknown",
"Spencer-86",
"LicenseRef-scancode-llnl",
"FSFUL",
"Libpng",
"libtiff",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
... | permissive | InsightSoftwareConsortium/ITK | ed9dbbc5b8b3f7511f007c0fc0eebb3ad37b88eb | 3eb8fd7cdfbc5ac2d0c2e5e776848a4cbab3d7e1 | refs/heads/master | 2023-08-31T17:21:47.754304 | 2023-08-31T00:58:51 | 2023-08-31T14:12:21 | 800,928 | 1,229 | 656 | Apache-2.0 | 2023-09-14T17:54:00 | 2010-07-27T15:48:04 | C++ | UTF-8 | C++ | false | false | 7,246 | h | itkSimplexMeshVolumeCalculator.h | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* https://www.apache.o... |
91313483437fc4c81c32f53e8c1b4e53b12e3b39 | 777a75e6ed0934c193aece9de4421f8d8db01aac | /src/Providers/UNIXProviders/PSExtentBasedOnPExtent/UNIX_PSExtentBasedOnPExtent_LINUX.hxx | 826022450cde1c8f91b257e0dafa442f809aa00d | [
"MIT"
] | permissive | brunolauze/openpegasus-providers-old | 20fc13958016e35dc4d87f93d1999db0eae9010a | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | refs/heads/master | 2021-01-01T20:05:44.559362 | 2014-04-30T17:50:06 | 2014-04-30T17:50:06 | 19,132,738 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 140 | hxx | UNIX_PSExtentBasedOnPExtent_LINUX.hxx | #ifdef PEGASUS_OS_LINUX
#ifndef __UNIX_PSEXTENTBASEDONPEXTENT_PRIVATE_H
#define __UNIX_PSEXTENTBASEDONPEXTENT_PRIVATE_H
#endif
#endif
|
4607b314cb74be72132c4df8806bcacc6de93bcb | f5c0ee1a4b274966733f0358ae8c8031f09a3c98 | /MapReduceFramework.cpp | e236b68d341b005403d3b8f3868e7123501d647f | [] | no_license | nivdror1/os_ex3 | b15b42bc38f15d64a013df6c7cee3da0f83dfd89 | 65a5070ee90e94d61a7dc657bf5d41320493a8ce | refs/heads/master | 2021-01-20T09:32:14.534755 | 2017-05-21T15:35:17 | 2017-05-21T15:35:17 | 90,262,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,916 | cpp | MapReduceFramework.cpp | #include "Comparators.h"
#include <pthread.h>
#include <map>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include "semaphore.h"
#include <time.h>
#include <sys/time.h>
#include <algorithm>
#define CHUNK_SIZE 10
#define SECONDS_TO_NANO_SECONDS 1000000000
#define MICRO_SECONDS_TO_NANO_SECONDS 1000
typed... |
f72a86198f55baab296b0ca81dbc5b3314422b5a | cca8fe05f041c7a66701368f3d5d04a060feae94 | /PO/Matrix/main.cpp | 46caff4f0a78837f7b5197b72eb815d596ebf6c4 | [] | no_license | dominik3131/PO | c4c243ca52b0a51b658f21f8554763fab0be02c0 | 0df8975ab7bfdaad9349cfeb9654736133b118b5 | refs/heads/master | 2020-05-22T19:34:16.945799 | 2019-05-13T20:53:59 | 2019-05-13T20:53:59 | 186,493,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | main.cpp | #include <iostream>
#include "matrix.h"
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
rcMatrix m1(2,4,0.0);
cout<<m1;
try{
m1.loadFile("m1.txt");
}
catch(rcMatrix::errorOpeningFile){
cout<<"das";
}
catch(std::ba... |
0aa7fc6d56540ba4c356e04ea35d2a8b0ff4251a | 957080e4caf76aebaa47e24bb47f3571f8bbe0ec | /Excercise3/Excercise3/StaticObject.cpp | 0c3ec7eb90c82fce0545bb57fbd1a79ab1209424 | [] | no_license | lev-michael/ICPP1_2020 | 53a53550a08bfe4baba04e0fb3dcfcac4a83778a | ab85e8a517c00ca58e41bb542aeaca0fac488dc4 | refs/heads/master | 2023-02-03T22:16:36.102491 | 2020-12-28T19:32:16 | 2020-12-28T19:32:16 | 299,699,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cpp | StaticObject.cpp | #include "StaticObject.h"
StaticObject::StaticObject(int id, BarrierType type)
:Object(id)
{
this->barrierType = type;
}
StaticObject::~StaticObject()
{
}
BarrierType StaticObject::GetBarrierType()
{
return this->barrierType;
}
|
0e426d2f62963aaf7ed330d7fbca2027d5d71a46 | a4fdbe22a71ae9dfa37150dac60569e4e1277826 | /Data-Structures-and-Algorithms/2-Sorting-Advance/z-Compared/compare.cpp | f91ddaf0475858b6184e4f9e38ebf5da8bb17629 | [] | no_license | ideask/Rookie-training-program | c046659d5d3edbf38a1e3dd835f9abf00d11564a | 5f130fa0a6857df1d9aff99b5f82bc09189a0258 | refs/heads/master | 2020-11-25T10:13:39.329476 | 2020-01-11T10:11:38 | 2020-01-11T10:11:38 | 228,613,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,795 | cpp | compare.cpp | #include "compare.h"
template <typename T>
void __merge(T *arr, int l, int mid, int r)
{
T aux[r-l+1];
for(int i = l; i <= r; i++)
{
aux[i - l] = arr[i];
}
int i=l;
int j=mid+1;
for(int k = l; k <= r; k++)
{
if(i > mid){arr[k] = aux[j-l]; j++;}
else if(j > r){arr... |
e67675b52a7a4e5503b73b9dcdcaaed10cfa7144 | 548140c7051bd42f12b56e8bb826074609c8b72e | /Jams/GameOfLife/Code/Game/GameState_Playing.cpp | cba60582d8a53ad65dab9c4fb69104d319338045 | [] | no_license | etrizzo/PersonalEngineGames | 3c55323ae730b6499a2d287c535c8830e945b917 | 6ef9db0fd4fd34c9e4e2f24a8b58540c075af280 | refs/heads/master | 2021-06-16T22:01:57.973833 | 2021-01-26T03:54:58 | 2021-01-26T03:54:58 | 135,343,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,516 | cpp | GameState_Playing.cpp | #include "Game/GameState_Playing.hpp"
#include "Game/Game.hpp"
#include "Game/Map.hpp"
#include "Game/Entity.hpp"
#include "Game/Player.hpp"
#include "Game/DebugRenderSystem.hpp"
#include "Engine/Renderer/SpriteRenderPath.hpp"
#include "Engine/Renderer/Camera.hpp"
#include "Game/GameOfLife.hpp"
GameState_Playing::Gam... |
978bdf36e5d7196b132a32bfabcc4f7a03de3b9f | 67819cc35086b4a52dc1d633d97bb6b5579faede | /2021_08/week_2/NGP_2193.cpp | 3e068d9c47f843a91519211bab0aa780fa481b2c | [] | no_license | HwangInHo1217/FourBeginners_AlgorithmStudy | 662c81cf8b1c4d467d650d2ee3f3f4cd54f8aa8c | 3ecbdf5c1066f069cb97d2b3888f02ae7e36a0c9 | refs/heads/main | 2023-07-02T22:24:43.082242 | 2021-08-12T08:54:26 | 2021-08-12T08:54:26 | 389,518,424 | 0 | 0 | null | 2021-07-26T05:31:25 | 2021-07-26T05:31:24 | null | UTF-8 | C++ | false | false | 305 | cpp | NGP_2193.cpp | #include<iostream>
using namespace std;
long long dp[91];
int main() {
ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL);
int cnt;
cin >> cnt;
dp[1] = 1, dp[2] = 1, dp[3] = 2;
for (int i = 4; i <= cnt; i++) {
dp[i] = dp[i - 1] + dp[i - 2];
}
cout << dp[cnt] << "\n";
} |
a97e50608cb14c36b4bd4c3c2b9b05196b3492bd | 4ba5e21f4ab41f83e5abd221074d24a3fb28159c | /src/particles/particle_system.cpp | 66f5c933b483136e6011e513ce7607a77e83e176 | [] | no_license | songmin0/ambrosia | 89116552890862a5fe28df42f07a61bf6f762ecd | f717a4da885f01fe14e8866cbc56489b793eeeed | refs/heads/master | 2023-08-27T17:12:05.194506 | 2021-04-20T01:02:47 | 2021-04-20T01:02:47 | 428,529,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,298 | cpp | particle_system.cpp | #include "particle_system.hpp"
// stlib
#include <string.h>
#include <cassert>
#include <sstream>
#include <iostream>
#include <fstream>
const GLfloat ParticleSystem::particleVertexBufferData[] = {
-0.5f, -0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
-0.5f, 0.5f, 0.0f,
0.5f, 0.5f, 0.0f,
};
//TODO delete the emit... |
8f1c3a4570d86881c053a8bef4bbaf9e28e62502 | e85141e23eb38db4d4ad9a810e6817b73f0ad96f | /tagGame/Action.h | 5147d5b066256821502a2a41b5a14af137357fd9 | [
"AFL-2.1",
"AFL-3.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | lluisgomez/ai4games | 7aeed3c038299b6a4321a7787c9f046d9d2f5ebf | b72be3648fa0da611b999aa01aec8560728bcdd7 | refs/heads/master | 2020-07-12T05:37:30.658627 | 2017-03-12T22:40:26 | 2017-03-12T22:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,140 | h | Action.h | // ----------------------------------------------------------------------------
//
// tagGame - Example code from the book:
//
// Artficial Intelligence for Computer Games: An Introduction
// by John David Funge
//
// www.ai4games.org
//
// Source code distributed under the Copyright (c... |
25449d54782a0fec27771fd1d1ec84e26c8b45b1 | 0e71161baa94c48cda9cc42f3039d5a1aaf0cb28 | /tree/binary_search_tree.cc | f19e0e224a7c7c7666889bf77628ae73682451d2 | [] | no_license | stevealbertwong/code_interview | 8be5bd86c44b1e61d26e6cbb6974749ff62b3c08 | 67e6462d3ffd8d01407ec46cd997fa9e383a327a | refs/heads/main | 2023-08-27T16:43:53.400849 | 2021-11-06T09:16:55 | 2021-11-06T09:16:55 | 425,117,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,902 | cc | binary_search_tree.cc | /*
Author: steven wong
BST == BT with slightly complex add n very complex delete
BST used to implement set and map
pass pointer by reference since need to swap node
g++ -std=c++11 binary_search_tree.cc -o binary_search_tree
*/
#include <iostream>
#include <math.h>
using namespace std;
template <class T>
struct Tree... |
577f4a1d97bbf85201a5e4926fb6dbe6f419880f | 8e5fe2174bc693409d14278374bddf42356103b7 | /IContainers/IZdcSmdList.hh | 42094d17a73422eef25eaf3332dd8171b996e9db | [] | no_license | iyounus/PHENIX_data_analysis_framework | 882b6689bb048f82145bccb6068ca76774dd568b | 0947c02ac09eb5be593c77a9baa73bd12ebffe64 | refs/heads/master | 2021-01-19T10:29:49.499214 | 2015-09-18T17:52:51 | 2015-09-18T17:52:51 | 42,703,530 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | hh | IZdcSmdList.hh | //-----------------------------------------------------------
// IZdcSmdList.hh
// Created April 11 2009
// Imran Younus
//-----------------------------------------------------------
#ifndef IZDCSMDLIST_HH
#define IZDCSMDLIST_HH
#ifndef ROOT_TObject
#include <TObject.h>
#endif
class TClonesArray;
class I... |
0cf2c29259fba12a4078a312c0b84da5d85107ff | 9b26f8f0f77dcfa51397d257849e438f42511d78 | /src/Jump.hpp | 80d64d04543a4f5558d468d9ed50567dcb642573 | [] | no_license | darwikey/ProjetCompilation | 92ed965d326b2a28a0d5308679d0d5c7ce333612 | 3a426a85156861ed5c854c1e9896f6947c9cc424 | refs/heads/master | 2020-04-15T02:06:49.996059 | 2015-01-12T22:38:32 | 2015-01-12T22:38:32 | 27,715,489 | 0 | 1 | null | 2015-01-04T20:49:23 | 2014-12-08T13:13:58 | C++ | UTF-8 | C++ | false | false | 2,007 | hpp | Jump.hpp | #ifndef JUMP_HPP
#define JUMP_HPP
#include <string>
#include <ostream>
#include <vector>
#include <stdexcept>
#include "Statement.hpp"
#include "Expression.hpp"
class Jump : public Statement{
public:
Jump(Expression* fExpression = nullptr) : expression(fExpression){
}
virtual std::string get_code(std::vector... |
96f56b851c6202248b031e530a27da44861a0fc9 | 8c4db67435f57cbd4b712ec0c2baaf445e3cf827 | /RushOrder.h | a65c0f2fa786f9e331bce14a179722877426a454 | [] | no_license | Dmitriy1984-tech/Exam_Order | 880963518a0e78bc7ec5a463165ada967aeae26f | f6c063f57d3ee8348f23e61385220bb3aecbe8a2 | refs/heads/main | 2023-05-01T14:45:20.915105 | 2021-05-15T10:14:16 | 2021-05-15T10:14:16 | 367,598,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 583 | h | RushOrder.h | #pragma once
#include "Order.h"
class RushOrder :
public Order
{
protected:
string courier;
Date deliveryDate;
public:
RushOrder();
RushOrder(Date date, Time_ time, string id,
string courier, Date deliveryDate);
~RushOrder();
void setCourier(string courier);
string getCouri... |
490159825f372e4e6a6d942da4a2424aba23a817 | ea449cfc2fd81888a4a3641d7038643d5292dc9b | /week-10/170103/server.cpp | 0e959dbbe14dbbbfac6a8a21d1bad7d60249f26a | [] | no_license | greenfox-zerda-sparta/medeaeva | 4cfddb2e47d35e11d73030e64dc484682bb8a8be | af505e518607243e7bceee246072942ded1fef8e | refs/heads/master | 2021-01-12T17:18:14.778707 | 2017-01-05T14:22:31 | 2017-01-05T14:22:31 | 71,544,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | cpp | server.cpp |
#include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_net.h>
#include <string>
using namespace std;
int main(int argc,char** argv) {
SDL_Init(SDL_INIT_EVERYTHING);
SDLNet_Init();
IPaddress ip;
SDLNet_ResolveHost(&ip, NULL, 1234);
TCPsocket server = SDLNet_TCP_Open(&ip);
TCPsocket c... |
60d4c23336c23887314fa1296b3744ec839020e1 | 0e0a39875ad5089ca1d49d1e1c68d6ef337941ff | /src/Resources/ResourceIndexer.cpp | 01fe8a7d16b9256deb635b086d5e33c5a84286dd | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | FloodProject/flood | aeb30ba9eb969ec2470bd34be8260423cd83ab9f | 466ad3f4d8758989b883f089f67fbc24dcb29abd | refs/heads/master | 2020-05-18T01:56:45.619407 | 2016-02-14T17:00:53 | 2016-02-14T17:18:40 | 4,555,061 | 6 | 2 | null | 2014-06-21T18:08:53 | 2012-06-05T02:49:39 | C# | WINDOWS-1252 | C++ | false | false | 3,467 | cpp | ResourceIndexer.cpp | /************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#include "Resources/API.h"
#ifdef ENABLE_RESOURCE_INDEXER
... |
b737c9f68025dfdaad2c1264d404fd264c20a70f | 25ea5cd0b59f92951efce8e899b595b01b371fa8 | /include/character/character.h | 1c6d24ae9b7829e0544058e70155996cb1cbd54f | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | incomingstick/OpenRPG | c0fc18c450e597f2a9c2e45161c868e47f579633 | 24856345cf85a4e47da6e446640e60d36b078794 | refs/heads/master | 2022-11-23T19:21:30.804224 | 2022-08-13T18:57:30 | 2022-08-13T18:57:30 | 71,913,026 | 139 | 41 | NOASSERTION | 2022-11-14T19:50:01 | 2016-10-25T15:46:54 | C++ | UTF-8 | C++ | false | false | 14,913 | h | character.h | /*
characters - character.h
Created on: Jan 30, 2017
OpenRPG Software License - Version 1.0 - February 10th, 2017 <https://openrpg.io/about/license/>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
*/
#ifndef SRC_CHARACTER_H_
#define SRC_CHARACTE... |
82a9e15b35767d7631a95b7fa778800ed5b15902 | 16a81b983122e70bdc3407aebaf6080e405151c9 | /osquery_profiles.cpp | 8f43165432dcaa3dd0cf4a0482c1482e424fc54f | [] | no_license | headmin/osquery-profiles | 1bb4f71c6a14d6a0db20fa4a11782a27720eb3b3 | d8864129b69959ed9cee1ac8f294c9cf69f25990 | refs/heads/master | 2021-01-12T12:11:11.286703 | 2016-07-22T19:22:07 | 2016-07-22T19:22:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,623 | cpp | osquery_profiles.cpp | #include <osquery/sdk.h>
#include <osquery/system.h>
#include <iomanip>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/property_tree/json_parser.hpp>
using namespace osquery;
namespace pt = boost::property_tree;
/*
* This is a helper funct... |
13e5ad5643b9e766bba5b0a457e5f9fabad22f0a | 38490a06760127b9f284d8a0d40c47642eebe38a | /190516/190516/NewMemory02.cpp | b0e0fdfcf97b01084b7776b7eedbf81cc26c57b5 | [] | no_license | SSSOy/2019_CPP | bb7e6a8373f43978b6ab1c03c71f7028428e39e2 | aea2ba91737f897c4cee2390176ddcee4d07a9f3 | refs/heads/master | 2020-09-28T23:11:32.236445 | 2019-12-09T14:07:10 | 2019-12-09T14:07:10 | 226,880,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | cpp | NewMemory02.cpp | #include <iostream>
using namespace std;
void main() {
int *ptr = new int[4];
for (int i = 0; i < 4; i++) {
ptr[i] = 10 + i;
cout << ptr[i] << endl;
}
delete[] ptr;
} |
1152e783081cb0422b04c2d389b2ae3fae18a28f | 2d0ecc01a2876c52daad91f50c51cb5f052daf44 | /offer/二进制中1的个数.cpp | 79df509781296a318e6ff8013e45e38404f65954 | [] | no_license | shimaomao/language | 353cafdc9758142bbc2421b443070ec2942e62b2 | 4f1244c7222b07b03d13e534b0ee9340c3b43c07 | refs/heads/master | 2020-06-18T00:01:36.040333 | 2018-09-04T01:58:40 | 2018-09-04T01:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | cpp | 二进制中1的个数.cpp | #include <iostream>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <string>
#include <list>
#include <queue>
#include <deque>
#include <vector>
#include <map>
#include <set>
using namespace std; //
int count(int num) {
int cnt = 0;
while(num) {
cnt++;
num = num & (num-1);
}
... |
a79744a5a477b901117d454ce24531fabb9c2dd9 | 9d51ac726e7328365605966a19c20b0d4aa45628 | /source/Actors.cpp | 050ce461ed87142f734271f088ff4ca80b78e966 | [
"MIT"
] | permissive | TrueFinch/Roguelike_game | d139a98c52d74b30d6d1162c71fb70ccab89ea80 | 332b5209948e9c323b3976a8521485dbf4fc366a | refs/heads/master | 2021-07-16T08:19:14.199483 | 2018-07-14T04:30:06 | 2018-07-14T04:30:06 | 133,841,224 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,257 | cpp | Actors.cpp | //
// Created by truefinch on 20.05.18.
//
#include <Actors.h>
#include <cmath>
#include <cassert>
#include <utility>
#include <ncurses.h>
void actor::Actor::setPosition(Point position) {
this->pos_ = position;
}
Point actor::Actor::getPosition() const {
return this->pos_;
}
void actor::Actor::setLiveSymbol(cha... |
72fd2b4ed57db100d112623a2ff1c5e56336577e | 419133d0e7ead00544caf1486f0616262d9f16fe | /src/dd1rs.cpp | 62cef05f26697d544010ac21ab60ac1d9df86d32 | [] | no_license | siddta/scrack | 4effc3ff2b77410ed6d9c8b0f24f9fd4e146b4bb | 6522dfc37068c3a4180a7a26e1af48aeba703ae3 | refs/heads/master | 2022-01-27T04:30:41.368436 | 2019-07-21T02:24:44 | 2019-07-21T02:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | cpp | dd1rs.cpp | #include "crack.h"
int ddr_find(value_type v){
int L,R;
find_piece(ci, N, v, L,R);
n_touched += R - L;
return targeted_random_crack3(ci,v,arr,N,L,R,CRACK_AT);
}
int view_query(int a, int b){
merge_ripple(ci, arr, N, pins, pdel, a, b); // merge qualified updates
int i1 = ddr_find(a); // unlimited cracks a... |
16809523cd6fb7d763fc6ddf64ea1e5aafb1f82a | 63b3efd58d5a3b292f7cdb4940826c4942b8e45f | /apcpp_assignment4/ipc_file.h | b5f018360aac4c6bb23261cbe1aace3ee711c66f | [] | no_license | flxw/apcpp16 | 37048696037e6e01893c8e079adab24ffc497484 | f866449e6de6e8c74e2b054259b3c52fc8a6315f | refs/heads/master | 2021-01-18T22:30:42.229085 | 2017-02-19T18:46:13 | 2017-02-19T18:46:13 | 72,547,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | h | ipc_file.h |
#include <stdlib.h>
#include <string.h>
#include <boost/interprocess/file_mapping.hpp>
#include <boost/interprocess/managed_mapped_file.hpp>
#include <map>
#include <iostream>
#include <iterator>
//boost::interprocess::file_mapping m_file("/tmp/scorefile.txt", boost::interprocess::read_write);
//boost::interprocess::... |
f4780c70426d6823ece552c16840db168805becd | f8b6ea89909ac12f309a5e8fa8a33bff6e75e557 | /algorithms/guards.cpp | 43cef9e04d380572643fbdaace623d0e1b6b70d0 | [] | no_license | mvgmb/Marathon | eaebc778a6da6699b0c87d62f0f8d0fabfe0b410 | 0dcc428a5e6858e2427fb40cefbd7453d1abcdb5 | refs/heads/master | 2020-03-27T02:10:12.225813 | 2018-10-22T17:51:49 | 2018-10-22T17:51:49 | 145,771,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 818 | cpp | guards.cpp | #include <iostream>
#include <vector>
using namespace std;
#define vi vector< int >
#define fr(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(),v.end()
#define pb push_back
#define tr(c, it) for (auto it = (c).begin(); it != (c).end(); it++)
#define rtr(c, it) for (auto it = (c).rbegin(); it != (c).rend();... |
d8a223a84247e3c513708d39706fc3f1fc877a60 | 4ee8b74813bbc9a803e4b8a02eac196b0b373231 | /include/apriltag_detector.h | 9d81b78a796c309b55cc42126b7e1822a0872de5 | [] | no_license | apl-ocean-engineering/calibration | c63a20236b6db96e7cd3ce2891d1de84158ef603 | fb0102fd2e3df197adc981bc5865bf0b8a0e8bee | refs/heads/master | 2020-04-05T15:01:13.578958 | 2018-12-10T23:28:23 | 2018-12-10T23:28:23 | 156,948,619 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,164 | h | apriltag_detector.h | #ifndef __APRILTAG_DETECTOR_H__
#define __APRILTAG_DETECTOR_H__
#include <opencv2/core/core.hpp>
#ifdef USE_TBB
#include "tbb/tbb.h"
#endif
#include "AplCam/board.h"
#include "AplCam/detection/detection.h"
#include "AplCam/detection_db.h"
#include "detector.h"
namespace camera_calibration {
using cv::Mat;
using c... |
5ae8a53cbce6013c9cbe10b800104cf882b38afc | 4cb7cee433de36370fb6eb185a27c9d1735535c4 | /Source/Main.cpp | e9a3756cf877be09c5ad99e118d41c26902c7724 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Dani-24/Minigame | 11d3e4b974a8dc730265f9a4652265e8ae738d3c | 9c8b675b64c0d26c32fe9bef053edd8f969e6912 | refs/heads/main | 2023-03-15T02:34:59.341449 | 2021-03-16T17:52:38 | 2021-03-16T17:52:38 | 346,101,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,240 | cpp | Main.cpp | // -------------------------------------------------------------------------
// Awesome simple game with SDL
// Lesson 2 - Input Events
//
// SDL API: http://wiki.libsdl.org/APIByCategory
// -------------------------------------------------------------------------
#include <stdio.h> // Required for: printf()
... |
1d0aa6b6d70f16ee601307dc5357e1e55e6d1cc0 | 30f530277d108cb1901b54a633acf9bdac8eaef3 | /src/render/GLFWWindow.cpp | ab8b69d388574fbeba4b1618c69a507036e7dc18 | [] | no_license | davtwal/gproj | 26781ff8fb5a09250bdd52d5a04efd6d6dc73ab8 | 389fda53d5994776540aee210cda3e2fe5fd13d5 | refs/heads/master | 2020-06-25T19:07:47.298231 | 2020-02-27T04:13:32 | 2020-02-27T04:13:32 | 199,397,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,898 | cpp | GLFWWindow.cpp | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * gproj2 : GLFWWindow.cpp
// * Copyright (C) DigiPen Institute of Technology 2019
// *
// Created : 2019y 09m 15d
// * Last Altered: 2019y 09m 15d
// *
// * Author : David Walker
// * E-mail : d.walker\@digipen.edu
// *... |
3bbbf56cd35f169d3d6049c3dd0ccb354d696001 | 8e3dd82044333bf6e04cb3cc23646f2396b1183a | /openFrameworks/apps/devApps/EGLWindowRaspberryPi/src/ofTrueTypeFontExt.h | b247cd32ee117e516a0c259af2d5b550693a93c3 | [] | no_license | andreasmuller/openframeWorks-Raspberry-PI | e7f8f51d66d829c55e97a7ebe4bcd8255747fd2c | 395bbe1778c5381cd32ced4b92a141a14e964faa | refs/heads/master | 2016-09-06T10:46:41.498470 | 2012-07-22T16:58:53 | 2012-07-22T16:58:53 | 4,923,328 | 5 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 331 | h | ofTrueTypeFontExt.h | #pragma once
#include "ofMain.h"
class ofTrueTypeFontExt : public ofTrueTypeFont
{
public:
void drawTextureAtlas( float _x, float _y, float _w, float _h )
{
if( _w == 0.0f || _h == 0.0f )
{
_w = texAtlas.getWidth();
_h = texAtlas.getHeight();
}
texAtlas.draw( _x, _y, _w, _h );
... |
ccdd886150984a70796889d3c44675ba5cdf7ed3 | 25175c43fbf6c9794b01f2919aa422daac21fe3b | /Source/FruitSalad/AI/FruitAIController.cpp | 797e50c536836991d581cfbb2121648c1a344884 | [] | no_license | ajetty/FruitSalad | e9fff6a754dd1fb2226e58943a278840d52f61d0 | 52a0696f001893fbd2da7841b9480a2081e8b6a6 | refs/heads/main | 2023-05-30T07:35:30.456938 | 2021-06-04T17:35:29 | 2021-06-04T17:35:29 | 352,740,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,329 | cpp | FruitAIController.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "FruitAIController.h"
#include "NavigationSystem.h"
#include "BehaviorTree/BlackboardComponent.h"
#include "FruitSalad/Building/BuildingBase.h"
#include "FruitSalad/Bulldozer/PawnBulldozer.h"
#include "Kismet/GameplayStatics.h"
#i... |
c986c87f397d40635f634fa35705488b854bf327 | 0686c6c1c831f37cfbd2f08eb33d8f0581de7446 | /c++/grafo_dfs.cpp | e9823abad0e2499b3d5a9249febb81a43520356e | [] | no_license | JonatanColussi/sistemas-inteligentes | 78ef8d6ef7ddc7b46f0222e41dec240c9072e998 | d487d01c69ad4d8d6baf8627fd3e488fb6820f50 | refs/heads/master | 2020-12-03T02:19:42.647232 | 2017-06-30T22:21:30 | 2017-06-30T22:21:30 | 95,927,771 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,156 | cpp | grafo_dfs.cpp | // Grafos - DFS (busca em profundidade)
#include <fstream>
#include <iostream>
#include <list>
#include <string>
#include <cstdlib>
#include <algorithm> // função find
#include <stack> // pilha para usar na DFS
using namespace std;
class Grafo{
int V; // número de vértices
list<int> *adj; // ponteiro para um arra... |
eb37a930643621973278caae7b9bc8eb384c6756 | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2018 autumn/NOIP/NOIP2018提高组Day1程序包/GD-Senior/answers/GD-0394/road/road.cpp | 907b9a5fa1f4a9429061fd9494549890dcd5caef | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | road.cpp | #include<iostream>
#include<cstdio>
#define INF 2147483647
#define maxn 100005
using namespace std;
int n,d[maxn],k;
long long ans;
inline int read()
{
char ch=getchar();
while (ch>'9'||ch<'0') ch=getchar();
int res=ch-48;
ch=getchar();
while (ch<='9'&&ch>='0')
{
res=res*10+ch-48; ch=getchar();
}
return re... |
f455487d2326b38ac37028f88999eaa780e710ee | 0baa4ef2d2f65acae29f49219c36fc6c13aff547 | /01_NARESH C&C++/Kiran sir/Student Data/CPP/inheritence/INHERIT1.CPP | cb66af568d2966f3bb6b6d7d456a38e2e44032d1 | [] | no_license | ankitwasankar/study-material-3 | 874c354dc7380a8751e6efc5d8751ee7acbd1ce7 | 0179d762c381214336f4c64b2881affa0bf35a6c | refs/heads/master | 2022-10-01T13:36:41.013854 | 2020-06-05T13:47:04 | 2020-06-05T13:47:04 | 269,634,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | INHERIT1.CPP | //EXAMPLE PROGRAM ON SINGLE INHERITANCE
# include <iostream.h>
# include <conio.h>
class A
{
int x,y;
public:
void input(int p,int r)
{
x=p;
y=r;
}
void print()
{
cout<<"X VALUE IS "<<x<<endl;
cout<<"Y VALUE IS "<<y<<endl;
}
};
class B : public A
{
int m,n;
public:
void accept()
{
cout<<"ENTER T... |
a1c05e5b507d75de94c7be74303a6ffc2b5dd5d5 | 2475b9c1a0e3fd49432f4998d3b1b8306bb87fbf | /AniClip/tablineedit.cpp | e7e27c943adaab1b96a45210ff5f027e084ac1f2 | [] | no_license | MercifulZebra/Animegraphy | b47b665004f4952325a7e12ab08f5547b52ba097 | f78e2cb2070ef18f11105ec8a18333bdc37edd49 | refs/heads/master | 2021-05-30T09:21:37.027789 | 2016-01-15T19:09:31 | 2016-01-15T19:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | cpp | tablineedit.cpp | #include "tablineedit.h"
#include <QKeyEvent>
#include <QCompleter>
#include <QAbstractItemView>
#include <QDebug>
TabLineEdit::TabLineEdit(QWidget *parent) : QLineEdit(parent)
{
}
void TabLineEdit::keyPressEvent(QKeyEvent *event){
bool shift_key = false;
int mod = 0;
if (event->modifiers()... |
5c56c74c9f9a61e7350d84ef905d158443eaf7a6 | a5a7c59b04a1a64fe34653c7970c3cf173f9c1df | /externals/numeric_bindings/boost/numeric/bindings/ublas/matrix.hpp | bcf71aa150d7162a3c322caa2d045f1c8f14396a | [
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | siconos/siconos | a7afdba41a2bc1192ad8dcd93ac7266fa281f4cf | 82a8d1338bfc1be0d36b5e8a9f40c1ad5384a641 | refs/heads/master | 2023-08-21T22:22:55.625941 | 2023-07-17T13:07:32 | 2023-07-17T13:07:32 | 37,709,357 | 166 | 33 | Apache-2.0 | 2023-07-17T12:31:16 | 2015-06-19T07:55:53 | C | UTF-8 | C++ | false | false | 4,888 | hpp | matrix.hpp | //
// Copyright (c) 2009 Rutger ter Borg
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NUMERIC_BINDINGS_UBLAS_MATRIX_HPP
#define BOOST_NUMERIC_BINDINGS_UBLAS_MATRIX_HPP
#include <boost/num... |
e970dc7604df27e634ea9436e528d49dcd08ed32 | ab60cf7ed7c5b7c5808624eebffd773dc2a678a6 | /module/extension/Director/tests/entire_task.cpp | dd7f16f5b4a24742d83494ac4160d7f5b50835e9 | [] | no_license | NUbots/NUbots | a5faa92669e866abed7b075359faa05e6dc61911 | e42a510a67684027fbd581ff696cc31af5047455 | refs/heads/main | 2023-09-02T19:32:50.457094 | 2023-09-01T19:54:01 | 2023-09-01T19:54:01 | 23,809,180 | 34 | 20 | null | 2023-09-12T12:55:08 | 2014-09-08T21:30:48 | C++ | UTF-8 | C++ | false | false | 4,566 | cpp | entire_task.cpp | /*
* This file is part of the NUbots Codebase.
*
* The NUbots Codebase 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 3 of the License, or
* (at your option) any later version.
*
* The ... |
47b9e40e83a4747fade3f5e74d927e82ccdb7fae | d2ba0389accde0370662b9df282ef1f8df8d69c7 | /frameworks/cocos2d-x/cocos/editor-support/spine/SkeletonBounds.cpp | b801fa3fd0fcadfa4f1070012104f33d1b54669c | [] | no_license | Kuovane/LearnOpenGLES | 6a42438db05eecf5c877504013e9ac7682bc291c | 8458b9c87d1bf333b8679e90a8a47bc27ebe9ccd | refs/heads/master | 2022-07-27T00:28:02.066179 | 2020-05-14T10:34:46 | 2020-05-14T10:34:46 | 262,535,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,718 | cpp | SkeletonBounds.cpp | /******************************************************************************
* Spine Runtimes Software License v2.5
*
* Copyright (c) 2013-2016, Esoteric Software
* All rights reserved.
*
* You are granted a perpetual, non-exclusive, non-sublicensable, and
* non-transferable license to use, install, execute, ... |
665e5216970f4c46990740a4a92815e0185bc02c | 653523b8be62f070a532932074f5fcfec514f9f4 | /leetcode/JuneLeetcoding/16 - validateIPAddress.cpp | a743ef6c52c41e84178320fe8031a673b7301013 | [] | no_license | nitya2602/competitive-coding | 4b02c84f09c8a0bc48ff02ac7dac1a227e613cd2 | c161da52ab2791add235836d6661edb1dbf37d6b | refs/heads/master | 2023-07-01T03:39:54.968205 | 2021-08-07T07:34:59 | 2021-08-07T07:34:59 | 284,318,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,270 | cpp | 16 - validateIPAddress.cpp | # too many conditions
class Solution {
public:
string validIPAddress(string IP) {
if(IP.size()==0 || IP.size()>40)
return "Neither";
if(IP[IP.size()-1]=='.' || IP[IP.size()-1]==':')
return "Neither";
if(IP.find('.') != -1)
{
vector<string> words;
... |
6a17a053b0b3a5f628d848786fe3936fc30b8e81 | 8824d24b73a355e41e9914280ee1e46f3163f457 | /tmp/04/annex/test/tests.cpp | 9ad3c50df2f91030b08d2b9306dc2f0016c34b90 | [
"Zlib",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | pombredanne/EDGE-2 | fe621cbab7c189cd91e2514a946e0f355a82c010 | b09f82a65a7ee594f1a544141814647e087b250a | refs/heads/master | 2020-12-28T06:57:04.628369 | 2015-12-29T13:49:37 | 2015-12-29T20:57:20 | 48,853,467 | 1 | 0 | null | 2015-12-31T15:20:00 | 2015-12-31T15:20:00 | null | UTF-8 | C++ | false | false | 1,156 | cpp | tests.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009 Benaka Moorthi
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
//////////////////////////////////////... |
e6d91e28d3f973a61a7bf275a33c6974569b6856 | 8ff563bc33437028806847e952da7681a01dbdf6 | /oslib.cpp | 207651787e7aebd575d8edede098277db7e87701 | [] | no_license | adjustive/QFileMan | 83a3b126faaf4738d63a335379f17d639bcd4d61 | 83bcb6708c014038b52cab8adae75434162a4868 | refs/heads/master | 2021-01-22T09:17:22.339139 | 2013-05-10T18:01:26 | 2013-05-10T18:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | oslib.cpp | #include <oslib.h>
#if defined(Q_OS_WIN32)
#include <windows.h>
#include <tchar.h>
#include <wchar.h>>
#elif defined(Q_OS_LINUX)
#include <stdlib.h>
#include <unistd.h>
#endif
void osExecute(QString path)
{
#if defined(Q_OS_WIN32)
{
QString str = fi.canonicalFilePath();
wchar_t *wc = new wchar_t[str.length(... |
86673aaa994482eb6285b4268faa45b3f531be02 | cae6b918421f0fa67ede241577507a61315233fc | /data-manager/src/server/dataManagerServer/session/frameElaboration/SelectDecoder.hpp | 806406f0ada25c9ad5704cc556424c641866c200 | [
"MIT"
] | permissive | Saafke/4dm | 57e323b65fe7d876d01e59401f2acd60a4c24fb5 | 68e235164afb1f127def35e9c15ca883ec1426d4 | refs/heads/main | 2023-06-13T06:56:14.136075 | 2021-07-07T09:29:29 | 2021-07-07T09:29:29 | 383,741,513 | 0 | 0 | MIT | 2021-07-07T09:19:48 | 2021-07-07T09:19:47 | null | UTF-8 | C++ | false | false | 730 | hpp | SelectDecoder.hpp | /*
* AbstractDecoder.hpp
*
* Created on: Apr 23, 2019
* Author: mbortolon
*/
#ifndef SRC_DATAMANAGERSERVER_SESSION_FRAMEELABORATION_SELECTDECODER_HPP_
#define SRC_DATAMANAGERSERVER_SESSION_FRAMEELABORATION_SELECTDECODER_HPP_
#include "AbstractDecoder.hpp"
#include "src/common/dataManager/protocol/InitMess... |
6e193f7009c00c84d03c9eb15fb26ff0e36a15a0 | 5b9783418e5c743293edb8cc3ccac04103e69067 | /Assignment#3/CashPayment.cpp | d1967eae75e68c6596397e66979af285c87e65ba | [] | no_license | cocotran/COEN244 | ebf77c692d22fdb5818bc25481e0199f4abaa4fe | 510edd1360f5a357884cd68dd66de7a07fe8a829 | refs/heads/master | 2023-01-08T13:43:18.089731 | 2020-10-24T16:54:30 | 2020-10-24T16:54:30 | 239,398,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | cpp | CashPayment.cpp | //
// CashPayment.cpp
// Coen244-Ass3
//
// Created by Tawfiq Jawhar on 2019-08-05.
// Copyright © 2019 Tawfiq Jawhar. All rights reserved.
//
#include "CashPayment.h"
double CashPayment::calculateAmountToBePaid() const
{
if(amount > 200)
return amount - amount*0.05;
else
return amount;
}
|
f6b5a8d25ea1a56569dbf0f144732b1d91415497 | 1f07dec5d6358d2d62b71bcd5dc51eb115cd7316 | /rainbow-renderer/importers/obj_importer.hpp | 58757fd9859203fe6c8998f2057b1606a50ef488 | [
"LicenseRef-scancode-public-domain"
] | permissive | Mason117/rainbow-renderer | f0f00ec05cc21937507d5bdae3352eb6b1aa2fe2 | f46a3b536a96eb3a2d18024987ba8e17ef1e173f | refs/heads/master | 2023-01-23T19:30:28.107719 | 2020-12-03T08:05:35 | 2020-12-03T08:05:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | hpp | obj_importer.hpp | #pragma once
#include "rainbow-cpu/shapes/mesh.hpp"
#include <string>
#include <memory>
#include <vector>
#define __OBJ_IMPORTER__
using namespace rainbow::cpus::shapes;
namespace rainbow::renderer::importers {
#ifdef __OBJ_IMPORTER__
std::vector<std::shared_ptr<mesh>> load_obj_mesh(const std::string& file_name)... |
eb4871fb6651c4051aa885f86002649fbdbda1e1 | 48a73a0ba850ac2925118dd304baa8f7b2874582 | /C++/source/Modeling/YANG/ObjectModel/YangModuleCollection.cpp | 6b9cff37affe44687a697fbc92be0eb91b450305 | [
"Apache-2.0"
] | permissive | cxvisa/Wave | 5e66dfbe32c85405bc2761c509ba8507ff66f8fe | 1aca714933ff1df53d660f038c76ca3f2202bf4a | refs/heads/master | 2021-05-03T15:00:49.991391 | 2018-03-31T23:06:40 | 2018-03-31T23:06:40 | 56,774,204 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 29,618 | cpp | YangModuleCollection.cpp | /***************************************************************************
* Copyright (C) 2005-2012 Vidyasagara Guntaka *
* All rights reserved. *
* Author : Vidyasagara Reddy Guntaka *
***********... |
0eb710f142d9ddfed53a8c921c2d183a77396d62 | e6f237e5f76d66795a4c5a342ccef357e4a76d09 | /LinkedListDemo/LinkedList.h | e4f94df7bca967409cff41603676dde80ce3220b | [] | no_license | Masi-B/LinkedListDemo | b29a0cb948b0d9ad2b47d3a186a4b262abce59cc | bc6bda8ba9ce82e2cc3360cbca0c8e8252acf7d5 | refs/heads/main | 2023-01-23T15:59:25.953268 | 2020-12-06T02:12:06 | 2020-12-06T02:12:06 | 318,925,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,446 | h | LinkedList.h | #pragma once
#ifndef LinkedL_H
#define LinkedL_H
#include <cstdlib>
#include <string>
#include "Node.h"
#include "Node.h"
#include <string>
#include <cstdlib>
template <typename T>
class LinkedList
{
public:
//default constructor creates empty list
LinkedList<T>();
//copy constructor to copy a linked list onto a... |
600c52ce3a77f8f486d1dd8618267fe98778b036 | cf58b5586206b2f05e5c172d85d7533e1840a11e | /cpp/range_query/bit.cpp | f35849072ea01df2d46c248ce80357daaf5250f7 | [] | no_license | tjkendev/procon-library | c467862fa995b74f3ad33028b1836bd2456d24ae | 1e766cdfd65238933a1b6a13bf022a1a8c643532 | refs/heads/master | 2023-04-27T15:21:07.229430 | 2023-04-14T16:34:33 | 2023-04-14T16:34:33 | 23,149,541 | 15 | 0 | null | 2023-01-01T12:54:03 | 2014-08-20T13:27:13 | Python | UTF-8 | C++ | false | false | 366 | cpp | bit.cpp | using ll = long long;
#define N 100008
class BIT {
int n;
ll data[N];
public:
BIT(int n) : n(n) {
for(int i = 0; i < n+2; ++i) data[i] = 0;
}
void add(int k, ll x) {
while(k <= n) {
data[k] += x;
k += k & -k;
}
}
ll get(int k) {
ll s = 0;
while(k) {
s += data[k];... |
16b23912f7e9632e069461b1a0b0b192ccf7af78 | d582c8d3708b01d8662942242cd2fb66b948d350 | /arch/arm/pagingarm.cpp | 0cc64402ec8fee36098151b16525a0613361fde4 | [
"MIT"
] | permissive | jroivas/cxx-kernel | 8b35ccbf4936599d5e66fc8e7f035813856ddb43 | e252e89fe843f9b7cb23a19cb9d1121b9d235670 | refs/heads/master | 2021-11-08T02:21:44.383505 | 2021-08-23T18:27:04 | 2021-09-08T17:17:33 | 29,395,784 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,150 | cpp | pagingarm.cpp | #include "pagingarm.h"
#include "types.h"
//#include "x86.h"
#include "bits.h"
#define PDIR(x) ((PageDir*)x)
#define BITS(x) ((Bits*)x)
//#define KERNEL_PRE_POS 0x20000000
#define KERNEL_PRE_POS 0x200000 //FIXME
#define KERNEL_INIT_SIZE 0x000FFFFF
#define HEAP_START 0x30000000
#define HEAP_END ... |
b320d7ae020a3643a7e0ed65b88ae65ba3839eca | 9a5bf542c7ae2268a44350d8ef7f046cbec5fee1 | /Brick Breaker/Brick Breaker/BrickBreaker.h | 7100d12553414a44ef8e5be0663a0fcd26bb9d87 | [] | no_license | Phuc-T-Tran/Brick-Breaker | 5a8f61a4aaf427732458a4f9f1b3624ef9c55ce0 | 1eb6cc54fa9a0073487fa1118520e0a977eb056a | refs/heads/master | 2021-01-10T16:01:43.889699 | 2015-12-29T16:19:09 | 2015-12-29T16:19:09 | 48,660,546 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | BrickBreaker.h | #ifndef BRICKBREAKER_H
#define BRICKBREAKER_H
#include "core\Game.h"
class BrickBreaker : public Game
{
public:
BrickBreaker();
~BrickBreaker();
};
#endif |
842ec73ab0a2c14dde82648199cf2ff2c1ba8b9d | a39c1c747c20f12e85be39216a456100a4f10b76 | /solver/cost_functors/person_3d_errors.cc | 51e6dd49f52ffe5eb174a268b74e0ae274ab5e5a | [] | no_license | tmjeong1103/Estimating-3D-Motion-Forces | 547348307def936b6b3c00b742ef6d3363f09f73 | de5bd8436076d0be9b281a7b23fd8a4ad6e8d29e | refs/heads/master | 2023-07-23T14:02:39.898384 | 2021-08-24T11:59:41 | 2021-08-24T11:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,879 | cc | person_3d_errors.cc | #include "person_3d_errors.h"
CostFunctorPerson3dErrors::CostFunctorPerson3dErrors(
int i,
DataloaderPerson *person_loader)
{
i_ = i; // num of time step
person_loader_ = person_loader;
nq_ = person_loader_->get_nq(); // 75d vector
nq_pino_ = person_loader_->get_nq_pino(); // 99d vector
//... |
2ca8cfb28fe10becace17497db1621c8ccb5128b | e9cb1818bde5c0c544df0366d51420863b0a5c54 | /day03/ex04/NinjaTrap.cpp | ad50a9434ce84a8453b495e61f75a41fdca5a492 | [] | no_license | vdoroshyn/42-cpp-piscine | 2ba1ac72a74a2b8e1980b041d4411bd95139f160 | 3f795bd2bf6666007606aff14a8b5d0925168f11 | refs/heads/master | 2021-05-16T15:58:57.590386 | 2018-01-30T12:58:12 | 2018-01-30T12:58:12 | 119,534,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,528 | cpp | NinjaTrap.cpp | #include "NinjaTrap.hpp"
NinjaTrap::NinjaTrap() : ClapTrap() {
this->_name = "Marian";
this->_hitPoints = 60;
this->_maxHitPoints = 60;
this->_energyPoints = 120;
this->_maxEnergyPoints = 120;
this->_level = 1;
this->_meleeAttackDamage = 60;
this->_rangedAttackDamage = 5;
this->_armorDamageReduction = 0;
std... |
de069dc1f4b3dfb96526dc4007e4a4e8619ce8d9 | 14ba43c20af3e13901e6517cb890d600ede4c808 | /sysapps/device_capabilities/storage_info_provider.h | a2ea45a401fb32475d085914b9dafe22fcb3a49a | [
"BSD-3-Clause"
] | permissive | sillsdev/crosswalk | da0f73a8934ddb3bafcfe493373b75772b715b99 | 5b045977a1ff60fb93609cbd3bb10351f25bb699 | refs/heads/master | 2021-07-14T02:17:21.104996 | 2020-08-10T21:23:46 | 2020-08-11T01:37:57 | 54,854,425 | 2 | 1 | null | 2016-03-28T00:25:16 | 2016-03-28T00:25:16 | null | UTF-8 | C++ | false | false | 1,919 | h | storage_info_provider.h | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef XWALK_SYSAPPS_DEVICE_CAPABILITIES_STORAGE_INFO_PROVIDER_H_
#define XWALK_SYSAPPS_DEVICE_CAPABILITIES_STORAGE_INFO_PROVIDER_H_
#include <vector>
... |
819fd5fb79c4bf5f6c9e5a61f5f7dbddb00c2693 | cf47614d4c08f3e6e5abe82d041d53b50167cac8 | /CS101_Autumn2020-21/Fibonacci/280_fibonacci.cpp | ca7f3ef77c1a54a04b283c645be22fe8dbce3836 | [] | no_license | krishna-raj007/BodhiTree-Annotation | 492d782dffe3744740f48c4c7e6bbf2ee2c0febd | 28a6467038bac7710c4b3e3860a369ca0a6e31bf | refs/heads/master | 2023-02-28T18:23:05.880438 | 2021-02-07T17:55:33 | 2021-02-07T17:55:33 | 299,254,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | 280_fibonacci.cpp | #include<simplecpp>
#include<iostream>
using namespace std;
main_program{
int n;
int f=0,s=1,t=0,k=0;
cin>>n>>k;
cout<<0%k<<endl;
cout<<1%k<<endl;
for(int i=0;i<n-2;i++){
t=f+s;
f=s;
s=t;
cout<<abs(t%k)<<endl;
}
}
|
053c8e84a9a47f815e3ab85131dda1e34eeeda8b | f791e02dba63257700b05877a41ae9036d1113fd | /OurLogicSimulator/OurLogicSimulatorView.h | e4354d552cb2221c59a0ac469af00c9add38f7cc | [] | no_license | RyuJaeChan/MFCLogicSimulator | 56758c472447a70f1a5fc5fae853ddaaebbe4600 | 75f414719d466b054f1f65b23f6c5caf86a647c3 | refs/heads/master | 2021-01-01T05:11:24.938128 | 2016-05-20T03:55:55 | 2016-05-20T03:55:55 | 58,743,507 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,346 | h | OurLogicSimulatorView.h |
// OurLogicSimulatorView.h : COurLogicSimulatorView 클래스의 인터페이스
//
#pragma once
class COurLogicSimulatorView : public CView
{
protected: // serialization에서만 만들어집니다.
COurLogicSimulatorView();
DECLARE_DYNCREATE(COurLogicSimulatorView)
// 특성입니다.
public:
COurLogicSimulatorDoc* GetDocument() const;
// 작업입니다.
public:... |
43acab1113a7e3104749c1eef26868f6edac1d1f | 2ab387702039bb8e39eb04e27612e4bc5ebae6f3 | /exception.hpp | 0be64d0f30c040bfa7e3a3536509dab310979b8f | [] | no_license | gordonzu/cpp_util | fc392fedd52138bf9391f48bf35545cbd966c5e3 | 1752d4003f14f6fa906325e81021b8029ad9d415 | refs/heads/master | 2021-01-20T03:59:27.171186 | 2017-04-27T17:00:58 | 2017-04-27T17:00:58 | 89,616,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,702 | hpp | exception.hpp | // exception.hpp
#include <exception>
#include <system_error>
#include <future>
#include <iostream>
#include <utility>
namespace util
{
template <typename T>
void processCodeException(const T& e)
{
auto c = e.code();
std::cerr << "- category: " << c.category().name() << std::endl;
std::cerr << ... |
35b39f992284f43512e3bb317a8af1acd3216834 | 8c00f20b072b0ea9e6452531b8439c239394e672 | /HeapSort.cpp | 1e01c7a9500e80228fe85e0d58f25fe71ec51107 | [] | no_license | salonigit/Sorting | 3b7d09d9f86ae580852d53d3e7d2979fd9be4991 | dd1aefbb6fc545e8f20de10846d983c15b8a4289 | refs/heads/master | 2023-04-28T10:35:51.232601 | 2021-05-20T04:54:45 | 2021-05-20T04:54:45 | 369,083,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,018 | cpp | HeapSort.cpp | #include<bits/stdc++.h>
using namespace std;
void Heapsortcreate(int A[], int n){
int i=n,temp=A[i];
while(i>1 && temp>A[i/2]){
A[i]=A[i/2];
i=i/2;
}
A[i]=temp;
}
int Heapsortdelete(int A[],int n){
int i,j,x,temp,val;
val=A[1];
x=A[n];
A[1]=A[n];
A[n]=val;
i=1;j... |
092b2c5e63ad889abdcbd565eed88573f0ae51dd | ae14d60e1649546ad51ce461289554a212b0edfa | /keylogger/build-event_logger-Desktop_Qt_5_15_2_clang_64bit-Debug/moc_usagedata6model.cpp | aea7b0fb9b61a4395927759f49656a918c4627b0 | [] | no_license | svadoe/upwork | 43f1f37f3c1ac096ac3cac55096445ee84a104aa | 274b6b45f6cc8c323d698716fca66b05af55776e | refs/heads/main | 2023-02-07T08:29:08.177410 | 2020-12-20T16:29:50 | 2020-12-20T16:29:50 | 323,115,242 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,584 | cpp | moc_usagedata6model.cpp | /****************************************************************************
** Meta object code from reading C++ file 'usagedata6model.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
****************************************************... |
1db20b2d6c83080007bcc4f6c841a59908ef04d9 | 902e56e5eb4dcf96da2b8c926c63e9a0cc30bf96 | /Sources/HOO/HOOAdminProtocol/AdminLogin.h | 01744a724341557077232fc46baab5b862ded125 | [
"BSD-3-Clause"
] | permissive | benkaraban/anima-games-engine | d4e26c80f1025dcef05418a071c0c9cbd18a5670 | 8aa7a5368933f1b82c90f24814f1447119346c3b | refs/heads/master | 2016-08-04T18:31:46.790039 | 2015-03-22T08:13:55 | 2015-03-22T08:13:55 | 32,633,432 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,365 | h | AdminLogin.h | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of ... |
f48bc3ee8b25c5baf153adba08377bdc3050c775 | 29609b94d70ca16b173ebbe4d86d7795786a1bff | /HW 2 - regular/2/ElectionResultsDatabase.hpp | 6a6a4a7be1fa69fc664b39cfbd539d2eb52437f2 | [] | no_license | RadoslavSV/Object-Oriented_Programming | 84af4d65d9ab857312efc5bc7d55872ff2edb493 | e781422ec7243f38ca2f87c848c885c74bb6acba | refs/heads/main | 2023-06-07T06:35:04.059771 | 2021-07-01T07:49:09 | 2021-07-01T07:49:09 | 381,949,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,252 | hpp | ElectionResultsDatabase.hpp | /// Radoslav Velkov, fn 62528, group 1
#pragma once
#include <iostream>
#include <fstream>
#include <ostream>
#include "SectionVotes.cpp"
using namespace std;
class ElectionResultsDatabase{
int party1TotalVotes=0, party2TotalVotes=0, party3TotalVotes=0;
int sectionsNumber=0;
public:
ElectionResultsDataba... |
332a3724145acdc16ca0305e5b76aa829d34b3dc | fbd408a9ff965cbbfa5ddcba87908f2fbdfb7cff | /Cliente.cpp | a7968b1163fcbd982720a09afe6dd624bda86ec9 | [] | no_license | matisyo/TP2-Concu | 897b22faec2d4d47f6509582de766888b27169cf | 3bb02cef38dd0b9362acbb6b0440c634258882c5 | refs/heads/master | 2021-08-14T06:35:10.768243 | 2017-11-14T21:43:29 | 2017-11-14T21:43:29 | 110,712,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 893 | cpp | Cliente.cpp | #include <iostream>
using namespace std;
#include "Queue.h"
#include <string.h>
#include <unistd.h>
#include "Identificadores.h"
#include "Cliente.h"
int Cliente::run() {
Queue server(Identificadores::ID_SERVIDOR);
Queue client(Identificadores::ID_CLIENTES);
msj aux;
aux.mtype = Identificadores::M... |
64bdd30e08b5ea34ea46fd80f9ad5a58ab036a96 | 5defd28536a93b1d61d651a5679a0c85006028f4 | /_7SegmentDisplay_74HC595.ino | c4727eff36d01ef45eb0c36ce0c2030c0c949220 | [] | no_license | nxxcxx/AR-7SegmentDisplay-74HC595 | 3da43d809dded06425202fa44eaab77350189bc8 | b8c43a537688c0225e374a2692f8d523d3df10dc | refs/heads/master | 2016-09-06T04:47:56.832402 | 2014-08-28T12:52:13 | 2014-08-28T12:52:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | ino | _7SegmentDisplay_74HC595.ino | /* 74HC595 SHIFT REGISTER PIN CONFIG
Q0-Q7 = A-G
Q9-Q12 = common anode
Q8, Q13-Q16 = BLANK
*/
const int dataPin = 3;
const int clockPin = 4;
const int latchPin = 5;
const byte disp[4] = {
B00000001,
B00000010,
B00000100,
B00001000
};
const byte digits[10] = {
B11000000,
B11111001,
B10100100,... |
10cbc79ab6561b8ed81f73aa02039b797c600516 | a62342d6359a88b0aee911e549a4973fa38de9ea | /0.6.0.3/Internal/SDK/BP_MasterTrap_StaticMesh_Net_classes.h | fbe3d86f89c335cc624a12af0c855a86eab214cc | [] | no_license | zanzo420/Medieval-Dynasty-SDK | d020ad634328ee8ee612ba4bd7e36b36dab740ce | d720e49ae1505e087790b2743506921afb28fc18 | refs/heads/main | 2023-06-20T03:00:17.986041 | 2021-07-15T04:51:34 | 2021-07-15T04:51:34 | 386,165,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,879 | h | BP_MasterTrap_StaticMesh_Net_classes.h | #pragma once
// Name: Medieval Dynasty, Version: 0.6.0.3
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//-----------------------------------------------... |
db4e80cafe116eedf0825234299e99c931d82c49 | a9a368a41ac02c6bf41d6e7ed15df7243de36700 | /002.DAY_QUANG_US/015.AVLtree/studentln.h | f58de16cdc70057e9690d08c0a7df519aaaff2e9 | [] | no_license | phong2018/Cplusplus | e4aa4bac8da08d26285ecf07f6384a0127287750 | 9ef9c62207a498ac92c26d06b0fd68b4280be584 | refs/heads/master | 2023-04-02T16:55:37.725510 | 2021-04-10T23:20:52 | 2021-04-10T23:20:52 | 331,883,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,998 | h | studentln.h | #include <iostream>
using namespace std;
//---------
class Student{
public:
string id;
string first_name;
string last_name;
string email;
Student();
Student(string,string,string,string);
void set(string,string,string,string);
void get();
void print();
bool operator >(const St... |
34c8141062135bc58ce7907e002eda2ef74bae26 | 8e06d83c86f08422d5fe968b95fce5335557c799 | /src/main/native/new/probe/ViewProbe.cpp | 6ffd977d306db52001318edf89f9cc5ac765df38 | [] | no_license | bellmit/emp_355 | 4413b09a7b4d15343bc8d3f6035fb44456e2c996 | 657d41e2928d8490e3656cf11d169b019e7f4345 | refs/heads/master | 2022-04-09T00:00:47.384123 | 2017-06-25T00:26:34 | 2017-06-25T00:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,687 | cpp | ViewProbe.cpp | #include "probe/ViewProbe.h"
#include "utils/Const.h"
#include "utils/FakeXUtils.h"
#include "utils/MainWindowConfig.h"
#include "display/TopArea.h"
#include "display/HintArea.h"
#include "imageProc/ImgProcPw.h"
#include "imageProc/MenuPW.h"
#include "imageProc/ModeStatus.h"
#include "imageProc/ScanMode.h"
#include "... |
cd00d50a6bde829e1bee2c03a440ca811c6c2085 | a9aa074f0d0bbbd75bc5ea72c4a60c3985407762 | /attitude/tasks/newmakefilter/BooleanData.cc | 030304bee9e60c857021bbac6b55fa14df0b0a0a | [] | no_license | Areustle/heasoft-6.20 | d54e5d5b8769a2544472d98b1ac738a1280da6c1 | 1162716527d9d275cdca064a82bf4d678fbafa15 | refs/heads/master | 2021-01-21T10:29:55.195578 | 2017-02-28T14:26:43 | 2017-02-28T14:26:43 | 83,440,883 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,340 | cc | BooleanData.cc | #include "BooleanData.hh"
/********************************************************************************
* check thast all bits are equal. Note that we assume that the padding bits
* are always properly set to zero.
********************************************************************************/
BooleanData::Bool... |
0a5bc2081ae37284261b8ea4c0c7f77d6c1bda3a | 3c37f543bf4995e6029b716be42ad9ca3fb717b9 | /Implement strStr().cpp | 6afd0f9af101ab4b8a81730939a3ee3ce3f61fed | [] | no_license | awplxz/LeetCode | 4838261a11eec041c00981e810e72bdffe4078f6 | 673c4687d9588ebc3b9ee9ee9330be2fb18c8aa1 | refs/heads/master | 2021-01-20T20:08:59.072018 | 2016-07-21T01:43:42 | 2016-07-21T01:43:42 | 61,102,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | Implement strStr().cpp | class Solution {
public:
int strStr(string haystack, string needle) {
int n = haystack.length();
int m = needle.length();
int i ,j;
if(m == 0) return 0;
for(i = 0;i<=n-m;i++){
for(j = 0;j<m;j++){
if(haystack[i+j] != needle[j])
b... |
2d3bb2916c3fa93482fa341a1b6614bdcd60afa7 | 2a35885833380c51048e54fbdc7d120fd6034f39 | /Competitions/ICPC/2020/Sub-Regionals/N/N.cpp | 03fd490780aea91113d7912d2200bb0acf13fcbf | [] | no_license | NelsonGomesNeto/Competitive-Programming | 8152ab8aa6a40b311e0704b932fe37a8f770148b | 4d427ae6a06453d36cbf370a7ec3d33e68fdeb1d | refs/heads/master | 2022-05-24T07:06:25.540182 | 2022-04-07T01:35:08 | 2022-04-07T01:35:08 | 201,100,734 | 8 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,753 | cpp | N.cpp | #include <bits/stdc++.h>
#define DEBUG if(0)
#define lli long long int
#define ldouble long double
using namespace std;
const int maxX = 31622777; // sqrt(10^15)
bool notPrime[maxX + 1];
vector<int> primes;
const int maxN = 1e3; int m, n, k;
lli ns[maxN], ms[maxN];
vector<pair<lli, int>> nToM[maxN], mToN[maxN];
void... |
0ccf374168ff942fca286462c915b229b2899761 | 5e135c34baf51eb8c17db4b7fa71fb4f21ab8b8c | /external/aloha_cm/FFS1_3_1.h | c73e57e1c8646396274949665d96bec787701c29 | [] | no_license | lmcoy/mypowheg | cd77ae40471272282e28da4a3b21ea12c2d9794c | f9f57e50ebed0d1756b1472e1ef29f4e5bf5dfb9 | refs/heads/master | 2021-01-12T08:07:54.918090 | 2018-09-30T16:53:51 | 2018-09-30T16:53:51 | 76,482,229 | 2 | 0 | null | 2017-04-27T09:28:32 | 2016-12-14T17:34:54 | Fortran | UTF-8 | C++ | false | false | 330 | h | FFS1_3_1.h | // This File is Automatically generated by ALOHA
//
#ifndef FFS1_3_1_guard
#define FFS1_3_1_guard
#include <complex>
void FFS1_3_1(std::complex<double> F2[], std::complex<double> S3[],
std::complex<double> COUP1, std::complex<double> COUP2,
std::complex<double> M1, std::complex<double> F1[]... |
2d7b8933f053131668838f91ed4000b999059498 | 3599675c04ebe39d269c37495c2f5a55d2b8bde1 | /boj_sources/11931.cpp | 66e30b1b236872a9d9e81ec2fd32ffef2af92e78 | [] | no_license | JOOHOJANG/Problem_Solving | 56b7c88938e482904e468e32950a68cfa4a6aa65 | a20946e882e83843c5933b1792b25c6625042dee | refs/heads/master | 2022-08-14T05:18:47.122762 | 2020-05-18T06:38:38 | 2020-05-18T06:38:38 | 264,841,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cpp | 11931.cpp | #include <cstdio>
#include <algorithm>
#include <stdlib.h>
using namespace std;
int arr[1000000];
int compare(const void *a, const void *b) {
int num1 = *(int*)a;
int num2 = *(int*)b;
if (num1 > num2) return -1;
if (num1 < num2) return 1;
return 0;
}
int main() {
int n, i;
scanf("%d", &n);... |
4e98627968da7df2a0f4daa06910da1fa2784d2c | d28a1ce087a84a4be8eac81c20b507d84d026425 | /Homework 2/hw02.cpp | 3f4dc85e52dc1fd9cc5addb1f4efc9092e9a512e | [] | no_license | jackyteoh/CS1124 | 04fcb90c4c2abadceae72a8eb5e4e97d472425e0 | 5ab98775db6d1bcd15504e6d00c71d0c7f5c7ea4 | refs/heads/master | 2021-01-17T23:19:16.648343 | 2018-05-22T03:42:49 | 2018-05-22T03:42:49 | 68,481,898 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,695 | cpp | hw02.cpp | /*
Jacky Teoh - jt2908
CS1124 - Homework 2 - Warriors
hw02.cpp
*/
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
using namespace std;
// Creating Weapon class
class Weapon {
public:
// Weapon constructor, taking in the name of the weapon and the weapon strength as parameters, initialized... |
a73c74a9f526c0378ad220b4a2697562fe67b9d0 | c0d8930b9cfecf8790937a67c32d14e35b716b8e | /charInputTest/main.cpp | 160b154eaf1c69d7b92c249e50669e2931a0fe2f | [] | no_license | imWhS/ProblemSolving | 4309af97b3760f7a0fbc01a73551f0bd778ebc30 | 1ca342d6d244c2ff3c6b571f028e0a7d1f8f6b98 | refs/heads/master | 2021-08-20T04:53:16.972633 | 2021-06-29T14:26:36 | 2021-06-29T14:26:36 | 231,716,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cpp | main.cpp | #include <iostream>
#define endl "\n"
using namespace std;
int N;
char map[51][51];
int main() {
ios::sync_with_stdio(false);
cin >> N;
for(int i = 1; i <= N; i++)
for(int j = 1; j<= N; j++)
cin >> map[i][j];
for(int i = 1; i <= N; i++) {
for(int j = 1; j <= N; j++)
... |
80a433073d78a4ff87a70f1cf960b07804225b00 | 787bb89817b3e0730b9d532fabb1c5fd97cbcebe | /server/main.cpp | 60bdfd78f1b55627d693a19af774398f43b9d07e | [] | no_license | ankhmesut/clientserver | 9ca9604377be785cda9adc93eadfbd5ed60777fc | a0d2f9f538210ba36d14b836b0771c26f2597047 | refs/heads/master | 2022-10-22T10:48:25.656766 | 2020-06-08T10:07:16 | 2020-06-08T10:07:16 | 270,614,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,449 | cpp | main.cpp | #include <iostream>
#include <chrono>
#include <thread>
#include <limits>
#include <cstdlib>
#include <iterator>
#include "ber.h"
#include "tcpserver.h"
#include "gmpxx.h"
static constexpr const char * DATA_LENGTH = "67108864";
std::string getHostStr(const Connection& client) {
uint32_t ip = client.g... |
8046988fe64e03fdc95d8c6cb5bf7ac872892270 | 9421b150bac45eeec08ef6c69694e789a1694773 | /ITP1/ITP1_4_C/main.cpp | 721cc507a8c8f6b805a0550547958c5c310eeb19 | [] | no_license | izumisan/AOJ | 3e36a2bb987852acfa1afe6ffabfc7279244fcda | 596470bba3c5a3ee3ecff666e4b96a67f1bd9f4c | refs/heads/master | 2020-07-10T20:01:18.697945 | 2019-09-05T15:02:55 | 2019-09-05T15:02:55 | 204,356,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | main.cpp | // AOJ: ITP1_4_C
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_C&lang=jp
#include <iostream>
#include <string>
#include <map>
#include <functional>
static const std::map<std::string, std::function<int(int, int)>> calculator_ =
{
{ "+", [](int x, int y){ return x + y; } },
{ "-", [](int x, ... |
9098acbdaf52df8067eb2188a6423ffe3419a436 | 0bbfc371e210ef951cef31622aeaba722c388180 | /src/pcb.cpp | 1cd546a19ab1d49d1ac78df163dbbe2c5a8939d5 | [
"CC0-1.0"
] | permissive | valzgit/OS-Kernel | 45d52e48d95de42d75fa0b988d28251fa0463852 | 189ec26c8df7ab3e98bbe5fa119fd4a8acfd0849 | refs/heads/main | 2023-04-28T22:17:13.619631 | 2021-05-16T21:04:00 | 2021-05-16T21:04:00 | 367,984,612 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,876 | cpp | pcb.cpp | #include "pcb.h"
#include "schedule.h"
#include <iostream.h>
#include "pcbqueue.h"
#include "sleeplst.h"
#include "idlethr.h"
#include <stdlib.h>
#ifndef BCC_BLOCK_IGNORE
void _FAR * _FARFUNC operator new(unsigned size) {
asm { pushf; cli; }
void _FAR * membuf = malloc(size);
asm { popf; }
return me... |
41b9af4d8639e5f8a5bee90f2e258a3053df7857 | d0507d52048fb2417c129942dd37ec21de7024e4 | /B2nkbz/B2nkbz/B2nkbz_custom_main.cxx | 20ac976e20696b75e2b8ec244a7ea65ddf870684 | [] | no_license | isliulin/B2nkbz | 8b176848a7d12cda0e99129ac70f4b301c9721a8 | 4636a2fc1737ef3534cfaf56fe448d376fc8d86b | refs/heads/master | 2021-09-27T10:37:36.759927 | 2018-11-08T01:27:32 | 2018-11-08T01:27:32 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 745 | cxx | B2nkbz_custom_main.cxx | #include "init.h"
#include "Debug.h"
#include "DBHandler.h"
#ifdef __cplusplus
extern "C" {
#endif
/******************************************************************
程序主函数
*******************************************************************/
DLLAPI int B2nkbz_register_callbacks()
{
int ifail = ITK_ok;
//注册... |
7012fb3dab100a003f49a39b6d362867af01003c | 60569746dc5203f1a74afc3b589b3307b7428cfd | /tests/cmdline_tester.cpp | e8c9906de79ec417a3c5236594e62acb6e6d75bb | [] | no_license | voytech/DesktopCouchResource | ab272aab1df38159cfbecab8009b53456763683a | 925b3b94080100106717204e36ba12d649329860 | refs/heads/master | 2021-01-01T05:36:13.129050 | 2010-09-11T08:35:20 | 2010-09-11T08:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | cpp | cmdline_tester.cpp | #include <QtCore/QCoreApplication>
#include <iostream>
#include <qdebug.h>
#include <qtimer.h>
#include <qmetatype.h>
//include <Qt/QtDBus>
//#include "desktop_couch.h"
#include <desktop_couch.h>
//#include <couchdb-qt.h>
//class Test;
int main( int argc, char** argv )
{
QCoreApplication app( argc, argv );
/*QMa... |
026bd115b8b0275daa7f2bdc157f59c1e943da95 | e1fbd1fd1d7fe04926d76e3513bcbd155b522342 | /RShell/CDCommand.h | 396b985262fca3c58ae7ad9245862310e3b3fd5a | [] | no_license | RdlP/RShell | fc55c512f21c9fc1f1b5ae19c9623db5909a1b74 | cd0f4a426f17481ec6dd190b1189248489c4ac5a | refs/heads/master | 2021-01-19T00:50:25.271911 | 2017-04-04T16:25:46 | 2017-04-04T16:25:46 | 87,210,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 157 | h | CDCommand.h | #pragma once
#include "Command.h"
class CDCommand : public Command
{
public:
CDCommand(wstring line, Shell*);
virtual ~CDCommand();
int execute();
};
|
558a5248ba709b8689f6f3fd99cd2411e065dbac | 93088fe67401f51470ea3f9d55d12e0b40f04450 | /jni/include/CraneTrigger.h | cffb9f6ab3bcf8ff4be7d0d36248d649ff4abf95 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | 4nakin/canabalt-bluegin | f9967891418e07690c270075a1de0386b1d9a456 | c68dc378d420e271dd7faa49b89e30c7c87c7233 | refs/heads/master | 2021-01-24T03:08:39.081279 | 2011-04-17T06:05:57 | 2011-04-17T06:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | h | CraneTrigger.h | #pragma once
#include "flx/object.h"
#include "flx/data/rect.h"
class Player;
class CraneTrigger;
typedef shared_ptr<CraneTrigger> CraneTriggerPtr;
class CraneTrigger : public flx::Object
{
public:
Player* player;
static CraneTriggerPtr create(flx::Rect frame, Player* player);
CraneTrigge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.