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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d640b7f02e969618d63f9d6d7ca5cb79152b4c5 | f87791b6429b0f36e59cbe95521142809dff5b34 | /tree_view.h | 800a783143deb08878f51c5088d4139317280e0b | [] | no_license | bartp5/filebrowser-scripting-primitive | b3c46ff668a8399770dedb34ac6917b30e50cce1 | d61db879fb5d9c2ab6623e52c82d9f1b53d66051 | refs/heads/master | 2021-01-19T08:35:56.255078 | 2012-09-07T12:56:56 | 2012-09-07T12:56:56 | 5,203,118 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,944 | h | tree_view.h | /* Copyright (C) 2011 OpenBOOX
*
* This program 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 2
* of the License, or (at your option) any later version.
*
* This program is distr... |
54fa99a9575a71803264839e804bfedb9cfa89d2 | 366b2bda2d09e1e61f785c98446581143e76d932 | /object/Texture.cpp | ce68a85300091982d14ec79233461792e9bcceef | [] | no_license | xianyuggg/PathTracing-Renderer | 51bda41dcda8eb4685c538a88188a20d3db4dfda | 837766ac92bd12e2e9d281e82cb245bc62ee4854 | refs/heads/master | 2020-07-23T21:09:50.679962 | 2019-09-11T02:53:15 | 2019-09-11T02:53:15 | 207,706,308 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,673 | cpp | Texture.cpp | //
// Created by Xianyu on 2019-03-19.
//
#include "Texture.h"
#include "../const/Constant.h"
using namespace std;
Vec Texture::getSphereColor(Vec point) {
double u = 0.5 + (atan2(point.z, point.x)) / (2 * M_PI);
double v = 0.5 - asin(point.y) / M_PI;
//cout << u << " " << v << endl;
u = fmod(u * ... |
f87465a7a193e54d038def5680e9202eef4ab847 | 87b355cfc5f0f5f57a25a8caf7459c5b21022bbb | /main.cpp | 6eb4ae556b4fb03768fd7f58083d8124a0319204 | [] | no_license | cerisilv123/recreating_vector_stl_container | 9a1a28828fd15aba052ce89d207d3030d9577e54 | 9939f7a8c1a4dac8bd0781e452e4cfc68e7cbceb | refs/heads/master | 2022-08-26T07:43:33.292449 | 2020-05-22T10:03:38 | 2020-05-22T10:03:38 | 266,078,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,288 | cpp | main.cpp | // Recreating Vector Class Template
#include <iostream>
#include <string>
template <typename T>
class Vector {
private:
unsigned int vec_size {};
unsigned int vec_capacity {};
T *values;
public:
// Constructors / Assignment
Vector();
Vector(int size);
Vector(int size, const T &vals);
... |
32df520a1f3a94438254a28a16852fe007fcfdc8 | 157a198fbf81527fa04e988b6a2b8dbdd4116f6d | /src/probe/probe.cpp | ee8c90a43c6c906c1bfc4c0c38109cadce780c8a | [] | no_license | Neodyme/Yellow | e4d1408051356c6f2a12d4c6108092c78328aae6 | 49349505227b1f8aac2b9eac1ad3917c421ee5a0 | refs/heads/master | 2021-01-04T14:06:41.803659 | 2015-01-08T12:19:43 | 2015-01-08T12:19:43 | 27,501,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,884 | cpp | probe.cpp | //
// probe.cpp for in /home/pprost
//
// Made by Prost P.
// Login <pprost@epitech.net>
//
// Started on Tue Dec 23 12:37:52 2014 Prost P.
// Last update Thu Jan 8 11:50:49 2015 Prost P.
//
#include <iostream>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>... |
8b5a5679a6cf232e0d299100d32cf4e7ece3ce61 | 4235a77fbde8077e0fc0f627b8bb9eebae99209e | /Arduino/Glim/sc-kernel.h | 2c454a5880ce704eda20bb89fae376a388a64417 | [] | no_license | Boomtime/glimmer | 3d64ebede3f67f8e8bbb9638ef9ce2a12661ff67 | df0a736d058cdd51e7309a9214fe6a11957e53c4 | refs/heads/master | 2021-06-10T20:38:41.306240 | 2020-11-30T13:45:09 | 2020-11-30T13:45:09 | 152,520,110 | 0 | 0 | null | 2021-04-21T19:41:19 | 2018-10-11T02:39:34 | C# | UTF-8 | C++ | false | false | 1,212 | h | sc-kernel.h | #include <Arduino.h>
namespace shadowcreatures { namespace arduino { namespace kernel {
// call in main setup
void setup( void );
// call in main loop
void loop( void );
typedef uint cb_t( void );
struct s {
const char* name;
cb_t* cb;
uint next_systime;
struct s* next_process;
};
void attach( struct s&, uint ... |
f4963f7c23707ae1868f2d845bd89ef6ec8c2466 | a06789c1f0d4f40232c9605839f08f6503593fcc | /digital_clock/digitalclock.cpp | 6e3f4c55d1650db6c3e091c96956711d21836452 | [] | no_license | godspeed1989/qt4_samples | 2ccc7f7608c408c90696062fe8dd4af496cb6938 | dd9c57cdd72d62a569d39d92186eb72eae08da7c | refs/heads/master | 2021-01-25T04:02:43.548919 | 2015-12-15T22:49:25 | 2015-12-15T22:49:25 | 10,721,442 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,190 | cpp | digitalclock.cpp | #include"digitalclock.h"
digitalclock::digitalclock(QWidget* parent)
:QLCDNumber(parent)
{
QPalette p = palette(); //调色板
p.setColor(QPalette::Window,Qt::blue);
QWidget::setPalette(p);
setWindowFlags(Qt::FramelessWindowHint //无框架
|Qt::WindowStaysOnTopHint);//最前端
setWindowOpacity(0.3); ... |
7e4aa01b96d7643c80a2f9bad4510e7c90d6941a | 1c3fc0c055af41e710fab21b5beca59bb32e894f | /Code/AssignmentAI/Maze.cpp | 590db0114aa44d1e64cb1ef31fa7f26b412b37bb | [] | no_license | samuelbrown3199/AI-Assignment | cbfa3b67ebb1acbad868ef244e743a1cd7cb2f17 | 9d22a54c103392eac187321366558e4f0095c4bd | refs/heads/master | 2022-03-23T12:13:56.586594 | 2019-12-12T16:24:23 | 2019-12-12T16:24:23 | 215,861,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,788 | cpp | Maze.cpp | #include "Maze.h"
Maze::Maze()
{
}
Maze::~Maze()
{
}
bool Maze::LoadData(std::string fileName) //used to load the data into something usable in the program
{
std::string fileLoc = "Mazes/" + fileName; //sets up the directory for the maze file location
std::ifstream myFile; //sets up the file stream to load the dat... |
52bda04dac8834e8345df70948587d0c473f56f7 | bec9f446ffac7ccf20032ae967058d22c008dfc9 | /A1015_Reversible Primes.cpp | 4d2a17930b214fcacd2f0c01dcadd2ef54641c4f | [] | no_license | nemonameless/PAT_Advanced-And-Algorithm | 3ca1962ad80c7b680bd385b3c6bf4255e0c3a7e6 | 7cd4a3fb1e4c77a610481514445ee312810e82f8 | refs/heads/master | 2021-09-07T10:11:51.867353 | 2018-02-21T13:43:40 | 2018-02-21T13:43:40 | 79,509,824 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | A1015_Reversible Primes.cpp | #include<iostream>
#include<cstdio>
#include<string>
#include<cstring>
#include<cctype>
#include<algorithm>
#include<cmath>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<stack>
using namespace std;
const int maxn=100010;
bool isprime(int n) {
if(n <= 1) return false;
int ... |
1f1d17f1dfe271cbb61fb2dd08aaa70112f7c9e1 | 5ff30d64df43c7438bbbcfda528b09bb8fec9e6b | /knet/NetClient.cpp | d27efd2e85e6e3eaf1d265f55aaa2c0c05a95ff8 | [] | no_license | lvtx/gamekernel | c80cdb4655f6d4930a7d035a5448b469ac9ae924 | a84d9c268590a294a298a4c825d2dfe35e6eca21 | refs/heads/master | 2016-09-06T18:11:42.702216 | 2011-09-27T07:22:08 | 2011-09-27T07:22:08 | 38,255,025 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,584 | cpp | NetClient.cpp | #include "stdafx.h"
#include <kcore/corebase.h>
#include <knet/NetClient.h>
#include <kcore/sys/Logger.h>
#include <knet/group/NmGroupPrepare.h>
#include <knet/group/NmGroupPrepared.h>
#include <knet/group/NmGroupJoin.h>
#include <knet/group/NmGroupJoined.h>
#include <knet/group/NmGroupLeave.h>
#include <k... |
ef59861e7796de31c14f032e867cdfd7a2e9cfa6 | 64037166a9e8d5eedca15eba23df34cae4ca5250 | /modelo/serializables/NombrePantalla.h | 5f65ac4074677f0e17509520845f758921342855 | [
"MIT"
] | permissive | seblaz/Final-Fight | 9d7bc63625973077b68dceb7d00fb6596e54d416 | b79677191a4d4239e8793fa0b6e8a8b69870a14d | refs/heads/master | 2020-07-10T07:23:13.467302 | 2020-01-24T21:55:01 | 2020-01-24T21:55:01 | 204,200,804 | 1 | 1 | MIT | 2020-03-06T09:47:19 | 2019-08-24T19:07:15 | C++ | UTF-8 | C++ | false | false | 499 | h | NombrePantalla.h | //
// Created by sebas on 5/11/19.
//
#ifndef FINAL_FIGHT_NOMBREPANTALLA_H
#define FINAL_FIGHT_NOMBREPANTALLA_H
#include "Serializable.h"
typedef string IdEtapa;
class NombrePantalla : public Serializable {
private:
IdEtapa id;
public:
NombrePantalla();
explicit NombrePantalla(IdEtapa id);
void s... |
df1f44cea614bbcfae0255bff672f35b595aaf99 | f6f8cfcd6c4f09772f99e4a6fe6a244e3499dac5 | /from-root/Math/MatrixRepresentationsStatic.h | 78c6155c6babdfa1482cfaa3ad93cdd0b33d534d | [
"Apache-2.0"
] | permissive | trackreco/mkFit | eedceb76639fce2cd6893a332e27fe43c7aed36b | ba37025247ff72c8edd2baea02b5b4ac335bdede | refs/heads/devel | 2022-02-11T01:07:33.040657 | 2021-12-14T18:07:59 | 2021-12-14T18:07:59 | 17,191,259 | 11 | 12 | Apache-2.0 | 2022-04-09T01:39:47 | 2014-02-25T22:59:21 | C++ | UTF-8 | C++ | false | false | 9,451 | h | MatrixRepresentationsStatic.h | // @(#)root/smatrix:$Id$
// Author: L. Moneta, J. Palacios 2006
#ifndef ROOT_Math_MatrixRepresentationsStatic
#define ROOT_Math_MatrixRepresentationsStatic 1
// Include files
/**
@defgroup MatRep SMatrix Storage Representation
@ingroup SMatrixGroup
@author Juan Palacios
@date 2006-01-15
Cl... |
fcca4f50b63cda84ca3f78ffe86aaa11f053d7a8 | 18ba2a33b4c0c027a212a3a0f8875e85aa34eaef | /basic_test.ino | 7e69e307d185106138d3f0b567abf56390d1a5e1 | [] | no_license | rdiot/rdiot-s093 | ac4cab47a17ca413d9ef50552dc0f52165b04bc4 | 8a1b2621bfe3107681ebde375d95c3eb8c0c3c8b | refs/heads/master | 2021-07-07T06:01:09.063483 | 2017-09-24T14:06:57 | 2017-09-24T14:06:57 | 103,666,281 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,563 | ino | basic_test.ino | /* Terminal sensor adapter (DFR0055) [S093] : http://rdiot.tistory.com/47 [RDIoT Demo] */
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <OneWire.h>
LiquidCrystal_I2C lcd(0x27,20,4); // LCD2004
int SensorPin = 10; //Our sensor is connected to digital pin 10
//Initiate OneWire communication
OneWire ds(... |
8c522756a923ba220bf8b8b92a043aecca6f01b0 | a0ecaf557fad395a6c8a44a92505fbb17e328910 | /dynawo/3rdParty/libiidm/core/src/components/TieLine.cpp | 91d099061162f55f806909acafc1b858adc28600 | [] | no_license | koukiMohamed/ModalAnalysis | ab310c05545a95390e92dd8ab85bc106c84ce545 | 3b8b3b9319a732ca196ae4a1b60484e1bc860770 | refs/heads/master | 2022-12-20T06:44:59.274346 | 2020-09-28T14:50:37 | 2020-09-28T14:50:37 | 299,256,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | TieLine.cpp | version https://git-lfs.github.com/spec/v1
oid sha256:0765c9c8c9abf666eee50452add30ad1798b5de8e4ec0b381e57190af329392e
size 1207
|
58369ff95e9785a228f5a5d3965457c709934db8 | 605c4d54d0e09cb1ecad23242dd9930e4346e7e0 | /Project2/list.cpp | 59ff70110e5355124fc16813ed7ca4f7e3c2bbed | [
"MIT"
] | permissive | qwergram/CS133Assignment | 79ec53201ae7dc3ca38ae090b92d28d09f1e073a | e93aced43296583e3de63bd6e130c00845a13714 | refs/heads/master | 2021-01-19T00:51:12.932393 | 2017-06-15T08:26:19 | 2017-06-15T08:26:19 | 87,211,610 | 5 | 1 | null | 2017-06-13T02:47:08 | 2017-04-04T16:42:45 | C++ | UTF-8 | C++ | false | false | 12,771 | cpp | list.cpp | //-----------------------------------------------------------------------------
// File: list.cpp
// Description: Contains all the non-inline methods for list.h
// this file must be included for full cdll functionality.
//-----------------------------------------------------------------------------
#include "list.h"
... |
5092fa4e06edb836e99eb6b5c3e6058f0e619d39 | 3da0e221e2e99bd1981d94c914e4efd00cd35765 | /Algorithm/4. Dynamic Programing/Giai_ma/Giai_ma.cpp | 7778afda836f2598ee01cdd67dc9ee3cb20ff8b9 | [] | no_license | DuyLongg/DataStructure_Algorithms_PTIT | 2d77708ce10a141657886d5e3003fdab8713ef21 | 26979498d270491f7956df9cc35e09d06cc4b3aa | refs/heads/master | 2022-11-08T01:02:29.586684 | 2020-06-27T11:45:02 | 2020-06-27T11:45:02 | 275,291,236 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | Giai_ma.cpp | // 2563
// 2 5 6 3
// 25 6 3
#include <bits/stdc++.h>
using namespace std;
int T,F[45]; // F[N] la so cach ma hoa M phan tu dau
string M;
int Solve(){
memset (F,0,sizeof(F));
F[0] = F[1] = 1;
if (M[0] == '0') return 0;
for (int i = 2 ; i <= M.size() ; i++){
if (M[i-1] > '0') F[i] = F[i-1];
if ((M[i-2] == '1')... |
6280c41e5769d8f48e79b70f21aef3e39c6b4f28 | 31f5cddb9885fc03b5c05fba5f9727b2f775cf47 | /engine/core/render/metal/mt_shader_program.h | 44205daf67e3f89b9e2728fb31489ed209f571dd | [
"MIT"
] | permissive | timi-liuliang/echo | 2935a34b80b598eeb2c2039d686a15d42907d6f7 | d6e40d83c86431a819c6ef4ebb0f930c1b4d0f24 | refs/heads/master | 2023-08-17T05:35:08.104918 | 2023-08-11T18:10:35 | 2023-08-11T18:10:35 | 124,620,874 | 822 | 102 | MIT | 2021-06-11T14:29:03 | 2018-03-10T04:07:35 | C++ | UTF-8 | C++ | false | false | 2,317 | h | mt_shader_program.h | #pragma once
#include "base/shader_program.h"
#include "mt_render_base.h"
namespace Echo
{
/**
* https://developer.apple.com/library/archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Prog-Func/Prog-Func.html
*/
class MTRenderable;
class MTShaderProgram : public ShaderProgram
{
... |
5f964bb59d293793f8c2f34dadbdff25214c5fd5 | 817f17b0641010ff8af276685d1e57edb2963c1e | /Lerarning_C/learn.h | 0eec18847c785678ff3a91ffd6f2a1097d7165b3 | [] | no_license | liyunfei1994/MyProject | 330973597a0fd15d6aaf16af4643d6169bb991da | 0a7d3fd437c696761beb5f12c151e7c60daddb6b | refs/heads/master | 2022-05-29T20:03:20.012705 | 2022-05-15T15:00:33 | 2022-05-15T15:00:33 | 155,391,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | h | learn.h | #include <stdio.h>
#include <stdlib.h>
using namespace std;
struct mystruct{
int age;
double score;
// char name[20];
mystruct(int Age, double Score)
:age(Age),
score(Score){
printf("%s\n", "This constructor!");
}; //有没有这个结尾的分号,好像没有影响……不会报错
}; //结构体末尾的分号不可以省略
|
7814cee388a4bd95faeb5ced076bb207d7499f70 | e31427aedcca2e42f2bfe6e1c3233ca1cb87de00 | /trabalho_4/daniel_nesvera/src/Camisa.h | da49f9c3e4022b7ad7742a80e4565ab218b59995 | [] | no_license | nesvera/computer_graphics | 5cb9b381b759d1e7348c561af1669e64b2d01a03 | b7d0484964048dba01d50f064890780494b18fde | refs/heads/master | 2020-03-27T06:14:56.512683 | 2018-08-25T12:44:07 | 2018-08-25T12:44:07 | 146,092,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | h | Camisa.h | #ifndef CAMISA_H
#define CAMISA_H
#include "Vector3.h"
#include "Cilindro.h"
using namespace std;
class Camisa
{
public:
Camisa(Vector3 *posInit);
void Render();
private:
Vector3 *posInit;
Cilindro *cilindro_0;
};
#endif // CAMISA_H
|
a97c0157025c5ac5723b1742c189936e26294ec8 | eb8494393152e2efa710c7d9e9f0cd688ab6a59c | /commands/action/ping/test.cpp | dafc82bb8b2df4400919f08ca0f310b26562e13f | [] | no_license | leksmax/URMA-TLR | 7cad7eb4bf0706146a68d4c54d3c45732e4da07d | 597e316f34173f3e9d701ca24163c67dcc4c3f3e | refs/heads/master | 2021-05-11T18:43:37.251388 | 2017-06-29T17:18:40 | 2017-06-29T17:18:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,726 | cpp | test.cpp | #include <CppUTest/TestHarness.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "CppUTestExt/MockSupport.h"
#include <CppUTest/CommandLineTestRunner.h>
int digi_ping_main(int argc, char **argv);
FILE *mock_file = (FILE *) "mocked";
FILE *popen(const char *command, const char... |
a1bedce5c02f5b42191c09802029e99ca3e36ad1 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/desks_storage/core/saved_desk_builder.cc | 9069bf7665642b3a9745a8a286e7180ba4eaeec2 | [
"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 | 12,269 | cc | saved_desk_builder.cc | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/desks_storage/core/saved_desk_builder.h"
#include "ash/public/cpp/desk_template.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/ti... |
8008cf6e1f885e95e7f6440a2c9afc0428a99393 | 77e43bc3b05a22fb97e117975157e63c9ab2c2fe | /server-code/src/game_comm/proto/protomsg_to_cmd.cpp | 0068dfed6b93d74e6e8f4d46f5ae0740dcfe03e0 | [] | no_license | luoxz-ai/mmo-server | fe4ef9a4ce540ad18314cbf298f00f74a11c24a6 | 6dcd98c0ebfd2d971d3b9766ca78844e7e262889 | refs/heads/master | 2023-01-12T23:37:26.127202 | 2020-11-18T02:37:13 | 2020-11-18T02:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cpp | protomsg_to_cmd.cpp | #include "protomsg_to_cmd.h"
#include "BaseCode.h"
#include <google/protobuf/message.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.pb.h>
using proto_msg_t = google::protobuf::Message;
#include "msg/ts_cmd.pb.h"
#include "server_msg/server_side.pb.h"
uint32_t msg_to_cmd(const proto... |
be8bfd4853f4fd0a7893d1953932a57a0df697fc | c305add24fb3f348bdd9cffd8494291a734476e6 | /powers.cpp | b608eb089e3334782b272b81849353384e08bae8 | [] | no_license | Austin-deMora/ICS3U-Unit4-03-CPP-Powers | a7ea3a5bd48d4a83a7033b00710468c553524b05 | 59deeddbed627acd7787de95e8aff62a33028961 | refs/heads/main | 2023-05-02T20:24:23.217531 | 2021-05-14T18:12:00 | 2021-05-14T18:12:00 | 367,444,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | cpp | powers.cpp | // Copyright (c) 2021 Austin de Mora All rights reserved.
//
// Created by: Austin de Mora
// Created on: Sep 2019
// This program finds the squares of all the numbers from
// the inputted number to 0
#include <iostream>
#include <string>
#include <cmath>
int main() {
// this function checks if you are old enough... |
ecc6c3ca1d9f7a21c50c69bc8ec4e6d3fc3b277c | aea7ab3208d507c5c6dd53f64513aa52c35c9869 | /headers/PostgresqlDatabase.h | 71b97555b73864602bc37ba6a6cc26c879df9b23 | [] | no_license | capsosk/pa036-database-project | d4d35bb83cf782c942ddf04723442f7bc66d7fbb | fd359f7b1649f51e2718807bb5b0685f268a8b63 | refs/heads/master | 2023-04-25T22:47:32.312928 | 2021-05-13T20:39:31 | 2021-05-13T20:39:31 | 358,549,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | h | PostgresqlDatabase.h | //
// Created by capsosk on 16/04/2021.
//
#pragma once
#include <pqxx/pqxx>
#include "FileParser.h"
class PostgresqlDatabase
{
public:
PostgresqlDatabase(const std::string &db_address);
std::string GetName();
void RunQuery(const std::string &query);
void AddMultipleObjectsJson_b(const std::strin... |
ca87c0668f2c30d3249c60ba74043c057fca6732 | f64f58aad1a5f4602440df8521c2d3bc25f6f6a2 | /src/Catalog/source/Schema.cc | 267ee976df95c44e14e2950dcd9859442af75649 | [
"Apache-2.0"
] | permissive | tera-insights/grokit | ab0f41a8f213739b1bac6ef69815a177f75f914a | af55cc1d22b816e9f8424199cdc2e0264288bc8a | refs/heads/master | 2020-04-15T17:29:49.981823 | 2017-08-26T22:24:52 | 2017-08-26T22:24:52 | 29,202,011 | 9 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 10,660 | cc | Schema.cc | //
// Copyright 2012 Alin Dobra and Christopher Jermaine
//
// 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 b... |
a24c7a249cb46d6904c38c8d5e5ee0ac452c98a8 | 479510a63d798b349f6ad5287b8440f617451544 | /new_code_Rasp.cpp | cdc1a6fa26f22ef1fee98e20073bc7a5f9245332 | [] | no_license | GremSnoort/Arduino_Raspberry_ROBO | b970b039721898af8c0b19fc1e2e0e82d7071d92 | b24325b48b9e699525ab957fa7293794fda2d449 | refs/heads/master | 2020-03-26T07:28:08.107611 | 2018-08-14T02:07:34 | 2018-08-14T02:07:34 | 144,655,951 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,502 | cpp | new_code_Rasp.cpp | #include <cv.h>// подключение заголовочных файлов библиотеки OpenCV
#include <highgui.h>
#include <imgproc.hpp>
#include <video.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <SerialStream.h>
using namespace LibSerial ;
using namespace std;
using namespace cv;
char device[]= "/dev/ttyACM0";
SerialStream my_s... |
e39a26eea4ab7671c36c5d79129b27975e59fa3c | 88ae8695987ada722184307301e221e1ba3cc2fa | /buildtools/third_party/libc++/trunk/test/std/input.output/file.streams/fstreams/ifstream.cons/path.pass.cpp | a055c6688cdb63f76ab3be277b3fe4f442573f9b | [
"NCSA",
"LLVM-exception",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 1,825 | cpp | path.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
c06c26c4d2964ac442cd2f3d848823ec8c32b957 | 23604fd08e4680a37285ae6af7bf2cbacd90fac9 | /VIR/Types/CreateType.cpp | acab6c2ebe5ec7595b7bdd6fd9da912fb61aa94d | [] | no_license | joewillsher/Vist | f8d27e79027f82356ec03aa9dc9adfd20c6b0244 | e149b34ca0e4183837c9a8dfa06fe19817e386d4 | refs/heads/master | 2020-04-03T20:59:29.232989 | 2017-02-21T19:53:13 | 2017-02-21T19:53:13 | 47,588,705 | 18 | 3 | null | 2016-05-28T23:47:29 | 2015-12-08T00:43:55 | Swift | UTF-8 | C++ | false | false | 1,033 | cpp | CreateType.cpp | //
// CreateType.cpp
// Vist
//
// Created by Josef Willsher on 10/02/2016.
// Copyright © 2016 vistlang. All rights reserved.
//
#include "CreateType.hpp"
#include "llvm/IR/Value.h"
#include "llvm/IR/Module.h"
#include "llvm/ADT/ArrayRef.h"
using namespace llvm;
Type * _Nullable getNamedType(StringRef name, M... |
140490cb134af4365eea857b87301042b660f52f | 245bf13493619d3c58bc7591fe7c2022adb91914 | /PAT/PAT-Basic Level/CPP/1058.cpp | f4bc07cd79f1d99d46ad8e48c2d905f27c8024d2 | [] | no_license | huixiongyu/Algorithms | 98ff3b5011101b7e34ae71b30c8f2bec0bd67165 | 2cd0620cead3a2db5e306c4083208c422f4822db | refs/heads/master | 2021-06-02T13:59:11.747665 | 2021-01-25T23:25:56 | 2021-01-25T23:25:56 | 98,390,111 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,547 | cpp | 1058.cpp | #include<iostream>
#include<cstdio>
#include<vector>
#include<set>
using namespace std;
int main() {
char c;
int n, m, p, q;
cin>>n>>m;
vector<set<char>> solution(m); // 正确的答案列表
vector<int> score(m), wrongCount(m); // 题号对应的分数和题号对应的错误人数
// 处理正确答案
for(int i = 0; i < m; i++) {
scanf("%... |
39487c3f85ae77da4d545690c953401140bbaa17 | dc23eb8e14659ab8bb62001a3b3323cb50c2a8ef | /system/tools/sysprop/JavaGen.cpp | 99c8978ab76b3ee6d6c1a402b418541c64b3fa17 | [] | no_license | wudeven/cells-android10 | e49c0c830da7041313289349e160385df5d12ef8 | d18dfa3ab597a37b8b71a14f094ba5b8afc75a93 | refs/heads/master | 2023-08-16T06:47:55.804251 | 2021-10-16T05:41:01 | 2021-10-16T05:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,272 | cpp | JavaGen.cpp | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... |
87dbf6c315a35335e2bd6df0a88b25a431b1c94e | f0274f33c71b0d94e07868d187d2fb20ffcc8c98 | /HfmCompressCPro/HfmCompressCPro/unCompress.cpp | 54e0b22feabfc9a0825877eedfc4507ca91179ad | [] | no_license | whut-leslie/Data_structure | cc3d29c921c8b509ca6f6a5de53c8d129bacf77e | 520a714332ae7de3fbf981001861f100293a390e | refs/heads/master | 2022-11-11T02:34:31.056570 | 2020-07-02T14:02:05 | 2020-07-02T14:02:05 | 265,515,029 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,435 | cpp | unCompress.cpp | #include"unCompress.h"
#include<iostream>
using namespace std;
//解压函数
int UnCompress(const char* pFilename)
{
char outputfile[255];
FILE* ifp, * ofp;
fopen_s(&ifp,pFilename, "rb");//打开.huf文件
if (!ifp)
{
cerr << "Failed to open this file!" << endl;
return -1;
}
cout << "输入解压后的文件名,(原文件名为" << pFilename << "): "... |
8338ab0cbab36587878e1c53c2ee8902ea059b0c | 2b3dece8ee0e9c52c08f448ed74246e969a8a5b9 | /DemoPC/AppClient.h | 2621bd43185e411e6ebe9fc768c731af69e17842 | [] | no_license | Yinqingwen/DemoWCE6_10.19B | a5cf6f0253bd1b58192f0266bc5a9fa51a82b939 | 4838f38e85f6942a1a7c4cea9e6452b8e8620e78 | refs/heads/master | 2021-01-17T17:52:42.420030 | 2012-11-02T08:46:47 | 2012-11-02T08:46:47 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 303 | h | AppClient.h | #pragma once
#include <winsock2.h>
class AppClient
{
public:
AppClient(const SOCKET sClient,const sockaddr_in &addrClient);
virtual ~AppClient();
SOCKET GetSocket(void) //»ñÈ¡Ì×½Ó×Ö
{
return m_sClient;
}
BOOL RecvData(void);
private:
SOCKET m_sClient;
sockaddr_in m_addr;
}; |
49c5934f2a8728df49770e216d1bb94e3cd30be3 | 36f35c612933fea931c44ca145ab834bb460579f | /CommonLibrary/Physics.h | fa3134656f1726ef042b897eb078fc2920d3bc36 | [] | no_license | lazyartist/Win32-Game | b498e0b5d3529f71b2591a9995057f618e8e089c | b790eef8329650cb4f8ff6767549466e49178fca | refs/heads/master | 2022-02-22T03:20:25.100857 | 2019-09-14T17:01:47 | 2019-09-14T17:01:47 | 195,375,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | h | Physics.h | #pragma once
#include "lib.h"
class CUnit;
static class Physics {
public:
static bool bEnable;
static vector<CUnit> *cUnits;
static vector<CUnit*> *pUnits;
static CUnit * TestCollision(const CUnit &cUnit);
static CUnit * TestRectCollision(const CUnit &cUnit, RECT *rect);
static void UpdateMove(CUnit &cUnit, co... |
865b862da2cc9a1c1e594637f1004e311962df55 | 59dda5170490a51d41b1d2e529a40063a60538ac | /com/osteres/automation/transmission/Transmitter.cpp | 917b8d8b934686b3ada78cb7c15664866315ee84 | [] | no_license | tplet/electronic-common | 12813f8cf44db2c17355e8228cb233c0a2a475f0 | 92a66fee684a354d84b7a6544a1c44a6e233dc7a | refs/heads/master | 2021-06-17T01:26:53.065152 | 2016-06-01T21:14:58 | 2016-06-01T21:14:58 | 71,062,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,626 | cpp | Transmitter.cpp | //
// Created by Thibault PLET on 04/05/2016.
//
#include "Transmitter.h"
using namespace com::osteres::automation::transmission;
/**
* Default ttl (in seconds)
*/
unsigned int Transmitter::defaultTtl = 1000;
/**
* Constructor
*/
Transmitter::Transmitter(RF24 &radio, byte sensor)
{
this->useDefaultTTL();
... |
ea4d8d28261b82d0f92c489578accfb4d213f4ae | 4aaafc16e282f86bdeaf730cddb579ff3c61787a | /src/qt/flirtcoinaddressvalidator.h | 0b1cd13d851cc7a1e93fba7f5202f01971dae4d9 | [
"MIT"
] | permissive | flirtcoin/flirtcoin | ebe9cce304641c9c7d873a210cc2f205d3017379 | 1bbaa7cef10b9db404095127fe6def859541b266 | refs/heads/master | 2021-01-13T02:23:21.720408 | 2017-12-12T07:40:08 | 2017-12-12T07:40:08 | 27,047,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | h | flirtcoinaddressvalidator.h | // Copyright (c) 2011-2014 The Flirtcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef FLIRTCOIN_QT_FLIRTCOINADDRESSVALIDATOR_H
#define FLIRTCOIN_QT_FLIRTCOINADDRESSVALIDATOR_H
#include <QValidator>
/*... |
ce72ce3d26d5ac7a3dfd215104f15285a02a5f09 | 0e6d6826a17be818e94c14d13bb4243d738860fd | /Terminal.h | e50d15f8bedf68f4576cf48138497de764102794 | [] | no_license | JD110225/TP2 | 4d5d6754b3befe1b1b2d8f89f37ba0a63e0aae0a | 21cb52f6571ef336cebb3db39d047535213300b9 | refs/heads/master | 2022-11-04T20:16:04.573809 | 2020-06-20T19:18:58 | 2020-06-20T19:18:58 | 270,121,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | h | Terminal.h | /**
* @file Terminal.h
* @author Eduardo Ayales
* @brief Esta clase se encarga de identificar y separar las instrucciones de la terminal
* @version 1.0
* @date 2020-06-19
*
* @copyright Free without any restriction
*
*/
#pragma once
#include "List.h"
#include <iostream>
#include <sstream>
#include <string>
#i... |
4f25001aa4db36bc2c2f07a5abd554aa973ca669 | 29af6d89fe8db3ec2145cc550ac714f169f310a8 | /ViewerWidget.cpp | e1e81e4c888a5e59b1026bafefda1be3302abf34 | [] | no_license | emma-qub/LEGO_CREATOR | 928ced542124faefbec08fb4e9c5622c06121981 | e48c6d2cfa02320b55ee14cdbea1d6748bb67c0d | refs/heads/master | 2023-04-07T15:42:05.672917 | 2013-06-24T14:17:24 | 2013-06-24T14:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,737 | cpp | ViewerWidget.cpp | #include "ViewerWidget.h"
#include <osg/MatrixTransform>
#include <QSettings>
#include <QDebug>
#include <QDir>
#include "PickHandler.h"
ViewerWidget::ViewerWidget(bool isWorld, osgViewer::ViewerBase::ThreadingModel threadingModel) :
QWidget(),
_isWorld(isWorld) {
setThreadingModel(threadingModel);
... |
cd1f0635f9524c759b6e59159b260b1dbf8dcad5 | acfc42e160b51343673a45c348ecdfd0b1ebabb9 | /codeforces/1800~1899/1839/b.cc | d4063e0cbfeca8ddd1790cc3a59e3866d6fdd674 | [] | no_license | kiddos/notes | 3209237921cd52600a07b62202661898a56cbed1 | 4ef828b94ef235b43be0840f735e2f23616847fc | refs/heads/master | 2023-09-01T01:46:38.987675 | 2023-08-19T14:05:46 | 2023-08-19T14:05:46 | 80,524,342 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cc | b.cc | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
int n = 0;
cin >> n;
vector<pair<ll,ll>> ab;
for (int i = 0; i < n; ++i) {
ll a = 0, b = 0;
cin >> a >> b;
ab.emplace_back(a, b);
}
sort(ab.begin(), ab.end(), [&](auto& p1, auto& p2) {
if (p1.first == p2.f... |
f609ec9d26f5d3def8bd57f78a2e509d4f0a3c67 | 135b6474ceba94cdf7886e90fe74c287ac5c4bf5 | /Rtd_Light.cpp | be3c3ca8abd5e428cb0cad1e7dda0f567e0ee1fa | [] | no_license | MITMotorsports/MY16_Dash | f321181c05a575f76f5cc45f975f8948acbb42a4 | ed3b2be6224dd91490534f0f79018f1b78ab15ae | refs/heads/master | 2021-01-21T14:44:16.653838 | 2017-01-28T19:01:59 | 2017-01-28T19:01:59 | 58,287,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | cpp | Rtd_Light.cpp | #include "Rtd_Light.h"
// shortcut macro
void set_rtd_light(bool status) {
digitalWrite(RTD_LED_PIN, status);
}
// Have to statically allocate these, otherwise they will
// be purged off the stack at function exit
bool light_swap = false;
void blinkRTD(Task*) {
set_rtd_light(light_swap);
light_swap = !light_swa... |
6e570cea2db8e754c93652bc0db82911f8d631be | 5cad8d9664c8316cce7bc57128ca4b378a93998a | /CI/rule/pclint/pclint_include/include_linux/c++/4.8.2/javax/security/auth/callback/ChoiceCallback.h | 80f4ccf2879cd2067c4ed272761f659c6aa08b4d | [
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"GPL-3.0-only",
"curl",
"Zlib",
"LicenseRef-scancode-warranty-disclaimer",
"OpenSSL",
"GPL-1.0-or-later",
"MIT",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"BSD-3-... | permissive | huaweicloud/huaweicloud-sdk-c-obs | 0c60d61e16de5c0d8d3c0abc9446b5269e7462d4 | fcd0bf67f209cc96cf73197e9c0df143b1d097c4 | refs/heads/master | 2023-09-05T11:42:28.709499 | 2023-08-05T08:52:56 | 2023-08-05T08:52:56 | 163,231,391 | 41 | 21 | Apache-2.0 | 2023-06-28T07:18:06 | 2018-12-27T01:15:05 | C | UTF-8 | C++ | false | false | 1,409 | h | ChoiceCallback.h |
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __javax_security_auth_callback_ChoiceCallback__
#define __javax_security_auth_callback_ChoiceCallback__
#pragma interface
#include <java/lang/Object.h>
#include <gcj/array.h>
extern "Java"
{
namespace javax
{
namespace security
{
... |
a2d1421c0a80e9a0ab1b4d4c1c445c625a678b15 | 41471c018e8b145e8434e35db0f2242f4a74c40b | /main.cpp | 3f58d1dff76d01fc2555258d0f812c08c82ea728 | [
"MIT"
] | permissive | liu675200/QEmbeddedMqttTest | 5c73ce2fa9fca1d65e1f521d21a4d9bf3bad9bb9 | ae78444a5214dd88416ba1054a3566873c1de90a | refs/heads/master | 2022-01-16T04:06:36.310353 | 2018-06-14T15:30:55 | 2018-06-14T15:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | cpp | main.cpp | #include <QCoreApplication>
#include "QSocketMqtt.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QSocketMqtt * mqtt;
mqtt = QSocketMqtt::GetInstance();
mqtt->setHostName("47.100.100.235",1884);
mqtt->test();
return a.exec();
}
|
a15e55b859be9245d6c59a318202b834c93a78bb | 8c18edbb0f8dffafe69616f2d822c933a12bfcdd | /characters/CustomCharacter.h | 074ce2bfb0ca8f61f03fddc6025333d59a18592d | [] | no_license | Dinh-SM/Polymorphism-Mario | 1127524e388efbd44d0d2f38912b30b6f4a6d7f9 | b153270a60743c77fb7181cf8f8df8bdfd0e7e19 | refs/heads/master | 2023-03-12T13:15:29.158263 | 2021-03-01T13:32:49 | 2021-03-01T13:32:49 | 343,420,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 920 | h | CustomCharacter.h | #include <string>
#include <iostream>
#include "Character.h"
class CustomCharacter: public Character
{
public:
// Constructor
CustomCharacter(std::string name);
CustomCharacter(std::string name, float max_speed, float acceleration, float break_value);
// Destructor
~CustomCharacter();
... |
3478bc76bf753c8c73a56f1cfae836c7b6bb2acd | c230fc6477ff9fb58518424ed67dc9ed39e9d21e | /interviewBook/sizeof/sizeof/sizeof/main.cpp | 935a3c13efabb36b17b31947caa9c6acd14b3bec | [] | no_license | MF1523017/interview | 7dee22b590606e716c66314ff0e20b2f42f5bd85 | e21d49cf59ad21424501ae05c710d76a9ba2eee7 | refs/heads/master | 2021-01-12T03:19:11.344408 | 2018-08-29T11:35:30 | 2018-08-29T11:35:30 | 78,186,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | cpp | main.cpp | #include"testSizeof.h"
#include<iostream>
using std::cout;
using std::endl;
struct A
{
short a1;
short a2;
short a3;
};
struct B
{
double b1;
char b2;
};
int main(int argc, char **argv)
{
cout << "A size is " << sizeof(B);
return 0;
}
|
4a927a43d04a9744c336fad42518c37eadc7c385 | fdba0138c41e24c875926479fbe6ea0c12d96c50 | /framework/agoraLocalAppHandler/src/framework.cpp | c76656be66c22c0934fb1a1c01e1e9692131ec03 | [] | no_license | Cris89/agora_framework | b3aa4e92c976ba2fd649d78964edf17fb886e863 | 365af3943d7ccc65340d32a35a65a6e8c63de8d3 | refs/heads/master | 2020-12-02T21:04:31.257422 | 2017-07-20T22:15:27 | 2017-07-20T22:15:27 | 96,254,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,783 | cpp | framework.cpp | #include "agora/framework.hpp"
#include <string>
#include <cstring>
#include <vector>
#include <iostream>
Framework::Framework( std::string name,
int numMetrics,
std::vector<float> defaultConf,
std::vector<int> features_idx,
std::vector< std::string > info,
int threadSleepTime ... |
7cff239dbbd72ab76fbbea3ccf9e911be4236f4e | e65cc7d3cda62ec9abfbbcc9b306eabef52a473f | /src/affine-function.cc | 32ffd83dcb750dd096b2aeaa0817f411c4bb5536 | [] | no_license | Constraint-of-Geometric/hpp-constraints | 1fc220df03b1f7060b37aae309e4eebc5cfa3563 | a875ff2b760210231f982d67d05dc74870585fe3 | refs/heads/master | 2023-05-11T01:29:17.099422 | 2021-04-13T11:47:26 | 2021-04-13T11:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,122 | cc | affine-function.cc | // Copyright (c) 2020, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-constraints.
// hpp-constraints is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation,... |
f52de7dc4e6f7c451e718b30bbf108ea399ceaa6 | 7e5e502b86efcc86a727a1b8263aeb7907558904 | /week-07/TempLoggerServer/temperaturedatabase.h | 9e36fb641678e6e02828307ff969759babbf4104 | [] | no_license | green-fox-academy/marsaltamas | 35bc5337ec86a91113ef712f3c9ef5c61a9700c2 | 72296e9eafea031b858bcf3a6bb9558be3b5358d | refs/heads/master | 2021-09-06T04:45:59.985738 | 2018-02-02T12:09:29 | 2018-02-02T12:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | h | temperaturedatabase.h | #ifndef TEMPERATUREDATABASE_H
#define TEMPERATUREDATABASE_H
#include <string>
#include <vector>
#include <iomanip>
#include <sstream>
#include <ctime>
#include <time.h>
#include "define.h"
#include <iostream>
using namespace std;
class TemperatureDatabase
{
public:
TemperatureDatabase();
~Tempera... |
1b9b3730b731ecf30c462047913f1e29d951393e | 73b958e9230a0ba5a59469ff4930ee29f281ccc9 | /source/Hashes/crc32.cpp | d5cfc2de90def57b6f88a8256d1a3eaaa120be35 | [
"MIT"
] | permissive | ghammock/Gash | c86a77b450edcef5d83cf5c0e4a20def7606d0e4 | 71afaa56f28a075a7801983f47c71fcbe45f4f12 | refs/heads/master | 2021-01-23T06:34:16.344752 | 2014-03-14T06:06:23 | 2014-03-14T06:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,344 | cpp | crc32.cpp | /******************************************************************************
|| crc32.cpp ||
||===========================================================================||
|| ||
... |
a1cfb2afad177f324ae1f1848cebb09310de6651 | 20b49a6ef1fa417d67abef2d29a598c9e41c478e | /CodeForces/1800- 2000/numbersExchange.cpp | dc965ebc3dac1c06e1c8b5f6f8553bfc17dc713d | [] | no_license | switchpiggy/Competitive_Programming | 956dac4a71fdf65de2959dd142a2032e2f0710e1 | beaaae4ece70889b0af1494d68c630a6e053558a | refs/heads/master | 2023-04-15T19:13:12.348433 | 2021-04-04T06:12:29 | 2021-04-04T06:12:29 | 290,905,106 | 1 | 3 | null | 2020-10-05T20:16:53 | 2020-08-27T23:38:48 | C++ | UTF-8 | C++ | false | false | 2,796 | cpp | numbersExchange.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define benq queue
#define pbenq priority_queue
#define all(x) x.begin(), x.end()
#define sz(x) (ll)x.size()
#define flout cout << fixed << setprecision(12)
ll n, m, a[200007];
map<ll, ll> occ;
void no() {
cout << "-1\... |
684143b3685edbf82d160227a01aca89de94a499 | b142ebe64aca95d1cee3d37d9867816a4cf92aa2 | /DefenseManipulator.h | ee7fdd43be20f7b1832b50593550904476812635 | [] | no_license | Gaelhawks-Team-230/FRC-team230-2016 | 3b7ea30331b12d5f2dc4af26da6d97cc0a301f43 | e965370f8c5f190f2736c4e4a7c9cc984b2fa0cd | refs/heads/main | 2023-03-10T12:16:47.974855 | 2021-02-22T18:39:41 | 2021-02-22T18:39:41 | 338,616,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,340 | h | DefenseManipulator.h | #ifndef DEFENSEMANIPULATOR_H_
#define DEFENSEMANIPULATOR_H_
#define ENCODER_PULSES (360.0) // Update with the amount of pulses on the encoder.
#define AT_ANGLE_DEADBAND (0.3) // The allowed amount of angle offset for the arm. (In degrees)
#define ARM_UP_SPEED (0.2) // Spe... |
b77cf45ca819dbb67cd27bfb5fbf996c31f6cef0 | f2a8aa5fe35755d8511f7fb95dddccef663b9dd8 | /source/QAbstractItemModelSlots.h | d23e80d803884a1af0d3d5603d1fbea055057aa9 | [
"MIT"
] | permissive | diegopego/Qt5xHb | 179fa9b2f6d7a9cccbda88ae6d05d8eb63732a76 | b214c0c88db989e9775b54c31e690ea36f45a071 | refs/heads/master | 2020-05-23T10:22:01.336221 | 2017-01-30T07:01:29 | 2017-01-30T07:01:29 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,561 | h | QAbstractItemModelSlots.h | /*
Qt5xHb - bibliotecas de ligação entre Harbour/xHarbour e Qt Framework 5
Copyright (C) 2012-2017 Marcos Antonio Gambeta <marcosgambeta@uol.com.br>
*/
#ifndef SLOTSQABSTRACTITEMMODEL_H
#define SLOTSQABSTRACTITEMMODEL_H
#include <QObject>
#include <QCoreApplication>
#include <QString>
#include <QAbstractItemM... |
78fdfd6d12813ca6e66c5c0704ff49369d70e2f5 | acff1e354047becf999e10154bac01dbf210cd4c | /Chapter-13-CopyControl/ex13.58-rvaRefFunc.cpp | 526a0b597ba48f14ceaa065189bf0be29a01b552 | [] | no_license | middleprince/CPP-Primer | e1f6440a6aa4c11d9f3b3b0b88579d2294d2ef53 | 345d99a4b3f41aab24598edc61a01b6f09f0ab61 | refs/heads/master | 2021-06-25T00:28:01.014655 | 2021-01-18T13:27:38 | 2021-01-18T13:27:38 | 189,856,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 730 | cpp | ex13.58-rvaRefFunc.cpp | #include <algorithm>
#include <vector>
#include <iostream>
using std::vector;
using std::cout;
using std::endl;
class Foo {
public:
Foo sorted() &&;
Foo sorted() const &;
Foo sortedLv() const &;
private:
vector<int> data;
};
Foo Foo::sorted() && {
sort(data.begin(), data.end());
retur... |
cc3df8f93ffc8c97e917f5fa19eeb76b26a19241 | d3e4dd7ec05f402310f2a6883997443fb6a0649e | /kattis/triangle_trilemma/TriangleTrilemma.cpp | 1e671df519618488377a5bfff4338d1d88ba1e82 | [
"MIT"
] | permissive | FredrikWallstrom/Kattis | 9e072fa99df5330bac449375f82cf307a4968cbc | aee103c8d97d2aba61dae59146a015ccb5a7a634 | refs/heads/master | 2021-05-12T00:18:36.733982 | 2018-03-23T11:32:28 | 2018-03-23T11:32:28 | 117,531,553 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,912 | cpp | TriangleTrilemma.cpp | /* -*- Mode: C++ -*- */
/**
* Author: Fredrik Wallström
* Date:
*
* Comments:
*
* Lessons Learned:
*/
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <sstream>
#include <map>
#include <set>
#i... |
67b0036be75da35c7d19410e93c2a79858e94770 | 4ca3f1e4170bb02f437111c89010d4b4a432d431 | /core/libmcxx/mcxx_dev232.cpp | bef690b7e48c9118357352243ba64df1cb659885 | [] | no_license | TSN-SHINGENN/libs3 | f2eb21b581b9db139b081ec4cdec0a23cea69d30 | b8e0d1989f2b45189c18d669faf5dfb921b3abd4 | refs/heads/master | 2023-02-02T18:46:12.370772 | 2020-12-02T02:49:23 | 2020-12-02T02:49:23 | 317,729,292 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 33,201 | cpp | mcxx_dev232.cpp | /**
*
* Basic Author: Seiichi Takeda '2013-April-17 Active
* Last Alteration $Author: takeda $
*/
/**
* @fn eia232.c
* @brief EIA232(RS232C)準拠 シリアルインターフェースでIOするための基本ライブラリ
*/
#ifdef WIN32
/* Microsoft Windows Series */
#if _MSC_VER >= 1400 /* VC++2005 */
#pragma warning ( disable:4996 )
#pragma war... |
45ed9e6966a6c83297a38e645064bf30b25d27eb | 2249ea163713b21f14fdf8784ba3ef3c0b540d1a | /lib/percy/percy/misc.hpp | 93c8c36be411eda4d4849b843c449b323c90d262 | [
"MIT"
] | permissive | lsils/mockturtle | 58c106fc957f17206e062b5428055778c68b4a69 | 82fce07b7204b14fc4c53fd35c284b7ea68f05fd | refs/heads/master | 2023-08-31T04:18:37.954364 | 2023-08-24T12:05:37 | 2023-08-24T12:05:37 | 131,001,448 | 159 | 80 | MIT | 2023-08-24T09:43:55 | 2018-04-25T12:15:49 | C++ | UTF-8 | C++ | false | false | 4,705 | hpp | misc.hpp | #pragma once
#include <algorithm>
namespace percy
{
inline unsigned binomial_coeff(int n, int k)
{
auto C = new unsigned*[n + 1];
for (int i = 0; i < n + 1; i++) {
C[i] = new unsigned[k + 1];
}
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= (std::min)(i, k); j++)
{
if (j == 0 || j == i) ... |
a3d08f00ab507e8f58e3caea92c1d5a65e002f7d | f470ef932b2272e8b97fa3a4437b4401a25e56a3 | /PSET3/fifteen.cpp | b74eb4a4df465613b100db9eaa851dde3503cf29 | [] | no_license | JaganKaartik/CS50 | 5fe2b9309537906b6dd2605cadcfbcd029879b77 | 13b116a617445b1343608645a5534b40093dd191 | refs/heads/master | 2021-11-10T13:05:25.841829 | 2021-10-31T21:16:18 | 2021-10-31T21:16:18 | 79,162,274 | 1 | 1 | null | 2018-10-31T17:14:42 | 2017-01-16T21:44:02 | C++ | UTF-8 | C++ | false | false | 1,756 | cpp | fifteen.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
char a;
void display(int array [3][3]);
void display(int array [3][3])
{
for(int i = 0; i < 3; i++)
{
for(int j = 0; j < 3; j++)
{
cout << " " << array[i][j];
}
cout<<endl;
}
}
int checka... |
d293880cfa60ebabc2caa588a1a82599897fb1fb | 55ad360a2f0111b9dc9fc8d351cda82cdc244401 | /Programming Paradigms/Dynamic Programming/Status[k]Type/BitMask/BJ14276_mycode.cpp | 5be7b83c0cfab4d3b057d126c6a988a260a42c38 | [] | no_license | SeungoneKim/algorithms | 6afc8823d6a96f91059b97d7f1081571f66d5d90 | 3fdc0a808eb22dc8c92630acb87ef34fe306d9ca | refs/heads/master | 2023-03-15T06:20:58.274880 | 2021-03-20T06:48:25 | 2021-03-20T06:48:25 | 323,091,647 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,007 | cpp | BJ14276_mycode.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring>
using namespace std;
int housenum, roadnum, k;
const long long mod=1000000007LL;
long long dp[30][31][8][1<<9];
int go(int num,int usedroads,int cur,int state){
if(num==housenum){
if(usedroads==roadnum){
... |
a7c98b48adf9359f3383686b9b049e2a22aaec3a | 133711d00b4f3949de09f8a39f5c50611d3afbed | /test.cpp | 460792762ee475816d09b77ffd64ce22108b6f34 | [] | no_license | kirklandnuts/alg-expression | 83915b3f255e0da8d563dedac3845a8e6ca27c10 | 333647da9beaa8005d4b6637118e4aa1d185e6e2 | refs/heads/master | 2022-10-05T09:47:41.078180 | 2017-12-07T02:39:07 | 2017-12-07T02:39:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | test.cpp | #include <cstring>
#include <string>
#include <iostream>
using namespace std;
enum operator_type{PLUS, MINUS, MULT, DIVIDE};
union data_type {
operator_type op;
char var;
int val;
};
int main() {
string out_str;
string infix_string = "henlo 123 uwu";
int index = 0;
while (index < infix_s... |
b707dfe553c565e34f27db8a2658617fefc0528b | 96c2fe5f82e839604de435128876b7ec23994108 | /google/2017/r1a/test/t.cpp | 339d226498f3219d1a1810c940b83409c00e1f20 | [
"MIT"
] | permissive | suhwanhwang/problem-solving | d9ed5521fdd670c4793d187116f489a82ee4a90d | cf71bd9545d13959462713bd6eabee05e88f40f3 | refs/heads/master | 2023-08-31T15:29:46.164871 | 2023-08-28T23:12:26 | 2023-08-28T23:12:26 | 199,259,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | t.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
string s = "???a???";
auto a = s.find_first_not_of('?');
for (auto it = s.begin(); it != a; ++it) {
*it = *a;
}
cout << s << "\n";
return 0;
}
|
f1d8c6e13ccf4af72bb9d72f8e31cf626ff7ca56 | 52b89a198018b4b3e6bcb4e76865d66521592106 | /SDK_EXAMPLES/callbackserivce.cpp | 48919b1044cd59f3e0b5566fb06409943230312d | [] | no_license | maisheng/document | 108633bc38902f54b1dee8e4ee5eda2e952db80a | a03c5167738c7e601336377c0c22ef54e757cec8 | refs/heads/master | 2020-04-10T03:07:03.894424 | 2018-12-07T06:25:50 | 2018-12-07T06:25:50 | 160,761,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,104 | cpp | callbackserivce.cpp | #include "callbackservice.h"
#include "SSX_SDK.h"
#include <iostream>
#include <string>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QVariantMap>
using namespace std;
using namespace ssx_sdk;
CallBackService::CallBackService()
{
}
CallBackService::~CallBackService()
{
}
i... |
78d43ec416f8418cb861b78ba8dfcbe7232f50ae | ead0f3f313bdd574545794b0c372eca6bbca9830 | /11277_2-SAT.cpp | 3cbe00f492bccf9d3ecced9e620149202f4c3434 | [] | no_license | tomcruse/algorithm | fe237ea40d6c29add4b124b84f8714f846a8e385 | 3029b7ea498c9b63c145f5d5bda26dfd7a17a447 | refs/heads/master | 2021-06-23T00:23:38.983751 | 2017-08-19T17:14:56 | 2017-08-19T17:14:56 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,524 | cpp | 11277_2-SAT.cpp | #include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
using namespace std;
int n, m, stack[20020], top, id[20020], currentid, groupid[20020];
vector<int> from[20020];
vector<vector<int> > scc;
int neg(int x) {
if (x > n) return x - n;
else return x + n;
}
int traverse(int node) {
id[node] = ++curre... |
84a0f2491821ab01165c3bbfd7e7d87a3efddf8e | 4200fe4e9d62fbcf51e563b83a22c4273fcec801 | /17503 Filip Trajkoivc LAB 3 - MinHeap/BinarniStatickiHeap.h | e5a7c2d90a46aac15b2e64b1d8bd082e0b0e3a1a | [] | no_license | MrFICAX/StrukturePodataka | f918c2da57a29a50bd7d527cb48aa4dfa54441cb | c3621ddef3e9c90f317340ef30276a94cd78ef68 | refs/heads/master | 2023-03-29T07:40:30.888589 | 2021-04-05T16:39:50 | 2021-04-05T16:39:50 | 354,895,754 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | h | BinarniStatickiHeap.h | #include <iostream>
using namespace std;
class BinarniStatickiHeap {
private:
int* niz;
int velicina;
int brojEl;
public:
BinarniStatickiHeap();
BinarniStatickiHeap(int);
BinarniStatickiHeap(BinarniStatickiHeap& tmp);
~BinarniStatickiHeap();
void dodaj(int );
void brisiKoren();
BinarniStatickiHeap* Kopij... |
72e225a0ff49c4e8f2e8e079052a9a78fd89f804 | b0d5dae9dc4f1543ca9eb5ce6fe5eb7796ae930d | /serial_client/collidecharm_impl.h | 592dfc0e321774de32d0b6b0340f70f3fa19787f | [] | no_license | rserban/charm-collide | b61d7671627f66293ec4ff428ef5bedea84e7bd2 | 5e553cfc961c759d754f0c0bcb3d13dfb9b2ecf6 | refs/heads/master | 2021-01-10T04:26:03.470169 | 2016-01-29T10:19:51 | 2016-01-29T10:19:51 | 50,524,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,141 | h | collidecharm_impl.h | /*
* Parallel layer for Collision detection system
* Orion Sky Lawlor, olawlor@acm.org, 4/8/2001
*/
#ifndef __UIUC_CHARM_COLLIDECHARM_IMPL_H
#define __UIUC_CHARM_COLLIDECHARM_IMPL_H
#include "collide_serial.h"
#include "collide_buffers.h"
#include "collidecharm.decl.h"
#include "collidecharm.h"
/******************... |
2639e5b65231e4d3dfea0eca6a2ffff221c16da8 | 2b4cc3a50855efd249431436fe78550804edcd79 | /ValidateBinarySearchTree.cpp | 7ef1b24a8906b12b2fbf4cfe2b2b60bf117d0c6e | [] | no_license | 15831944/Leetcode-5 | 47ed9cc68f36162859655ffe88dc87277d5ee689 | 74478380c389fc7e7455a8b2324ea70f4d1b2c96 | refs/heads/master | 2023-03-17T23:02:25.445977 | 2016-02-16T14:58:57 | 2016-02-16T14:58:57 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,040 | cpp | ValidateBinarySearchTree.cpp | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int TreeMinimum(TreeNode *root) {
if(root == 0) return 0;
while(root->left != 0) r... |
8f2336fc6154e536c082dae29157cdacf8feb27f | 5427d0ca578cef28a94d84516066de071844fc24 | /ENIGMAsystem/SHELL/Universal_System/Extensions/Paths/pathstruct.h | cffaddc9fb4f42a53a52d3ba61599dc32d21cc86 | [] | no_license | DatZach/enigma-dev | 3ef2c535d0879b4f5bcee281d1f399ac29119b29 | 59c0fe37d85108f3f2a72a9cd72e0a330a7fa616 | refs/heads/master | 2020-12-25T00:03:00.614985 | 2013-07-02T21:30:22 | 2013-07-02T21:30:22 | 11,116,400 | 1 | 1 | null | null | null | null | ISO-8859-13 | C++ | false | false | 3,185 | h | pathstruct.h | /********************************************************************************\
** **
** Copyright (C) 2011 Harijs Grīnbergs **
** ... |
7ed2a6302bc0612d62749f8ef09accb2be6c313a | dc9a2be763fe2f2cc92489127eab8111c2a394e3 | /Charpter14/header/ConstStrBlobPtr.cpp | 030f1981b756b9f263da010f06473b4b5e4e6c8d | [] | no_license | songxinjianqwe/CppPrimerCode | ddfe45ab4632e528821839c40f40e9b933cd30dc | ae7c36057c9dc4fd289bb3de3bf40a9574ebd41d | refs/heads/master | 2021-01-20T07:46:31.085643 | 2017-05-02T14:00:47 | 2017-05-02T14:00:47 | 90,040,443 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 565 | cpp | ConstStrBlobPtr.cpp | /*
* ConstStrBlobPtr.cpp
*
* Created on: 2016年9月16日
* Author: songx
*/
#include "ConstStrBlobPtr.h"
#include <vector>
const string & ConstStrBlobPtr::operator*() const {
auto p = check(currIndex,"dereferences past the end");
return (*p)[currIndex];
}
const string * ConstStrBlobPtr::operator->() const... |
f55c48dcb5be1cf73d8ef543d264b66d72743a71 | b0ca83cdf7396e4d53640e6bcd61021c3f868699 | /oopl-qcc/examples/c++/Copy.c++ | 9034abd7fd8ab2bbacac115ddd38da10bbfcc20b | [] | no_license | us0627/cpp_class | 773303ee4dae213549aa1e57ac0714ceea84ff3f | d35f28f0d33349d09b6cbaf8c956663e80493339 | refs/heads/main | 2022-12-29T07:42:49.623866 | 2020-10-15T17:11:03 | 2020-10-15T17:11:03 | 304,384,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,129 | Copy.c++ | // --------
// Copy.c++
// --------
// https://en.cppreference.com/w/cpp/algorithm/copy
#include <algorithm> // copy, equal
#include <cassert> // assert
#include <iostream> // cout, endl
#include <list> // list
#include <vector> // vector
using namespace std;
void test0 () {
const int ... | |
a7a8f8904c08857fc657a10ab9161bf10998cffd | c6feee44be6c8bf2f55a0df161bb6445a7468974 | /labs/algorithms/1.5 binary_search_tree/F.cpp | fdc54d74f2e0404dbbeb6b4cb655a8020d95ed1e | [] | no_license | Halasas/MyCode | 4b6bc741fffe60b860f2d9046c95e6c6f026a364 | 8c1df8c7be78c7a6f05b62f8cbaa1d477c426567 | refs/heads/master | 2020-03-14T00:20:27.926948 | 2018-05-09T11:37:42 | 2018-05-09T11:37:42 | 131,354,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,465 | cpp | F.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <ctime>
using namespace std;
#define TASK
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegi... |
f8b7163d9adddb0b078bf51742dc4e0bfe6934c2 | fce78f99cc60a07752f31467f2ef04ff2723470a | /hpc/include/hpc/drivers/system/apple.h | 3bfb7c534f120881e8bd36aee7238d8a2230834e | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LorenzoLaneve/humanplus | 816996213956e820b26c3bf9b93ec1f86d03f6b5 | 0abb30712499e6af3073c225f5653f11839e4706 | refs/heads/master | 2021-10-02T22:22:27.164745 | 2018-12-01T20:59:11 | 2018-12-01T20:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,398 | h | apple.h | // => hpc/drivers/system/apple.h
//
// The Human Plus Project
//
// This file is distributed under the University of Illinois/NCSA
// Open Source License. See LICENSE.TXT for details.
//
//
#ifndef __human_plus_compiler_system_drivers_apple
#define __human_plus_compiler_system_drivers_apple
#inclu... |
fd937d38105028ce07c7a511e29d2b756807662c | dc4f02f6cab3edadf54cc2f8d5cd88c308937714 | /Tugas 3 Pointer dan Array No.3.cpp | db78493727f3f74545e3c1d9e2ecbf8d6040d978 | [] | no_license | 13020190271/Zulham-Jaya-Syafar- | 8bc8fbecaaaf4f6cdcfedef32445c1a26a5044b6 | abadfcee3ac341ef974d618f58a46624092812b2 | refs/heads/master | 2022-04-25T04:12:33.873825 | 2020-04-17T12:57:56 | 2020-04-17T12:57:56 | 256,492,879 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | cpp | Tugas 3 Pointer dan Array No.3.cpp | #include<iostream>
using namespace std;
void susunan(int *q){
int p[3][3]={{2,4,6},{8,10,12},{14,16,18}};
int x,y;
int z=1;
int *pa;
pa=p;
for(int a=0;a<=8;a++){
cout<<(a+1)*2<<" ";
}
cout<<"\n";
for(x=0;x<3;x++){
for(y=0;y<3;y++){
cout<<"Nomor dus "<<z++<<" : "<<p[x][y]<<endl;
}
}... |
bb29867535c2a00d15426945d9fba87a91934295 | 6df7c00ab1d309f769ea429719151add11d69f5e | /src/LCM/problems/MechanicsProblem.cpp | 80eea37061378a9d8d4f138b77290a64699644e5 | [
"BSD-2-Clause"
] | permissive | yangyang14641/Albany | 7e1af3c2f8d85686226aafad53b2aed25a1d8b3b | 572de52e682e925998cad37fb195afb0c66db02c | refs/heads/master | 2020-03-22T17:32:51.173450 | 2018-07-09T23:38:08 | 2018-07-09T23:38:08 | 140,401,192 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,766 | cpp | MechanicsProblem.cpp | //*****************************************************************//
// Albany 3.0: Copyright 2016 Sandia Corporation //
// This Software is released under the BSD license detailed //
// in the file "license.txt" in the top-level Albany directory //
//**************************************... |
034e2a74bc16d8391d0273889ab33a6ccc86c61f | 75f26c2678a8c16899ae58a07879a7e3c6d2d36a | /Kernel/tExpressionTranslator.h | 7b58b05c20680f402b37939e1ee7a9e45bd3a828 | [] | no_license | tweag/factplusplus | ce94e4c87e52e9f1353e34043319592bed2d7bb9 | d7f377351d82ea5243262538e43ddc4f0312ecdf | refs/heads/master | 2021-05-01T04:20:52.485504 | 2016-09-16T07:06:52 | 2016-09-16T07:06:52 | 75,384,013 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,706 | h | tExpressionTranslator.h | /* This file is part of the FaCT++ DL reasoner
Copyright (C) 2010-2015 Dmitry Tsarkov and The University of Manchester
Copyright (C) 2015-2016 Dmitry Tsarkov
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softwar... |
5295c6d763299e023532b6736d362ef9670849f6 | a7fb12245e8c5666649693d6e48ca9d51ecd37d5 | /lib/test/misc/test_string_utils.cpp | b560c55f3951e154beef5b22c2cc6fe833c37e1f | [] | no_license | cclienti/veriparse | 21e41d61e0c07a25b858f3deb4c2ec469fbc854e | 1badf4a00a4a3b42977048f8b89a0d83e6dd351a | refs/heads/master | 2023-07-23T08:53:08.974320 | 2020-05-11T06:45:53 | 2020-05-11T06:48:12 | 300,704,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,085 | cpp | test_string_utils.cpp | #include <gtest/gtest.h>
#include <veriparse/misc/string_utils.hpp>
#include <veriparse/logger/logger.hpp>
#include <vector>
#include <list>
using namespace Veriparse;
TEST(MiscTest, StringUtils_escape) {
Logger::remove_all_sinks();
Logger::add_text_sink("MiscTest.StringUtils_escape.log");
Logger::add_stdout_sink... |
bd116d93bf34384b331bad751115d94aa430fdc7 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir35435/dir38969/dir39970/file39971.cpp | f8fc836d8710015a9273a9d75bd6f48cee0b0de8 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file39971.cpp | #ifndef file39971
#error "macro file39971 must be defined"
#endif
static const char* file39971String = "file39971"; |
2fdc3d8f924497965ff2ca48f46ce1b22ea74e2a | 91da9f11c3fbb2713016823c927404e4e4b61f24 | /DailyCoding/Day42.SubsetSum.cpp | 48c8f7d78bc784671b23331d66c09e5d9a0e2c1f | [] | no_license | Yael-Estrada/Club_Algoritmia | 0615c36067cead9e69067dd2a50cbf73a108f40a | 0460d75e399e16ae0f4386cf1913dcd1a7f74543 | refs/heads/master | 2020-04-23T14:12:14.607457 | 2020-01-24T05:05:57 | 2020-01-24T05:05:57 | 171,223,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | Day42.SubsetSum.cpp | #include<bits/stdc++.h>
using namespace std;
bool subsetSum(int act,int k,vector<int> &nums,vector<int> &ans){
if(k==0){
return true;
}
if(k<0) return false;
if(act>=nums.size()) return false;
ans.push_back(nums[act]);
bool b=subsetSum(act+1,k-nums[act],nums,ans);
if(b) return b;
ans.pop_back();
b=subsetSum... |
8cb7e5e7c72f02469b19f7d58057215dbb73231b | 65a596d7700d303ea356cbe9f0f81d4d76899970 | /Sept4/3.cpp | bc74e095bde0ebaac8c58bedcfe19ecbd5d8344a | [
"Apache-2.0"
] | permissive | s10singh97/OOPS_Lab | b155ef71e74728d9b2472b21bed3c7838f6214f1 | af77c5f53f8a7b449ba25de2ed5b0181f6f6dc9c | refs/heads/master | 2020-03-25T09:30:22.878956 | 2019-03-29T17:50:16 | 2019-03-29T17:50:16 | 143,672,427 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | cpp | 3.cpp | // Copy Constructor
#include<iostream>
using namespace std;
class Test
{
int a;
public:
Test()
{
a = 3;
cout<<"\nDefault Constructor\n";
}
Test(Test &t1)
{
a = t1.a;
}
void show()
{
cout<<a<<"\n";
}
};
int main(int argc, char const *argv[])
... |
4a863c8bff88da432e3e2b7dbea9fc757aac1f3c | e96a195d790859f10c82c8bb2e66b6e67e215c2e | /Netflix/Date.h | 28696f8f1c88b648441d0c632add8b1a85a29cec | [
"BSD-3-Clause"
] | permissive | MertDundar1/netflix-master | 93a2037742db4144c444b7db2ea0c94b293cc547 | 3df29218592b585c86c68abad30d71903faee7c3 | refs/heads/master | 2022-02-03T05:10:15.458532 | 2019-07-30T00:55:48 | 2019-07-30T00:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | Date.h | #ifndef _DATE_H
#define _DATE_H
#include <iostream>
using namespace std;
class Date {
public:
const int DAY_MAX = 31;
const int DAY_MONTH_MIN = 1;
const int MONTH_MAX = 12;
const int YEAR_MIN = 1970;
const int YEAR_MAX = 2019;
Date(int year = 1970, int month = 1, int day = 1);
void setDay(const int day);
vo... |
829cb7e900e87b1c7eb5a9c3a1a9e6bd85683fe4 | d493276f3a09b6f161b9d3a79d5df55f48a0557c | /2020_KAKAOBLIND_No5.cpp | 9f25352038d7eef03e9279a3ea209ccf84930b4c | [] | no_license | AnneMayor/algorithmstudy | 31e034e9e7c8ffab0601f58b9ec29bea62aacf24 | 944870759ff43d0c275b28f0dcf54f5dd4b8f4b1 | refs/heads/master | 2023-04-26T21:25:21.679777 | 2023-04-15T09:08:02 | 2023-04-15T09:08:02 | 182,223,870 | 0 | 0 | null | 2021-06-20T06:49:02 | 2019-04-19T07:42:00 | C++ | UTF-8 | C++ | false | false | 3,262 | cpp | 2020_KAKAOBLIND_No5.cpp | #include <iostream>
#include <string>
#include <vector>
#include <cstring>
#include <algorithm>
using namespace std;
const int MAX = 1e4+5;
vector<vector<int> > answer;
int jordiMap[MAX][MAX];
bool comp(vector<int> & p1, vector<int> & p2) {
if(p1[0] == p2[0]) {
if(p1[1] == p2[1]) return p1[2] < p2[2];
... |
8a6dcbd9e3d037fdeb8b0e08548c30e7b82715e9 | 65a42cb047358e191e93da92ad87ef39b3a95bb5 | /testing.cpp | 9dec0d5d104b3d185945a7191d0eae68c8c222ed | [] | no_license | marcus-elia/prime-city | c58a1848b6b7b076aba7833eb5add87678b87fef | c2676beab573129b9e853124d984001ac1e38bda | refs/heads/master | 2022-12-03T16:00:18.079229 | 2020-08-02T13:16:28 | 2020-08-02T13:16:28 | 266,095,410 | 0 | 1 | null | 2020-06-30T22:18:01 | 2020-05-22T11:36:59 | C++ | UTF-8 | C++ | false | false | 33,575 | cpp | testing.cpp | #include "recPrism.h"
#include "cylinder.h"
#include "frustum.h"
#include "chunk.h"
#include <experimental/optional>
#include "mathHelper.h"
#include "testPathFinding.h"
bool testIsAboveLine();
bool testCorrectRectangularCrossSection();
bool testCorrectRectangularPrismCollision();
bool testCorrectEllipticalCrossSec... |
ce5aa12568d62cccbd78b11e18edea4be85bcc94 | 890a0d3b20266612ca6b728abe2a95c03a8a68de | /include/Locomotion/ZHM5LocomotionInput.h | 85f0106ba476de6112b0a42819219c1a7f837159 | [] | no_license | pavledev/HitmanAbsolutionSDK | 377c8a6cd1c115e2e446ddefbdbafc8cd03c05a2 | e3e4b09da4b9ae9b6cc6117be5ff24479fb6134e | refs/heads/main | 2022-07-28T11:57:34.434004 | 2021-09-29T11:48:32 | 2021-09-29T11:48:32 | 337,443,029 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | h | ZHM5LocomotionInput.h | #pragma once
#include "ZEvent2.h"
#include "ENetworkControlParam.h"
#include "ZMapEaseToState.h"
#include "ZMapPoly.h"
struct float4;
class ZVariantRef;
class ZHM5LocomotionInput
{
public:
ZEvent2<ENetworkControlParam, ZVariantRef const&> SetControlParameterEvent;
float m_fSampleTime;
float m_fMoveDirX;
float m_... |
8b4cd12aff5a39e8eb1bc9e0eb3c0caac1825a85 | c94e8b5d962964a083e3c0d3847690d14c61fc57 | /codeforces/858/C.cpp | 3ac135c52c97e1287b7fb91d007a8e88e0180a0f | [] | no_license | Intruderp/Codeforces | 01f045bec9ac991427a7bbbc356cb30d2e622af1 | 7b902d4fc34c1f2316e0bf780c64b42f6086d45e | refs/heads/master | 2023-07-01T12:41:19.869053 | 2021-01-02T12:14:00 | 2021-08-06T12:12:08 | 393,272,416 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,667 | cpp | C.cpp | #include<bits/stdc++.h>
#define vi vector<int>
#define pii pair<int,int>
#define vpii vector<pair<int,int>>
#define F first
#define S second
#define mp map<int,int>
#define ump unordered_map <int,int>
#define ll long long int
#define pb push_back
#define mod 1000000007
#define int long long
#define all(v) v.begin(),v.e... |
21a8ee97b852fc00eebe4673cf5a063e368b578e | 6682a617bc207aaab74f5d02036c58c804052cd7 | /jsprimes/prime.cc | 1b344276f4f6f32118f5a4de90ee65a13cf097f5 | [
"MIT"
] | permissive | thecoderover/javascript-native-tests | ca79b0e545ff8c76c3b87046abac93af2f35a91d | 11faa8e1ceb4b42e293a65b179e782845abc0c10 | refs/heads/master | 2020-09-10T05:21:12.655605 | 2019-11-14T10:11:45 | 2019-11-14T10:11:45 | 221,658,692 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | cc | prime.cc | #include <node_api.h>
napi_value IsPrimeInt32Func(napi_env env, napi_callback_info info) {
int n = 0;
size_t argc = 1;
napi_value argv[1];
napi_status status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL);
if(status != napi_ok) {
napi_throw_error(env, NULL, "Problem parsin... |
6ecbe92e99e9ba4c921100af6353236fde53e812 | f4faf9577e50be6328a1e05107610a9505945319 | /Practice/ch11/main.cpp | e1d792a697378df29a9e712d5d4d8246fab22e0c | [] | no_license | HuTongsama/learn | baa2e1b6fad540b4d8acc0544b42ae7d0bae0485 | 1c248969416b1795ea52ef3692fe62e33f8432c2 | refs/heads/master | 2021-04-28T16:52:46.762038 | 2018-10-06T07:03:34 | 2018-10-06T07:03:34 | 121,841,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | cpp | main.cpp | #include"wordTrans.h"
using namespace std;
int main()
{
ifstream map_file("map_file.txt");
ifstream input_file("input_file.txt");
word_transform(map_file, input_file);
system("pause");
return 0;
}
|
be50eba1e547ce04b836ae9f7808446fd67ae347 | aba2decaad7cf6c7eeb2d70c454a1c231e39a8bf | /Core/Core.cpp | 62d0ad9e51a7db0419ad79d47fbf34d2c111d00f | [
"Apache-2.0"
] | permissive | CasperTheCat/ImageTool | 29514ae5d2f7b23bcea0aa193de16ac01dbd3ac1 | dfa8b995848d2cd621cd6d4f3a442122cef4d199 | refs/heads/master | 2021-01-04T22:33:37.483662 | 2015-08-16T13:10:52 | 2015-08-16T13:10:52 | 39,348,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,370 | cpp | Core.cpp | // Core.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "BMP.h"
int main(int argc, char* argv[])
{
/*if (argc < 2)
{
std::cout << "Missing some args" << std::endl;
std::cout << "Syntax;" << std::endl << "EXE <FILENAME>" << std::endl;
return 1;
}*/
char* file_name_... |
0a04ae43d85295a69dba98b621b310ef6503bfff | e865328ec29b0c20338bf5e5d932aed4b8c7684d | /modules/vulkan/source/core/BufferManager/BufferManager.cpp | cb16a84cdc16b109d2453c1b5eaba4dc290f3b85 | [] | no_license | fromasmtodisasm/SRend | b6fbb2dea091fd57a97987494b69b73f2e58529b | 9770ec86cf4f59db39bd75b244bf20355af25839 | refs/heads/master | 2020-11-27T18:21:58.175915 | 2019-12-22T11:28:26 | 2019-12-22T11:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,103 | cpp | BufferManager.cpp | #include "BufferManagerImpl.hpp"
namespace vulkan
{
// buffer
// ------------------------------------------------------------------------------------------------
utils::size_t get_current_size(buffer buffer)
{
return buffer->size();
}
void cmd_copy(command_buffer cmd_buf, std::vector<buffer_copy_info... |
e23f220f30f48db256b23e3fcb574272b37d8f89 | 3c548dc9930dc21e8e328cdaf7275155fe7b25b5 | /KruskalMst.cpp | b9f478784ae99d75624014f04be40864b26d8d88 | [] | no_license | djglxxii/GraphAnalyzer | aa54539966c11b0fd6cb1561475afdb0cf6699b3 | f20c53f0bf7502d482f090c0a29c215973e15783 | refs/heads/master | 2020-04-19T01:30:25.521778 | 2019-01-28T00:13:16 | 2019-01-28T00:13:16 | 167,873,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,900 | cpp | KruskalMst.cpp | #include "GraphData.h"
#include "KruskalMst.h"
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/kruskal_min_spanning_tree.hpp>
#include <iostream>
typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS,
boost::no_property, boost::property<boost::edge_weight_t, int> > Graph;
... |
b687d9b07e3c4d414214a7ecf461cc41b2c17fa0 | d3704b96cbe8dfe70e5deddde55d243ce53113aa | /CrackingTheCodingIntervew4th/C3-StackAndQueue/stack.cpp | 379d79953fd91009bf34f9078f9379e15116fead | [] | no_license | usernamegenerator/books | eb5a2297d8dc77efe83b97746df56ea98a069bfc | bb145bba712e60fb573dfaba231300faf57c49da | refs/heads/master | 2021-03-02T15:51:11.454671 | 2020-03-08T20:18:03 | 2020-03-08T20:18:03 | 245,880,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | cpp | stack.cpp | #include <iostream>
using namespace std;
typedef struct Node{
Node* next;
int data;
}Node;
void push(int data, Node** head)
{
if(*head==NULL){
*head = new Node;
(*head)->next = NULL;
(*head)->data = data;
return;
}
Node *newNode = new Node;
newNode->data = dat... |
15c063509b3107ee9737066380ad8304d7b20102 | 22ba7d27e69b6681722966471f06c0877f749cfd | /KidnappedVehicle/src/particle_filter.cpp | 05da9874c0cb48456562343236ea113082c35d7a | [] | no_license | jsim2010/udacity-self_driving_car | 87f23cc287d18c63988ba54ad1e1e7bbee5e24d3 | 1c6551d50d099013a7ddd69421d5d1139668edd8 | refs/heads/master | 2021-07-30T04:27:06.348667 | 2021-07-26T18:53:24 | 2021-07-26T18:53:24 | 218,994,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,497 | cpp | particle_filter.cpp | /*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
s... |
ab33d49558642b5b195c497fa63dfa25bac4c8c9 | 6b42cc381638e4d93977b932b22a97267a354ad2 | /src/position.cpp | 7e310b54b3e6a34f6fb33e31fa0426bb5b0ce37f | [
"MIT"
] | permissive | kaprikawn/shoot | 6883443ada679e367e01a7ccb6040c8a7c2de84b | f07121a275e8c3aec1f66cbb6825951123371ccb | refs/heads/master | 2021-01-23T14:17:42.042695 | 2018-02-04T18:26:27 | 2018-02-04T18:26:27 | 93,250,476 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,103 | cpp | position.cpp | #include <iostream>
#include "position.hpp"
Position::Position( std::unique_ptr<ObjectData>& objectData ) :
coordinates_( objectData -> x, objectData -> y )
, drawPosition_( 0, 0 ) {
w_ = objectData -> width;
h_ = objectData -> height;
hb_l_offset_ = objectData -> hb_l_offset;
hb_r_offset... |
ac149d98654033b58e8cf2f1063a2a0a841b22f9 | fab9be84427c0039fdc496c32f7b48a4728b3739 | /ejercicios/Creacion de TADs/TAD Hoteles/TAD Hoteles/main.cpp | 13dad26bee2afc149eea7da67fd7b7d35b471882 | [] | no_license | pemaga12/ED | 5f7741acd7a76df581569a2b540aeda63e8f8690 | a3c6e6681091ac69b4e16528618a1a9c2c173ad6 | refs/heads/master | 2022-12-12T10:08:04.320739 | 2020-08-24T09:35:16 | 2020-08-24T09:35:16 | 263,992,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | cpp | main.cpp | #include <iostream>
#include <string>
#include "hoteles.h"
using namespace std;
void alojar(Hoteles<string, string> &h);
void desalojar(Hoteles<string, string>& h);
void buscarHotel(Hoteles<string, string>& h);
void listadoHoteles(Hoteles<string, string>& h);
void listadoHuespedes(Hoteles<string, string>& h);
int ma... |
117a7ba2a3e28276dce4f09d52249beaffa20ba3 | 4382d3914cd5290bd677bb2520f383e5aa81af4d | /dj19/set20192.cpp | ca2178c252c2707f1b4b4e14b0a262bd1af16175 | [] | no_license | x0t1c-01/Fondamenti-c- | 42fc4af316a6e424d0930c2bc3da27eb8e75494e | 33f25e98d591594977def00df489272e6877210c | refs/heads/master | 2023-01-27T16:52:54.437265 | 2020-11-06T21:12:29 | 2020-11-06T21:12:29 | 310,065,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | cpp | set20192.cpp | #include<iostream>
#include<climits>
using namespace std;
int main(){
int n,k,a[100];
cin>>n;
for(int i=0;i<n;i++){
cin>>a[i];
}
cin>>k;
int max=INT_MIN;
int somma=0;
for(int i=0;i<n;i++){
if(n-k+1==i)
break;
else
for(int j=0;j<k;j++){
somma+=a[i+j];
}
if(somma>max){
max=somma;
... |
b83c0b7618b4001430b7d3fc0cf59d384f5c4609 | 7c71410d765d366a388d940c7859538c3b916198 | /SSAM219J.cpp | 7e31f778f06752032e9cfeb0adaa36b4d1ea9244 | [] | no_license | dinhtai1104/SPOJ_PTIT | 790f8474682e7c8d1a90f01bdd55aa697000897d | e7aef29eda3b0dea6ae5a833810f0a70d4ea4423 | refs/heads/master | 2022-12-03T22:27:23.397741 | 2020-08-26T16:00:07 | 2020-08-26T16:00:07 | 290,542,452 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cpp | SSAM219J.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll sum[200005];
ll binsearch(ll a[],ll l,ll r,ll x,ll gt){
while(l<=r){
ll mid =(l+r)/2;
if(gt-a[mid]<x){
r = mid-1;
}
else if(gt-a[mid]==x){
return mid;
}
else{
l = mid+1;
}
}
return -1;
}
int main(){
ll test;
cin>>test;
wh... |
c7e1f3df1f5be852b8d94e563833dafbd99b8ace | d976eb3bf136ec04c2287cc196c22a8a3a1081eb | /sln/spoj-67.cc | a44f7321abed80a40ce34b91c7c6711f75674f97 | [] | no_license | idemura/codecon | 4060995ae5ece108c1ee18a10a71b21cf03306ef | 4dcd966c5c52618903e643303c791ab7e700553f | refs/heads/master | 2020-04-22T01:08:32.407524 | 2019-12-22T07:58:33 | 2019-12-22T07:58:33 | 170,004,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,022 | cc | spoj-67.cc | #include <algorithm>
#include <assert.h>
#include <ctype.h>
#include <functional>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define ARRAY_SIZEOF(A) (sizeof(A) / sizeof(A[0]))
#... |
b587c1a213cf1703e69af0c6bc7522c5130c5fde | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/linalg/constants.hpp | 5e339920dcd70633ed0ab19659ee3210c8b3c478 | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 93 | hpp | constants.hpp | #ifndef NT2_LINALG_CONSTANTS_HPP_INCLUDED
#define NT2_LINALG_CONSTANTS_HPP_INCLUDED
#endif
|
de12727be65d136f34d3c88a77e801c8c32df90b | 2ffe9108ee2cdf8b2920322e74e4b29a2bd4acfe | /atmega-meteo-board/src/hw/serial/Serial.hpp | b8ff199941af1db447edf2fd5844c2b808a14003 | [] | no_license | marcmos/atmega-meteo | 94be0e127e1eaa2988702e268e32236fb52cdc1f | e2a9cc9cee1b394a631059bcfa97255f34e864ca | refs/heads/master | 2021-01-11T15:10:21.367225 | 2018-07-08T11:05:21 | 2018-07-08T11:05:21 | 80,304,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 99 | hpp | Serial.hpp | #pragma once
#include "UART.hpp"
class Serial {
public:
char read();
private:
UART uart;
};
|
e47f534f134950b65841c690bf8c621c6cd11b18 | 1da5007666b3297ebcc15aad22f7074631aa5371 | /cpp/gpusim-fe/gpusim-fe.Calibrator/CalibrationProfile/SettingCalibrationInfo.cpp | 3e7c6a3d7efc6a61b4fba9d1295c24d9076cd8f5 | [] | no_license | mespinach/gpusim | 7cac5285a7dcbd3a2aea461283eb333d5e7b9dd7 | b47313c1b551fca50283851f0955333575beb844 | refs/heads/master | 2020-07-30T12:06:36.122446 | 2016-03-17T09:54:13 | 2016-03-17T09:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,188 | cpp | SettingCalibrationInfo.cpp | #include "SettingCalibrationInfo.h"
#include "../../QLogger/QLog"
#include <QStringList>
//////////////////////////////////////////////////////////////////////////
static void checkVariants(const QVariant &left, const QVariant &right);
static bool operator > (const QVariant &left, const QVariant &right);
static boo... |
546babcd3fab7ab0b05632bd2cc8d7b7a4b7e348 | c88738a085d26d902d154217e168f8eb83ae2441 | /12_Monte_Carlo.cpp | cef5261e278a4b5065e6b3ccbdd0ca6bf8769a87 | [] | no_license | yuwenyan/ComputationalPhysics | a1658f27292eb7cbaca84babc71f7fc6015c3159 | f5a26dd4980827dfb3f69305941d9fab230631f2 | refs/heads/master | 2021-01-17T00:38:55.834291 | 2016-07-11T05:44:30 | 2016-07-11T05:44:30 | 61,469,762 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 980 | cpp | 12_Monte_Carlo.cpp | //---------------------------------------------
// Monte Carlo balancing process
//wyu
//vc++ 6.0
//---------------------------------------------
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <stdlib.h>
double frand();
int main()
{
int t,i,j,m,n[25000],N=10000,s[10000];// t is tmc
double x,y;
m=1... |
b9ac19608a8e55edf654bb455ec1865609dbe897 | 3b3e2dfca7bf9ad84a94fa5d60c181b4681cd3db | /learngit/helloworld.cpp | 9c644f49653b14575001011fd35d48921ea6fd1f | [] | no_license | HeXueming/learngit | c9204256dd55359bfa8a49840ca1ebf8b6cd8f0c | 98d37f6fb0c7359967113f4e389e7133fccbc13b | refs/heads/master | 2020-05-20T20:25:24.897365 | 2019-05-09T07:23:39 | 2019-05-09T07:23:39 | 185,743,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | cpp | helloworld.cpp | #include <iostream>
using namespace std;
int main()
{
cout << "hello world" << endl;
cout << "i love you , tayler" << endl;
int b;
}
|
c70f22bc46d1250043f73df1737f56254a7d5098 | e5eac9101884566c92481a475cca13786a23516b | /ATM_card.h | 27b8e96e0d2945dea1452b978d585fda19be2bb4 | [] | no_license | mittal-ankitm/ATM-SYSTEM | e7827f749bb371fc95c5e278a7123660c1b8e210 | 426e484be70e124bfa465078ef8c0da5c4b124c6 | refs/heads/master | 2022-11-04T21:57:04.893063 | 2020-06-30T20:36:22 | 2020-06-30T20:36:22 | 276,199,867 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | h | ATM_card.h | #ifndef atmcardh
#define atmcardh
class ATM_card{
private:
int PIN;
long card_no;
long acc_number;
public:
ATM_card(long,long,int);
ATM_card();
void set_PIN(int);
void write_PIN(int);
int get_PIN();
long get_cardno();
long get_accno();
};
#endif
|
e303259d2efd183152464398059a71faf03546f5 | 28ea54a68b4bd8f4225a33484db0dddabbe91a2c | /source/Classes/NetWork/OnlineNetworkManager.cpp | 9cd984fe1eed3ea96ea502194ad014177418c469 | [] | no_license | cash2one/hellopetclient | fad7374899a1c0bb04581caa517586ae8fb124ab | f87e47cd946858f8fe5bae6ea2bbc13b43d912d4 | refs/heads/master | 2020-12-24T11:52:38.157993 | 2015-12-26T17:07:23 | 2015-12-26T17:07:23 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 38,978 | cpp | OnlineNetworkManager.cpp | // TAOMEE GAME TECHNOLOGIES PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Taomee Game Technologies and may not
// be copied or disclosed except in accordance with the terms of that
// agreement.
//
// Copyright (c) 2012-20... |
55c6c3196ea3324886946a9162ef7cf2c948ddf4 | 4b192ec98a8105478800e78d17878b4a087f0c00 | /Milib/R_M_F/F_NMAXDG.CPP | 945de1a8a1779bc183afc6e1b0e6cd5f498f6ca1 | [] | no_license | Jhongesell/IntegraDOS | f4594909e9f67a2328b328e03a7cd40e6a436d10 | d8a9128908d956398f6c153e245763f787859984 | refs/heads/master | 2020-04-25T02:23:26.586444 | 2017-04-13T07:26:56 | 2017-04-13T07:26:56 | null | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 856 | cpp | F_NMAXDG.CPP | // Autor: Antonio Carrillo Ledesma.
// R.F.C.: CALA-691229-TV5
// Dirección: Amsterdam 312 col. Hipodromo Condesa
// Teléfono: 5-74-43-53
// Propiedad intelectual, todos los derechos reservados conforme a la ley, registro en trámite
// Revisión 1.1-A
unsigned int f_n_max_dias_mes(const unsigned i... |
60fc01d7f98dfb8d0c12095470f2af37f7010039 | 6348d74840a7a248b795a20587a5e25aa701e11f | /MEGA_2560/Thumb_Stick_Test/Thumb_Stick_Test_Switched/Thumb_Stick_Test_Switched.ino | d1937976c53a24731e46214a85d5138022f10f10 | [] | no_license | Dalamar86/Arduino | 8818c93782fdcca88a9fe41164f9482d96d3d562 | 8f941017d09aea92dcba762913e5154460ff6312 | refs/heads/master | 2021-01-01T06:42:20.618540 | 2017-07-17T15:27:48 | 2017-07-17T15:27:48 | 97,490,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,314 | ino | Thumb_Stick_Test_Switched.ino | /*
By Robert Wilson
17 July 2017
*/
const int Switch_SPST = 25;
const int Switch_12V = 45;
const int Switch_LED = 50;
const int Key = 30;
const int Blue_LED = 12;
const int Red_LED = 13;
const int Yellow_LED = 11;
const int Green_LED = 10;
const int Thumb_Stick = A0;
const int Thumb_Stick_2 = A1;
#include "Mouse"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.