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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0cb3f6839a8731b0f86303e5908d4d9fb0d7bb26 | 866355b14c8c63d00a56692253af3a33d7bae4d9 | /Carbanak/Carbanak - part 1/botep/core/source/string.cpp | 5dafbf80065e68afc9c18f18b330070fda8b490c | [] | no_license | mstfknn/malware-sample-library | 058ed65225602bcea8c90ca5597b6bd5cef8772a | 521be5ba79c9410f4130cff37d932f0c8277f4b3 | refs/heads/master | 2022-05-22T05:24:29.651015 | 2022-04-28T08:58:16 | 2022-04-28T08:58:16 | 154,541,310 | 516 | 160 | null | 2021-02-12T20:39:17 | 2018-10-24T17:28:52 | C++ | WINDOWS-1251 | C++ | false | false | 15,448 | cpp | string.cpp | #include "core\winapi.h"
#include "core\string.h"
#include "core\memory.h"
#include "core\misc.h"
#include "core\debug.h"
#include <shlwapi.h>
namespace Str
{
bool Init()
{
return true;
}
void Release()
{
}
int Len( const char* s )
{
if( s == 0 ) return 0;
int res = 0;
while( *s++ ) res++;
return res;
}
char... |
59e70d610b01337ff45efd606e121b5f93987548 | cdbcb7f24acd616a1ed0222855d54e6625c94776 | /Breakout/Gameplay.cpp | a409d893ff7ce257d0be4ee0d7d161162638fa83 | [] | no_license | kraiper/Breakout | fce2b1863ce23dbb61b5a871967a72de596ac8f8 | d7c9794f1e04b9d9acd35fa767d822ba46b2b720 | refs/heads/master | 2020-05-18T16:47:37.386399 | 2013-10-22T13:13:41 | 2013-10-22T13:13:41 | 12,587,146 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 10,215 | cpp | Gameplay.cpp | #include "Gameplay.h"
#ifdef _WIN32
#include "GraphicsDX11.h"
#else
#include "GraphicsOGL4.h"
#include <iostream>
#endif
namespace Logic
{
Gameplay::Gameplay(Inputhandler *&_handler, SoundSystem *soundSys)
{
fps = 0;
mapLoading = new Map();
//tolka Map och skBAJSAPA object enligt den
objectCore = new ObjectC... |
b09677310504a60ad6765e81c68e619e754b57e1 | d5dff0883b223b183a8ee839fdc73c3dc77cb0b2 | /include/lotus/components/scene.h | d91314dcb3b0ab96a46ef9da67dfb7d045c5d68e | [
"MIT"
] | permissive | srthkdb/lotus | 6735cbc33e46c56662b333e0d837e6641bd7f223 | 97b46a8c2f2a20ef63f4e1f29d26bbb7182da6fb | refs/heads/master | 2022-12-19T05:18:27.820838 | 2020-09-12T17:28:03 | 2020-09-12T17:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | h | scene.h | #pragma once
#include "lotus/physics.h"
#include <string>
namespace Lotus
{
struct CTransform
{
Vector3f Position {0.0f, 0.0f, 0.0f};
Vector3f Rotation {0.0f, -90.0f, 0.0f};
Vector3f Scale {1.0f, 1.0f, 1.0f};
};
struct CScript
{
std::string Path;
};
... |
4b7cde0b280d7880cf0a84cafb96c1f6ef175694 | 96ae4303816d8f76323d6101675a09011dfaa6cf | /node.cpp | 2f9373567542e2b55abeb1a53fd1d51e6eb98a13 | [] | no_license | bndoarn/Shortestpath | 25971a34ae9ac634f565c70d1833fd79b02e192d | ddbecedabe24a64ea8f7a7e3e4996c5eab8d3c74 | refs/heads/master | 2020-12-24T15:14:23.323057 | 2013-12-13T05:54:34 | 2013-12-13T05:54:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | node.cpp | //implementation of node class
#include "node.h"
node::node(int k)
{
key = k;
start_time = 0;
finish_time = 0;
visit = false;
}
void node::setKey(int k)
{
key = k;
}
void node::setStartTime(int t)
{
start_time = t;
}
void node::setFinishTime(int t)
{
finish_time = t;
}
void node::setDi... |
2cecb4ddece98c6586c59b1c2bbbc899f72521bf | 2ef63705ea1ab3e22c3055e78043aa6b930a4861 | /Test_PostgreSQL/code/gemcore/new_configdb/configdb/main.cpp | bc9991a4fe4774f0e8db53d7baa3e825768929e9 | [] | no_license | TravellerOnCode/CERN_GEM_DAQ | 49a55503cd219ca73bc40c3aa31d32e6c61556e5 | 28d65b46b6639a507f2afcf695fe9bb5c6124c25 | refs/heads/master | 2023-03-04T20:28:23.552193 | 2021-02-15T07:15:02 | 2021-02-15T07:15:02 | 298,824,821 | 2 | 2 | null | 2021-02-15T05:19:28 | 2020-09-26T13:54:31 | C++ | UTF-8 | C++ | false | false | 4,358 | cpp | main.cpp | #include "./interface/database_utils.h"
#include "./interface/vfat_configurations.h"
#include "./interface/vfat_settings.h"
#include "./interface/vfat_indexes.h"
int main(int argc, char** argv)
{
try {
///database info
std::string DBNAME = "gemdatabase3";
std::string USER = "postgres";
std::... |
1a62beb354bee5712f930a844bb0211e43575c6e | 6b409f00aed90b228ead0f79770bc7e4b1b48818 | /ScreenCapture/include/ScreenCapture/SCCanvasStartWin.h | 6788c9ffbcd95a5c8494769784eb46f10967ded8 | [] | no_license | fengjixuchui/old-code | 7ed6b797930020d242a38566d80b961944f1bc09 | 241ccb529fe2240bdd98661e8d93eb9c25830282 | refs/heads/master | 2020-05-25T09:51:13.007953 | 2018-01-02T12:44:55 | 2018-01-02T12:44:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,046 | h | SCCanvasStartWin.h | #pragma once
#include "HYUtilBase.h"
#include "HYUIBase.h"
#include "HYAutoPtr.h"
#include "SCCanvasControl.h"
#include "SCCanvasSkin.h"
#define SC_MASK_COLOR RGB(255, 0, 255)
typedef CWinTraits<WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, WS_EX_TOPMOST | WS_EX_TOOLWINDOW> CSCStartWinTraits;
class CSCCanvasStartW... |
0ee2ea83e9e65ad16d856529cfa5368e3a4cb30a | feedbfdf62022782c433bfd33ababa39d3265963 | /generated/zml_wss_bird/zml_wss_bird.ino | 8f733ec076a82b3a591118f082dc4e2a01089cfb | [
"MIT"
] | permissive | jblb/zml_wsserver | a12d86d7bcd717a709a82c53c669aed23664a003 | abc5be99d6eda86ff694429e6d957ecc24d8b500 | refs/heads/master | 2021-09-05T10:46:15.652018 | 2018-01-13T22:43:51 | 2018-01-13T22:43:51 | 116,972,858 | 0 | 0 | null | 2018-01-10T15:07:51 | 2018-01-10T15:07:51 | null | UTF-8 | C++ | false | false | 16,932 | ino | zml_wss_bird.ino | /*
* ZML WebSocket Server
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WebSocketsServer.h>
#include <Hash.h>
#include <Adafruit_NeoPixel.h>
#include "router_config.h"
#include "wifi_host_config.h"
#include "leds_layout.h"
#define USE_SERIAL Serial
#define CMD_PIN D2... |
90c6fc2202de2597d5aeac29eda906edb0a50bfd | e01e342e460c113af02fc85a74adf9459dacfb7f | /Change The Files Name Customly/main.cpp | 707e89a2dd357446d68ec9a26a3421419b215668 | [] | no_license | hbtalha/My-Utilities | 4549912ce45622d18630cd40b75689c154a60023 | e9044c9a8a1e1f68f93010779099f936313db96e | refs/heads/master | 2023-08-10T19:47:40.481529 | 2021-09-30T12:23:06 | 2021-09-30T12:23:06 | 300,035,620 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,048 | cpp | main.cpp | #include <iostream>
#include <filesystem>
#include <dirent.h>
#include <windows.h>
#include <boost/algorithm/string.hpp>
using namespace std;
using namespace std::filesystem;
/*
for ( unsigned int i = 0; i < rstr.size(); i++)
{
// cout << rstr[i];
if (isspace(rstr[i]) ... |
5bd01cba439d48c0dcafe7ebbf022b8abad35586 | ebd585fdafb22d31fcd6d04b209f81e88d1a2083 | /boot_images/modem/rfa/pmic/application/vbatt/common/inc/vbatt_adc.h | 00901a03343740a5162c9d07694f2856efe0f5e8 | [
"Apache-2.0"
] | permissive | xusl/android-wilhelm | fd28144253cd9d7de0646f96ff27a1f4a9bec6e3 | 13c59cb5b0913252fe0b5c672d8dc2bf938bb720 | refs/heads/master | 2018-04-03T21:46:10.195170 | 2017-04-20T10:17:49 | 2017-04-20T10:17:49 | 88,847,837 | 11 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 7,850 | h | vbatt_adc.h | #ifndef VBATT_ADC_H
#define VBATT_ADC_H
/*! \file
* \n
* \brief vbatt_adc.h ----
* \details This header file contains class declarations of the VbattAdc
* class.
* \n
* \n © 2010 QUALCOMM Technologies Incorporated, All Rights Reserved
*/
#include "ivbatt_adc.h"
#include "DDIAdc.h"
namespac... |
8a6705d6803c907b6fa42782f454ff5fb7ef47ed | 2f1604f4fb2fda00d0c3663b7f963b107d46d841 | /National/게임 소스 코드/Sound.h | e87d31412e1656bc0c7fba4cd0287183a3ed5ce9 | [] | no_license | daramkun/World-Skills-2009 | deeeb53a1dab345281166466196be57a32b751d2 | dff1d5f4b1b37023970f81cd1dbd3eabd4c24be8 | refs/heads/master | 2020-05-25T05:59:06.593964 | 2019-05-20T14:45:05 | 2019-05-20T14:45:05 | 187,658,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | h | Sound.h | #pragma once
#include "DxUtil.h"
#include <dshow.h>
#pragma comment (lib, "strmiids.lib")
class CSound
{
private:
IGraphBuilder *m_graphBuilder;
IMediaControl *m_mediaControl;
IMediaPosition *m_mediaPosition;
bool m_isPlay;
bool m_isLoop;
public:
CSound(wchar_t *filename);
~CSound(void);
void Play(bool is... |
57692f2133e33aed3c1c7649b484b0b6bc907a65 | 5a4fd7072ae71d912a7a2b8a34e83260bdcd75ed | /TDB_API/TDB_API_helper.inl | b0b7b7ef2a0ba79b2697f8b03622d35ab5409f06 | [
"Apache-2.0"
] | permissive | chenhq/q_Wind | e62d8a9a8fca56f2b7fa38a3ca665178d243b9a9 | 90581d2a18ef703bfbdd5d84f647abb3ba30fc1a | refs/heads/master | 2021-01-19T06:31:01.916726 | 2015-07-17T09:59:17 | 2015-07-17T09:59:17 | 39,283,667 | 1 | 0 | null | 2015-07-18T02:27:07 | 2015-07-18T02:27:06 | C++ | UTF-8 | C++ | false | false | 1,982 | inl | TDB_API_helper.inl | #ifndef __TDB_API_HELPER_H__
static_assert(0, "Include TDB_API/TDB_API_helper.h instead!");
#endif
#include "util.h"
#include "kdb+.util/type_convert.h"
#include <cassert>
template <typename FieldTraits>
void TDB::parseIndicators(K indicators, std::vector<typename FieldTraits::field_accessor const*>& accessors)
thr... |
3c0575018988a52ab1ac875b436a502a551034e9 | 819f124011a19d788284197ca80e045ef0e429fc | /tvset.cpp | 4973ef163fd7f8698c6a1ee77e9c46625e9a1e45 | [] | no_license | velfor/tv_set | d959acc3b253080333b2e6b35cffa69cbe031248 | c9bea6c4ad0b175a60d15607f7d33dc6e0f1aaa8 | refs/heads/master | 2023-01-27T13:41:28.227663 | 2020-12-15T15:05:37 | 2020-12-15T15:05:37 | 320,313,381 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | tvset.cpp | #include "tvset.h"
#include <iostream>
TVSet::TVSet() {
isOn = false;
for (int i = 0; i < channelQty; i++) channelList[i] = ' ';
}
void TVSet::turnOn() { isOn = true; channelNum = 1; }
void TVSet::turnOff() { isOn = false; }
void TVSet::showStatus() {
if (isOn) {
std::cout << "TV is on, channel " << channelNum <<... |
47d991d4fbbe9720f6d68c2eb11ff86419e2e6b5 | 52124740605e99267a49d7a33da467e123c4a05d | /TD8/SUBST1.cpp | 20b476ac182a6ab0e5eb9cea1a346a314e200efd | [] | no_license | joaopfg/Competitive-programming | 582c68084f8d3963e356cdcaaa269f4606b35405 | 9266a753fc552619bf4b3ee7c8abb26575e69790 | refs/heads/master | 2022-08-03T00:11:17.431331 | 2020-05-29T20:16:29 | 2020-05-29T20:16:29 | 267,943,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | SUBST1.cpp | #include <bits/stdc++.h>
#define rep(i,begin,end) for(int i=begin;i<=end;i++)
#define repi(i,end,begin) for(int i=end;i>=begin;i--)
#define fio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
int cases;
int prefMax(string (&s)){
int sz = (int)s.size();
vector<int> sPref(sz);
sPref[0] =... |
4ed78403e35ffa191d028a31a57541e262b64e33 | 95ab32af4659971fcd5a76840d500d0fa181dda9 | /Linked-List/Single-Linked-List/6_detectLoopSLL.cpp | b50f80989d7563c3aa60e7d01245dd8278bcc856 | [] | no_license | piyushkumar96/Data-Structure-Programs | b7c418900b90d2502068699972255e22aabdba51 | bd8c2e1cd6f53a37c0c964df48bd80b60a7a078d | refs/heads/master | 2020-04-22T10:26:45.665753 | 2019-09-26T12:31:13 | 2019-09-26T12:31:13 | 170,305,866 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,318 | cpp | 6_detectLoopSLL.cpp | /**
* author:- piyushkumar96
* description:- Detect Loop in Linked List (Floyd's Cycle and Hashing Method)
**/
#include<bits/stdc++.h>
using namespace std;
struct Node{
int item;
struct Node* next;
Node(int item){
this->item=item;
next=NULL;
}
};
struct LinkedList {
Node* HEAD... |
158c0b2e18c889c2900501ae1915f57f8709008e | 077bae5fedcb7b6f5a8c4f1284482c3ad215e088 | /client/crystalSpace/include/csparser/loadinfo.h | 23391a9c7dca84968eda79fd132e8709aa6742e2 | [] | no_license | runngezhang/archived-chime3 | 7d59aef8c7fda432342cfdb7e68fba2a45b028da | a3b8592117436144b092922130cb2248b6a515d6 | refs/heads/master | 2021-01-23T23:46:37.708039 | 2002-05-11T21:32:02 | 2002-05-11T21:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | h | loadinfo.h | /*
Copyright (C) 1998 by Ivan Avramovic <ivan@avramovic.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any lat... |
390f423260a6a7fbe0b78faed1980d2faeea6cc2 | 0b070626740788d5af23fcd1cd095e56033308de | /448.cpp | dd82ebdcbcf9bdffe9184317fd5739cdb1d2b48c | [] | no_license | xis19/leetcode | 71cb76c5764f8082155d31abcb024b25fd90bc75 | fb35fd050d69d5d8abf6794ae4bed174aaafb001 | refs/heads/master | 2021-03-24T12:53:34.379480 | 2020-02-24T04:25:36 | 2020-02-24T04:25:36 | 76,006,015 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | cpp | 448.cpp | #include <cstdlib>
#include <vector>
std::vector<int> findDisappearedNumbers(std::vector<int>& nums) {
// We use the index of the array to store the existing values
const int N = nums.size();
for(int i = 0; i < N; ++i) {
auto absValue = std::abs(nums[i]) - 1;
if (nums[absValue] > 0) nums[ab... |
6469af157d22a3282f6d88ea15b493d5c11168dc | fae3156a0c94ea31b77f6b83e9e57b21e3cf37ea | /SunPlayer_DuiLib/SunPlayer/MediaPlay.cpp | 40a908a3db2c9f4153a9890dd6046bec03d2c178 | [] | no_license | Lufeiguo/SunPlayer_DuiLib | 34f4acd0282a95e6b6d4088bc22817b8f48d6fef | 3a50d835a4311bbf929bd6e340cf89d83f1fe635 | refs/heads/master | 2022-01-17T02:40:37.154224 | 2017-04-19T03:36:54 | 2017-04-19T03:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,587 | cpp | MediaPlay.cpp | #include "stdafx.h"
#include "MediaPlay.h"
CMediaPlay::CMediaPlay()
:m_hplayer(NULL),
m_hWnd(NULL),
m_bPlaying(false),
m_nRenderType(VDEV_RENDER_TYPE_GDI),
m_nAudioVolume(0),
m_llDuration(0),
m_nVideoWidth(0),
m_nVideoHeight(0),
m_nIndex(0),
m_rect({0,0,0,0})
{
}
CMediaPlay::~CMediaPlay()
{
}
void CMedia... |
58a623d04c9fa8ec0ca63181e76147145a291358 | 3aa028649f6e9a26454a1caa4d0b89cbe341d660 | /BRAINSABC/qhull/testqh.cxx | 02f906b48d18240bdd910e1b369665b99e4d02cd | [] | no_license | jcfr/BRAINSStandAlone | 2738b83213235c35148f291ad57d07bdeb30de07 | db8a912bbd19734968e4cf83752cb1facdba10eb | refs/heads/master | 2021-01-16T21:03:02.734435 | 2011-10-26T18:30:54 | 2011-10-26T18:30:54 | 2,634,574 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 869 | cxx | testqh.cxx | #include "vtkQhullDelaunay3D.h"
#include "vtkUnstructuredGridWriter.h"
int main(int argc, char * *argv)
{
vtkPoints *pts = vtkPoints::New();
double c = 2.0;
/*
for (double x = -c; x <= c; x += 1.0)
for (double y = -c; y <= c; y += 1.0)
for (double z = -c; z <= c; z += 1.0)
*/
for( double ... |
7f81701cbe644bad7fe734aa3e4d0a26f5cc60a1 | fe5f0b9604b9199ae6b51a688e435e825b7cd21e | /Algorithms/LeetCode/133_clone_graph.cpp | 2ea55c281ef13d3a73559c1846b62db28954533d | [] | no_license | leeo1116/CodeBlocks | 06ca12aea2e56ae0f464e59eb98076944c600203 | 3a6a601c11cf40cc0e4cec2a5edda44bf14602d1 | refs/heads/master | 2020-12-09T04:39:51.963226 | 2016-11-01T06:09:00 | 2016-11-01T06:09:00 | 47,295,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,302 | cpp | 133_clone_graph.cpp | #include "Leetcode.h"
UndirectedGraphNode *UndirectedGraphNode::CloneGraphBFS(UndirectedGraphNode *startNode){
if(!startNode) return NULL;
UndirectedGraphNode *startNodeCopy = new UndirectedGraphNode(startNode->label);
graphMap[startNode] = startNodeCopy;
queue<UndirectedGraphNode *> toVisit;
toVi... |
18c3363b5f686a513d8ac446a7bc5eb04c67ed74 | c12fba29b0cbb5071dca39ddbe67da9607b77d65 | /Engine/Source/Components/ComponentManager.cpp | 6d381352e7280e71a9d4013f344121a4655fb282 | [] | no_license | satellitnorden/Catalyst-Engine | 55666b2cd7f61d4e5a311297ccbad754e901133e | c8064856f0be6ed81a5136155ab6b9b3352dca5c | refs/heads/master | 2023-08-08T04:59:54.887284 | 2023-08-07T13:33:08 | 2023-08-07T13:33:08 | 116,288,917 | 21 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 5,651 | cpp | ComponentManager.cpp | //Header file.
#include <Components/Core/ComponentManager.h>
//Entities.
#include <Entities/Types/Entity.h>
/*
* Defines an entity class with with one component.
*/
#define DEFINE_ENTITY_CLASS_WITH_ONE_COMPONENT(ENTITY_CLASS, FIRST_COMPONENT) \
DynamicArray<Entity *RESTRICT> ComponentManager::_ ## ENTITY... |
a45a8ecbbaaa834550b0a58a8c3f3c2ea89617c6 | 7ce91a98ae434dbb48099699b0b6bcaa705ba693 | /TestModule/HK1/Users/20110224/bai1.cpp | 809ab6e1d480808be18420a17e2a24ea2ab64343 | [] | no_license | ngthvan1612/OJCore | ea2e33c1310c71f9375f7c5cd0a7944b53a1d6bd | 3ec0752a56c6335967e5bb4c0617f876caabecd8 | refs/heads/master | 2023-04-25T19:41:17.050412 | 2021-05-12T05:29:40 | 2021-05-12T05:29:40 | 357,612,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | bai1.cpp | #include <stdio.h>
void Play(int &na, int &nb, int x, int y) {
if (x == 1) { //keo
if (y == 1) { //keo
na++;
nb++;
}
else if (y == 2) { //bua
nb += 3;
}
else { //bao
na += 3;
}
}
else if (x == 2) { //bua
if (y == 1) { //keo
na += 3;
}
else if (y == 2) {
na++;
nb++;
}
else ... |
c7565afb33eca872af28bf5a722233bde06b9c98 | 74e6964ea88ed259f03ca13b5289e94105139fb6 | /Chapter 4/Section 4.2.cpp | 90594ca60b890ca5d64e470995ac744da6a20cb2 | [] | no_license | fwhidje/C-primer-5th-ed. | 5ef842a18b84b94086befd67ef4ecb7ef47e4970 | 11e4a9b35bea3f9938558b16f2eb0bed7830de38 | refs/heads/master | 2020-06-12T20:05:10.318600 | 2017-01-19T20:45:15 | 2017-01-19T20:45:15 | 75,756,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | Section 4.2.cpp | #include <iostream>
using namespace::std;
//Exercise 4.4
void eval() {
cout << 12 / 3 * 4 + 5 * 15 + 24 % 4 / 2 << endl;
cout << ((12 / 3) * 4) + (5 * 15) + ((24 % 4) / 2) << endl;
}
//Exercise 4.6
bool is_odd(const int i) {
return i % 2;
}
//Exercise 4.6 - variation
bool is_odd2(int i) {
return... |
6e7abe6b1abf5d98d8084e32067e7faab5932f8c | ddf89aad4e4f30ccc4c0436c9dd13c9360949240 | /atcoder/agc034_b.cpp | a927f00ba4b39ae0361dc45ca5e5780561148032 | [
"MIT"
] | permissive | k124k3n/competitive-programming-answer | 99a7b5b9397915f0bad59a40fcec5f7833fbc719 | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | refs/heads/master | 2022-03-29T23:06:57.287336 | 2019-12-28T10:14:54 | 2019-12-28T10:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | agc034_b.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
string str;
getline(cin, str);
int count = 0, count_ = -1;
bool rep = false;
size_t index = 0;
while (true){
if(count == 0){
break;
}
count_ = 0;
while (true) {
index = str.find("A... |
4b98e131f60c1e46c512d9b4ec98613736c5886f | 3b856314443c48096dfca831a440eb5fae1be7d3 | /include/Image/GenericImage.hpp | 3ab9f9a72e4d824dccfd10403c0c9ef05e6185b1 | [
"Zlib"
] | permissive | alex-justes/jimlib | e489e5814b819b55573fcd3419ca29d55ec5d8d8 | 7622b50e9eb597f1e8109ef845feb5f92b45fd08 | refs/heads/master | 2021-01-18T21:08:10.152245 | 2017-08-07T13:46:10 | 2017-08-07T13:46:10 | 43,775,741 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,864 | hpp | GenericImage.hpp | /*
* jimlib -- generic image and-image algorithms library
* Copyright (C) 2015 Alexey Titov
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is gran... |
e8133eac333323f1633d7e5336bb2c4546259a67 | 606688234266e08c18d44cd4826f16afa39f9eb8 | /tpls/staq/libs/mockturtle/views/fanout_view.hpp | 454acb76b165ff3928e9f2a2f8d67ccb794620e7 | [
"BSD-3-Clause",
"EPL-1.0",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0",
"LicenseRef-scancode-generic-export-compliance",
"MIT"
] | permissive | eclipse/xacc | f285f2a20d88fbc4c8f7f1fc14f86bf170ae59e6 | d1edaa7ae53edc7e335f46d33160f93d6020aaa3 | refs/heads/master | 2023-09-01T12:36:22.324158 | 2023-08-01T21:44:29 | 2023-08-01T21:44:29 | 104,096,218 | 159 | 125 | BSD-3-Clause | 2023-08-25T04:55:34 | 2017-09-19T15:56:59 | C++ | UTF-8 | C++ | false | false | 4,903 | hpp | fanout_view.hpp | /* mockturtle: C++ logic network library
* Copyright (C) 2018-2019 EPFL
*
* 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... |
2b02761795becc3bf2fd411a95d3dc2b46024ce2 | 999ad5439026ee8481f30f4cdf3a4a623467a4f3 | /nebula2/code/mangalore/ui/window.cc | beb9d82325c15967472cd80a19bc14ade3404d48 | [] | no_license | TalonBraveInfo/mirror-nd2 | 056a6b9b16ab15035ab254d1400700a66ee29423 | 5377d038124679ca936e5486a881f639e38895da | refs/heads/main | 2023-03-17T22:52:43.865612 | 2021-03-15T09:51:17 | 2021-03-15T09:51:17 | 347,916,033 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,120 | cc | window.cc | //------------------------------------------------------------------------------
// ui/window.cc
// (C) 2005 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "ui/window.h"
#include "ui/server.h"
#include "ui/event.h"
namespace UI
{
ImplementRtti(UI::Window, Fo... |
969a9e78099db6e58a05a8497f8cdf880e0d93fc | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /tests/logixng/logixngtest.cpp | dd9f5af15b516f4f62e4eec486045ac17a9273ba | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 34,177 | cpp | logixngtest.cpp | #include "logixngtest.h"
#include "instancemanager.h"
#include "assert1.h"
#include "logixng_thread.h"
#include "defaultlogixngmanager.h"
#include "junitappender.h"
#include "defaultconditionalngmanager.h"
#include "junitutil.h"
#include "defaultlogixng.h"
/**
* Test LogixNG
*
* @author Daniel Bergqvist 2018
*/
//... |
13a80c9164318eca9486944ebef62dad4f5babf9 | 1354e777845709e1560f17352397c37a160ea47d | /abc168/1.answer.cpp | 91c65e35953963ad7173c1bfeed05d690569a9eb | [] | no_license | segamiken/atcoder | c060ab883bee4fe6e75b9259bc25e910f2980343 | 6b0d4f66a8c5a76534e27cf85f50db16fea1d7cf | refs/heads/master | 2022-11-10T01:49:07.150630 | 2020-06-29T14:06:37 | 2020-06-29T14:06:37 | 266,495,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | 1.answer.cpp | #include<iostream>
using namespace std;
int main() {
int N;
cin >> N;
//1の桁の数
int count = N % 10;
if (count == 3) {
cout << "bon";
} else if (count == 0 or count == 1 or count == 6 or count == 8) {
cout << "pon";
} else {
cout << "hon";
}
... |
ca5891f492e2166d7f3c90669913e19b37aa06b3 | d23ff5fba3e829054e2b04d0e0ecfe7940afdf24 | /Player/S3DShowWizard.h | 42b766f7ac0613a62353ae9411dd28dc254cb819 | [] | no_license | progmalover/vc-evrplayer | 51b35d2b3d5191f75231aa8cb98aad99724af6b3 | 2292e495ce3450028bc405e2512fe94a7c364cf2 | refs/heads/master | 2021-04-29T05:16:23.525609 | 2017-01-04T05:40:58 | 2017-01-04T05:40:58 | 77,984,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,062 | h | S3DShowWizard.h | #pragma once
class S3RenderMixer;
class S3RenderEngine;
#define VIDEO_SOURCE_TAG 0x533301
interface S3DShowWizard : public IUnknown
{
public:
S3DShowWizard(void);
virtual ~S3DShowWizard(void);
/*** IUnknown methods ***/
STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE... |
08163c76703e65ac1fba492d803cf471711dd90f | 425963de819e446a75441ff901adbfe5f1c5dea6 | /chrome/browser/plugins/flash_download_interception.cc | a8b2140dac37c5cb04aa8a4025dfeae0cfbca27e | [
"BSD-3-Clause"
] | permissive | Igalia/chromium | 06590680bcc074cf191979c496d84888dbb54df6 | 261db3a6f6a490742786cf841afa92e02a53b33f | refs/heads/ozone-wayland-dev | 2022-12-06T16:31:09.335901 | 2019-12-06T21:11:21 | 2019-12-06T21:11:21 | 85,595,633 | 123 | 25 | NOASSERTION | 2019-02-05T08:04:47 | 2017-03-20T15:45:36 | null | UTF-8 | C++ | false | false | 7,202 | cc | flash_download_interception.cc | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/plugins/flash_download_interception.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/no_destructor.h"
#in... |
d369daf98ab0144ea3721aa4512140617f8d4711 | d333f611a5ff915f535921ecc9ca6a1da4dcd660 | /2019.12~2020.1@3Dゾンビゲーム/プログラムソースコード/GameUI.cpp | 924fa5a31e0bf05f5f7c2d93624cad254c5567a9 | [] | no_license | kosyunrin/skMYGAMES | 92e0961c483edc1ee4d37fa6fbffdea1955df081 | bab00c257560d0f788a102f33fedd2ac681e97e5 | refs/heads/master | 2022-12-12T18:56:23.027856 | 2020-09-12T04:29:35 | 2020-09-12T04:29:35 | 276,560,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | GameUI.cpp | #include"B_header.h"
#include"CPolygon.h"
#include"texture.h"
#include"input.h"
GameUI::GameUI()
{
BlueDrawUI.BuleDraw = true;
}
GameUI::~GameUI()
{
}
void GameUI::Init()
{
Go_texture = new CTexture();
Go_textures = new CTexture();
Go_texture->LoadALLTga();
Go_textures->LoadAnyJpgPng();
Go_polygon = new CP... |
11862ca421187814ebb0aa451c4b4ee8528b4ad3 | 63b9c964164f7f99e766d25606bcdb7c3dbbaeb9 | /GeneratedFiles/ui_qgssinglebandpseudocolorrendererwidgetbase.h | 5198a9ea82eac31b5056b0d179a12f7bd3d5d374 | [] | no_license | RenShuYuan/UAVplatform | cd3ffa45edd4840dfae34ee4acf66097bd7ac197 | 22cd1899cb0d56a0283ba439db0a67d023118d46 | refs/heads/master | 2021-01-09T20:32:26.148657 | 2016-10-20T15:39:29 | 2016-10-20T15:39:29 | 71,480,773 | 5 | 2 | null | 2016-10-31T12:09:51 | 2016-10-20T16:09:06 | C++ | UTF-8 | C++ | false | false | 20,484 | h | ui_qgssinglebandpseudocolorrendererwidgetbase.h | /********************************************************************************
** Form generated from reading UI file 'qgssinglebandpseudocolorrendererwidgetbase.ui'
**
** Created by: Qt User Interface Compiler version 4.8.6
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********... |
8bae94336bdffbcdb13922864c274c0bc7635950 | 012d280967aae334c63fec3b1983c103efd41cb6 | /robominton/src/disp.cpp | 48320782c2b756462316c781de13348839273829 | [
"MIT"
] | permissive | ukaana99/nhk2015_back_ros | b282068ccb7acaee957c2dfc71f31d1016c555db | abf0bdd81c452c104627c91a9a061d6e33264387 | refs/heads/master | 2021-05-28T19:23:01.846782 | 2015-06-17T04:55:01 | 2015-06-17T04:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,692 | cpp | disp.cpp | #include <ros/ros.h>
#include <std_msgs/Int32.h>
#include <std_msgs/Float32.h>
#include <sensor_msgs/Imu.h>
#include <geometry_msgs/PoseStamped.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
float motor1 = 0.0f;
float motor2 = 0.0f;
float enc1 = 0.0f;
float e... |
153737e8cd16547dcc4840ff54dbfe8c7201e5e3 | 888a60218590e7eccca08252798016d8ff14530f | /cutplant2.cpp | 48061c87fb747d6e0131c1dacc5e785567c2e822 | [] | no_license | codermaddy/competitive_programming | 46bbbbe390d557e6822b20e8700b28c60e0d0c35 | 7762dd72a18e1aab25a46962d61c7dbb0cb90b9d | refs/heads/master | 2020-08-27T07:03:05.089999 | 2019-10-24T11:10:03 | 2019-10-24T11:10:03 | 217,278,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | cpp | cutplant2.cpp | //partial
//april long'18
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll A[100005],B[100005];
ll calc(int u,int v,ll limit){
int i;
bool abc=0;
ll ans=0;
//all are equal?
for(i=u;i<=v;i++){
if(A[i]!=B[i]){
abc=1;
break;
}
}
if(abc==0)
return 0;
else{
... |
f70d978d947c95a7a6b091d9767f21630e7bdc22 | 0b139653ca5290fb6133e306fefa8300842227e2 | /OTB/xml/XMLParser.h | 5e8dc7096cf1f53a15b3687c81cb52d45492b053 | [] | no_license | speedoog/off-the-ball | f37525b0dcfb6d81016271ed183360e93bc54a05 | eb6dcc68e32fd79d0a3113657a0015e8e6a1fea0 | refs/heads/master | 2021-01-20T10:55:29.737544 | 2019-10-21T11:48:30 | 2019-10-21T11:48:30 | 33,539,397 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | h | XMLParser.h | //----------------------------------------------------------
//
//
//
//
// XML_PARSER
//
//
//
//
//----------------------------------------------------------
#ifndef __XML_XMLPARSER_H__
#define __XML_XMLPARSER_H__
#pragma once
#include "DynamicBuffer.h"
#include "XmlAttribute.h"
#include "XmlEle... |
6f0a1433d3d390a5fa1e8dc41b5aa1efc10c7039 | a32e48c6f5ab467343bf92368731bd6b2b9a7492 | /Alloy Engine/Alloy Engine/Src/Mesh.h | 1765d68bdcbccb01bcf3777c3675804865ccbc80 | [
"MIT"
] | permissive | TomTurner2/ATP-Fur_Shader | 0845c7b4f730f1762c459a7bf3c6fdaf783ddb71 | 81dd1fc1c193aecad278121888d03edbbc9c646a | refs/heads/master | 2021-03-24T12:05:23.681511 | 2018-06-27T19:32:20 | 2018-06-27T19:32:20 | 106,966,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | h | Mesh.h | #pragma once
#include "GameObject.h"
#include "Vertex.h"
#include <d3d11.h>
#include "Material.h"
#include <vector>
class Renderer;
class Mesh : public GameObject
{
public:
Mesh(std::string _name);
~Mesh() = default;
std::string GetName() const;
Material* GetMaterial() const;
unsigned int GetVertexCount()cons... |
0e80fe61689bac2878cd824485807f658ad0377d | f986e6aad322515718989ee337a8c1b5c7778466 | /Baekjoon/10162_전자레인지.cpp | e192e9e05e88113f77692228db834369b5713527 | [] | no_license | wh2per/Baekjoon-Algorithm | bf611ae9c87dfc1af3f66b79f0c2d21db75c0df1 | 04f721f59b497f81452216ff0becbc3a620bbd0c | refs/heads/master | 2021-11-24T09:23:31.327854 | 2021-11-11T05:56:54 | 2021-11-11T05:56:54 | 165,788,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | cpp | 10162_전자레인지.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
#include <vector>
#include <climits>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
freopen("input.txt", "r", stdin);
int t;
cin >> t;
int a, b, c;
int ans = 0;
a = t / 300;
t %= 30... |
33fee5c7ac883941caccfa4d638a8266fb3a2209 | 2e2b2b8e7dcfac00379591e796f652d534181e7a | /CODEFORCES/1355/1335E.cpp | 8f183de2a9eb781de7885add0a82ad9cc8cba3da | [] | no_license | bansalshaleen/C- | caf6eea6a7c8271c646304677b384a20c35a5e2c | 276d676ed7dd9923772e67e5ff84267af41c13cb | refs/heads/master | 2023-06-10T09:58:21.430225 | 2021-07-04T11:25:36 | 2021-07-04T11:25:36 | 264,470,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,323 | cpp | 1335E.cpp | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef long long int ll;
typedef unsigned long long int sll;
typedef double ld;
#define A 1000000007ll
#define D 1000000000ll
#define B 998244353ll
#define C 1000000000000000000ll
#define FAST ios::s... |
1d22a472432d1abebf3e754f6f560541978b3525 | 017478797a79e9b710110f0ded61b465896b2c93 | /device.cpp | fe12c0bbdff299ec5a7ae9736e2b38bb8c3a5812 | [] | no_license | JMarlin/816 | ad4198f9754546fa76ae55f395badcb8e88bef95 | 999e200ab553a884bea65d9fbd23fab6d5f0acec | refs/heads/master | 2021-07-14T17:19:25.086375 | 2018-12-25T18:29:06 | 2018-12-25T18:29:06 | 105,568,089 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,807 | cpp | device.cpp | #include "device.h"
Device::Device() {
this->_InitOk = false;
this->_ResponseRanges = new std::list<ResponseRange*>();
}
Device::~Device() {
for(auto iter = this->_ResponseRanges->begin(); iter != this->_ResponseRanges->end(); iter++)
delete *iter;
delete this->_ResponseRanges;
}
bool Device::GetInitOk() {
... |
c341a2120b7104b163181b5fa1f79aca5d9a7a59 | ad730fcf89b0b4c51117dfd4e4a5c37b95f5bd89 | /cpp/Dynamic_Memory_Allocation/heap.cpp | 7209c02f69b2c2c10b8591ea1567b15eccfb0b87 | [] | no_license | Ashwin0512/Cpp_Ashwin | 5e8eb70d68897149ca5dc4475449d339d4a6e521 | e9401297d9e76d081acc593e515a6dbd0e0c5c59 | refs/heads/main | 2023-07-27T23:00:43.053468 | 2021-09-11T11:26:23 | 2021-09-11T11:26:23 | 346,825,005 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cpp | heap.cpp | #include<bits/stdc++.h>
using namespace std;
int main() {
int a=10; //stored in stack
int *p = new int(); //allocate memory in heap
*p = 10;
delete(p); // deallocate memory from heap, but the pointer reamins
// in stack (DANGLING POINTER), can be used to allocate something in ... |
c9a5de18ca87d397e339a45002859d3af8c00ce7 | 38d571f0806b4e75db51685c5279414154ed51b3 | /cpp/frameReceiver/include/FrameReceiverDefaults.h | cec11ddaddc909d0cedcd935ecc1f57bcdf0d0b2 | [
"Apache-2.0"
] | permissive | odin-detector/odin-data | 007168d09fa3680004f7f94822bb03fbebcecfc8 | 75b06f33b8a9434d73e0fa5989d85805c4954136 | refs/heads/master | 2023-08-30T13:03:57.677587 | 2023-08-07T08:47:41 | 2023-08-07T08:47:41 | 76,046,833 | 7 | 8 | Apache-2.0 | 2023-08-07T09:14:33 | 2016-12-09T15:28:08 | C++ | UTF-8 | C++ | false | false | 1,369 | h | FrameReceiverDefaults.h | /*
* FrameReceiverDefaults.h
*
* Created on: Feb 4, 2015
* Author: Tim Nicholls, STFC Application Engineering Group
*/
#ifndef FRAMERECEIVERDEFAULTS_H_
#define FRAMERECEIVERDEFAULTS_H_
#include <cstddef>
#include <stdint.h>
#include <string>
#ifndef BUILD_DIR
#define BUILD_DIR "."
#endif
namespace FrameR... |
c0ecdcb94c7d2c086ea623234b66d24dc04da607 | 71a4032478b863e0bd43e639d76d560a8f56d255 | /src/config.hpp | 385fd6b240f62663604880268f8fbeedc020a0de | [] | no_license | JohnHush/Caffe2Windows | c9a57922794a6c069f56895fabccf08930358491 | 36c62a089b932bd723afe172786a755f8fcb6c5f | refs/heads/master | 2020-06-14T13:50:29.763495 | 2017-07-12T07:20:17 | 2017-07-12T07:20:17 | 75,174,948 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | hpp | config.hpp | #ifndef __JohnHush_CONFIG_H
#define __JohnHush_CONFIG_H
// define the header to build .dll in WINDOWS
#ifdef _WINDOWS
#define OCRAPI __declspec(dllexport)
#else
#define OCRAPI
#endif
// system file operation function include file
#ifdef _WINDOWS
// silent the min & max fun. in windows.h
#define NOMINMAX
#def... |
91392b65c357338e62aaf9c7c5fe8d774155cb23 | 954499e39af8706506040f10dbbce783407a39c2 | /Examples/FONT_SIZE/asc_string/asc_string.ino | 65c510ba72501d74cb5b7acb3f3793de1dcbaec1 | [] | no_license | NickChungVietNam/st7565_library_arduino | 995c58d6e75992c5ffe05fd88f17fd7beb9a092e | 85789c812e740a0dd432d997af30e9357ba127fa | refs/heads/master | 2020-12-30T15:54:25.755254 | 2018-05-04T13:44:03 | 2018-05-04T13:44:03 | 91,182,778 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 539 | ino | asc_string.ino |
#include "ST7565_homephone.h"
ST7565 lcd(3,4,5,6);//RST, SCLK, A0, SID
void setup() {
lcd.ON();
lcd.SET(23,0,0,0,4);
}
void loop(){
//c1:
lcd.Asc_String(0,0,Asc("Size 1"),1, BLACK);
lcd.Asc_String(0,12,Asc("Size 2"),2, BLACK);
lcd.Asc_String(0,30,Asc("Size 3"),3, BLACK);
lcd.display();
}
//vo... |
e9a18c319daa575865796c23946951b0c9e18ab8 | 7c3e20abc274d49f2bead8d9fe7ae06382d274c3 | /Gui/Label.h | a05b77e2c5ea025e70547be7efaa9ac1cf49755a | [] | no_license | oliewalcp/Rapid | 8ca6f87f794a94e5c36fac6b3183fb4e077741d7 | b2e0a15cf92f94433cc77e781554f9c41ebfbe31 | refs/heads/master | 2020-03-21T01:53:25.550197 | 2019-11-04T00:58:04 | 2019-11-04T00:58:04 | 137,967,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | h | Label.h | #ifndef LABEL_H
#define LABEL_H
#include "Widget.h"
namespace rapid
{
class Label : public WinWidget
{
private:
void __init(WinWidget *parent, const char *text);
public:
Label(WinWidget *parent = nullptr, const char *text = "")
{ __init(parent, text); }
Label(const char *text)
{ __init(nullptr, t... |
42d7a59aa78f2509373a530198a05a226847869c | 6ab81ff69f08ae39ea9d062d3e81c4d9e32f3e65 | /Comp Graphics/CompGraph_lab1/wave1.cpp | 46e32e1b7cfad0ed75d47528bedc4cf9ee0c87a6 | [] | no_license | SozinovAP/NNGU_labs | 5955dba9c5c7b57e5737e1ce3c1fe56800ef8f7d | 436d3cc51d8892487970756c15534beff69f9782 | refs/heads/master | 2023-05-03T19:39:40.051163 | 2021-05-30T15:48:59 | 2021-05-30T15:48:59 | 371,925,901 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | wave1.cpp | #include "wave1.h"
QColor Wave1Filter::CalculNewColor(pixel _point)
{
int x = static_cast<int>(_point.x + 20 * sin(2 * M_PI * _point.x / 60));
int y = _point.y;
return resimg.pixel(Clamp(x, 0, resimg.width() - 1), Clamp(y, 0, resimg.height() - 1));
}
Wave1Filter::Wave1Filter(const QPixmap& pix) : Filter(p... |
8af79e4189ef42f609979254010fe30fbe357c37 | d7869995141b8809ebb300c4aff54ced0c17e057 | /hdogs/hdogs.cpp | a6b7bf4c31ca66fed52cc721140c2eb559a1a7c0 | [] | no_license | Kirinosama/code | 8d9e76f3fe70a2166dbe81e12b250dadcbc91bf7 | 584cea66c22201546259e3490c42afe5eb8c6e09 | refs/heads/master | 2021-06-11T18:46:05.096966 | 2019-09-25T12:56:05 | 2019-09-25T12:56:05 | 115,096,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | hdogs.cpp | #include <cstdlib>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
#define ii pair<int,int>
#define INF 0x3f3f3f3f
typedef long long ll;
int T;
int f(int x,int y){
if(x%y==0) return 0;
if(y==1) return 0;
if(x>y) return f(x%y,y);
if(y%x==0) return x*(... |
e219d79a203a217a6d165453ce351b6f42ff071e | 3957b1c3e8e9274e2363e092488583c3926751ac | /Linked List/LLMergeSort.cpp | 933eb092baf4d8136009d3330c6768f255a15436 | [] | no_license | angadjot/Data-Structure-Questions | 626c1ef9d2c3fbe0d5a0d746f1e4f76222980b2d | 92fa8f318dec0895b558a43717378112f3bae7cd | refs/heads/master | 2021-01-19T14:00:44.254350 | 2017-08-20T17:00:04 | 2017-08-20T17:00:04 | 100,875,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,454 | cpp | LLMergeSort.cpp | /*input
15
10
5
20
3
2
-1
*/
#include <iostream>
using namespace std;
struct node{
int data;
node *next;
};
node *createNode(int val);
void insert(node **headRef,int val);
void MergeSort(node **headRef);
node* SortedMerge(node *a,node *b);
void FrontBackSplit(node *source,node **frontRef,node **backRef);
void... |
90a9d24bfbbe4158a13d9ad1ad8b5bf4d0c01595 | 657328727af2aac98a264cca638c1d67a714e7da | /arduino/Global_Frame_Serial/Global_Frame_Serial.ino | 5a4a1be031e05d938cc8cf878ccc52f45fb914d8 | [] | no_license | Nickick-ICRS/dmt_project | afb4dd4a8633f47e0a9504a24214189420b13ac7 | ae69ad0a72d9de08d690de11d8c0596b931422b3 | refs/heads/master | 2020-04-17T04:30:40.620736 | 2019-06-04T16:51:56 | 2019-06-04T16:51:56 | 166,233,035 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 15,472 | ino | Global_Frame_Serial.ino | // ROS stuff will only compile if the libraries etc. are installed in the correct locations.
// Commenting this out will result in none of the ROS dependencies being included in the compile
#define USE_ROS
#ifdef USE_ROS
#include <ros.h>
#include <cynaptix/FrameMeasuredData.h>
#include <cynaptix/FrameTarget.h>
#... |
2511f1a51b52c67d90810464ea4c5660cc68422c | f0eeb6724147908e6903a07cd524472938d5cdba | /Baekjoon/3048_개미.cpp | 9b73fa480451242ada7cfa06d8056f7a4c5d36fc | [] | no_license | paperfrog1228/Algorithm | bb338e51169d2b9257116f8e9c23afc147e65e27 | 14b0da325f317d36537a1254bc178bed32337829 | refs/heads/master | 2022-09-22T23:58:28.824408 | 2022-09-09T07:01:41 | 2022-09-09T07:01:41 | 152,889,184 | 3 | 0 | null | 2019-03-24T14:49:13 | 2018-10-13T16:04:45 | C++ | UTF-8 | C++ | false | false | 646 | cpp | 3048_개미.cpp | #include <stdio.h>
struct Ant{char a;int dir;};
Ant ant[30];
int a,b,t;
int main(){
scanf("%d %d",&a,&b);
for(int i=a;i>0;i--){
scanf(" %c ",&ant[i].a);
ant[i].dir=1;
}
for(int i=a+1;i<=a+b;i++){
scanf(" %c ",&ant[i].a);
ant[i].dir=2;
}
scanf("%d",&t... |
ab7bbeedc08cedf0a7ebf549cd17e4e9a9eb554c | 4598524620d159bd0d6e2fc2f390299b55ec9bc0 | /UVa/uva_11955.cpp | 07edc1d055f4b3f0edd7d63cebedf3142624aca9 | [] | no_license | skyu0221/Kattis-UVa | a586c15851063828f8b78c66f93b833af1c27fcd | bd3a0835d4bb9a6ab50fca6e0db3c8df7cc4ed1b | refs/heads/master | 2021-08-22T17:39:57.172371 | 2021-01-13T00:15:58 | 2021-01-13T00:15:58 | 69,905,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,477 | cpp | uva_11955.cpp | /* UVa problem: 11955
*
* Topic: Arithmetic
*
* Level: 1 point
*
* Brief problem description:
*
* ...
*
* Solution Summary:
*
* Mainly math problem
*
* Used Resources:
*
* ...
*
* I hereby certify that I have produced the following solution myself
* using the resources listed above in accord... |
29f30fba8eea29c87d3a55269fa90efa535e1fac | 5395d97da423150cb6471f868e8b2fe1a5d61a3e | /LO21/lo21-projet/code/ProjectCalendar/GUI/editecheance.h | 797c95cdcad85541d8c18b19f1c8d5d2cf4ccb3a | [] | no_license | rpellerin/UTC-UV | 0d241a4ee63022bc8793d127bc94421e57c4424d | fd85350af0d78658b98d438332b7e4361e5ab9d7 | refs/heads/master | 2021-08-06T20:42:07.602409 | 2021-02-07T22:38:53 | 2021-02-07T22:38:53 | 36,667,704 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 645 | h | editecheance.h | #ifndef EDITECHEANCE_H
#define EDITECHEANCE_H
#include <QDialog>
namespace Ui {
class editecheance;
}
class editecheance : public QDialog
{
Q_OBJECT
public:
//! Constructeur de editecheance
explicit editecheance(QWidget *parent = 0);
//! Destructeur de editecheance
~editecheance();
/**
... |
80029181f119e8e6c52f0cad1205edcd3b0941e9 | be5f4d79910e4a93201664270916dcea51d3b9ee | /rovers/fastdownward/src/search/potentials/potential_function.cc | 222f793210a1ef4f07d1f5198704c0d83e26d461 | [
"MIT",
"GPL-1.0-or-later",
"GPL-3.0-or-later"
] | permissive | mehrdadzakershahrak/Online-Explanation-Generation | 17c3ab727c2a4a60381402ff44e95c0d5fd0e283 | e41ad9b5a390abdaf271562a56105c191e33b74d | refs/heads/master | 2022-12-09T15:49:45.709080 | 2019-12-04T10:23:23 | 2019-12-04T10:23:23 | 184,834,004 | 0 | 0 | MIT | 2022-12-08T17:42:50 | 2019-05-04T00:04:59 | Python | UTF-8 | C++ | false | false | 800 | cc | potential_function.cc | #include "potential_function.h"
#include "../task_proxy.h"
#include "../utils/collections.h"
#include <cmath>
using namespace std;
namespace potentials {
PotentialFunction::PotentialFunction(
const vector<vector<double>> &fact_potentials)
: fact_potentials(fact_potentials) {
}
int PotentialFunction::get_v... |
c646e728c76408c98a2bf5bbd76aefa51a370aa4 | 38bb20de12b93e9c99a11f70270759e2253f9e50 | /Project/Source/MessageManager.cpp | cf17c0190e92a7f8656011eb46061e9190d81432 | [] | no_license | bullfrognz/Pool | c8eadf533791123b2e6cbe2aa221bb41e6ce23b1 | 9d2a5a2b0fa1ba3c6e6102d335c6f79e10a3e5b9 | refs/heads/master | 2020-04-06T03:51:46.140025 | 2014-05-24T03:30:06 | 2014-05-24T03:30:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,635 | cpp | MessageManager.cpp | //
// Diploma of Interactive Gaming
// Game Development Faculty
// Media Design School
// Auckland
// New Zealand
//
// (c) 2011 Media Design School
//
// File Name : MessageManager.cpp
// Description : Template for implementation (source) files
// Author : Bryce Booth
// Mail : bryce.bo... |
544aa49fb4207499ca749f233fc7e0d62aec8e3b | 669951b6fc45543581f452a75831eaae77c3627c | /766-E/766-E-41612820.cpp | cf1c544c1ac7c22b99f6035458d9bbce03e12941 | [] | no_license | atharva-sarage/Codeforces-Competitive-Programming | 4c0d65cb7f892ba8fa9fc58e539d1b50d0d7a9cb | c718f0693e905e97fbb48eb05981eeddafde108e | refs/heads/master | 2020-06-10T01:12:17.336028 | 2019-06-24T16:43:32 | 2019-06-24T16:43:32 | 193,542,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | cpp | 766-E-41612820.cpp | // nice one
#include<bits/stdc++.h>
using namespace std;
#define mx 100005
typedef int long long ll;
vector<ll> adj[mx];
ll dp[mx][30];
ll below[mx];
ll val[mx][30];
ll ans=0;
void addedge(ll u,ll v)
{
adj[u].push_back(v);
adj[v].push_back(u);
}
void dfs(ll u,ll par)
{
below[u]=1;
for(ll i=0;i<2... |
b3797e90ab36ed606c4a1feca49b4037e5d6c8a4 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/renderer/platform/fonts/canvas_rotation_in_vertical.h | 62d6bb25c3f7f326ab6bb0395bbd49a6313f4826 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 437 | h | canvas_rotation_in_vertical.h | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_CANVAS_ROTATION_IN_VERTICAL_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_CANVAS_ROTATION_IN_VERT... |
6c383d2d6316d87366a850092d40c3c3f8e72617 | 6f53e715ab0edeafc89cbf33941228314181c4cb | /Classes/Utility/Definition.h | 9cae273dfda9f457a5b9cf7309569470a7e5df56 | [] | no_license | HuyenPhuong/mini | 859a9b4450117ddc6ffea0b723a231d2787ea72e | e3a29eecebb5cdf2b2d5c34c801e17bdab8fdce2 | refs/heads/master | 2021-01-23T21:35:35.789464 | 2015-06-26T15:59:28 | 2015-06-26T15:59:28 | 38,119,254 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | Definition.h | #ifndef UTILITY_DEFINITION_H_
#define UTILITY_DEFINITION_H_
#define DISTANCE_SPAWN_MAX 280
#define DISTANCE_SPAWN_MIN 115
#define PILLAR_COLLISION 0x000001
#define NINJA_COLLISION 0x000002
#define WALL_COLLISION 0x000003
#define GROUND_COLLISION 0x000004
#define SPRING_COLLISION 0x000005
#define SCORE_COLLISION 0x000... |
f649ac043239b57a8e0fd914fda2941fb7c14ec9 | a42eb03dc1a430875b91c098d39c5e1c09f0b2a5 | /include/TTable.h | a319bf29685fd51f6d9a299b1666b5183b06f5a5 | [] | no_license | unn-student-2ndyear/mp2-lab7-tables | fcf7100beee4bfee84218f8584d0185222a8df9a | 3ca91312ba49d1d558af5558b13629430c591875 | refs/heads/master | 2020-05-29T20:29:38.659963 | 2019-05-30T06:01:20 | 2019-05-30T06:01:20 | 189,351,700 | 0 | 0 | null | 2019-05-30T05:34:15 | 2019-05-30T05:34:15 | null | UTF-8 | C++ | false | false | 1,673 | h | TTable.h | #ifndef _TTABLE_H
#define _TTABLE_H
#include<iostream>
#include"TTabRecord.h"
#include"tdatacom.h"
using namespace std;
#define TabOK 0
#define TabEmpty -101
#define TabFull -102
#define TabNoRec -103
#define TabRecDbl -104
#define TabNoMem -105
class TTable : public TDataCom
{
protected:
int DataCount;
int Eff... |
fd013ae158f4e5120bcaabe30a280ae19a3f51e2 | 5a02eac79d5b8590a88209dcc6cd5741323bb5de | /PAT/第一轮/第九章_树/并查集/书上例题/main.cpp | 5f3079fdbfaae38280c09d34b18bad7ea2ea22c3 | [] | no_license | qiatongxueshaonianC/CaiZebin-Code_warehouse | ddac8252afb207d9580856cfbb7e14f868432716 | 25e1f32c7d86d81327a0d9f08cd7462209e9fec2 | refs/heads/master | 2023-03-20T03:36:49.088871 | 2021-03-16T15:40:11 | 2021-03-16T15:40:11 | 348,395,087 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 677 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
const int maxn=110;
int father[maxn];
int findFather(int s){
if(father[s]==s) return s;
int temp=findFather(father[s]);
father[s]=temp;
return temp;
}
int main() {
int n,m,isRoot[maxn];
iota(father,father+maxn,0);
scanf("%d%d",&n,&m);
int u,v;
for(int i=0;i<m;i++){... |
00157a5a3d82fdb384f744b93498d930521a2091 | 12cc19461c3c4f2cac0105ada2baae26bd58bc9e | /src/core/ChSmartpointers.h | 07cf882949960fa8f83b2b96ec313b127dad4b14 | [
"BSD-3-Clause"
] | permissive | giovannifortese/chrono | b3fc96882ace6fdf0ff1a9fc266a553e90d05e41 | 16204177fd72b48c2eb7cc3f7a0e702e831d6234 | refs/heads/develop | 2021-01-16T21:38:57.995094 | 2015-02-03T22:41:02 | 2015-02-03T22:41:02 | 30,302,090 | 1 | 0 | null | 2015-02-04T14:17:47 | 2015-02-04T14:17:46 | null | UTF-8 | C++ | false | false | 18,363 | h | ChSmartpointers.h | //
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2010-2012 Alessandro Tasora
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectchrono.org/license-chrono.txt.
/... |
9a8d30523b52ce87981f045876562810ed933137 | a2c19e2746d6b5f18a01ae1aa5222a4e61d021c3 | /tunnel_graph/src/Tunnel/Tunnel.cpp | 65d659aeb091aebc0305cbbca1fdb0c70a9578d4 | [] | no_license | przemyslawkrajewski/Ziemniaki | 78c009a982fcf586e822d99bd04eb8b8cc8ba4d1 | 8a92a8a02d1aaf6aafd13c30d2fc00f169a26ea7 | refs/heads/master | 2020-03-06T18:52:57.473017 | 2018-05-22T19:56:30 | 2018-05-22T19:56:30 | 127,015,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,970 | cpp | Tunnel.cpp | /*
* Tunnel.cpp
*
* Created on: 5 maj 2018
* Author: przemo
*/
#include "Tunnel.h"
Tunnel::Tunnel()
{
//Temporary for testing
tunnelNodes.push_back(TunnelNode(Point(50,200,0),10));
tunnelNodes.push_back(TunnelNode(Point(200,50,0),10));
tunnelNodes.push_back(TunnelNode(Point(200,400,0),10));
tunnelNod... |
44eb191005e73e94c1fbce18d4044af389ee4023 | 244231ebd1a44da9e9b3a2394e2a9d018c824bdf | /数据结构、算法与应用-C++语言描述(第二版)/Chapter_6 线性表-链式描述/binSort.h | 05149b2b3fcabd8db5bbb141cc30c94e09d5f808 | [] | no_license | lchy1037/Algorithm-Notes | df7e4576a4fe040f579ff27217c915ea2d7e158a | 5c0516fc1da685dc0b6b51ecd82166705482f3b3 | refs/heads/master | 2021-01-20T07:18:46.951135 | 2017-09-20T12:05:46 | 2017-09-20T12:05:46 | 101,531,372 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | h | binSort.h | #ifndef BIN_SORT_H
#define BIN_SORT_H
// 箱子排序:首先把分数相同的节点放在同一个箱子里,然后把箱子链接起来就得到有序的链表
#include <iostream>
#include <string>
#include "chain.h"
using namespace std;
struct studentRecord{
int score;
string *name;
int operator!=(const studentRecord& x) const {return (score != x.score);}
operator int() con... |
5ac7e1f050a52e37f165f956aaeaf1a2f227a6e6 | c818531460ce87a6e6874fd154f2998dcac29fbe | /tablemodel.h | 8e250bcba3e58de489db225468c68531d6714024 | [] | no_license | Junyang-Xie/XJYsSniffer | 48e36fa5a56b33571297ec0205a89c4f61792ef4 | ed9836282e5dedb0a8b09829267bacb3a30d0b6a | refs/heads/master | 2021-05-06T05:51:33.732071 | 2017-12-23T12:41:23 | 2017-12-23T12:41:23 | 115,177,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | h | tablemodel.h | #ifndef TABLEVIEW_H
#define TABLEVIEW_H
#include "necessary.h"
#include <QStandardItemModel>
#include <QList>
#include <QStandardItem>
#include <QItemSelection>
class tableModel:public QObject{
Q_OBJECT
private:
int colNum;
QStandardItemModel M;
QList<const unsigned char*> rawData;
int index;
pub... |
683998acb65118712ae77cd5f8577cb51b20b104 | ab513fbacf6f85853cccaa04e295cc8083f51482 | /2nd Semester/Object Oriented Programming /Lecture/Code/Lecture9_demo/Lecture9_demo_Hello_world/lecture9_demo_hello_world.h | 879776432f78bbe2ac928c0309cf9113a92ed28c | [] | no_license | galoscar07/college2k16-2k19 | 1ee23e6690e4e5ac3ab9a8ed9792ebbeaecddbf6 | a944bdbc13977aa6782e9eb83a97000aa58a9a93 | refs/heads/master | 2023-01-09T15:59:07.882933 | 2019-06-24T12:06:32 | 2019-06-24T12:06:32 | 167,170,983 | 1 | 1 | null | 2023-01-04T18:21:31 | 2019-01-23T11:22:29 | Python | UTF-8 | C++ | false | false | 395 | h | lecture9_demo_hello_world.h | #ifndef LECTURE9_DEMO_HELLO_WORLD_H
#define LECTURE9_DEMO_HELLO_WORLD_H
#include <QtWidgets/QMainWindow>
#include "ui_lecture9_demo_hello_world.h"
class Lecture9_demo_Hello_world : public QMainWindow
{
Q_OBJECT
public:
Lecture9_demo_Hello_world(QWidget *parent = 0);
~Lecture9_demo_Hello_world();
private:
Ui::Le... |
348f50e4dbe62ff6a3a67b8de246bd77929ee7a9 | f699576e623d90d2e07d6c43659a805d12b92733 | /WTLOnline-SDK/SDK/WTLOnline_UI_PDA_QuestLog_RequiredMonsterKill_classes.hpp | 212f9aea9b5a89c4c62e6c65d8102fcd90a529df | [] | no_license | ue4sdk/WTLOnline-SDK | 2309620c809efeb45ba9ebd2fc528fa2461b9ca0 | ff244cd4118c54ab2048ba0632b59ced111c405c | refs/heads/master | 2022-07-12T13:02:09.999748 | 2019-04-22T08:22:35 | 2019-04-22T08:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | hpp | WTLOnline_UI_PDA_QuestLog_RequiredMonsterKill_classes.hpp | #pragma once
// Will To Live Online (0.57) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "WTLOnline_UI_PDA_QuestLog_RequiredMonsterKill_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------... |
1b610666013db730ad384ebb237f7cd229751738 | 2cbe5aa318b15cad457d70361f35cbb1e18702a3 | /lib/arduino/MP_SDM_SERIAL2/MP_SDM_SERIAL2.cpp | 79aded9aab2787880bf4f2d181a7b130c4042227 | [] | no_license | MakerPlayground/MakerPlayground_Library | ae27fb2b17d5784698d3623a419fc36430c83b9d | d427453f0a785e3be0282a25fb0b81b8b91ffcfe | refs/heads/master | 2022-12-22T04:05:38.819260 | 2020-09-10T09:09:22 | 2020-09-10T09:09:22 | 143,995,795 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,312 | cpp | MP_SDM_SERIAL2.cpp | #include "MP_SDM_SERIAL2.h"
MP_SDM_SERIAL2::MP_SDM_SERIAL2()
: sdm(SDM(Serial2, 9600, NOT_A_PIN, SERIAL_8N1, false))
{
}
int MP_SDM_SERIAL2::init()
{
sdm.begin();
return MP_ERR_OK;
}
void MP_SDM_SERIAL2::update(unsigned long current_time)
{
current = sdm.readVal(SDM220T_CURRENT);
voltage = sdm.readVal(... |
a9c3b2b01eac5f0787dc961c60021f79ff5860d4 | 494ce6c9d87abb4e21916a761a11656e0d90a10a | /Library.cpp | f302d252b6e6101f8adaf8d81f6912e852e54f9d | [] | no_license | parenoj/Library-Simulator | 76c46492b55385e7f5bc8c32a6587a1402f56496 | 429eb16fef2fe2a01715a77b3384fd1280333849 | refs/heads/master | 2021-01-24T06:13:10.683996 | 2015-04-09T07:10:30 | 2015-04-09T07:10:30 | 33,653,793 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,960 | cpp | Library.cpp | /*************************************************************
* Author: Justin Pareno
* Date: March 11, 2015
* Description: This is the Library class implementation file.
*************************************************************/
#include "Library.hpp"
#include "Patron.hpp"
#include "Book.hpp"
#include <iost... |
ee576ac34a03dbfa5c2bc7a2b0f5337cccd99fc8 | 3b52957226a012ec352f3f73192fd77828ad501c | /UVA/10954 - Add All.cpp | 45e153127047d1c8915ff9ac90642d01ccb33f3b | [] | no_license | jishnusaha/Competetive-Programming | 8912aa92962d4c72712de44449f6e9ac8f34fbbf | 5535ee9d67a37def87541639f488e328ba579a97 | refs/heads/master | 2021-06-30T00:18:26.959910 | 2020-12-21T18:18:37 | 2020-12-21T18:18:37 | 204,193,372 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | 10954 - Add All.cpp | #include<bits/stdc++.h>
using namespace std;
#define loop(i,n1) for(int l=i;l<=n1;l++)
#define pi acos(-1)
#define ll long long
int main()
{
int n,i;
while(cin >> n)
{
if(n==0) break;
int a[n];
loop(0,n-1)
{
cin >> a[l];
}
sort(a,a+n);
l... |
bb765ab108ff8fea99311763e69afbc6c4fbdfa8 | b9bfebe568f1afd9b90f83f3067e2aa1f266a8ee | /finally/C/var.cpp | a154fec1f207a625f841df22fe331a867b67f69d | [] | no_license | ZrcLeibniz/Java | fa7c737840d33e572e5d8d87951b6ccd609a38af | cfc3119712844dd8856009101575c819874d89f0 | refs/heads/master | 2023-06-21T01:49:48.132730 | 2021-07-23T07:07:42 | 2021-07-23T07:07:42 | 267,491,828 | 0 | 0 | null | 2020-10-13T02:18:30 | 2020-05-28T04:20:10 | Java | UTF-8 | C++ | false | false | 231 | cpp | var.cpp | #include<stdio.h>
int global = 100;
int main() {
int global = 200;
printf("global: %d\n", global);
int num1 = 0;
int num2 = 0;
scanf("%d %d", &num1, &num2);
int num3 = num1 + num2;
printf("num3: %d\n", num3);
return 0;
} |
33cd4fff4e504b27cb870599a1b7dbda69e9f62c | 4a634ad6eddcc372b7b02f0e0dfef93b74ac2879 | /acm/oj/codeforce/contest/5.11/b.cpp | 6519fa16b64d0174755804037e53d2ba88eca3a5 | [] | no_license | chilogen/workspace | 6e46d0724f7ce4f932a2c904e82d5cc6a6237e14 | 31f780d8e7c7020dbdece7f96a628ae8382c2703 | refs/heads/master | 2021-01-25T13:36:36.574867 | 2019-02-18T14:25:13 | 2019-02-18T14:25:13 | 123,596,604 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | cpp | b.cpp | #include <cstdio>
#include <queue>
#include <vector>
long int p[200000];
struct cmp
{
bool operator()(const int &a,const int &b)
{
return p[a]>p[b];
}
};
using namespace std;
int main()
{
int n,i,j,k;
long min;
priority_queue <int,vector<int>,cmp> c[3];
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%ld",&p[i]);
... |
11574399ed70466e986ce01cddeefd48ce89eca3 | 141744c5cdcc7b6bca16d89ca4773e2ce10ceb43 | /BTC++/bai161/bai161.cpp | b6929f90648b8433c1dca6b49c63babe096a863c | [] | no_license | truong02bp/C- | d193b1f6f28d22c5c57f74d397b7785378eff102 | 82971ec24602ce84c652e04b1f7eb487a882aa1c | refs/heads/master | 2023-03-07T16:25:59.091612 | 2020-08-08T07:28:21 | 2020-08-08T07:28:21 | 263,206,451 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 975 | cpp | bai161.cpp | #include<iostream>
using namespace std;
bool check(string s , int k);
long long count(string s, int k);
int main()
{
int t;
cin >> t;
while (t--)
{
int k;
string s;
cin >> s >> k;
cout << count(s,k) << endl;
}
return 0;
}
bool check(string s , int k)
{
int c... |
77368fe69de0354f2a4ac9b565ebceeff6d58d09 | 5dfe3265612e8155ba096d0ba9f168789020874c | /solution_checker.cpp | 72d87790b7c5af83863f2ba553945cb7117e9edb | [] | no_license | ranjan103/Parallel-Graph-Colouring- | 66bf9aefe5047bdef086cf6196ec7173986e7065 | b4ee9970d0be0c6bbb4ad549381b432f76107f4e | refs/heads/master | 2020-08-08T19:05:22.667129 | 2019-10-09T11:14:16 | 2019-10-09T11:14:16 | 213,895,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | cpp | solution_checker.cpp | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
if(argc != 3) {
cout << "Try ./a.out <graph> <colouring>\n";
return 0;
}
int n, m, u, v, C=0;
ifstream graph(argv[1]);
ifstream colour(argv[2]);
graph >> n >> m;
vector<int> *g = new vector<i... |
a1cb5ee6d78458a63b3dce24607fc18c5fe0e678 | 5bcb9c443543a046b0fb79f8ab02d21752f25b0f | /server/characters/Guard.hpp | dcbad3021a9375252a85accf9832c651b875fd16 | [] | no_license | jordansavant/roguezombie | 69739a2cd6f86345ba808adc2b9287b3b9e37e3d | 01cf466eeab7dbf108886eb11f8063c82932a0d7 | refs/heads/master | 2020-04-18T19:35:56.803764 | 2019-01-27T14:08:47 | 2019-01-27T14:08:47 | 167,715,791 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | hpp | Guard.hpp | #pragma once
#ifndef RZ_GUARD_H
#define RZ_GUARD_H
#include "SFML/Graphics.hpp"
#include "SFML/Network.hpp"
#include "../../bitengine/Game.hpp"
#include "../../bitengine/Network.hpp"
#include "../Character.hpp"
class DialogNode;
class Guard : public Character
{
public:
Guard();
virtual void load(Level* lev... |
e32886f4f4629f0bbc5e54f5a4d57e5cb81635f2 | c8f7e1beffa9b0baf06e82c9a0e8a198bf5e23c5 | /Arrays/Add one to number.cpp | 7b2802cc3d9ecbb6c6021052ab98c8ed24cef36f | [] | no_license | umanshi/Interviewbit-Solutions | 555d362226e412feec74fca024120d8016adba0e | 21be4a042e416779196cab57e02ebe01c562f25d | refs/heads/master | 2021-07-12T21:45:17.702598 | 2020-06-07T17:19:52 | 2020-06-07T17:19:52 | 142,772,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | Add one to number.cpp | vector<int> Solution::plusOne(vector<int> &A)
{
int e = A.size()-1;
int carry = 0;
if(A[e]<9)
A[e] = A[e]+1;
else if (A[e]==9)
{
A[e] = 0;
carry = 1;
for (int i=A.size()-2; i>=0; i--)
{
A[i]+=carry;
if(A[i]==10)
{
... |
690b52c9dec470f4fb0278e52ae354f14b635364 | 977c82ec23f2f8f2b0da5c57984826e16a22787d | /src/IceRay/main/interface/python/core/geometry/complex/intersect.cpp | b125490a2a6e3bc65cec343ff09bc4f317a69ce6 | [
"MIT-0"
] | permissive | dmilos/IceRay | 47ce08e2920171bc20dbcd6edcf9a6393461c33e | 84fe8d90110c5190c7f58c4b2ec3cdae8c7d86ae | refs/heads/master | 2023-04-27T10:14:04.743094 | 2023-04-20T14:33:45 | 2023-04-20T15:07:18 | 247,471,987 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,317 | cpp | intersect.cpp |
#include <boost/python.hpp>
#include "../../../def_submodule.hpp"
#include "../../../../../../geometry/_pure/_base.hpp"
#include "../../../../../../geometry/complex/intersect.hpp"
void expose_IceRay_geometry_complex_intersect()
{
//MAKE_SUBMODULE( IceRay );
MAKE_SUBMODULE( core );
MAKE_SUBMOD... |
9e0e46297ab9456e658580362c71d3ab0cd8863a | 2674ddde200c5cded2170ec563a37652f1ae47a4 | /AddrSearch/IniFile.h | 06cb94cabdccd558c298be82ae11968c3a718252 | [] | no_license | geekxiaoxiao/AddrSearch | acbd3c3c1a33f298d1bac2f8a370daeb2935f782 | 158716e295f596be7f6bee295525a8540642c4a9 | refs/heads/master | 2023-07-06T01:20:10.360766 | 2023-07-01T08:53:55 | 2023-07-01T08:53:55 | 211,758,970 | 64 | 26 | null | null | null | null | UTF-8 | C++ | false | false | 880 | h | IniFile.h | // IniFile.h: interface for the CIniFile class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_INIFILE_H__4D7A97DE_A567_431A_AC27_1A3D608B70F0__INCLUDED_)
#define AFX_INIFILE_H__4D7A97DE_A567_431A_AC27_1A3D608B70F0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_... |
e259b2d549e09f25adcf9f5897466d696ff9e259 | 192a97954827dad0e87b2ccf71d8b883287c05e2 | /src/rc-visual/objects/Pixel.h | 6c655f0428379a80faef709d7baf9bf082fba963 | [] | no_license | danomatika/rc-visual | e3f7832ce84702c2752fd4aab37249d0ad5bb7e8 | d2841cdd559c5bd9e4e340a553a9976510f6a679 | refs/heads/master | 2020-12-24T14:26:47.019606 | 2017-01-25T09:17:58 | 2017-01-25T09:17:58 | 2,255,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,201 | h | Pixel.h | /*==============================================================================
Pixel.h
rc-visual: a simple, osc-controlled 2d graphics engine
Copyright (C) 2007, 2010 Dan Wilcox <danomatika@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Genera... |
30b0483a768f244ad8be0bcac54b8b00a8b1e4e3 | ad85bf7f2c06a10b1347a7bc7c99e1adf164bcf5 | /Classes/GameObject.cpp | b4df83f16e996066821550220895df39084e1a36 | [] | no_license | giginet/LuaBindSample | 9d59699b3f4fa7a75e9a06d02bb2378a8e9d2934 | 772b2bd36a1865f98aaf5b357b69c9f669c6a4e3 | refs/heads/master | 2021-01-19T04:51:02.970235 | 2013-12-15T19:25:38 | 2013-12-15T19:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | cpp | GameObject.cpp | //
// GameObject.cpp
// HelloLua
//
// Created by giginet on 2013/12/16.
//
//
#include "GameObject.h"
GameObject::GameObject(float x, float y) {
}
void GameObject::method() {
} |
2a9992d4409172c17bf7122760b15ed1b1c517d1 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/12_8879_35.cpp | c5f238718ed073b9d9c26beda257d87511015fa8 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,137 | cpp | 12_8879_35.cpp | /*
* File: b.cc
* Author: cheshire
*
* Created on 14 Апрель 2012 г., 16:46
*/
#if 1
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <bitset>
#include <complex>
#include <functional>
#include <fstream>
#include <iostream>... |
e035236e8e0c0fcf8470413c8eaf2f244275273c | 46d080ea08657bc6d812defd0c461493330fd0e4 | /small_net/main.cpp | 4958a011f5e5bd0fb4afbc06c9bfd44dc0e50e94 | [] | no_license | qinjian623/plib | fdbd650f042f7b2e9617e83b6ca07deea7a2378f | 4cd12669b98e618f3000bbf67a4aabf28b4fec2e | refs/heads/master | 2021-01-22T10:36:06.609715 | 2017-04-19T01:34:12 | 2017-04-19T01:34:12 | 8,453,401 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,852 | cpp | main.cpp | #include "main.h"
int main()
{
cout << "Program start." << endl;
Net* n = load_model("/home/qin/model.txt");
int training_size = 50000;
int test_size = 5000;
int ta[6] = {30*30, 30*30, 30*30/4, 30*30/8, 1, 1};
vector<int> arch(&ta[0], &ta[0]+5);
ActivationFunct... |
d0259f1846be1e3abd4fc4d9e59fada52ad3cd30 | 9c7e207304e9ad5a9f0863ab611a619035773575 | /menghitung luas lingkaran.cpp | 818ee0aed908ae693daf38c16786c30646642088 | [] | no_license | MeilaniAgistia/M | 882cf8f2cf13ebce34ec539f8080ef9d190d53b5 | 93fc8f25539eb2cb477ee6a827080a2c2e8a9319 | refs/heads/master | 2023-09-05T18:15:41.274554 | 2021-10-28T15:08:05 | 2021-10-28T15:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | menghitung luas lingkaran.cpp | #include <iostream>
using namespace std;
//Compiler version g++ 6.3.0
int main()
{
std:cout<<"Meilani Agistia \n";
float luas, a= 4.5;
luas, b= 3.2;
luas, c= 2.1;
int r;
cout<<"masukan nilai jari-jari : " ;
cin>>r;
cout<<"luas lingkaran : " ;
cin>>luas;
luas = a ... |
17bfb7be7c488c24be330aa8f40c17159c29ef52 | f853b52091ffc09dbeebca5b3a1469981ad587ec | /TSE/Assignment 3/GPUMandelbrot/GPUMandelbrot/GPUMandelbrot.cpp | 7e4bc2b81362b3267260415f55ccfcee3d89e33c | [] | no_license | corruptpony/S6T | 819daa02adbff9214ad83ff65103ffdf23f71e38 | 9e10048f4da1a6b4072c744c2df3d39ef87e7a26 | refs/heads/master | 2021-01-19T12:05:08.802299 | 2017-06-20T11:03:43 | 2017-06-20T11:03:52 | 82,283,895 | 0 | 1 | null | 2017-03-06T09:35:43 | 2017-02-17T10:04:50 | C++ | UTF-8 | C++ | false | false | 4,785 | cpp | GPUMandelbrot.cpp | #define _CRT_SECURE_NO_WARNINGS
#define _SCL_SECURE_NO_WARNINGS
#include "opencl_utils.h"
#include <windows.h>
#include <stdio.h>
#include <iostream>
#include <CL/cl.h>
#include <stdlib.h>
int main() {
/* Define GPU parameters */
cl_device_id device_id = NULL;
cl_context context = NULL;
cl_command_queue command_q... |
408175a411786af85d8a8d4602d8562cddd2adcc | dea33eab2279bfff0b54ba1409b9d7896d08bbfe | /matrixmultiplicationomp/MatrixMultiplication/MatrixMultiplication/MatrixMultiplication.cpp | 93645b4bca919a5b4a98e45cd4d5f39bdada8e8c | [] | no_license | alextoropu/ADP | 0405200a9385b47274ec71a8a118f02e4261b506 | 20904f89b679975b49a1eb851280fb63d0e31aa5 | refs/heads/master | 2022-01-15T07:30:56.114649 | 2017-05-31T11:41:09 | 2017-05-31T11:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | cpp | MatrixMultiplication.cpp | #include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include "stdafx.h"
void transpose(double *A, double *B, int n) {
int i, j;
for (i = 0; i<n; i++) {
for (j = 0; j<n; j++) {
B[j*n + i] = A[i*n + j];
}
}
}
void gemm(double *A, double *B, double *C, int n)
{
int i, j, k;
for (i = 0; i < n; i++) {
f... |
73cb81b6d7fa6c97227d89526a277e5842b4d3f6 | 7c3d724d136a7e08e9ea78aa934daab85da1bc9b | /Øving5/Øving5/BlackJack.h | 42df2011845d879ce82bc6f8a963ba833f970f5f | [] | no_license | TheLarsinator/NTNU | 3836eaed64a506d81cc67fca0f29267d74671deb | d7155ec499ecf98f90c69e8c21b45a807480c125 | refs/heads/master | 2021-01-10T15:11:41.714500 | 2017-01-15T21:18:41 | 2017-01-15T21:18:41 | 52,882,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | h | BlackJack.h | #pragma once
#include "Card.h"
#include "CardDeck.h"
class BlackJack
{
private:
CardDeck deck;
int playerHand;
int dealerHand;
int playerCardsDrawn;
int dealerCardsDrawn;
Card dealerCards[10];
Card playerCards[10];
void printIntroduction(bool withBets);
public:
bool isAce(Card *card);
int getCardValue(Card *c... |
5fd564b3f8830136d60e5a8d93b5ca17e77fd0c8 | e24a91336211ae32f0752f63d0f749efe3ae85bd | /src/kalman_filter.cpp | 65303e132ae0c5a3bb98cab27c698b81b859636d | [] | no_license | prakharsharma/CarND-Extended-Kalman-Filter-Project | a3b0b75200289dadca115f1a1429687dc40291ff | 18438b14f1ac8efc18c881ef5299592f1c2bdaeb | refs/heads/master | 2021-01-22T23:26:05.483887 | 2017-03-22T22:40:10 | 2017-03-22T22:40:10 | 85,637,461 | 0 | 0 | null | 2017-03-20T23:27:36 | 2017-03-20T23:27:36 | null | UTF-8 | C++ | false | false | 1,956 | cpp | kalman_filter.cpp | #include <iostream>
#include "kalman_filter.h"
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
KalmanFilter::KalmanFilter() {}
KalmanFilter::~KalmanFilter() {}
void KalmanFilter::Predict() {
x_ = F_ * x_;
MatrixXd Ft = F_.transpose();
P_ = F_ * P_ * Ft + Q_;
}
void KalmanFilter::Update(con... |
6e8cbe6fd22af39ef7b5bd33ca44b72f08301717 | f03e82604c4753ff2ea23565186e3cc0be0644fd | /cpp/GCR_py_wrap.cpp | 029b4f32d54e7e510204b722355205a4bb445b92 | [] | no_license | Call1st0/dft-based-watermarking-method-with-GCR-masking | 2b2eca0dff6fbc00f37cf43b84a7f684404d1db4 | 86dfbbc24f6c6353d9c6a0ea1bd7ef58293f4728 | refs/heads/master | 2022-11-11T16:45:18.242417 | 2020-07-09T10:10:26 | 2020-07-09T10:10:26 | 189,598,034 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,881 | cpp | GCR_py_wrap.cpp |
#include"armadillo"
#include"Gamut.h"
#include"RevInt.h"
#include<string>
//Function declarations
extern "C"
{
//Gamut mapping
void *makegma(double *Lab, size_t no_Lab, int *ch, size_t no_ch);
void map(void *gma, double *Lab_set, double *Lab_set_new, size_t no_Lab_set, unsigned short *outgamarr, pfnPrintProgress P... |
e0c54dde36d61b7c77c3a9a0d6672c99f25b178a | d0a5efa8f028b8eaccc8c536f01e61a8ab32accf | /include/majreco/Configuration.h | 7b1471a3a8d65398099a002b81203b9424314de6 | [] | no_license | hcsullivan12/Majorana | f9faab5e84ffe79947e62030808263be3b5d0207 | b5f15f48bb87f034ba0ce6fac17c1131b21a903d | refs/heads/master | 2021-06-24T02:30:23.124268 | 2019-11-26T11:40:56 | 2019-11-26T11:40:56 | 164,157,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,449 | h | Configuration.h | /**
* @file Configuration.h
* @author H. Sullivan (hsulliva@fnal.gov)
* @brief Singleton to hold user configuration for simulation
* and reconstruction.
* @date 07-04-2019
*
*/
#ifndef MAJRECO_CONFIGURATION_H
#define MAJRECO_CONFIGURATION_H
#include <string>
#include <array>
#include <vector>
#include... |
e1555cf7af99c971e64b275a2023bde55a884abf | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1480487_0/C++/Tokiru/main.cpp | a0565c5526827714d324490ddfb80bf12e5cd67b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <assert.h>
using namespace std;
const int MN = 242;
int n;
int result [MN];
int main()
{
ifstream in ("input.txt");
ofstream out ("output.txt");
int T;
in >> T;
for (int t=1; t <= T; t++) {
in ... |
bebe51e3c17d7b225c9ad48375790a771c8c5c17 | 99f93e73e266589f9be1595e98bb6de72d953f5d | /cppCode/main.h | 6d7d85bb534b9b23551c1add1ba0a49a10c4eea1 | [] | no_license | rob521/Gone-Fishin | a5c25227a2b03d2673837df8505db39b6cd342f0 | a7be9b36c8969e1901ea84e9ea0547933a808d95 | refs/heads/master | 2021-01-21T13:25:45.648951 | 2016-06-02T20:19:25 | 2016-06-02T20:19:25 | 55,574,918 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | h | main.h | #ifndef _MAIN_
#define _MAIN_
#include<iostream>
using namespace std;
const bool userTest = false;
const char fileName[] = "Fish.csv";
const int BUFFER = 200,
delaystabalize = 10000, // 50 sec delay
csvOffset = 425;
const char port[] = "COM3",
matlab[] = "matlabCode.ex... |
ab7e4488bce91036275a8bd9f6584da02a69ce9f | c637a256bb914409836f821dc972bff8d60aaaf2 | /tests/cedet/ede/src/generic/gen_make/sub/test.cpp | e76ab160448bbced4bb05a14611f1e8f495abbfe | [] | no_license | abo-abo/cedet | 17bf0ebd7ef018fe3b7dffcbaa9892a54e1357e1 | 56e75b0323b87a0c32becd4e0f24bf69ff6f951c | refs/heads/master | 2021-01-18T22:33:58.682998 | 2015-04-29T08:47:54 | 2016-05-11T11:50:50 | 32,517,164 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 30 | cpp | test.cpp | // C file in generic project.
|
31ea62c99d8e5c0d45f788dbdf6710e0c14a0c70 | 031116cb55dfcdf629fc9dbe6230d399ee108d09 | /dictionary.h | 4a989ca76e5ee6fa41ef3c47f9eedcf376ecedf4 | [] | no_license | qeqs/Dictionary | fd7519bd219a5e879dadd019e2c7ef187b3ab8f8 | deed72ece26c5cab516968b4f7f675292798af90 | refs/heads/master | 2021-01-19T08:18:01.539941 | 2017-04-16T18:19:50 | 2017-04-16T18:19:50 | 87,618,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | h | dictionary.h | #ifndef DICTIONARY_H
#define DICTIONARY_H
#include "map"
#include "list"
#include "string"
#include "initializer.h"
#include "wordlinker.h"
using namespace std;
class Dictionary
{
public:
Dictionary();
void create_new(string name, string name2, map<string,string>* words);
void update_one(string name, stri... |
fa5039e51498309f2e1a20c8d9421e99c50c3442 | aca6b5bd57c7eb0f403cd2caf799e827d60f7b08 | /globals.h | 46349c7b5ae201fc8e9e17dbcba5667fb7e3467c | [] | no_license | hamishHay/ODIS | d99691d075b637945674c39874f1ada1a01f9a8b | 4411f453c3a83463cfb80b486bd95956206216d7 | refs/heads/master | 2022-03-24T14:14:10.586056 | 2017-03-20T19:00:02 | 2017-03-20T19:00:02 | 37,612,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,288 | h | globals.h | // FILE: globals.h
// DESCRIPTION: Header file for the globals class. Globals is an object designed
// to store useful model constants that, if necessary, are accessible
// anywhere in the code. These are listed and defined below in the
// public section of the class below, but in... |
0864a167f5c8e6d88853f420f1cf796fe3dee3fc | e38674d871d484bfd69ea96d786a18200f237da4 | /Search & Sort/find_missing_and_repeating.cpp | 9825df12f50dca0ad0257b91e2effce28b940f30 | [] | no_license | r0cket007/450_DSA_Question | 9cc2019277040fedac7e31613a98890d010b0296 | d3354ea703452bfb844dbce65d2706b68ac2fdf7 | refs/heads/master | 2023-06-20T20:04:18.609746 | 2021-07-28T17:58:57 | 2021-07-28T17:58:57 | 360,415,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,356 | cpp | find_missing_and_repeating.cpp | /*
Find Missing And Repeating
Link: https://practice.geeksforgeeks.org/problems/find-missing-and-repeating2512/1#
*/
#include<bits/stdc++.h>
#define int long long
using namespace std ;
//---------------------------------------------------------------------------
class Solution{
public:
long long *... |
8a619de1be05e0ddddaf57ae3492ac81ee44fb84 | 485303ba578e154b2c0c110f8e0fec758d921ed0 | /week-06/exam/Exercise3/PaperbackBooks.cpp | a1efc3cdfc6060819952bf1768735f52ce7d4eb8 | [] | no_license | green-fox-academy/mazurgab | 0b6e3c3a7fe0a4940ff80c4e25f9f386b408ab7b | 1eae9aae0338122a3d1536fecd2eb15dc7871a3e | refs/heads/master | 2020-04-02T17:22:07.998691 | 2019-04-28T21:52:14 | 2019-04-28T21:52:14 | 154,655,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | PaperbackBooks.cpp | #include "PaperbackBooks.h"
PaperbackBooks::PaperbackBooks(const std::string &title, const std::string &author, int releaseYear, int pageNumber)
: Books(title, author, releaseYear, pageNumber) {}
int PaperbackBooks::getWeight() {
_weight = 20 + (_pageNumber * 10);
return _weight;
}
|
c0845459ee3b7d1011c85231c16b80df13a15615 | ead0f3f313bdd574545794b0c372eca6bbca9830 | /12844XOR.cpp | 74c95fc3f9119f707254723ed3388c69b74ebd75 | [] | no_license | tomcruse/algorithm | fe237ea40d6c29add4b124b84f8714f846a8e385 | 3029b7ea498c9b63c145f5d5bda26dfd7a17a447 | refs/heads/master | 2021-06-23T00:23:38.983751 | 2017-08-19T17:14:56 | 2017-08-19T17:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | 12844XOR.cpp | #include<cstdio>
#include<algorithm>
using namespace std;
int seg[2002000], lazy[2002000];
int init(int pos, int val, int node, int l, int r) {
if (pos<l || pos>r) return seg[node];
if (l == r) return seg[node] = val;
int mid = (l + r) >> 1;
return seg[node] = init(pos, val, node * 2, l, mid) ^ init(pos, val, node ... |
88f74b3f00a9862dc7a1f7978da1b3b981e68091 | 28c89d3ee00a86d4b9c3b6f043a87d1f238ed4b9 | /io/filter/indent_output.hpp | aac7251e27a5ea39f8aeb57b0fd4639e8ea970b9 | [] | no_license | rsenn/libborg | 9063f2077b2637e36e7c6402daa90f7ecdc94335 | 2476468f8e16c47a773ae6c37fec5af4866b494d | refs/heads/master | 2020-04-05T23:45:57.718334 | 2016-02-03T04:06:32 | 2016-02-03T04:06:32 | 21,788,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,094 | hpp | indent_output.hpp | //----------------------------------------------------------------------------
//! \file indent_output.hpp
//! \brief Implements indent_output.
//! \svn $Id: wrapper.hpp 42 2007-03-23 01:49:14Z nexbyte $
//----------------------------------------------------------------------------
#ifndef INDENT_OUTPUT_HPP
#defin... |
ec9dab326973c3830845d8caac99751a72455938 | 8700d558b948dc42c422f5b7760cf4d32b91f538 | /src/mcapi/dmalloc/dmalloc.cpp | 8ebaa3d22c77d29f27a633ae190c9ac02809bd84 | [] | no_license | lubing521/mcapi | 6594faf85494d51b28b934f537925a06235a8e26 | b0b9bada1e307ee347e2d7d8486319d9fc63bfce | refs/heads/master | 2020-12-31T05:56:07.260336 | 2012-04-09T01:29:39 | 2012-04-09T01:29:39 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,764 | cpp | dmalloc.cpp | /*
* Copyright (c) 2006-2008
* Author: Weiming Zhou
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this p... |
b0b9885a7c150faba0d3a50b539155ea22a77e52 | bbac388eb6b53daec63190e2f271a18fe9bfb163 | /apc001/D.cpp | c3cbf13d887d55f8525cbe3bbe9c7d5fc50f0e02 | [] | no_license | tatsumack/atcoder | 8d94cf29160b6553b0c089cb795c54efd3fb0f7b | fbe1e1eab80c4c0680ec046acdc6214426b19650 | refs/heads/master | 2023-06-17T23:09:54.056132 | 2021-07-04T13:03:59 | 2021-07-04T13:03:59 | 124,963,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,420 | cpp | D.cpp |
#include <limits.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include ... |
32f0689b8b0d872652604e79815f92277bb854be | fad834bfe162796b77f1023b9f3a0ccddb0dd9ab | /include/splines/splines_aux.h | 879c69d9d619dfff10c6cb8f5bd724390232c614 | [] | no_license | xpPaul/splines | e0765e7d83086c152644ead827188d4e22231884 | 9b9ec2e7035f654059dfc5067937734e0e1b58a3 | refs/heads/master | 2020-04-26T00:15:01.794446 | 2014-12-24T17:28:36 | 2014-12-24T17:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,479 | h | splines_aux.h | ///////////////////////////////////////////////////////////////////////////////
/// common definitions and auxiliary stuff
#pragma once
#include <stdexcept>
namespace gsl
{
typedef size_t size_type;
// ----------------------------------------------------------------
/// gsl exceptions base c... |
ad436dc64570a76efcc95d90e53c35bdc2beaa87 | b783502faf6fda33eb03575c054a198306541f81 | /PSME/agent/storage/src/command/get_network_interface_info.cpp | 81732acbbde079e4c0e8a98c0efef66bdba2b6ae | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT",
"JSON",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-permissive"
] | permissive | intelsdi-x/intelRSD | 53f763e386de0b1cb9c50427d76943327e2b6315 | de77af174608d3b30232625e0f0e6e7cbbae8b59 | refs/heads/master | 2022-11-23T03:14:50.978516 | 2022-11-07T23:02:34 | 2022-11-07T23:02:34 | 153,187,714 | 0 | 0 | null | 2018-10-15T22:06:10 | 2018-10-15T22:06:09 | null | UTF-8 | C++ | false | false | 1,347 | cpp | get_network_interface_info.cpp | /*!
* @brief Implementation of getNetworkInterfaceInfo command.
*
* @header{License}
* @copyright Copyright (c) 2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at ... |
7a759f3312facc4ed38cfc4f2bc5a16cd7292f7a | 5d6e6beb365e5e52db41394826ccfbc3e51bcfb7 | /nanosrv/nanosoft/core/netdaemon.h | 148d5cfac29f67523c74d866d12a710b883c99c7 | [
"MIT"
] | permissive | zolotov-av/nanosoft | 86d600d60ec74ae5b456a9d5afd7697883ac57ee | 2aebb09d7d8a424d4de9b57d7586dbb72eed9fa0 | refs/heads/master | 2021-03-19T08:37:57.683170 | 2020-05-27T14:34:29 | 2020-05-27T14:39:26 | 97,500,048 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,477 | h | netdaemon.h | #ifndef NANOSOFT_NETDAEMON_H
#define NANOSOFT_NETDAEMON_H
#include <nanosoft/core/object.h>
#include <nanosoft/core/netobject.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <stdio.h>
#include <time.h>
/**
* Callback таймера
*/
typedef void (*timer_callback_t)();
/**
* Главный класс сетевого демона
*/
class ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.