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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d21f85164345da209526ec1d9a4779f9da26394c | 224eb10a967bdf308f836fa0cdd8977af4b4e80a | /ripemd.h | 8321086f2579bf1b1dacd965ea391b1f13392962 | [] | no_license | ollolo4/xxx | bddaec394c1e37ba55e420081b2a406e9d1cd391 | 5d030abc3c355423ee9c9d129a6b501dca0ece39 | refs/heads/master | 2021-01-01T18:07:49.171720 | 2013-06-13T16:59:42 | 2013-06-13T16:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 225 | h | ripemd.h | #ifndef RIPEMD_H
#define RIPEMD_H
#include <QFile>
#include <iostream>
#include <QByteArray>
#include <QtEndian>
#define SIZE_OF_BLOCK 64
using namespace std;
QString ripemd(char *str);
#endif // RIPEMD_H
|
91e9ae4520d850a1ed933428da82426fc763d672 | fef54c29030db6575348c2865b5ade21cb536d40 | /module_03/ex02/ScavTrap.cpp | 094ae47e357f9df0d5c0e97e1c3beeae65326f51 | [] | no_license | lionariman/cpp_modules | 6c9ace87659ae6f349af26241c1df6ef2d2455f9 | efc203b95c1041841f14b54a6773b65ffabd873c | refs/heads/main | 2023-06-04T20:04:14.578822 | 2021-06-28T17:52:38 | 2021-06-28T17:52:38 | 369,099,464 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,456 | cpp | ScavTrap.cpp | #include "ScavTrap.hpp"
ScavTrap::ScavTrap(std::string name) : ClapTrap(name) {
this->name = name;
const int length(3);
std::string msgs[length] = {
" was just born",
" escaped from the factory",
" has been updated"
};
int index = std::rand() % length;
std::cout << BLUE << this->name << msgs[index] << B... |
51127bc06d04c5339842d5372c688b5795e50c16 | 41f7e74b2cd679545068b049d23256e77ef864f7 | /src/negative.cpp | 2b84893d1f4f4c4d4f20a2b600ce102042b8841c | [] | no_license | karimalami7/MSSD | f842772a332df195a816f5a470fe53839afc79dd | 70d2950f9937bac4dfcc3bdff82b97d44bd4e2ca | refs/heads/master | 2021-07-13T07:20:29.393147 | 2020-06-12T14:59:27 | 2020-06-12T14:59:27 | 166,392,405 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 34,440 | cpp | negative.cpp | #include "negative.h"
using namespace std;
namespace NEG{
void triScore(TableTuple &donnees, Space d){
// Cette procédure trie les données suivant le score (somme des valeurs des attributs)
DataType i, n=donnees.size();
Space j;
vector<DataType> aux(n);
TableTuple auxT=donnees;
for (i=0;i<n;i++)... |
c020fa62b75de24c63d7076e291128c925303c5e | 6efe859757d37f5f20693c5e47508f4c6fcf3666 | /uhunt/11504.cpp | 91b6a920f7f1544781d2a344e41931afcdcbcccc | [] | no_license | uvafan/ICPC_Practice | 6665309b05937f9980a69a342eb917d793d415ae | 3b6d84bacc0a72d18cc4ba5a2b0e7478b6eb6fc5 | refs/heads/master | 2021-07-06T15:08:46.299846 | 2019-04-01T22:29:42 | 2019-04-01T22:29:42 | 104,101,562 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,829 | cpp | 11504.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
#define INF 1000000000
vector<vi> adjList, adjListSCCS, sccs;
vi visited, dfs_low, dfs_num, S, indegree, sccID;
int dfsNumberCounter;
void SCC(int u){
dfsNumberCounter++;
dfs_low[u] = dfs_nu... |
540c584f0f40aea5dd9ea89d91ff4836942e172c | b84ea42839237dd1c6cfa85267dc663cbc103516 | /src/include/Video/Shader.h | 888a6c63718d2ffc3a06bbfabe1c5ac071509712 | [] | no_license | MaximumOverflow/TwigEngine | 6d37d7b5e47af7151535189d39d2ca5dbd5e2882 | 2bdb998da7a9f3cb40dd7919a228f962c9def499 | refs/heads/master | 2020-06-22T19:26:16.061198 | 2019-10-02T21:26:15 | 2019-10-02T21:26:15 | 186,144,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,175 | h | Shader.h | //
// Created by max on 19/07/19.
//
#ifndef TWIG_ENGINE_SHADER_H
#define TWIG_ENGINE_SHADER_H
#include <string>
#include <unordered_map>
#include <memory>
#include "Types/Types.h"
#include "External/robin_hood.h"
#include "Asset.h"
namespace TE {
class Shader : public Asset {
protected:
robin_hood:... |
e4e0354007956e23c2c2fb63f71275f70235fef9 | b3b39a553ec4f92d5631090090094348deddec3e | /practice/graph/kruskalMST(practice)/kruskalMST(practice)/checkCycle.cpp | 7fb6bddb0c9ce45fe3f645132eea6e2b65eb0fdf | [] | no_license | halloTheCoder/Algorithm | 1015dfcfecd97234d6984aad1126ce6dfee8af06 | 6b0ade9a4432e5dd96ab846fc42fdaa426cf207b | refs/heads/master | 2021-05-15T09:44:48.161700 | 2017-11-03T08:02:16 | 2017-11-03T08:02:16 | 108,151,138 | 1 | 0 | null | 2017-11-03T08:02:17 | 2017-10-24T16:03:15 | C++ | UTF-8 | C++ | false | false | 1,042 | cpp | checkCycle.cpp | #include "stdafx.h"
#include "checkCycle.h"
#include <algorithm>
checkCycle::checkCycle()
{
}
checkCycle::checkCycle(int v)
{
this->v = v;
adjL = new std::vector<int>[v];
visited = std::vector<bool>(v, false);
hasCycle = false;
}
void checkCycle::addEdge(int src, int dest)
{
adjL[src].push_back(dest);
adjL[d... |
9d9c9ea65c1222ef9c41fe9aa87f0a1175e12ab0 | 86955fc67a788438dc7629b7da6598051c381703 | /FlashReader/VendorRecordsDlg.h | 7214160cb883d871db375f8c2d5574777d24d59d | [] | no_license | isliulin/WorkProjects | d1cc87cf39a85c678dd2fff0637ff7b7095f8134 | 81a44104d9f59fdffe85efe1990dbce5b9d036e6 | refs/heads/master | 2023-03-15T20:07:57.011722 | 2015-03-16T15:59:39 | 2015-03-16T15:59:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | h | VendorRecordsDlg.h | #pragma once
#include "FlashDatabase.h"
#include "OxGridList.h"
class CVendorRecordsDlg : public CDialog
{
public:
enum { IDD = IDD_VENDOR_RECORDS };
protected:
CFlashDatabase& m_Database;
COXGridList m_gridVendor;
BOOL m_bModified;
public:
CVendorRecordsDlg(CWnd* pParent, CFlashDatabase& da... |
8518ef2b5e11facdac13b1533ea0686ac93f2b89 | 54d6f4e07ce667130c59726d281cfe511f535d0f | /LeetCodeTest05.12.2019.cpp | 044ec4bab46d1b3b5d74d4616c837d34353f552a | [] | no_license | G33k1973/CodingGames | 36285caf48fb33c7947d3596f3446929b3a0a1ab | 7fa55622c9ee525ac3974cd2036cd61ec448802b | refs/heads/master | 2021-07-08T14:35:14.183733 | 2020-09-05T08:39:08 | 2020-09-05T08:39:08 | 184,714,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,650 | cpp | LeetCodeTest05.12.2019.cpp | #define pb push_back
class Solution {
protected:
unordered_set<std::string> seen;
unordered_map<std::string, int> dict;
void parse(string& s) {
s += " ";
int l = static_cast<int>(s.length());
string sub = "";
int i = 0;
while (i < l) {
char x = s.at(i);
if (isalpha(x)) {
if (isupper(... |
40b11473afef5584dafe6eb7a8718c7aae1ad317 | d41a12992bbdd7b2b9626bf1bb1466b4b793840e | /cpp_basic/cpprimer_2013/026_copy_control/Folder.h | 6154ca40553df8dc782893d434a7cf36f5d93668 | [] | no_license | FrankBlues/c-cpp-study | e81975f97a0b0bcdcaff68b9a108241732340b76 | a49971365a506e06405a7fc51494cbe6ea282eed | refs/heads/master | 2023-01-23T10:53:26.420934 | 2023-01-19T03:10:14 | 2023-01-19T03:10:14 | 179,606,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | h | Folder.h | #ifndef FOLDER_H
#define FOLDER_H
#include <iostream>
#include "Message.h"
class Folder
{
friend void swap(Folder &, Folder &);
friend class Message;
public:
Folder() = default;
Folder(const Folder &);
Folder& operator=(const Folder &);
~Folder();
void print_debug();
void addMsg(Messa... |
d6744cf95b0964879555b01b317f49b384f13b16 | 8433e87fb98d6dfdacb435820823c602ae61f03c | /OpenGL/src/Mesh.cpp | ce1062ddff8e8ebc2161027c34883f10d587ad94 | [] | no_license | Qwerkykk/OpenGL | dd1ed2a1e57158248be7bb1d52025ea3a7fc6c26 | 144f4c9250933f6cd30a43c016a3009de43f4883 | refs/heads/master | 2023-03-24T15:34:40.528948 | 2021-03-13T09:07:41 | 2021-03-13T09:07:41 | 347,320,243 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | cpp | Mesh.cpp | #include "Mesh.h"
#include <utility>
Mesh::Mesh(std::vector<Vertex> vertices, std::vector<unsigned int> indices, std::vector<std::shared_ptr<TextureBasic>> textures) :
m_Textures(std::move(textures)),
m_VBO(&vertices[0], vertices.size() * sizeof(Vertex)),
m_EBO(&indices[0], indices.size())
{
setupMesh();... |
e6bb023dff0f5c97933f87068e2720e6998e00c8 | 43e4b745d8fcf0b28d988986e0ba1394ea289f2d | /module1/homework/calculate/main.cpp | 1008079b7dc6f9769845d780a5cc4c139bc8b40f | [
"MIT"
] | permissive | kszytko/kurs_cpp_podstawowy | b45969d4feb9b964ac4f38bbd7fa3fce23ec38fc | 3447581d11f990077b38e4ec58da607aeec6db8f | refs/heads/master | 2022-09-24T01:10:15.298002 | 2020-05-15T16:22:11 | 2020-05-15T16:22:11 | 263,965,921 | 1 | 0 | MIT | 2020-05-15T16:22:12 | 2020-05-14T16:20:32 | JavaScript | UTF-8 | C++ | false | false | 564 | cpp | main.cpp | #include <iostream>
#include <string>
#include "calculate.hpp"
int main() {
while (true) {
std::cout << "Provide command: \"add\", \"subtract\","
<< " multiply\", divide\" or \"quit\" to exit\n";
std::string command{};
std::cin >> command;
if (command == "quit")
... |
893b9986d28a7c0da6fa12e08f6b1112bfe3221b | c015e4bc4cd913a6a02feb67802676892fd63414 | /Lesson_1/01_WinApi/01_WinApi.cpp | f3fa5f7b4a781a3301bf5bd7594c02badb3a4700 | [] | no_license | Annushka34/WIN_FORM_2019 | aa07b898c1183aa7847ec31b80454e1f0879285d | 9630d1b4ebc6c0795c8c36da6b168ab4f2545ef1 | refs/heads/master | 2020-06-12T20:11:03.208851 | 2019-09-08T21:23:20 | 2019-09-08T21:23:20 | 194,411,047 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 7,235 | cpp | 01_WinApi.cpp | // 01_WinApi.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "01_WinApi.h"
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdL... |
05b36fc8cc5c2da1777e37cd79b11522a524685a | 102beccb4a386876dfeaea493209537c9a0db742 | /TelepathyIMModule/TelepathyIM/Connection.cpp | d50dcd5def0596d6d059203be8833bcd876f7823 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Chiru/naali | cc4150241d37849dde1b9a1df983e41a53bfdab1 | b0fb756f6802ac09a7cd9733e24e4db37d5c1b7e | refs/heads/master | 2020-12-25T05:03:47.606650 | 2010-09-16T14:08:42 | 2010-09-17T08:34:19 | 1,290,932 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 31,974 | cpp | Connection.cpp | // For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include <TelepathyQt4/ContactManager>
#include <TelepathyQt4/StreamedMediaChannel>
#include "Connection.h"
#include "ChatSession.h"
#include "FriendRequest.h"
#include "OutgoingFrie... |
536d07d306ac7367b1a018dd5cda65e76bf30761 | 6aeccfb60568a360d2d143e0271f0def40747d73 | /sandbox/SOC/2007/graphs/libs/graph/test/runtime/io.hpp | 858b4a337cf00fadaa9020f7728630125472c3d2 | [] | no_license | ttyang/sandbox | 1066b324a13813cb1113beca75cdaf518e952276 | e1d6fde18ced644bb63e231829b2fe0664e51fac | refs/heads/trunk | 2021-01-19T17:17:47.452557 | 2013-06-07T14:19:55 | 2013-06-07T14:19:55 | 13,488,698 | 1 | 3 | null | 2023-03-20T11:52:19 | 2013-10-11T03:08:51 | C++ | UTF-8 | C++ | false | false | 4,058 | hpp | io.hpp | // (C) Copyright Andrew Sutton 2007
//
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0 (See accompanying file
// LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
#include <boost/graph/properties.hpp>
template <typename V, typename G>
struct ... |
b2cf6e6bcf0b6eb6645fc8dac2e4547ebf77aaac | 147509bf421099186f7dd673e9ee69a98d0b878c | /src/M5-13.cpp | ecc2e3fe636fc08e10bb4f70294fffd917cfac6b | [] | no_license | merlyescalona/indelible-ngsphy | 32a77986ba1970424046dabe7d9b69d8e8116e52 | 59e0477b18dd3946a56c8c4967e1dc045310d3ba | refs/heads/master | 2021-01-15T22:46:35.842954 | 2020-11-27T19:21:59 | 2020-11-27T19:21:59 | 99,913,444 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,272 | cpp | M5-13.cpp | /*
INDELible V1.03
"A comprehensive and flexible simulator of molecular sequence evolution"
Copyright (C) 2009 William Fletcher
If using this software please cite the following reference:
Fletcher, W. and Yang, Z. 2009.
"INDELible: a flexible simulator of biological sequence evolution."
Mol. ... |
d5013f7d53301fd54a29b52a4eaf430fce7f9eaf | 8df7e6646ba3fc6f70916f330a5bcc53d8760d61 | /SDLXX/test/main.cpp | 60312e451d4b51084511c68f8ca132093bb95ea1 | [] | no_license | BobDeng1974/SDLXX | 8fe916b8c0f4c8988841369b7095348faebed920 | eaca322647cdb2adfabe960cd7c6c168924caf8f | refs/heads/master | 2020-04-03T12:03:41.453901 | 2018-01-23T21:18:59 | 2018-01-23T21:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,230 | cpp | main.cpp | #include "../SDLXX.h"
#include "../SDLXX_image.h"
#include "../SDLXX_net.h"
#include "../ttf/SDLXX_ttf.h"
#include "../SDLXX_mixer.h"
#include "../base/Window.h"
#include "../base/SceneManager.h"
#include "Menu.h"
using namespace SDLXX;
int main(int argc, char *args[]) {
try {
SDL sdl(SDL_INIT_VIDEO);
... |
79a33733680e2e10c86851b578633295ac0ace2c | 7a172ffea7f3ef1c2cd868d961e01cd8515d9886 | /RocketFuel/D1.cpp | 229ed4871b8aef3a0060db904213b4cad539dfe9 | [] | no_license | rituraj0/OtherCompetitions | e37ba5ff02998c76aad95cf174bb856ad6766d9e | 2054a6376caa3258c9db56f634a54228f4f1a412 | refs/heads/master | 2020-06-05T21:59:41.811711 | 2015-02-17T16:28:08 | 2015-02-17T16:28:08 | 26,070,295 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | cpp | D1.cpp | #include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <cstdio>
#include <vector>
#include <queue>
using namespace std;
int n, m, x[5000], y[5000], l[5000];
int main()
{
cin >> n >> m;
for (int i = 1; i <= n + m; i++)
cin >> x[i] >> y[i] >> l[i];
int maxi = 0;
fo... |
aaa39c0e18e1dc9327fa97f9e15a0c28cbc41175 | 141871424dffc6df8a2ac00513bcb99803cd48aa | /Level_1/폰켓몬.cpp | f2398eee0657d59e675d94fd6f6fb9410ed23084 | [] | no_license | s4055/Programmers | d4f0ef8785e9fffbdf0bcb9c8ca89b6d1a15a233 | 8672e91a5a6311daac356c78acc99c101ccae4d3 | refs/heads/main | 2023-04-23T16:53:14.453040 | 2021-04-30T14:59:00 | 2021-04-30T14:59:00 | 363,170,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | cpp | 폰켓몬.cpp | #include <vector>
#include <algorithm>
using namespace std;
int solution(vector<int> nums)
{
int answer = 0, N;
N = nums.size();
sort(nums.begin(), nums.end());
nums.erase(unique(nums.begin(), nums.end()), nums.end());
if(N/2 <= nums.size()) answer = N/2;
else answer = nums.siz... |
1cc911253591eabb7f8f763ef5b098eb2c213bcc | da1500e0d3040497614d5327d2461a22e934b4d8 | /net/cookies/cookie_store.cc | 2b2eb7edbfa212f76f417377dd409b582b7179e5 | [
"BSD-3-Clause"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 1,458 | cc | cookie_store.cc | // Copyright (c) 2012 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 "net/cookies/cookie_store.h"
#include "base/bind.h"
#include "base/callback.h"
#include "net/cookies/cookie_options.h"
namespace net {
Coo... |
6edc33919c9ed9767755065a04f140026503bcb2 | 621ab4417c0980be2a8f0ed891cf74888f68c064 | /263A - Beautiful Matrix.cpp | 94dbb0c9db6b2c7b45763105b4c3ce08e56a5838 | [] | no_license | Niharika0612/Codeforcessolutions | 5f0380504defe39e277b260945ecc102e2df324d | bbb04454885e2148016219e4dbb88b2e76f0cf65 | refs/heads/main | 2023-06-28T13:33:56.216727 | 2021-07-29T09:03:50 | 2021-07-29T09:03:50 | 390,652,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | 263A - Beautiful Matrix.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int x,y,i,j,a[6][6],ans;
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
scanf("%d",&a[i][j]);
}
}
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
if(a[i][j]==1)
{
... |
9e30a7f9c29a9f6a2d5526d4b2ffe0d72e4e6264 | 3d39e8b632cb0b3387985c81c2aeee218f09ed0a | /school-31/coding/acmp.ru/0059.cpp | e48272df355bebb68146125f25b6c9b3372ea4e6 | [] | no_license | eshlykov/junk | 6defecb3f0f3470f32fbdf04c547242201bddf7b | 10f161fd11193c9a543f772621cf104425532e1e | refs/heads/master | 2022-02-12T05:48:04.650567 | 2019-07-16T17:29:02 | 2019-07-16T17:29:02 | 82,374,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | 0059.cpp | #include <fstream>
using namespace std;
int main() {
ifstream in("input.txt");
ofstream out("output.txt");
long int n, m = 1;
int k, s = 0;
in >> n >> k;
while (n > 0) {
s += n % k;
m *= n % k;
n /= k;
}
out << m - s;
in.close();
out.close();
return 0;
} |
4f3e2c139f83662a98627f45d4401687df4b3758 | 466312390c8800d8afc6d1f0eb78b5a46b891965 | /git-c++/git-alone/输入左奇数右偶数.cpp | 64c6e965f4f09e1369052415125b032d097c232f | [] | no_license | ambitiousCC/Work-c | e360ecf717cc1ff68c4b1019425fc5f49c9ced89 | d85b63ff0cc350afb75057ea2206a08791161132 | refs/heads/master | 2020-04-27T07:42:52.441559 | 2019-07-11T05:30:17 | 2019-07-11T05:30:17 | 174,145,284 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 958 | cpp | 输入左奇数右偶数.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
string input;
cin>>input;
vector<int> num;
char* s_input = (char*)input.c_str();
const char* split = ",";
char* p = strtok(s_input, split);
int n;
while(p!=NULL)
{
sscanf(p,"%d",&n);
num.push_back(n);
p = strtok(NULL, split);
}
for(int i... |
b7357df87a394faa4e3ef3696e05bd3d11ff1ac6 | b734362fa21bd2b3edf06fab97b4d090570b6fe4 | /tree.h | 71ff57ac8025bfc7effd6ed5cd3ae996b0dadb08 | [] | no_license | BorisTab/treeAndAkinator | 9ec014a15654d1f4db9bc359ed8a5fdcb9f2bbbe | 3d3e771df096ae36016d63d4285d9f40480edd18 | refs/heads/master | 2020-09-09T20:19:01.225439 | 2019-11-15T09:35:14 | 2019-11-15T09:35:14 | 221,557,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,435 | h | tree.h | //
// Created by boristab on 08.11.2019.
//
#include <iostream>
#include <fstream>
#include <cassert>
#include <cstring>
#include "fileRead.h"
enum errors {
SUCCESS = 0,
FILE_OPEN_FAILED = 1,
NOT_FOUND_TREE_IN_FILE = 2,
};
const char dumpFilePath[FILENAME_MAX] = "../TreeDumpFile.txt";
int spaceN (const ... |
851f72ad00e4a41418043922668164ff36afab93 | 24a96f106c7e1d7e231b61ceda433c7bbf5c7d22 | /numerical/srng.h | 70dbf745b31790a60d44a722a3aaad0ac0e3b4b2 | [] | no_license | cbshiles/KALX-libbms | fc0e85c5edbafe4e439fa80417421df7ba85ab32 | fb20be56d9e0ad9f5c8045185c572f7e1083702f | refs/heads/master | 2021-07-22T04:10:46.063754 | 2013-02-22T19:34:25 | 2013-02-22T19:34:25 | 109,080,282 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,904 | h | srng.h | // srng.h - simple random number generator with optionally stored seed
// Copyright (c) 2011 KALX, LLC. All rights reserved. No warranty is made.
#pragma once
#include <ctime>
#include <cstdint>
#ifdef _WIN32
#include "../win/registry.h"
#define SRNG_SUBKEY _T("Software\\KALX\\bms")
#else
#include <fstream>
#endif
#inc... |
a63765fd6862795eef47eda3934609fe1ab614d6 | 906f33f6e8d6ff6395579f37c2da25e100494948 | /public/gal/expr.hpp | e655f0648757a7336ec4a4b2313cca1985e5dd32 | [
"MIT"
] | permissive | tweakoz/gal | 56d7bb15ced383beb072e956da2920b89f46b886 | e859994aeb826acaf912b3efe5813582b0648291 | refs/heads/master | 2023-03-20T04:04:31.203473 | 2019-11-30T03:37:50 | 2019-11-30T03:46:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,218 | hpp | expr.hpp | #pragma once
// expr.hpp
// Defines operators for constructing expression template trees as an intermediate structure for
// computation.
//
// Node checksums:
// Each expr node exposes a static constant corresponding to a checksum of itself along with its
// children. Checksums are computed recursively by summing chi... |
64716895c95d3665b516ab89e5c0995a648acad2 | b9795d3caf15349f5c81d685492ad99bd6f2ca64 | /Comunication Master and Slave/UART/SLAVE-_MEGA_correct/UART.ino | ce1b65265007aa2b34d7993ec3ef8f40406012c7 | [] | no_license | RobAmorim/OBR-terceiro-ano-EM | 240cb3b11e938cb90a9acecb226747d99c3bea75 | b0fee16e20e0b64559b465063bfe54ce2061d28b | refs/heads/master | 2022-12-03T01:35:18.658302 | 2020-08-15T04:32:42 | 2020-08-15T04:32:42 | 287,676,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | ino | UART.ino |
void Mega_begin(long speed)
{
Mega.begin(speed);
}
void Mega_send(int value)
{
delayMicroseconds(200);
Mega.write(value);
}
int Mega_receive()
{
int received = 0;
if (Serial3.available() > 0){
received = Mega.read();
}
return received;
}
|
f1c465960e1940891bc5914e0d34da88ff6b3d00 | 394baa93338a6510a34700a953d1119594efd36a | /tempCodeRunnerFile.cpp | 585eb2f8591e5d70234156f863ec2bf9cf4c1954 | [] | no_license | anusjc/CPP | 43dfe1680a5b1a00d363bff56319549db1992d40 | e7b29634d2c36b8e28013d0f10c3ed47cb6a674f | refs/heads/master | 2023-06-24T15:24:41.929533 | 2021-07-26T15:35:43 | 2021-07-26T15:35:43 | 275,631,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | tempCodeRunnerFile.cpp | out << "Inorder";
// Inorder(root);
// cout << "Inorder Without Recursion";
// Inorder_without_Recursion(root);
// cout << "Pre";
// PreOrder(root);
// cout << "PreOrder without Recursion";
// Preorder_without_Recursion(root);
// cout << "Post";
// PostOrder(root);
// cout << "Po... |
5814727de7157fbfe953b46e9d18060fa451fd7a | 52e05d8943a90960923d84c1c0068abf52c66faf | /homework/HW8_midterm2/src/find_visitor.h | 435a1477e6efc309761b2cbe0bc8099a2075a1a0 | [] | no_license | babe18/10901_ntut_posd | 878896d9f99fcc86945b0b7385eef539ece7791f | 6c4fd99b696b171c32e14f68a13d3816da764e24 | refs/heads/main | 2023-02-19T20:19:56.816458 | 2021-01-20T15:40:49 | 2021-01-20T15:40:49 | 300,562,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,046 | h | find_visitor.h | #ifndef FIND_VISITOR_H
#define FIND_VISITOR_H
#include <cmath>
#include <vector>
#include "iterator.h"
#include "node_iterator.h"
#include "app.h"
#include "node.h"
#include "folder.h"
#include "visitor.h"
class FindVisitor : public Visitor {
public:
FindVisitor(std::string name):_name(name) {}
v... |
f8ff08e07aecb2b68ba79e783a67082474073ecf | a382b8a6ed180ffdb9dc8fb1f2443398e2b9cf94 | /wk4dpointsofview.cpp | b53fdccb76df1530922249cd90d28de2a5dbc51b | [
"MIT"
] | permissive | WhaleKit/4d-cube-Slicer | 863a9e47ff08509a1507667da9556eda85d28c2b | 6a45df6ad211d9a7c564bc52a4093c2a51b6ebdb | refs/heads/master | 2020-06-25T10:13:55.001866 | 2017-10-02T02:50:12 | 2017-10-02T02:50:12 | 96,973,226 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 95 | cpp | wk4dpointsofview.cpp | #include "wk4dpointsofview.h"
WK4d::vec4 WK4d::FPSPointOfView::myUp = WK4d::vec4{0,0,1,0};
|
87bf1e38d452ce6af8b609bebe36c12522b471a3 | e8be5e13152f1ccfece36ba47569614a87842d96 | /GameSanGuo/GameSanGuo/Classes/game/main/first/help/SGLiuyanLayer.cpp | edefa995c90fe777c147c4ae644e06bdb566d601 | [] | no_license | Crasader/warCraft | 571ed9a3181b0eb52940cdd2965b7445c004d58f | b9cf69828c61bdf55b2af3b587f3be06de93768c | refs/heads/master | 2020-12-13T18:05:17.592831 | 2016-01-19T13:42:19 | 2016-01-19T13:42:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,691 | cpp | SGLiuyanLayer.cpp | //
// SGLiuyanLayer.cpp
// GameSanGuo
//
// Created by kanata on 14-1-6.
//
//
#include "SGLiuyanLayer.h"
#include "ResourceManager.h"
#include "SGMainManager.h"
#include "SGCCTextFieldTTF.h"
#include "SGChatInputBox.h"
#include "SGComplainLayer.h"
#include "CCTextFieldTTF.h"
#include "SGNikeNameBox.h"
#include "S... |
094615afc7958ed63f61ad1f3bdee84ae725270f | 35cd9b31b72055eaec45965f5ca5cfd1db8366f0 | /90_SubsetsII.cpp | cd13bd78c89721960367691e20194e29c17cb4af | [] | no_license | ZhengweiLi/_LeetCode | f15ba4b0bf3bb2b3a3b0fd5f102cb1c8637df013 | e6fe66299b81275caa003413be49a13becbe7db8 | refs/heads/master | 2020-12-05T16:19:26.433445 | 2020-04-07T16:45:11 | 2020-04-07T16:45:11 | 232,170,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | cpp | 90_SubsetsII.cpp | /*
Given a collection of integers that might contain duplicates,
nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Example:
Input: [1,2,2]
Output:
[
[2],
[1],
[1,2,2],
[2,2],
[1,2],
[]
]
*/
class Solution {
public:
vector<vector<int>> subset... |
2889045dac00cf77cbbc5bc703c88baed29db414 | 780148a92032625cf51463d40d933c686b8be046 | /codeforces/round480_div2/c2.cpp | d10f8ae6421cedc81df4b3120c3d7349fbccb451 | [] | no_license | Shaofanl/alg | 30a980177eb6cbc2cf36f0e434bc7db8c8f937b5 | 55c721451731c8941a7b0ce4c286be02d2cbef31 | refs/heads/master | 2020-03-16T09:53:33.928100 | 2019-04-14T04:29:24 | 2019-04-14T04:29:24 | 132,624,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | c2.cpp | // summary:
// should use greedy on the correct direction
// early or over-strict greedy might cause error
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
vector<int> g(259, -1);
vector<bool> took(258, false);
vector<int> ans;
g[0] = 0;
while (n--) {
int t... |
5e6f65977ad05b2cd4bb755b467236bb68eb4bbf | 8c85d929c8855337c39db8772e6b26c669451a7f | /Source/Engine/Scripting/ScriptThread.hpp | 9fddc8ffca80e576c7689bf14d601d177a09e196 | [] | no_license | grokitgames/giga | 6d908c2a12a6e95e6d22ef2c37520bf6d666142d | 83ec3b023cebc5762f117dd35da57379d3e4b2a9 | refs/heads/master | 2021-01-01T19:45:49.625486 | 2017-11-28T02:02:37 | 2017-11-28T02:02:37 | 98,677,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | hpp | ScriptThread.hpp |
#ifndef scriptthread_hpp
#define scriptthread_hpp
class GIGA_API ScriptThread : public TaskThread {
public:
ScriptThread();
~ScriptThread();
/**
* Thread initialization
*/
void Initialize();
/**
* Thread shutdown
*/
void Shutdown();
/**
* Get isolate
*/
v8::Isolate* GetIsolate() { r... |
c3f7ad4fb935ffb6a432571c3e83afb6ea3ec679 | 4e154f27fad2f07d007aa96015d9d276fcd68d06 | /NetWorkFrame/lib/net/TestMain.h | 15e3ba308833c0d96102dd8aa470dea7bc861e77 | [] | no_license | 00675901/netTest | 1ac06c47ad1f5e7ae69ff31b021892cec4b8d01f | bb0e45466aac2f73ac04c611da8c654832cfd21d | refs/heads/master | 2016-09-06T16:46:21.333534 | 2015-07-12T16:10:40 | 2015-07-12T16:10:40 | 38,488,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | h | TestMain.h | //
// TestMain.h
//
#include "GUtils.h"
class TestMain{
public:
TestMain(){
printf("TestMain Begin\n");
}
~TestMain(){
printf("TestMain End\n");
}
void begin();
};
|
2bd31ee36a9f930b08b739c7814aa311ea9b1596 | c68b819f5254ddf8fb2ff6596538fc294226df38 | /src/Arguments/TemplateReqArg_P.cpp | d752ae05fcda3e36e311b9fc2a79e11d3cebae16 | [
"MIT"
] | permissive | peterfarouk01/SimpleCLI | 76f14206b308eb7fd73036ea6cb0ce0764a89fd0 | f8a61c541955971fa7b140033def8173d353d40a | refs/heads/master | 2020-03-27T04:43:36.541073 | 2018-08-09T15:13:18 | 2018-08-09T15:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,816 | cpp | TemplateReqArg_P.cpp | #include "TemplateReqArg_P.h"
namespace simpleCLI {
TemplateReqArg_P::TemplateReqArg_P(const char* _template) {
TemplateReqArg_P::_template = _template;
reset();
}
TemplateReqArg_P::~TemplateReqArg_P() {
if (value) delete value;
if (next) delete next;
}
bool Templ... |
9e28a6ee5346f3c7a84ec588f154da07f22506a5 | 81bf548ee9a4a9bc506782ba4b8e5632d16bf86a | /src/utils/shadercompile/subprocess.cpp | 0072fd3865caabd3cb55102c85b14343dac0d12d | [] | no_license | hackovh/- | f6b83e6a1c514f8b452d4d14f932d452e4b4110d | 72286069ef9dd5975448cc6fe4c5911734edabe6 | refs/heads/master | 2020-05-19T06:12:56.778623 | 2019-05-04T07:57:52 | 2019-05-04T07:57:52 | 184,868,637 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,556 | cpp | subprocess.cpp | //====== Copyright c 1996-2007, Valve Corporation, All rights reserved. =======//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include <windows.h>
#include "cmdsink.h"
#include "subprocess.h"
#include "d3dxfxc.h"
#include "tools_minidump... |
59154fd2aaffcd98c40721aaccba44e1ff50ebc0 | 39bcafc5f6b1672f31f0f6ea9c8d6047ee432950 | /extension/jemalloc/jemalloc/include/jemalloc/internal/arena_stats.h | 3d37da186b6611ccb61dd2371d0987e618f95b47 | [
"BSD-2-Clause",
"MIT"
] | permissive | duckdb/duckdb | 315270af6b198d26eb41a20fc7a0eda04aeef294 | f89ccfe0ec01eb613af9c8ac7c264a5ef86d7c3a | refs/heads/main | 2023-09-05T08:14:21.278345 | 2023-09-05T07:28:59 | 2023-09-05T07:28:59 | 138,754,790 | 8,964 | 986 | MIT | 2023-09-14T18:42:49 | 2018-06-26T15:04:45 | C++ | UTF-8 | C++ | false | false | 3,631 | h | arena_stats.h | #ifndef JEMALLOC_INTERNAL_ARENA_STATS_H
#define JEMALLOC_INTERNAL_ARENA_STATS_H
#include "jemalloc/internal/atomic.h"
#include "jemalloc/internal/lockedint.h"
#include "jemalloc/internal/mutex.h"
#include "jemalloc/internal/mutex_prof.h"
#include "jemalloc/internal/pa.h"
#include "jemalloc/internal/sc.h"
namespace du... |
c1ea357dd1229f5920acc48536e1c392b6e7aa9c | 8e7a1c1a6cc11cb04837aceaa3067eb36d3999f7 | /zap-2.3.0-windows/papilio-zap-ide/hardware/zpuino/libraries/ZPUino_Examples/examples/RetroCade_Sketch/RetroCade.h | 3ee762010c11a0dd5b2dbde80589941f694a7499 | [
"MIT"
] | permissive | chcbaram/FPGA | daaabfb82fce0883e4c12c57b517ec09b7652cf3 | fe5b8014ccdaac3122de0e62011afbd20c183eb4 | refs/heads/master | 2016-09-15T22:19:43.780509 | 2015-11-01T15:09:42 | 2015-11-01T15:09:42 | 42,006,252 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,483 | h | RetroCade.h | /*!
* @file RetroCade.h
* Project RetroCade Library
* @brief RetroCade Library for the ZPUino
* Version 1.0
* @author Jack Gassett
* @date 9/11/12
* License GPL
*/
#ifndef LIB_RetroCade_H_
#define LIB_RetroCade_H_
#include <inttypes.h>
#include <zpuino-types.h>
#include <zpuino.h>
#include "Ardui... |
33e2f3a18745a0d1b35dd9bbf2654343aa18abf5 | 55c438a5113d1287dc9dc82b6bdface0cf2e1e54 | /Button.h | 6a230c4afcc36e42509ead010afc5c15d7a1176a | [] | no_license | helloqiu/electronic | 0f1c6a5628592282e18bbd71e6d225c25caa8b7d | c0638f4db24322de9f96de34126049677481802b | refs/heads/master | 2020-05-30T20:10:44.508568 | 2015-05-12T03:06:25 | 2015-05-12T03:06:25 | 35,463,662 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | h | Button.h | #ifndef BUTTON_H
#define BUTTON_H
// #include "Circuit.h"
class Button{
public:
// friend class Circuit;
Button(bool status);
void turnOn();
void turnOff();
bool getStatus();
// void setCircuit(Circuit &circuit);
private:
bool status;
// Circuit *circuit;
};
#endif |
21dc8fec671cb107aaecae7234305c76febe781a | 7fbb8b09b086cf431d5b13eac3883f2ef5f966eb | /casinoomania/Classes/Shoe.cpp | f287187cc96678f321501b9f948cee7091115037 | [] | no_license | Crasader/f | 7cd841f02642a233090820fbba73a130fcc27231 | a028fed42373261e9aa0c9064661fa5ac2c073bb | refs/heads/master | 2020-12-04T17:39:51.816398 | 2018-10-01T02:01:46 | 2018-10-01T02:01:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 888 | cpp | Shoe.cpp | //
// Shoe.cpp
// DovemobiCasino
//
// Created by Stanislav Zheronkin on 07.03.17.
//
//
#include "Shoe.h"
#include <vector>
Shoe::Shoe(int decksNumber) : decksnum(1)
{
setDecksNumber(decksNumber);
}
void Shoe::setDecksNumber(int decksNumber)
{
if (decksNumber < 1 || decksNumber > 6)
{
printf... |
03bc18611631b2fa8603ad47593c1282c58c8f8f | 41f546ad89c405957d0f25963b985e136442caaf | /ui-terminal/csi_sequence.h | 5af303bf7905284b7acef98a40e83d42712fc1b7 | [
"MIT"
] | permissive | redrye/PowershellTerminal | e704a757c337de10a17305a58bd3fa1295cc657b | 0dc1e771b7505d4f005cbd33d668d49cc2627eec | refs/heads/master | 2023-05-06T05:18:24.658854 | 2021-05-28T15:50:12 | 2021-05-28T15:50:12 | 371,746,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,338 | h | csi_sequence.h | #pragma once
#include <vector>
#include <ostream>
namespace ui {
class CSISequence {
public:
CSISequence():
firstByte_{0},
finalByte_{0} {
}
bool valid() const {
return firstByte_ != INVALID;
}
bool complete() const {
... |
9234d99d42a1a324dbb1a60ceb9a15d4928abd84 | 6a42841765f2356da99d9844cab8f3f3353eaebf | /Game/开发库/Include/CHeadPortrait.h | 35d5ab562ae48cf8e3ee75b4eae5f38881ee9697 | [] | no_license | Ivanhan2018/wh6602_zhuque | d904e1d7136ed7db6cd9b46d65ab33797f400a74 | b0e7e574786eac927d109967618ba2a3af5bbee3 | refs/heads/master | 2020-04-05T17:28:14.739789 | 2018-12-24T07:36:47 | 2018-12-24T07:36:47 | 157,062,380 | 2 | 8 | null | null | null | null | GB18030 | C++ | false | false | 3,308 | h | CHeadPortrait.h | #pragma once
#ifndef _CHEAD_PORTRAIT_H
#define _CHEAD_PORTRAIT_H
#include "stdafx.h"
/// 人物头像动画类
class CHeadPortrait : public CWnd
{
DECLARE_DYNAMIC(CHeadPortrait)
friend class CHeadPortraitManager;
private:
CWnd * m_pParent;
CDC * m_pParentDC;
CImage * m_pParentImage;
CGDIPlus_Image ... |
07c7eb471979c892dcbf6157871ee784caf7af1f | 57b069396bd4201c236e8076ca2ac0551a283f2f | /5_21(2) 2017-2018(1).cpp | b5a8435235043d1c824c74e47b25a64c4d5fca13 | [] | no_license | permanentbelief/Cplusplus_practice | 96301564cd03d1904b18aea02a0499ffadee1510 | 858588a3b0752c7fcec6437558d601dd4eef4ec3 | refs/heads/master | 2021-07-02T21:51:48.597023 | 2020-10-19T14:00:17 | 2020-10-19T14:00:17 | 183,547,105 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,379 | cpp | 5_21(2) 2017-2018(1).cpp | #define _CRT_SECURE_NO_WARNINGS 1
//#include <iostream>
//using namespace std;
//#include <iostream>
//#include <cmath>
//using namespace std;
//class Line
//{
//private:
// int x1, y1, x2, y2;
// double length;
//public:
// Line(int = 0, int b = 0, int = 1, int = 1);
// Line(Line &);
// //添加某函数的声明
//
// //重载插入运算符函... |
934608d1b7dabbe85d050a2e4f2b2a6a6cfd662d | a42f7bc14667769c58413d940e80a0177270937e | /linux/test/MH_Base.h | fa8d4f5bd68c5118d76e8d674f6bba0e2c80d16f | [] | no_license | yangyefeng/linux-study | 21c41647d5506253d47c85b2b31eb5a82149e485 | 9c02580df840b7a016a6a664b98b689660c41c99 | refs/heads/master | 2020-04-07T13:10:40.991211 | 2018-11-20T14:24:25 | 2018-11-20T14:24:25 | 158,395,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | h | MH_Base.h |
// MH_Base.h
#ifndef __MH_Base_h__
#define __MH_Base_h__
// 消息处理者基类
class MH_Base { public: virtual ~MH_Base() {};
virtual void operator()(const void* data, size_t len) = 0; };
/// 全局或者静态函数
class MH_Function : public MH_Base
{ public:
typedef void (Function1)(const void* data, size_t len);
public: MH_Function(F... |
884f3dd3a8eeb99f70100590460ecff5938a54d9 | 599d32cdc9dbd15806b0e7d2bb77e8fd904b5caf | /c++/0061.h | 8a7afac39b1857cb216836d8f93b223ff25132d1 | [] | no_license | maximusyoung007/LeetCode | 03776bc6191864469a9a30a391cf49a909b9b9a8 | fe4a6186d4e039c271efda0ddb05965bdde1f172 | refs/heads/master | 2023-07-15T23:21:05.796959 | 2023-07-02T15:18:12 | 2023-07-02T15:18:12 | 176,424,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104 | h | 0061.h | #include "listnode.h"
class Solution0061 {
public:
ListNode* rotateRight(ListNode* head, int k);
}; |
8aebe27d9fe835d8c3e6bea0f0e41b5bff967aaa | dbf381e932f1e2845fde9706c1c80f45746f608a | /include/protocolo.h | 00b3c879bfb248446f68044799a6422a7eb57afc | [] | no_license | hcyoo93/vilma_ma | 98662182a0d4d27c7d29a2c78b59fcf7ae5cdb9c | bd056279f35052799bb3163a8259324ef5ab590e | refs/heads/master | 2020-07-30T07:31:18.818757 | 2014-09-12T17:45:11 | 2014-09-12T17:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,100 | h | protocolo.h | /*
* protocolo.h
* library to encode and decode an array of double in bynary
* with the possibility to encoding this variable in
* @ref datos {manull,maboolean,maint8,mauint8,maint16,mauint16,maint32,mauint32,mafloat,madouble}
*
* it is based of the example of Dspace microautobox II to communicate by udp
*
... |
0834a1df24989f08533364354278cad9a0bad51f | 3a62544c93e3aa19ce616bfd0978a98886fff79e | /blinker.cpp | c59622c68099bc1c3e8463dc47e784dac6731db3 | [] | no_license | icwhatuc/eye-see-what-you-see | 8853e2f708c1770820a28cd9855e3b69ab9695c9 | 98d36962fe0a77868ca34f9c2ae7e9eddeaa0195 | refs/heads/master | 2020-05-18T17:29:02.337918 | 2015-07-05T16:59:32 | 2015-07-05T16:59:32 | 38,576,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,140 | cpp | blinker.cpp | #include <iostream>
#include <fstream>
#include <cv.h>
#include <highgui.h>
#include <ctime>
#include <sys/time.h>
#define flip(x) ((x == '0')?x='1':x='0')
#define isOn(x) (x == '1') // currently, when off -> bright pupil image
#define changeledstate() {flip(arduino_state); arduino << arduino_state; arduino.flush()... |
be15091150506bbc96a744d12c0c1eae4b1cc083 | 487772ecc40082541ea963dda4939eddb842a275 | /lispino/Define.cc | d11f511e50daf3e7bd5d1b867c8a3bf8105c3f55 | [] | no_license | GuglielmoS/Lispino | 9b72fb9bc33c129563e60739387fbd75b98a5d08 | 51c16ebca60d52b39d7bd92fc4a4b903db6a143d | refs/heads/master | 2020-06-02T13:10:48.346377 | 2014-12-12T21:00:50 | 2014-12-12T21:00:50 | 10,824,913 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cc | Define.cc | #include "Define.h"
#include "Environment.h"
namespace lispino {
Define::Define() : Object(ObjectType::DEFINE), name(nullptr), value(nullptr) {
/* DO NOTHING */
}
Define::Define(Symbol* name, Object* value) : Object(ObjectType::DEFINE), name(name), value(value) {
/* DO NOTHING */
}
void Define::setName(Symbol*... |
278b85177c4b9af8517358a898f2ab2f06802dd8 | d8932b64db58f64d7e187cf42203313b147f1947 | /objects_demos/constant_variables.cpp | e4d71360b114866217de448064a3488f4b2ff600 | [
"MIT"
] | permissive | jason-vega/Introduction-to-Programming-with-Cpp | d65d90f6a562e9660d366b93d0e2bcde64849bf1 | cc016b122a23800c7616a6e3158288706a2cb752 | refs/heads/master | 2021-08-14T09:03:40.232737 | 2017-11-15T07:10:57 | 2017-11-15T07:10:57 | 106,961,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650 | cpp | constant_variables.cpp | #include <iostream>
#include <string>
using namespace std;
/* Constant variables are usually declared globally (outside of any function.)
Add const keyword in front of definition to make variable constant. */
const double PI = 3.1416;
const string CAPITAL_OF_SPAIN = "Madrid";
// Now these variables can never be ... |
8e7ce1b038adc73cab8cb81822e2fbdd057115a9 | 41817fa657db2c3c650613a9b92c869677cd3b87 | /UVa/10048.cpp | 1787bce8e6a02b959e92608ca69039d4f24517f1 | [] | no_license | judmorenomo/Competitive-Programming | 15cfa2f5a3e57c7e28920ed3b202093bebf1b25f | d16624fbfaa95f7629374cfe8f05603fbd50b3fb | refs/heads/master | 2021-07-22T22:50:40.158499 | 2020-04-27T17:55:43 | 2020-04-27T17:55:43 | 149,539,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,116 | cpp | 10048.cpp | #include<bits/stdc++.h>
using namespace std;
vector<pair<int, pair<int, int> > > EdgeList;
int graf[110][110], ans = -1, ini, dest;
bool pos = false, vis[110];
vector<int> path;
class UnionFind{
private: vector<int> p, rank;
public:
UnionFind(int N){
rank.assign(N, 0);
p.assign(N, 0);
for(int i = 0; i < N; i++)... |
5f72d503ca2296d24c49b42df86cf290ea94f9ac | e7cce1419625465719b6aa9b2869678130b1f523 | /globals.hpp | 36c362765583b9b4324c6226b66c36afa48f94aa | [] | no_license | samedcildir/mlp_dream | b7a4056b7e704be1aa3816a454d7fae70d72bec5 | 81634eac7e17da29dd8c99bc967ca513ff9f0a56 | refs/heads/master | 2020-03-20T03:23:47.698654 | 2018-06-13T01:08:48 | 2018-06-13T01:08:48 | 137,144,670 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | hpp | globals.hpp | #ifndef GLOBALS_HPP
#define GLOBALS_HPP
extern int save_cnt;
constexpr int my_min(int x, int y){
return x > y ? x : y;
}
#define NETWORK_MAX_OUTPUT_SIZE 10 // this is 1 for BW, 3 for color but 10 makes it solid
#endif // GLOBALS_HPP
|
a1ef220d80d745b12812b2866ff5d14cbf52b91b | df656efce3d1e2ecb739625a193b5b60d5efbaee | /PAT1053/PAT1053/main.cpp | c0f8cb99f407beacda38730a9f844a2381d281c2 | [] | no_license | crabyh/PAT | 7a7cd4ada976197ce8069beb06485982624ccb5e | c9d6db4d9373f2ea840fc7436226509638645e4f | refs/heads/master | 2020-04-04T14:48:00.416075 | 2015-03-20T08:13:36 | 2015-03-20T08:13:36 | 31,304,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,267 | cpp | main.cpp | //
// main.cpp
// PAT1053
//
// Created by Myh on 2/15/15.
// Copyright (c) 2015 Myh. All rights reserved.
//
#include <iostream>
#include <algorithm>
#include <vector>
#include <deque>
using namespace std;
class Node{
public:
int ID;
int weight;
int total_weight;
vector<Node *> child;
vector<N... |
29f2b52156d773d1fb8a852e77225972e2ea0910 | fdcae9bcce8ee53d572a351a6811047edbbd3b3e | /code/Singularity_Engine/include/graphics/components/MeshRenderer.inc | 8aa972a2dfcf9c185762e7631f236dfa3fcfca03 | [] | no_license | jobelobes/Ultragon.Games.TriggerHappy | d4378e34946759e4f19db14fc09120e4086dc3b8 | f438b5d3af4ff2173f9b02a489a8c907c48a9bf5 | refs/heads/master | 2021-03-24T12:44:34.589323 | 2012-06-28T22:37:04 | 2012-06-28T22:37:04 | 4,823,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | inc | MeshRenderer.inc | #pragma region Properties
inline Mesh* MeshRenderer::Get_Mesh() const { return this->m_pMesh; }
inline void MeshRenderer::Set_Mesh(Mesh* value) { this->m_pMesh = value; }
inline unsigned MeshRenderer::Get_Layer() const { return this->m_pLayer; }
inline void MeshRenderer::Set_Layer(unsigned value) { this->m_pLayer... |
163cc9f086dae5c5caee95a5fcc9aa8e9cce96f6 | fe22b7a0f9ab10170c513afb062d69cfba128ec2 | /src/services/roctracer/RocTracer.cpp | b1e07e9f2732f549fda4a068f2023a6239b82e92 | [
"BSD-3-Clause"
] | permissive | LLNL/Caliper | ef5e9a6f408610dab404b58d29b53ddff2ce9708 | 764e5b692b2569f3ba4405f8e75126a0c35c3fab | refs/heads/master | 2023-09-04T00:11:12.741726 | 2023-08-30T14:10:20 | 2023-08-30T14:10:20 | 45,953,649 | 283 | 55 | BSD-3-Clause | 2023-09-14T01:34:46 | 2015-11-11T02:02:00 | C++ | UTF-8 | C++ | false | false | 23,177 | cpp | RocTracer.cpp | // Copyright (c) 2015-2022, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
#include "caliper/CaliperService.h"
#include "../Services.h"
#include "caliper/Caliper.h"
#include "caliper/SnapshotRecord.h"
#include "caliper/common/Attribute.h"
#include "caliper/common/Log.h"
#inclu... |
501ddcb74bb73357cd39e8240414badf4ddaebe4 | a97a75e570ea1e21e85e8bf7c75aac6b7bd7df26 | /Srishti5/Srishti5.ino | 02b49737b80cd97d222154b992f3ba6359eb8af6 | [] | no_license | shawnalexsony/Srishti-projects | d77e8772022f701431f5d76ebef92c978df29393 | be888cd49238af1de342b841b43c79ee2594eb91 | refs/heads/master | 2020-03-23T09:15:25.767349 | 2018-07-18T03:40:14 | 2018-07-18T03:40:14 | 141,376,867 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | ino | Srishti5.ino | /*Scrolling text in an LED display*/
#include <LiquidCrystal.h>
LiquidCrystal lcd(8,9,10,11,12,13);/*initialize LCD pins*/
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);/*Initialize the no of active characters in LCD*/
}
void loop() {
// put your main code here, to run repeatedly:
... |
3b814c7aa88069e515d1938823020fdbc8484e3a | 0a20f0403c1cd35b480ab7a5b96f2cf25e74982a | /allinall10340/src/main.cpp | 524bd9bebc3e73f6117f461109f3cd94abda09dd | [] | no_license | OskarOG/UVA | b00fbd4348e35ceb2064dbf6ab34998879111b2c | 53c0552b3133d046c74a2873a2d01cd38ad3fa98 | refs/heads/master | 2020-04-24T10:11:33.338338 | 2019-02-21T14:42:58 | 2019-02-21T14:42:58 | 171,885,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
string sstring, text;
while(cin>>sstring>>text) {
size_t sspos = 0;
for(size_t i = 0; i < text.size(); i++) {
if (sspos < sstring.size() && sstring[sspos] == text[i]) {
sspos++;
}
... |
fb73d3f057d2210773b9f7bf12da86f8ddfaa496 | d51e54dccbb594a056005cb50a9dbad472ddb034 | /Volume_13/Number_3/Brodu2008/src/neighand_structures.hpp | 102db0f3fb11b6fb9488b4484011151c3773737a | [
"MIT",
"LGPL-2.0-only",
"LGPL-2.1-only"
] | permissive | skn123/jgt-code | 4aa8d39d6354a1ede9b141e5e7131e403465f4f7 | 1c80455c8aafe61955f61372380d983ce7453e6d | refs/heads/master | 2023-08-30T22:54:09.412136 | 2023-08-28T20:54:09 | 2023-08-28T20:54:09 | 217,573,703 | 0 | 0 | MIT | 2023-08-29T02:29:29 | 2019-10-25T16:27:56 | MATLAB | UTF-8 | C++ | false | false | 3,988 | hpp | neighand_structures.hpp | /*
Neighand: Neighborhood Handling library
The goal of this project is to find 3D neighbors efficiently.
Read the documentation contained in the article "Query Sphere
Indexing for Neighborhood Requests" for details.
This file defines the data structures that are used for this
project.
Nic... |
b4fd00997ef0666d5802c9adf1b20648bf60dbcd | 61e5bd64d62378db18d979dff5f28b3d61ddeab7 | /ClntN0.cpp | 4e9f7b5b7744f5064d558ae4cd65c5d9bec14bc9 | [] | no_license | Zhmur-Amir/Zadacha3-4-semester | 3329069ae18f68805ac9425d268b8b98f3ca95f2 | eb01d6a0fd24742a1b89aed607490d0236647041 | refs/heads/main | 2023-03-28T04:08:27.363785 | 2021-04-02T08:28:02 | 2021-04-02T08:28:02 | 353,135,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,213 | cpp | ClntN0.cpp | #include "ClntN0.h"
/*ClntN0 :: ClntN0(const bool r,const int m, const vector<int> brr, const string filename)
{
n=m;
s=r;
FileName=filename;
arr=new int[n];
for(int i=0; i<n; i++)
{
if(brr[i]>=0 && brr[i]<10)
arr[i]=brr[i];
... |
247de181be2cb9469edfcc35e780670bab413e84 | a28685455e9f5c46d561ab9f02129fbec4e24294 | /Cpp/Hello_world_2.cpp | 504babfb40b86842129978642e2eaf9e426015aa | [] | no_license | surabhikanade/DataStructure | 02f40c041c46ecbbc16a91c8fab2bad2187416c1 | da3112d8a3e187c4a5afb7ce0a460a633124418e | refs/heads/master | 2023-09-04T08:12:44.469500 | 2021-09-18T09:24:42 | 2021-09-18T09:24:42 | 375,299,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | cpp | Hello_world_2.cpp | #include<iostream>
using namespace std;
int main()
{
if(cout<<"Hello World")
{
//without using semicolon;
}
} |
e0cebf3c64b32d2e29b3a66204af298bc442275b | f33b926bb4dcbab90e727de1c40c95174beca9cc | /SSTM32/8_Sensor_GPS/8_Sensor_GPS.ino | 9b4facf31ff244e091de73c5e195cb69f71fc17c | [] | no_license | bagus-rataha/Pelatihan-Di-DELAMETA | a5e5176dcaf9b4a0f1ee30dfdec17cf1b1e329bf | 74c73d6ae880ed7fe563684b1e40ef893cef8b66 | refs/heads/main | 2023-09-05T11:14:29.073007 | 2021-11-25T00:55:04 | 2021-11-25T00:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | ino | 8_Sensor_GPS.ino | //Inisialisasi
#include <TinyGPS++.h>
int GPSBaud=9600;
//Tiny GPS
TinyGPSPlus gps;
String latitude, longitude;
void setup() {
Serial.begin(9600);
Serial2.begin(115200);
}
void loop() {
// Baca
while ( Serial2.available() > 0){
gps.encode(Serial2.read());
}
if (gps.location.isValid())... |
95fd033b7e7d97f27d9b51e4d323737f45818c3f | 13a1091034461938ca5a3872b93a90a03c08e0b2 | /Engine/Source/Shared/System/Scene/Rendering/ScnLightComponent.h | 03bc8149a0278274656bd348b92416c4604aa36c | [
"LicenseRef-scancode-public-domain",
"Zlib",
"MIT",
"BSD-3-Clause"
] | permissive | Kimau/Psybrus | 48bcd404a65e69a32bb5f8b2d1dce4e495d38b78 | c9cd7ce4f1aa1e3b9a0fc4f32942e05a95291202 | refs/heads/develop | 2020-05-20T22:25:28.289005 | 2015-12-14T02:19:23 | 2015-12-14T02:19:23 | 47,588,608 | 0 | 0 | null | 2015-12-08T00:41:38 | 2015-12-08T00:41:37 | null | UTF-8 | C++ | false | false | 2,161 | h | ScnLightComponent.h | /**************************************************************************
*
* File: Rendering/ScnLightComponent.h
* Author: Neil Richardson
* Ver/Date: 11/01/13
* Description:
*
*
*
*
*
**************************************************************************/
#ifndef __ScnLightComponent_H__
#define __ScnLig... |
f81a7773c4098553a45b50df6bd5628b037808a8 | e3e7c57fc413e3b6bb79166b686d2210c82beb71 | /stgui/src/ui/slider.cpp | dcc07d609be3f53cd89be08846d9a860fd1cf253 | [] | no_license | pronebel/fork-imgui-imdesigner | 65a5c7550162ea1bd1002949598013dc8fed474f | 62d90eb90cda54190407da680a1e979842d96503 | refs/heads/master | 2023-03-16T20:00:10.274984 | 2019-02-16T16:37:23 | 2019-02-16T16:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 56 | cpp | slider.cpp | #include "slider.hpp"
using namespace st::ui;
|
27ad9dd425f9b5ac858228df8054d80817ce58da | cc17eb854019ceafb8b9d5a7a80d88b14363fee6 | /1412Star.cpp | 5f6353aa117525c10ae9c99b8b1a80774f6478ef | [] | 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 | 307 | cpp | 1412Star.cpp | #include<stdio.h>
int main()
{
int n,i;
while(scanf("%d",&n)!=EOF)//第一个图形只有一个
{
int sum=1;//第二个图型外围增加了12个
for(i=2;i<=n;i++)
{
sum=sum+(i-1)*12;
}
printf("%d\n",sum);
}
return 0;
}
|
1f86888867995049d39f39d4aa22a6a73811fb44 | 7ee1d46e0113cb79a7187678a09a799be74efb98 | /union find.cpp | 7d3d67477a1e2ed32ddc28da63f74717a1ff647e | [] | no_license | aayush1010/Codes | bc7646bded879d8dc23e9bd132491be4f17c85b8 | 32d87f01f1ae071f171283d623e2780fb9cef910 | refs/heads/master | 2021-01-22T10:15:07.090072 | 2019-01-25T11:50:47 | 2019-01-25T11:50:47 | 102,337,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | union find.cpp | #include <iostream>
using namespace std;
class uf{
private:
int a[];
public:
void quickfind(int n){
for(int i = 0; i < n; i++){
a[i] = i;
}
}
bool connected(int p, int q){
if(a[p] == a[q]){
return true;
}
return false;
}
void unionf(int p, int q){
int pid = ... |
532ddb3e7bfcccd301e4e0ff94f739f9c997de0d | db108683e72b17e76ad5bd1ce3c63083cffee95b | /ObjetoGeometrico.cpp | 58e940ee13c263a8df64fec81ddcb078014d9c02 | [] | no_license | Julia1297/texturas | 9f99edf0528ef1b6446976940fbf38b180b31d37 | 8fcb3f95bbf6a6f2f665e2f57fa1d7dc21aee925 | refs/heads/master | 2020-05-27T17:41:43.213155 | 2019-06-17T21:35:11 | 2019-06-17T21:35:11 | 188,725,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 86 | cpp | ObjetoGeometrico.cpp | #include "ObjetoGeometrico.h"
ObjetoGeometrico::ObjetoGeometrico(bool s){sombra = s;}
|
2444f9813e23cf9c1fac429f05d58ee59b0e8737 | 0149ed842327e3133fc2fe7b49d6ee2e27c22021 | /opencl/test/unit_test/command_queue/enqueue_kernel_mt_tests.cpp | a8a10a1daeb76c268ed52056e0f974e9f02be19f | [
"MIT"
] | permissive | intel/compute-runtime | 17f1c3dd3e1120895c6217b1e6c311d88a09902e | 869e3ec9f83a79ca4ac43a18d21847183c63e037 | refs/heads/master | 2023-09-03T07:28:16.591743 | 2023-09-02T02:04:35 | 2023-09-02T02:24:33 | 105,299,354 | 1,027 | 262 | MIT | 2023-08-25T11:06:41 | 2017-09-29T17:26:43 | C++ | UTF-8 | C++ | false | false | 19,675 | cpp | enqueue_kernel_mt_tests.cpp | /*
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/helpers/kernel_binary_helper.h"
#include "shared/test/common/mocks/mock_csr.h"
#include "shared/test/common/mocks/mock_submissions_aggregator.h"
#include "opencl/source/command_queue/command_queue_hw... |
6cb1e80a2241e503213c2aa7ddc7533d10011cc2 | 54560d42aab27bd862b353d975659cf59411ec87 | /Z2170P/SRC/DRIVERS/PM/DLL/pmdisplay.cpp | 7cd72c92087fa0c71e82291fb7fcaabde5000105 | [] | no_license | zizilala/projects_wince_BB | 306a5c0e33e0b4e11faef61224335c0bd3086e4c | 4d7b5717a424354dd6d38a52f9fcb3efa712a906 | refs/heads/master | 2020-05-17T23:01:14.292063 | 2013-08-09T09:59:49 | 2013-08-09T09:59:49 | 11,998,092 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,612 | cpp | pmdisplay.cpp | // All rights reserved ADENEO EMBEDDED 2010
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement... |
3a34bc8e2b2f314e20ddda79edcea780c0531e7c | 2e359b413caee4746e931e01807c279eeea18dca | /2481. Minimum Cuts to Divide a Circle.cpp | d096303c34d0b59f7349be9216656eec81099a27 | [] | no_license | fsq/leetcode | 3a8826a11df21f8675ad1df3632d74bbbd758b71 | 70ea4138caaa48cc99bb6e6436afa8bcce370db3 | refs/heads/master | 2023-09-01T20:30:51.433499 | 2023-08-31T03:12:30 | 2023-08-31T03:12:30 | 117,914,925 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 123 | cpp | 2481. Minimum Cuts to Divide a Circle.cpp | class Solution {
public:
int numberOfCuts(int n) {
if (n==1) return 0;
return (n&1) ? n : n/2;
}
}; |
cf00e98d07aa9ccd3c238bb714dc30f1dcdd930e | 309fceba389acdb74c4de9570bfc7c43427372df | /Project2010/Bishamon/include/bm3/core/policy/Transform/bm3_policy_Transform_SwitchResource.h | c9071079844ae772ad27ff31d51204dc3f6cf052 | [] | no_license | Mooliecool/DemiseOfDemon | 29a6f329b4133310d92777a6de591e9b37beea94 | f02f7c68d30953ddcea2fa637a8ac8f7c53fc8b9 | refs/heads/master | 2020-07-16T06:07:48.382009 | 2017-06-08T04:21:48 | 2017-06-08T04:21:48 | null | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 2,524 | h | bm3_policy_Transform_SwitchResource.h | #ifndef BM3_SDK_INC_BM3_CORE_TRANSFORM_BM3_POLICY_TRANSFORM_SWITCHRESOURCE_H
#define BM3_SDK_INC_BM3_CORE_TRANSFORM_BM3_POLICY_TRANSFORM_SWITCHRESOURCE_H
#include "../../bm3_Const.h"
#include "../../bm3_CoreType.h"
namespace bm3{
BM3_BEGIN_PLATFORM_NAMESPACE
class DrawInfo;
namespace policy{
namespace impl{
/// @... |
71ddd7ad9e20290dade2396d4388d6f223511113 | cb1a7da63be4dfdfced9be4cb82ce892de4ce09b | /src/modules/px4_simulink_app/MW_uORB_Read.cpp | fcd0dd1284c4138098108496804685933b2dae17 | [
"BSD-3-Clause"
] | permissive | MatDias97/Firmware-FST | b266eeabffd57f4914af1b667a3a46dd7f166a45 | 27c7b83aebbb16715c1eac813a85fd25c317eae2 | refs/heads/master | 2022-01-07T22:49:06.138318 | 2019-06-05T08:39:02 | 2019-06-05T08:39:02 | 190,356,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,913 | cpp | MW_uORB_Read.cpp | /* Copyright 2018 The MathWorks, Inc. */
#include "nuttxinitialize.h"
#include "MW_PX4_TaskControl.h"
#include "MW_uORB_Read.h"
#define DEBUG 0
void uORB_read_initialize(orb_metadata_t* orbData,
pollfd_t* eventStructObj,
double sampleTime) {
int fd = orb_subscr... |
001db46183a16d059bb803a04e0f587102d7d654 | e9f4a4b5b191fe8163ea1f4f211e241069b2c237 | /src/moving_det/include/real_time_scanline.h | b10447d1b44036cce3760d3365a48fc2468411af | [] | no_license | wine3603/motion_detection | c2b066721c96f3e2f83e5bd2acf16922e1803e74 | 6a7dbc2b10b225417c0fc07e047d382808a10771 | refs/heads/master | 2020-09-14T05:58:42.217237 | 2016-09-20T06:27:59 | 2016-09-20T06:27:59 | 66,825,635 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,594 | h | real_time_scanline.h | /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 2016 05 01 @ the Univ. of Tokyo
% Tianwei Zhang
% file: real_time_scanline.h
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
#ifndef REAL_TIME_SCANLINE_H
#define REAL_TIME_SCANLINE_H
#include<math.h>
#include<tim... |
73879b06a4570a10cdcf3ab2093d4dbca20ac361 | 00aea0af71ea42d3fc98f78da4252aa832a25e51 | /Solace/SolaceRun/DrawablePath.cpp | 21006539822a704c1d77091ebcb4226034816b29 | [] | no_license | tectronics/dysnomia | adfe2dcc5162a35c8650e530fa26938b8ae2f8ec | a496d4044e5e2f01c121d608dac088b95b988619 | refs/heads/master | 2018-01-11T15:15:21.764562 | 2012-10-12T00:12:01 | 2012-10-12T00:12:01 | 49,559,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,960 | cpp | DrawablePath.cpp | #include "DrawablePath.h"
DrawablePath::DrawablePath( ISceneNode *node )
: node( node ),
totalPathNodes( 500 ),
currentPathNode( 0 ),
targetPathNode( 0 ),
flyAngle( 360 ),
currentDistance( 0 ),
distanceBetween( 450 ),
drawing( false ),
closing( false )
{
initPath();
}
DrawablePath::~DrawableP... |
9e6358b9485939dffa55596ef41eb5c7181c6fbb | a6a479d266622bc5f2558fa11992069e3d4827db | /BMS_2/Demodulator.h | 63419c62191e977cf402a073be5d1e546ab03f73 | [] | no_license | Klarksonnek/FIT | 1c8831b3af40a191576b10144a829ed6d9d0027d | c6a041aa8305cda244f8ac691479004789f8fe06 | refs/heads/master | 2021-03-27T09:49:30.377896 | 2019-07-04T15:03:08 | 2019-07-04T15:03:08 | 107,965,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | h | Demodulator.h | #pragma once
#include <string>
#include <vector>
#include "sndfile.hh"
/**
* Class containing information and methods needed
* for demodulation.
*/
class Demodulator {
public:
Demodulator();
void demodulation();
void setInputWavFile(const std::string &file);
private:
std::string makeTxtFile();
void setEps(... |
7f9437e80c58e9e437ef8f3fa730e5176bb58bce | 5f67658f61d03a786005752583077a40b42d03b1 | /UtilityClasses/MemoryPipe.h | eed0cb5c5db1f6ab8ee4ea08c49df3ba83b4e1b5 | [] | no_license | newtonresearch/newton-framework | d0e5c23dfdc5394e0c94e7e1b7de756eac4ed212 | f922bb3ac508c295b155baa0d4dc7c7982b9e2a2 | refs/heads/master | 2022-06-26T21:20:18.121059 | 2022-06-01T17:39:47 | 2022-06-01T17:39:47 | 31,951,762 | 22 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 671 | h | MemoryPipe.h | /*
File: MemoryPipe.h
Contains: External interface to the Newton ROM memory buffer pipe class.
Written by: Newton Research Group, 2010.
*/
#if !defined(__MEMORYPIPE_H)
#define __MEMORYPIPE_H
#include "BufferPipe.h"
/*----------------------------------------------------------------------
C M e m o r y P i p e... |
5bd26f0cce4647c3e01d87cc424da9cf106b3c66 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_4534_squid-3.5.27.cpp | ba7c0429c202a085263c39d9c2d09b223f0927ea | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,238 | cpp | squid_repos_function_4534_squid-3.5.27.cpp | void Ssl::Helper::Init()
{
assert(ssl_crtd == NULL);
// we need to start ssl_crtd only if some port(s) need to bump SSL *and* generate certificates
// TODO: generate host certificates for SNI enabled accel ports
bool found = false;
for (AnyP::PortCfgPointer s = HttpPortList; !found && s != NULL; s ... |
012fa942e0010e8100b93404b846df8b6c7c9402 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_1/C++/pps789/2016QD_Fractiles.cpp | 514b8e2e0c355cbaac337b6debe5214afb7557d2 | [] | 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 | 891 | cpp | 2016QD_Fractiles.cpp | #include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
typedef long long ll;
ll gen(const vector<ll>& v, int K){
ll ret = 0;
for (ll c : v){
ret *= K;
ret += c;
}
return ret + 1;
}
int main(){
freopen("large.in", "r", stdin);
freopen("large.out", "w", stdout);
in... |
2c573ada93017d8e7122fa404fcda5597892dd03 | da741c443fd6bdf19dfcfc1193ce198aff66505c | /Funciones/Ejercicio12.cpp | cb818d1be286b9c2c3a05ac473f7b2bfe0d01980 | [] | no_license | AbrahamFB/Programaci-n-en-C-B-sico---Intermedio---Avanzado- | d5dad53a83f844d93dc3fe772c6ecb80d1fd04de | 9f3c312c39a60dc7b2ca437d24cc7607055f40b0 | refs/heads/master | 2022-07-19T19:15:19.342667 | 2020-05-17T01:53:53 | 2020-05-17T01:53:53 | 264,562,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | Ejercicio12.cpp | #include <iostream>
#include <conio.h>
using namespace std;
int vec[100], tam;
void pedirDatos(){
cout << "Ingresa el numero de elementos del vector:" << endl;
cin >> tam;
for(int i = 0; i < tam; i++){
cout << i+1 << ". Ingresa un numero:" << endl;
cin >> vec[i];
}
}
void verificarOrden(int vec[], int tam)... |
d8f824522c44341592d326a5c0fc518067a01028 | 92489191d6b7c829dfc134e0aa2e65ec4d31abcb | /Handel/chooseapersondialog.cpp | fa067da9a4f17b81bf57de86e6654ba9691fec8b | [] | no_license | hergerr/POProject | f0d22ac2dbb767377cee28114b8062402b9b4b03 | 3c51dc6627529d50d86d08c3bf8be5740e95073d | refs/heads/master | 2020-03-06T23:02:58.014703 | 2018-04-11T14:27:53 | 2018-04-11T14:27:53 | 127,121,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 762 | cpp | chooseapersondialog.cpp | #include "chooseapersondialog.h"
#include "ui_chooseapersondialog.h"
#include <QMessageBox>
ChooseAPersonDialog::ChooseAPersonDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ChooseAPersonDialog)
{
ui->setupUi(this);
}
ChooseAPersonDialog::~ChooseAPersonDialog()
{
delete ui;
}
//... |
084b3a596e0395d41998914824e8dc7335e05717 | 60aa54a3969a506a275ac033471f3d15b8c4ae68 | /event/OurEvent.cpp | 0e6de610feafdd7a078fa4dae4cb022b3ef7fb1b | [] | no_license | IRETD/TestSystemServer | 5e9cf9bb7a3d6825523dfe52d435fca3d8876cdb | 78ec19579c363d99dae9ecd36f01483d05335fcc | refs/heads/master | 2021-09-10T02:36:31.703918 | 2018-03-20T18:47:24 | 2018-03-20T18:47:24 | 126,066,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 228 | cpp | OurEvent.cpp | #include "event/OurEvent.h"
OurEvent::OurEvent() : QEvent( ( Type ) eventType ) {
}
void OurEvent::setRequest( Request *pRequest ) {
m_pRequest = pRequest;
}
Request *OurEvent::getRequest() {
return m_pRequest;
}
|
58e40e648f3699e54869b4a7065fea09900cdfa8 | da34178acfaf567a7faa0fb10ea9d50c8ddf0d98 | /usacogift1.cpp | 72eef0f0fa35d2340a1f0fbc1fab06ab8f13182e | [] | no_license | csgregorian/competition | d81890b940a8912aefd3c724760bef421dcea38e | bd87ca6b104ede1d36b8d3fc475c96694078ebfb | refs/heads/master | 2020-05-31T03:56:51.174808 | 2015-10-15T19:44:17 | 2015-10-15T19:44:17 | 24,005,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | usacogift1.cpp | /*
ID: csgregorian
PROG: gift1
LANG: C++
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
ofstream fout("gift1.out");
ifstream fin("gift1.in");
int np;
fin >> np;
map<string, int> people;
string people1[np+1];
for (int i = 0; i < np; i++) {
string person;
fin >> person;
people1[i] = pers... |
5b2416ff9a3f3514bebfe8150990a1f74d2112b8 | c5f3f36394557254c105ba229ced551851e29712 | /source/oishii/Endian.hxx | 19e46b397427e611dc0a8d0e6e685525e9422a2d | [
"LicenseRef-scancode-public-domain"
] | permissive | riidefi/RiiStudio | 78a21b002f639863fb7c4d18608efac39107a098 | 22d35de909cfce53e49415c693eb2ba65fde2859 | refs/heads/master | 2023-08-22T17:51:38.192281 | 2023-08-21T19:48:29 | 2023-08-21T19:48:29 | 206,892,230 | 85 | 21 | null | 2023-09-06T20:14:21 | 2019-09-07T00:16:23 | C++ | UTF-8 | C++ | false | false | 2,410 | hxx | Endian.hxx | #pragma once
#include <bit>
#include <stdint.h>
namespace oishii {
template <typename T1, typename T2> union enumCastHelper {
// Switch above means this always is instantiated
// static_assert(sizeof(T1) == sizeof(T2), "Sizes of types must match.");
T1 _t;
T2 _u;
enumCastHelper(T1 _) : _t(_) {}
};
#if OI... |
bae6ed9bba26e1333bbbbb979e04904d0b0b806c | eee583c09ba2ce603a8295749e02fcba3a54d0c6 | /Chipset/keyboard.cpp | 115b4188159a822269dca8161bfa1abb6a13c02a | [] | no_license | zyq8709/tower-pc | 04966a619a09d60128ea46a6d99f3e8d18be5439 | 60231139835ecf5410bf0036d2a7414108bc993b | refs/heads/master | 2021-01-17T23:39:02.129443 | 2013-02-01T14:28:47 | 2013-02-05T07:17:44 | 59,875,726 | 0 | 1 | null | 2016-05-28T03:38:01 | 2016-05-28T03:38:00 | null | UTF-8 | C++ | false | false | 11,317 | cpp | keyboard.cpp | #include "stdafx.h"
#include "keyboard.h"
#include "Piston\String.h"
#include "Piston\Win32\ui.h"
#include "keyboard_codes.h"
namespace Tower { namespace Chipset {
int8 KBC::last_command;
int8 KBC::port61_toggle;
int8 KBC::chip_ram[0x20];
int8 KBC::out_bfr[16];
// status byte
int8 KBC::out_bfr_len;
int8 KBC:... |
5f62287c0525d8160c7a7fb229835af316fc7673 | 73bd731e6e755378264edc7a7b5d16132d023b6a | /UVA/575 (skew binary).cpp | 231a393ad2683ae48173531eee5565351107a970 | [] | no_license | IHR57/Competitive-Programming | 375e8112f7959ebeb2a1ed6a0613beec32ce84a5 | 5bc80359da3c0e5ada614a901abecbb6c8ce21a4 | refs/heads/master | 2023-01-24T01:33:02.672131 | 2023-01-22T14:34:31 | 2023-01-22T14:34:31 | 163,381,483 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | 575 (skew binary).cpp | #include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
long int skewBinary(char *input)
{
int n;
long int number=0;
int len=strlen(input);
for(int i=0; input[i]; i++){
n=input[i]-48;
number+=n*(pow(2, len)-1);
len--;
}
return number;
}
int main(... |
7283c884b1a636f8881c109b32f4f016f769b162 | 8f5f758a83ebc26b57c06ef364d6a8fa59d91830 | /src/classes/AllNothing.cpp | 941bfc67bd53ceb0dea4014baf1529ecc265235b | [] | no_license | cdconn00/GamblerGame | 8f40e6bd375bf29d5ed099e6b6e23e4eefc9f402 | a9c74e153ab312ffd791d21e301be3d61662ae38 | refs/heads/master | 2022-11-28T07:10:14.427007 | 2018-12-31T17:13:33 | 2018-12-31T17:13:33 | 163,685,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,601 | cpp | AllNothing.cpp | /*
* AllNothing.cpp
*
* Created on: Jun 19, 2018
* Author: cdcon
*/
#include "AllNothing.h"
AllNothing::AllNothing() {numberpick = 0, tempnbr = 0;}
void AllNothing::setup(Gambler& Player)
{
bool isvalid;
std::cout << "Welcome to all or nothing! You wager a amount 0-100! \n";
std::cout ... |
7cb6224959da0cd6dabc9d5cdede5eda04550e4a | 54d2eab607e20b2c58328eecb4ad9a3f055516c4 | /spoj/(combinatorics)marbles.cpp | 020d64373d3a9096478d7d4a461d9b1c390dc594 | [] | no_license | pk2809/cp_alg | c9528b2d179dc72fe0c4ae0631b36c78e48946c2 | dbd1a7f0c040fb4dd0c325d6e3ab8977511f69a8 | refs/heads/master | 2022-07-29T01:15:18.536661 | 2020-05-09T20:19:57 | 2020-05-09T20:19:57 | 256,322,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | (combinatorics)marbles.cpp | /*Sun May 10 01:46:10 2020
This is written by @pk_2809*/
#include <bits/stdc++.h>
#define ll long long int
#define vi vector<int>
#define vl vector<long long>
#define fin(ar,k,n) for(int i=k;i<n;i++) cin>>ar[i]
#define fout(ar,k,n) for(int i=k;i<n;i++) cout<<ar[i]<<' '
#define vs vector<string>
#define mx INT_MAX
#... |
b3f372a28f83c46759f08355f0d7f0327c36f160 | 9c001762d4571b0cf4c1209459b305876ee15b20 | /ProFun Week4.1/Source.cpp | 64fbb408e0d5fa4fb7b60bbdc17bf36ae8258a3e | [] | no_license | maimoke/ProFun-Week4.1 | 0b1595b5428c97fc0e70be7b4855154ce5bfc58e | a478d07d36bf1f90bccf750b84a8a1ecd0d76bba | refs/heads/master | 2022-12-09T23:07:20.257101 | 2020-09-03T17:55:45 | 2020-09-03T17:55:45 | 292,642,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | Source.cpp | #include<stdio.h>
int main()
{
float a;
scanf_s("%f",&a);
if (a < 0) printf("Please insert the number that is greater or equal zero");
else if (a >= 80) printf("A");
else if (a >= 70)printf("B");
else if (a >= 60)printf("C");
else if (a >= 50) printf("D");
else printf("F");
return 0;
} |
ab60211e4087a80b04085098a7d893553edcb0c1 | c6114798112d8c4c6b7fd8e7c8dbf31d11301bf0 | /TSOJ/timu1395.cpp | 63ed399bb50992b77c96ddd26d4cab4ecfb34c07 | [] | no_license | jiangtao1234ji/ACM-code | fb2b321d116a5f61b7771a8086862f886ed61935 | b549bbdf0aae7214e840ab0e15f9e484c5494781 | refs/heads/master | 2020-04-16T02:58:47.307497 | 2019-03-10T05:53:00 | 2019-03-10T05:53:00 | 165,215,632 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | cpp | timu1395.cpp | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
vector<int> v;
void permutation(int N)
{
if(v.size()==N)
{
for(int i = 0; i<N; i++)
{
cout<<v[i];
}
cout<<endl;
}
for(int i = 1; i<=N; i++)
{
if(find(v.begin(),v.end(),i)==v.end())
{
... |
a508add71e3885fca18a47489dda68be070775d3 | 8799d3e93f6edb753d09616651067af2346e0016 | /比赛/2019秦皇岛Camp/camp1/训练营1K.cpp | 9eee0c970275effcda69787e09a69a29461e2db6 | [] | no_license | StarPolygen/Code_Library | 560b6c07af9f975e81efdeda60ce031b5dff3a22 | a259f4e003817b317d4847222235edc09e4e5380 | refs/heads/master | 2021-07-13T06:18:09.796797 | 2020-07-24T13:03:11 | 2020-07-24T13:03:11 | 184,305,507 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,602 | cpp | 训练营1K.cpp | #include <bits/stdc++.h>
const int maxn = 4000300;
using std::vector;
struct edge{
bool operator <(const edge& edg) const{
return dis < edg.dis;
}
int from=0,to=0,dis=0;
edge(int from,int to,int dis){
this->dis=dis;
this->from=from;
this->to=to;
};
};
int father[maxn];
int find(int x);
void ... |
fb5ac60ea63b4a9b861e5d82a0f1dd1d97a46b01 | b07495b9d5b6761ea277f4d64e1ef9524a41e8b4 | /Metin2OpenFileManager-d3v/LogHandler.cpp | ecd72570c5a4233a44fa6a3d6c34a8cf26dfa671 | [] | no_license | cret91/metin2-open-file-manager | ed684e36b246670cd6842b8ed5e2109c33685d49 | 849acae3a5c2029f84a544624a3e4d4a996ab4ab | refs/heads/master | 2021-01-10T13:16:07.258179 | 2013-08-20T13:16:56 | 2013-08-20T13:16:56 | 43,668,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | cpp | LogHandler.cpp | #include "LogHandler.h"
void LogHandler::PrintMessage(char Message[],bool IsError)
{
if (!(Out = fopen("OFMLogs.txt","w+")))
{
printf("[ERROR] Unable to write to the log file.\n");
_getch();
exit((int)Out);
}
char FinalMessage[500];
memset(FinalMessage,0,sizeof(FinalMessage));
if (!IsError)... |
ce78bd6c2b62bc8164b6e818a6f0c2edcc4da538 | 6749c9b296682be2c7ecfbdd9ecc77bf04416086 | /Player.hpp | d2efb5e3b7617d5c072c1d8263979b762f454111 | [] | no_license | JViggiani/Game-Theory | 59cd85ac57b6c9a9fa5c4ef2c8f362e11a1876e2 | f93bc90fcaf556665c2faa7c26f18b706ff78a4d | refs/heads/master | 2023-01-12T04:14:57.976205 | 2020-11-12T23:04:27 | 2020-11-12T23:04:27 | 302,991,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,110 | hpp | Player.hpp | #pragma once
#include <memory>
#include <string>
#include <typeinfo>
#include "Personality.hpp"
#include "RoundResults.hpp"
#include "eDecisionType.hpp"
#include "ePlayerNumber.hpp"
#include "ePersonalityType.hpp"
namespace Core
{
//! This class is a wrapper Proxy around the polymorphic Personality pointer. Decisi... |
8a29e2a08e2e7f05ae8ab2ae39c88f1be40149d9 | a0c4ed3070ddff4503acf0593e4722140ea68026 | /source/NET/UI/COMMON/SRC/BLT/TESTAPPS/DIALOG.CXX | 20cc9e7cdfd8b90fccbed07ef3033fab9ddaf2f0 | [] | no_license | cjacker/windows.xp.whistler | a88e464c820fbfafa64fbc66c7f359bbc43038d7 | 9f43e5fef59b44e47ba1da8c2b4197f8be4d4bc8 | refs/heads/master | 2022-12-10T06:47:33.086704 | 2020-09-19T15:06:48 | 2020-09-19T15:06:48 | 299,932,617 | 0 | 1 | null | 2020-09-30T13:43:42 | 2020-09-30T13:43:41 | null | UTF-8 | C++ | false | false | 3,414 | cxx | DIALOG.CXX | #include "tester.hxx"
/**********************************************************\
NAME: DIALOG_OBJECT
SYNOPSIS: Test the dialog package in the BLT.
INTERFACE:
DIALOG_OBJECT() - consturctor.
PARENT: DIALOG_WINDOW_WITH_END
HISTORY:
terryk 29-1-2000 created
\*****************... |
6d2726852cc9d535ba9965651654d8b8bb62d737 | a4e8150feea2a799c2a8d918b215c10192429f89 | /src/plan.cpp | eac599262a61881c2f0b9f0efea0e19d1837352e | [] | no_license | sebastianstock/chimp_jni | 2ad7d5e5a4288b4b74e8c013d651e133491a59a5 | 504eb1bff97397f0068a4268a5719796c63bb64e | refs/heads/master | 2020-09-04T12:50:05.560005 | 2019-04-24T10:09:57 | 2019-04-24T10:09:57 | 219,736,392 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | plan.cpp | #include <chimp_jni/plan.hpp>
namespace chimp_jni
{
std::ostream &operator<<(std::ostream &os, const Plan &plan)
{
os << "found plan? " << plan.found_plan << "\n";
os << "Actions:\n";
for (ChimpFluent fluent : plan.fluents)
{
os << fluent << "\n";
}
os << "All fluents: \n";
for (Ch... |
2162d0138dade8bf7b0ed6b019caf0713a59f4ec | 5f43184e7afdb76e5b99ea6dfed9426db021442c | /minisql/BPlusTree.cpp | e102e0a4c7acf1fb68b4cb72f05a8d53ab3dadd3 | [] | no_license | zzhyzzh/MiniSQL | 68f8525c52d4c8a1498a865ef5cace2f2e2e2a3f | 384f33e05a597b8594bdeb94ad25152821f2c561 | refs/heads/master | 2020-04-02T10:38:33.845783 | 2018-10-23T15:07:51 | 2018-10-23T15:07:51 | 154,348,044 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 25,213 | cpp | BPlusTree.cpp | #include"BPlusTree.h"
#include<iostream>
using namespace std;
extern BufferManager bufferManager;
extern CatalogManager *catalogManager;
BPlusTree::BPlusTree(Index indexInfo)
{
order = (BLOCK_SIZE - 12) / (indexInfo.length + 8) + 1; //计算B+树的度
myIndexInfo = indexInfo;
leaf_least = ceil((order-1) / 2.0);
... |
8d15fbf8a4470ed1ec899e1ccd1b0fe53e1afbbb | 010b385e60d4c6d71f20f9067147001790edc05d | /src/LoadData.h | c6758d82c73ca1aa1960588b4a8c5260ce59e585 | [] | no_license | ericgorlin/cs156b | edbc51e216044411fc8e25c97d0491ba5798a1cf | afe295af0f0c652291e6cb2b10f3bdc3bf781686 | refs/heads/master | 2021-01-21T17:46:08.893248 | 2015-04-27T06:12:23 | 2015-04-27T06:12:23 | 33,847,707 | 0 | 0 | null | 2015-05-04T09:05:59 | 2015-04-13T04:27:04 | C++ | UTF-8 | C++ | false | false | 922 | h | LoadData.h | #ifndef LOADDATA_H
#define LOADDATA_H
#include <iostream>
#include <fstream>
#include <ctime>
#define ARMA_64BIT_WORD
#include <armadillo>
#include <unordered_map>
#include <math.h>
using namespace std;
class LoadData
{
public:
LoadData();
virtual ~LoadData();
static arma::sp_mat start();
... |
96bec7287949d15afc24c6c33886a2a210423a2f | c7dcee816419434baa229cc017bfe66fe6e67a4e | /CodeJam/2014/B.cxx | 132139882ac71fc5815444d9e207187394a3fe51 | [] | no_license | Yuwain/Competitions | fb0cdb36f083cdc708fa4ddfb88a951a089aa88c | ba2563f8bd3f649adb4591af8d3370d51443afda | refs/heads/master | 2021-01-10T14:41:44.184926 | 2015-09-24T01:29:19 | 2015-09-24T01:29:19 | 43,036,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cxx | B.cxx | #include <iostream>
#include <iomanip>
using std::cin;
using std::cout;
using std::endl;
using std::fixed;
using std::setprecision;
double time_to_win() {
double time = 0,
time_win,
farm_cost,
time_farm,
farm_speed,
time_win_next,
win_condition,
cookies... |
ba5791af2ade1bec6d430744487bfb151f61ad95 | 297497957c531d81ba286bc91253fbbb78b4d8be | /gfx/ots/RLBoxWOFF2Host.cpp | 311490b61af7fd3f67ba98a1e8cefd5e60725f2c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 6,888 | cpp | RLBoxWOFF2Host.cpp |
#include "RLBoxWOFF2Host.h"
#include "nsPrintfCString.h"
#include "nsThreadUtils.h"
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/RLBoxUtils.h"
#include "mozilla/ScopeExit.h"
#include "opentype-sanitiser.h"
using namespace rlbox;
using namespace mozilla;
tainted_woff2<BrotliDecoderResult> RLBoxBrotli... |
780e6913f1ff2aa5e9a6dfec90700a97647c38f9 | 0f31e3262a348c7c5cfa83ab734ea31651656e76 | /deferRendering/JGlobalVariables.h | cdea4c7e3a785faeae070c98edf155af3b1a3b4b | [] | no_license | ingun37/deferredRendering | d56fb1dbec0cdeabb489ec274ebff886ad9cf601 | 8a6afb021b8cb69c86614a26666b5e1420053411 | refs/heads/master | 2020-04-16T13:23:06.074858 | 2015-04-27T17:10:40 | 2015-04-27T17:10:40 | 33,111,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 208 | h | JGlobalVariables.h | #pragma once
#include "JLinearAlgebra.h"
class JGlobalVariables
{
public:
static JVector3 gWorldCameraEyePos;
static JVector3 gSunlightDir;
JGlobalVariables(void);
~JGlobalVariables(void);
};
|
dca81f61bc1494361f0b6e74232c736fe34030d8 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /v8/src/api-arguments.cc | f8d6c8fcc3ddda3ee8d83e5419be4b7127ff8f8a | [
"BSD-3-Clause",
"SunPro",
"bzip2-1.0.6"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 1,165 | cc | api-arguments.cc | // Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/api-arguments.h"
#include "src/tracing/trace-event.h"
#include "src/vm-state-inl.h"
namespace v8 {
namespace internal {
Handle<Object> ... |
f0394bd3938dba902437ccd2993e956c813bff15 | 7aa33c0eb23f57534b08fb023ffcb624dfa275d5 | /include/Entities/Entity.h | 2289599b9e64a37c890fb120eeb3623dbf24c5c7 | [] | no_license | danielzelayadev/jrpg-cpp | 52a0c6091d438cb792a15074686585cfe80552af | bff5f7ef3fa22ea48442e8e0c1c55fadc9d723de | refs/heads/master | 2021-05-29T23:06:44.263996 | 2015-07-08T00:21:57 | 2015-07-08T00:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 918 | h | Entity.h | #ifndef ENTITY_H
#define ENTITY_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "Animation.h"
#include "TMX/RectangleMapObject.h"
enum WalkDirs
{
WALK_DOWN, WALK_LEFT, WALK_RIGHT, WALK_UP
};
class Entity
{
public:
Entity(SDL_Renderer* renderer, RectangleMapObject* obj);
virtual ... |
74dc680a5175ca69280877e0f8e099fca2f14fa6 | 5a5b980cfea3cf29e07596c8716e66e606c5eebc | /namespace1.cpp | 976fd18cc5cba47347617721759459b2a33f4b92 | [] | no_license | Seanoy/cpp_test | 74d3cab28b8a89fde32242b334434d8da41f1fcd | 2d70718bac559e61986f970bd0470cc8767f7924 | refs/heads/master | 2021-05-21T08:09:51.216807 | 2020-05-25T13:49:20 | 2020-05-25T13:49:20 | 252,611,388 | 0 | 0 | null | 2020-04-28T07:38:50 | 2020-04-03T02:12:17 | null | GB18030 | C++ | false | false | 2,110 | cpp | namespace1.cpp | #include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <stdexcept>
using namespace std;
namespace first_space {
void foo() {
cout << "within first place" << endl;
}
}
namespace second_space {
void foo() {
cout << "within second place" << endl;
}
}
template <typename T>
inline T c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.