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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12661c4bea59e55a1ff25aef003e8d59a7f08ee1 | d7b84a31cafb72a3cb71b3a3cc724a68119ba18e | /Tyr/2.36/p | 507763b5232865e6269ef54b03cf184d8b5850df | [] | no_license | benroque/Ragnorak | 6cc7c68db801f9281a4ac241da754bce88ef6caf | a1bfc2430cccb207192792acebdd1530f1388a4c | refs/heads/master | 2021-01-14T08:13:18.774988 | 2017-02-20T08:32:53 | 2017-02-20T08:32:53 | 82,008,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403,393 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
... | |
7014c5e4cdec22a91aad27c592703c1c56ed8a81 | da05d8ecfa7ea56a991d669ebed701311388120b | /DungeonGenerator/Source/DungeonGenerator/DoorComponent.h | 316339b35b390607eec0a063cf203042a5597f2a | [] | no_license | Balaji-Ganesh-AK/procedural-generation-for-unreal | ee50328772682058be8dd737ae507b71f8152f36 | 675ae3361da1b653754939875c73c952954c7247 | refs/heads/main | 2022-12-24T08:01:59.053939 | 2020-10-04T05:06:40 | 2020-10-04T05:06:40 | 300,794,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | h | DoorComponent.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "TileComponent.h"
#include "DoorComponent.generated.h"
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class DUNGEONGENERATOR_API UDo... |
d030d4617b9d256720d35e174c58d340e0b59e29 | 71494c76a8fbfc143eef3c27769ce6e12fde4be4 | /poj/bianchengla_main.cpp | b43112cb5dc340f51a78e03dc3786b75ab03aa99 | [] | no_license | xh286286/algorithm | 96e11ac59cfed57e4bc1391d820a0c6040fe7c4c | d6143b354aef33fbd03cdf282b7e2e9fd704ee86 | refs/heads/master | 2021-01-01T05:30:20.947830 | 2013-08-27T06:54:48 | 2013-08-27T06:54:48 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,524 | cpp | bianchengla_main.cpp | //#include "LongInt.h"
#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <algorithm>
//#include <fstream>
#include <string>
#include <list>
#include <vector>
#include <cassert>
#include <cmath>
#include <ctime>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <memory>
#include... |
cb5bbbeadaf80335ed1f9869e33dd4093303ab92 | 3e50ba512e0850a2caa564242f71cf586255ca4b | /vstgui/uidescription/editing/uitemplatesettingscontroller.h | 2b04da9971becc44eab189800124c2715e151756 | [
"BSD-3-Clause"
] | permissive | steinbergmedia/vstgui | c479d31b299fe69dbf37b51a5cfb645c3de90159 | fb7060cd13215bdc4f441c37a754711c772922fd | refs/heads/develop | 2023-09-03T00:11:43.085495 | 2023-08-16T14:38:51 | 2023-08-16T14:38:51 | 48,168,902 | 804 | 157 | NOASSERTION | 2023-08-16T16:12:53 | 2015-12-17T10:46:38 | C++ | UTF-8 | C++ | false | false | 1,930 | h | uitemplatesettingscontroller.h | // This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#pragma once
#include "../uidescription.h"
#if VSTGUI_LIVE_EDITING
#include "iaction.h"
#include "uidialogcontroll... |
40cc34374f4260ef2df32403359f4ece20b28133 | f43459eb72fc441cfa8f5b2bf80af5456c2517e3 | /v1/PGlitch_CPP/PGlitchTest/InputBindingTest.cpp | 90f529c5bc2e6651d21651bb447081d7919233f0 | [] | no_license | lawsumisu/project-glitch | caf08b2c1b9fb37df9b4f523fdd25dd93790c179 | 9d5eb5878cdf9e18f82129d752462bcadcada167 | refs/heads/develop | 2023-01-14T10:48:14.717700 | 2019-09-24T14:01:59 | 2019-09-24T14:01:59 | 118,414,497 | 0 | 0 | null | 2022-12-30T18:33:26 | 2018-01-22T06:12:49 | C++ | UTF-8 | C++ | false | false | 2,269 | cpp | InputBindingTest.cpp | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../PGlitch_CPP/KeyboardBinding.h"
#include "../PGlitch_CPP/JoystickBinding.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Microsoft
{
namespace VisualStudio
{
namespace CppUnitTestFramework
{
templa... |
87b503fa1f46a9a6413b497bfa617f141db0bb3b | cf7a1d3dd37ca2d1917aafb105940aa04b0aba93 | /hostsoftware/hbc/libhbc/hba_output.hpp | 46751d4940a0aca224d3a53b5260eeeccd4756c7 | [] | no_license | dv1990/hexabus | 9dcae292042aaec46017f0a5aeb8c51e46cc11c7 | de687e20ad76d469ae24bd64de2f23946ced1244 | refs/heads/master | 2021-01-16T00:31:05.512528 | 2014-07-21T12:26:54 | 2014-07-21T12:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | hpp | hba_output.hpp | #ifndef LIBHBC_HBA_OUTPUT_HPP
#define LIBHBC_HBA_OUTPUT_HPP
#include <libhbc/common.hpp>
#include <libhbc/graph.hpp>
#include <libhbc/tables.hpp>
#include <iomanip>
namespace hexabus {
class HBAOutput {
public:
typedef std::tr1::shared_ptr<HBAOutput> Ptr;
HBAOutput(std::string device_name, graph_t_p... |
02fad68746aba54029bf893d9f536f1a658880d7 | 924704a1d4c0dc8497c372fe1b869c5ba36291b2 | /GraphAndTree/Topological Sort(DAG).cpp | cd1ef454c39040af3fb1609ed42d219937dc32fd | [] | no_license | suchita08/CPP | c387cf2882ad1eeebef5acff64d942d95190ef39 | 3b402a73c2a4bfd1e206d01aec26e1c166aca461 | refs/heads/master | 2023-01-14T02:50:42.861418 | 2020-11-16T13:12:56 | 2020-11-16T13:12:56 | 276,922,683 | 0 | 1 | null | 2020-10-01T08:44:52 | 2020-07-03T14:45:30 | C++ | UTF-8 | C++ | false | false | 1,009 | cpp | Topological Sort(DAG).cpp | #include<bits/stdc++.h>
using namespace std;
vector<int>adj[10001];
vector<int>res;
int in[10001];
//topological sort for the directed acyclic graph
//Acyclic :No cylcle
//Cyclic graph do not have topological sort
void top_sort(int n)
{
queue<int>q;
//push that node that have zero indegree
for(int i=1;i... |
1a7f5783f065ed35e2fd6ec86797d624c3c0ea36 | 1c40c746b4044dd0b9f7ca6771855d56d1b23245 | /NetworkProgramming/HW2/client.cpp | 299df02411aca8c432aed6093bb276c8800f82ba | [] | no_license | heisenberg0424/NSYSU_CSE_2021 | ef79fa1d257c70a37104301ab4d2be1f7d18baf2 | 237ed759e5270d073a7a54d01f711fe37c83dba6 | refs/heads/master | 2023-06-02T19:18:32.145627 | 2021-06-18T18:57:58 | 2021-06-18T18:57:58 | 328,363,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,266 | cpp | client.cpp | #include <cstdio>
#include <cstdlib>
#include <sys/socket.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <netdb.h>
#include <cstring>
#include <unistd.h>
#include <netinet/in.h>
#include <errno.h>
//#include "huff/huff.h"
#include "huff2/huff2.h"
void prompt(){
prin... |
e79ecc93c59797c25b28b2bc60c3d8fb805ccdf5 | 80a19e7dc1a91ca12f0b330ecdd1003aa302d9a6 | /SpaceWings/include/Phoenix/ConfigOpts.hpp | d3ba574d6017624f3619e24ba470fe95fcf72191 | [] | no_license | julien-lebot/ICT207-Project | 43e1c546e9bd9fdd5e8d4e0571cfe5787e1afba6 | bb6025551314de37decce4bfd8481fa2ce2f56ff | refs/heads/master | 2020-04-11T13:55:22.160913 | 2009-10-21T09:03:07 | 2009-10-21T09:03:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,317 | hpp | ConfigOpts.hpp | /*
* ConfigOpts.hpp
*
* OpenGL renderer config options
*
* Created by Julien Lebot on 08/09/09.
* Copyright 2009 Julien Lebot. All rights reserved.
*
*/
#ifndef __ConfigOpts_hpp__
#define __ConfigOpts_hpp__
#include <Phoenix/Base.h>
#include <Phoenix/Type2Type.hpp>
#include <boost/any.hpp>
#include <string>
#includ... |
c84884eb43afdb8c82c7a7f2f2adc264b8c6a4e4 | 93176e72508a8b04769ee55bece71095d814ec38 | /Code/BasicFilters/otbVectorImageToAmplitudeImageFilter.h | 1cef32081ca3f5e3bb38a8c0cca5f97f1f5faa75 | [] | no_license | inglada/OTB | a0171a19be1428c0f3654c48fe5c35442934cf13 | 8b6d8a7df9d54c2b13189e00ba8fcb070e78e916 | refs/heads/master | 2021-01-19T09:23:47.919676 | 2011-06-29T17:29:21 | 2011-06-29T17:29:21 | 1,982,100 | 4 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,698 | h | otbVectorImageToAmplitudeImageFilter.h | /*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ... |
3fd7edc3cad43c60c21b37eb0bb1a77ce2e8389a | c04cd3a8a9b54974b8b8ddf135383814c266c453 | /Sim/Vorton/vorticityDistribution.cpp | 903aa11f7c20e8da4787f5d432bb23dd1b08669d | [] | no_license | allenyllee/mjg-intel-fluid-demo | 27b5c8762827953e8df02f0f782234115ca351cd | 464e562363cc119ad06e16cbf5e272a7452a1ff4 | refs/heads/master | 2021-08-23T08:52:39.893118 | 2014-01-23T09:58:51 | 2014-01-23T09:58:51 | 113,033,506 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,386 | cpp | vorticityDistribution.cpp | /*! \file vorticityDistribution.cpp
\brief Vorticity distributions for initializing fluid flow fields
\see Accompanying articles for more information:
http://software.intel.com/en-us/articles/fluid-simulation-for-video-games-part-1/
\author Copyright 2009 Dr. Michael Jason Gourlay; All rig... |
34fce92403bb53cf145476d4c84c528890ba1890 | 942e38b52cb758a73d07b439c8f69db95f8876f7 | /login.h | 60a727fa8843bc27b7d524eafa692aca6e908986 | [] | no_license | leimingg/clouddrive | 047b75cd69c104f90ddf5b14f26228276ab0a034 | ec652e5ee618a90800143b060cbd37b7186f5300 | refs/heads/master | 2023-02-17T19:38:01.059481 | 2021-01-18T03:45:48 | 2021-01-18T03:45:48 | 330,545,758 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 953 | h | login.h | #ifndef LOGIN_H
#define LOGIN_H
#include <QDialog>
#include "common/common.h"
#include "mainwindow.h"
namespace Ui {
class Login;
}
class Login : public QDialog
{
Q_OBJECT
public:
explicit Login(QWidget *parent = 0);
~Login();
// 注册信息打包函数
QByteArray getRegisterJson(QString name, QString nick, Q... |
85478244aaa10acbd4a373fcb4a9152df27837e6 | 2b1080d3681dbfda18d9f6ccf02fecba9289f6b6 | /Passageway.hpp | 6cc742cd7dfdbb148bb1cad0972e28c514cd7ce3 | [] | no_license | coleac/Intro-to-CS-II-Final-Project | 146c305696a81ad0783251bc15eb902b21485d33 | 96c31675475c9b834579eb0f5b9bf70ee71b6a30 | refs/heads/master | 2020-03-11T21:58:08.275832 | 2018-04-19T22:48:01 | 2018-04-19T22:48:01 | 130,279,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | hpp | Passageway.hpp | /*********************************************************************
** Program Filename: Passageway.hpp
** Author: Aalon Cole colea@oregonstate.edu
** Date: 8/7/2016
** Description: This is the Passageway subclass specification file
*********************************************************************/
#ifndef... |
cf847323a30187bb0c2278bf8591d96ff4b09c75 | da0fc5d711eeb16fe61b7d7fa2d1dac04a3f6b95 | /Lab_09/Kargus_Curtis_Lab_09/Que2.cpp | 1b770017d4bc4a93ac986502059db6f65a5e750d | [] | no_license | ckargus/CIS200-CPP2 | 408d60c5479b7e6afec566a8f3dcd2c1ac38e677 | 13bc7c2635741d3e047b14baabc3a3cb191cf6e8 | refs/heads/master | 2020-03-30T14:32:00.211401 | 2018-10-02T21:11:59 | 2018-10-02T21:11:59 | 151,322,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | cpp | Que2.cpp | #ifndef Que2_cpp
#define Que2_cpp
#include<exception>
using namespace std;
const int MAX = 15;
template <class Itemtype>
class QueType
{
public:
QueType(); // easiest one
void MakeEmpty(); // just as easy
bool IsEmpty() const; // simple
bool IsFull() const; // als... |
928eed06dbe875a5d8db162e069e8188c7e46554 | bc62fef73c32417ed4b71c193ab8b6ed712a73f1 | /libnd4j/include/ops/declarable/helpers/impl/knn_mindistance.cpp | a46806a7bd83d7d5988851b1bdb5cf5ff6808257 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | deeplearning4j/deeplearning4j | 0a1af00abc2fe7a843b50650b72c8200364b53bf | 91131d0e1e2cf37002658764df29ae5c0e1f577b | refs/heads/master | 2023-08-17T08:20:54.290807 | 2023-07-30T10:04:23 | 2023-07-30T10:04:23 | 14,734,876 | 13,626 | 4,793 | Apache-2.0 | 2023-09-11T06:54:25 | 2013-11-27T02:03:28 | Java | UTF-8 | C++ | false | false | 2,301 | cpp | knn_mindistance.cpp | /* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... |
04a7afe440e658d56d7580bc3a544e97ef0e1c06 | ddb8c14775dfbe9424691dabf1617273d118d317 | /PX4-Autopilot/dummy code/offboard_att.cpp | c132e960dc627084bd22f47c75ab1937d79e28c1 | [
"BSD-3-Clause"
] | permissive | rishabhdevyadav/fastplanneroctomap | e8458aeb1f2d3b126d27dc57011c87ae4567687a | de9d7e49cb1004f3b01b7269dd398cf264ed92b4 | refs/heads/main | 2023-05-12T22:12:27.865900 | 2021-05-26T19:25:31 | 2021-05-26T19:25:31 | 356,674,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,224 | cpp | offboard_att.cpp | #include <ros/ros.h>
#include <std_msgs/String.h>
#include <stdio.h>
#include <math.h>
#include "geometry_msgs/PoseStamped.h"
#include "geometry_msgs/TwistStamped.h"
#include "geometry_msgs/Vector3Stamped.h"
#include "std_msgs/Float64.h"
#include <mavros_msgs/CommandBool.h>
#include <mavros_msgs/SetMode.h>
#include <m... |
94827ff0bcf0da2e608600805e9ee2cbd5e97521 | b8d6125c83253ee236e14a44541167516721f75f | /Gameseisaku/Gameseisaku/turn.h | ffdb067f886660afbe7dd92fca9511fcfef21c73 | [] | no_license | harumikurose10921/GAMENEOver.01 | 3a22d3f19750572509cc34592d98e31f810469ed | b3c6c723c87ebd411b0d7623a9074d04ae38a9c9 | refs/heads/master | 2020-12-25T14:49:14.698513 | 2017-02-16T09:19:54 | 2017-02-16T09:19:54 | 66,623,798 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 398 | h | turn.h | #pragma once
static const float fPI = 3.14159265358979323846f;
const float TurnSpeed = D3DXToRadian(10.0f);
class Trun
{
public:
Trun();
~Trun();
void Init();
float Updeate(bool isTurn, float currentAngleY);
private:
float currentAngleY; //現在の方向
float targetAngleY; //向きたい方向
float turnSpeed; //回転速度
float T... |
73a098f204a10c53c5a2495699ff7f96c6ab005a | 0961cd8597608e0e347486fecbfc4ea21d47348c | /Lovecraftian/Map.h | 2006a270c74f7805def33ade3bb6829b55ece6d9 | [] | no_license | tesla-code/Wizard | f7ee3877cf88b1cb385f8202b6cbfe9aa16b778c | 25e1d580e0384287350bcfaf4d9d8e1287c648fd | refs/heads/master | 2020-05-18T23:42:59.966210 | 2019-05-06T08:53:07 | 2019-05-06T08:53:07 | 184,718,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | h | Map.h | #pragma once
#include "Shader.h"
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Terrain.h"
// Based on height values use different colors/textures
enum BIOME
{
WATER, GRASS, DIRT, MOUNTAIN
};
class Map
{
public:
int mapWidth = 15;
in... |
59f65a04f87d759eb2f8178c5db594f96f764c6d | 7e83c1b65a6411ecdc34e7f5818a504e53fb6a9a | /input_string_count_lenght.cpp | 8e159afb57fd894dda613d24789782b8e3a9cc4c | [] | no_license | ZacUpshure/computer_science_semester_1 | 6d5fef899c69cc444a6d7565c5d9ca0438df9083 | 2cb793db74def251ae74080bd170b4acbab4b4a6 | refs/heads/main | 2023-06-16T02:08:39.282974 | 2021-07-11T10:12:25 | 2021-07-11T10:12:25 | 332,700,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | input_string_count_lenght.cpp | #include <stdio.h>
int main()
{
char str1[25];
char* sp = str1;
int len = 0;
printf("please enter a string!\n");
fgets(str1, 25, stdin);
while (*sp++)
{
len++;
printf("textlenght : %i\n", len);
}
return 0;
} |
6e1ff8302e5fcd2e9c3721e0d6c6f5e0d3463ab6 | ba58baa7149513b587970c865347fe747652c834 | /test1/src/main.cpp | 1aaa72be1b06591859b8f7a043b1957c1f5491f9 | [] | no_license | alanpa2020/Arduino | 0c93d43992fd7eeae9754ae0cd98af71fed51477 | 0a9908d45d5f35c63de83ff5df245bb7ba472c5e | refs/heads/master | 2021-03-01T12:48:12.929197 | 2020-03-17T05:27:57 | 2020-03-17T05:27:57 | 245,787,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | main.cpp | #include <Arduino.h>
void setup() {
for (int i = 24; i <= 33; i++){
pinMode (i, OUTPUT);
}
}
void loop() {
digitalWrite (26, 1);
delay (100);
for (int i = 26; i<=33; i++){
digitalWrite (i, 0);
digitalWrite (i+1, 1);
delay (100);
}
} |
dafdea7379271e8cd9d2967c7daf02ae827e2c96 | 801320b52ed125b457699fe32e01bc096a7d5d98 | /proverkaMacKlassky/mdnfmacklassky.h | b4956093bcd25a96cbb93bb8d65135051bf61480 | [] | no_license | AlexeyAleksandrov/Mac-Klassky | 197cbb9075745710f4593da5870bdb283842592d | 5fcffad1de4dc3702a19b22df2104e1cd27ccbff | refs/heads/master | 2023-03-29T15:22:30.824349 | 2021-03-28T11:13:52 | 2021-03-28T11:13:52 | 352,297,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,739 | h | mdnfmacklassky.h | #ifndef MDNFMACKLASSKY_H
#define MDNFMACKLASSKY_H
#define MKNF_OR_MDNF_ONLY false
#include <QObject>
#include <QStringList>
class mdnfMacKlassky : public QObject
{
Q_OBJECT
public:
explicit mdnfMacKlassky(QObject *parent = nullptr);
// ~mdnfMacKlassky();
// функции для пользователя:
bool setFu... |
7239dfdf411e7cd705d4e18ebb92febbc51246ba | 7feafc361420ba68c0df24840e62d18ccfdf11ef | /programing fun/(C)C++ file practice(English book)/Example_2(Page-317).cpp | 8a774ae7cbd1b3c88a8cac4b56450eb8cfd0088b | [] | no_license | omarKaushru/Numb-UV-Life-activites | b7e94645c9bbc52317fcb80cd6c83e95793fcefb | 63a74e875edee6dc5cfe77439247172da009f2c5 | refs/heads/master | 2022-12-05T11:34:12.142216 | 2020-09-01T18:19:41 | 2020-09-01T18:19:41 | 292,070,016 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 695 | cpp | Example_2(Page-317).cpp | #include<iostream>
//#include<conio.h>
#include<fstream>
using namespace std;
int main(int argc,char *argv[]){
if(argc!=2){
cout<<"Usage: WRITE <filename>\n";
return 1;
}
ofstream out("sajal.txt");
if(!out){
cout<<"Cannot open output file.\n";
... |
2e5f59230cc61e4b9ab8d16b548336a14fb1c2df | 8a71e93f6dcda2428999143370d5fe4219327d3f | /solutions/EWCCw7ye.cpp | 2c9f859c75bdec965aca1a6b81f986ca42a286aa | [
"MIT"
] | permissive | randauto/cpp-solutions | 21dce36fd4e10dbea3945d37be0cb2510210d446 | 627397fb887654e9f5ee64cfb73d708f6f6706f7 | refs/heads/main | 2023-09-02T11:15:20.336637 | 2021-11-18T01:03:00 | 2021-11-18T01:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | cpp | EWCCw7ye.cpp | /*
Sưu tầm bởi @nguyenvanhieuvn
Thực hành nhiều bài tập hơn tại https://luyencode.net/
*/
#include<stdio.h>
#include<conio.h>
#include<math.h>
#define MAX 100
void nhap (int a[], int &n)
{
do
{
printf("\nNhap so phan tu: ");
scanf("%d", &n);
if(n <= 0 || n > MAX)
{
... |
588b6d0ab1a5919c360e306c79855022600ff0c7 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor2/1.12/T | 9fe55abaf755d523d73a3c85ad641fcea21e8092 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,763 | T | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
2abd56c776146cd4e2b20a8d8aeb415b394da6a5 | ce4800790395bfc62ec582413a768c55e781e5b8 | /leetcode/239. Sliding Window Maximum.h | 2da38d5dd0e4951d767371c13a76e45deefbfee9 | [] | no_license | apel13/cpp-training | 5168bebcb7df3d9f4924f751622eeeae56628b96 | a9103f83f20138c63064871d9964d67e56b1ecf4 | refs/heads/main | 2023-03-17T12:52:54.858106 | 2021-03-07T19:31:32 | 2021-03-07T19:31:32 | 319,043,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,868 | h | 239. Sliding Window Maximum.h | //
// Created by apel on 28.12.2020.
//
#ifndef CPP_TRAINING_239_SLIDING_WINDOW_MAXIMUM_H
#define CPP_TRAINING_239_SLIDING_WINDOW_MAXIMUM_H
// problem:
// https://leetcode.com/problems/sliding-window-maximum/
class Solution {
public:
// 2 * o(n) mem
vector<int> maxSlidingWindow(vector<int> &nums, int k) {
... |
8e073172d0f227199aa123804b6a01845ec1f282 | 8f28b90c518a3d309bfc10eefff7890ba70fb4c3 | /Source/raylib_encap/Input/AInputModule.cpp | a7f5f8278b3175020e8d9ea2d5e79891082cb97f | [] | no_license | achillebourgault/IndieStudio | f3083e4047200cc2da7ba6bfb04e3be4b4dfa02e | ef30bdd236da556197fd8ffefbb5009d14745987 | refs/heads/master | 2023-08-01T16:58:17.680524 | 2021-09-30T23:36:41 | 2021-09-30T23:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | AInputModule.cpp | /*
** EPITECH PROJECT, 2024
** AInputModule.cpp
** File description:
** Created by Leo Fabre
*/
#include "raylib_encap/Input/AInputModule.hpp"
AInputModule::AInputModule()
{
}
AInputModule::~AInputModule()
{
}
|
0ca9d08f5970a03b2bbd43989a5d1f921cdbbf07 | 65cd5b5fd208dfcfd3e899433845024c5e895f60 | /src/headers/OutputWriter.h | e704fa7c9616b035087f1670f7c4a79b848ac093 | [] | no_license | ksraj123/RAW12-to-bitmap-AVI | 0bf96f8d75a1c0cf48817ff27a1f4bdd7a056e93 | 7c53679925311e273e6d30eb097b0bc993b7f4ca | refs/heads/master | 2020-05-02T21:45:01.123002 | 2019-06-12T04:53:04 | 2019-06-12T04:53:04 | 178,230,687 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | h | OutputWriter.h | // assuming C++11 or higher compiler
#ifndef OUTPUT_IMAGE_H
#define OUTPUT_IMAGE_H
#include "ImageLoader.h"
#include "ImageProcessor.h"
#include "OutStructs.h"
class OutputWriter
{
uint8_t* bmpImage;
uint8_t* ConvertToPPM(uint8_t*, std::string);
uint8_t* ConvertToBMP(uint8_t*, uint8_t*, uint8_t*);
public... |
3924b0c6c578bb289c397f59cb001d304bff4380 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/collectd/gumtree/collectd_repos_function_678_last_repos.cpp | d49e582e4ff94a38641d363b8644669203b02051 | [] | 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 | 497 | cpp | collectd_repos_function_678_last_repos.cpp | static void ps_update_counter(derive_t *group_counter, derive_t *curr_counter,
derive_t new_counter) {
unsigned long curr_value;
if (want_init) {
*curr_counter = new_counter;
return;
}
if (new_counter < *curr_counter)
curr_value = new_counter + (ULONG_MAX - *curr_coun... |
225543737d3655445284b3eea52b26ebf9f33d02 | da0922e0aa1724d5ef4ae983568d9a7f8a5f00be | /solpipe.cc | 3fa331ae14c0e3717520a74ba285e5a72a5c1889 | [] | no_license | jacobpgallagher/solitaire-tools | 95363d55f68b53b20e044f21fca365d542efe4ae | 77b1995fc5d78e34906531eda70735ae07a88edf | refs/heads/master | 2021-01-20T11:06:22.009814 | 2012-09-19T13:19:16 | 2012-09-19T13:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | cc | solpipe.cc | #include<iostream>
#include "solitaire.h"
#include "addmod.h"
int main(int argc, char **argv)
{
int whicharg;
bool encrypt;
if(!(argc > 2))
{
cout << "Usage: " << argv[0] << " -{e,d} <PASSPHRASE>\n";
exit(1);
}
else
{
if(argv[1][0] == '-')
{
if(argv[1][1] == 'e')
encryp... |
89095fad3c781fe6883e696c4592b61b5c8749bd | 4db2254e0792177afd03b20cba0360220be63c9f | /Entrega1/cl0123_proyectointegradorredessistemasoperativos_grupoc-Entrega1/src/HTTPRequest.cc | 43c4f01b69617aa07d880fe5b1b6b64aabb32c70 | [] | no_license | titito2005/CI-0123 | ab9c5e1549ff383e4fe1d855384de70bd7615dbf | 2f4df83d23bb3851673e14b1946d01ad5e561a58 | refs/heads/main | 2023-02-03T18:30:35.784243 | 2020-12-16T01:57:42 | 2020-12-16T01:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,984 | cc | HTTPRequest.cc | /*///////////////////////////////////////////////////////
Clase HTTPRequest.cc
-Esta clase realiza un manejo de los request que se realizaran al servidor
para solicitar los datos.
-Realiza un manejo de los archivos .csv,
en los cuales se parsearan los datos solicitados.
-Realiza un manejo de errores de los... |
171db0e5d5824394e6f412020594624511f6b345 | e25b7bb3fd43f763f4e5dcb09cdda35b9a3f30a0 | /components/send_tab_to_self/send_tab_to_self_bridge.cc | c45e2e9611ebb5c85cbdc3d14ded4bda9f852234 | [
"BSD-3-Clause"
] | permissive | trustcrypto/chromium | 281ff06e944b1ff7da7a5005e41173ccc78eb2cd | 6e3be4ab657ddd91505753ab67801efcf8541367 | refs/heads/master | 2023-03-08T03:58:49.920358 | 2018-12-26T20:55:44 | 2018-12-26T20:55:44 | 163,217,833 | 1 | 0 | NOASSERTION | 2018-12-26T21:07:41 | 2018-12-26T21:07:40 | null | UTF-8 | C++ | false | false | 2,497 | cc | send_tab_to_self_bridge.cc | // Copyright 2018 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 "components/send_tab_to_self/send_tab_to_self_bridge.h"
#include "base/optional.h"
#include "components/sync/model/metadata_change_list.h"
nam... |
131650eb3485f55fa192be5e50240a71c5630eab | 237027aaeeae8c8846c17526e85a5160f520ffbc | /CRYPTO1.cpp | d5526de4be154d1133a7f12bcb476a1fe1822b28 | [] | no_license | Ras-al-Ghul/SPOJ | 280553534e5f6a8bae50d18ba3c81c730a2b5f81 | be968175dddaaa9c33a9ca05f4979d1644113646 | refs/heads/master | 2021-03-19T16:20:23.533067 | 2019-04-11T13:31:17 | 2019-04-11T13:31:17 | 97,983,851 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,698 | cpp | CRYPTO1.cpp | // In problems like these, see the number, here the % number
// notice that it is prime - 4000000007 - may have some helpful property
// these two links suffice
// given n and prime p, check if square root of n under %p exists or not
// i.e. if x exists such that (x*x)%p = n
// uses Fermat's Little theorem
// ? means ... |
9d47119023efd771030dfeb1e5f093e1cddf5851 | 0721efa7c52d1c1fd9949003e80eafc00528816b | /android.OLD/jni/engine/extern/newton/source/physics/dgCollisionCapsule.cpp | 9724c60ac5722ad269eeea667722b336a8a270d6 | [
"MIT"
] | permissive | ColinGilbert/noobEngine | 2bef6f41f1f991596df22b1e3d8f033db252c81f | 13190e479b90a2c1bf71aa934b22df989867a094 | refs/heads/master | 2020-06-06T19:26:15.713494 | 2015-02-18T09:34:59 | 2015-02-18T09:34:59 | 28,265,753 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,138 | cpp | dgCollisionCapsule.cpp | /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any... |
afdb591fa6dfaf852c2b3727073c626042ba6561 | 67be076ebfdbe388b3812e9bdbd1cf8b0b1ee5cb | /Node/misc/Node Addon Test/myobject.h | 468ff727ba26ab8e12bd58c0e8828105a14610b8 | [] | no_license | jaroles/Battlesnakes-V2 | 238bc32597f8a520f49ea84fa8f68a81e6847d00 | edfd20801729e5357f8c0319164a1fcf73b008dc | refs/heads/master | 2020-05-16T08:08:33.157941 | 2013-05-06T14:32:22 | 2013-05-06T14:32:22 | 8,019,120 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | h | myobject.h | /*
* MyObject.h
*
* Created on: Oct 26, 2012
* Author: Jure Jumalon
*/
#define BUILDING_NODE_EXTENSION
#ifndef MYOBJECT_H_
#define MYOBJECT_H_
#include <node.h>
class MyObject
{
public:
MyObject();
virtual ~MyObject();
static v8::Handle<v8::Value> NewInstance(const v8::Arguments& args);
private:
int... |
c8179f1f51ee9da33f98a93bb8e81167db8d038c | bfbdd3d6bf4e70aa2aa2df3d01d18c83a30d8033 | /day5/code/04static2/main.cpp | abc171698a3b4fc6ac61a96fdec53bad391f59ae | [] | no_license | caiyiming/cppCode | 42333b1c052818afdd68d8a47c4e5b648d7a6b6d | dc1b897af0ebd0778159b852112e02b0ade23e78 | refs/heads/master | 2020-06-15T15:46:48.511108 | 2016-12-01T08:08:16 | 2016-12-01T08:08:16 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,087 | cpp | main.cpp | #include <iostream>
using namespace std;
//static 修饰成员函数,他的作用只有一个,用于管理static成员。
//static 修饰的成员函数,既属类也属于对象,但终归于类。
//staic 修饰的成员函数,因为他属于类,所以没有this指针,不能访问非staitc 数据成员及及成员函数
class School
{
public:
string & getTower()
{
return tower;
}
static string& getLib()
{
return lib;
}
pri... |
e3686a3cacb404e452558bec1057a73017fefedc | 1fcdb2bc2c7f75f6aed466119a4b1c53777f0b7a | /holly_inletwfine_LRR_RSM_turbulence/1/R | 3d3fa6265b5c1347f6ec47a2ae474c3f828faeda | [] | no_license | bshambaugh/openfoam-experiments3 | b32549e80836eee9fc6062873fc737155168f919 | 4bd90a951845a4bc5dda7063e91f6cc0ba730e48 | refs/heads/master | 2020-04-15T08:17:15.156512 | 2019-01-15T04:31:23 | 2019-01-15T04:31:23 | 164,518,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505,611 | R | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
... | |
388ee77e7ba6de9274e8e5408989b3ec0b5b039d | 76511344cc27c1898d0fe8449c5073e41984922d | /Peggle Game/GameSceneManager.cpp | b33fe02c30a5a26aae0604b63d8350b8c5a4e5cc | [] | no_license | jonasrabello/Peggle-Game | 2f07ff4800b58c2a993cce7e2f6c5e3cb287e8f9 | a389c320cac317ca9da90845ad4580260308ef33 | refs/heads/master | 2020-05-31T10:16:43.356761 | 2019-06-04T16:09:25 | 2019-06-04T16:09:25 | 190,236,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,025 | cpp | GameSceneManager.cpp | #include "GameSceneManager.h"
GameSceneManager::GameSceneManager() {
}
GameSceneManager::~GameSceneManager() {
}
bool GameSceneManager::OnCreate(const char *title_, int width_, int height_, float xUnit, float yUnit) {
isRuning = true;
window = new Window();
if (!this->window->onCreate(tit... |
6cd273b5676ef9062bc1069543c7f0d550e07d77 | 4861067392a62a94eb6754e002c4348cfc378e43 | /src/gui/image/qiconengine_p.h | 3cf099842951e62580086d25522b3c251693a3d4 | [] | no_license | qt/qtbase | 10c7d55cfa1e34e4d23c00e96c6199a1657095e1 | 0e5f60a6cae61c5086f25c039a953a5ade5fa471 | refs/heads/dev | 2023-09-01T20:11:09.742148 | 2023-08-31T15:56:57 | 2023-09-01T16:06:27 | 9,880,335 | 2,175 | 1,249 | null | 2023-07-17T10:11:10 | 2013-05-06T06:01:22 | C++ | UTF-8 | C++ | false | false | 1,788 | h | qiconengine_p.h | // Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QICONENGINE_P_H
#define QICONENGINE_P_H
#include <QtGui/private/qtguiglobal_p.h>
#ifndef QT_NO_ICON
//
// W A R N I N G
// -------------
//
// This file is not par... |
9863e95b791ee06e2ab15c312260a54929f4b245 | 09e38c683fd8deee413c595146419a2b5064bb09 | /src/depth_basics.cc | 70d9772dbdf15f71ba072cbb04f5c259022b7f17 | [
"MIT"
] | permissive | hiro-dot-exe/patient-observer | e4b6cb3e975ab2b25c11ef83d3d83e9dadda7db7 | 5a684248e0f4ddba7e96110b6be2c6e0fc0ea153 | refs/heads/master | 2022-08-13T01:37:00.787167 | 2020-05-18T16:15:44 | 2020-05-18T16:15:44 | 264,993,355 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,582 | cc | depth_basics.cc | #include "depth_basics.h"
#include <strsafe.h>
#include "resource.h"
#include "image_renderer.h"
#include "observer.h"
#include "kinect_option.h"
const int DepthBasics::cWindowWidth = 383;
const int DepthBasics::cWindowHeight = 318;
/// <summary>
/// Entry point for the application.
/// </summary>
/// <... |
28bbf466034f980d7aeefaf99432dd85da7b1d6f | 6a26b5d04836488fbe6d66cdbc0f8e02cbb1932e | /1_funciones.cpp | 4ac4dc23d1cbb79b988bcb8dd1d094d515e106b3 | [] | no_license | aalvarez75GiH/myC-Files | 96b5d24eddb3ea162e94885496fe2a1154f2733d | 46c77392fe2ab0084a159b5241374c6cc30796b5 | refs/heads/master | 2022-08-02T00:26:58.967889 | 2020-05-29T18:05:42 | 2020-05-29T18:05:42 | 267,353,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | 1_funciones.cpp | #include <iostream>
using namespace std;
void funcion1(){
printf ("Mensaje de Funcion\n");
}
int main()
{
scanf('Eiste es un mensaje random');
funcion1();
funcion1();
funcion1();
return 0;
}
|
ffd8e2442e855580644d1ae93120b8893da31ae3 | e097ca136d17ff092e89b3b54214ec09f347604f | /src/amtrs/.old/android/android-api-imagerender.hpp | 09de1467d0f3210a36850dc0960d07c130e6458a | [
"BSD-2-Clause"
] | permissive | isaponsoft/libamtrs | 1c02063c06613cc43091d5341c132b45d3051ee0 | 0c5d4ebe7e0f23d260bf091a4ab73ab9809daa50 | refs/heads/master | 2023-01-14T16:48:23.908727 | 2022-12-28T02:27:46 | 2022-12-28T02:27:46 | 189,788,925 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,085 | hpp | android-api-imagerender.hpp | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__driver__android__api__imagerender__hpp
#define __libamtrs__driver__android__api__i... |
f88ec42f79b9e795067f43650544bc008c454bb9 | e0d87965fe67857f2041e67fe787288701b773d2 | /processor/cpu.h | 001b51bfebdf7ce573070dcdb6a8828933cf3cca | [] | no_license | avargas10/ce4302_Project1 | ea11be9d585b28a128a3575f2704b047c335a741 | 1d5f29860117f99a7cb47d2212e9d3a688d2f85c | refs/heads/master | 2022-02-19T22:56:30.426529 | 2018-09-08T01:02:45 | 2018-09-08T01:02:45 | 144,527,054 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | h | cpu.h | //
// Created by kakaroto on 12/08/18.
//
#ifndef CE4302_PROJECT1_CPU_H
#define CE4302_PROJECT1_CPU_H
// std::this_thread::sleep_for
#include "cache.h"
using namespace std;
/*
* CPU Clase encargada de simular las etapas de un procesador
*
* */
class cpu {
public:
cpu();
cpu(bus*,int,cache*,pthre... |
038077409541bba7ef45c4bdb7da9865458efd2d | 0b351636fb3520a4eafdc43140e9eced33eb4954 | /MaquinasDeEstado/Perifericos/RecirculacaoLavagem.cpp | b5eaeffed4d2dd2800f10d8b2c0886526cfac302 | [] | no_license | filipesiegrist/AutomacaoCerveja | 0c8fd8831f7fe829e7cafc27003a747b880dfc0d | 4ff4dd3a2120d4b02e79847c31bb16aab24f7868 | refs/heads/master | 2020-06-07T03:58:24.320439 | 2019-07-03T23:25:55 | 2019-07-03T23:25:55 | 192,917,245 | 0 | 0 | null | 2019-06-29T20:54:24 | 2019-06-20T12:36:30 | C++ | UTF-8 | C++ | false | false | 902 | cpp | RecirculacaoLavagem.cpp | /*
* @Author: Filipe Ernesto Siegrist Gonçalves
* @Date: 2019-06-20 10:27:30
* @Last Modified by: filipe-ufsc
* @Last Modified time: 2019-06-29 19:31:16
*/
#ifndef _RECIRCULACAO_LAVAGEM_CPP_
#define _RECIRCULACAO_LAVAGEM_CPP_
#include <Arduino.h>
#include "Botao.h"
#include "Leds.h"
#include "RecirculacaoLavagem.... |
83a30a7236e10c838a64f0e0afad47a734e45a80 | d3d79d4f0041d961989fce623901591384392417 | /src/container/linkedlist.hpp | a0fcae792ea61db17c7b49ae5438de8d5db3a7f8 | [] | no_license | Idolin/Cpp | 9a9ff1593faf24124cda5b1ae8f948091f2bb80f | ac8f77a54e1eb29160ef5ceb51abe4622b356cfb | refs/heads/master | 2022-06-29T05:03:13.471351 | 2022-06-21T11:05:03 | 2022-06-21T11:05:03 | 110,358,522 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,431 | hpp | linkedlist.hpp | #pragma once
#include "../debug/def_debug.h"
#include <iterator>
template<typename T, bool bidirectional = true>
struct linkedList
{};
template<typename T>
struct linkedList<T, false>
{
private:
struct node
{
T data; //data
node *next; //pointer to next node
explicit node(const T &da... |
7a558dcdf0dd681b9c65246dc17e8f60925c8320 | 55e3f82fa498ca2c4d724f6171a70fa95af650f4 | /coincidence.cpp | 745649c6a7abfaf8bfb737dd501ef47de950a693 | [] | no_license | marcopizzichemi/ClearpemGlobalPrograms | 1ddf59d04e99e1fa985e095cf028634d5f02d505 | 5e99700443efa029b54be2153ee455e2d46a8b9e | refs/heads/master | 2021-01-18T23:45:12.277544 | 2018-03-21T13:57:32 | 2018-03-21T13:57:32 | 50,508,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,691 | cpp | coincidence.cpp | // g++ -Wl,--no-as-needed -o coincidence coincidence.cpp `root-config --cflags --glibs`
// procedure
// once the .root files are produced by gate, this should be run on each one of them to produce a elm2 file with all the possible coincidences
// all the root files will be in a folder
#include "TROOT.h"
#include ... |
658796f891fec5eccda6637f5b054cbee9b2b3af | 77791a7c83b1b391c025666ceb260e68fdc29606 | /MiniCiv/MiniCiv/Game.cpp | bfb3393b40bbb619ec1485aea27d7fc15a03051a | [
"MIT"
] | permissive | Patrykz94/MiniCiv | 2a51a010c5d21eb66d4ca8d6cd0341d54c8b6aee | 9952e0c85021bf665b7d108dabe416f8f102d1de | refs/heads/master | 2021-01-24T09:57:24.561701 | 2018-07-25T12:18:19 | 2018-07-25T12:18:19 | 123,030,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | Game.cpp | #include "Game.h"
#include "SplashState.h"
Game::Game(std::string title)
{
// get desktop resolution
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
data->window.create(sf::VideoMode(desktop.width/3, desktop.height/3, desktop.bitsPerPixel), title, sf::Style::None);
data->machine.AddState(StateRef(new Sp... |
68805d61977054a14f4cf9f6e5a7e38a6530503c | 50208d13bdeba43ec43266e18925b2608ee8f52e | /ic.cpp | 009e44575fff3647e95340a33fa4cb947781df17 | [] | no_license | monthol8th/probsolve-cpe-2 | 57e9b31831f7368d4d8897e5cbffa93e9ef74af0 | 59b02dbd04246c37ebf5f3b069df49df161b3fdd | refs/heads/master | 2020-04-03T22:16:01.634488 | 2018-05-18T15:16:20 | 2018-05-18T15:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,631 | cpp | ic.cpp | #include <stdio.h>
#include <iostream>
#include <cstdlib>
using namespace std;
struct node {
int val;
node* prev, *nxt;
node(int val, node* nxt = 0, node* prev = 0)
: val(val), prev(prev), nxt(nxt) {}
}*head;
void append(int x) {
node* temp = new node(x);
if(!head->nxt) {
head->... |
1ef6bbe87ee287cdfd5a24dbdda58eb1ae075748 | 7e06d07b3d9752b1a12874c9f647cfe809b926f8 | /547-intersection-of-two-arrays/hashMap.cc | 2cbd024c4d01e0ab54632ec3b030130243fdb475 | [] | no_license | wushangzhen/LeetCode-Practice | e44363f1e0ff72b80e060ac39984fe469dba04d8 | afba5a3dc84e8615685f893b8394b5137e9a42b6 | refs/heads/master | 2020-03-09T18:07:32.825047 | 2019-09-17T00:14:40 | 2019-09-17T00:14:40 | 128,924,476 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 855 | cc | hashMap.cc | class Solution {
public:
/**
* @param nums1: an integer array
* @param nums2: an integer array
* @return: an integer array
*/
vector<int> intersection(vector<int> &nums1, vector<int> &nums2) {
// write your code here
unordered_set<int> hashMap;
vector<int> result;
... |
f8a234c0ea9c1e8daf2bd0fa92eb1fd8edbdc52c | 2c9cb07d93589081d50e81a2b47f379f0199fe40 | /Array Element Insertion.cpp | d14d410c97c5b3bacb9c61b97495eca69f411212 | [] | no_license | masruf14255/competitive-programming | d5b7bc181b9efac081ebcf320cb9d4da505d6352 | 88e1b8973684197a6e600b7001e106066ddb322d | refs/heads/main | 2023-07-01T11:35:33.080174 | 2021-08-03T16:36:13 | 2021-08-03T16:36:13 | 321,578,937 | 0 | 0 | null | 2021-04-27T15:15:56 | 2020-12-15T06:51:32 | C++ | UTF-8 | C++ | false | false | 2,039 | cpp | Array Element Insertion.cpp | /*
Bismillahir Rahmanir Rahim
Read in the name of Allah, who created you!
Al Mashruf Tonoy
Department of CSE, Daffodil Internatinal University.
*/
// ASCII VALUE SMALL LETTER a-z (97-122)
//transform(su.begin(), su.end(), su.begin(), ::toupper);
#include<bits/stdc++.h>
us... |
0868f4377316f0249d4a530855e84ccc04bcf147 | 518df6f4b3067b3b31bf6bcad28411f2daf1ca9a | /MAXSC_JAN18_day4.cpp | c39eba3cecce047f4c49f7da82d69a4d888b841a | [] | no_license | proishan11/200LinesOfCodeADay | dbee372e4b288397c58762891af1e32c3dd38bfa | ae1ccb1ed3a14fdd4dd0261cecdae4888dfe3bc2 | refs/heads/master | 2021-05-14T16:54:21.835615 | 2019-09-28T11:30:29 | 2019-09-28T11:30:29 | 116,032,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cpp | MAXSC_JAN18_day4.cpp | //Done
#include <bits/stdc++.h>
using namespace std;
long a[701][701];
bool getmax(int i, long* temp, int n){
int flag=0;
long c=-1;
for(int j=0; j<n; ++j)
if(a[i][j]>c && a[i][j]<(*temp)){
c = a[i][j];
flag=1;
}
if(flag){
*temp = c;
return true;
}
else
return false;
}
int main(){
int t,n,fl... |
a4607f1d73bcabef598bf56b8487496ef8b0d09a | f7b0ca09e379fe5e9f2a336a062aa8cc41c0189d | /include/pwm.hpp | 9157f2449b81c9eb9246e8e27bde494813d1820a | [] | no_license | mamukun730/Bloomfield | c1564b2748bd68b2d09d5d4fb233a48de0505139 | 6c15b31f23f8d68b5bb581aa833b4ef31f6b52f6 | refs/heads/master | 2021-01-23T10:20:53.449810 | 2017-11-18T01:10:38 | 2017-11-18T01:10:38 | 102,610,067 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,022 | hpp | pwm.hpp | /*
* pwm.hpp
*
* Created on: 2017/09/04
* Author: mmkn
*/
#ifndef INCLUDE_PWM_HPP_
#define INCLUDE_PWM_HPP_
#ifdef __cplusplus
//extern "C" void Timer_MTU4A();
//extern "C" void Timer_MTU4B();
//extern "C" void Timer_MTU4D();
#endif
#define MOTOR_CTRL_L PORT5.PODR.BIT.B4
#define MOTOR_CTRL_R PORT3.PODR.BI... |
9a0e952d1f1c10835e06ce1504d3393a179ec9b3 | 47bc067058e4d45f8729670b1bfa19aceaadc156 | /BYECAKES.cpp | 72e3e0aace55a9f187e32fd517925e2f6a4ba5f0 | [] | no_license | return19/All-C-Codes | 0bd0df357cd4bbc6552e1d943df792a1b4d806bb | b1c2269d2436a0cd65a5ef022595300c4827520f | refs/heads/master | 2021-09-09T16:13:53.464406 | 2018-03-17T17:02:55 | 2018-03-17T17:02:55 | 125,650,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 920 | cpp | BYECAKES.cpp | #include<bits/stdc++.h>
using namespace std;
double e[5];
double e_dash[5];
int main()
{
int i,j,k;
double max1;
for(i=0;i<4;i++)
{
cin>>e[i];
}
for(i=0;i<4;i++)
{
cin>>e_dash[i];
}
/*for(i=0;i<4;i++)
{
printf("%f",e[i]);
}
for(i=0;i<4;i++)
... |
cfc132b609a7eafa9ddc710ffa9c2c970a8c070b | b9cc90c42b30ca2efa0dcb6409a3a76358809823 | /WrecklessEngine/DynamicConstant.cpp | 20fc6e1f262c8c1085be4aee21b4237e394b3c4c | [
"MIT"
] | permissive | TheHolyBell/WrecklessEngine | b70e60027f0f4e530fb22f58c23e77cf7bbc1cd0 | 735ac601914c2445b8eef72a14ec0fcd4d0d12d2 | refs/heads/master | 2022-12-23T22:46:06.084430 | 2020-10-06T15:05:27 | 2020-10-06T15:05:27 | 292,550,722 | 18 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 10,620 | cpp | DynamicConstant.cpp | // Copy-pasted from ChiliTomatoNoodle
#define DCB_IMPL_SOURCE
#include "DynamicConstant.h"
#include <string>
#include <algorithm>
#include <cctype>
#include "LayoutCodex.h"
namespace Dynamic
{
struct ExtraData
{
struct Struct : public LayoutElement::ExtraDataBase
{
std::vector<std::pair<std::string, LayoutEl... |
f4ab402fa4e7301c71d8720f10585d46264385f6 | d50ec0c2f965420bf6ad422a489be62afcbca209 | /AddSalariedEmployee.cpp | 98bf5cd77d35ed4e39aef31b0dd773db37d95c0b | [] | no_license | priscyLove/payroll-in-cpp | ceb9d3114bcfa80a5054cfb155ab059a41b9576c | 83168c2bac1d8ae506c687afc6ef895d9fa5704b | refs/heads/master | 2021-01-15T18:14:41.564849 | 2013-01-18T17:40:13 | 2013-01-18T17:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | cpp | AddSalariedEmployee.cpp | #include "AddEmployee.h"
#include "DB.h"
#include "MonthlySchedule.h"
#include "SalariedClassification.cpp"
using namespace std;
class AddSalariedEmployee : public AddEmployee
{
double salary;
public:
AddSalariedEmployee(string name, string address, double salary, DB* db)
: salary(salary), AddEmployee(name, a... |
62c49a88e155ce121ee6f320f45cb089ae800b86 | 720739fcc5d7a54a3536b2341018a86c763e7d67 | /src/35.cpp | c46dce8b017a16c549db5fb7021df1e1d4e75300 | [
"Unlicense"
] | permissive | gokselgoktas/project-euler | ee7c6189da40a0ba9d40032b80b7252eadaff3ff | 1459fa0193b1cbea4481abd22c2dd4102b3cc8be | refs/heads/master | 2021-01-18T22:56:48.866425 | 2017-07-27T14:24:36 | 2017-07-27T14:24:36 | 84,379,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,101 | cpp | 35.cpp | #include <cmath>
#include <cstdint>
#include <iostream>
static uint64_t rotate(uint64_t number, size_t length) noexcept
{
constexpr uint64_t lookup[] = {1, 10, 100, 1000, 10000, 100000};
return ((number / 10) + (number % 10) * lookup[length - 1]);
}
int main(int count, char *arguments[])
{
std::bitset<99... |
907977e8fa0fa704e2e9e209762e0a0891a76a34 | f61161e3fb0b32bbc8d9feec51b7570e2347defd | /IMClientApp/FriendPanel/FriendPanel.cpp | 6b4791e3936dea9037994a0a3ba7e2304f6cb1d1 | [] | no_license | zrq-github/GraduationProject | a2f7e7f24462692c722eeebfde87d8470b444476 | ca085712a0585e6b974f8bb133d509b7073036c2 | refs/heads/master | 2021-01-02T18:27:04.691001 | 2020-05-20T14:04:40 | 2020-05-20T14:04:40 | 239,742,641 | 0 | 0 | null | 2020-04-13T10:30:15 | 2020-02-11T11:11:08 | C++ | GB18030 | C++ | false | false | 2,241 | cpp | FriendPanel.cpp | #include "FriendPanel.h"
#include "ui_FriendPanel.h"
#include <QListWidget>
#include "FriendListView.h"
#include "FriendListWidget.h"
#include "DataCenter/BaseDataType.h"
#include "AppSettings/AppPath.h"
#ifdef WIN32
#pragma execution_character_set("utf-8")
#endif
FriendPanel::FriendPanel(QWidget *parent)
: QW... |
aa590de7a4657e8ac4a4a1f246d85194ae89b781 | 6c7236c3fedda495add9e8783467ddfdd3338e39 | /legacy/rpi/source/MAX7219Matrix.cpp | 5ed192c3ba3d93d6e01d8ca0a85e08264c94f09d | [
"MIT"
] | permissive | framefactory/bit-matrix | a6f51ca096d24a20e7ca5c6da9a7a3429b0d60f9 | c4d658996598e8460e8e59c9d84685d781afc46d | refs/heads/master | 2023-02-03T21:14:04.543915 | 2020-12-16T23:02:13 | 2020-12-16T23:02:13 | 288,237,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,418 | cpp | MAX7219Matrix.cpp | /**
* BitMatrix - Raspberry Pi Dot Matrix Display Controller
* Copyright 2020 Frame Factory GmbH, Ralph Wiedemeier
* License: MIT
*/
#include "MAX7219Matrix.h"
MAX7219Matrix::MAX7219Matrix() :
_row { 0, 0, 0, 0, 0, 0, 0, 0 },
_brightness(0x04),
_rowChanged { true, true, true, true, true, true, true, t... |
fd87693eadc3fa69ebff9f062dc5b5164be18eb4 | 006e3d5242210d2d8e2ce1a8cfdc3cfb186cd33b | /others/Celmai lungsirdeparanteze.cpp | 46d556406128e0b7c0b4226fe0a3d62a7f40da8b | [] | no_license | contrapct/onlinej | 7c83fb7027e0707e36ae88501797e209eec5dfe7 | edea9393aa39a0f9deda93ce3484c293c3190c21 | refs/heads/master | 2020-04-05T22:50:28.270716 | 2013-03-26T12:42:03 | 2013-03-26T12:42:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | Celmai lungsirdeparanteze.cpp | class Solution {
public:
int longestValidParentheses(string s) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
stack <pair <int,int> > st;
int ret;
ret=0; st.push(make_pair ('#',0));
for (int i=1; i<=s.length (); ++i) ... |
a113795fae9959070f6e0f67ce84bf345996842e | 9e74427c10bfde27e213d92f071f7e09fdb57d11 | /source/x86/source_moss/kernel/disk/filesystems/fat/fat.cpp | 88ea32407c0caa49c95a944a70a02259dd3f936c | [
"MIT"
] | permissive | geometrian/MOSS | f7688ff7077d364bd11b248481b39f9df6f18bc9 | 5ab7bc9c6b1669e2c99aa797d7091c6b52a0ea38 | refs/heads/master | 2021-12-12T14:53:09.211355 | 2017-01-24T03:46:46 | 2017-01-24T03:46:46 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 28,443 | cpp | fat.cpp | #include "fat.hpp"
#include "../../../kernel.hpp"
namespace MOSS { namespace Disk { namespace FileSystem {
#define FATFS static_cast<FileSystemFAT*>(filesystem)
uint16_t FAT::_get_next_cluster_number_fat12(LazySector*restrict fatsectors[2],uint32_t fatentry_offset, uint16_t cluster_number) const {
//F... |
7fb7941dbb97e744a32f49f5446ec1d3bf9517ba | ba0d11878da8713fad1265ce711829e5858786d6 | /easyLambda/include/ezl/builder/MapBuilder.hpp | 16c8e41fd44ef9b0d7e8d7e3d085147623d5ddfd | [
"BSL-1.0"
] | permissive | haptork/pawn | bf21b180f20d265984e42ee11bd45a25267efb2f | b0c2431118de05eda59343fb98118dba54222133 | refs/heads/master | 2020-03-26T02:03:31.522035 | 2018-10-19T14:01:17 | 2018-10-19T14:01:17 | 144,395,253 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,898 | hpp | MapBuilder.hpp | /*!
* @file
* class MapBuilder
*
* This file is a part of easyLambda(ezl) project for parallel data
* processing with modern C++ and MPI.
*
* @copyright Utkarsh Bhardwaj <haptork@gmail.com> 2015-2016
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying LICENSE.md or copy at * http:/... |
fdd5d37e85ec5c8a2255fbb5333cea2035812b0f | 40b098b414e6cc7bd198bd55348411fa0f17c2a3 | /Lab4/Lab4.cpp | cfa2a0587832c0980797e816fa0a8582b714f709 | [] | no_license | MisterJamil/Lab4 | 7d2c6f9361d63d942e19b66271a94f41b0a5fc11 | cac99391ecb4828aa54a1e6a24f0b568456bfd9a | refs/heads/master | 2021-01-11T05:59:36.188431 | 2016-09-27T07:11:45 | 2016-09-27T07:11:45 | 69,291,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,710 | cpp | Lab4.cpp | // Lab4.cpp : Defines the entry point for the console application.
/* Author: Jamil Saliba
Date : 9/26/2016
Description : Console application that checks if a valid value is a prime number and then displays if it is a prime number or not. If an unvalid value is inputed then
an error message is displayed.
Finding a... |
b12627df49d23e4eeef6b02a5e1f7ec18cf09db5 | 29bb8ab4025994dfa54d0e74e7447384d84d239e | /udphandler.cpp | 2a2a1a154de943835dc6d952ab00af4740b231dc | [] | no_license | Mihaylov93/MVGE | d77028c01123abbe79cac1fa884167f5cc0ff811 | c8fa744e39fec035e13c45ef7ec1c29ee53d2ad0 | refs/heads/master | 2022-04-27T12:07:11.805254 | 2020-04-17T19:31:35 | 2020-04-17T19:31:35 | 255,914,267 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | udphandler.cpp | #include "udphandler.hpp"
#include <QNetworkInterface>
UDPHandler::UDPHandler(const QString& iface, int port, QObject* parent) :
QObject(parent), _port(static_cast<quint16>(port))
{
_udpSocket = new QUdpSocket(this);
_bcAddress = getIfBroadcastAddress(iface);
qDebug() << "Bind: " << _udpSocket->bind(... |
f15a53fe8288bb9d5385da2282de8671a6cf4ed8 | efbf3cf8e787a54576f5bca60c23589f40ab544d | /Black_Box_Transmitter/Black_Box_Transmitter.ino | 54aec99851d6826f646cf4716ccc68f7df21354c | [] | no_license | hocally/Black_Box_Transmitter | 91f973e5cbeacd120f7028a16b75cf21ebed7a14 | 9125c1241348c6c01069e020bdc4e7d35292922b | refs/heads/master | 2020-09-16T17:31:56.724114 | 2016-06-01T14:51:40 | 2016-06-01T14:51:40 | 67,190,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | ino | Black_Box_Transmitter.ino | /*
1 - GND
2 - VCC 3.3V !!! NOT 5V
3 - CE to Arduino pin 7
4 - CSN to Arduino pin 8
5 - SCK to Arduino pin 13
6 - MOSI to Arduino pin 11
7 - MISO to Arduino pin 12
8 - UNUSED
/*-----( Import needed libraries )-----*/
#include <SPI.h> // Comes with Arduino IDE
#include "RF24.h" // Download and Install (See above)
/*-... |
df66c572621e74035e40ef10a7bd923a8b5cc3ab | c967308d6aa41de943fa78b34afb11ef246088fc | /Classes/LogonLayer.h | 56956a07a2d7b98c8bd1b0364e477e26f3077178 | [] | no_license | IceCoffee2011/CatchFish3 | ab9be97481f8b6cb73c8eb82d41053082f928e24 | 0f034d96447b282e8e75b88afd891dd7864ed561 | refs/heads/master | 2020-05-05T11:00:41.150725 | 2017-01-14T08:02:45 | 2017-01-14T08:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,571 | h | LogonLayer.h | #ifndef __LOGINLAYER_H__
#define __LOGINLAYER_H__
class CLogonLayer : public CBASELAYER
{
public:
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
virtual bool init();
static cocos2d::CCScene* scene();
CREATE_FUNC(CLogonLayer);
~CLogonLaye... |
8e5a0110c4e5dfc04cb003ac580aa68fa37dba6f | 4cae129af4775bbb4c1a43c1a0a4d969d56a0a6f | /libaac/tests/aac/statistics.cc | ea515f2542b86c11f24ee320ceda3aedb6d22ac1 | [
"MIT"
] | permissive | CaffeineViking/lzw | ba3b97f309b669d104a90254476467e3bb9c8ee7 | ff943c3bf24dba61f2238b34d77e2c3d5a6b96a9 | refs/heads/master | 2021-03-21T23:53:16.425275 | 2021-01-06T14:03:02 | 2021-01-06T14:03:02 | 79,490,961 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 58 | cc | statistics.cc | #include "foreign/catch.hpp"
#include "aac/statistics.hh"
|
1917edcb852edc46004912b72eb48ab932c45316 | 6a92d5363aa06167e62e6dc4b56b17e07a06d650 | /droneLEDbar-withexpdecay/droneLEDbar-withexpdecay.ino | 59acd235b30101637442631773b93f3cabe001b8 | [] | no_license | d0ct0rvenkman/KnightRiderLEDBar | 0db809e370f5a881e0cd1b16ff551adf9efc2de7 | b7f3e96e55c281cffef8f95e3c9ebe93fd57d07b | refs/heads/master | 2021-01-12T16:01:52.605783 | 2016-10-25T18:17:59 | 2016-10-25T18:17:59 | 71,919,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,452 | ino | droneLEDbar-withexpdecay.ino | #include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIXELPIN 4 //3 default
#define NUM_LEDS 16 //16 default
#define BRIGHTNESS 255
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIXELPIN, NEO_GRBW + NEO_KHZ800);
// tunables
uint8_t decayLambda = 35; // 35 tuned for trinket 8... |
8cb125f939bdbdfa95812d609874a85a1548996c | 533f244419fa5b9416bb5e7c567d76f400048ec9 | /Include/grasp.h | 6326b70112c5bd43e7c1031eac2b08a1e7e284b9 | [] | no_license | etienneSG/Metaheuristic_GRASP | d83f5f9fd078afc5710eb593f7ac0796ffd6cf2d | 9b836c53748dc6631179317de0e0474a118df4a5 | refs/heads/master | 2021-01-21T13:56:37.950038 | 2014-11-05T20:00:47 | 2014-11-05T20:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,881 | h | grasp.h | //==============================================================================
//
// Class GRASP:
// Look for the best solution using the GRASP metaheuristics and completing
// it with a genetic algorithm on the population ad a local search on te best
// localisation.
//
//========================================... |
d9a7b7600f9dcde22293fe7b6ee894ca4d1c5617 | 9954eadf2758b386eedf7711105636f20e98a716 | /stark_driver/src/motor/light_test.cc | 9ae396785c857c7b1a8b4a5f2312a7fe4ec1fa3d | [] | no_license | UML-Robotics-Club/igvc-2012 | 1b95dce98a95d8821632d9bea02308038bb7270a | aadab8c9bcc143e990c564ac22c20c25bb859396 | refs/heads/master | 2021-01-20T05:07:46.893070 | 2012-06-13T15:37:48 | 2012-06-13T15:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 607 | cc | light_test.cc |
#include <cstdio>
#include "fsleep.hh"
#include "MotorController.hh"
void test(std::string dev) {
printf("Testing motor controller @ %s\n", dev.c_str());
bool enable_aux = false;
MotorController mc(dev);
for(int i = 0; i < 10; ++i) {
mc.set_power(0.0, 0.0);
//mc.set_aux(enable_aux);
... |
672f1c46263420b36a024269bd30aaab6c3a51d5 | 5d3865ecb42ceb1d0222915789c5ae0978192e1c | /EMS/core/fileOp.h | b688673c71924d7247004e546a6a0b40f578b454 | [] | no_license | NitefullWind/SomeApp | 93d67628d64c2bb516cdc2259ca67f4ed822acbb | 68ee0181f70937cea8a161dd3b8d2d3e561fc5dd | refs/heads/master | 2021-01-22T20:28:59.791354 | 2015-07-31T03:27:27 | 2015-07-31T03:27:27 | 39,984,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | fileOp.h | #ifndef FILEOP_H
#define FILEOP_H
#include <QObject>
class FileOp
{
public:
FileOp(QString fileName);
~FileOp();
bool readFile(QString &text);
bool writeFile(QString &text);
bool coverFile(QString &text);
// bool readRecord(QString &record);
void setFileName(QString name);
QString error;... |
899be0cef1cf0b40a0c6bb882f7e636bc0a87ff5 | b18d6091cfedf6a58fe8cfabd3f2e6ebc9d5075f | /CardCommand.cpp | 5b33bc8c395cc4134041ec7c9c12d4d3b95ef6f1 | [
"MIT"
] | permissive | banouge/SeniorProject | 7d28cf42023697cbc75180357752db01ba064686 | defc4ffaae4e52b002bbda06701653075b4cc93f | refs/heads/master | 2022-04-25T00:04:47.556705 | 2020-04-20T17:14:35 | 2020-04-20T17:14:35 | 238,531,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 222 | cpp | CardCommand.cpp | #include "CardCommand.h"
CardCommand::CardCommand(Player* commander, int bracket, int numArmies, Territory* territory, int cost, int index) : Command(commander, bracket, numArmies, territory), COST(cost), INDEX(index)
{
} |
f471fa99464df01fd487365c70704d7ef2d2c967 | 4ef911522f28384d38c26e2468d8a1ff858bb33b | /Scene.h | 11134eddf2a3b85d598035f3894b2fca8d554ce9 | [] | no_license | fbgtoke/VJ3D | 215b5d24eacb663dc1809cdeeec07f68d622c6e2 | f4c399a6c5257f9b00015ac285ec6b2e579147c7 | refs/heads/master | 2021-09-03T10:20:05.448115 | 2018-01-08T10:05:30 | 2018-01-08T10:05:30 | 109,996,340 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,266 | h | Scene.h | #ifndef _SCENE_INCLUDE
#define _SCENE_INCLUDE
#include "utils.h"
#include "Model.h"
#include "Particle.h"
#include "Gui.h"
class Scene {
public:
enum SceneType {
SCENE_TEST,
SCENE_MENU,
SCENE_LEVEL_SELECT,
SCENE_PLAY,
SCENE_HELP,
SCENE_CREDITS
};
Scene(Scene::SceneType type);
virtual ~Scene();
vir... |
9fe02bd6b3f90f54e6649d322adbc6493d236817 | 3c2e6a8a6da66c8dd0f916adeed00445deb5d3b6 | /src/PanelProperties.cpp | 2aaf91d0c1e843b169bdd2af5ba677dc224ec9e8 | [
"MIT"
] | permissive | TimoKunze/StatusBarControl | ea95f3fd3c0dae438372ff646567c81c28787cd0 | 2c69de672e2b839e3ccf015c886a7631a0e47ce7 | refs/heads/master | 2021-09-06T07:42:55.462812 | 2018-02-03T23:06:51 | 2018-02-03T23:06:51 | 117,596,563 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 33,815 | cpp | PanelProperties.cpp | // PanelProperties.cpp: The control's "Panels" property page
#include "stdafx.h"
#include "PanelProperties.h"
PanelProperties::PanelProperties()
{
m_dwTitleID = IDS_TITLEPANELPROPERTIES;
m_dwDocStringID = IDS_DOCSTRINGPANELPROPERTIES;
}
//////////////////////////////////////////////////////////////////////
// im... |
fa5727030553405ab57c8921e0a1a14a59a2994a | d146244ae3065f2d40965ae6eabb388cdeafbaaa | /src/HttpLibWebServerAdapter/SecuredClient.h | 69e56bfbc9b89fe5e1d4c9f34dc53a68a4bf9975 | [] | no_license | systelab/cpp-httplib-webserver-adapter | bf272304d3768f09b155dea5577b2667d3e13620 | ec438e77d74f9c70a5b61996f416a3e4cfa659b3 | refs/heads/master | 2022-03-17T15:56:39.229698 | 2022-02-15T14:35:24 | 2022-02-15T14:35:24 | 232,909,795 | 4 | 2 | null | 2022-02-15T14:22:31 | 2020-01-09T21:29:27 | C++ | UTF-8 | C++ | false | false | 329 | h | SecuredClient.h | #pragma once
#include "Client.h"
namespace systelab { namespace web_server { namespace httplib {
class SecuredClient : public Client
{
public:
SecuredClient(const std::string& serverAddress, unsigned int port);
virtual ~SecuredClient();
virtual std::unique_ptr<Reply> send(const Request&) const override;
... |
036ffc2129001697d8c0014416a28c7db4d10c80 | ee023aca334b169a63d87faaab5229408cd5e341 | /format/V10/CRingFragmentItem.h | 677fc5b86b2d6f8d113fb97045c4de5629d0f6fc | [] | no_license | jrtomps/nscldaq-format | 33b1b3bee0d403565137159b868c258cd4b24a4f | 0b283ea420cedbf1464b03dd2682c7b49f428428 | refs/heads/master | 2021-01-19T12:58:56.375891 | 2017-04-05T17:39:14 | 2017-04-05T17:39:14 | 82,353,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,901 | h | CRingFragmentItem.h | /*
This software is Copyright by the Board of Trustees of Michigan
State University (c) Copyright 2009.
You may use this software under the terms of the GNU public license
(GPL). The terms of this license are described at:
http://www.gnu.org/licenses/gpl.txt
Author:
Ron Fox
... |
3bf6ee1fc8ca9143d1a3cb718ba0ac26da438e57 | 42d981b9ac42ad12577865115228b3744aad6e6b | /bachelors/year1/semestre2/cpp-archive/GRAPH TRAININGS/n4.cpp | a2c8914207f1df0adf3f8a3531c6199bbb5a4258 | [] | no_license | Witalia008/university_courses | bcd7683ac3abbfb8f5474c0d114ed01cbc15eab6 | 8bdfb3b5f8ce44680dde530e4eabc28141013bd0 | refs/heads/main | 2023-04-11T11:16:59.444067 | 2021-04-01T01:31:02 | 2021-04-01T01:31:02 | 350,045,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | cpp | n4.cpp | #include <iostream>
#include <memory.h>
#include <stdio.h>
#include <cstdlib>
#include <cctype>
#include <vector>
#include <queue>
using namespace std;
const int N = 20;
int n, m;
vector<int> g[N];
bool used[N];
queue<int> q;
void bfs(int st) {
q.push(st);
used[st] = true;
printf("Vertex %d discovered\n... |
2f9208398c106cab89214d22ec98868ca1a93ce5 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive/9c9fb3def0b9e425687263f8dd6a1469/main.cpp | 30a3472cbd0b19872ea9a53f23fdd99557c9eb38 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 160 | cpp | main.cpp | #include <iostream>
#include <map>
int main()
{
std::map<char, char> map = {
{ 'A', '1' },
{ 'B', '2' },
{ 'C', '3' },
};
}
|
3cbfb993a5e07df0f8eb2139a003dce4e10f8a75 | 170ab6daedec4a8f107203b6eb5cd8bed1f4ed81 | /Beginning-Algorithm-Contests-Rujia-Liu-Second-Edition/Chapter-7.Brute-Force/Examples/02-UVA 11059 Maximum Product.cpp | aac49d16f2785412cc25b465de04f57090e04698 | [] | no_license | sfailsthy/ACM-ICPC | 4a15930c06c5ba35ca54a5ecb0acd7de63ebe7f7 | 7e32bfc49010c55d24b68c074c800a2d492abbfd | refs/heads/master | 2021-01-11T06:07:58.598819 | 2017-01-18T13:04:23 | 2017-01-18T13:04:23 | 71,685,224 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 670 | cpp | 02-UVA 11059 Maximum Product.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
typedef long long LL;
#define INF 0x7fffffff
const int maxn =20;
int n;
int s[maxn];
int main(){
int kase=0;
while(scanf("%d",&n)!=EOF&&n){
for(int i=0;i<n;i++){
scanf("%d",&s[i]);
}
LL res=-INF;
... |
3140b43c3ac4d96bc461b68b0445a110282187f7 | 6287d827855de4afecf31a9122ba1844a4df462d | /src/cigmar/video/manager/UniqueProperties.hpp | a8694169333b2d5237bb242e6819b8895003bf0d | [] | no_license | notoraptor/cigmar | 9d0b4c8492b004e57cf2e22526ae53ee872c7774 | 0329ece36eb765dea46a8147c9d678d3615e646e | refs/heads/master | 2021-09-08T01:42:53.872640 | 2017-12-23T14:27:49 | 2017-12-26T17:39:32 | 100,258,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,519 | hpp | UniqueProperties.hpp | //
// Created by notoraptor on 17-11-23.
//
#ifndef SRC_CIGMAR_UNIQUEPROPERTIES_HPP
#define SRC_CIGMAR_UNIQUEPROPERTIES_HPP
#include <cigmar/sqlite.hpp>
#include <cigmar/video/manager/RowMapping.hpp>
#include <cigmar/video/manager/UniqueProperty.hpp>
#include <cigmar/video/manager/PropertyTypes.hpp>
#include <cigmar/... |
2228558f40acaac36028312d8b2572b4b1318a14 | 1d1f1ff8e0e0181cc46938c16173c3c01c841d54 | /src/plugins/robots/foot-bot/control_interface/ci_footbot_gripper_sensor.h | c55f5156b607b4e861d953c0114ae10f3fe66f24 | [
"MIT"
] | permissive | rh17983/swarmtemp | a80be5bcb79ea82dc8352434b3eee8c10d8c9b8e | 6346f1fd33c45b7e84f80873bc03db5bd51b2fa3 | refs/heads/master | 2020-03-23T11:13:57.123569 | 2018-07-18T21:33:34 | 2018-07-18T21:33:34 | 141,492,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,806 | h | ci_footbot_gripper_sensor.h | /**
* @file <argos3/plugins/robots/foot-bot/control_interface/ci_footbot_gripper_sensor.h>
*
* @brief This file provides the common interface definition of the gripper sensor.
*
* This file provides the common interface definition of the gripper sensor.
* The sensor measures the current gripper aperture, in the... |
a6c1993feeb834e192c35177b8ad05baae9a4aeb | 2e507f8c90e0eea64655b49aa18e329dd3ce914e | /STLToys/YY_queue.h | 82baea8a1e0489b9089cf5a472ac06f1d69b18f9 | [] | no_license | Yu2erer/STLToys | 59664c3043ec3eaeed07ef68518c1f6fe9af1bd1 | f6603ac452d84aeafd508da8a40c7ce93c655892 | refs/heads/master | 2020-03-19T18:29:27.357807 | 2018-06-10T14:12:09 | 2018-06-10T14:12:09 | 136,811,650 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,354 | h | YY_queue.h | //
// YY_queue.h
// STLToys
//
// Created by ntian on 2018/5/14.
// Copyright © 2018 ntian. All rights reserved.
//
#ifndef STLTOYS_YY_QUEUE_H
#define STLTOYS_YY_QUEUE_H
#include "YY_deque.h"
namespace YY {
template <typename T, typename Sequence>
class queue;
template <typename T, typename Sequenc... |
e1aa048573d4e8dc230b16a9f1a37ad715d13072 | 3b0533f70a8915187b60c8aca81ce48dca6f4297 | /CppCourse/app/src/main/cpp/basic/String.cpp | 7c6cb08d6d502a43b6eed84ac6ea05ca38bf9c7b | [
"Apache-2.0"
] | permissive | chaozhouzhang/CPP_COURSE_WITH_NDK | 0556fabeca3c154a1f3365ad43e28fde60460045 | e278ea9eff6ad9b46e1ba1f53fd821ff06083a88 | refs/heads/main | 2023-03-13T02:08:26.745187 | 2021-03-03T11:17:54 | 2021-03-03T11:17:54 | 343,283,640 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 68 | cpp | String.cpp | //
// Created by Administrator on 3/1/2021.
//
#include "String.h"
|
30d81c9b3617292e7f7d7868f53c56d91b5bc7ee | 41fda566921957dfeb6e244e67c9802980ec051f | /radarGui.h | 68392c3f07aa9ba12b7b87cd04b160c8319c069d | [] | no_license | blockspacer/Black-Comrade | 7f208bfdb978909bf95b51d5256d435b6d541e56 | c110b753ab5481f5ea35026427affbcfd0c6fe21 | refs/heads/master | 2021-04-01T03:01:36.434513 | 2010-05-12T09:24:20 | 2010-05-12T09:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,612 | h | radarGui.h | #ifndef RADAR_GUI_H
#define RADAR_GUI_H
#include <OGRE/Ogre.h>
#include <CEGUI/CEGUI.h>
#include <CEGUI/CEGUIBase.h>
#include <CEGUI/RendererModules/Ogre/CEGUIOgreRenderer.h>
#include <sstream>
#include <deque>
#include "ITickable.h"
#include "guiManager.h"
#include "shipState.h"
#include "swarmManager.h"
#include "en... |
42a842a27ebeb1c300b87873c1523ad1d2fe949b | a9f035b7328c24378d46f991662fe050374e6cc2 | /HiddenMarkovModels/Observable.cpp | 9c64985b6264bfa275b3cca4235c6ba50acdbea8 | [] | no_license | valleyman/HiddenMarkovModels | e8a13fdbc59ac7cde35d9dea2c7ce220f1b31f67 | e05d4f127fbb54772838886fb3167fc5ac63d224 | refs/heads/master | 2021-01-13T01:54:17.797606 | 2014-01-14T15:25:25 | 2014-01-14T15:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,440 | cpp | Observable.cpp | #include "stdafx.h"
#include "Observable.h"
using namespace boost::assign;
Observable::Observable(const matrix<double> &prob, const std::vector<OBS_TYPE> &alphabeth) //: _obs_gen(prob.size1())
{
_prob = prob;
_alphabeth = alphabeth;
if (TRULY_RDM == 1) _rng.seed(static_cast<unsigned int>(std::time(0)));
for (unsi... |
16e0370bf07e7fa7f62a88e11084c2f47e31a472 | 1774992430e20683a8819c0330034f40dd932ca9 | /indexed_color/src/OctreeNode.cpp | 80518980a12faa15a1d7d880405d19b170b306e4 | [] | no_license | haguhu/homework | 6507b78a602c567dba0c0f6734d39fdc27b49be1 | d76dcf702053f433eacba88ed4fcb4f4f2e2a4f3 | refs/heads/master | 2021-01-23T16:04:45.130954 | 2017-12-19T12:31:15 | 2017-12-19T12:31:15 | 93,281,383 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,637 | cpp | OctreeNode.cpp | /**Octree algorithm for indexed color
Implemented by Jennifer Burg, October 2005
Other files include main.cpp, Octree.h
OctreeNode.h, Bitmap.cpp, Bitmap.h
Image.cpp, Image.h.
This is OctreeNode.cpp*/
#include "OctreeNode.h"
#include <iostream>
#include <fstream>
using namespace std;
extern ofstream outF... |
04a2f5557c195000ee448dd55c8075e7b094a340 | 8e9d769081965ed4baceae5348680199882a5679 | /asylo/test/misc/rwlock_test.cc | a7bd7a66be035e9ca496053253895fdfddb9f4f3 | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-4-Clause-UC",
"BSD-2-Clause"
] | permissive | google/asylo | 049b7c3e55417b64d7b3811c2e54ad34c0208fff | e73365548454950929d339d37d810a789e5c383b | refs/heads/master | 2023-08-31T14:28:38.211229 | 2022-04-12T19:13:42 | 2022-04-12T20:00:07 | 131,036,436 | 943 | 136 | Apache-2.0 | 2022-04-12T20:00:08 | 2018-04-25T16:43:56 | C++ | UTF-8 | C++ | false | false | 4,289 | cc | rwlock_test.cc | /*
*
* Copyright 2017 Asylo authors
*
* 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... |
4cdb385b9afdd35c7302db4fb5bb367c343f2cd4 | c9db2808800ab4f050aff74aa1439595abd38bb9 | /Search/Search.h | 7ac0f3102879e6998568bbbc6e5213ffac9c41f7 | [
"MIT"
] | permissive | skyf0cker/Data_Structure | e15b74b8d383fce2a3ebd97eaecc2553ad41e695 | 605c8d9bbe4e7cd8009c9e108dda57108fde7d1e | refs/heads/master | 2020-04-26T12:13:57.315890 | 2019-03-31T03:53:38 | 2019-03-31T03:53:38 | 173,542,702 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | h | Search.h | #include <vector>
#include <iostream>
typedef struct TreeNode
{
int data;
struct TreeNode *left;
struct TreeNode *right;
TreeNode(int);
TreeNode();
}Node, *node;
TreeNode::TreeNode(int val):data(val) {}
TreeNode::TreeNode() {}
class Search
{
private:
public:
node root;
Search();
void... |
d8e0d6a25a31fd5a5e3706f00d717328c81553c3 | 1d7b7366ce4d1f8cb84a48cf10fdf22599c25d9f | /mac/lib/Target/ARM/ARMGenDAGISel.inc | 90d6712798ba6383e6bf1a3948c9439524d99cb8 | [] | no_license | anderson-luizalabs/ollvm-bin | 4f37c064113456bf7cb0ac5af40bc6a521ef120d | 4669b644a2c0458c7813adf3b1e6764cdae6785e | refs/heads/master | 2023-02-10T20:18:14.726087 | 2021-01-13T12:06:21 | 2021-01-13T12:06:21 | 329,114,976 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,497,133 | inc | ARMGenDAGISel.inc | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|* *|
|* DAG Instruction Selector for the ARM target *|
|* ... |
ec3a7a9c4e45ae0467ced86ec22b2b986a75cbf4 | f626ee94840969027a26247b2fde39713fd2b90e | /addition/file_dialog.cpp | 30c3eb9329438a2a8ed07b303ccd5be9aa12cca7 | [] | no_license | temtan/tt_squirrel | b22b6dadc4cf3cdc86f516792087c63d8e8f15ca | 882a054143c62852fb55d88c834bfb3a1e76af75 | refs/heads/master | 2023-07-16T05:54:59.811818 | 2023-06-25T14:58:40 | 2023-06-25T14:58:40 | 121,849,495 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 9,257 | cpp | file_dialog.cpp | // addition/file_dialog.cpp
#include "tt_file_dialog.h"
#include "tt_folder_browser_dialog.h"
#include "tt_squirrel_virtual_machine.h"
using namespace TtSquirrel;
namespace Tag {
#define DEFINE_PARAMETER_NAME_STRING( name ) static const std::string name( #name )
DEFINE_PARAMETER_NAME_STRING( FileDial... |
3ce40ad3ffb72be3b0abe1d45de1fbc544995885 | ad2d392f73f6e26b4f082fb0251b241a7ebf85a8 | /abc/reiwa/139/e.cpp | ca6e84e71c83c409b26a3193daad357f9a139275 | [] | no_license | miyamotononno/atcoder | b293ac3b25397567aa93a179d1af34add492518b | cf29d48c7448464d33a9d7ad69affd771319fe3c | refs/heads/master | 2022-01-09T23:03:07.022772 | 2022-01-08T14:12:13 | 2022-01-08T14:12:13 | 187,175,157 | 0 | 0 | null | 2019-06-12T16:03:24 | 2019-05-17T08:11:58 | Python | UTF-8 | C++ | false | false | 1,522 | cpp | e.cpp | #include <algorithm>
#include <iostream>
#include <iomanip>
#include <vector>
#include <queue>
#define rep(i,n) for (int i=0; i<n;++i)
using namespace std;
queue<int> Ready, Next;
int N;
int main() {
cin.sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> N;
vector<vector<int> > A(N, vector<in... |
cd622b6938dcece99da81d6cb10f9d28e0d35ff4 | 0eea114af510ed38dc17e588b0057ed92d310ab3 | /CodeChef/ccday1.cpp | 9a1127de10a25934a89a5b1218f4865e3ac9fbb1 | [] | no_license | rahultah/DSA-CPP | d6dfbf74b4b395aab6b7cba8caee552edd4f1345 | 71d24b8f2ecfac1c15c73cea9bdddd4c32d3d05f | refs/heads/main | 2023-02-06T11:03:10.970764 | 2020-12-22T12:05:13 | 2020-12-22T12:05:13 | 323,306,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | ccday1.cpp | #include<iostream>
#include <bits/stdc++.h>
using namespace std;
void cal(){
int ip;
cin>>ip;
int wdays = 120;
int days = 0;
int rem_days = 0;
string s;
cin>>s;
int n = s.length();
// cout<<n<<endl;
rem_days = wdays - n;
// cout<<rem_days;
char char_array[n + 1];
... |
48bafc3dc7d4937cbb8b7b95a8ef76dac09c2515 | 117761eed6393c79338ff2830cc4bf1649d588fd | /test/compress/compress.test.cpp | dd182f0640a174de5fecad31a22a067b2d56683d | [] | no_license | masutech16/compro | 8b820b610029c8b79eeec22dcb33848a786ecaef | 49b00a03141b9a797bf714119207ee954e36c4f5 | refs/heads/master | 2022-03-09T15:03:49.973665 | 2021-12-26T11:28:54 | 2021-12-26T11:28:54 | 93,766,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,479 | cpp | compress.test.cpp | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_4_A"
#include "../../lib/utils/compress.hpp"
#include <iostream>
#include <vector>
int main() {
int n;
std::cin >> n;
std::vector<long long int> vx1, vx2, vy1, vy2;
Compress<long long int> vx, vy;
for (int i = 0; i < n; i++) {
... |
eb1f19347a5adde61ddeb3de448d10feb76dbe95 | 1fae584436ee75bf329036643552dcd41c449680 | /20190612/벌점.cpp | 60c311511c6a11685c98cc9a879d22a4fe8b3993 | [] | no_license | chosoom/baeckjoon_algorithm | 083470255837cfacea4325124e0a53be1010897f | c2992b603552005ce59004759c29ce6ff3bab33f | refs/heads/master | 2020-06-22T17:17:39.654951 | 2019-08-05T03:46:53 | 2019-08-05T03:46:53 | 197,753,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | 벌점.cpp | #include <iostream>
using namespace std;
void a(int b) {
int an = 0;
for (int i = 1;; i++) {
an = (3 * pow(i,2)) - (3 * i) + 1;
cout << an << endl;
if (an >= b) {
cout << i ; break;
}
}
}
int main() {
int num;
cin >> num;
a(num);
} |
3a9d5616459892df1630092b17faa4a7e80707ed | 5609b2c0d615f9da18c044ca8b5a6ccbcfc88cc2 | /src/A2DetectorConstruction.cc | 2407521a6e5c7b98a49eed1127a311256e7279d4 | [] | no_license | A2-Collaboration/a2geant | 18fc8f7d9ab2968df3bab3d1d6da88c3ec560782 | 4f2825bd2a14195e604f60007f85f520f77d83f4 | refs/heads/master | 2020-04-15T17:26:40.557810 | 2018-09-05T13:37:36 | 2018-09-05T13:38:34 | 17,795,890 | 3 | 14 | null | 2017-03-27T15:43:42 | 2014-03-16T09:20:45 | C++ | UTF-8 | C++ | false | false | 21,419 | cc | A2DetectorConstruction.cc |
#include "A2DetectorConstruction.hh"
#include "A2DetectorMessenger.hh"
#include "G4Material.hh"
#include "G4Box.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4VVisManager.hh"
#include "G4GeometryManager.hh"
#include "G4PhysicalVolumeStore.hh"
#include "G4LogicalVolumeStore.hh"
#include "G... |
d74b10e07c6b1c1f1fb9596cb26aaf64c7543043 | 3681f17d6bb7707d2f50ce2b4c7d9f8ce0833e93 | /atthis_c1/main_window.cpp | 8e2973ec883216415e4cdaaa86ecfe8d80707531 | [] | no_license | hutao932/Camera-QT | 827904e4f823bb017a82aeabc33f1dacc4137967 | 7b9617cf588ce8f8bdeeb32c0f4206ca8879adc8 | refs/heads/master | 2022-12-10T07:56:17.079630 | 2020-09-03T15:23:23 | 2020-09-03T15:23:23 | 292,604,795 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,907 | cpp | main_window.cpp | #include "main_window.h"
#include "ui_main_window.h"
#include "com_face_management.h"
#include "com_function_set.h"
#include "camera.h"
#include <stdio.h>
#include <iostream>
main_window::main_window(QWidget *parent)
: QWidget(parent)
, ui(new Ui::main_window)
{
ui->setupUi(this);
int preview_width = ... |
ef59a5720026bfa2be66507c5965a422a9763a73 | 0f8e526f5796d5bd8432e70a327b8a00a177b795 | /CustomMemoryManager/Source/UnitTest/MemPtrTest.cpp | 71cad6b83d37748e339dd923868cf3c899218ec1 | [] | no_license | Healyd/CustomMemoryManager | 9abde691b323759c99364e8a73a1d6a46ff6db17 | 8a5e95b64d0545befd44f86e9cb2ee1de4a8e5a6 | refs/heads/master | 2020-03-19T05:52:16.304949 | 2018-07-31T02:37:33 | 2018-07-31T02:37:33 | 135,969,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | MemPtrTest.cpp | #include "CppUnitTest.h"
#include "MemPtr.h"
#include "MemoryManager.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace CustomMemoryManager;
namespace UnitTest
{
TEST_CLASS(MemPtrTest)
{
public:
TEST_METHOD_INITIALIZE(Initialize)
{
#ifdef _DEBUG
_CrtSetDbgFlag(_CRTDBG_ALLOC_ME... |
e6846c609d727a06f3fbbd1cb0a64e12630056b3 | be662247a0f5c25889affdd63f56bfd751f2e4b7 | /CODE/projet/UTProfiler.cpp | 9126b7881697f77628f56221d32ff3947a2bd14c | [] | no_license | NF17P14/LO21 | 95d3ac6f2765a5c024564ec12c6179bc985ed763 | d3d2a536099a6c0a65e3476280d17f86423807ff | refs/heads/master | 2020-12-25T11:52:12.477195 | 2014-06-06T10:01:33 | 2014-06-06T10:01:33 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,411 | cpp | UTProfiler.cpp | #include "UTProfiler.h"
#include "manager.h"
#include <sstream>
#include <QFile>
#include <QTextCodec>
#include <QtGui>
#include <QMessageBox>
const int MAXCREDIT=6;
QTextStream& operator<<(QTextStream& f, const UV& uv){
return f<<uv.getCode()<<", "<<uv.getCategorie()<<", "<<uv.getNbCredits()<<" credits, "<<uv.getTi... |
d57eadaec38689f8369b3a5797adfcc5a1f82184 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/base/win32/fusion/tools/preprocessor/win32file.h | b7363c1ee5440931c9f2666365df02300b19162c | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 1,591 | h | win32file.h | #pragma once
#include "windows.h"
#include <string>
using std::wstring;
enum FileContentType {
FileContentsUnicode,
FileContentsUnicodeBigEndian,
FileContentsUTF8
};
FileContentType DetermineFileTypeFromBuffer( unsigned char *, int );
int DetermineFileTypeSigSize( FileContentType );
CByte... |
b1c050dfb589ffd8cb97f1508bd53369016cb290 | 4c46fdb3f136ecbb08297e8c6d8e96ea8d81f680 | /Jump Game.cpp | e1eed683235f738b0783e8f391b97b661719fe53 | [] | no_license | icode123/leetcode | 2e9411c496b9078223de6e8ed139f16580638030 | 35bf9ae40eee2afc79f62b707da3d77300060344 | refs/heads/master | 2020-05-18T10:45:37.872770 | 2013-11-03T11:44:28 | 2013-11-03T11:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | cpp | Jump Game.cpp | class Solution {
public:
bool canJump(int A[], int n) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
if(A==NULL || n<=1) return true;
int maxlen=0;
for(int i=0;i<n;i++)
{
if(i<=maxlen)
{
maxlen=m... |
bc37d4cdc2e1f2a58d468e667b805c62cba8a38a | ca05f96abf19d4172c01584269a86aa0823bfabf | /GameTemplate/Engine/Core/Geometry/Ray.h | 1553410efaded5a673e368f6c7df98304d0e17c2 | [] | no_license | Isetta-Team/Isetta-GameTemplate | 8bc8a5cc668953b7434268e32051ddcb493e45d8 | f953c1fe946a55db94d988023a3ac4e1ae4ebc3c | refs/heads/master | 2020-04-08T21:54:32.464453 | 2018-12-04T02:09:03 | 2018-12-04T02:09:03 | 159,763,132 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,898 | h | Ray.h | /*
* Copyright (c) 2018 Isetta
*/
#pragma once
#include "Core/Math/Vector3.h"
namespace Isetta {
/**
* @brief Line is geometry has a non-normalized direction
*
*/
class Line {
protected:
Math::Vector3 origin, direction;
public:
/**
* @brief Construct a new Line object
*
* @param... |
59e18880f2e04dbb39c67abb3974a9dcd5f10005 | 385f65172651790ae79660b9cf558a16bc37e76c | /Kokoro.Graphics.Vulkan/DescriptorSet.cpp | e93b5ab69ee79a0255fd5cfe08c285936f810356 | [] | no_license | himanshugoel2797/KokoroVR | efed401efdf60f8c3c3cf46718986394def84cd5 | 2dcc10dcd52cceddc8fe1e5882a4553d303206ea | refs/heads/master | 2020-08-29T00:40:20.324128 | 2020-06-05T17:14:16 | 2020-06-05T17:14:16 | 217,867,438 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,253 | cpp | DescriptorSet.cpp | #include "DescriptorSet.h"
#include <vector>
VkDescriptorSetLayout Kokoro::Graphics::DescriptorSet::GetLayout()
{
return desc_set_layout;
}
VkDescriptorPool Kokoro::Graphics::DescriptorSet::GetPool()
{
return desc_pool;
}
VkDescriptorSet Kokoro::Graphics::DescriptorSet::GetSet(int idx)
{
if (idx >= set_cnt)
thr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.