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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f800488f761682a6f2281e27528e185e417363c | 5ba90779651bb27480d84b0db3848b3db1fbe0ba | /aula_03/main.cpp | ecc21c52d6da0a0d62670c619f7b1d131b0dee73 | [] | no_license | LuizAFF/cpp_course | ce58dd26313e67e6241d37255da8dc52a56db919 | 7a9cb76e52339b3b66d0b6192bc3ed4c6187ccfd | refs/heads/master | 2020-05-05T08:35:21.588069 | 2019-04-18T23:18:29 | 2019-04-18T23:18:29 | 179,869,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | main.cpp | #include <iostream>
#include "vector2d.h"
void print_vector(const math::Vector2D& v)
{
std::cout << "{" << v.x() << ", " << v.y() << "}\n";
}
int main()
{
using math::Vector2D;
auto v = Vector2D{3, 5};
print_vector(v);
v += {7, 8};
print_vector(v);
auto iv = inverted(v);
print_vector(v);
... |
746b7790ebcc3fbe80590a37009ba1824e1977fd | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/autodoc/source/parser/cpp/pev.hxx | 1a4c6acffc7dc879dfaa80d3a658ea6cfbfb745b | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 10,745 | hxx | pev.hxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
537f19bfea8123c6c4421250e9c5585d33595ab2 | b8fa15bb04db522221ca70e10895981ad87bc864 | /swalib_example/Code/Game/Entities/Components/menu_comp.cpp | e7b62038617317afece83daeb46fe7d3fb7e7b46 | [
"BSD-2-Clause"
] | permissive | yamikadesu/Minijuego | 3e02e609b8c6e3261253b1347a87d4abbfbd2cfd | 83a6a8d736c33fd866ff37a18633940b75d19b40 | refs/heads/master | 2022-03-25T15:59:07.330270 | 2019-12-03T21:08:08 | 2019-12-03T21:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,690 | cpp | menu_comp.cpp | #include "../../../../../common/stdafx.h"
#include "menu_comp.h"
#include <assert.h>
#include "../entity.h"
#include "../../Managers/world.h"
#include ".././../../../../common/sys.h"
#include "../Messages/collision_msg.h"
#include "../Messages/new_pos_msg.h"
#include "../Player.h"
#include "../Messages/damage_msg.h"
#i... |
0e13a3852be907597e9a90d9be04563f40b1cc4a | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /remoting/codec/video_decoder_verbatim.h | 99027ff96f7ff80af441c2c2bac1b814f51a5d47 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,189 | h | video_decoder_verbatim.h | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
#define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
#include "base/compiler_specific.h"
#include "remoting/codec/video_decoder.h"... |
a10692c2a2d4ea16ba1f5bf4ce54ad66a950bbd7 | fce02052f360cf099a4607791dc02df8fb5c652f | /src/sot-tiago-steel-controller.cpp | b1a790adbf14343fbac94d06c44e5b3ce5269fb1 | [
"BSD-2-Clause"
] | permissive | olivier-stasse/sot-tiago | 6fbad51331c5af51fe6eeb39b4ac1b1e286df618 | bb5067736de6e94b4a8c376d4ea7dcfcc5f69fc5 | refs/heads/master | 2020-04-30T21:05:30.116346 | 2019-05-01T16:35:36 | 2019-05-15T08:15:44 | 177,086,509 | 0 | 0 | null | 2019-03-22T06:47:14 | 2019-03-22T06:47:14 | null | UTF-8 | C++ | false | false | 1,086 | cpp | sot-tiago-steel-controller.cpp | /*
* Copyright 2018,
*
* Joseph Mirabel
*
* LAAS, CNRS
*
* This file is part of TIAGOController.
* TIAGOController is a free software,
*
*/
#include <sot/core/debug.hh>
/* TiagoSteel is the instance of TIAGO named "steel" */
#define ROBOTNAME std::string("TIAGOSTEEL")
#include "sot-tiago-steel-controller.... |
ec3f9dcd8ea3e3bfd82b7ccfb733090a843396be | 7c2036e39b6317c7c8d5c2515eb19da6a8d21659 | /Tiger-Zone/GameSrc/board.h | 3c4e0ee14d06cc51eb4d5f3b62602148f28a9136 | [] | no_license | TigerZoneH/TigerZone | 96c7fb2550d4c0a06abfac86ce8cdc9c4f9fff4f | e4d79b4fb7a644170fa9ba6e0d89518019dcb1e0 | refs/heads/master | 2020-06-14T12:07:52.473163 | 2016-11-29T00:44:23 | 2016-11-29T00:44:23 | 75,026,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,178 | h | board.h | #ifndef board_h
#define board_h
#include <stdio.h>
#include "card.h"
#include "deck.h"
#include "trail.h"
#include "lake.h"
#include "jungle.h"
#include "regs.h"
#define ROWS 11 //MAXCARDS*2+1
#define COLS 11 //MAXCARDS*2+1
class Board {
public:
Board(Card* card); // board const... |
a57287edfa332bd2d3c6a4f05a274b781c6add43 | 4baaed7d17519c0e6ca4def1ccd3fe791cf4abce | /Offline 3/1305112.cpp | 188a8cfca200f1609410b7e238a26120d5e8b930 | [] | no_license | rifatarefin/Computational-Geometry | d1cb0a80dcfa7f37560a9b6853150c4b16032cf3 | cdd59fa9689afc4fc4cc5fb8e4fbac143537523e | refs/heads/master | 2021-07-18T11:48:53.377419 | 2020-04-21T18:15:16 | 2020-04-21T18:15:16 | 129,820,398 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,861 | cpp | 1305112.cpp | #define XX -99999
#include<bits/stdc++.h>
#include<algorithm>
#include<GL/glut.h>
using namespace std;
#define pi (2*acos(0.0))
ifstream fin("input3.txt");
struct point
{
double x,y;
};
class triangle
{
public:
point a,b,c;
int idx;
map<point,int>opp_triangle_idx;
int child1=-1,child2=-1,child3=-... |
2217068f7fbd29fecd61e9f97d54f16489d85966 | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Userland/Libraries/LibGfx/ImageFormats/PortableImageMapLoader.h | 21199a63fdf260e793f64737b06e3fa3ccb90334 | [
"BSD-2-Clause"
] | permissive | SerenityOS/serenity | 6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98 | ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561 | refs/heads/master | 2023-09-01T13:04:30.262106 | 2023-09-01T08:06:28 | 2023-09-01T10:45:38 | 160,083,795 | 27,256 | 3,929 | BSD-2-Clause | 2023-09-14T21:00:04 | 2018-12-02T19:28:41 | C++ | UTF-8 | C++ | false | false | 3,726 | h | PortableImageMapLoader.h | /*
* Copyright (c) 2020, Hüseyin ASLITÜRK <asliturk@hotmail.com>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/BufferedStream.h>
#include <AK/MemoryStream.h>
#include <AK/RefPtr.h>
#include <AK/StringView.h>
#include <AK/Types.h>
#include ... |
e609c7c86d3ea38385097a8ea0836a339f6a9ec5 | b36f34b6a24d019d624d1cc74f5b29062eef2ba4 | /frameworks/cocos2d-x/cocos/editor-support/spine/Bone.cpp | be28bd790b8cb48395ae8cafa44e90f2f275bec3 | [
"MIT"
] | permissive | zhongfq/cocos-lua | f49c1639f2c9a2a7678f9ed67e58114986ac882f | c2cf0f36ac0f0c91fb3456b555cacd8e8587be46 | refs/heads/main | 2023-08-17T17:13:05.705639 | 2023-08-17T06:06:36 | 2023-08-17T06:06:36 | 192,316,318 | 165 | 63 | MIT | 2023-08-14T23:59:30 | 2019-06-17T09:27:37 | C | UTF-8 | C++ | false | false | 14,299 | cpp | Bone.cpp | /******************************************************************************
* Spine Runtimes License Agreement
* Last updated September 24, 2021. Replaces all prior versions.
*
* Copyright (c) 2013-2021, Esoteric Software LLC
*
* Integration of the Spine Runtimes into software or otherwise creating
* derivat... |
30cb04f202d0bc8140ec49c4750d9c9ba606de75 | 3fe692c3ebf0b16c0a6ae9d8633799abc93bd3bb | /Contests/Training/Summer2018/day2/utility.h | 6a0ef3e42358d3a79835c355e0a76ddde32b0ea1 | [] | no_license | kaloronahuang/KaloronaCodebase | f9d297461446e752bdab09ede36584aacd0b3aeb | 4fa071d720e06100f9b577e87a435765ea89f838 | refs/heads/master | 2023-06-01T04:24:11.403154 | 2023-05-23T00:38:07 | 2023-05-23T00:38:07 | 155,797,801 | 14 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 206 | h | utility.h | class intCollection
{
public:
int* array;
void add(int element);
int enumerate(int index);
void remove(int element, bool isOnly);
void outputElements();
}
class dictionary
{
}
|
97e8ea1f46886cda2252880db02143006afedbfe | 9eb2c1fba5044d22ecf9354b58c76bab57937a48 | /auto_curtain/auto_curtain.ino | 1ee131a0ddcecd44fc66fc4db8b5f27734db798a | [] | no_license | Gyumin-Kimm/arduino_auto_curtain | bc22597ad27ca4f1d93cc4000b2d52de39e9133a | 7b192e2277eed11d3d98dac1e1c46ca081f13978 | refs/heads/main | 2023-03-02T20:54:54.603877 | 2021-02-12T04:37:46 | 2021-02-12T04:37:46 | 338,224,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,547 | ino | auto_curtain.ino | int DC_MOTOR[6] = {42,44,46,48,4,5};
int LED[8] = {22,24,26,28,30,32,34,36};
int SWITCH[8] = {23,25,27,29,31,33,35,37};
int LED_EN_PIN =6, SW_EN_PIN = 7;
int light_sensor = A1;
int open_detect1 = 3, open_detect2 = 2;
int z=0;
#define LED_EN 1
#define SW_EN 1
void setup() {
Serial.begin(9600);
LED... |
65f2b8a510a2263478bcc45111ae04733936a08e | 957f580a7cdb8fd628b2ed7855695817e790aa4c | /Framework/ObjectTypeRegistration.h | 0211ef60be3a4d8f7cac71f2480441db3ff41a0b | [] | no_license | foolhuang/Helium | b2a1a44b2da2310321ddbe02a096330ddbdc5c9f | ca0c7d6870b0bef2a70cba2bf2cb1337253032b5 | refs/heads/master | 2021-01-17T12:22:18.732439 | 2012-12-06T03:16:37 | 2012-12-06T03:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | h | ObjectTypeRegistration.h | //----------------------------------------------------------------------------------------------------------------------
// ObjectTypeRegistration.h
//
// Copyright (C) 2010 WhiteMoon Dreams, Inc.
// All Rights Reserved
//--------------------------------------------------------------------------------------------------... |
dd5c17b77152bd3e12e2f36e57882ca572ed2530 | 49240dda24175feb158a9d9ab6523e643dd7f844 | /CLI/Source.cpp | d4a0c0856a368f8d816a245a9679e3e259665232 | [] | no_license | drjphogan/vs1 | 69602fa4a37c63e6a6b9ebe632f8eae28c281dd5 | 7f0d024c99167e28903749f322483e280e35de24 | refs/heads/master | 2021-01-21T14:32:23.010183 | 2017-06-24T12:17:55 | 2017-06-24T12:17:55 | 95,294,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | cpp | Source.cpp | #include "ImportExport.h"
#include "Header.h"
#include "Header1.h"
using namespace System;
System::Double Example::CLI::Add_Doubles(System::Double fn1,
System::Double fn2
)
{
// comment to look at git fucntionality again
// comment number 2
// comment number 3
Vanilla v;
v.doSomething();... |
122fc7b061b66a31a0695414655f02ba75ab2629 | 5736e29ff53dd51541e8d1a44a26a62cf7b1c936 | /highscore.cpp | 5b056b6e92445e99a143ae61d917e1547cc50f03 | [] | no_license | AlexStopar/Underfire | 84d64c408631efbc82db70f3649bdcc744df91e7 | bea7d9dabbeb367aa1844a35c8255dc4095c78e3 | refs/heads/master | 2020-12-24T13:36:24.040158 | 2015-08-23T20:58:22 | 2015-08-23T20:58:22 | 41,267,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | highscore.cpp | #include <vector>
#include <fstream>
#include <string>
#include <algorithm>
#include "highscore.h"
#include "common.h"
void HighScore::ReadScore()
{
std::string line;
std::ifstream highScoreFile("highscores.txt");
for (int i = 0; i < 11; i++)
{
std::getline(highScoreFile, line);
scores.push_back(std::make_pair... |
8a7b2fc0b373299ecdf711dc3ebd2d8ad102dbab | 30ff5fcf25c42b132301950f6abc10bcb50aef81 | /src/libradsrc/isotope.h | 7abe48e6382833c98a5d9cdaa4a9a4ec7c922ac7 | [
"BSD-3-Clause"
] | permissive | crbates/radsrc | fd6f06bd83c24d77a587814af7ab827301538749 | 43f482b62b62bfd89522014c9c37783f44b348c6 | refs/heads/master | 2020-05-15T14:54:53.026907 | 2014-04-19T05:21:22 | 2014-04-19T05:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,287 | h | isotope.h | /*
Copyright (c) 2006 The Regents of the University of California.
All rights reserved.
UCRL-CODE-224806
This software was developed by Lawrence Livermore National Laboratory.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are me... |
ecbe291b3b037506d0563fb6054b114a6e459e56 | 6827eb7ee2d1685ad49528021e43c84e1ff4c376 | /1_semestre/If-algoritmos/exercícios1/atv2.cpp | d47ace063eb2138f7f754d5eb9b954d166634787 | [] | no_license | Darian-Mello/ciencia_computcao | d38bab4511a098afd35a92ec59993278ec21c981 | bc55f8ca2df78c03f529902eb7cb5a5e6f875eae | refs/heads/main | 2023-08-25T13:45:07.658041 | 2021-11-06T00:23:09 | 2021-11-06T00:23:09 | 425,117,018 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 318 | cpp | atv2.cpp | #include <iostream>
using namespace std;
main(){
setlocale(LC_ALL, "portuguese");
float val1, val2, media;
cout << "digite um nímero:\n";
cin >> val1;
cout << "digite outro número\n";
cin >> val2;
media = (val1 + val2) / 2;
cout << "A média entre os números é:\n" << media;
}
|
c1398da6ac1568eebbc93ff9338d9ea02c16e7d3 | 336f202589113546d6afcf8e955a5f227cbc7321 | /client/src/network/listener/ListenerConnection.cpp | 64393986f2948714f4066af77b9b377c5809fe71 | [] | no_license | arodrigue003/poisson | a7310a4f460df74b0719fb0011e1bba047c4596c | 45551464f3e86040d0ee1a5537abd1dd7406d95e | refs/heads/master | 2021-06-14T20:23:13.331673 | 2017-03-20T08:41:49 | 2017-03-20T08:41:49 | 84,531,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | ListenerConnection.cpp | //
// Created by clejacquet on 18/03/17.
//
#include "ListenerConnection.h"
ListenerConnection::ListenerConnection(const std::string &address, unsigned short port) :
Connection(address, port)
{
}
void ListenerConnection::onReceive(const std::string &message) {
_listening_context->onResponse(message);
}
|
c1e1f99138d976969bd5d3e7d709b861bc4aa6e4 | b460fa3bea2a2edf01c45cb70622a0a97246a0cd | /human_experiments/lab_software/video_capture/src/data_stream/LSLStream.h | 64116444525c1190a29407135ed6e399744bb261 | [
"MIT"
] | permissive | ml4ai/tomcat | bfc36cb21971ff77e7d57889eb81b78a1e646646 | e38f02fac40eb9ae6f0eee429e9a12faa00ecbaa | refs/heads/master | 2023-08-16T07:05:13.574339 | 2023-07-30T13:24:33 | 2023-07-30T13:24:33 | 194,728,107 | 21 | 9 | MIT | 2023-09-14T15:29:30 | 2019-07-01T18:58:26 | Python | UTF-8 | C++ | false | false | 678 | h | LSLStream.h | #pragma once
#include <string>
#include <lsl_cpp.h>
class LSLStream {
public:
lsl::stream_info stream_info;
LSLStream(const std::string& name,
int num_channels,
const std::string& source_id,
const std::string& stream_type,
int sampling_rate);
~LS... |
7eea042ccbdbac784a981fdf6bdd6312ffe4bdda | 62150b03dd3a24d698d481eac85d5b86a4770139 | /lableng1/p23.anulo.cpp | 3eb5fe19d3cc26666813e5d1c729c0721347421a | [] | no_license | castruaz/programa2020 | 1478ffa93c5a7317160f4041783a81ee74050f02 | 7a0ccc61002326fc3e0233f0d7c6f097b620f34b | refs/heads/main | 2023-01-20T07:35:04.511698 | 2020-11-20T16:39:10 | 2020-11-20T16:39:10 | 310,668,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | p23.anulo.cpp | // Dado un angulo en radianes, mostrar su tipo
// Carlos Castaneda R
// 18 de Septiembre 2020
#include<stdio.h>
main(){
float angulo;
printf("Dado un angulo en radianes, mostrar su tipo \n");
printf("Dame un angulo en radianes \n");
scanf("%f", &angulo);
// angulo = ( angulo * 180 ) / 3.1416; // asumiendo que... |
7bd648bad5e64dc1d6f31ab152912ad147a711d6 | 7e6764389a9052b692cd830ce4b4baa59b8ae32d | /ex2_src/LightWeapon.cpp | 3f2e53d9df6d2186fdea48fc60592dd0a9406ff4 | [] | no_license | IdanZimbler/Soldiers-Game-Project | 132d9e5a0a2550f8bdde5489f58d06725bb99991 | 36db47d986b9a2b6009f7d3480646da1f6e388f2 | refs/heads/master | 2022-09-19T03:51:57.027966 | 2018-02-18T15:15:24 | 2018-02-18T15:15:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | LightWeapon.cpp | #include "LightWeapon.h"
//_________ Ctors & Dtors ___________
LightWeapon::LightWeapon(){}
LightWeapon::LightWeapon(Point & pos, double damage, int numOfShots) : AWeapon(pos,numOfShots) ,weaponPower(damage) {}
LightWeapon::LightWeapon(const LightWeapon & other)
{
copyVal(other);
}
LightWeapon::~LightWeapon(){}
//__... |
35c21ef0f04698b78a2ecad949eb9ffeb43b604d | dccd1058e723b6617148824dc0243dbec4c9bd48 | /csacademy/round-25/0-sum-array.cpp | 3457034e65814341f88a20fc0aef944298e1c430 | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | 0-sum-array.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define each(itr,c) for(__typeof(c.begin()) itr=c.begin(); itr!=c.end(); ++itr)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define fi first
#define se second
int solve()
{
int n;
... |
4e761548fbd9b47103758f3f719a49bea2329da8 | 294621274eae9de26f5184167e9ff2a2df40e9da | /include/game/GroundUnit.hpp | 3eb71843c3918d640c877ddfb853f6ad95fc4460 | [] | no_license | narzull/MarinesSaveTheQueen | fc18ec22ee602e683814247dc104c353c469e2ea | f4e65ce55fb6f1c984e5eb1f9de2edc8c3224db8 | refs/heads/master | 2016-09-05T21:56:22.576861 | 2013-03-23T18:36:48 | 2013-03-23T18:36:48 | 7,947,687 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | hpp | GroundUnit.hpp | #ifndef __GROUNDUNIT_HPP__
#define __GROUNDUNIT_HPP__
#include "../api/Entity.hpp"
#include <iostream>
#define GRASS_TYPE 1
#define ROCK_TYPE 2
//GroundUnit class
namespace game {
class GroundUnit : public api::Entity{
public:
//Static attribute
const static float s_GROUNDUNIT_WIDTH = 0.5 + 0.01;
const s... |
739a97605e391613c2d87e7960b47a323eefc74a | 362533a63fa41de2ff507f5e1115c1e36040f215 | /SamSrc/sam/TopK.hpp | 0c13ccce0b6289350bba7d77ade471c4799601a1 | [
"MIT"
] | permissive | elgood/SAM | 9b1f842dc4c4b50204adc88fa5239c3abafbbc6c | aae417e670611a108a036c5fa5cb7308a5949822 | refs/heads/master | 2023-05-27T11:05:46.749021 | 2023-05-13T00:25:05 | 2023-05-13T00:25:05 | 81,900,152 | 6 | 5 | NOASSERTION | 2023-05-13T00:25:07 | 2017-02-14T03:24:45 | C++ | UTF-8 | C++ | false | false | 3,489 | hpp | TopK.hpp | #ifndef TOPK_HPP
#define TOPK_HPP
#include <vector>
#include <string>
#include <map>
#include <sam/SlidingWindow.hpp>
#include <sam/AbstractConsumer.hpp>
#include <sam/BaseComputation.hpp>
#include <sam/Util.hpp>
#include <sam/FeatureProducer.hpp>
namespace sam {
class TopKException : public std::runtime_error {
pu... |
efda8818ba1ee8faac0b2fbe2340230e801b3348 | 1a2ea9999d1ca66bf86074e4dbb077eaadb07cd8 | /contest11/3.cpp | f76bf9399572c8b85777febf31e75748f9db6f89 | [] | no_license | olegtsts/contests | e06c5f06b1fd9938c04751537cc2d034bca17e01 | ee3c26d85033fd411f057ea2b700e6fe9beca65a | refs/heads/master | 2021-06-07T00:27:14.104607 | 2021-01-17T23:34:23 | 2021-01-17T23:34:23 | 92,220,220 | 0 | 0 | null | 2020-12-19T19:48:04 | 2017-05-23T21:04:35 | C++ | UTF-8 | C++ | false | false | 2,777 | cpp | 3.cpp | #include <iostream>
#include <vector>
struct Move {
public:
Move()
{}
Move(const bool is_row, const int index)
: is_row(is_row)
, index(index)
{}
bool is_row;
int index;
};
std::vector<int> get_reverse_matrix(
std::vector<int>& matrix,
const int n,
const int m
) {
std::vector... |
25a5ff8f425fb1b494f14dfc04991589080158f7 | 2b5bc02a4d50964ddbf0c66ae1cfa5e6c194a32f | /base/base/eventloop.h | 2b7929b94fc06b7fb72106efb528196cbe9121e8 | [] | no_license | XiDianZuoYun/exerciseformuduo | b226930f42f2cc8ebcb25b4868d0264480c6bb01 | 9e39b59de3fae5c05e6117f713f3c51144fb90f8 | refs/heads/master | 2020-03-12T09:11:51.893369 | 2019-04-19T12:30:27 | 2019-04-19T12:30:27 | 130,547,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,065 | h | eventloop.h | #ifndef EVENTLOOP_H
#define EVENTLOOP_H
#include <map>
#include <vector>
#include <unordered_map>
#include <jemalloc/include/jemalloc/jemalloc.h>
#include <memory>
#include <assert.h>
#include "timer.h"
#include "poller.h"
#include "channel.h"
#include "acceptor.h"
#include "tcpconnection.h"
#ifdef DEBUG
#include <iost... |
9a9b56c720ca5e3f91e4f755cb41faa6bed4afa4 | 21f5e0cef9e8111c3dea689a5603b2e7a1e71e9b | /基础/1321棋盘问题.cpp | 18d2df4918d9e8dfb8ddbe8660739da3e464f90b | [] | no_license | q3erf/POJ-algorithm | 2fa6e94fa26c59788347fcb586a3b7b084194853 | 6b70488bfa21e1a0d9d4253b71736d14097299ae | refs/heads/master | 2023-02-17T10:44:12.575416 | 2021-01-17T12:03:12 | 2021-01-17T12:03:12 | 330,332,061 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | 1321棋盘问题.cpp | #include<cstdio>
#include<cstring>
using namespace std;
char a[10][10];
//递归
bool visc[10];
int n;
int dothing(int r, int k){
if(k==0) return 1;
if(r>n) return 0;
int ans = 0;
for(int i=1; i<=n; i++){
if(a[r][i]=='#' && !visc[i]) {
visc[i] = 1;
... |
53e5131c5940ed12e8556357e904436c17ce91e5 | 46140229f8f8c99be20e7bbee5538bf7b6297857 | /src/vtkh/filters/communication/MemStream.cpp | 1dd1d2719c5233a7be279cf5b600afd3679d44a3 | [
"BSD-3-Clause"
] | permissive | jameskress/vtk-h | a44a6f5a5b5ce6c65f098f1faa4f83e29c19e847 | 241ae681365fb5d4b5d59ffaab4e18b7855563a6 | refs/heads/master | 2022-02-20T14:31:07.353835 | 2019-09-18T18:04:25 | 2019-09-18T18:04:25 | 132,791,486 | 0 | 1 | null | 2018-06-19T13:54:56 | 2018-05-09T17:31:35 | C++ | UTF-8 | C++ | false | false | 2,109 | cpp | MemStream.cpp | #include "MemStream.h"
using namespace std;
namespace vtkh
{
MemStream::MemStream(size_t sz0)
{
_pos = 0; _len = 0;
_maxLen = _len;
_data = NULL;
CheckSize(sz0);
}
MemStream::MemStream(size_t sz, const unsigned char *buff)
{
_pos = 0;
_len = sz;
_maxLen = _len;
_data = new unsigned ... |
62d11f5bf777ed5ad7ed0f973bd3bc8c52d82bbc | f05d2dbf0443ee2eaf130f54a85969f0c3892606 | /APG4b/ex12.cpp | 5eff5a05049a7b65214dcf29e2678f3e4be8244d | [] | no_license | adako768/AtCoderContest | 2f25d62dcd768528f7e7d87daf189b52e1093152 | 2ece75a85393e059471f4d19968d6a2df0a35f93 | refs/heads/master | 2022-12-17T08:36:16.515532 | 2020-09-21T07:24:49 | 2020-09-21T07:24:49 | 297,259,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | ex12.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int a=1;
for (int i=0;i<s.size();i++) {
char op = s[i];
if (op == '+') a ++;
else if (op == '-') a --;
}
cout << a << endl;
}
|
007bd2723544ba2c77539cfe36f7a47d498d411c | 670d382e9f15b2ff0d8c8dbff964c2ff69d72dc1 | /src/voronoi_generator.cpp | a81c1fe567528edda7e7b2f22634cfb9b908d9d6 | [] | no_license | andrewexo/VoronoiSphere | a92ddf2414a739a9ac6353df9b5e1d59dc8f4836 | 1a21c13671081a8397cadb06aceb4460578adbc1 | refs/heads/master | 2022-05-23T00:49:44.931566 | 2022-05-08T00:49:50 | 2022-05-08T00:49:50 | 161,680,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,284 | cpp | voronoi_generator.cpp | #include "voronoi_generator.h"
#include "voronoi.h"
#include "globals.h"
#include <fstream>
#include <iostream>
#include <math.h>
#include <algorithm>
#include <cstring>
#include <boost/chrono.hpp>
#include <boost/timer/timer.hpp>
VoronoiGenerator::VoronoiGenerator()
{
cell_vector = NULL;
}
VoronoiGenerator::Voro... |
03e4177123bb3004af46236e63d0397a3f3aa23c | 1e864ab10358c9a7afbbbec0c21a44f5d54f6787 | /TestCpp/Student.h | b9a21b608ebf9e13a1e1251ff3f09dc07a27a91b | [] | no_license | paulmedok/StudentManagerCpp | 408452fabc1bb4dcaa2c8ef0d291319f6883f133 | 7569d8f80561e748c2e52faed8e5d28f5475a0f5 | refs/heads/master | 2020-04-23T13:46:22.733914 | 2015-05-05T16:13:50 | 2015-05-05T16:13:50 | 35,105,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | h | Student.h | #include "stdafx.h"
#include "stdio.h"
#include <iostream>
using namespace std;
int const NUMOFSUBJECTS = 5;
char* subj[];
struct Subject{
string title;
int mark;
};
struct Student{
string surname;
string name;
int age;
Subject subject[NUMOFSUBJECTS];
};
void EnterNumberOfStudents(... |
a4dc4b868f82becf2a2d5c9592e71d9a49a0c2b6 | 21ad87b624631f93773c19f92b71c2ff2f5d8744 | /day04/ex03/Ice.cpp | 394bede5259b05ab4d9f18d5bfe043fd0381f99e | [] | no_license | WildBoarGonnaGo/42-Piscine-CPP | 87799484255d2fae2247d0cbf99cd6a32de1c9ab | 3f7132e5333713d73260eb577f84350198ffcffc | refs/heads/main | 2023-06-07T00:04:56.954928 | 2021-05-19T11:43:05 | 2021-05-19T11:43:05 | 359,222,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | Ice.cpp | #include "Ice.hpp"
#include <iostream>
Ice::Ice() : AMateria("ice") { }
AMateria *Ice::clone() const
{
AMateria *res = new Ice();
return (res);
}
Ice::Ice(Ice const &ref)
{
*this = ref;
return ;
}
Ice &Ice::operator=(Ice const &ref)
{
this->setXP(ref.getXP());
return (*this);
}
void Ice::use(ICharacter &t... |
5c111a855ff4d208858060d87589ec4ccf1b5ff5 | 91f511557a026f5ee2632a408a4a8c6dbe54dd03 | /alica_tests/include/alica_tests/TestWorldModel.h | dfe93bac64726f5680bb66b50a2adfa2d7e300ea | [
"MIT"
] | permissive | rapyuta-robotics/alica | c7bda986f132da5475451d2c42a823a33a933d4c | 836684f35d5c7fe7920bd95da540da68a19864e5 | refs/heads/devel | 2023-08-03T14:39:47.569636 | 2023-07-18T05:40:03 | 2023-07-18T05:40:03 | 124,324,765 | 33 | 8 | NOASSERTION | 2023-09-07T05:24:18 | 2018-03-08T02:28:08 | C++ | UTF-8 | C++ | false | false | 5,516 | h | TestWorldModel.h | #pragma once
#include <alica/test/TestContext.h>
#include <atomic>
#include <string>
#include <unordered_map>
#include <vector>
namespace alicaTests
{
class TestWorldModelNew
{
public:
TestWorldModelNew(alica::test::TestContext* tc)
: _tc(tc)
{
}
alica::test::TestContext* getTestContext... |
ebb5aa5f9ff75a889d5d84a98ea111948dd62ee2 | b995c93827f17daab1a767738b7fef26ca09ccdc | /problems/PAT/PATA1067_solution2.cpp | 47078e8c3e835b33714bfd7a970e0f04de88cf5d | [] | no_license | JIANGLY33/AlgorithmProblems | 2c67de5156236f5710b7fe24cc51e509408e0061 | 8ebf3e2826abf150a8c8f915411d150e36a02a1d | refs/heads/master | 2020-07-18T21:39:44.920375 | 2019-10-05T09:00:30 | 2019-10-05T09:00:30 | 206,316,899 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 760 | cpp | PATA1067_solution2.cpp | #include<cstdio>
#include<algorithm>
using namespace std;
const int maxn = 100010;
int main() {
int n;
scanf("%d",&n);
//除0以外未在自己位置上的数字个数,交换次数
int left = n-1,ans = 0,pos[n];
for(int i = 0; i < n; i++) {
int temp;
scanf("%d",&temp);
pos[temp] = i;
if(temp == i && temp != 0) {
left--;
}
}
i... |
0cf7dbb650f81a7fcbb64a003e4b476334875e9f | ea522b45c62af588c8dcd0912cff465e0e895dfd | /src/mcmc.h | eecff5f1f12b0c869aecfcc138e07e27af459beb | [
"MIT"
] | permissive | tristanz/OpenIRT | 18e54747d3502cd7215b7753275b7f15ab4b007e | 5ffea140c8efcaed7de80a5fe07c76419fbb9f4e | refs/heads/master | 2021-01-02T23:06:47.572773 | 2014-04-21T19:42:06 | 2014-04-21T19:42:06 | 18,816,881 | 1 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 39,649 | h | mcmc.h | /*! \mainpage
<table>
<tr><th>Library <td>Scythe MCMC - A Scythe Markov Chain Monte Carlo C++ Framework
<tr><th>Author <td>Tristan Zajonc (tristanz@gmail.com)
<tr><th>Source <td>http://ksghome.harvard.edu/~zajonct/
<tr><th>Version <td>0.1
</table>
\section N... |
faa008a5b463bf21dff122b70bf7e3f52c8d5608 | d1484f472702bb409ad5b1b6068f6f2a359dcd3f | /无人机定位系统/calibration/stereo/undistortRectify/undistortRectify.cpp | 31635975d285780489dcad9cb86ebd4694787685 | [] | no_license | 501201611/Binocular-distance-measurement | a6b59ff91d694b4799b926e9c1ba2128ec03f66d | 2bfeac2226da3f679888ecaa384eb3ed2c173aa7 | refs/heads/master | 2020-06-27T22:23:46.276995 | 2017-07-13T03:16:30 | 2017-07-13T03:16:30 | 97,070,762 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,323 | cpp | undistortRectify.cpp | // 立体校正,把右相机图像变换到左相机平面,输出校正后的图片
#include <opencv2/core/core.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <stdio.h>
#include <iostream>
using namespace std;
using namespace cv;
int main(int argc, char const *argv[])
{
char* leftimg... |
330c3c2f92c444ae888a97d3433528f932fa4a4e | aac4d4a6ab7339505d65d527eff672ee4bc5a525 | /ProgrammrCode/Task10_Factorial/main.cpp | 05ce9f5da8ef227b39effa2d63129a97bae33692 | [] | no_license | Vecnik88/easyCpp | c3313bbabf27d47a628417ebe9bf6d5358229e15 | f8a7151b0470263896bca3a06aef3c5b8c7708f8 | refs/heads/master | 2021-06-21T19:10:02.144650 | 2017-08-12T16:49:17 | 2017-08-12T16:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | cpp | main.cpp | /* ### Task 10 ### Created by Vecnik88
Find the factorial of a number n.
Input:
Enter the value of n:
1
Output:
Value of factorial is: 1
Input:
Enter the value of n:
4
Output:
Value of factorial is:
24
*/
#include <iostream>
using namespace std;
int main()
{
int n,... |
b8e8bbc3332f963acd8ce64c28fe97691d8daebd | d4033732101c18e892a0b1ddfb311d5547b662fd | /src/ObjectDisplayGrid.cpp | 584ba170a3c3b75671ad2234b7ad4b1656c9a0ac | [] | no_license | jehanshah8/RogueLike | 6c0a278daff9aa9b1c53d868118d8e18863c96a4 | be7c20cc10fe51921f0b43801544cd8a87790e53 | refs/heads/main | 2023-01-23T04:54:20.679298 | 2020-11-25T08:05:03 | 2020-11-25T08:05:03 | 303,008,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,843 | cpp | ObjectDisplayGrid.cpp | #include "ObjectDisplayGrid.hpp"
ObjectDisplayGrid::ObjectDisplayGrid(int gameHeight, int gameWidth, int topHeight, int bottomHeight) : gameHeight(gameHeight),
gameWidth(gameWidth),
topHeight(topHeight),
bottomHeight(... |
9c1f1f077e2c454b6b9672f511d5e4705cc815b8 | 784c398207895131ea406613f52e635af386a109 | /src/trunk/sstest.cpp | 5d93c53239a3bf729fdc7e60e55cc97f9b4d2d06 | [] | no_license | sidred123/stochastic-msa | 17b9253e8772677a4f95dda0b358dda32c00796a | 68d620e61b1453387738c0b45f1cd1b5261c311a | refs/heads/master | 2021-01-23T02:23:20.241526 | 2009-04-30T20:58:02 | 2009-04-30T20:58:02 | 32,217,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | sstest.cpp | #include "util.h"
#include "storage.h"
int main(void) {
srandom(time(NULL));
size_t arr[3000];
for (int i=0; i<3000; i++)
if ((i % 10) == 0)
arr[i] = 1600;
else
arr[i] = 40;
size_t res[3000];
for (size_t i=0; i<300; i++)
res[stochasticSelect(arr, 3000)]++;
for (int i=0; i<3... |
a487559e7c138cf0bde6ea7a5e89b69af125d24c | f4173138b361d145422848b937e7c9775ee8aab0 | /SP1Framework/Render_Story.cpp | ffa7081a6d2bc804cd2dfaa3bf3a5dffe3b1d437 | [] | no_license | theduckhorse/SP1Framework | 65d9ea7dc7fd8fecb46e92839b98c5fc724d4cfc | b99fda305c62c7c776c963892d8640982fc42906 | refs/heads/master | 2022-09-29T08:09:44.308216 | 2016-09-03T07:13:22 | 2016-09-03T07:13:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | Render_Story.cpp | #include "Render_Story.h"
extern bool g_abKeyPressed[K_COUNT];
extern EGAMESTATES g_eGameState;
void renderStory()
{
if (g_abKeyPressed[K_ESCAPE])
g_bQuitGame = true;
if (g_dBounceTime > g_dElapsedTime)
return;
if (g_abKeyPressed[K_TAB])
{
printStory++;
g_dBounceTime = g_dElapsedTime + 0.125;
}
if (pri... |
83b2fbd40e6e28431c4521a4607c5f3fe6259d4d | 8441b948c675606383818a60527fd14c1128a0a4 | /lighting-demo/light-switch/App.cpp | 7a6956a5567c84a9cef181ba086307fe9bee48bb | [
"Apache-2.0"
] | permissive | mrjerryjohns/weave-demo-apps | 64e63a38331bfaafd95174293a69bc5d82357c6f | bf56b9e663e072e6b198ee671fde5ce97ffddf33 | refs/heads/master | 2022-12-11T11:10:22.333237 | 2020-08-24T22:12:02 | 2020-08-24T22:12:02 | 290,050,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,752 | cpp | App.cpp | /*
*
* Copyright (c) 2020 Google.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
808b4df629df1dddbe5d1dd48025e3b0d1720be6 | 8f7230bf62db408524c2932967f68c8bb4779540 | /src/apib_cpu_proc.cc | f69ee6140d20f311c1380a1bdf9bb520f81989ad | [
"Apache-2.0"
] | permissive | jwcastillo/apib | dd7ada683b20ac18dee7b0dd06171c3ff59223f6 | 4653dcb42f2ec446ef429a0df761bce2c65bec24 | refs/heads/master | 2020-09-04T03:48:58.844750 | 2019-11-02T01:26:21 | 2019-11-02T01:26:21 | 219,650,801 | 1 | 0 | Apache-2.0 | 2019-11-05T03:35:49 | 2019-11-05T03:35:47 | null | UTF-8 | C++ | false | false | 4,904 | cc | apib_cpu_proc.cc | /*
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
dcb5fed675c433bc4062fd0d4fbdcee1d3ae2efc | 2e0291056d7bd97af04e14aaa11a482edb48a406 | /android-samples-master/EndlessTunnel/Tunnel/jni/welcome_scene.cpp | da893e1fa36bcc878cea9e04b3bf395c411ae501 | [
"Apache-2.0"
] | permissive | modstam/Stupid-Ship | 7c3963d18445320731e132a9ab5f7bb51c57e3bd | 03dea39bc23dbacba8b3056c2c4da0509e381db5 | refs/heads/master | 2020-05-27T06:09:20.012438 | 2014-11-20T22:00:09 | 2014-11-20T22:00:09 | 26,922,844 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,145 | cpp | welcome_scene.cpp | /*
* Copyright (C) 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
e01b8662f16e4cdb2b59f9b5bf784ec0303553fe | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/wm/overview/overview_item_view.h | f14725a9e8783ab2f61085a465e04ed95ccb08bc | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 4,204 | h | overview_item_view.h | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WM_OVERVIEW_OVERVIEW_ITEM_VIEW_H_
#define ASH_WM_OVERVIEW_OVERVIEW_ITEM_VIEW_H_
#include "ash/wm/overview/overview_highlightable_view.h"
#include "ash/wm/window_mi... |
dcd9d7ec2db79a80f30197a039aaf179be3b563a | 68b2292432a317469c6035be92b9a39659e40d00 | /Devices/Device.hh | 34bbe746b3b477682e711c4c3d15ca9f88710cc6 | [] | no_license | spartacus-technologies/Auxilo-box | 4a45b7c611206531c0081800cbed27ea6d09fa7e | 1e3d5a521982eb7b64fad4c8dae275469c457759 | refs/heads/master | 2021-01-17T05:34:47.870339 | 2014-03-12T18:11:10 | 2014-03-12T18:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | hh | Device.hh | #ifndef DEVICE_HH
#define DEVICE_HH
#include "../Communications/Protocol.pb.h"
class Device
{
public:
virtual ~Device(){}
virtual void initialize() = 0;
virtual void setStatus(auxilo::deviceState status) = 0;
virtual auxilo::deviceState getStatus() const = 0;
virtual std::string getID() const =... |
ea950a5b2e2a53ac9cb6a90c586acb18f025a5ec | c3f2ff06d6aab9f5ff7ed34eb3637a7abce75b44 | /motordriver/src/motor_driver_publisher_node/motor_driver_publisher_node.ino | e15c7258c3fa9c42f8f48d884d99065d512c8640 | [] | no_license | mathew-wu/flexiblearm-with-Arduino | 89da57619aabd5e7bdcdaaac083613fbe5c51441 | 520e365ff68fa74039d0770e1d08d1c6cbd37b35 | refs/heads/master | 2020-08-29T08:24:24.646379 | 2019-10-28T06:33:34 | 2019-10-28T06:33:34 | 217,980,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | ino | motor_driver_publisher_node.ino | #include <ros.h> // needed in every ros program
#include <geometry_msgs/Twist.h> //type of message sent by motor driver
ros::NodeHandle nh; // instantiate the node handle which will create the publisher node
geoemtry_msgs::Twist msg; //creates the message type twist
ros::Publisher pub("cmd_vel",&msg ); //creates the... |
a7933efa752cf97c0f7ec419f0a91a8ed568af1f | 003fd3318cd113d295ca550e91631f761848153f | /Section13/Movie.h | fac9f8a718f456c5dc5589af602151de72333c92 | [] | no_license | tran-nick/Learning-CPP | 744be4b9d50bea8d8fc3aa43231b69447adb0d39 | 7fa6c295723579748eb1c58dcaf3dce52d8ac69d | refs/heads/master | 2022-04-24T10:00:44.053993 | 2020-04-25T22:47:20 | 2020-04-25T22:47:20 | 250,141,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | Movie.h | #pragma once
#include <string>
class Movie
{
private:
std::string name;
std::string rating;
int num_watched;
public:
void set_name(std::string name_val);
std::string get_name();
void set_rating(std::string rating_val);
std::string get_rating();
void watched();
int get_watched();
//c... |
c7f9b401972215d44aa37af54dfd83c4348e5396 | 0c43ec2cc922d3cec7a0e8713d6654cd583b4e14 | /Cavalcade/Timer.h | 42dedb3c54941fc0c2a2991084bc4064482a3917 | [] | no_license | dblalock08/cavalcade | 15f9c44d04c7cc873d0e3a75036d993f7e537fa1 | 55b25e5743bc5b235910de86bec41aa1b0ef0e7e | refs/heads/master | 2020-06-04T05:38:50.635471 | 2012-12-05T15:48:10 | 2012-12-05T15:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | Timer.h | // Timer.h
#pragma once
#include <Windows.h>
#define WIN32_LEAN_AND_MEAN
class Timer
{
public:
Timer();
~Timer();
bool Initialize();
void Update(); // Query the system time and update the time since last query
float GetTime(); // Returns time since most recent update in ms
private:
INT64 m_frequency;
INT... |
1698648fe5162094126a1e8e31711ba5c004d695 | 097007b435b1bf420a19ce33aabee32f0789f145 | /codeforces/e86_div2/c1.cpp | e2be56c06a9e323a5185b1c82885776017e927c0 | [] | no_license | Anshit01/Competitive-Programming | 71f84a85dde49278f8c3318d00db70616d8ea470 | 13911ec7f622abc061fea1ccc1f35d34118641f7 | refs/heads/master | 2023-06-11T12:06:11.722865 | 2021-06-30T11:51:01 | 2021-06-30T11:51:01 | 266,321,296 | 5 | 2 | null | 2020-10-19T09:47:06 | 2020-05-23T11:21:40 | C++ | UTF-8 | C++ | false | false | 1,160 | cpp | c1.cpp | #include <bits/stdc++.h>
#define ll long long
#define f(i, x, n) for(int i = x; i < n; i++)
#define dbg(x) cout << x << endl
#define dbg2(x, y) cout << x << " " << y << endl
#define dbg3(x, y, z) cout << x << " " << y << " " << z << endl
#define mod 1000000007
using namespace std;
int lcm(int a, int b){
retur... |
63e04a9e8c5dab688a45658be7707b00ab954c44 | c74ee5e6386a94a2b6d0d461b9d33362008787da | /point.cpp | 6f7e126ba7076964ca75360c7d5f54e2fba1c915 | [] | no_license | CPPLondonUniClassroom/point-exercise-2018-07-17-cha-ku | d3b93866502115644ddbf96fc50bc86ec77c6c65 | ec891cb99c8cfc18d646f5cc238721b85598f9cf | refs/heads/master | 2020-03-29T10:11:33.043860 | 2018-09-27T16:05:43 | 2018-09-27T16:05:43 | 149,793,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | point.cpp | //
// Created by Tristan Brindle on 10/07/2018.
//
#include "point.hpp"
#include <ostream>
bool operator==(const point& lhs, const point& rhs)
{
return lhs.x == rhs.x &&
lhs.y == rhs.y;
}
bool operator!=(const point& lhs, const point& rhs)
{
//Better to do it this way -
return !(lhs == rhs);... |
91329630232463750de3e844a1692efb43272b71 | b162de01d1ca9a8a2a720e877961a3c85c9a1c1c | /594.longest-harmonious-subsequence.cpp | b216bc5b32b54741c9d2f6e98cc1c36590859b63 | [] | no_license | richnakasato/lc | 91d5ff40a1a3970856c76c1a53d7b21d88a3429c | f55a2decefcf075914ead4d9649d514209d17a34 | refs/heads/master | 2023-01-19T09:55:08.040324 | 2020-11-19T03:13:51 | 2020-11-19T03:13:51 | 114,937,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | 594.longest-harmonious-subsequence.cpp | /*
* [594] Longest Harmonious Subsequence
*
* https://leetcode.com/problems/longest-harmonious-subsequence/description/
*
* algorithms
* Easy (42.16%)
* Total Accepted: 29.6K
* Total Submissions: 70.3K
* Testcase Example: '[1,3,2,2,5,2,3,7]'
*
* We define a harmonious array is an array where the differen... |
755efd5b0bfccabefe25841a6b502c20310d07b8 | 6348b3b6ceacd7dac91f44036b3df8ad5192a136 | /examples/source/tutorials/pointer_lifetime.cpp | d3131df542bb1e9e795b6d0f0dbb068afbf26db4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ThePhD/sol2 | b0167676fecf9c65f371f6319833393cdbda0bbe | 9c882a28fdb6f4ad79a53a4191b43ce48a661175 | refs/heads/develop | 2023-08-22T21:48:22.328223 | 2023-08-06T21:47:47 | 2023-08-06T21:47:47 | 49,177,547 | 3,912 | 572 | MIT | 2023-07-18T17:46:18 | 2016-01-07T03:09:13 | C++ | UTF-8 | C++ | false | false | 1,758 | cpp | pointer_lifetime.cpp | #define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
struct my_type {
void stuff() {
}
};
int main() {
sol::state lua;
/*
// AAAHHH BAD
// dangling pointer!
lua["my_func"] = []() -> my_type* { return new my_type(); };
// AAAHHH!
lua.set("something", new my_type());
// AAAAAAHHH!!!
... |
fc0bfc45dddf875e2b0628cc77e066cf4ef1b214 | e969d76b10f6cc7d87566a32295b2c2997cd675f | /lab1/Lab_Sources/MyRender.cpp | 8e8a4b868801602bbd7a2b84fb8b7c3d39b8a4c6 | [] | no_license | Aspirisha/CompGraphics | 6b94e2c09fb612cb240e84c2759c1ebddf4b79e2 | ea540e8ac94260d5e8ae01e724f430af2b0af4f0 | refs/heads/master | 2021-01-01T18:56:15.657519 | 2014-11-17T15:00:01 | 2014-11-17T15:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,736 | cpp | MyRender.cpp | #include "stdafx.h"
#include <xnamath.h>
#include <d3dcompiler.h>
#include "MyRender.h"
#include "MyObject.h"
#include "macros.h"
#include "Log.h"
struct ConstantBuffer
{
XMMATRIX mWorld;
XMMATRIX mView;
XMMATRIX mProjection;
};
MyRender::MyRender(DWORD fps)
{
m_pVertexShader = nullptr;
m_pPix... |
f5c60d25fc16253754b6c71b1b46ab70e58b1aa7 | 9b4816166b9597ac85aa25ac6b2c1cb3d0fce4b4 | /Source/PluginEditor.cpp | 6618a9a1337110e2c1d1aa3005514fee2d48b9fe | [] | no_license | SilviaMessana/HW3_CMLS | 7220262142d9523760154250e7b5fbb65cb7ec11 | 2aaa40a9bc55ce57a93c1a17d82c5c3fc5a0fbec | refs/heads/main | 2023-05-07T12:27:49.790423 | 2021-05-30T10:26:50 | 2021-05-30T10:26:50 | 372,056,863 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,764 | cpp | PluginEditor.cpp | /*
==============================================================================
This file contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
//======... |
9c02314ac098a460f55901aa151c442e88f80d47 | cdbd557e4714b6782ec096ff3ec43125c5d90712 | /rounds.h | f75e78e7f0b5259dda893ea9dd64185b01e15398 | [] | no_license | sgarcia22/Term-Project-Team-9 | 77414f9e51bef2313417e080ef407c1a47caa6bd | cb4bd264996876a2562854fa136033ebf53ec792 | refs/heads/master | 2021-01-20T01:31:20.414715 | 2017-04-20T08:02:41 | 2017-04-20T08:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | h | rounds.h | #ifndef ROUNDS_H
#define ROUNDS_H
#include <QGraphicsTextItem>
#include <QGraphicsItem>
class rounds: public QGraphicsTextItem{
public:
QGraphicsTextItem * roundDisplay;
rounds(QGraphicsItem * parent=0);
void increase();
int getRounds();
int roundsCount = 0;
};
#endif
|
958375748efb92682df8273fb128381c1d2fa7a0 | d37066762da870dde54f18ccb839856429d4c556 | /puzzle_c/Numberjack.0.1.10-11-24/solvers/mistral/lib/src/mistral_scd.cpp | 3cbf27692aea65cfb1cda6ba09d8cca78b9fdf33 | [] | no_license | maitreyak/discrete_optimization | b83743088145457fa0d501e4a1a835c3856a1f36 | 84e461fa139230c1dcda8158afec0023cc1aa1ab | refs/heads/master | 2021-01-01T16:00:24.464431 | 2013-08-29T05:29:21 | 2013-08-29T05:29:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50,425 | cpp | mistral_scd.cpp |
#include "mistral_scd.h"
using namespace MistralScheduler;
#define INFTY 0xffffff
#define BIG 0xffff
StatisticList::StatisticList() {
best_solution_index = 0;
branch_and_bound_index = 0;
lower_bound = INFTY;
upper_bound = 0;
num_nogoods = 0;
num_solutions ... |
2cb8dc2f25711a5624ca45723657e5973b3ae6b6 | 6491936374a34dcc8c20e1c68c175560afcf0fba | /Plugins/DlgSystem-4.23/Source/DlgSystem/Private/Nodes/DlgNode_Speech.cpp | f0d97d9ef71d0d836e4ad1bee1eb48078301b3d3 | [
"MIT"
] | permissive | gaypunkposer/CyberpunkUnreal | bce0c79af2098d06ad3245036b0e6a0b00cee6d2 | 5e9dac20eccc2ac0caff671b327ff21c61105f92 | refs/heads/master | 2023-02-15T22:38:16.982580 | 2021-01-13T17:08:23 | 2021-01-13T17:08:23 | 225,226,623 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,292 | cpp | DlgNode_Speech.cpp | // Copyright 2017-2018 Csaba Molnar, Daniel Butum
#include "Nodes/DlgNode_Speech.h"
#include "DlgContextInternal.h"
#include "DlgSystemPrivatePCH.h"
#include "Logging/DlgLogger.h"
#include "DlgLocalizationHelper.h"
#if WITH_EDITOR
void UDlgNode_Speech::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEven... |
330608874ba7944655118146a9064078fd355462 | 6f150af94e52d9390eb0f1e0295d51440d7382db | /StringStack.cpp | 643959c1f09bd424790eb40cc0f40b96a7cefb36 | [] | no_license | logm/TrueStack | 8de68b470e984d5f0be2bfe1211477424acd43a4 | e4dc95ed6f6728ab20e172a1407c927c2debe035 | refs/heads/master | 2021-08-23T11:49:21.141536 | 2017-12-04T19:47:34 | 2017-12-04T19:47:34 | 113,085,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | StringStack.cpp | #include "StringStack.h"
using namespace std;
string StringStack.pop() {
return stack.pop();
}
void StringStack.push(string x) {
stack.push(x);
}
bool StringStack.isEmpty() {
if (stack.isEmpty()) {
return true;
} else {
return false;
}
} |
5f2fefe3f29236c8a7afb8ec045223b9c7cff460 | 8a1e2e354b716667857e6d4c632883c95196bf24 | /PrototypeFactory/MazePrototypeFactory.h | 1ab5575032f67fdcab6a6beb935d4e29dddf7e03 | [] | no_license | yyisgod/DesignPatterns | 8c4a58e5a151181a11d76e496cf16efc63fbb253 | 2bbe0d2b1eac0c8606c959182a2ff1d240adacbc | refs/heads/master | 2021-01-10T01:40:53.869214 | 2016-04-04T13:42:59 | 2016-04-04T13:42:59 | 54,208,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | MazePrototypeFactory.h | #ifndef __MAZEPROTOTYPEFACTORY__
#define __MAZEPROTOTYPEFACTORY__
#include "MazeFactory.h"
class MazePrototypeFactory : public MazeFactory {
public:
MazePrototypeFactory(Maze*, Wall*, Room*, Door*);
virtual Maze* MakeMaze() const;
virtual Room* MakeRoom(int) const;
virtual Wall* MakeWall() const;
virtual Door* Ma... |
34de9df327b6da6963293e60acdc32f809d7cba8 | 2a016f97e5bb82ce83a0d77bf625361fe9b2968c | /pr5/5.cpp | 3824a8f2dac0b417bf59e8ec0e83093b34118fa4 | [] | no_license | JuliManhupli/Fundamental-of-Programming-II | 1ba169590c7b112ad4578b3b34b05aea025ac59e | a1b6cebacdc5e30c3bd3eb222232c00458f8cc1f | refs/heads/main | 2023-08-22T07:21:18.784383 | 2021-10-25T10:53:38 | 2021-10-25T10:53:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | 5.cpp | #include<iostream>
#include<cstdlib>
using namespace std;
long mystrol(const char *start, char **end, int base = 10) {
return strtol(start, end, base);
}
int main() {
const char *str = "2543684287";
long c = mystrol(str, NULL);
cout << c << endl;
return 0;
}
|
1bf50047e114ba0ccf52b987aa843cd3e13abe05 | a69661665c355426058c34a3ca1a01da4719b42f | /cpp/ccc.cpp | 5d38dfdc92af48f3c14e4e4090bcf6fe08579a21 | [] | no_license | RezowanTalukder/SPL_1_0933 | ee86af1a427ebbdfade6580a6b0aad240a9e5141 | f928f355b57587d6a13a1d23ac9639e3e24bd2c6 | refs/heads/master | 2021-05-10T09:16:24.400105 | 2018-07-19T15:43:58 | 2018-07-19T15:43:58 | 118,921,818 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | cpp | ccc.cpp | #include<iostream>
using namespace std ;
int main()
{
int n ;
cin>>n ;
int arr[n] ;
for(int i=0 ;i<n ;i++)cin>>arr[i] ;
int sum1=0,sum2=0 ,ans = 0 ;
sum1+=arr[0];
sum2+=arr[n-1] ;
int cur ;
if(n%2==1){
for(int i=1,j=n-2 ;i!=j; ){
if(s... |
e5f9f47313c09e92a0ed5dba644023f23bc39181 | 39a971d68e4f81d980bc06ddc08f95d2465ba207 | /Sources/CoveredCalc/UI/MainUIManager.cpp | 9a3ac5f1066b532c7ad213c99dc43272342d824c | [
"MIT"
] | permissive | HaikuArchives/CoveredCalc | 7a3acb263732943952322729a711ff6a7462f6ce | b027e6e6a9bc0d3269769b5a7f67c044103859c9 | refs/heads/master | 2021-01-23T03:04:26.060946 | 2010-06-07T23:44:08 | 2010-06-07T23:44:08 | 40,125,175 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 42,737 | cpp | MainUIManager.cpp | /*
* CoveredCalc
*
* Copyright (c) 2004-2009 CoveredCalc Project Contributors
*
* 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 th... |
96e31aad3274c5429a80155b6ec9691af16ce0a7 | 7a71e006e0a8fd97f2ad2710c38d2e0db4d11f16 | /test.cpp | 7703ac188e09b1def2e7633ba44b63abfba723f5 | [] | no_license | lucasxsong/lab-07-iterator-hahaha | 9ab73dac38e49b7caf85f0000626e944e9137da0 | c7b1c574e4f0adb9038a54924dc294ecb4abac35 | refs/heads/master | 2020-04-10T02:25:41.371633 | 2018-12-07T01:39:26 | 2018-12-07T01:39:26 | 160,744,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,441 | cpp | test.cpp | #include "gtest/gtest.h"
#include "composite.h"
#include "iterator.h"
#include "visitor.h"
TEST(PreOrdererIterator, testCaseOne){
Base* one = new Op(1);
Base* two = new Op(2);
Base* three = new Add(one,two);
Base* six = new Mult(three,two);
Base* root = new Root(six);
Iterator* i = new PreorderIterator(root);... |
1d2fb329fe5e4ea0ffe6af5a5fd06f27942fdb4d | e319e4db24538f8960eaf066e43067ca8a8afc96 | /v2/Value/util/TestValue.cpp | 9266d5350b32e2fc2adbcea3341a3be967ce92eb | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | arunkumarcea/ahir | 5cf4327e387372882a1222997e7b8affec9737a5 | 3a242f4edb96b2916e697783f800037198df2361 | refs/heads/master | 2021-01-16T19:56:24.366786 | 2014-05-21T05:13:46 | 2014-05-21T05:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,739 | cpp | TestValue.cpp | #include <Value.hpp>
using namespace std;
using namespace _base_value_;
int main()
{
Unsigned b(4,"_b1111");
Unsigned a(4,"_b0000");
cout << "Word-size is " << __WORD_SIZE__ << endl;
cout << a.To_String() << " a" << endl << b.To_String() << " b" << endl;
a.Add(b);
cout << a.To_String() << " a = a + b " <<... |
7a8a91d28bc567842483140848718c0943b66464 | 6d9cf8409a48d9b394d68ad731cd4af22dd5b671 | /Classes/Base/POPTTonic2StrSingleton.h | 42195efa1a42808a53aafbd2518497b32ffb3024 | [] | no_license | allen4z/poputar | cfe9b36698aa648438973d161cc4dd228ca85e2c | b8186eb6bdc8f2c10903dd28b5ba34bac2680c7a | refs/heads/master | 2021-01-13T04:58:39.572594 | 2015-08-23T10:04:45 | 2015-08-23T10:04:45 | 32,199,098 | 1 | 0 | null | 2015-03-14T06:28:25 | 2015-03-14T06:28:25 | null | UTF-8 | C++ | false | false | 690 | h | POPTTonic2StrSingleton.h | //
// POPTTonic2Str.h
// poputar
//
// Created by allen on 15-5-20.
//
//
#ifndef __poputar__POPTTonic2StrSingleton__
#define __poputar__POPTTonic2StrSingleton__
#include <stdio.h>
#include "Singleton.h"
using namespace std;
class POPTTonic2StrSingleton :public Singleton<POPTTonic2StrSingleton>{
private:
map<... |
407e6774c2720f07984e0dcb375ae981ea8ecccc | b3ea96eb589d81ab9ceb21dbac9cd9b05db0dc2a | /All_sorting_algos.cpp | 8da415bd1e77dc9df8106dde12f52293b20a616f | [] | no_license | shivangisrivastava0408/Data-structures-and-Algorithms | 11c2d4c349b4e76a8aa3dd769b6d9f9901a02f95 | 229b2a670e78b6dafbd806389d713de46c08bc2a | refs/heads/master | 2021-06-30T21:36:41.172058 | 2020-10-01T12:42:48 | 2020-10-01T12:42:48 | 176,687,382 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,653 | cpp | All_sorting_algos.cpp | #include <bits/stdc++.h>
using namespace std;
void bubblesort(int arr[], int n){
for(int i=0;i<n-1;i++){
for(int j=0;j<n-i-1;j++){
if(arr[j]>arr[j+1]){
swap(arr[j],arr[j+1]);
}
}
}
}
void selectionsort(int arr[], int n){
int min_ind;
for(int i=0... |
ffc7a4138c6f95659c03c1aa49519fb538e14f4d | 3a39b41a8f76d7d51b48be3c956a357cc183ffae | /Codeforces/EducationalRound/E69_D2/D.cpp | 0c99d2af7f7bf57accdce82ecda76890a83cdddb | [] | no_license | Acka1357/ProblemSolving | 411facce03d6bf7fd4597dfe99ef58eb7724ac65 | 17ef7606af8386fbd8ecefcc490a336998a90b86 | refs/heads/master | 2020-05-05T10:27:43.356584 | 2019-11-07T06:23:11 | 2019-11-07T06:23:11 | 179,933,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | cpp | D.cpp | #include <cstdio>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <utility>
#include <functional>
#include <cstdlib>
#include <cmath>
#include <string>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
ll a[300001], vmin[300001];
int main()
{
ll N, M, K; sc... |
731236ec91fa21f09bf96ae00dfcc09f984292a8 | ccf99275fbf55f743be8c8b67a82109ffdc030d0 | /Game/Scenes/TestScene.cpp | cb8cdc4f06767f53f5566d3fbb69bba523162498 | [] | no_license | MrScottOliver/canned-engine | d4bb60af9d1f0127a31363f770fefa3c6bb8ab16 | eefd7f29187ff597f494b0019cd5c1cc03548d60 | refs/heads/master | 2021-01-17T08:16:45.699384 | 2018-07-19T16:26:47 | 2018-07-19T16:26:47 | 11,161,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,518 | cpp | TestScene.cpp | #include "Game/Scenes/TestScene.h"
#include "System/System.h"
bool regTestScene = RegisterScene<TestScene>( "TestScene" );
//Globals for scene variables?
//Would multiple instances of this scene share global variables?
TestScene::TestScene( System &s ) : IScene( s, "TestScene" ),
keys( input ),
log... |
66a76aeb247ab0dfce1a196929e3032d8a7653af | aad28fa1140e713c8591db5a383ac5f6605f743b | /192 Кто получит автомат/Кто получит автомат.cpp | 9696da0c5cc5205303ad41c3baa100c4f9f0ed1f | [] | no_license | DaniilMuntyan/Solutions_e-olymp | d7ad45357d4f999c853efefcd47c39bc17e33664 | 7a318572e13f2e6103a2ade49c8ce9c5210caad9 | refs/heads/master | 2021-02-28T15:22:58.506994 | 2020-03-07T21:42:50 | 2020-03-07T21:42:50 | 245,708,666 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | cpp | Кто получит автомат.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n;
cin >> n;
int a[10000];
int sum = 0;
int i;
double av;
for(i = 0; i < n; i++)
{
cin >> a[i];
sum += a[i];
}
int k = 0;
av = sum / i;
for(i = 0; i < n; i++)
{
if(a[i] > av)
{... |
49de38f6c6f9d5f4bb78b0ebbb2f6b6d44986e09 | 8a1512191c8f213fa1055cd1b12a28c834d17466 | /game/midistre.cpp | 59f167305e50b9b0883fc0e97cd20571090cc0d3 | [] | no_license | jstasiak/polanie-src | 882721a6896ba67731e84e488a0252de3ca7e92a | dc679cbd1add67ba7f3da59ba24ba9d6c560ed1b | refs/heads/master | 2023-05-31T22:18:28.362896 | 2020-02-18T16:26:25 | 2020-02-18T16:26:25 | 169,010,720 | 10 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,657 | cpp | midistre.cpp | #include "midistre.h"
void MIDIstream::SetData(BYTE *data, WORD len)
// ustawia adres i długość bufora z danymi MIDI
{
databuf = data;
datalen = len;
datapos = 0;
}
long MIDIstream::ReadVarLen()
// odczytuje liczbę w postaci o zmiennej długości
{
long value;
BYTE c;
if ((value = databuf[datapos++]) & 0x80... |
fac4e77616f2a7dd5938b93d38124fb4ee2df8da | 0f054d3440d94f27bc61c2b69c46d250fd1400a8 | /cpp/mempool/pool.h | 9d78dadcee5e22da2e21082fbbc17d9f2d2a5dc7 | [] | no_license | Tomerder/Cpp | db73f34e58ff36e145af619f03c2f4d19d44dc5d | 18bfef5a571a74ea44e480bd085b4b789839f90d | refs/heads/master | 2020-04-13T21:37:06.400580 | 2018-12-29T02:35:50 | 2018-12-29T02:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,532 | h | pool.h | /**************************************************************************************
Author : Tomer Dery
Creation date : 31.12.13
Date last modified : 31.12.13 - 1.1.14
Description : memory pool
***************************************************************************************/
#ifndef __M... |
41468b00d915e45de2583ad64eb765607f62a51d | aa045c238793aa63a2db016bace61e12171a035c | /src/groups/md/mdmem/mdmem_testallocator.cpp | d3b79390dda0044a4e198331346ab17a2a08d4db | [] | no_license | mvdsanden/mdev | ae5bc29f9af52615d9d60daeb49ba3dde9d8f527 | e8b15baa1961f5ca65eabdd977b9259061a18ae4 | refs/heads/master | 2020-05-02T07:04:50.870566 | 2019-03-26T15:30:50 | 2019-03-26T15:30:50 | 177,809,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | mdmem_testallocator.cpp | // mdmem_testallocator.cpp -*-c++-*-
#include <mdmem_testallocator.h>
|
407c0428d2e6a5eb47c8132c30ab34557956ed3d | fbfd3ec0f89101f4e7403854b0ebbeade1d06c1d | /Unreal Engine Full C++/ShootTheMap/Source/ShootTheMap/Public/Weapons/STMProjectile.h | fb396442969ab62762437b882218e034cd7bb55f | [] | no_license | markveligod/CoursesUnrealEngine | b1a14692f2d74d15a3911df4933b6f7588149f3d | 3939882f35a81a47a7f8b8dd324f566a141e16dd | refs/heads/main | 2023-05-30T23:24:02.200425 | 2021-06-16T16:19:20 | 2021-06-16T16:19:20 | 320,260,105 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | h | STMProjectile.h | // ShootTheMap
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "STMProjectile.generated.h"
class USphereComponent;
class UProjectileMovementComponent;
class USTMWeaponVFXComponent;
UCLASS()
class SHOOTTHEMAP_API ASTMProjectile : public AActor
{
GENERATED_BODY()
public:
AST... |
e6869b61754663f375904a062c91a8be70702bfe | 6db9478ab57690420b2aa98b450d346f7a9f3b7d | /z_unclassified/2953.cpp | da515c87bd13c914feb4e2d17d9cf237ed052a61 | [] | no_license | siosio34/AlgorithmStudy | d23266e0d4576a3aab123aee7b571021ec619009 | b5626a0e4eb14f9553fe48aacacb1696a927c740 | refs/heads/master | 2020-03-19T09:15:13.167353 | 2019-05-22T13:50:41 | 2019-05-22T13:50:41 | 136,272,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | cpp | 2953.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
int maxPoint = 0;
int winIndex = 0;
int tmp;
for(int i = 0 ; i <5 ; i++) {
int sum = 0;
for(int j = 0 ; j < 4 ; j++) {
cin >> tmp;
sum += tmp;
if(maxPoint < sum ) {
maxPoint = sum;
winIndex = i;
}
}
}
cout << w... |
cca0c3a6e70be09c89542f72f525391b28db759a | 102988c689f70b66878049ebe695930ba1f4041e | /real/src/Cluster.cpp | 090bf1ed0668157aed273486811535bfcad75b6f | [] | no_license | ElitCoder/Kobla-2D-Server | cb80471d14a1fb3d00ddf54952bc6b2d1292c513 | 586dc08589d7749fc203ea774f73cfbbb9b9032a | refs/heads/master | 2021-04-15T04:48:09.094422 | 2020-03-01T20:29:34 | 2020-03-01T20:29:34 | 126,654,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,420 | cpp | Cluster.cpp | #include <fstream>
#include "Main.h"
#include "Cluster.h"
#include "Handle.h"
#include "Item.h"
#include "BufferCheck.h"
using namespace std;
extern vector<Player*> pvector;
extern vector<NPC*> npcs;
extern bool debugs;
int playPuhId = 1;
void Client::CharacterList()
{
if(this->online)
{
... |
d948c7ae57226fb9fb8a800658f8a607690fa6e5 | c62435fe44f7a0c9df746f530dbdd4edba5dc262 | /main/test/test0000.cpp | 444ce344dc13651e2a73428b4787efbfd984e352 | [] | no_license | mrverdant13/esp-idf-vscode-makefile-template | 0943872a24bd1a114c286eac35aeffbd4e3d2a77 | 611936a9dad0562a80cbbc3e7a99104fedebfdc8 | refs/heads/master | 2022-02-15T07:47:33.457263 | 2019-08-04T22:33:33 | 2019-08-04T22:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | cpp | test0000.cpp | #include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
extern "C"
{
void app_main();
}
static const char *TAG = "TEST_0000";
void app_main(void)
{
for (;;)
{
ESP_LOGI(TAG, "Loop");
vTaskDelay(1000);
}
}
|
2a7ed9a483adc23b61286a59dbfc34e20feb6da2 | 179783204e6d145e0db1fef21a7439c018995323 | /src/lib/util/util_string.cpp | 0a6ad529203f40e5384f890961124fdf110079b4 | [
"BSD-3-Clause"
] | permissive | r9y9/sinsy | aa65652565ad469db09e4250c58e7d6cff3f5317 | 6a5be094f49285fdf704fdea5083caabdc6a62eb | refs/heads/master | 2022-02-12T19:58:51.586873 | 2022-02-06T01:44:49 | 2022-02-06T01:44:49 | 244,630,165 | 61 | 13 | null | 2022-02-06T01:44:49 | 2020-03-03T12:27:27 | C++ | UTF-8 | C++ | false | false | 4,110 | cpp | util_string.cpp | /* ----------------------------------------------------------------- */
/* The HMM-Based Singing Voice Synthesis System "Sinsy" */
/* developed by Sinsy Working Group */
/* http://sinsy.sourceforge.net/ */
/* -----------------------------... |
9d61745b26a1b418dc1dd99803feee7f8a24a6ec | d05e3f019cce75cde70262774218dbdc2db61281 | /smallest_string_with_swaps.cpp | 1bdcf2d00ea9b054f1dc2fe27c1c2c8824138eea | [
"MIT"
] | permissive | kshitijanand36/Important-programs | a586f89fb0622d49e6f73f2a838a4957b3ed04a8 | 6b5867896d64ab16453248e0f8c1ca0ba54036e3 | refs/heads/master | 2021-07-14T01:32:33.492131 | 2021-07-13T16:26:41 | 2021-07-13T16:26:41 | 250,024,326 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,591 | cpp | smallest_string_with_swaps.cpp | //using dsu
class Solution {
public:
int *super_parent;
int find_parent(int ele){
if(super_parent[ele] == ele)return ele;
super_parent[ele] = find_parent(super_parent[ele]);
return super_parent[ele];
}
void make_union(int a , int b){
... |
8e7c113e7ea34f752625ce897f122f69fcb75450 | 3ff6cd06dacc43eb232c9d21f0eaee3151719ef6 | /src/Weibull.cpp | 362e33ee71dd8eb95593e4dfa2e15477805e2bb2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marcizhu/PyStats | fd9585ac214ed5bd11dd80d829ec33ae2636bb88 | 94fde5042930de60979b3bc7b07ecb4ea757bb3c | refs/heads/master | 2023-06-02T07:32:41.673951 | 2021-06-17T09:29:26 | 2021-06-17T09:29:26 | 362,223,330 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,476 | cpp | Weibull.cpp | #include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#define STATS_ENABLE_STDVEC_WRAPPERS
#include "stats.hpp"
namespace py = pybind11;
void Weibull(py::module& m)
{
// Scalar input
m.def("dweibull", static_cast<double(*)(double, double, double, bool)>(&stats::dweibull),
py::arg("x"), py::arg("alpha") = 1.0,... |
22140e0ece907398dee88dd8c592f75729902553 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1482494_1/C++/fidels/B.cpp | e99e7f4dc4c595410c7ae79fbb38749db066ea27 | [] | 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,256 | cpp | B.cpp | #include <iostream>
using namespace std;
#define MAXN 1024
struct level {
int a, b;
bool va, vb;
} n[MAXN];
int main() {
int N, i, S, maxb, RES, t, T;
bool flag;
cin >> T;
for (t=1; t<=T; t++) {
cin >> N;
for (i=0; i<N; i++) {
cin >> n[i].a;
... |
26f5e524f3542624282237fdcc7e4fd633cb7d90 | 16e2f8a1d64d10e5d99595e2bff2d70d9e0efb03 | /Matrix/Source.cpp | 4465a05499237a1e0da5ac89a757f5dc1bf97154 | [] | no_license | shablov/Matrix | 6cb5c53dcc81da900e1f0ec008830a786e14fd50 | 9748474dab90f4b4ccc4b0bc21caf9555d8399bc | refs/heads/master | 2020-04-01T00:29:38.842544 | 2018-10-13T10:01:45 | 2018-10-13T10:01:45 | 152,699,424 | 0 | 0 | null | 2018-10-12T05:41:02 | 2018-10-12T05:41:02 | null | UTF-8 | C++ | false | false | 692 | cpp | Source.cpp | #include <cstdio> //Library for files(read from files, write to files)
#include <chrono>
#include <fstream>
#include "Matrix.h" // Library for matrix (need to be in folder of project)
const size_t NumberOfTests = 10;
const bool DispalayResult = false;
int main()
{
std::cout << std::fixed << Matrix<int>::indentity(3)... |
1886440f8ff2befe86e47a23e1493d435ef7c691 | 847e3adca9968f1048ccd3bde509b82dfac153cf | /Patterns_In_Cpp/floyds_traingle.cpp | 7257f4e07fd027bc623be392b0cc15b735a000bd | [] | no_license | gedaprems/datastructure_cpp_practice | b675b38a4e063936d506f4e34e6d522dc18cdc81 | 8330ee489e08d8f69419c14d96f31fd6d9295355 | refs/heads/master | 2023-05-08T22:11:32.530115 | 2021-05-19T08:13:53 | 2021-05-19T08:13:53 | 368,793,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | cpp | floyds_traingle.cpp | // output:
// 1
// 23
// 456
// 78910
#include <iostream>
using namespace std;
int main(){
int n,sum=0;
cin>>n;
for (int i = 1; i <= n; i++)
{
for (int j = 0; j < i; j++)
{
sum=sum+1;
cout<<sum;
}
cout<<endl;
}
... |
c9bdbbe6bfc024734ac52a3cf6f988c25c2b39b8 | 319bc7012894c6135785802bdc73cc9f8fc429b7 | /src/LP.h | 1a27872635dc8e9a920a62a3c0cad0d2b5c6216c | [] | no_license | krofna/dagmatch | 6dcc02fb44e2ffc822789583bd2a99c1e78631a2 | 49cb3a7769edddba148a5520d5695b0e9f5cdf1b | refs/heads/master | 2022-12-16T04:41:48.148012 | 2020-07-30T23:38:27 | 2020-07-30T23:38:27 | 283,037,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,809 | h | LP.h | /*
Copyright (C) 2018-2020 Mislav Blažević
This file is part of dagmatch.
dagmatch is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any... |
184041a41b5f4d05050c97d5fca4293eec399191 | 544e77e04e49545cfd37ae512f09bf3e399fe53c | /build/cmr_msgs/rosidl_generator_cpp/cmr_msgs/msg/detail/maxon_status__struct.hpp | c50b960caaeda659fe25a2ec7e6f6c0ed6479b6a | [] | no_license | LiWeiAn/map_fuse | e7338bd15bd88b15ebcea24d5222e28d41c68707 | 58641cc15012c70049cce98f23f0efd8dd3623e1 | refs/heads/master | 2023-05-26T11:47:10.932447 | 2021-06-03T21:29:06 | 2021-06-03T21:29:06 | 373,645,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,545 | hpp | maxon_status__struct.hpp | // generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from cmr_msgs:msg/MaxonStatus.idl
// generated code does not contain a copyright notice
#ifndef CMR_MSGS__MSG__DETAIL__MAXON_STATUS__STRUCT_HPP_
#define CMR_MSGS__MSG__DETAIL__MAXON_STATUS__STRUCT_HPP_
#include <rosidl_runtime_cpp/bounde... |
5235e409d87d70ff4e7c72b2b551998164c274a6 | ef1e794906d7caa41e2d2b70a763ff2adcc2ea3f | /Source/GamedevNosatov3dP/Public/Core/Actors/MaterialActor.h | 35497253a4eda119cd9dacbf314d9634bc03a24c | [] | no_license | Synoecium/GamedevNosatov3dP | 139d9d4627d855f1c85e84d65d11dd36d4a89d9d | 41075a56dbf9082f658265e48ca2bfea7965858d | refs/heads/main | 2023-06-03T05:01:58.722922 | 2021-06-22T04:58:48 | 2021-06-22T04:58:48 | 344,588,367 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | h | MaterialActor.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Curves/CurveVector.h"
#include "GameFramework/Actor.h"
#include "MaterialActor.generated.h"
UCLASS()
class GAMEDEVNOSATOV3DP_API AMaterialActor : public AActor
{
GENERATED_BODY()
public:... |
bfa662d5f15aecf081095062b5d5b971911407bd | 15cec5616a1c10924ebfd7d1db2134dbcc4e5598 | /atcoder.jp/abc042/abc042_b/Main.cpp | 240783ee4a7d2a84a4394fde8d1a1b945cd283a8 | [] | no_license | shuto1441/atcoder_archive | 2c474a379b6b3df8783504335cc678b3e45fc0e8 | 8c3cc31ebe39746e26f8fdef4f6ac289d34f91a0 | refs/heads/main | 2023-07-11T00:03:38.661106 | 2021-08-21T11:16:28 | 2021-08-21T11:16:28 | 397,816,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | Main.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,L;
cin >> N>>L;
vector<string>vec(N);
for (int i = 0;i < N;++i)
cin>>vec[i];
sort(vec.begin(),vec.end());
for (int i = 0;i < N;++i)
cout<<vec[i];
cout<<endl;
}
|
127a3b135f76376c7960348d95fc3c4bed0226d4 | 904441a3953ee970325bdb4ead916a01fcc2bacd | /src/apps/topology/topology/polygon_topology.cpp | 26aad962944e4c2ea8ffe573ae6f11ed45f8ebd6 | [
"MIT"
] | permissive | itm/shawn | 5a75053bc490f338e35ea05310cdbde50401fb50 | 49cb715d0044a20a01a19bc4d7b62f9f209df83c | refs/heads/master | 2020-05-30T02:56:44.820211 | 2013-05-29T13:34:51 | 2013-05-29T13:34:51 | 5,994,638 | 16 | 4 | null | 2014-06-29T05:29:00 | 2012-09-28T08:33:42 | C++ | UTF-8 | C++ | false | false | 5,142 | cpp | polygon_topology.cpp | /************************************************************************
** This file is part of the network simulator Shawn. **
** Copyright (C) 2004-2007 by the SwarmNet (www.swarmnet.de) project **
** Shawn is free software; you can redistribute it and/or modify it **
** under the terms of t... |
cc950730910e7fa4289bb1622ac753ed1cf6b8c0 | 63b11528f60ad5570f9da678b20e682dc29bed5b | /CrazyTanks v.2/src/Class Diagram/DrawEnemyStrategy.cpp | 2ff75d959c33caeede38cdc4267421f5f491747f | [] | no_license | Dheinamar/Luxoft | 235ae0e4bc72b8c2abe3ebe04c42825f0dab9917 | 24afcb52035e67fab64b9786e794dc03276ccf54 | refs/heads/master | 2021-03-30T21:03:18.353948 | 2018-04-03T22:00:26 | 2018-04-03T22:00:26 | 125,091,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,905 | cpp | DrawEnemyStrategy.cpp | /**
* Project CrazyTanks
*/
#include "DrawEnemyStrategy.h"
/**
* DrawEnemyStrategy implementation
*/
DrawEnemyStrategy::DrawEnemyStrategy () :SIZE (pair<int, int> (30, 30)),
TURRET_SIZE (pair<int, int> (10, 15)),
BLACK (Color (... |
734a84e586888661928dc737561614a31427eb9e | 3a6b7fd1aaf14ed529a1735b3f503cc361afec73 | /src/right-master.cpp | 9058d3df953d792cd7f1498c3c825788ede8b45f | [
"MIT"
] | permissive | vexchow/FreiKey | f051b281231e7d5fa809243db9b1514dcad04379 | f2abdf86f2308b40330422e2369d8a96eba3c80d | refs/heads/master | 2020-04-15T00:50:51.398288 | 2018-10-13T19:54:47 | 2018-10-13T19:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,090 | cpp | right-master.cpp | #include "sysstuff.h"
#include "boardio.h"
#include "callbacks.h"
#include "dbgcfg.h"
#include "globals.h"
#include "hardware.h"
#include "helpers.h"
#include "keystate.h"
#include "led_states.h"
#include "scanner.h"
#include "sleepstate.h"
#include "status_dump.h"
// I'm going to update this to keep track of additio... |
01653e0496b8d1d1b71400297ccc64764da3d26b | c971c89e25d9acf44ddbc70522a6e8f618625d6a | /Dragon Fight/Priest.h | 29238ea43a040550694d842419e7de98567cf2b4 | [] | no_license | AustynM1994/DragonFight | 07a571c3091a65a6f98551930537445d007edf38 | 951c38793aea89290d24f3b66dc78c4672d70cd8 | refs/heads/main | 2023-01-12T06:49:30.074884 | 2020-11-15T23:50:02 | 2020-11-15T23:50:02 | 313,146,502 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | h | Priest.h | /*
This class has the Priests health and abilities
*/
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
//Priest Class Definition
class Priest:public Character
{
public:
//Member Functions for ability rolls
int getSmiteDamage()
{
return rand() % 6 + 5;
... |
4e4f37f4298282b2a8e0a3fc53023ce72646ff83 | 21cd33416c6f47454591eed9ea7d02f5a6f65395 | /tail.cpp | ed63f49a7c7fa8fa08d2def6bcec3981b4c46091 | [] | no_license | forcha/algorithm | 87bb3020c2fd2583af522412783e6726e8308db4 | 6086924cf913f27259ca0f64872d987d067bb2d7 | refs/heads/master | 2021-01-19T02:33:23.158972 | 2016-08-08T20:25:56 | 2016-08-08T20:25:56 | 64,073,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,292 | cpp | tail.cpp | #include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <fstream>
#include <algorithm>
#include <exception>
const unsigned long kDefaultLines = 10;
std::pair<std::string, unsigned long> parse_args(int argc, char const *argv[]) {
unsigned long lines = kDefaultLines;
if (argc == 2) {
... |
fa31c93bf0443b1aaba5b1224da2cbecf92a481e | 6fee31ef3f6c3707de20a5956b2d96575fdf0aac | /znd/dev/src/gui/3rdparty/Charts/2.0/Src/src/charts/xychart/qvxymodelmapper.cpp | 32d61f6a6906488260bd0584afc0304a76a55bb1 | [] | no_license | hilockman/cim2ddl | 605b05e5c67acde1f9b0c93e6b0a227dd27519a6 | 78ec9a3b4136710ac659fa40e3da28c9bb57c10f | refs/heads/master | 2021-01-01T17:50:55.311126 | 2019-01-03T05:35:47 | 2019-01-03T05:35:47 | 98,163,859 | 3 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 6,646 | cpp | qvxymodelmapper.cpp | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.io
**
** This file is part of the Qt Charts module.
**
** Licensees holding valid commercial license for Qt may use... |
e6353c7b2d10aac7bc139a0e4f31b5c2b486adcd | 4be1ffed57db4628a64593388e03467dcfcda571 | /proto/main.cpp | b852711a7de78f17b1dc33e0aa2c8af8807d6aae | [] | no_license | Carbohz/PythonCppInteraction | 80dca76e5858a190246350242e7362712dd9eeb1 | afa053fcb29931e81661fb433640d70075ba0830 | refs/heads/main | 2023-05-04T14:28:54.209480 | 2021-05-30T17:05:58 | 2021-05-30T17:05:58 | 372,271,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | main.cpp | #include <google/protobuf/service.h>
#include <grpcpp/ext/proto_server_reflection_plugin.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/health_check_service_interface.h>
#include "file.grpc.pb.h"
#include "file.pb.h"
#include "sum.h"
class SummatorImpl final : public example::Summator::Service {
public:
grpc::Statu... |
4f15f06dc2740110c9d8d8c77dc59dc8d95722cc | f07bb4f7232c27bdb90af6a02459754e89f040c0 | /include/TrickHLA/SyncPntList.hh | 9697c4180324064c4db3e39d3fb34d1d64c66ecc | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nasa/TrickHLA | 14cb5c2a396301dc2ce43dbf2ecc0659597ba99c | 94d60042997da82afe708e71cf15dfa3d8be10a5 | refs/heads/master | 2023-09-03T01:12:27.784573 | 2023-08-29T00:12:26 | 2023-08-29T00:12:26 | 244,526,923 | 31 | 10 | NOASSERTION | 2023-09-10T18:26:54 | 2020-03-03T02:53:06 | C++ | UTF-8 | C++ | false | false | 2,961 | hh | SyncPntList.hh | /*!
@file TrickHLA/SyncPntList.hh
@ingroup TrickHLA
@brief This class extends the TrickHLA::SyncPntListBase class and provides an
instantiable implementation for storing and managing HLA synchronization points
for TrickHLA.
@copyright Copyright 2019 United States Government as represented by the
Administrator of the N... |
eecedec2b89b5913e77d3db2a5226d4f87313e9d | 9fe2b7394d8246fcf87439f560ff935f3d898e72 | /EmrClient/EMR/obj/view/input/ImageMouseInput.h | b4cb1fdc34468bf4048f630e97597f356d7a4c28 | [] | no_license | sky-tree/emr | a04d5e3a66eea8ce0faf1ed1297f2d9de1533e05 | 468bb25b97959627730ed277fdfa72f9a6736013 | refs/heads/master | 2021-01-24T03:37:13.566997 | 2018-02-26T01:19:21 | 2018-02-26T01:19:21 | 122,894,442 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 518 | h | ImageMouseInput.h | #ifndef _IMAGE_MOUSE_INPUT_H_
#define _IMAGE_MOUSE_INPUT_H_
#pragma once
#include "BaseMouse.h"
#include "ViewObj.h"
class ImageMouseInput :public BaseMouse
{
public:
ImageMouseInput(ViewObj * owner);
ImageMouseInput(ViewObj * owner, BaseMouse * scoure);
~ImageMouseInput();
public:
int mousePress(int type, int x,... |
e59b8eb0ecb08cec4c05ce6656e3e14e3b1b2ee2 | 627ddc63ba0ef8978f7cbae23cb0a1f1cb979e9a | /Include/Kernel/Drivers/STM32/TLV493DDriver.h | 705353bc0d59ac599cf68189e4426eb17171b116 | [] | no_license | kavionic/PadOS | 4190ef764b146de6b756e97d3859d6d0fec3e2ec | 64acab418038ddcf7306c77ffbabc1c6880591d4 | refs/heads/master | 2023-07-04T09:58:57.316342 | 2023-06-26T23:46:39 | 2023-06-26T23:46:39 | 125,652,980 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,095 | h | TLV493DDriver.h | // This file is part of PadOS.
//
// Copyright (C) 2020 Kurt Skauen <http://kavionic.com/>
//
// PadOS is free software : you can redistribute it and / or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your optio... |
db1a277b0fb15e987801ac6d932ce1d6639deeca | 586de0d5a2f83c05ec0669f7261c125a7efd553c | /mcc/HUD/cfgFunctions.hpp | 6c56b02ea90913d8715d7ac0ac81324b87013fe6 | [] | no_license | Razatop/MCC_sandbox_modDev | 91fc39c9a2df5d930e11c47b1b98212a470c94e9 | b9ec8a780a1e2fd7b14e08c9f4b68562dddf552f | refs/heads/master | 2023-07-18T18:17:51.252303 | 2021-08-26T06:48:12 | 2021-08-26T06:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 377 | hpp | cfgFunctions.hpp | class HUD {
#ifdef MCCMODE
file = "\mcc_sandbox_mod\mcc\HUD\fnc";
#else
file = "mcc\HUD\fnc";
#endif
class initCompassHUD {};
class initHUD {postInit = 1;};
class supressionInit {};
class supressionFiredEH {};
class supressionEffects {};
class forceCamera {description = "Force first person camera";};
class... |
6bbc373a8f1de24ba04b95c4d989c3172318f722 | b69c6e4e3144c15360a73cdfcc32678ee04ea380 | /src/ParserCalc/ParserCalc.h | 24f1538e2f85f425f07cad57fc5b6f4d16a8972b | [] | no_license | yet-another-average-joe/WorkShop_Calculator | ad13082a8df7bc1a526a7d8d0016a8737e1ee9a8 | a0c6bc470bfd1925f7e9d29f7a5a0a093260adf2 | refs/heads/master | 2020-08-09T02:01:14.842256 | 2019-10-11T00:10:57 | 2019-10-11T00:10:57 | 213,972,598 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 467 | h | ParserCalc.h | // ParserCalc.h : fichier d'en-tête principal pour l'application PROJECT_NAME
//
#pragma once
#include "AppSheet.h"
#include "resourceppc.h"
// CParserCalcApp:
// Consultez ParserCalc.cpp pour l'implémentation de cette classe
//
class CParserCalcApp : public CAppSheet
{
public:
CParserCalcApp();
... |
b6983160658e39babcd84b234e07f3379a49af1d | 28deae191271bc80344aa266aa71856a0a558dd4 | /Project/befc/smi/calls/svi/SviProcGetBlkReply.hpp | 5842d4e070bf9c6727c170723e75b27455a1a87d | [] | no_license | ruudstaal/myproject | fb15d2da87523edccd86c3450cb01c16c76ce61b | 483dff59824a39508c1f8c6df5d37c60fbd84429 | refs/heads/main | 2023-03-16T10:21:19.198456 | 2021-02-26T10:31:11 | 2021-02-26T10:31:11 | 342,539,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | hpp | SviProcGetBlkReply.hpp | /*
* SviProcGetBlkReply.hpp
*
* Created on: Mar 13, 2017
* Author: madsen
*/
#ifndef BEFC_SMI_CALLS_SVI_SVIPROCGETBLKREPLY_HPP_
#define BEFC_SMI_CALLS_SVI_SVIPROCGETBLKREPLY_HPP_
#include <SmiCallReply.hpp>
#include "ParametrizedObject.hpp"
class SviProcGetBlkReply: public SmiCallReply, public Parametrize... |
9d567cfb9133cba7bcba914ec79eda3b54bc0f5c | 713895f4545dc65f9ca467e48708e4a93c8bfdf2 | /ProcessInfo.h | 851be21d770a9c91147547e31a0d5d4c3813a25c | [] | no_license | AndreyFlyAway/ProcessesInfo | 51bfd61fddaf784dea0443b74d3e9f3e9af0f0eb | a4a1cf1fc34d3441ebbf7a744f7163a04be7b510 | refs/heads/master | 2020-04-24T23:13:09.551176 | 2019-03-10T12:41:05 | 2019-03-10T12:41:05 | 172,336,468 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,355 | h | ProcessInfo.h | #include <string.h>
#include <dirent.h>
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <sstream>
#include <vector>
#include <iostream>
#include <fstream>
//#include <INIReader.cpp>
#include "cpp/INIReader.h"
//#include "ini.h"
//#include "/home/user/opt/inih/cpp/INIReader.h"
#include <log4cplus/l... |
5b9e3e1a4fc180bdb6b8793a06d31d1a886b13a7 | c30d1183ed353065828f1249613ac2c7ace6c1a9 | /BigQ.h | b61e1fc248b19b4482dd2554720e8f04d8b6b65c | [] | no_license | siyuan808/DBI-Final-Proj | 2c38e8be938565e1c293d76f6c78cd423ae311ad | a68c248479d88a0c76817cf177fd58cb013d0836 | refs/heads/master | 2020-12-24T13:20:41.230042 | 2013-05-16T13:55:46 | 2013-05-16T13:55:46 | 10,037,347 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,910 | h | BigQ.h | #ifndef BIGQ_H
#define BIGQ_H
#include <pthread.h>
#include <iostream>
#include "Pipe.h"
#include "File.h"
#include "Record.h"
#include <vector>
#include <sstream>
#include <sys/time.h>
#include <string.h>
//#include <queue>
using namespace std;
//class CompareRecord {
//private:
// OrderMaker *orderMaker;
// Compa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.