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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8782cefd7047e26f43ec18bba5dabc10e8b0f71 | 675c821072436a56ee1f9678c50abb6a87bfc9ea | /MUZ/muzlib/MUZ-Common/StrUtils.h | e3201b72338e2c0b0aef6e9e2307a71398e58950 | [] | no_license | bkg2018/MUZ-Workshop | f4e95b491e9be3f4f0842a978aaff1d647e87b8d | ebb133dccb43d984928b67f3a7cf02d4fa49b2a0 | refs/heads/master | 2021-07-16T00:09:00.178200 | 2020-05-28T14:38:32 | 2020-05-28T14:38:32 | 162,558,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,983 | h | StrUtils.h | //
// StrUtils.h
// MUZ-Workshop
//
// Created by Francis Pierot on 04/12/2018.
// Copyright © 2018 Francis Pierot. All rights reserved.
//
#ifndef StrUtils_h
#define StrUtils_h
#include "Types.h"
#include <string>
/** add to_string() on MUZ addresses, extension to std namespace */
namespace std {
string to_str... |
bbe54ad67a2879a10871870a468637f2432f0334 | bca382e0fc9860969f77fefb9b7ed2c3eeacdd66 | /bond specific classes/GUIService.hpp | 9b0bd7b91e5a3ec04307b099cf7d852b9f28c9c9 | [] | no_license | ssh352/MTH9815Final----Trading-System | 40cd35663e911f66a4e9ece6edf6a9149fb1daf4 | f65c2c44480455261a6a738472fe13e7a4254604 | refs/heads/master | 2022-03-24T16:45:17.932916 | 2019-12-27T03:00:47 | 2019-12-27T03:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,802 | hpp | GUIService.hpp | /**
* GUISERVICE_HPP
*
* @author Bin Zhu
*/
#pragma once
#ifndef GUISERVICE_HPP
#define GUISERVICE_HPP
#include "boost/date_time/posix_time/posix_time.hpp"
#include <boost/date_time.hpp>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include "pricingservice.hpp"
#include "soa.hpp"
... |
1680a0889fd76bb1251e72dc2214456caa1e8cd3 | c29ea02c80cd4e9ee1280dff2ca202221eef8f2a | /G53GRA-Coursework/Code/Lighting/Lantern.cpp | d17dad88a586cdaaca366a9834215dc0880ce3d0 | [] | no_license | BadgerCode/G53GRA-Coursework | 25708a5fe60d3a69581353fbe1c792b2cce2b373 | 3daa1cfd9d2fa36cac7cc27a0e260879f7f974f4 | refs/heads/master | 2021-03-19T06:46:16.789322 | 2020-03-03T12:59:18 | 2020-03-03T13:00:21 | 89,589,833 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 302 | cpp | Lantern.cpp | #include "Lantern.h"
Lantern::Lantern( float x, float y, float z) : Fire(x, y, z)
{
SetOrbDrawing(false);
SetAmbience(1.f, 1.f, 0.9f, 1.f);
SetDiffuse(1.f, 1.f, 0.5f, 1.f);
SetSpecular(1.f, 1.f, 1.f, 1.f);
SetDistance(150.f);
SetMaxEmberHeight(10.f);
SetMaxEmbers(3);
SetEmberRadius(0.25);
}
|
1d731897707be4ad1d9466053d06efb87a3e7f9d | b4af26ef6994f4cbb738cdfd182e0a992d2e5baa | /source/leetcode/2309/신입.cpp | 69d9b3ec5242339959cb7f0a0249a1c7a0e1e644 | [] | no_license | wisest30/AlgoStudy | 6819b193c8e9245104fc52df5852cd487ae7a26e | 112de912fc10933445c2ad36ce30fd404c493ddf | refs/heads/master | 2023-08-08T17:01:12.324470 | 2023-08-06T11:54:15 | 2023-08-06T11:54:15 | 246,302,438 | 10 | 17 | null | 2021-09-26T13:52:18 | 2020-03-10T13:02:56 | C++ | UTF-8 | C++ | false | false | 300 | cpp | 신입.cpp | class Solution {
public:
string greatestLetter(string s) {
bool exist[256]{};
for(char ch : s) exist[ch] = true;
for(int i=25;i>=0;i--)
{
if(exist[i+'a'] && exist[i+'A']) return string(1, i+'A');
}
return "";
}
};
|
381db8ce7126e8864b4dc98826460763c8754e30 | 6093d435261473aaf0763fc9ea020a2d01be0561 | /30-Day_LeetCoding_Challenge_May_2020/Week_1/Jewels_and_Stones.cpp | 6dddad2fa92bd5f8ee35606d4dfaa03d9ca26dd9 | [] | no_license | master-fury/Leet_Code | 377bf316b4ac4113fa99bd4c8eee703369db3a74 | 753da44ff8a142642e30ccbe2baeef3e4b2b4874 | refs/heads/master | 2022-07-09T18:14:49.920210 | 2020-05-10T18:06:56 | 2020-05-10T18:06:56 | 260,646,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cpp | Jewels_and_Stones.cpp | class Solution {
public:
int numJewelsInStones(string J, string S) {
int count =0;
for (char ch:J){
for (int i = 0; i < S.size(); i++){
if (ch == S[i])
++ count;
}
}
return count;
}
}; |
2660d32b975cd494be0defa5c4824f6c331e18b3 | e374f0f4f958434cc515e67b494b1115b28389ad | /Source/DGame/Private/UI/DMainUI.cpp | 79a3ce687ffee874ba333afe9863dc86d1845ab2 | [] | no_license | Duadua/DGame | 4f9e10111a53c094fa8f897d6e88821634da2e4c | 2f171399b81d636a9e53a777771b44c7b9c2867a | refs/heads/master | 2020-03-24T03:28:12.710823 | 2018-07-29T16:57:44 | 2018-07-29T16:57:44 | 140,232,937 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | DMainUI.cpp | #include "DMainUI.h"
#include "DGame.h"
bool UDMainUI::Initialize() {
if (!Super::Initialize()) return false;
init();
return true;
}
void UDMainUI::init()
{
m_login_bt = Cast<UButton>(GetWidgetFromName(TEXT("bt_login")));
m_localin_bt = Cast<UButton>(GetWidgetFromName(TEXT("bt_localin")));
m_option_bt = C... |
56ff3900fb4c10c4ba621bea2f1a94176b338f0a | 7a20b3db1a185ecdf12ad86f38edaa03742abd7b | /src/pipe/SkPipeReader.cpp | ada4a21342800a43ae5702a8b0eb0dad75b99dd3 | [
"BSD-3-Clause"
] | permissive | revery-ui/esy-skia | 7ef96ceeca94d001264684b7dc1ac24db0381ad4 | 29349b9279ed24a73ec41acd7082caea9bd8c04e | refs/heads/master | 2022-05-29T17:50:23.722723 | 2022-04-02T09:37:52 | 2022-04-02T09:37:52 | 203,015,081 | 24 | 26 | BSD-3-Clause | 2022-04-02T09:37:52 | 2019-08-18T14:24:21 | C++ | UTF-8 | C++ | false | false | 33,460 | cpp | SkPipeReader.cpp | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCanvas.h"
#include "SkCanvasPriv.h"
#include "SkDeduper.h"
#include "SkDrawShadowInfo.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
#include "SkPipe.h"
... |
90fe7587e604bb98130252fd496dae0833d74dc7 | 0f8bc2c77825484831e55c0e95f3f5ecaf253161 | /Week4/test/2.組合字串.cpp | 0abd73dc8c5c43144fc9a25621a97b1cfe436f1f | [] | no_license | D0683497/FCU_Data_Structure | 2fb625d39d7cc461af23f411b082e22e515075c0 | 8a68e63cddff7176dbd0f2f38b5c6d3af1c59f95 | refs/heads/master | 2023-02-06T04:46:03.437552 | 2020-12-30T00:51:10 | 2020-12-30T00:51:10 | 301,861,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | 2.組合字串.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char string[6];
printf("輸入字串:");
scanf("%s", string);
int len = strlen(string);
int num, i;
for (i = len; i > 0; i--)
{
if (i == len)
{
num = i;
}
else
{
num = i*num;
}
}
printf("字串%s有%d種組合字串:", string, num);
... |
04c5e9536bb65e46e57d669e4f9b0aa2cc242e6e | b3a94f8a7c2cfb75bc7671db4388d1893f7dc42c | /src/model/settings.h | cae5581883f32d9135f73f4a9ea466f239884d08 | [] | no_license | Kermit/ROJA-converter | c1cfe16a9ce70378b8ac66d977b1ae162029e119 | 39415252f842c3a10d32807019f3e02719784033 | refs/heads/master | 2021-01-01T17:43:39.578900 | 2013-01-07T20:04:33 | 2013-01-07T20:04:33 | 2,218,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226 | h | settings.h | #ifndef SETTINGS_H
#define SETTINGS_H
#include <QtCore/QString>
class Settings
{
private:
QString version;
public:
Settings();
void setVersion(QString value);
QString getVersion();
};
#endif // SETTINGS_H
|
20dc100acd13c288c567dc39def5bbf11697116a | 1e45f0478453f98bfecf3eab6a0d73b01d3d53d0 | /args/editor/editor/editormodule.hpp | 2afc87db945ea1bd8623841327e157b84a8e095d | [
"MIT"
] | permissive | Algo-ryth-mix/Args-Engine | 841403155eb212285496cd5d697591ff5dbcaa83 | cc5084c5060ff071602cc9e2fdfb52791e65ca5b | refs/heads/main | 2022-12-25T14:19:06.220699 | 2020-10-01T20:55:01 | 2020-10-01T20:55:01 | 279,065,733 | 0 | 0 | MIT | 2021-04-02T08:47:28 | 2020-07-12T13:03:29 | C++ | UTF-8 | C++ | false | false | 288 | hpp | editormodule.hpp | #pragma once
/**
* @file editormodule.hpp
*/
namespace args::editor
{
/**@class EditorModule
* @brief interface for editor-modules, must be implemented
* @ref args::editor::Editor::reportModule<T,...>()
*/
class EditorModule
{
};
struct editor_module_initializer_t {};
}
|
688569bb52228348dd7ac161f38c8e1505efebfd | e15fd92ed52e166bbea5de9740d0f15b8bc4a43f | /src/Level/SSerialization.cpp | 8878c3c0c76d356f6d7b620ea2a8de78f7a2c5ed | [] | no_license | BlueSpud/Spud-Engine-2 | 1a14cf909a3860fb7d12b51a39db02d5963e0ce2 | c42b8b354c173ede0901c2ac625cce65c74ae182 | refs/heads/master | 2020-12-05T05:35:52.021427 | 2018-02-26T01:33:10 | 2018-02-26T01:33:10 | 67,078,816 | 0 | 0 | null | 2016-12-25T17:08:03 | 2016-08-31T22:44:14 | C++ | UTF-8 | C++ | false | false | 2,481 | cpp | SSerialization.cpp | //
// SSerialization.cpp
// Spud Engine 2
//
// Created by Logan Pazol on 3/6/17.
// Copyright © 2017 Logan Pazol. All rights reserved.
//
#include "SSerialization.hpp"
/******************************************************************************
* Implemetation for serialized data *
*************... |
b1b2b1859aa150318d57e695164d8738f10fe015 | d6258ae3c0fd9f36efdd859a2c93ab489da2aa9b | /fulldocset/add/codesnippet/CPP/p-system.windows.forms.a_3_1.cpp | 6481d83d1d12ff83be1160a39c8cd10eaa9a6788 | [
"CC-BY-4.0",
"MIT"
] | permissive | OpenLocalizationTestOrg/ECMA2YamlTestRepo2 | ca4d3821767bba558336b2ef2d2a40aa100d67f6 | 9a577bbd8ead778fd4723fbdbce691e69b3b14d4 | refs/heads/master | 2020-05-26T22:12:47.034527 | 2017-03-07T07:07:15 | 2017-03-07T07:07:15 | 82,508,764 | 1 | 0 | null | 2017-02-28T02:14:26 | 2017-02-20T02:36:59 | Visual Basic | UTF-8 | C++ | false | false | 140 | cpp | p-system.windows.forms.a_3_1.cpp | private:
void PrintProductVersion()
{
textBox1->Text = "The product version is: {0}",
Application::ProductVersion;
} |
b8a838c8dd597de2240aea18d8e989c9654b9b9c | 549dcbba3b5c1496d8481088c461949459e9c9e5 | /GAME3015_A1/MenuState.hpp | 55368fd5dcd9f93e81ddf5420a9064e30c2c77c1 | [] | no_license | inparia/GAME3015_A1 | 7fe12f6a117f45f0278cd13437e7266c6ad152c8 | ed96c74b47975e5b74b2e2a4f3d3f74f23cf252a | refs/heads/main | 2023-03-29T13:12:53.839271 | 2021-03-24T03:50:06 | 2021-03-24T03:50:06 | 343,686,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | hpp | MenuState.hpp | #pragma once
#pragma region step 1
#include "State.hpp"
#include "SpriteNode.h"
class MenuState : public State
{
public:
MenuState(StateStack* stack, Context* context);
virtual void draw();
virtual bool update(GameTimer& gt);
virtual bool handleEvent(WPARAM btnState);
virtual bool handleRealtimeInput();
... |
0ec50886977c461c5f018716bc657d33bd9f6829 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/examples/C++NPv1/Thread_Per_Connection_Logging_Server.h | 65f916146ae57a3b5d772ae1e2cfae9d605cbf67 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 1,258 | h | Thread_Per_Connection_Logging_Server.h | /*
** Copyright 2001 Addison Wesley. All Rights Reserved.
*/
#ifndef _THREAD_PER_CONNECTION_LOGGING_SERVER_H
#define _THREAD_PER_CONNECTION_LOGGING_SERVER_H
#include "ace/SOCK_Stream.h"
#include "Logging_Server.h"
class Thread_Per_Connection_Logging_Server : public Logging_Server
{
private:
struct Thread_Args {
... |
2a03791eb340d24ceddca04a325cd1b3d3ab5017 | 1ec2bbf1d08b5a27dbf16b8ea327d6dda4222861 | /src/Random.h | 3090f74da232bc0114b8b96a36f00595893c9104 | [] | no_license | myhau/geometry-orthogonal-space-search | ee967520e6fa5a493ab6cd24279d98471f92dede | a2a74d7d1fabe334ac8038253c660c0425899d76 | refs/heads/master | 2021-01-13T12:44:07.037649 | 2017-10-21T21:57:30 | 2017-10-21T21:57:30 | 72,533,074 | 1 | 2 | null | 2017-10-21T21:57:31 | 2016-11-01T12:15:08 | C++ | UTF-8 | C++ | false | false | 2,947 | h | Random.h | #ifndef GEO_PROJ_RANDOM_H
#define GEO_PROJ_RANDOM_H
#include "Point.h"
#include <vector>
#include <cmath>
#include <random>
using namespace std;
default_random_engine generator;
uniform_real_distribution<double> angleDistribution(0, 2 * M_PI);
class Random {
public:
static auto randomPoints(const Rect<>& insid... |
da3e44d86980d97182de3aefe7ad4924a22fa333 | 0e0bd3ad21931a20b8440505fe6c0792225ce411 | /main.cpp | 8806471bdf9e65e30a2fec04094d765b6ca698c9 | [] | no_license | Ilya7531/Ring- | f8ed38f73cc2e7c25cda0801f508d34243f9f2bd | 74dfffe35282462fb86e84a842cca65f04240f17 | refs/heads/master | 2020-05-20T10:41:47.343879 | 2013-11-05T01:39:54 | 2013-11-05T01:39:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | main.cpp | #include <iostream>
#include <cstring>
#include "ring.h"
using namespace std;
int main()
{
Ring r;
//r.add(3);
cout << r.isEmpty() << endl;
//r.add(4);
cout << r.isEmpty() << endl;
cout << r.del() << endl;
cout << r.del() << endl;
cout << r.isEmpty() << endl;
return 0;
}
|
4347edcfa366c6ee83e00be8bf99217272a087eb | cd0515449a11d4fc8c3807edfce6f2b3e9b748d3 | /src/yb/util/util_pch.h | 1a4716c76b3fd28aeac8d558b68364d0726f3554 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"OpenSSL"
] | permissive | wwjiang007/yugabyte-db | 27e14de6f26af8c6b1c5ec2db4c14b33f7442762 | d56b534a0bc1e8f89d1cf44142227de48ec69f27 | refs/heads/master | 2023-07-20T13:20:25.270832 | 2023-07-11T08:55:18 | 2023-07-12T10:21:24 | 150,573,130 | 0 | 0 | Apache-2.0 | 2019-07-23T06:48:08 | 2018-09-27T10:59:24 | C | UTF-8 | C++ | false | false | 8,306 | h | util_pch.h | // Copyright (c) YugaByte, Inc.
// This file was auto generated by python/yb/gen_pch.py
#pragma once
#include <assert.h>
#include <crcutil/interface.h>
#include <curl/curl.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <float.h>
#include <ifaddrs.h>
#include <inttypes.h>
#include <math.h>
#inclu... |
681ad813873c21bfa134d5f4462edd8efa4d34f1 | 98a0ac4a9c67ae2e767f6220e1adcdaab8fb97d0 | /个人赛1/codes/A/26390117_3019244083_A.cpp | d1f2a25031f694253a604b2e4a6a21a45c6640b5 | [] | no_license | neverac/2020summer | 8fdc0e6a4c7047d754bf48d9e7f9822d7853fb5f | 673a493dbf736f1d33f791a254448e061ccd0b6b | refs/heads/master | 2022-12-04T21:54:24.688278 | 2020-08-25T09:37:55 | 2020-08-25T09:37:55 | 280,410,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | 26390117_3019244083_A.cpp | #include <bits/stdc++.h>
using namespace std;
int a[1100];
int main()
{
int n,m;
int ans=0;
scanf("%d%d",&n,&m);
for(int i = 1; i <= n; ++i) scanf("%d",&a[i]);
sort(a+1,a+n+1);
for(int i = 1; i <= m; ++i) ans += a[i];
printf("%d",ans);
return 0;
} |
4e76f06337b3bc23b3e0192bb44cd09a8f8b0040 | 0eda31c5005912a6ae1652de0f4f48fb922ebcff | /CircleList/CircleList/CircleList.cpp | 60fcd108d015db3af3b4858ee8a43f6207933f29 | [] | no_license | rpotanic/my-labs | 491879015884879df0406803ddff8774f0a31080 | 03b34690d8c1a77fb41401d6c085a65547ed3a95 | refs/heads/master | 2020-05-23T16:23:07.988108 | 2019-05-15T14:53:02 | 2019-05-15T14:53:02 | 163,100,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,670 | cpp | CircleList.cpp | #include "CircleList.h"
#include <iostream>
CircleList::CircleList()
{
Head = new Monom();
}
CircleList::~CircleList()
{
Monom * cur = Head->getNext();
while (cur != Head)
{
Head->setNext(cur->getNext());
cur->setNext(nullptr);
delete cur;
cur = Head->getNext();
}
Head->setNext(nullptr);
delete Head;... |
76e1d0768e905a5cc0ec8ec17c9089ff4653c368 | 5e7b8bfa89225e03bc8cdc0723e8756b81b9e008 | /maxsubsum.cpp | 04c341fd70c4d13fe6bfaac02f4de6611a0d75b9 | [] | no_license | shashankch/DataStructures-Algorithms | 3e0137065f878c962a815d17cb7916487ebdeb0b | b6b447ebf4e1a18ec23b94172e844ce0d53f7a14 | refs/heads/master | 2020-09-11T13:55:21.068954 | 2020-05-06T07:24:07 | 2020-05-06T07:24:07 | 222,088,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | maxsubsum.cpp |
#include <iostream>
#include <algorithm>
using namespace std;
int max_sum(int *arr, int n)
{
int cs = 0, ms = 0;
for (int i = 0; i < n; i++)
{
cs += arr[i];
if (cs < 0)
{
cs = 0;
}
ms = max(ms, cs);
}
return ms;
}
int main()
{
int t, n... |
63c4768480be80c23f29d14d4a70c5ca297c4bbc | b61b94afc9a8c4c3aa1057d71095a48e53fe32f9 | /iot-project/src/lib/iot/modules/Utils/Utils.h | d529f0ecdff7fcd7fb34b54715a4cc92c7570ca3 | [] | no_license | wojtekpil/iot | cd4ebf0546d1057bd9b74faf0f704e27b068f983 | b5c7e502a8736f2aa55dcfd2f9598c8372b99d13 | refs/heads/master | 2016-09-14T18:53:39.043966 | 2016-06-08T10:18:05 | 2016-06-08T10:18:05 | 58,266,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | h | Utils.h | /*
* Utils.h
*
* Created on: 6 maj 2016
* Author: wojtek
*/
#ifndef LIB_IOT_MODULES_UTILS_UTILS_H_
#define LIB_IOT_MODULES_UTILS_UTILS_H_
namespace iot {
/**
* Utils class containing some static method that are common in application
*/
class Utils {
public:
Utils();
void onStartup();... |
07b547865156d0436191f1df40dfc585611dcf62 | cc17eb854019ceafb8b9d5a7a80d88b14363fee6 | /POJ - 1182 食物链(带权并查集).cpp | f89a480275a096e2d0181489fe6932a4120d26f4 | [] | no_license | kuronekonano/OJ_Problem | 76ec54f16c4711b0abbc7620df5519b3fff4e41b | ea728084575620538338368f4b6526dfdd6847db | refs/heads/master | 2021-06-23T02:19:59.735873 | 2020-12-30T03:52:59 | 2020-12-30T03:52:59 | 166,183,278 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,270 | cpp | POJ - 1182 食物链(带权并查集).cpp | #include<stdio.h>///将于父节点的关系用权值表示
int n,t,fa[50004],link[50004];
int finds(int x)
{
if(fa[x]!=x)///递归式查找
{
int tmp=finds(fa[x]);
link[x]=(link[x]+link[fa[x]])%3;///根据枚举规律推导出的公式,可以路径压缩计算出当前结点与父亲的父亲结点的关系权值
fa[x]=tmp;///更新结点的父亲变为原来的爷爷结点
}
return fa[x];
}
int main()
{
... |
a0c50c2367c30103821b788caef1a9afb66f714e | 2ee5031aff86b406b7fb79c86cabae2b22158829 | /MyProject/Source/MyProject/Private/BasicFrame/Libs/DelayHandle/DelayAddParam.h | bba9e6ecaf8f553c1f8c92f14c4a5e1c078b2fba | [] | no_license | hackerlank/UE | fe5c07e67db577bbf90021e1ce59473efc4a87ee | 7899ff61023ce944b47b73987ee498d48f58dd54 | refs/heads/master | 2020-06-12T11:50:20.268224 | 2016-12-01T02:34:20 | 2016-12-01T02:34:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | h | DelayAddParam.h | #ifndef __DelayAddParam_H
#define __DelayAddParam_H
#include "DelayHandleParamBase.h"
class DelayAddParam : public DelayHandleParamBase
{
public:
float m_priority;
public:
DelayAddParam();
};
#endif |
2f5121786ecd1b344d0be566d334dcf4a15f0313 | a26cd9b2094127c8bca5ae1563de63a139d917b0 | /test.cpp | 223a355bd6b1a5aa21ac0a4875cfdefef3ca1dc7 | [] | no_license | davekessener/initrd | 16e94adadddd58e50a58634f91cfb406402cebca | f9204605101d639ff6641a48bc9eb3dc80ca4046 | refs/heads/master | 2020-12-30T04:01:24.838711 | 2020-02-07T19:51:53 | 2020-02-07T19:51:53 | 238,853,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cpp | test.cpp | #include <iostream>
#include <vector>
#include <fstream>
#include <iterator>
#include "lib/rd.h"
using namespace dave::initrd;
void process(const Node *n, uint indent)
{
for(uint i = 0 ; i < indent ; ++i)
{
std::cout << " ";
}
std::cout << "/" << n->name() << " (" << (n->is_directory() ? "D" : "F") << "): ";... |
3485c780267c2b111912d5bf38fc5abec65820f7 | 48a05c269ce7a5d6337e212093a993359317555f | /Phase 2/include/InputParser.h | cdab882ac14ed537791a16b4aea93e7f3b9464e9 | [] | no_license | Mark-Mamdouh/Complier | 60c20875df1c70ca7843e296ec315490de0e7e71 | 1580f689356239e882c3404c9dae9e17b292b586 | refs/heads/main | 2023-01-29T04:08:30.597619 | 2020-12-15T23:52:11 | 2020-12-15T23:52:11 | 321,818,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | h | InputParser.h | #ifndef INPUTPARSER_H
#define INPUTPARSER_H
#include "phase2.h"
using namespace std;
class InputParser
{
public:
// elements scaned from productions file
vector<struct PR_ELEM> elements ;
// each NT element will have its production rule by indeces
map<int , vector<vector<int>>> prod... |
bd378ffab0b418f0d4e4ccc69bd4714e71760454 | a4a9ac3db0a57a4d5efa274067d3a40014b6c47f | /DXNetworking/DXNetworking/MenuInterface.cpp | 01633413e5190e02d8b6f309f6dfc849a5487469 | [] | no_license | rukamir/DxNetworking | b25a434658fc5ee9145b04fe53b2b76016ff4090 | 209dc839defee45e177c6235d53994138a68a98c | refs/heads/master | 2020-05-17T04:19:40.302124 | 2013-08-18T20:07:06 | 2013-08-18T20:07:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,896 | cpp | MenuInterface.cpp | #include "MenuInterface.h"
MenuInterface::MenuInterface()
{
m_pos = D3DXVECTOR2(0.0f, 0.0f);
m_active = true;
}
MenuInterface::~MenuInterface()
{
VectSprtElemShPtrs::iterator i = m_vSptElem.begin();
if(m_vSptElem.size())// != 0)
for(;i != m_vSptElem.end(); i++)
{
(*i) = 0;
}
}
void MenuInterface::AddEle... |
d5a72fbd7cc7f1f1290b5d71b42187d917466360 | 1cc0d2dba257a586dbc179f7532a18f504c8e204 | /src/sorting.h | e5c1576fbc18e86926c759e74c912cc686a48425 | [] | no_license | Marvinsky/dsa_pooii_exercises | 3a152f7ae93adaa5fe7eb3a0ee37f8cf82c6edce | 0937683a5bd642d8f03eeaac067c04cbbb0b1733 | refs/heads/master | 2022-09-20T21:08:17.444636 | 2020-05-31T15:37:33 | 2020-05-31T15:37:33 | 268,300,030 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,488 | h | sorting.h |
#include "types.h"
//int INT_MAX = std::numeric_limits<int>::min();
//int INT_MIN = std::numeric_limits<int>::max();
void imprimir(int arr[], int n) {
for (int i = 0; i < n; i++) {
cout<<arr[i];
if (i < n - 1) {
cout<<",\t";
}
}
cout<<"\n";
}
void selection_sort(int arr[], int n) {
for (int... |
4cb0520e2f4f82a49947d1a7fb6b0cf4625f38c4 | d50df974cb944eef1558942d7e120598417ef8c8 | /인터페이스까지합친 과제 최종제출물..cpp | 081f4ec07536e9617c5f843d5c740de1c1d9b774 | [] | no_license | ggoniggoni/ggoniggoni2 | f33b418a3b9155a31323f8c5be11d9a54e9e8672 | 8f526cebfe80285154d5580e3420ccc4deb8b343 | refs/heads/master | 2020-09-27T21:30:49.172347 | 2019-12-08T22:04:22 | 2019-12-08T22:04:22 | 226,614,146 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 6,915 | cpp | 인터페이스까지합친 과제 최종제출물..cpp | #include <iostream>
#include <ctime>
#include <queue>
#include <string>
#include <conio.h>
#include <Windows.h>
#define UP 1
#define DOWN 2
#define ENTER 3
using namespace std;
int keyControl();
int menuDraw();
void gotoxy(int, int);
void titleDraw();
queue<int> q;
struct park
{
int state;
clo... |
e36a3ca14ab502b9d271a0e8df42edb06d619048 | 47e8a69d3d1b031eabc3ef44482ebb2b0ebf29aa | /progs/Plotter/TestXhardware/TestXhardware.ino | 5d2c6574da1141826a37e4a3273e98824b9d1261 | [] | no_license | mycode66/Arduino | d2cd963af8e8c92ab3a432f71a103e9599093c6d | b30ac367078562be8cdb565e0fc934adc6e37378 | refs/heads/master | 2020-09-10T17:18:08.805647 | 2020-01-07T00:24:19 | 2020-01-07T00:24:19 | 221,774,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,504 | ino | TestXhardware.ino | // https://github.com/svenhb/GRBL-Plotter
#include <Stepper.h>
// Stepper
#define SP_A1 8
#define SP_A2 9
#define SP_A3 10
#define SP_A4 11
// Stepper 28BYJ-48 spec.
#define STEPS 2038 // the number of steps in one revolution of your motor (28BYJ-48)
Stepper stepper(STEPS, SP_A1, SP_A2, SP_A3, SP_A4);
int st = 20... |
d2686f60d5dd3eb04386f86670d76d0b872bd3cb | 72f4b1e4a7ee2a38c4c09f62575e30fd735b447b | /src/foundation/Base32Decoder.cpp | 0ed579307fb756aaf5f84e1a3e2238e042d41533 | [] | no_license | ma-bo/lua-poco | 735ceb8c740810bc0e5ad0c6ae3a6ab9f4df1db3 | 7735233722f9e4f7e2054b05213f23320183da7c | refs/heads/master | 2023-01-24T01:44:02.786066 | 2023-01-12T19:07:02 | 2023-01-12T19:07:02 | 11,433,172 | 21 | 8 | null | 2016-08-12T16:02:59 | 2013-07-15T20:38:59 | C++ | UTF-8 | C++ | false | false | 2,710 | cpp | Base32Decoder.cpp | /// base32decoder
// An istream interface for inputting base32 encoded data.
// @module base32decoder
#include "Base32Decoder.h"
#include <Poco/Base32Encoder.h>
#include <Poco/Exception.h>
#include <cstring>
int luaopen_poco_base32decoder(lua_State* L)
{
LuaPoco::Base32DecoderUserdata::registerBase32Decoder(L);
... |
3375ef8426760ff4576950d0fa8f16b1edf2b9a7 | 2ee540793f0a390d3f418986aa7e124083760535 | /Online Judges/Hackerrank/Practice/Mathematics/Number Theory/mehtaAndHisLaziness.cpp | 3ce6ac0d87fd5c48157e49ee08816389342d9e62 | [] | no_license | dickynovanto1103/CP | 6323d27c3aed4ffa638939f26f257530993401b7 | f1e5606904f22bb556b1d4dda4e574b409abc17c | refs/heads/master | 2023-08-18T10:06:45.241453 | 2023-08-06T23:58:54 | 2023-08-06T23:58:54 | 97,298,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,641 | cpp | mehtaAndHisLaziness.cpp | #include <bits/stdc++.h>
using namespace std;
#define inf 1000000000
#define unvisited -1
#define visited 1
#define eps 1e-9
#define mp make_pair
#define pb push_back
#define pi acos(-1.0)
#define uint64 unsigned long long
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef vector<ii> vii;
... |
2b2f46476da89601405364ecf299825343b4c123 | 81b70030247f842d2020bb1616860bde9598a936 | /practica5/partida.h | 7a4ab8703ef4e37ebdbf21ab2f4f4b06fad02c2e | [] | no_license | SalgadoWare/Gestor-de-partidas-online-dinamico- | 91cb03933e47bd2d850e91aa973c68bbf47cb0af | 32cb25414b346a4333b90030a6c8d45908741578 | refs/heads/master | 2020-12-02T16:27:00.820371 | 2017-07-07T16:19:29 | 2017-07-07T16:19:29 | 96,554,510 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,797 | h | partida.h |
//Alejandro Salgado Martin y Jorge Santos
#ifndef partida_h
#define partida_h
#include "conecta4.h"
#include "fecha.h"
typedef struct {
std::string Jug1, Jug2;
}tIdenJugadores; /*Los identificadores de los jugadores*/
typedef enum {
enCurso,
terminada,
}tEstadoPartida;
typedef struct {
std::s... |
b4dbcc775ef8781b1ca360b1690171e6632d32ae | b92cc69032348afa1d6c830eb7746add8ef43849 | /MyFirstGame/SoundFX.cpp | 955c371aa89167e4918d19397ca495fbcd484542 | [] | no_license | vladcocis/Starfighters | 2082d18f955c24d788459f6c92d079c3d9be1e55 | 20716f7c4444b74ff2f0c0d9c546e68b58df0813 | refs/heads/master | 2023-08-04T23:56:17.763404 | 2021-10-05T10:22:33 | 2021-10-05T10:22:33 | 413,767,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,249 | cpp | SoundFX.cpp | #include "SoundFX.h"
SoundFX::SoundFX()
{
nextShipExplosion = 0;
nextAsteroidExplosion = 0;
ShipExplosions[0]=0;
AsteroidExplosions[0]=0;
Thruster = 0;
Shoot = 0;
EnemyShoot = 0;
BossExplosion = 0;
BossHit = 0;
BossShoot = 0;
Crunch = 0;
}
void SoundFX::LoadSounds()
{
nextShipExplosion = 0;
nextAsteroidE... |
228e483228e220a9d463165e938690bcc85ae0e3 | 9d31ba5aac1d7686d2ee3e017521a54356082bf3 | /epoch1/lab/job/job01/obj/obj.h | c8e9835ccc1f9c11a5334479bf04232e76d41d59 | [] | no_license | schwa423/Sketchy | 24bb0b2879af8200e778f6e0ebe8b6b560a676b9 | daa1dff85c1166529d2f9787545b25305702d7e0 | refs/heads/master | 2020-04-06T23:17:43.953723 | 2014-05-31T21:18:27 | 2014-05-31T21:18:27 | 3,026,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,794 | h | obj.h | //
// obj.h
// schwa::job01::obj
//
// Copyright (c) 2013 Schwaftwarez
// Licence: Apache v2.0
//
// Defines a trio of classes which work closely together:
// - Obj
// - ObjRef
// - ObjMaker
//
// More details about these classes can be found in obj_defs.h
//
// The purpose of this h... |
c3f02df62a966c9a6e633f0fa64fbb39eebcbc1d | 22fb1afd55fa92a98e87576aba4b66bec21655c1 | /Ps3sxMain.cpp | 41e18efd74e0f6f878a88f793f3de2c22b85f45d | [] | no_license | Zarh/ps3sx | 060940ce0593eb09bcc8e0d3b2ac86733ddc395f | 125ca47d6a29967adfb61eb60d226de5ea48ab83 | refs/heads/main | 2023-07-24T14:24:09.549625 | 2021-09-09T20:29:50 | 2021-09-09T20:29:50 | 404,862,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,746 | cpp | Ps3sxMain.cpp | #include "cell.h"
#include <vector>
#include "rom_list.h"
#include <math.h>
#include <sys/paths.h>
#include "ps3video.h"
#include "ps3audio.h"
#include "cellinput.h"
#include "ini.h"
#include <unistd.h>
#include <pthread.h>
#include <sysutil/sysutil_gamecontent.h>
SYS_PROCESS_PARAM(1001, 0x10000);
PS3Graphics* Graph... |
5b3d9db927d945460200c99247c60cde4f9d63a2 | b57a3d99fa522fdca2a7d34fc36557073a93871f | /Source/Oscillator.h | 586a71ba3062a3347dcf76bf987b3c6e34abeaf5 | [] | no_license | nseaSeb/Sysex77 | 7915f6da54ea2d24856334bf29f0250f830b5277 | a804cd5b73dbcd21e43d783b606cb3d09201bd0f | refs/heads/master | 2023-06-21T06:24:00.531588 | 2023-06-18T11:21:32 | 2023-06-18T11:21:32 | 170,392,221 | 14 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 24,080 | h | Oscillator.h | /*
==============================================================================
Oscillator.h
Created: 25 Nov 2018 8:29:30pm
Author: Sébastien Portrait
==============================================================================
*/
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
//=====... |
2fc6f8b7e8c4466f3277a07eda4e9276bf885dba | 1a2667191dc2bc037acacaa285fa76171667c500 | /Codeforces/A - Boboniu Likes to Color Balls/A - Boboniu Likes to Color Balls.cpp | 0275ca852abbecdbe49893431aaa17ebe5cff0dd | [] | no_license | hgihyks/DS_Algo | ccdc37d30e75a21799d36761ebc20790fe77a229 | 11ab04558ca40c1a15137e199bc85a4a8159f376 | refs/heads/master | 2023-02-16T01:10:10.298573 | 2021-01-15T14:42:20 | 2021-01-15T14:42:20 | 329,014,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | cpp | A - Boboniu Likes to Color Balls.cpp | #include <bits/stdc++.h>
#define fa(i, a, b) for (int i = a; i < b; ++i)
#define f(i, n) fa(i, 0, n)
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define printv(v) f(i, v.size()) cout << v[i] << ' '; cout << '\n';
#define printa(a) f(i, sizeof(a)/sizeof(a[0])) cout << a[... |
b3e3d619f8ff5e307547fa84897cc299fd0aa33c | 5ba16a58a1f174a3cf7eb4972eb043feb8152787 | /src/localDensity.cpp | 88880a31e2680b2d6034ca1a215ba0fcb90fb5b8 | [] | no_license | melody-xiaomi/densityClust | 90061ad2cf639afff5396bad811abcbc329c6e1a | 419726501d7957f07e429d5b411fcae5d3c15b82 | refs/heads/master | 2020-12-30T13:29:25.519702 | 2017-05-09T19:33:54 | 2017-05-09T19:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | cpp | localDensity.cpp | #include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
NumericVector gaussianLocalDensity(NumericVector distance, int nrow, double dc) {
int size = distance.size();
NumericVector half(size);
for (int i = 0; i < size; i++) {
double combOver = distance[i] / dc;
double negSq = pow(combOver, 2) *... |
2da5768e3ea197ccc8636beca746d1ef41fcca46 | d74daa1dfe1f4eac96ceb1d006c59ba19b55d37a | /CS325/mc4233_hw1/TestBed.h | a97b4de04608101ad25e712000701db9e819e6a6 | [] | no_license | muratcancicek/Assignment-Projects | 7aac0cced54f392e26b39f6bc46af813faddd628 | 41c7df2b60f20eb840d409f3fedb4ec6feeafdcc | refs/heads/master | 2021-06-06T17:27:11.616251 | 2017-09-06T12:17:40 | 2017-09-06T12:17:40 | 58,016,251 | 0 | 1 | null | null | null | null | ISO-8859-3 | C++ | false | false | 289 | h | TestBed.h | /* Coded by Muratcan Çiçek S004233 Computer Science */
#ifndef TESTBED_H
#define TESTBED_H
#include "SelectionAlgorithm.h"
class TestBed
{
public:
TestBed();
~TestBed();
SelectionAlgorithm* algorithm;
void execute();
void SetAlgorithm(int type, int k);
};
#endif
|
8b071093f69ac8764ea8a66e865aa1b18e55940f | e5e5e43423485340a25361420ed3bc8d2cfaa5d0 | /question_7/boysgirl.cpp | 2a74338529025ef89b461d276bc5a92d43177845 | [] | no_license | PPL-IIITA/ppl-assignment-pt97 | 39d216e8a10eaf709b384d78d0360a44624f5a22 | 7015713e751aad193e8c7354b162b7e1cd2b2000 | refs/heads/master | 2021-01-21T06:21:27.247313 | 2017-04-09T20:46:51 | 2017-04-09T20:46:51 | 83,219,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,191 | cpp | boysgirl.cpp | #include "boysgirl.h"
#include <iostream>
#include <string>
#include <bits/stdc++.h>
#include "jodi.h"
using namespace std;
void make2()
{
map <string,int> m;
fstream myfile;
Jodi jode[30];
int i,j;
string name1,name2,boy[10],commiboys[30];
myfile.open("couple.txt");
for(i=0;i<30;i++)
{
... |
4345d948286a7e62f87c9edbc3e8554ddb1541a6 | 1deda48055f6ff3c4afb3d20c9c27ab78b403e70 | /src/classes/player/SWItem.cpp | 17ad45b2d6c0b527ea8a94771ef2d4ca846dbf30 | [] | no_license | Trogious/swmud | c5d60eb78bcdcbe9473db502a139285671cebcf1 | 93e0b40a69511b44d0175dcda6612a8ef79f3912 | refs/heads/master | 2021-07-24T14:25:48.787119 | 2020-04-13T16:54:01 | 2020-04-13T16:54:01 | 132,245,599 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,532 | cpp | SWItem.cpp | /*
* SWItem.cpp
*
* Created on: 2010-08-26
* Author: Trog
*/
#include "SWItem.h"
#include <SWPlayerCharacter.h>
namespace player
{
const SWInt SWItem::valueMaxElements = 6;
SWItem::SWItem() :
inflect(vector<SWString> (SWPlayerCharacter::inflectMaxElements)), value(vector<SWInt> (valueMaxElements)),
s... |
a3671f35f6ac3b40d1abe0cd150d7615ae252358 | 2877494ba357f8dd4907dccc851a02568429580c | /ThermostatGui/Arduino/MessageProcessor.h | 850352e5f370e77bae5b568abdec53e25a86c342 | [] | no_license | jnelso27/Thermostat | a18e900a73be00ff6cfd1926432b95ec20a5e3ed | caea4d4cd63f157dd33f60e1d2609ef88ae3f3f6 | refs/heads/master | 2021-01-10T09:13:26.016867 | 2015-11-16T02:01:03 | 2015-11-16T02:01:03 | 44,570,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,415 | h | MessageProcessor.h | // ***************************************************************************
//
// MessageProcessor.h - Library used for processing incoming messages from
// the host-side controller of the Thermostat System.
//
// ***************************************************************************
#ifndef MessageProcessor_h... |
a34a7936efacb76eddf6c39b8e59129a1c706a23 | 5b84e30635015a7184e013444310bc1bf0d635b2 | /src/render/shader/shader.hpp | 6df63e692d8ef1983e7a43a5c72a985af4d8d178 | [] | no_license | hjwdzh/ShapeAlign | 0c91de05e1d3ecaecbd6907d24822dc574593d5e | b8e1bf05ae564295a9d139a29b1650881463f9dd | refs/heads/master | 2020-03-14T04:25:32.070936 | 2018-05-31T01:48:54 | 2018-05-31T01:48:54 | 131,441,608 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 210 | hpp | shader.hpp | #ifndef SHADER_H_
#define SHADER_H_
#include <nanogui_header.hpp>
class NanoShader
{
public:
NanoShader() {}
virtual void Draw() = 0;
~NanoShader() {
}
virtual void bind() = 0;
};
#endif
|
e594f48d610e548d9cce62850dec18257ff6a66c | 07f842cc0a65f14f23d3ff611b5ca2481de239d1 | /Good'ol Programs/Old School/coding/Yash/NDTC/string.cpp | 8a76a1a5d39b704a7a8812313161ae6e2655d537 | [] | no_license | AbhishekPrakash5/Cpp_Practice | f1aedc3f2f124af1d16d655e18e45e26a9167722 | b1bca35cbeb5e4ac87d2813ce398c5f4d29d1598 | refs/heads/main | 2023-05-26T06:57:20.214428 | 2021-06-13T12:05:22 | 2021-06-13T12:05:22 | 376,530,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | string.cpp | #include<iostream>
using namespace std;
int main()
{ int count=0;
char str[100];
cout<<"enter string ";
gets(str);
for(int i=0;str[i]!='\0';i++)
{
if(str[i]=='a')
count++;
}
cout<<count;
return 0;
}
|
7bf7ee8b62b6d3ea05a51c211ce06d8655abb2fc | a6af28b2551fa2dad84060ae6b99fbc3a0ef9a2a | /round#93div1/A/A.cpp | 0a56c9986602bec0fd3b09b8eabd0f8f11b1cce5 | [] | no_license | blueyeq/codeforces | 894f8e11ce5d44b37df62238178b68ef06d78206 | 9cdc04bbb3cbafbfd92a604b373d1d3e3b11b3bd | refs/heads/master | 2016-09-06T04:54:00.474306 | 2013-07-20T15:42:39 | 2013-07-20T15:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,674 | cpp | A.cpp | #include <stdio.h>
#include <cstring>
#include <cmath>
#include <string>
using namespace std;
const double eps = 1e-15;
int main()
{
freopen("in", "r", stdin);
double t1, t2, t0;
int x1, x2;
while(scanf("%lf%lf%d%d%lf", &t1, &t2, &x1, &x2, &t0) != EOF)
{
double dis(1e10);
if(fabs(... |
caed4708a40765fbee2d324d9e15bd4b1e88be93 | ddc00633d5c2a56deb69e539efe52c85cf81ea91 | /selection_sort.cpp | c434af885f12f9fbc0b0017d1ca2495ee38b3a02 | [] | no_license | B3ns44d/cpp_ex | 16c989b036a8f4e5a2c965007a9e44bba90d24fd | 27688389556c3f39bee14e4cede602d53ef1e310 | refs/heads/master | 2023-03-23T17:20:00.293718 | 2021-03-07T20:11:36 | 2021-03-07T20:11:36 | 344,165,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,581 | cpp | selection_sort.cpp | #include <iostream>
using namespace std;
class List {
private:
int * array;
int length;
public:
List() {
this -> array = NULL;
this -> length = 0;
}
void populate() {
do {
cout << "enter array size:" << endl;
cin >> this -> length;
} while (this -> length < 0);
... |
ca4903e724a06a1df89746de71c11ca878a19f15 | 88c0e520e2389e676fea559f944109e1ee7e157b | /include/Windows.System.Preview_87dfc8ab.h | f414bc5dfee6e03d72f74a45b9fb624f2bc5c2ce | [] | no_license | jchoi2022/NtFuzz-HeaderData | fb4ecbd5399f4fac6a4982a0fb516dd7f9368118 | 6adc3d339e6cac072cde6cfef07eccafbc6b204c | refs/heads/main | 2023-08-03T02:26:10.666986 | 2021-09-17T13:35:26 | 2021-09-17T13:35:26 | 407,547,359 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,616 | h | Windows.System.Preview_87dfc8ab.h |
#include "winrt/base.h"
#include "winrt/Windows.Foundation.h"
#include "winrt/Windows.Foundation.Collections.h"
#include "winrt/impl/Windows.Devices.Sensors.2.h"
#include "winrt/impl/Windows.System.Preview.2.h"
#include "winrt/Windows.System.h"
namespace winrt::impl {
template <typename D> Windows::Foundation::... |
8fc15478f130f912466ebe6ae9eed6e7b4645568 | c4d62df533b2b55f81914a0675eae8b0361cf5d1 | /CS359 LAB/1801CS08_Assignment7/server.cpp | f3e9ac5a1e8233b5f36232982c911569dba7902c | [] | no_license | ammaarahmad1999/Computer-Networks | 1ccbf3376de8b7e22fa9189f815f524b5c6b0de4 | be2e0ab8e70cdcc4cf98d8517c48f5b97bd26cf9 | refs/heads/main | 2023-06-20T14:15:00.347024 | 2021-07-25T13:51:39 | 2021-07-25T13:51:39 | 345,340,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,114 | cpp | server.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <openssl/md5.h>
#include <bits/stdc++.h>
#define SIZE 8192
using namespace std;
string divide;
string binary(int x)
{
string ans;
for (int i=0; i<8; i++)
... |
10d4be5cb8228948b1a765a5b7e30dddfc044458 | 7105d97bb783629ff2b38df4f303ff515743a6b5 | /include/slang/ast/symbols/PortSymbols.h | c5424efae6f4dfae76f2063536bd7670356f5c2a | [
"MIT"
] | permissive | MikePopoloski/slang | b7dcd5e47702ef2f19af11fd169b9a3f1230ed9c | cada0eb18795ba6a8484d0a52fec5d20b6410e62 | refs/heads/master | 2023-08-28T16:23:03.408083 | 2023-08-27T01:44:26 | 2023-08-27T01:44:26 | 80,874,333 | 455 | 115 | MIT | 2023-09-14T11:03:37 | 2017-02-03T22:20:21 | C++ | UTF-8 | C++ | false | false | 8,016 | h | PortSymbols.h | //------------------------------------------------------------------------------
//! @file PortSymbols.h
//! @brief Contains port-related symbol definitions
//
// SPDX-FileCopyrightText: Michael Popoloski
// SPDX-License-Identifier: MIT
//------------------------------------------------------------------------------
#p... |
73b69604d5b75537d8a524b71af4c9ba94a295a7 | b6d1df49c1ec621a02204b1100312ecbb3e76ad3 | /src/mains/grp94/dataviewer/dvDataConstraint.cpp | d1dc02fbb8cc6d8be8413be74d305c3dcd8ba808 | [] | no_license | flylong0204/projects | 5271acde325cf3947fac7433077353b52fa07bc4 | b1e5c918d4aeb34c36576dababc5509dbb89afd1 | refs/heads/master | 2017-12-06T06:35:20.926786 | 2017-01-24T23:53:13 | 2017-01-24T23:53:13 | 79,988,197 | 1 | 2 | null | 2017-01-25T06:11:23 | 2017-01-25T06:11:23 | null | UTF-8 | C++ | false | false | 1,824 | cpp | dvDataConstraint.cpp | /********************************************************************
*
*
* Name: dvDataConstraint.cpp
*
*
* Author: Luke Skelly
*
* Description:
* Bounding box for n dimensions. Used by dataviewer to determine
* color of data and when to update color info.
*
*
* -----------------------------------------... |
4f33144abd75797317ec96a71066e4a46c58eaeb | 02082c2b94c6f041d67ba392b7c95b2c7180bb0f | /tb/sim_intToFloat.cpp | 609b189e4563cb38ab558cf28e78d5c7e375bfdb | [] | no_license | xygq163/CNRV-FPU | 540987d8af2786bd4164f5ceaf7eea8fd74e0122 | d6daa7243e5e58317952f85a9217d8b63d8a363a | refs/heads/master | 2022-03-16T04:29:02.252291 | 2019-12-04T07:23:07 | 2019-12-04T07:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 117 | cpp | sim_intToFloat.cpp |
#include <verilated.h>
#include "Vtb_intToFloat.h"
#define TYPE Vtb_intToFloat
#include "../tb/sim_main.hpp"
|
3a2f894d417263215ab17f7a837a8763e35f7901 | 2be49a395ff47d6cc3cc5ce7c7ba305691ce6147 | /src/ofApp.cpp | 0a9c9fc8f2b7d6cc634977b6453310c6ac767d6c | [] | no_license | joelleaeschlimann/02-DandelionInterface | 1a8a2d76e6f312d654a2e957c2fd4a6583f0e9c5 | 09d68abf759e94f829a1a9b4a003f5cf7a2a76e3 | refs/heads/master | 2021-01-11T23:52:14.043585 | 2017-01-11T12:52:44 | 2017-01-11T12:52:44 | 78,638,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,506 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetVerticalSync(true);
ofSetFrameRate(60);
ofSetCircleResolution(100);
//gravity.set(0,0);
//force.set(ofRandom(-1,2), ofRandom(-1,2));
debug = false;
press = 0;
isI... |
a34eaff2260efe68423ab1c3e66fef9b552a122b | 5577ac50287d4b587801ce5a4684599feda10d35 | /Queue/linkedQueue.h | eef974cddfcc10223f7612d6826b3ea847043984 | [] | no_license | BoynChan/Data_Struct | 4dc3ac6a51f9cb624db19e5a609b53e3cf608b34 | 31a07e34950ff70f68a757bea036abf53ce0bae0 | refs/heads/master | 2021-09-14T16:29:16.820994 | 2018-05-16T04:37:03 | 2018-05-16T04:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,768 | h | linkedQueue.h |
#ifndef DATA_STRUCT_LINKEDQUEUE_H
#define DATA_STRUCT_LINKEDQUEUE_H
#include <cstdlib>
#include <iostream>
template<typename T>
struct chainNode {
T element;
chainNode<T> *next;
chainNode() {};
chainNode(const T &element) { this->element = element; }
chainNode(const T &element, chainNode<T> *n... |
10e9eed5354019c458d6230fa2dddaafc2ba87bf | b822d54e008a6a5c5653417b90ff032e52bfc7f1 | /Reservation.cpp | 4de7bc25bbb4a0be3299299def8c122f8e1c08cb | [] | no_license | WaldnerCeline/itc313-TP1 | 6120e4e6c27b34dc4a237c4bb26b29a18171b8c2 | 890b0fa1831c357ab7441d0d09dd7a6431889999 | refs/heads/master | 2020-08-27T19:08:22.241179 | 2019-11-29T11:01:08 | 2019-11-29T11:01:08 | 217,466,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,489 | cpp | Reservation.cpp | /**
* File : hotel.cpp
* Author : Celine Waldner (WaldnerCeline -> github)
* Date : Fall 2019
* Course: C-C++ Programming / Esirem 3A Informatique Electronique
* Summary : Definition of the class Reservation
*/
#include "Reservation.h"
#include "Date.h"
#include "hotel.h"
Reservation::Reservation(int id_r... |
03803533ee7bd7c2a2b772d31987b8378cb4adf6 | e1700081b3e9fa1c74e6dd903da767a3fdeca7f5 | /libs/gui/pref/preferencepagetms.cpp | faf4b8d803fb3aaf9aca111b85663207f4a680c8 | [
"MIT"
] | permissive | i-RIC/prepost-gui | 2fdd727625751e624245c3b9c88ca5aa496674c0 | 8de8a3ef8366adc7d489edcd500a691a44d6fdad | refs/heads/develop_v4 | 2023-08-31T09:10:21.010343 | 2023-08-31T06:54:26 | 2023-08-31T06:54:26 | 67,224,522 | 8 | 12 | MIT | 2023-08-29T23:04:45 | 2016-09-02T13:24:00 | C++ | UTF-8 | C++ | false | false | 4,865 | cpp | preferencepagetms.cpp | #include "preferencepagetms.h"
#include "ui_preferencepagetms.h"
#include "private/preferencepagetmsadddialog.h"
#include <guicore/tmsimage/tmsimagesettingmanager.h>
#include <misc/stringtool.h>
#include <QInputDialog>
#include <QSettings>
#include <QUrl>
PreferencePageTms::PreferencePageTms(QWidget *parent) :
Pref... |
d0b86d0bbfd7eab7d83cc702cdc0fd8aa405c4c6 | b90b7d92a2c62c9de173df9341fab6b785cd49a9 | /2E/main.cpp | 2c1d81f54f0caec824f074ba0bd6c60bc1ff3938 | [] | no_license | svevash/cats-2 | a575b084cec0f8ec93c801c398db9c3673345451 | 70d20c11a87744ea2650936977766b384eae8dcd | refs/heads/master | 2022-04-13T17:43:23.361443 | 2020-02-03T06:14:52 | 2020-02-03T06:14:52 | 217,633,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,073 | cpp | main.cpp | #include <cstdlib>
#include <iostream>
#include <utility>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <algorithm>
using namespace std;
using ObjectId = unsigned long long int;
struct GameObject
{
ObjectId id;
string name;
size_t x;
size_t y;
};
//#include "game_databas... |
38116eae0eef9001f2806d80de1c8867da76961e | 2d00e2b0cd272daaf68ed1417ee8bb71d2e11169 | /featherM0_SDtest_20190807/featherM0_SDtest_20190807.ino | f749fc3963ac17c6661a65c4873efc1f83b59fcc | [] | no_license | choizyeon/FeatherM0 | 3bca7f6b3becb1897ea88347634398a67096fe4f | ee3c739d3c7f34619aeb0b0948d44879b85ac531 | refs/heads/master | 2020-07-01T00:48:10.000809 | 2019-08-08T06:59:41 | 2019-08-08T06:59:41 | 200,999,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,457 | ino | featherM0_SDtest_20190807.ino | /*
* Adafruit Feather M0 Adalogger
* SD Card Read and Write Test
* https://www.adafruit.com/product/2796
*/
#include <SPI.h>
#include <SD.h>
#define RED 13
#define GREEN 8
File RED_LED;
void setup() {
pinMode(RED, OUTPUT);
pinMode(GREEN, OUTPUT);
digitalWrite(RED, LOW);
digitalWrite(GREEN, LOW);
Ser... |
5c7ef4f3514ba552cbbfdd5d761e3acb730ab5ee | d2213576d3ebf3dea5d69b3afe131d404afc4d9d | /day04/ex03/srcs/Cure.cpp | 0c3e3e9cdbfa6b025045d30e71d9750f569e9c33 | [] | no_license | LinearBasis/Cplesples | 6b4eacbba05f605c1c6d118828a4c0181a73aab3 | 31aab1ffa39774d5fff18626be096a3a6a84e379 | refs/heads/master | 2023-08-26T15:47:10.680221 | 2021-11-09T14:25:20 | 2021-11-09T14:25:20 | 389,996,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | cpp | Cure.cpp | #include "../hdrs/Cure.hpp"
Cure::Cure()
{
this->_type = "cure";
}
Cure::Cure(const Cure& copy)
{
this->_type = copy._type;
}
Cure::~Cure()
{
}
Cure& Cure::operator=(const Cure& copy)
{
if (this == ©)
return (*this);
this->_type = copy._type;
return (*this);
}
AMateria* Cure::clone() const
{
AMateria* ... |
505eed2accffedbc328e37bba05a3e06d9244351 | 6337040be6a369daef54e57f55d6bc76c854682d | /DSPrac/Tests/main.cpp | 644cf7149c6d48dcf157e7bcb6434343e3c0d05b | [] | no_license | Jtun53/PersonalProjects | 0506f354bab167e14a7f339ef2554c85bf68f8f4 | f37e7bd430962e03bd890f40b937b0ea06a326d7 | refs/heads/master | 2021-01-17T11:01:54.722343 | 2016-04-28T19:19:00 | 2016-04-28T19:19:00 | 30,035,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,360 | cpp | main.cpp | //
// main.cpp
// Tests
//
// Created by John Tungul on 2/26/16.
// Copyright © 2016 John Tungul. All rights reserved.
//
#include <iostream>
#include <vector>
#include "gtest/gtest.h"
#include "Node.cpp"
#include "LinkedList.cpp"
#include "Stack.cpp"
#include "ArrayList.cpp"
#include "SortingAlgos.cpp"
Node<int... |
e4d3be2247c0cd7c7fcf5ae25b3470f847d45f20 | 598ea82e2058b3462d174d2bed75342633fd0758 | /NeonMiner/Particle.cpp | 54bfb25e9001b68dbd0652482366525ea4b01d9b | [] | no_license | RyanCirincione/NeonMiner | 6c0c8d07eaebc37708c8bc0066d6ef52e53dcd98 | d0e361082e87a73720010e9d4c771a8cdcf08f1a | refs/heads/master | 2023-08-18T09:22:05.680175 | 2021-10-15T16:48:19 | 2021-10-15T16:48:19 | 288,564,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | Particle.cpp | #include "Particle.h"
Particle::Particle(LTexture* tx, int life, float pX, float pY, float vX, float vY) {
texture = tx;
posX = pX;
posY = pY;
velX = vX;
velY = vY;
lifetime = life;
}
void Particle::update() {
lifetime--;
posX += velX;
posY += velY;
}
void Particle::render(SDL_Renderer* gRenderer, SDL_Rect... |
43b97ce975aac604882bfd6f1b7c6b60d356db2d | f153c807c2ca002faa58ac9d256efb6f97db7fcb | /dlxnet/core/common_runtime/gpu/gpu_cudamalloc_allocator.h | 8c2ba995a765c2084b5493297f4ed3f1b3f1115d | [] | no_license | kl456123/dlxnet | e5148a4a416279accb953e9869ca0200df29cf33 | 7dcfdc703377d282ad322b93d86802b983374755 | refs/heads/master | 2021-02-26T20:12:18.329969 | 2020-08-11T16:23:37 | 2020-08-11T16:23:37 | 245,444,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | h | gpu_cudamalloc_allocator.h | #ifndef DLXNET_CORE_COMMON_RUNTIME_GPU_GPU_CUDAMALLOC_ALLOCATOR_H_
#define DLXNET_CORE_COMMON_RUNTIME_GPU_GPU_CUDAMALLOC_ALLOCATOR_H_
#include "dlxnet/core/framework/allocator.h"
#include "dlxnet/core/common_runtime/gpu/gpu_id.h"
#include "dlxnet/core/platform/macros.h"
namespace dlxnet{
// An allocator that wraps... |
3132f47c969782b6b309474c87333d41cadeb898 | 74ca59e18187aa4467fd8f66b1287bc26b8a4bb0 | /C-plus-plus/BurstingUnsignedVariable/main.cpp | 8ca67ee29675a788db2108eb0f91b7d1b005c10a | [] | no_license | raphaelbarbosaqwerty/TrainingMuscleMemory | 9318d0cf87ffad28ab64277e7a507b871a66328e | 0b69742ccf294e37b8e13e2b702594d95a807056 | refs/heads/master | 2023-06-25T06:39:46.673676 | 2023-06-20T17:07:09 | 2023-06-20T17:07:09 | 217,097,812 | 0 | 1 | null | 2023-01-05T12:18:43 | 2019-10-23T15:59:25 | PHP | UTF-8 | C++ | false | false | 301 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
cout << "How to Bursting Unsigned Variable\n";
unsigned short int usVar;
usVar = 65535;
cout << "Initial Value = " << usVar << "\n";
usVar = usVar + 1;
cout << "Sum 1 = " << usVar << "\n";
return 0;
}
|
67314d990e8d443c577148ba9c75f16ac2f4726f | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /OnlineDB/SiStripO2O/plugins/SealModules.cc | b375faef47cd954fa92dde0ee15bb241bd157a7c | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 2,407 | cc | SealModules.cc | #include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CondCore/PopCon/interface/PopConAnalyzer.h"
#include "OnlineDB/SiStripO2O/plugins/SiStripPopConConfigDbObjHandler.h"
#include "CondFormats/SiStripObjects/interface/SiStripFedCabling.h"
typedef popcon::... |
7dcb30289a4ca0dc276ac577ca9a78962d18047e | b365aa259f55e6bab54c34fd8fe3f2709bceb60c | /BC15092014b/Export/ios/BC15092014b/haxe/build/Release-iphoneos/src/scripts/ActorEvents_0.cpp | dc48b63844df230ac43c707a3f11548d26d875af | [] | no_license | theabbott/Until-All | 09bd5c76457befe08023e6c94d28366ab2fa89a7 | 45cf4f5faaf43fb6e79efc1bc7082047c6372231 | refs/heads/master | 2016-09-10T20:44:29.396174 | 2014-09-16T09:36:54 | 2014-09-16T09:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,971 | cpp | ActorEvents_0.cpp | #include <hxcpp.h>
#ifndef INCLUDED_com_stencyl_Engine
#include <com/stencyl/Engine.h>
#endif
#ifndef INCLUDED_com_stencyl_behavior_ActorScript
#include <com/stencyl/behavior/ActorScript.h>
#endif
#ifndef INCLUDED_com_stencyl_behavior_Script
#include <com/stencyl/behavior/Script.h>
#endif
#ifndef INCLUDED_com_stencyl_... |
5f7ab16fccb6ddb61a070d2a8885bcd3f5c8833a | 9c7beedb6c98cc844dfd653a068abee6482b4f9e | /include/res_mgr_shared.hpp | b68cc61e49150cb701d063f7348b7578bc3c3394 | [
"MIT"
] | permissive | limmh/resource_management | 30bdbfe81e58e7c4b3fe9285b4d44f2f9645ffc5 | 7374378b6fb520b733eae031022dc258b993e756 | refs/heads/master | 2021-01-17T20:07:54.841714 | 2017-05-02T11:34:40 | 2017-05-02T11:34:40 | 59,953,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,066 | hpp | res_mgr_shared.hpp | /*
The MIT License (MIT)
Copyright (c) 2016 - 2017 MH Lim
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... |
e2580e987dff7188f8e06787155729498aad1b6a | 9f7172a55d2e593ec6ea84f0a22bb4aa7c1dddf0 | /client/mysocket.cpp | 1d87ab561f9ca4a3b5405ea5d986fa19577d5273 | [] | no_license | hnnrr1024/Linpop | 1d9fd04e8abc4c6fdd9aaeb92f446111ef7ca58b | 2f5916781179b9febe4983abdd5ccc8815b81327 | refs/heads/master | 2022-11-15T13:42:39.338742 | 2020-07-15T07:44:59 | 2020-07-15T07:44:59 | 276,524,819 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,907 | cpp | mysocket.cpp | #include "mysocket.h"
#include <vector>
#include <mutex>
mysocket::mysocket()
{
sockVersion = MAKEWORD(2, 2);
err = WSAStartup(sockVersion, &initData);
hostAddr.sin_family = AF_INET;
hostAddr.sin_port = htons(SERVERPORT);
//创建一个套接字,参数列表(地址族TCP、UDP;套接字协议类型TCP;套接字使用的特定协议0自动指定)
SOCKET thissocket = socke... |
0916cbc2f1c25783fe81d83e40821102170c9156 | e1bf453efbcc21f0ebc5100dac88f5b074546b67 | /User.h | 4b183e2404aa7ca985848c16d4bb4742474d9e45 | [] | no_license | Crazyfighting/PTT | 1bed82c75fd3999911753a8482b107e123efd346 | b8be9b2916f3301bf0492590dccb6a0484e359e1 | refs/heads/main | 2023-05-11T07:02:28.657204 | 2021-05-30T09:27:10 | 2021-05-30T09:27:10 | 369,353,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | h | User.h | #pragma once
#include<vector>
#include <string>
#include"Mail.h"
#include<fstream>
enum nowuser {
USER,
ADMINSTRATOR,
};
class User {
public:
int Permission_level;
int mails;
int currentmail;
std::vector<int> postsID;
std::string nickname;
std::string accountname;
std::string password;... |
126d5b452c73937352747aae33be762dbfcd37f3 | 65ed4bab3df0ed704e5bb8607a553504302c638f | /Application/SERVER/main.cpp | 2209112896f04bffae8edddbc73e138a3c583694 | [] | no_license | mujicadiazr/BDH | 22f5c6f79abea7fae13dd1170072dc8493f11979 | 0bf6c09eb75d0865d9f55e045bd023d6c59b7bbf | refs/heads/master | 2021-01-10T06:50:35.006171 | 2015-11-17T21:38:17 | 2015-11-17T21:38:17 | 46,377,052 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 915 | cpp | main.cpp | #include <QtCore>
//#include "Infrastructure/sqlitedatabase.h"
//#include "Test/sqlitedatabasetest.h"
#include "Infrastructure/bdhservercontroller.h"
int main(int argc, char *argv[])
{
QCoreApplication app(argc,argv);
BDHServerController c;
c.start();
// SQLiteDatabase db;
// SQLiteDatabaseTest ... |
c1db20ffdd3249bc9c1ac2bd78406bf00e3fcd6f | 6464a913b63d1b1f7904ffe034195e85939491d6 | /winaudio/VirtulKeyCodeToCharConverter.h | 41d3d99e926d84c09c25e1e0846d90b1c918c02d | [] | no_license | AdaDoom3/windows_keylogger | 6acbfbb7d113f6ee0718e5089f0e0fcd15559854 | 727202791dd02d67e6f94cdc5106b1f767c547c8 | refs/heads/master | 2021-01-17T06:29:10.820929 | 2013-05-28T07:03:43 | 2013-05-28T07:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | h | VirtulKeyCodeToCharConverter.h | #pragma once
#include "kbdext.h"
class VirtulKeyCodeToCharConverter
{
public:
VirtulKeyCodeToCharConverter(void);
~VirtulKeyCodeToCharConverter(void);
int LoadKeyboardLayout();
int UnloadKeyboardLayout();
int ConvertToWChar(int virtualKey, PTCHAR out, PTCHAR buffer);
private:
int getKeyboardLayoutF... |
51511aa83a99924029fafbf0c92e823bb9067c14 | 5103d0788c4e40f5ab9162da66357653c49daa6f | /Knapsack problem solving with GA/Individual.cpp | 7d01dc52c7c0da40e14e1f0df1295e840baaddad | [] | no_license | WeronikaBabicz/Knapsack-problem-solving-with-genetic-algorithm | dfa78b3566d96532e85a8d5526cf69f3088a85b1 | 3dbca7d7566a4593b5c4d429d5c6c820827f5a87 | refs/heads/master | 2020-05-21T01:19:56.927769 | 2019-05-09T21:16:39 | 2019-05-09T21:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,303 | cpp | Individual.cpp | #include "Individual.h"
Individual::Individual()
{
random_device rd;
mt19937 generator(rd());
gen = generator;
knapsackProblem = nullptr;
}
Individual::~Individual()
{
}
double Individual::getFitness()
{
return knapsackProblem->getFitness(genotype);
}
double Individual::getSize()
{
return knapsackProblem->... |
eb7e94e4f12665a548a1c60d3b04e202773a514b | 23ab9caf673bdb2b209d489ce61fdb19aa7ea648 | /codechef/Sum _of_palindromic_no.cpp | 9149c784bcdd6f59313044e14baeaf29e7220026 | [] | no_license | kamta0425/Competitive | 87f63c72fc9881c1562e3f0c592ca8b4b3f50add | 4387e2f5e6c4895fffcf13fff6258bd8cc7f849f | refs/heads/master | 2021-01-20T11:57:48.926832 | 2017-02-21T06:30:49 | 2017-02-21T06:30:49 | 82,641,332 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | cpp | Sum _of_palindromic_no.cpp | #include<stdio.h>
#include<algorithm>
inline int palin(int x)
{int i,j,a[100003],k;
for(i=0;x!=0;x/=10)
{ a[i]=x%10;
i++;
}
for(j=0;j<i/2;j++)
{
if(a[j]==a[i-j-1]) k=1;
else {k=0;break;}
}
return k;
}
int main()
{ int t;
scanf("%d",&t);
while(t--)
{ int i,s=0,l,r;
scanf("%d %d",&l,&r);
for(i=l;i<... |
bab0620ef49c765cc4b603a7bdf0e98cd978057b | 1d3b0b0d5337adb8335b1a970b0c34924b8baf96 | /AtCoder/abc/1~30/abc002/B.cpp | 7524eed92c4a2ed6f3948dce072fb497f43f2e56 | [] | no_license | pyst1g/Programming-Cplus | 6a2bdbbc63935fe7b4ebd00f6c9d13565cb05bcf | 7d2c41075382e606e4c572c3ebd239755f36e72a | refs/heads/master | 2021-05-14T16:14:49.720215 | 2020-01-26T09:53:16 | 2020-01-26T09:53:16 | 116,015,340 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | B.cpp | // finish date: 2018/01/03
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
#define FOR(i, a, b) for(int i=a;i<b;i++)
#define rep(i, n) FOR(i,0,n)
int main() {
string W;
string ans="";
cin >> W;
rep(i,W.length()){
if(W[i]!='a'&&W[i]!='i'&&W[i]!='u'&&W[i]!='e'&&W[i... |
87f78d4b27a3c557a58e086a69d2a7952f9db22c | 9558c612f2d1047d8120b275e821692937b7d557 | /2_1_Blinky_LED/main.cpp | 03b8c12861848a298b600ed1dd1afd5a53f0337e | [] | no_license | Hexzel/mbed02 | 02f8e6306345ec434be5aeec9fdfc68539cf7945 | b84c916c432f303ebbb9cb9466a9a3da4754cfee | refs/heads/master | 2023-03-21T14:52:17.094645 | 2021-03-03T10:15:36 | 2021-03-03T10:15:36 | 343,403,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | cpp | main.cpp | #include "mbed.h"
DigitalOut led1(LED1);
int main()
{
if (led1.is_connected()) {
printf("myled is initialized and connected!\n\r");
}
while (1) {
led1 = 1;
printf("myled = %d \n\r", (uint8_t)led1);
ThisThread::sleep_for(500ms);
led1 = 0;
printf("myled = %d \n\r", led1.read());
ThisThread::sleep_for... |
7dcecf0718b0c884ff9ecfc9662301ca6e6625cf | cb91121cceb43f6b7fd39404a9122555519b9af9 | /rebooter/serial_cmd_sender.h | e2163d10023f2645e465e80b4af8f8b92f6b66f4 | [] | no_license | bknery/learn_cpp | 3a9adacd96bb192cab4955d6a5fcdbe9f4168c1e | 02047e9eb3caa9c0328d02516606940a17edf9bc | refs/heads/master | 2021-01-17T15:56:39.147710 | 2018-02-09T15:55:25 | 2018-02-09T15:55:25 | 57,155,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | h | serial_cmd_sender.h | // Serial Command Sender header
// file: serial_cmd_sender.h
// Author: Bruno Knopki Nery
#ifndef SERIAL_CMD_SENDER_H
#define SERIAL_CMD_SENDER_H
#include <string>
#include <iostream>
#include <fstream>
class SerialCmdSender {
public:
SerialCmdSender(std::string serial_device);
~SerialCmdSender();
int Send(std::st... |
2839748bf06a6f2e30b092a270931ac5ac99282f | 7a24da1408ef55097098a415acdbe53043fc1f63 | /src/libs/c/src/wait.cpp | 04ae2de7732a2360fb49268d310467341ea4eba1 | [
"MIT"
] | permissive | jbw3/OS | 4caeaaf2d097e195d614e2af7abf5bed3ab37c16 | 52026277e20f3f8d504b8094084ba883f1f462df | refs/heads/master | 2021-03-22T02:08:51.126798 | 2018-10-07T03:20:33 | 2018-10-07T03:20:33 | 48,518,341 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | wait.cpp | #include "sys/wait.h"
#include "systemcall.h"
extern "C"
{
pid_t wait(int* stat_loc)
{
return waitpid(-1, stat_loc, 0);
}
pid_t waitpid(pid_t pid, int* stat_loc, int options)
{
return systemCall(SYSTEM_CALL_WAITPID, pid, stat_loc, options);
}
} // extern "C"
|
d3aa568f82ef021a4887a439cd5b2462bcc7378e | 77780f9ccc465ae847c92c3a35c8933b0c63fa4e | /HDOJ/2566.cpp | ff46e14e0b1d7d7cd2ac91e612cfa812b4fd5033 | [] | no_license | changmu/StructureAndAlgorithm | 0e41cf43efba6136849193a0d45dfa9eb7c9c832 | d421179dece969bc1cd4e478e514f2de968c591a | refs/heads/master | 2021-07-18T04:04:46.512455 | 2020-05-17T11:50:26 | 2020-05-17T11:50:26 | 30,492,355 | 1 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 810 | cpp | 2566.cpp | ////////////////////System Comment////////////////////
////Welcome to Hangzhou Dianzi University Online Judge
////http://acm.hdu.edu.cn
//////////////////////////////////////////////////////
////Username: changmu
////Nickname: ³€ΔΎ
////Run ID:
////Submit time: 2014-08-08 21:48:12
////Compiler: Visual C++
/////////////... |
97aeec0dec52f91a8c9b620efdedf8f1e8401e60 | c2329dec0f02e06c5be63f70aff0522b3d293cb6 | /lib/src/uvtimer.cc | c085c809942e6572cc3813a081c49b6756960723 | [] | no_license | MonadicLabs/mew | f7bd430872c0a1514eb094bf21f0143fdfc00b6d | b414a0fa5ea84e14430c9cb38d93a63dce901035 | refs/heads/master | 2020-03-27T23:43:11.525514 | 2018-11-08T14:04:43 | 2018-11-08T14:04:43 | 147,340,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cc | uvtimer.cc |
#include "uvtimer.h"
#include "jobscheduler.h"
#include "job.h"
#include "mew.h"
#include <iostream>
using namespace std;
void mew::UVTimer::periodic()
{
#ifdef MEW_USE_PROFILING
rmt_BeginCPUSampleDynamic( "TIMER_JOB_CREATION", 0);
#endif
mew::Job * popo = new Job( []( mew::Job* j ) {
UVTime... |
287743b593f2b2d22d19f25a6e9d915d8505022e | 7c7f1a6a98e1918d21a9e58a0156cc3c090ac187 | /src/lib/liquid/Filters/FilterBase.hpp | e1c4f391be0c932d209790fd7a704ef3bd02d6ae | [
"Zlib"
] | permissive | isabella232/openliquid | 4482ee2ec022f4708a6f79e18315f3d86767ce10 | 3a8e68460c06ef1b468986b10818ce1c13634ee4 | refs/heads/master | 2021-09-15T21:11:28.746774 | 2018-06-10T22:26:16 | 2018-06-10T22:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 127 | hpp | FilterBase.hpp | #include <vector>
#include "../Fragment.hpp"
#ifndef __LIQUID_FILTERS_FILTERBASE
#define __LIQUID_FILTERS_FILTERBASE
#endif
|
7c7d1ea4c63ad491f7ac509b64dd706498ac1c17 | ea84e8ee49db974f5805afe1cd71ac5a6b74a581 | /Shortest Distance from All Buildings.cpp | 48ccc31ee0cc107de96dc0f30c5cfd22c9ef16d0 | [] | no_license | lifengmiao/Leetcode | 49d666dafdb1d4427fdb717d6302c406a00606be | 0a56ed25487f5e0519a2097e30fc9eea7f198134 | refs/heads/master | 2021-05-02T15:18:19.050118 | 2018-09-11T04:37:44 | 2018-09-11T04:37:44 | 47,660,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,034 | cpp | Shortest Distance from All Buildings.cpp | /*
BFS
越在queue前面的点,离起始点越近。所以要用visit记录前面已经访问过的点,因为前面已经访问过该点并赋值,后面如果再来访问,
其付的值一定大于或等于之前付的值,所以没有必要再访问一次
我们对于每一个建筑(‘1’)的位置都进行一次全图的BFS遍历,每次都建立一个dist的距离场,由于我们BFS遍历需要标记应经访问过的位置,
而我们并不想建立一个visit的二维矩阵,那么怎么办呢,这里用一个小trick,我们第一遍历的时候,都是找0的位置,遍历完后,我们
将其赋为-1,这样下一轮遍历我们就找-1的位置,然后将其都赋为-2,以此类推直至遍历完所有的建筑物,然后在遍历的过程中更新dist和sum的值,
注意我们的dist... |
9b4c8b7d68a6ff58a50ac0cfcfb90e643b622ead | 317748633a5a1f0755a544e68120ec9d7322f09b | /OJ/2018寒假训练/永远不会被删的文件/总/寒假/2.1/7-7.cpp | 89496c8338747d7a4e98b796ac4167afee847db3 | [] | no_license | ordinarv/ACM | b08ab46ef46b34248a2cb596d52dba63b8475c67 | 9027d0f580aa02f3ca18f2fb3b65e98743bafd69 | refs/heads/master | 2020-03-28T05:14:31.524194 | 2019-08-26T09:34:04 | 2019-08-26T09:34:04 | 147,764,655 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | 7-7.cpp | #include<stdio.h>
struct unt
{
char nm[10];
bool sex;
bool vis=0;
} st[55];
int main(void)
{
int n;
scanf("%d",&n);
for(int i=0; i<n; i++)
{
scanf("%d%s",&st[i].sex,st[i].nm);
}
int m=n/2,cnt=0;
while(m--)
{
for(int i=n-1; i>=m; i--)
{
if(st[cnt].sex!=st[i].sex&&st[i].vis==0)
{
printf("%s %... |
5ab25c036c927d44ee4d21d06992138bd0381240 | b42546edbd5497c651ff41c2d074b8f433fc6595 | /Source/Enemy.cpp | fbbaec29ea74f4e0a122744249662abf9cac4ea6 | [] | no_license | TehCoesy/8Bit-Adventure | 8507ca651fc04362de6b3b39f00b9bc708175590 | d4879adee32645b29396b3963dbeb1b6c0a70d9c | refs/heads/master | 2022-12-12T14:50:23.519010 | 2020-09-16T14:25:44 | 2020-09-16T14:25:44 | 285,463,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,033 | cpp | Enemy.cpp | // Precompiled Headers
#include "stdafx.h"
#include "Enemy.h"
Enemy::Enemy() {
}
Enemy::Enemy(int iID, std::string strName, std::string strEnemyType, b2Body* physicsBody, b2Vec2 fSizeP, int health, int scores, int damage,Player* player) {
// Setup object's identity
m_iID = iID;
m_strName = strName;
m_ObjectType... |
ecb76f7c400b38741232f43da3edfd8d210373a2 | 02065ccfa9d5ee243336a312b1a86047a3a89c9f | /SFML-Game/Command.cpp | 3f92491903db71afdbeaab4f164d77bd7f20a83c | [] | no_license | Therizno/SFML-Game | 7f243dc2268cd531141e6a7ffeb98c6ad9a12183 | c447f6c7ebcad11c60e7cabaeab6e94eb1c23a22 | refs/heads/master | 2022-06-06T00:09:51.609072 | 2020-05-03T10:37:31 | 2020-05-03T10:37:31 | 243,167,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | Command.cpp | //
// Command.cpp
// SFML-Game
//
// Created by Chief Nelson on 3/25/20.
// Copyright © 2020 Chief Nelson. All rights reserved.
//
#include "Command.hpp"
Command::Command() : action(), category(Category::None) { }
|
a887f147e0dcdb7a288f94aee976412836592eec | 35f393fe87cdec18018c49f6b2bfae354a40de85 | /Class/Biderectional Iterator/bidirectionalIterator.cpp | ed13619b0adc7f61da9d03746cadaddbc80e95c9 | [] | no_license | RayanXY/EDB_I | 03cca7ec7c07e813d4e1f383b80fca82bf92bdc2 | 68119f321148c6cb527815c3d368a0e777021d67 | refs/heads/master | 2021-01-25T13:46:49.055173 | 2018-03-02T17:22:08 | 2018-03-02T17:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,079 | cpp | bidirectionalIterator.cpp | #include <iostream>
#include <iterator>
#include <cassert>
template <typename T>
class MybidirectionalIterator{
private:
T *m_ptr;
public:
using self_type = MybidirectionalIterator;
using value_type = T;
using pointer = T *;
using reference = T &;
using difference_type = std::ptrdiff_t; //!< Difference... |
31d5edbf288df2394315b589370c7352f60d55a2 | dd4a1c2ce11ee92b77198b602f4300b1c6e7db64 | /zenilib/jni/application/Winter War Files/IceTile.cpp | 6893acbd7866061206f607194ea8299f2e5f8c1f | [] | no_license | gdewald/Winter-Wars-PC- | f04e39f9a8bae4b93039d4beec1a021c3b706311 | d4699ecadc15bac6ae652fbe127d4d05dfd7b001 | refs/heads/master | 2020-05-09T16:04:00.482504 | 2015-10-27T23:52:01 | 2015-10-27T23:52:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 82 | cpp | IceTile.cpp | #include <zenilib.h>
#include "Tile.h"
class IceTile : public Tile
{
}; |
4d2c5085eb2ce868857206b6c4bbcdbcc5cd17a8 | b33a9177edaaf6bf185ef20bf87d36eada719d4f | /qtmultimedia/src/imports/audioengine/qdeclarative_sound_p.cpp | 497b8349aea25ff803eaf748a0ed802b753651c5 | [
"Qt-LGPL-exception-1.1",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"LGPL-3.0-only",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"GFDL-1.3-only",
"LicenseRef-scancode-digia-qt-preview",
"LicenseRef-scancode-warranty-discl... | permissive | wgnet/wds_qt | ab8c093b8c6eead9adf4057d843e00f04915d987 | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | refs/heads/master | 2021-04-02T11:07:10.181067 | 2020-06-02T10:29:03 | 2020-06-02T10:34:19 | 248,267,925 | 1 | 0 | Apache-2.0 | 2020-04-30T12:16:53 | 2020-03-18T15:20:38 | null | UTF-8 | C++ | false | false | 17,062 | cpp | qdeclarative_sound_p.cpp | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Q... |
850051573d05ada9d08c9730dae09ff72ce1fc14 | 8ec0d99bf8a9029f6708e4a7f3a7f4e55303a939 | /enclase/4-febrero/Cola/include/cola.h | d6dbe3c5079aa8db02131c9cb1fc2510b0249f14 | [] | no_license | vicmars5/EDA | cd4451f9e52f3e9dd4c28454d8485810f5b89c71 | 6dafaf9589f1c0202b6c64944907d94c97dd48f6 | refs/heads/master | 2021-01-15T15:42:41.145126 | 2016-09-17T18:32:28 | 2016-09-17T18:32:28 | 50,316,921 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,994 | h | cola.h | #ifndef COLA_H
#define COLA_H
#include <string>
#include <exception>
class QueueException : public std::exception{
private:
std::string msg;
public:
explicit QueueException(const char* message) : msg(message){}
explicit QueueException(const std::string& message) :msg(message) {}
virtual ~QueueExceptio... |
edc109f421cd48e35c5fc5eef42c4ebabfda386e | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DataFormats/METReco/src/PFClusterMET.cc | fe755ab17292b45163cd7f1f7bb7e4939794b077 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 394 | cc | PFClusterMET.cc | // File: PFClusterMET.cc
// Description: see PFClusterMET.h
// Author: Salvatore Rappoccio
// Creation Date: Dec. 2010
#include "DataFormats/METReco/interface/PFClusterMET.h"
using namespace std;
using namespace reco;
//---------------------------------------------------------------------------
// Default Construct... |
4bd178c4a8770ca8e675503757cc17f81e6ee3f8 | 19deda6d486ef5b7796434a98a0d42555ee7fa39 | /MQDF_test.cpp | a77caa958181715653a4ce105b64576c834117ad | [] | no_license | fireae/CLQDF | aa42f504b7ccf1f77c002e87ad1cdd39da893bd7 | 72964a1bf415cb7cd2aff54a1ecbc46c095dcc76 | refs/heads/master | 2020-03-19T01:29:14.347442 | 2018-03-12T06:10:14 | 2018-03-12T06:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,918 | cpp | MQDF_test.cpp | #include "MQDF_test.h"
#include <math.h>
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MQDFTEST::MQDFTEST(string configr)
{
FILE* fp;
char fname... |
6bef4e9171dd7856264f0e02d75bcb4a600f8144 | ca157b2182ba62f0ff5e985ec4861743b72c8b6c | /sunhacks_helmet_code1.ino | 44e688d1772dd01365aad1d6e96c7c9fd2249f86 | [] | no_license | modestjuarez/Sunhacks_2019_Project1_Modest-Sam | b6652f6d53de64599f6a28ebf96f42e6bd896caf | 5c5c28fd6faf3d06b7f85b742ed41c75be0d3fa3 | refs/heads/master | 2020-07-30T08:29:15.981354 | 2019-09-22T14:49:24 | 2019-09-22T14:49:24 | 210,155,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,396 | ino | sunhacks_helmet_code1.ino | // Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
// REQUIRES the following Arduino libraries:
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor
#include "DHT.h... |
91285daf58e03b4bc6e67da1695869162e47d6c8 | 26608b730b55327a8c543bdd207a39f1f7def751 | /include/Engine/array.hpp | a54c4291a03fde1ca68ab2c5a7813ba159043819 | [] | no_license | jramirezcr/eMix3d | bdcc40d095b6f7fcec92671c3d404d61957fcab5 | 79571c0a1675482af7817aaa1951cbc29f3f1b9d | refs/heads/master | 2023-07-16T16:30:03.239008 | 2021-08-24T03:24:19 | 2021-08-24T03:24:19 | 399,313,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,888 | hpp | array.hpp | /*
Writen by Jorge Ramirez Cruz
jramirezcr@iingen.unam.mx
jramirezcr@gmail.com
Instituto de Ingenieria, UNAM
*/
#ifndef __ARRAY_H
#define __ARRAY_H
#include<iostream>
#include<cstdlib>
//TODO: resizing method
//TODO:
template<int N_rank>
struct selector{
enum{ value = N_rank};
};
template <t... |
0d900c64335f4fb2c44d46fd1356157c1f7b26e8 | b326a0e61caebdff46b2e70781e35737142b0d0f | /include/NoduleSegmenationSupport/myImage.cpp | 4e25749ae442bce4e15923ab9536bfa7f0f550c5 | [] | no_license | toshirokubota/VentricleSegmentation | ef28dc8c4de9aecc8666c22ef9d7e0d2180b3f5f | b6aa9e7549975523b52c087e0f3dc5a6da5ab04e | refs/heads/master | 2021-01-20T07:54:28.849123 | 2017-07-09T23:23:10 | 2017-07-09T23:23:10 | 90,064,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,282 | cpp | myImage.cpp | #if !defined _myImage_cpp_
#define _myImage_cpp_
//#include "Stdafx.h"
//#include "Image.h"
//#include "mytype.h"
//#include <stdio.h>
template <class Item>
void myImage<Item>:: ResizeImage(int bands, int rows, int cols) {
if(pItem)
_resetItemPointers();
_setItemPointers(bands, rows, cols);
B... |
852ed218ffe7e521d702fb4aef839225f1f5689e | 508b90a206b66e51a80aa09eb81340e46322ea81 | /attack/headers/sender/inputs/IInput.hh | 2f33ea455d2d96f15e102d1731186f8f73f7021f | [] | no_license | roggproject/ROGG | 7fe793de10527b8a945d44d912655b78d92d0f19 | 6532d9d1e20ca8024e300b636eabc54d3bf6a45e | refs/heads/master | 2016-09-06T10:36:50.258170 | 2015-09-09T17:25:23 | 2015-09-09T17:25:23 | 41,448,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 838 | hh | IInput.hh | #pragma once
/*
It's an interface for all inputs available in the client.
All inputs must inherit of this interface.
*/
#include <string>
#include <vector>
class IInput
{
public:
virtual ~IInput() {}
//Check the syntax of the input
virtual bool checkSyntax(std::vector<std::string> &) = 0;... |
41d5f2c2ade7c921747008011f677136b54f2d13 | ce6df5683d9d534b72289e0bf0c4e00c7c0fb886 | /boost/units_blas/result_of/value_at.hpp | ee76a5cab390eaf82d653e361388ff46631bcf93 | [] | no_license | tzlaine/Units-BLAS | 0c7e7238d9dbd87a38fcc82a41baa60ad0725c5e | 9455505aed51d924d1f08b584c1477ef4f75c071 | refs/heads/master | 2020-04-08T19:07:25.957701 | 2013-06-01T17:14:22 | 2013-06-01T17:14:22 | 1,804,983 | 4 | 1 | null | 2015-06-16T13:18:12 | 2011-05-26T15:16:24 | C++ | UTF-8 | C++ | false | false | 1,608 | hpp | value_at.hpp | // boost.units_blas
//
// Copyright (C) 2008 T. Zachary Laine
//
// 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_UNITS_BLAS_RESULT_OF_VALUE_AT_HPP
#define BOOST_UNITS_BLAS_RESULT_OF_VALUE_AT_HPP
#... |
4305559319b5ec08b91efc2f570c97b6443cc91c | e10870724b002c1b51994dd535b0df552941bd03 | /switch_light/switch_light.ino | afb58e2e5fc5a6f6e5a52b1e08e232520e45e211 | [] | no_license | andrewcgaitskell/sensor_code | eecc694dffb939ab391e8a19bc84c49647baf0f8 | be4373f55372b140c641e00381e8011ff920ec8d | refs/heads/main | 2023-04-16T05:32:55.597136 | 2021-04-16T16:29:15 | 2021-04-16T16:29:15 | 352,959,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | ino | switch_light.ino | /******************************************
Website: www.elegoo.com
Time:2017.12.12
******************************************/
int Led = 13; //define LED port
int buttonpin = 3; //define switch port
int val;//define digital variable val
int led_state = 0;
void setup()
{
Serial.begin(9600);
... |
ab7c0330e82777795381b7256a91a1988bc7e410 | 230f1e74f60deb8b2aeb180795f75822d4ad0738 | /gameengine/engine/GameEngine/Lab5/src/Game.cpp | c2b289c7737f712eb162a10209d4a3f355bf899a | [] | no_license | crabking/OpenGL-Component-Based-Engine | 01c3af5093aebbd41b5edfe791b6138f656066ba | 7c137e5bb14696ebf16d342047c3b2cf7f85ee7a | refs/heads/master | 2020-04-19T13:55:36.376802 | 2019-01-29T22:59:52 | 2019-01-29T22:59:52 | 168,228,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,610 | cpp | Game.cpp | #include "Game.h"
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include "FirstPersonCameraComponent.h"
#include "ThirdPersonCameraComponent.h"
using namespace std;
Game::Game()
{
DebugLog& log = log.getInstance(); //!< gets Debug instance.
factory = new Factory()... |
9d0d8b517028f9fd7c386b9ea35423c709c7f60a | 8f3469567609bbae36c65e09c54bf31bf332549d | /fixnum_lockable.h | f34f0517c22c434dbe3cc9776a7e1f2c744bc629 | [] | no_license | NocturnalShadow/DekkerLock | 2ff902eaaab8fac5b8e4e00aa7c8f77c3914aa75 | 4f1b9ba552a208628ef9dcd8ad315b59bdc236f4 | refs/heads/master | 2021-05-07T18:46:51.241565 | 2017-10-30T09:44:55 | 2017-10-30T09:44:55 | 108,831,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | h | fixnum_lockable.h | #pragma once
#include <thread>
template <class T>
concept bool BasicLockable =
requires(T var) {
var.lock();
var.unlock();
};
template <class T>
concept bool Lockable =
requires(T var) {
requires BasicLockable<T>;
{ var.try_lock() } -> bool;
};
template <class T>
concept bool FixnumLockable =
requires(T var) {
... |
257a0bf44db1d60c5d593c8ba12d8f31f40db5d7 | 3c65a5f203f2d4b02ff9c1bdd999c9e3b18007e7 | /interp/additive_expr.cpp | 30692c263a5713d257297a0225be907e3624d09e | [
"BSL-1.0"
] | permissive | cristivlas/zerobugs | 07c81ceec27fd1191716e52b29825087baad39e4 | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | refs/heads/master | 2020-03-19T17:20:35.491229 | 2018-06-09T20:17:55 | 2018-06-09T20:17:55 | 136,754,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,778 | cpp | additive_expr.cpp | //
// $Id$
//
// -------------------------------------------------------------------------
// This file is part of ZeroBugs, Copyright (c) 2010 Cristian L. Vlasceanu
//
// 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.... |
9bf6e3951cad5947330f827611f615892e7041a1 | ef8df20641b85ed70d07602e13db5720499e2795 | /棚内土壤版_GS100/STM32_LORA_GS100_V3.0.0_beta/private_sensor.cpp | 7e46136998f2be8167723fa8816517c07b3c8b0f | [] | no_license | Arrogantyunya/LoRa_SensorV2.0 | 0a1538b96823176def1217f68530daf4cd8e5470 | c6bf18a3919dd13dae26ac945f4eb5559e2b7a36 | refs/heads/master | 2020-09-20T22:44:37.708282 | 2020-07-21T10:27:08 | 2020-07-21T10:27:08 | 224,607,027 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,285 | cpp | private_sensor.cpp | #include "private_sensor.h"
#include <Arduino.h>
#include "RS485.h"
#include "MODBUS_RTU_CRC16.h"
#include "MAX44009/i2c_MAX44009.h"
#include "SHT1x.h"
#include "fun_periph.h"
#include "Adafruit_ADS1015.h"
struct SENSOR_DATA Sensor_Data;
Sensor private_sensor;
void Sensor::Get_All_Sensor_Data(void)
{
int retry_num ... |
283f1578827ec3db942c79a6f63cf481cf94c612 | 162ecc77779289aeebac15cbd30537c08d52bf42 | /Math/floating_point.h | ebef4cfb15a5755857e4caec3d6537042c05c9f6 | [] | no_license | NIA/crash-and-squeeze | 7712efad3487a2dcc2795e24a536b06a9207fe58 | 226606f83d8251ddcd2d8e6f3079fc9052e57ed0 | refs/heads/master | 2020-12-24T08:18:10.329627 | 2017-08-17T14:37:49 | 2017-08-17T14:37:49 | 833,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,323 | h | floating_point.h | #pragma once
#include <cmath>
#include <cfloat>
// Helpers for 'proper' comparing floating point numbers: assuming equal those ones,
// whose difference is less than given epsilon
namespace CrashAndSqueeze
{
namespace Math
{
// floating-point type of internal calculations
typedef d... |
dabc6da863d7df6897df13d91eb81eb392accf2b | 55d9ebd8d099054890be28a9ffa3551d686e0744 | /examples/3-0-containers_algorithms/containters/main.cpp | 32484b2b33f242431fd099c2be65c33fb5f47159 | [] | no_license | PLLUG/CPPQT-Roadmap | 2b2ccdc00157cbd3fa5b3b4d9ce408b8d3d80a24 | ae68d9d6ee1e173b2c62ea14d513ab53f0f64724 | refs/heads/master | 2021-05-03T14:54:38.719228 | 2018-03-18T13:09:38 | 2018-03-18T13:09:38 | 69,292,293 | 0 | 1 | null | 2016-10-04T20:26:08 | 2016-09-26T20:58:56 | null | UTF-8 | C++ | false | false | 1,667 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <list>
#include <string>
#include <algorithm>
using namespace std;
bool cmp(const std::string &a, const std::string &b)
{
const std::string vasaName = "vasa";
if (a == vasaName)
{
return true;
}
else if (b == vasaName)
{
return f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.