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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2329fdd604661cfffa5337310df5b5cc9558ff4 | d04b7ee933b9b0dd151aa6f5cd6967fe0adcbe92 | /LeetCode_problems/Linked List Components/solution.cpp | 5bff43a93a3c1cd4f31eca2f59a0fd93ff00a2c3 | [
"MIT"
] | permissive | deepak1214/CompetitiveCode | 69e0e54c056ca7d360dac9f1099eaf018d202bd0 | 1e1449064dbe2c52269a6ac393da74f6571ebebc | refs/heads/main | 2023-01-04T11:36:03.723271 | 2020-10-31T20:44:34 | 2020-10-31T20:44:34 | 308,840,332 | 4 | 0 | MIT | 2020-10-31T08:46:15 | 2020-10-31T08:46:14 | null | UTF-8 | C++ | false | false | 2,210 | cpp | solution.cpp | #include<bits/stdc++.h>
using namespace std;
/*
-----------LOGIC-----------------------------------
In the question we are given a set G and a linked list
which may contain values which may or may not belong to G.
We need to find the nubmer of components present in that list.
A component here is defined as those nodes... |
15d041d6dc4af892b4bb7d70f2454368d2aa74be | 5c371843f2a8e99fbdaa81b1f25d924c5ef4074b | /lib/floor.h | 608b47d078338f9b88a477d10810488894645136 | [] | no_license | alexn1st0r/the_lift | 8cd9ce0cda21bef7d8983ced06c730de1dca0216 | 0f89ce48a5fc28fb14281a474645638a279a18c4 | refs/heads/master | 2022-06-08T15:32:07.382693 | 2020-05-06T19:06:46 | 2020-05-06T19:07:15 | 261,799,740 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | h | floor.h | #ifndef FLOOR_H_
#define FLOOR_H_
#include <iostream>
#include <vector>
#include "human.h"
class FloorQueue {
private:
std::vector<Human> m_humans;
std::vector<Human> m_humans_up;
std::vector<Human> m_humans_down;
int m_floor;
public:
FloorQueue (std::vector<int> humans, int floor);
~FloorQueue ();
inline boo... |
3fd851fd2bded3ad7af624d3210e0f511c2afa26 | 8647138abceab67757e89d8f6332ac949946bc95 | /3DMath/3DMath/3DMath/TriMesh.h | 36266485ceda438a122f4ebff01896e9e8e8f1c4 | [] | no_license | skmioo/SkmiooStore | 18ef8f4e329cd82a4a73d75f641145f5faf95fd9 | 2928f75aece1df56235ade83e1b5705a665a8e67 | refs/heads/master | 2023-07-02T01:24:24.788657 | 2023-06-14T07:33:14 | 2023-06-14T07:33:14 | 156,471,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152 | h | TriMesh.h | #pragma once
#include "EditTriMesh.h"
class TriMesh
{
public:
void fromEditMesh(const EditTriMesh &mesh);
void toEditMesh(EditTriMesh &mesh)const;
};
|
d3bcd3af06244ab6458a526ca8f9ff15ff3fab02 | 2e6ceacadfa7289cb085e749d8397fdc4c212080 | /Assignment/userRole.h | 32569cffa49dba16fedd6740560828e97085c27a | [] | no_license | emerald84/Assignment-1 | 1b9b67d2470b2186bc9485d8a50ae296dfc17dfb | f21907744c31c006a5b7b40cbc9df505b213addd | refs/heads/main | 2023-05-14T19:05:22.635408 | 2021-05-31T21:56:28 | 2021-05-31T21:56:28 | 372,636,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | userRole.h | #include <iostream>
#include <cstring>
#include "carddeck.h"
#include "cardgame.h"
#include "gameFunctions.h"
#ifndef _USER_ROLES_H
#define _USER_ROLES_H
using namespace std;
int menu(int DECKSIZE);
int displayCards();
#endif |
4f433aea77714fcd3903025798c75702506741bd | c7272e93df5e9f68c36385308da28a944e300d9d | /29. Divide Two Integers.h | 4c8b58b15569fcc46860c9d5ab3af16af3b75bd0 | [
"MIT"
] | permissive | Mids/LeetCode | 368a941770bc7cb96a85a7b523d77446717a1f31 | 589b9e40acfde6e2dde37916fc1c69a3ac481070 | refs/heads/master | 2023-08-13T13:39:11.476092 | 2021-09-26T09:29:18 | 2021-09-26T09:29:18 | 326,600,963 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 851 | h | 29. Divide Two Integers.h | //
// Created by jin on 5/17/2021.
//
#ifndef LEETCODE_29_DIVIDE_TWO_INTEGERS_H
#define LEETCODE_29_DIVIDE_TWO_INTEGERS_H
using namespace std;
class Solution {
public:
int divide(int dividend, int divisor) {
if (dividend == 0 || divisor == 1) return dividend;
if (divisor == -1) {
if (dividend == INT_MIN) ret... |
97ef21299c66dc2e99873847426d87d1d3e9c43e | 6f714dbab92f0507f13aa582fa992277e42c1777 | /Plugin/openvas/OpenVasMgr.h | 1edbd5cf1359e4d44da46508f3f4ce20c46082f0 | [] | no_license | sinzuo/bluedon-soc | 90d72b966ace8d49b470dab791bd65f0d56d520e | 809b59888de2f94b345b36ae33afacdbe103a1dd | refs/heads/master | 2020-09-20T17:54:20.882559 | 2019-11-28T02:27:16 | 2019-11-28T02:27:16 | 224,552,658 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,473 | h | OpenVasMgr.h | #ifndef _OPENVAS_MGR_H_
#define _OPENVAS_MGR_H_
#include "common/BDScModuleBase.h"
#include "config/BDOptions.h"
#include <time.h>
#include <stdarg.h>
#include <stdio.h>
#include "OpenVas.h"
//配置文件结构
typedef struct OpenVasConfigEx {
char chLog4File[100];
int nModuleId;
char chModuleName[... |
707938a16eb0f4c1076c9627f60c51f923e873e1 | 5f183915dac91a5a89be52351a6b112a20d26ede | /Source/mediaOutputBase.cpp | 4abb57ff9533e71ce544c01e47c737793ce22333 | [] | no_license | nameisshenlei/littlesurprise | aa1d2c7f4a6a9e1d2d2a5c8d2b22c2e3a4385396 | 7d8de018700b92341395d9e2f1e974ae43c12516 | refs/heads/master | 2021-01-19T21:40:38.892429 | 2017-04-19T01:23:32 | 2017-04-19T01:23:32 | 88,685,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | cpp | mediaOutputBase.cpp | #include "mediaOutputBase.h"
gstMediaoOutputBase::gstMediaoOutputBase()
{
}
gstMediaoOutputBase::~gstMediaoOutputBase()
{
}
bool gstMediaoOutputBase::createOutput()
{
return true;
}
void gstMediaoOutputBase::destroyOutput()
{
} |
a2c5f9c055bec58b3f1419c0df09ba8dc364e90b | 3dfc7473a0c86c745dcea6cbc203d72ae297c54a | /Correction/client/Player.h | b2cf92923bb4414ac83b6a4ff6cd8083f7dc9615 | [] | no_license | floriangomore/projetfinal | fae877d645f7a794f3da5e3f658613c7fe4490f5 | ab1db5b461ab7a58fd741d968c460a1b4639fd65 | refs/heads/master | 2021-01-10T11:41:47.815690 | 2016-02-08T10:39:08 | 2016-02-08T10:39:08 | 50,998,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | h | Player.h | #ifndef PLAYER_H_
# define PLAYER_H_
#include <string>
class Player
{
private:
std::string m_name;
public:
Player();
~Player();
const std::string& getName(void) const { return (m_name); }
bool play(int *);
};
#endif // PLAYER_H_
|
a57853dc9b50aeb0d1c20ff7036d99b0c9db9a5b | 664fe982b706d78af36fb3713f12f29e4cae36ce | /src/prerequisites.h | 1c79fcea1e6a5bbcb4ce5db84319e6ff81277095 | [
"MIT"
] | permissive | k0zmo/evmc | 2189de42bcf40ee49aacd247c186519f0744dc22 | e5d87d5c2cccdf766db2ed90f324e5e14d786ca2 | refs/heads/master | 2020-12-02T00:58:57.438810 | 2017-01-27T21:39:42 | 2017-01-27T21:39:42 | 66,192,691 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,689 | h | prerequisites.h | #pragma once
#include <algorithm>
#include <cstdint>
#include <ctime>
#include <fstream>
#include <iosfwd>
#include <memory>
#include <new>
#include <numeric>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
using byte = std::uint8_t;
using word = std::uint16_t;
using dword = std::uint32_... |
001358dd56b9649d11f8fb27a3540a976d3794d1 | 558bae1119ce3752ba90733e898227baea82e8fc | /advantech/sample/Linux-x86/trek572/IMC_SUSI_IVCP_SAMPLE_CODE/sensor.cpp | 46aefb7bd986d297e72dffc9595fa36044c42672 | [] | no_license | nanoadmin/nanotracker | 8cefbcf9dbd1b2bf42da286522a04e7040da9a68 | c6ab25a87b567467adf5ee5b86619ce3aff8e81e | refs/heads/master | 2021-01-16T00:56:47.634547 | 2019-09-24T06:30:45 | 2019-09-24T06:30:45 | 99,987,309 | 1 | 1 | null | 2017-09-28T00:17:14 | 2017-08-11T03:21:25 | Python | UTF-8 | C++ | false | false | 2,419 | cpp | sensor.cpp | #include <stdio.h>
#include "common.h"
#include "SUSI_IMC.h"
enum page_function{
SENSOR_READ_CPU1 = 1,
SENSOR_READ_CPU2,
SENSOR_READ_SYS
};
static void show_welcome_title(void)
{
printf("IVCP SDK Sample -- library version:%s\n", library_version);
printf(">> Psensor Control Menu\n\n");
}
static void page_menu()... |
4143b56e9b4d17de3a70421ab5da66510efeb2bf | bd69e970435c511cfba7ec572715e881b5120994 | /unp_work/udp.cpp | 36d57f9164e7458460f9bc8946b2f1c4169d8eb7 | [] | no_license | jamnix/mywork | c8c605437dd5344aeb3c4a265171eae57a998252 | 7c2b6a75772e91578c997d6838c40e1697549cf3 | refs/heads/master | 2021-01-23T13:35:28.114450 | 2014-05-18T17:10:33 | 2014-05-18T17:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 800 | cpp | udp.cpp | #include "stdio.h"
#include "stdlib.h"
#include "sys/socket.h"
#include "string.h"
#include "unistd.h"
#include "arpa/inet.h"
short SERV_PORT = 8080;
int MAXLINE = 128;
void dg_echo(int sockfd, sockaddr* cliaddr, socklen_t clilen)
{
int n;
socklen_t len;
char msg[MAXLINE];
for(;;)
{
len = clilen;
n = recvf... |
9ae7afde6f3343ebc8691f01cff1670d701d9ad2 | e8d05dc3622c2aa60d9610548c7a671f11b6227e | /utils/src/stuff/stack.h | c3ef285e8d73a9ecb04acc4fdd4feaeaff06c944 | [
"MIT"
] | permissive | yarkeeb/rdo_studio | b69ec5a1e506e97dbd08f6233e298c5f0799e9ba | c7e21aa144bc2620d36b1c6c11eb8a99f64574ab | refs/heads/master | 2021-05-27T03:00:41.858923 | 2014-04-03T16:28:19 | 2014-04-03T16:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | h | stack.h | /*!
\copyright (c) RDO-Team, 2011
\file utils/stack.h
\author Урусов Андрей (rdo@rk9.bmstu.ru)
\date 12.02.2010
\brief
\indent 4T
*/
#ifndef _RDO_COMMON_STACK_H_
#define _RDO_COMMON_STACK_H_
// ----------------------------------------------------------------------- INCLUDES
#include <... |
6e942519e195881fa291fea147f0b14829098b9f | 37ada4f3b5cbd3a93bce52e8a09cbac88cdb9f70 | /Board.cpp | f690e378e8cc263299fe20582b43ee4c81ed9e81 | [] | no_license | mronfire/BuncoGame | 76c0e8f30cda3418619df7c0078def4db6042c08 | d301bd6539e2c22aa8bb5de3906c8634b4be08dd | refs/heads/master | 2020-04-06T03:54:53.082653 | 2017-02-25T21:22:02 | 2017-02-25T21:22:02 | 83,163,456 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,833 | cpp | Board.cpp | //
// Board.cpp
// Bunco
//
// Created by Howard Stahl on 1/27/17.
// Copyright © 2017 Howard Stahl. All rights reserved.
//
/***********************************************************
* PROGRAMMED BY : Mario Rodriguez
* STUDENT ID : 1596508
* CLASS : CS20A->T - 6 : 45pm
* PROJECT #1 : Bunco Gam... |
46266eb9e94d8a7ff89079b7548e4c2ae2b0fbd1 | b89713d68097057a25b2810936c215c260418794 | /include/camp/list/list.hpp | a65dccfa442d2c68cdd6f2f20769615c17156923 | [
"BSD-3-Clause"
] | permissive | resslerruntime/RAJA | 692cebc2bf598bc5ed35446aefbd8a41640a4844 | df7ca1fa892b6ac4147c614d2d739d5022f63fc7 | refs/heads/master | 2020-08-02T03:36:43.901036 | 2019-07-25T18:52:01 | 2019-07-25T18:52:01 | 211,222,428 | 1 | 0 | NOASSERTION | 2019-09-27T02:45:36 | 2019-09-27T02:45:35 | null | UTF-8 | C++ | false | false | 1,253 | hpp | list.hpp | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
98116e1ec2b3b3005bb5a2a04ba047b773dd64f8 | 66d18e8302467c600c3a5a7b1dd4ab7f33566df1 | /Calibration.h | a500e8f3c0d27f69863e8a3e48aa8c1f9bcfe361 | [] | no_license | gedemagt/bachelor | b1cef5faafd7ccaaee8bc82eb4f57f5d52a2d913 | 1385a5845801c423ce6be108d75a57564ae28201 | refs/heads/master | 2020-05-31T17:12:50.550322 | 2014-08-10T11:19:32 | 2014-08-10T11:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 804 | h | Calibration.h | #include"Selector.h"
#include"CalibrationClass.h"
#ifndef CALIBRATION_H
#define CALIBRATION_H
class Calib {
public:
Calibration Mg_Calib;
Calib(int state) {
ts = state;
Mg_Calib.LoadCalib();
};
~Calib();
void calibrate(Selector *s) {
Mg_Calib.Calibrate(s->Epad, s->E1, s->Ef, s->Nsfe, s->Nfe, s->Eb, s->Nsbe... |
50067d5eefa2b5f0e3c600ef44707e8782777c85 | ddb4faa321302addbd08d9cdd7f98da3181b4ab4 | /mp4stream.cpp | ebcde6d60a1293e79e390f87336ffc3925309b01 | [
"MIT"
] | permissive | eachowu/windows-mp4_date | bdcfb6ed207c589de60d160cd88a8ca1c3ac47d8 | 496ea1cc00dd9a981410460a2445d8586aa1b1b5 | refs/heads/master | 2021-12-05T10:16:29.134552 | 2015-06-22T00:30:07 | 2015-06-22T00:30:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,880 | cpp | mp4stream.cpp | /* mp4stream.cpp : network byte order layer on top of fstream for use with mp4 files
* Coert Vonk, in part based on
* https://github.com/macmade/MP4Parse
* for license see block below
*
* (c) Copyright 2015 by Coert Vonk - coertvonk.com
* Boost Sofware License 1.0, see below
* All rights reserved. Use of co... |
af602b04e9c0f3b2ffcf757f3e469a523135845a | cb6137c290a7b938d26a90618c0a2e199eb28ba7 | /Source/AttackRPG/RPGGameMode.cpp | b26e1d316974758d19b197002c84de1ba73919f4 | [] | no_license | q846236037/AttackRPG | b4554059f47bbb3039f07f88a6f379f70460fe40 | 00582ed7611fab17120cd5240e8b1ed5c47e1640 | refs/heads/main | 2023-03-26T23:21:28.886088 | 2021-04-01T11:53:09 | 2021-04-01T11:53:09 | 352,627,676 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 622 | cpp | RPGGameMode.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "RPGGameMode.h"
#include "GenericTeamAgentInterface.h"
#include "AttackRPG.h"
ARPGGameMode::ARPGGameMode()
{
}
void ARPGGameMode::BeginPlay()
{
//修改阵营比较关系
FGenericTeamId::SetAttitudeSolver([](FGenericTeamId A, FGenericTeamId... |
ee1303c753db1b0ad41cd8b0adbc69ae51c7dc79 | 90844f85fa32e83fec1e16fbe5eaf148cd18fa20 | /zoj-1041.cpp | 411aef7fc5ae9f177bd49e8fc03882d42a993564 | [] | no_license | kohn/kohn-zoj-sol | 517d871a771d49a3abb9ed76e440522df44c4b91 | 551b86db35d0f8c01f3d8a3a4676129cee3cdbcb | refs/heads/master | 2021-01-18T15:14:48.277509 | 2015-06-13T07:15:06 | 2015-06-13T07:15:06 | 36,655,559 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,220 | cpp | zoj-1041.cpp | //1041 gougou WA
#include <iostream>
#include <string.h>
#include <math.h>
#include <vector>
#include <algorithm>
#define PRE 0.000001
using namespace std;
vector< pair<int,int> >point;
vector< pair<int,int> >valid;
int x,y;
double r;
bool isContained(int i,int j)
{
//求叉积?是干嘛的?
int k=(valid[i].first-... |
188f9127cc675c407362091900ef6fba92ffd468 | a60ba5157b24f4060fa59e3aaf19c6cdc55bfb76 | /TAGGL/ARCEmu/tlb.h | 8ba70cd8543c44bbb09031134fdd3894d93d5a34 | [] | no_license | martinpiper/TAGGL | 88fddd5276803b572f5ad26a0161d444ab1dd6a5 | 2cbeb55567aa15f4a3aa302a436c4ad2d201a4b7 | refs/heads/master | 2021-05-24T00:53:25.132646 | 2021-03-18T15:58:59 | 2021-03-18T15:58:59 | 6,575,802 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,064 | h | tlb.h | /*************************************************************************
Copyright (C) 2002 - 2007 Wei Qin
See file COPYING for more information.
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 ... |
a723e3c96c05708fb761ea0aaaab8c6d14f1080f | 7b095c258340c02139d9a9b55d95bde6c90a40b0 | /Chapter 8/8_7.cpp | af145d4a30685fc1d12bfed55e1517ac8096d83f | [] | no_license | PhoenixDD/Cracking-the-Coding-Interview-6th-Ed | 3a5b6eb85b82331cb19a853b338af884cdb87ae3 | c58273feeb4de1145306c3839e0930107a599ccf | refs/heads/master | 2021-01-19T06:18:39.443174 | 2017-08-17T19:01:58 | 2017-08-17T19:01:58 | 100,635,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | cpp | 8_7.cpp | #include<iostream>
#include<string>
using namespace std;
string store;
void Permute(int start,string input)
{
if(start==input.length())
{
cout<<input<<endl;
return;
}
for (int i=start;i<input.length();i++)
{
swap(input[i], input[start]);
Permute(start + 1, input);
... |
886a791c066fe19b2fdbcf99845df3363e4d1ca5 | 970da6ca9414b505832a09840ef5e7bb652843e6 | /src/main.cpp | e73d9616753fcb5740b3f38d0fe06580ccad0310 | [
"MIT"
] | permissive | neonoia/Protoshop | fd9110bc515cc146679530970ea655172fc833cf | 66fb204554822e6da6416f495622a2b7d5be73ec | refs/heads/master | 2023-06-08T03:24:08.396180 | 2019-11-30T03:14:28 | 2019-11-30T03:14:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | cpp | main.cpp | #include <iostream>
#include "ui/imageviewer.hpp"
#include <QApplication>
#include <QCommandLineParser>
// #include "image/image.hpp"
// #include "image/exception.hpp"
// #include "adjustment/adjustment.hpp"
int main(int argc, char *argv[]) {
// try {
// // Image* img_lena = Image::load("./res/lena.bmp");
// ... |
f68877862c71f3a3c2253b7fb7fb66b20f139950 | d864aee02bc9e3588d8e70c708448374fb2387aa | /Contest/Duo/2017/2/C.cpp | aa9e2bcdb1c4120b7b8d63b4281758eba0b27320 | [] | no_license | BanSheeGun/Gun | 075ebf62891a0ab4db6ff5ca13e1ae0644248119 | 8a046a9c3eb56fb5e87897343f383253b1736694 | refs/heads/master | 2021-01-17T00:18:41.834830 | 2018-03-18T06:32:04 | 2018-03-18T06:32:04 | 44,953,535 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,478 | cpp | C.cpp | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
long long ans;
int N;
int b[250010];
int n, i, k;
inline bool cmp(int a, int b) {
return a < b;
}
int tree[4000000];
int change(int now, int l, int r, int ... |
5e7e9b794dacc5c389dc4033b847f373da4cdae9 | 9f1ca205ac37aeff004e5c4847b5c7d6e6973899 | /cplusplus/design_pattern/IteratorProj/bak/MyObject.cpp | 3ca70bda159ef550317ce86d4106974ad8dfc420 | [
"MIT"
] | permissive | ppddflyme/Design-Pattern | 68a7f80bdf6636daaccc4ffef041b4342a01b002 | 160741b81bc8a63bff0e3301394e6c3b3a526ae3 | refs/heads/master | 2021-06-24T20:41:56.681690 | 2020-09-30T03:11:36 | 2020-09-30T03:11:36 | 132,299,704 | 0 | 0 | null | 2020-09-30T03:11:37 | 2018-05-06T02:19:00 | C++ | UTF-8 | C++ | false | false | 177 | cpp | MyObject.cpp | #include "stdafx.h"
#include "MyObject.h"
MyObject::MyObject()
{
}
MyObject::~MyObject()
{
}
void MyObject::sayHi()
{
std::cout << "MyObject::sayHi()" << std::endl;
}
|
170ae9321e1dbdf0bcf1039fc8f0271f4d443836 | b395562252d598cef36dde4c6405c13b476d6e0e | /Stage.cpp | c967f75ba68de040e5728533b72954adc64d52b6 | [] | no_license | DragonChestnut/RPGGame-caster-_v0.36 | 02b59e3e869fe5644d6222c0a86f38959e29a48b | 2379fe607be1f93d3638adcd0abc048ccf434598 | refs/heads/master | 2020-03-21T14:39:49.396554 | 2018-06-26T01:48:33 | 2018-06-26T01:48:33 | 138,668,866 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | cpp | Stage.cpp | #include "Game.h"
#include "Xmodel.h"
#include "meshfield.h"
#include "camera.h"
#include "character.h"
#include "Billboard.h"
#include "scene.h"
#include "wall.h"
#include "input.h"
#include "shadow.h"
#include "GameUI.h"
#include "effect.h"
#include "Fade.h"
#include "Stage.h"
#include "Clock.h"
#inclu... |
5a92e4a2025bf39757dcbadb4d7b3b30c52ca00c | 90bd5ba5c2aa314c6a167f2955eff0d6ad8482dd | /Codeforces/CF608/C.cpp | ec14f54bc347dc7bbdc045709e7176b283f94971 | [] | no_license | Charly52830/Practice | d446811437a28ab915e4250a322734c28dd5ab33 | 8083542c60d055f0a9af2426c33ee17015e222f4 | refs/heads/master | 2021-07-05T10:53:48.083819 | 2020-12-15T01:06:22 | 2020-12-15T01:06:22 | 211,193,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | C.cpp | //https://codeforces.com/contest/1271/problem/C
#include<iostream>
using namespace std;
int main() {
int n,s_x,s_y,b,x,y,c1=0,c2=0,c3=0,c4=0;
scanf("%d %d %d",&n,&s_x,&s_y);
for(int i=0;i<n;i++) {
scanf("%d %d",&x,&y);
c1+=y>s_y;
c3+=y<s_y;
c2+=x>s_x;
c4+=x<s_x;
}
if(c1>= c2 && c1>=c3 && c1>=c4)
pri... |
770d25115aba620088fa198d77ec5f458a691a32 | 84a9cf5fd65066cd6c32b4fc885925985231ecde | /GDS2/Plugins/src/SceneEditor/Hierarchy.h | df509bd0a9a7618d2f3506e67df5b8567ee52087 | [] | no_license | acemon33/ElementalEngine2 | f3239a608e8eb3f0ffb53a74a33fa5e2a38e4891 | e30d691ed95e3811c68e748c703734688a801891 | refs/heads/master | 2020-09-22T06:17:42.037960 | 2013-02-11T21:08:07 | 2013-02-11T21:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,286 | h | Hierarchy.h | ///============================================================================
/// \note Elemental Engine
/// Copyright (c) 2005-2008 Signature Devices, Inc.
///
/// This code is redistributable under the terms of the EE License.
///
/// This code is distributed without warranty or imp... |
67e5f96eccf9cf7f9dfabeb1ab7e021315a52cdd | 991529a2e04b3dfc58eeafcb1fddbad8f7b6b6b0 | /Oscilloscope/Channel/ChannelList/ChannelAttributes/attributes.h | 7611d6d61e0bfcea9c3dda953ec654589ce94710 | [] | no_license | YegorR/Oscilloscope | 92ccd4e37a986ceddde1759427d156859bdbc838 | ff5a73afeab61a1d524e55c33c2b56efcc635093 | refs/heads/master | 2020-06-11T02:48:32.284805 | 2019-07-05T05:06:25 | 2019-07-05T05:06:25 | 193,830,284 | 0 | 2 | null | 2019-07-01T04:58:14 | 2019-06-26T04:37:09 | C++ | UTF-8 | C++ | false | false | 246 | h | attributes.h | #ifndef ATTRIBUTES_H
#define ATTRIBUTES_H
#include <QColor>
namespace oscilloscope
{
struct Attributes
{
QColor _collor = QColor(0,0,0,0);
int _lineType = 0;
int _lineWidth = 0;
};
}
#endif // ATTRIBUTES_H
|
c3403bb10e00abe00a7ede9f3d3b6feae264dce4 | eca634ce6477e5680987dfc6536f6fdd93c58db6 | /DeferredClient/CelSphere.cpp | a340a3a5e5f4f90c151bf67d87368e8e5b1c7c73 | [] | no_license | tectronics/surface-physics | ba2ed585406f9e9955aeabc6d343cedeb41c2f61 | f5f2af539aee7483ae28f4edec4b7b62edfa2d61 | refs/heads/master | 2018-01-11T15:03:08.166454 | 2014-10-02T19:44:33 | 2014-10-02T19:44:33 | 45,230,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,088 | cpp | CelSphere.cpp | #include "D3D11Client.h"
#include "CelSphere.h"
CelSphere::CelSphere() : D3D11Effect() {
Stars = NULL;
ConstLines = LatGrid = LngGrid = NULL;
sphere_r = 1e6f;
InitCelSphereEffect();
LoadStars();
LoadConstLines();
CreateGrid();
}
CelSphere::~CelSphere() {
for( DWORD j = 0; j < nbuf; j++ )
... |
97233775e969abc9c2c12ee69f27b34846928a39 | 6d9d0e262b045b1e889e0a45dfc247b067c9dad0 | /ofxLowLevelEventsExample/src/ofApp.cpp | f0ed2d255b4cfca21805c13a9ce17118a3c4f5b7 | [] | no_license | oxillo/ofxLowLevelEvents | 32451a3dc33f09becd150184f87a8267dd893bc5 | a69c7313a76aabd364b9328c9694f6ddd9c32f18 | refs/heads/master | 2021-01-09T20:33:03.734617 | 2016-05-28T20:44:53 | 2016-05-28T20:44:53 | 59,914,144 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,273 | cpp | ofApp.cpp | #include "ofApp.h"
#include "ofxLowLevelEvents.h"
//--------------------------------------------------------------
void ofApp::setup(){
// Center the window on the screen
screenSize.x = ofGetScreenWidth();
screenSize.y = ofGetScreenHeight();
windowSize.x = ofGetWidth();
windowSize.y = ofGetHeight();
windowCent... |
bfdfa23459c80d9dfc38274c665f1f0e24d7b535 | f32e5ba53a1777081c2bb6f041dc07f811c0b35d | /silvercreek/Faces.cpp | a17916757627a2d7f8dae07c90e4f4f25f1d8b6b | [] | no_license | terrymah/silvercreek | fd136c677cb5d270b8ea00d0373baecaa9895f01 | ccc7e96308e5f9fea6f0eb152e22adaf34e683bb | refs/heads/master | 2020-12-31T00:18:08.510139 | 2017-01-15T02:51:49 | 2017-01-15T02:51:49 | 45,081,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,035 | cpp | Faces.cpp | #include "Faces.h"
FaceDetector::FaceDetector() :
m_source(nullptr),
m_videoHandle(0),
m_active(false)
{
if (!m_cs.load("haarcascade_frontalface_alt.xml"))
throw std::runtime_error("Couldn't load haarcascade_frontalface_alt.xml");
}
FaceDetector::~FaceDetector()
{
if (m_active)
m_t... |
f47cde80f2a98aacf907e4bf6637a8ecd707b27b | 475897accc433baa4ab4b681b40193fa80276d6f | /Assignment-10/p39_temp/Source.cpp | 6a2b2169c737dd66cb3ad7dcfae2e6902a92c904 | [] | no_license | DangNguyen146/WeCode | aa1a136408df33510a4f3c677bbce629d557048a | 08f8fbe03f046aa3af29477af81a42a295dde557 | refs/heads/master | 2022-11-18T22:15:51.598818 | 2020-07-07T17:32:12 | 2020-07-07T17:32:12 | 277,856,916 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,238 | cpp | Source.cpp | #include<iostream>
using namespace std;
struct TNode
{
float Key;
struct TNode* pLeft;
struct TNode* pRight;
};
typedef TNode* Tree;
int insertNode(Tree& T, int x)
{
if (T)
{
if (T->Key > x)
return insertNode(T->pLeft, x);
if(T->Key<x)
return insertNode(T->pRight, x);
}
T = new TNode;
T->Key = x;
T... |
ae821559b77bfe2ce0e3d3119d4fdb21286e2060 | bef7d0477a5cac485b4b3921a718394d5c2cf700 | /ic2005/src/demo/wallz/ODEMarshal.h | 4abf31d7665771218b75193c8ec818b75f4de34e | [
"MIT"
] | permissive | TomLeeLive/aras-p-dingus | ed91127790a604e0813cd4704acba742d3485400 | 22ef90c2bf01afd53c0b5b045f4dd0b59fe83009 | refs/heads/master | 2023-04-19T20:45:14.410448 | 2011-10-04T10:51:13 | 2011-10-04T10:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,379 | h | ODEMarshal.h |
#ifndef __ODE_MARSHAL_H
#define __ODE_MARSHAL_H
//
// Data conversion between dingus and ODE
//
#include <ode/ode.h>
#include <dingus/math/Vector3.h>
#include <dingus/math/Matrix4x4.h>
#include <dingus/math/Quaternion.h>
typedef dBodyID TPhysBodyID;
typedef dJointGroupID TPhysJointGroupID;
typedef ... |
83dbb50211f95bcd8a3aa7735650d90c5dcf48e3 | a2135aba714109fe1e85633cd8e8e5e1f38b350a | /Test 3/Inherit/main.cpp | c82ff063a67bc24dfcf2a1aceb735cdd499b5853 | [
"MIT"
] | permissive | RPG-NJU/NJU-AdvancedProgramming | b353a8a83102fbcd39126abb48a7510c9f9edd8c | 6e680a384cac2b8a2404a1d9e6ab21ffe3c48877 | refs/heads/master | 2021-09-28T20:28:36.501102 | 2018-11-20T08:04:35 | 2018-11-20T08:04:35 | 154,761,388 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | main.cpp | #include "Body.h"
#include "Cylinder.h"
#include "ThreePrism.h"
#include "Cone.h"
int main()
{
Cylinder test1(4.0, 5.0);
test1.getArea();
test1.getVolume();
test1.printHeight();
Cylinder test2(4.0, 3.75);
test2.getArea();
test2.getVolume();
test2.printHeight();
return 0;
} |
bdafcc1fb3d70746acabbb427994bc3ca5e89e2d | 4829d700aef14cb58d588f93ad1f46e93b32becc | /AVulkan.cpp | e94a5e582c50e4e2a18a5fd302ff4f52e1eee449 | [] | no_license | Garciaj007/AVulkan | 465938ab1af010c6fa8af9904465f4c72b0f02e3 | 2bc317f958bb10538d2b52cb90cbe1456a0aba31 | refs/heads/main | 2023-01-22T13:38:43.108152 | 2020-11-16T18:00:26 | 2020-11-16T18:00:26 | 313,385,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,262 | cpp | AVulkan.cpp | #include <SDL.h>
#include <SDL_vulkan.h>
#include <vulkan/vulkan.h>
#include <optional>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include <set>
#include <assert.h>
// Global Settings
const char APPNAME[] = "VulkanDemo";
const char ... |
019736ed1f8f7cca12aabe047ca060329788ae51 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/libwebrtc/third_party/abseil-cpp/absl/debugging/internal/demangle.h | cf60f72f1d7faac421df4f04a51952650147c0b2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 344 | h | demangle.h |
#ifndef ABSL_DEBUGGING_INTERNAL_DEMANGLE_H_
#define ABSL_DEBUGGING_INTERNAL_DEMANGLE_H_
#include "absl/base/config.h"
namespace absl {
ABSL_NAMESPACE_BEGIN
namespace debugging_internal {
bool Demangle(const char *mangled, char *out, int out_size);
}
ABSL_NAME... |
6db7a0f9b656997bf71e4fb42660babb46efb7c7 | 29396c66f6aae81537b25c3b9e8d22ec2fbd57a8 | /Documentation/Software/RobotX-Simulation/vmrc_ws/src/vmrc/robotx_gazebo/src/light_buoy_controller.cc | 13497ffa06ae9bb99a32e4fd2af933f110c5f7bc | [] | no_license | riplaboratory/Kanaloa | 49cbbafb7235e5d185bb4522c4deca8a3fd2c087 | 36650e2daff733a55c6546ffb0ff083b57c8c1b8 | refs/heads/master | 2022-12-11T03:00:30.284107 | 2021-12-10T07:57:00 | 2021-12-10T07:57:00 | 121,706,694 | 11 | 14 | null | 2022-12-09T16:56:36 | 2018-02-16T02:11:52 | Jupyter Notebook | UTF-8 | C++ | false | false | 4,717 | cc | light_buoy_controller.cc | /*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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 appl... |
22d4796218a25dc84bf9337ec2d0f32695ef12b0 | 972623e5589ecdbe899090a8478623eec8ff8574 | /JuCssUI/CssControl.h | f657877f2baa633806584dfe05519cfedcb599a9 | [
"Apache-2.0"
] | permissive | yangshaoguang/jucpp | 65068a1b4b2d253e0d2a1c45c2aaee7b25d094cf | 46c40369af6d5d5688b48335d0d6be75d872c03a | refs/heads/master | 2020-07-17T10:38:39.345633 | 2016-06-16T05:39:40 | 2016-06-16T05:39:40 | 206,003,818 | 0 | 1 | Apache-2.0 | 2019-09-03T06:23:20 | 2019-09-03T06:23:20 | null | GB18030 | C++ | false | false | 842 | h | CssControl.h | #pragma once
namespace ju {
struct BorderParam : public _struct {
int Width,Style,Radius;
Color Color;
BorderParam() {
::ZeroMemory(this, sizeof(this));
}
};
struct Border : public _struct {
BorderParam Left, Top, Right, Bottom;
};
struct TextParam {
String Text,FontName;
int Style,FontStyle,FontS... |
deb6bb8d758519230e869eb263e87b0261175ff7 | 7244a83f759e0bd8eb24d2a487d908d4220d9154 | /10369 - Arctic Network.cpp | 91a1c3ae3edb098cdb68b6f920e590c3c8a8c46f | [] | no_license | SeyfertCode/SeyfertUvaCode | c92a435be637dc5e1d4bba01865acb2f43c9e95a | d8b44e30881a7847216053b20b8a2c5274439a7a | refs/heads/master | 2021-01-18T22:35:13.562131 | 2016-04-22T15:57:06 | 2016-04-22T15:57:06 | 23,531,556 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | 10369 - Arctic Network.cpp | #include<bits/stdc++.h>
#define MAX 505
using namespace std;
vector<int>v(MAX);
int find(int x){
return x==v[x]? x:find(v[x]);
}
void Union(int a, int b){
v[find(a)] = find(b);
}
struct Edge{
int x;
int y;
double d;
};
bool cmp(Edge a, Edge b){
return a.d<b.d;
}
int main(){
int c,s;
int N;
cin>>N;
while(... |
f45285b60a25dafb1190d0e7fea48d0b42881b2e | 8cd51b4885680c073566f16236cd68d3f4296399 | /skins/fluent2/QskFluent2Skin.cpp | 1b90f73288c8ddc8f2fdae442af762c52459deab | [
"BSD-3-Clause"
] | permissive | uwerat/qskinny | 0e0c6552afa020382bfa08453a5636b19ae8ff49 | bf2c2b981e3a6ea1187826645da4fab75723222c | refs/heads/master | 2023-08-21T16:27:56.371179 | 2023-08-10T17:54:06 | 2023-08-10T17:54:06 | 97,966,439 | 1,074 | 226 | BSD-3-Clause | 2023-08-10T17:12:01 | 2017-07-21T16:16:18 | C++ | UTF-8 | C++ | false | false | 66,072 | cpp | QskFluent2Skin.cpp | /******************************************************************************
* QSkinny - Copyright (C) 2023 Edelhirsch Software GmbH
* SPDX-License-Identifier: BSD-3-Clause
*****************************************************************************/
/*
Definitions ( where possible ) taken from
... |
438bef20acee56ca3382717563534c37409b0f83 | d8effd075768aecbf0a590804e6c94127954d01c | /noz/src/noz/Editor/Nodes/UI/AssetEditor/SceneEditor.cpp | de21cd472853a3f2b732346346f31ee03d81df46 | [] | no_license | nozgames/noz-cpp | 55c88e0ea92408433ca34399f31007418d46a063 | 0466c938f54edf846c01dd195ce870b366821e99 | refs/heads/master | 2022-11-24T04:20:51.348835 | 2020-07-30T21:42:48 | 2020-07-30T21:42:48 | 283,881,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,050 | cpp | SceneEditor.cpp | ///////////////////////////////////////////////////////////////////////////////
// NoZ Engine Framework
// Copyright (C) 2015 NoZ Games, LLC
// http://www.nozgames.com
///////////////////////////////////////////////////////////////////////////////
#include <noz.pch.h>
#include <noz/Serialization/JsonSerializer.h>
#inc... |
c0ed9e369a4da74efbf783f8da12c8fc4c8cfc13 | 0550a6655187cc7f2e23270782b29af786f2711d | /server/backends/sciBE/sciBE.cpp | 14f1872177c63e6c89a21afcb48d245d22d2c9bb | [] | no_license | SCIInstitute/dSpaceX | 01135cf2d034660de1c4a796b65244bbadac2a5b | 8176401859315824d278b642038032b99208fb53 | refs/heads/master | 2023-01-11T16:17:44.716002 | 2021-02-14T00:02:57 | 2021-02-14T00:02:57 | 101,233,360 | 5 | 2 | null | 2022-12-29T09:44:50 | 2017-08-23T23:28:24 | C++ | UTF-8 | C++ | false | false | 5,006 | cpp | sciBE.cpp | /*
* dSpaceX - sample dynamicly loaded back-end
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define getcwd _getcwd
#define snprintf _snprintf
#define PATH_MAX _MAX_PATH
#else
#include <unistd.h>
#include <limits.h>
#endif
#include <vector>
#include "util/DenseVectorSample.h";
#inc... |
349bca67a2518edeb723d2e643cc095e3ab19195 | b0e1e913b04dd5fc519e79b29f99a0d90a0367b5 | /dijkstra/display.cpp | a08e5cebd32698ff401d5e9d060ab6f18eaf2a07 | [] | no_license | WillH97/visual-algorithms | 48d3d3d6f38380a33bb10abd6645ac7f5d1b2593 | 830114628bcfd5519306bc6e246b279fb58699d6 | refs/heads/main | 2023-01-05T13:23:23.938911 | 2020-11-03T22:56:25 | 2020-11-03T22:56:25 | 307,209,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,999 | cpp | display.cpp | #include "includes.h"
#include "globals.h"
#include "structs.h"
void display( )
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0, 0, 0);
// draw a box for each wall point
for (int i = 0; i < pts.size(); i++) {
if ( pts[i].wall ) {
// draw box
glColor3f(0,0,0);
glBegin(GL_POLYGON);
glVertex2i( (pts[i]... |
3b3428ebb5dfebb7958d887cc7564830d4e4078d | 6bbcea857ff801abafc83a3cd8cf164f4cea15ae | /Libraries/Rendering/Caustic/Texture.cpp | 9fa2db1339f4ccfc12e78fc9ee73426d25e8a9c7 | [
"MIT"
] | permissive | pat-sweeney/Caustic | 3259d0bfd816c338902f1cfde9f9abc196fb8c11 | 683761c5e44964ee0cc726cebcf9feb9a95eee1c | refs/heads/master | 2023-07-06T06:51:04.962968 | 2023-06-26T05:36:32 | 2023-06-26T05:36:32 | 144,092,641 | 2 | 0 | MIT | 2022-12-08T03:57:28 | 2018-08-09T02:44:59 | C++ | UTF-8 | C++ | false | false | 14,318 | cpp | Texture.cpp | //**********************************************************************
// Copyright Patrick Sweeney 2015-2023
// Licensed under the MIT license.
// See file LICENSE for details.
//**********************************************************************
module;
#include <memory>
#include <wincodec.h>
#include <objbase.h... |
d3a93a0fd3cf6799f6236fc0bb7ba305715dce5a | c566110212dd54bd3b38db0dcc5c4a3e5a3fdef7 | /arduino_sketchbook/out176_a2/out176_a2.ino | 8ceb342744c28483ada46eedb619a918e2c558fc | [] | no_license | pantonvich/HomeAutomation | b9dde8144b484d7dbd632222fbd497ec126f0297 | 8efdce6b6675b1adf01a52823dfc283157c81dcd | refs/heads/master | 2020-12-24T07:24:09.360552 | 2016-08-05T23:13:50 | 2016-08-05T23:13:50 | 64,971,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,552 | ino | out176_a2.ino |
#include <SPI.h>
#include <Ethernet.h>
#include <avr/wdt.h>
//#define FREERAM
#define DEBUG
//#define TEST
#define IP176
#define VERSION_BUILD 3
//#define IP177
//#define VERSION_BUILD 0
//#define TEST
//#define IP178
//#define IP179
//#define VERSION_BUILD 0
//#define IP180
#define ALERT_NONE 0
#define ALERT_WAT... |
5d786ad677b5bae1d6e1ded3729584b2ccba2fd2 | 26f3130ff66b93fa7328cdfbafb80686133ff695 | /Les 3/Boeken Stack/Boeken/Boeken.h | 39d467ec8bff114d795fa3e77b0bc56dd1f0841d | [] | no_license | LMichelle/Intro-OOP | 95f7eec5d6129ccd155a87d8bd451262634b1659 | e9e66f3c606d9515f442a087f15327f4b0f4bb2a | refs/heads/master | 2021-07-22T22:56:22.432299 | 2017-11-01T07:51:24 | 2017-11-01T07:51:24 | 103,917,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | h | Boeken.h | #pragma once
#include <string>
class Boeken
{
public:
Boeken();
Boeken(std::string type);
std::string _type = "onbekend";
~Boeken();
};
|
e1e128c215b89398476d6d7583bcfe09c20dd1ed | 780fb7751adb628c7f598fc3dfc4bf422911b987 | /ch04/thread_safe_que.cpp | c6b03ad1677b4d0c52c780ea030b38e4ec9d8e81 | [] | no_license | Aperjump/Notes-on-C-Concurrency | 1b2cabeec6e3bda44751b83d81a4e0a896cec07a | 05faa13c0206b1d61bac98f965a4299396cdfb8d | refs/heads/master | 2020-12-25T18:42:50.918173 | 2017-06-25T12:44:30 | 2017-06-25T12:44:30 | 93,979,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | thread_safe_que.cpp | /***
thread_safe_que
@C++ Concurrency in Action
***/
#include <memory>
#include <mutex>
#include <queue>
#include <condition_variable>
using namespace std;
template<typename T>
class thread_safe_que
{
public:
thread_safe_que()
{
}
thread_safe_que(const thread_safe_que& other)
{
lock_guard<mutex> lk(other... |
2ba7e3dce775207e5f182e6942ea8395d9cb6288 | 79f1cb095cc7623469bf2e11145e6972f0095be9 | /Sorting/3PartitionQuickSort.cpp | d3cbef106564196fe8fe82014abe35bea01559cb | [] | no_license | Shubhamrawat5/DSA | 161b9bb8138e6bead2709d343759aff39bbb3350 | 4d1fb52ae9f7cc568b4194b9caa8cf06a7b6d687 | refs/heads/master | 2023-01-03T05:03:55.373958 | 2020-10-30T19:45:26 | 2020-10-30T19:45:26 | 278,144,595 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 808 | cpp | 3PartitionQuickSort.cpp | #include<iostream>
using namespace std;
//swap function
void swap(int *x,int *y)
{
int temp=*x;
*x=*y;
*y=temp;
}
//taking 1st element as pivot then moving smaller value to left side of m1 and greater value to right side of m2 and equal element btw m1 & m2
int Partition(int a[],int l,int r,int &m1,int &m2)
{
int ... |
a8f1e1ee95868e893a52f0c3ae20012fd7585982 | a2e990761661bf454cf1887760d344971fdfca73 | /Bob/Attiny85/SoftSerialExample/SoftSerialExample.ino | 2b234d8da09647daafa8f8b5dd15e6d0f18e86ee | [] | no_license | Bob0505/sketchbook_1.6.8 | c0ca9e29383f966756662f56625ec7cc5ca6873f | b6d80b514fcef5afe9cb6951a4fd2f6a56e9c4e6 | refs/heads/master | 2020-05-21T04:33:26.648979 | 2017-01-07T03:55:47 | 2017-01-07T03:55:47 | 61,954,503 | 2 | 1 | null | 2017-01-11T00:08:26 | 2016-06-25T17:39:19 | C | UTF-8 | C++ | false | false | 2,100 | ino | SoftSerialExample.ino | /*
Software serial multiple serial test
Receives from the hardware serial, sends to software serial.
Receives from software serial, sends to hardware serial.
The circuit:
* RX is digital pin 2 (connect to TX of other device)
* TX is digital pin 3 (connect to RX of other device)
created back in the mists ... |
bdac8637b36bf732bccbd32a0c9a1e0afd9bd589 | 26ded7fd94d8a2281fd3c42100b82d5736014430 | /PYO/Other/i18n/mainLoad.cpp | e2f784b56631b6f3cf9e47dcccad9606a0d900b4 | [
"MIT"
] | permissive | danyow/PYO | 9192b2d017ea0b826ffaf7caf6eed1584ab3bc81 | 64b64020820cfef689123a69002c9252ade0306e | refs/heads/master | 2021-08-31T06:24:57.472135 | 2017-12-20T14:42:14 | 2017-12-20T14:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,755 | cpp | mainLoad.cpp | //
// Created by kaishiqi on 14-8-5.
// Copyright (c) 2014 kaishiqi. All rights reserved.
//
#include <iostream>
#include "I18nUtils.h"
USING_NS_I18N;
inline void output(std::string str) {
std::cout << str << std::endl;
}
int mainLoad()
{
const char MO_FILE_ZH_HANS[] = "/Users/imagons/Desktop/GitHub/PYO/r... |
f3a9d3e0dc0bba9c80812fc1600805e57176da1e | d8cabb3e0df24ac70ed78a7828291532c25fec55 | /UVA_1/r_167 - The Sultan s Successors(11).cc | 056c1cd210155da836549903e339d75fce3d6cd9 | [] | no_license | Bekon0700/Competitive_Programming | 207bb28418d49a2223efb917c7ddf07dfdf4f284 | ff93fdb2ada1bafabca13431bec7a78a9754e1b8 | refs/heads/master | 2022-10-16T09:38:13.865274 | 2020-06-08T13:12:34 | 2020-06-08T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,395 | cc | r_167 - The Sultan s Successors(11).cc | #include<stdio.h>
#include<math.h>
int pos[100][10],NO;
void MAIN()
{
int i,j,x,t,max,input[10][10];
scanf("%d",&t);
while(t--)
{
for(i=1;i<9;i++)
for(j=1;j<9;j++)
scanf("%d",&input[i][j]);
i = 1 ;
max = input[1][pos[i][1]] +input[2][pos[i][2]] +input[3][pos[i][3]] +input[4][pos[i][4]] +input[5][p... |
e2fb3c52f11f4fe285bf1e04b347170ab879abd2 | 4c214a64016cc838700025aebb9fddab1fbacf55 | /Il2Native.Logic/NativeImplementations/System.Private.CoreLib/System/Reflection/Emit/AssemblyBuilder.cpp | 9e861143619d27ea25e2d1623b86d39dc461b94c | [
"MIT"
] | permissive | Moxicution/cs2cpp | 73b5fe4a4cdbf1dcec0efcd8cae28ff2d0527664 | d07d3206fb57edb959df8536562909a4d516e359 | refs/heads/master | 2023-07-03T00:57:59.383603 | 2017-08-03T09:05:03 | 2017-08-03T09:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,160 | cpp | AssemblyBuilder.cpp | #include "System.Private.CoreLib.h"
namespace CoreLib { namespace System { namespace Reflection { namespace Emit {
namespace _ = ::CoreLib::System::Reflection::Emit;
// Method : System.Reflection.Emit.AssemblyBuilder.GetInMemoryAssemblyModule(System.Reflection.RuntimeAssembly)
::CoreLib::System::Reflectio... |
cf83a93cce909e997adea14dac34d642eb0f7cc7 | f92e96888be9d8569e29d05c7a329ee2dfbe53e6 | /src/pldensity.cpp | c37b8216e24dac7af3674b76e2876cc5ab746332 | [
"MIT"
] | permissive | nzunigag/pldensity | 66392736b4eb3fae9061bce3d337eedb6825435e | d4a0f6871bb2df9e7b6372505ac1eab30fc4ca51 | refs/heads/master | 2021-08-30T08:00:59.683241 | 2017-12-16T22:53:47 | 2017-12-16T22:53:47 | 113,084,792 | 0 | 0 | null | 2017-12-04T19:21:33 | 2017-12-04T19:21:33 | null | UTF-8 | C++ | false | false | 11,605 | cpp | pldensity.cpp | #define ARMA_64BIT_WORD 1
#define _USE_MATH_DEFINES
#include <RcppArmadillo.h>
#include <cmath>
using namespace Rcpp;
using namespace arma;
using namespace std;
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::plugins(cpp11)]]
// // This inline function creates one sample of multivariate t-distribution
// // [[Rcpp:... |
b95136459ea0ae9d9b6b87ea7be531bccff064b5 | 838f063e516b979364bdddb7a8604f9c3ff405d8 | /backend/actions/context.h | 3062c54d44e9290d1ee82437ad9f767c1915e135 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/cloud-spanner-emulator | d205193c7c3c265a47a822e1df574271c8522759 | 53eaa404d303fb2dc03f3b444553aa9bb24c3786 | refs/heads/master | 2023-08-29T12:33:41.780107 | 2023-08-11T08:15:10 | 2023-08-11T08:15:10 | 251,420,886 | 236 | 38 | Apache-2.0 | 2023-09-07T12:35:45 | 2020-03-30T20:28:25 | C++ | UTF-8 | C++ | false | false | 5,814 | h | context.h | //
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
ebab0736a1d04f0ac2a84563e1f37daf9daf1273 | 5a6fef4990838748dcc75153ec796e5067bffd8f | /TouchGFX/gui/src/model/Model.cpp | 2efc7e69cfa1e23358311a6f5fa827ffee9c5227 | [] | no_license | AdrianBesciak/STM32WeatherStation | b094035ee3cd74cf7f62e0e1fa21b890ab588682 | 51434a1c962f5c1cc47813993d6ef903b2e19e80 | refs/heads/master | 2023-05-06T09:19:07.511455 | 2021-05-27T19:03:26 | 2021-05-27T19:03:26 | 348,804,324 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | Model.cpp | #include <gui/model/Model.hpp>
#include <gui/model/ModelListener.hpp>
#include "ds18b20.hpp"
#include "weather.hpp"
Model::Model() : modelListener(nullptr), tick_count(0) {
}
void mockData() {
weatherForecast.status = static_cast<Weather_t>((weatherForecast.status + 1) % 5);
weatherForecast.temperature += 0.... |
1a0d0a862cf02a96c252d2254a20075b73821d05 | 2193e470633936c4fc65e11644d343d6ca1b0161 | /BullCowGame-starter-kit/Source/BullCowGame/BullCowCartridge.cpp | b7fc624469ad46da2f271c1dabe7c3f614caaf83 | [] | no_license | kamelCased/unreal-cpp | 6996f4aa26d6f0fad180a5cc466d977720314bdb | 9410e12509726f824eebed45940f38e5d84e9aa4 | refs/heads/main | 2023-08-17T18:22:14.569250 | 2021-10-22T19:24:11 | 2021-10-22T19:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,892 | cpp | BullCowCartridge.cpp | #include "BullCowCartridge.h"
// Start game
void UBullCowCartridge::BeginPlay()
{
if (FirstGame) {
Super::BeginPlay();
// load in words
loadWords();
}
// Set word and lives
SetGameParams();
// Instructions
PrintWelcomeMessage();
PrintLives();
... |
8ddeaca3e4040210835c17b7ced55914e5c3e818 | 5687fe3f0f9a8b81fdef8d309b34665ad95ae969 | /Threads/assignment4.cpp | 21aaf981608e2b6cce22b51ed41e1c5380981ddc | [] | no_license | asifrasheed6/CMP310 | b608e72e564102e6c58f890158bbb9ea087b99d2 | 3e8c4769da1c397419ea22786ddca73d8017e9cd | refs/heads/master | 2023-01-11T23:40:57.259889 | 2020-11-12T19:59:42 | 2020-11-12T19:59:42 | 299,400,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,102 | cpp | assignment4.cpp | #include<stdio.h>
#include<stdlib.h>
#include<QThread>
#include<QMutex>
#include<QSemaphore>
/*
Program to solve the Jurassic Park Problem.
The program accpets the number of visitors and number of cars as command line parameters.
The program runs multiple visitor and car threads.
Number of visitor threads are equa... |
72a120125e854ec631189dfa891bba40cf9be32b | 379883bdfa84528741a56a2f02a946989b539c65 | /CPP.Part_2/week_1/helpers/nmspace_test/file1.cpp | 92b8ce3831f40796c026671019e0c2e063174986 | [
"Unlicense"
] | permissive | DGolgovsky/Courses | 3bcaac3dc32d8ee84b02e1aafad0709ae4a6bd41 | 01e2dedc06f677bcdb1cbfd02ccc08a89cc932a0 | refs/heads/master | 2022-12-31T14:27:10.668181 | 2020-10-26T08:10:19 | 2020-10-26T08:10:19 | 111,097,533 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | file1.cpp | #include "header.hpp"
/*
void file1()
{
std::cout << "File1:\n";
std::cout << size_t(&foo) << '\n';
std::cout << size_t(&bar) << '\n';
std::cout << size_t(&foobar) << '\n';
}
*/
|
8c52a399004630cc4fa6c665946981ba1242fcbd | 41778ded99c3d573661983be345a325f1ec1115a | /cal/correctPosCsI.cpp | 81ad37419ecf4ff087cfb5cbcfc398af78d5bd8e | [] | no_license | ChronoBro/sort_7Li | f27f600c9876f7ac79cb665394b3949d68312401 | 5fb4338b5c9fdf690e0d6582eff953ca2956a11a | refs/heads/master | 2021-01-20T21:11:47.498108 | 2019-08-12T17:09:01 | 2019-08-12T17:09:01 | 60,623,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,690 | cpp | correctPosCsI.cpp | #include <iostream>
#include <fstream>
#include "TGraph.h"
using namespace std;
void correctPosCsI ()
{
int no=0;
ostringstream outstring;
string name;
//making this just change Russian calibrations for now
//never mind previous comment, found mistake in energy calibrations....
//never mind never mind
... |
c879ab4eb367d1cb4deb0d299fafdc72a6af1858 | 1fe0b84836f9ab6a44694e81447329608ceb9fc4 | /suma/suma.cpp | 41862b5c6bf526b2ef8294d99f3b96006b7f9103 | [] | no_license | carlitosColonSalva/c-plus-plus-samples | 9be1f19919c10edf818966010ba58203481a79e5 | ea69944e489c443aa8c82712c70c7d912127aa77 | refs/heads/main | 2023-06-20T06:37:07.266209 | 2021-07-18T01:43:19 | 2021-07-18T01:43:19 | 385,975,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | suma.cpp | #include <iostream>
using namespace std;
#include <string>
int sumar();
void main()
{
int num0;
num0 = sumar();
cout << num0;
system("pause");
}
int sumar()
{
int num1, num2, num3;
num1 = 1;
num2 = 2;
num3 = num1 + num2;
return num3;
}
|
4c77891d1ac4566a76e5f52c9b8e8acc813e1f53 | 96a330b0069bf008457d7a9201fc8eba83ff86c6 | /src/services/pcn-dynmon/src/extractor/MapExtractor.cpp | 729666463adcfbe21419ee01f5765f671527d8f4 | [
"Apache-2.0"
] | permissive | polycube-network/polycube | 0ef845cb7043a47c37f2f2073d5aaf818da6da46 | a143e3c0325400dad7b9ff3406848f5a953ed3d1 | refs/heads/master | 2023-03-20T01:08:32.534908 | 2022-06-30T12:45:40 | 2022-06-30T12:45:40 | 161,432,392 | 463 | 107 | Apache-2.0 | 2023-03-07T01:11:30 | 2018-12-12T04:23:33 | C++ | UTF-8 | C++ | false | false | 20,571 | cpp | MapExtractor.cpp | #include "MapExtractor.h"
#include <functional>
#include <string>
#include <linux/bpf.h>
#include "polycube/services/table_desc.h"
#define INT "int"
#define CHAR "char"
#define SHORT "short"
#define LONG "long"
#define FLOAT "float"
#define DOUBLE "double"
#define LONG_LONG "long long"
#define LONG_DOUBLE "long dou... |
5fd5377632578f6c461d9de24c7292e0517c5368 | 836c0526d4f3bcb00fac4ef1a72fab37d45a9f27 | /src/ConnectionsManager.cpp | 2fe835824621c60c03e3e5bb54dee627492384c9 | [] | no_license | unameit/yhttpd | 6c63a0eef341bb1010a53a317fc33b227ba955a3 | aa113ece568828fdb705f7c55d10e42598aa1d8c | refs/heads/master | 2020-05-19T18:56:44.246897 | 2015-06-16T22:59:30 | 2015-06-16T22:59:30 | 37,553,831 | 1 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 3,133 | cpp | ConnectionsManager.cpp | #include <sys/time.h> // struct timeval dla ::select(..)
#include <sys/types.h> // uint
#include <unistd.h> // ::select(..)
#include "SystemException.h" // rzucamy wyjątkiem, gdy select zwróci -1
#include "AsyncConnection.h" // wcześniej była tylko deklaracja zapowiadająca, a my wywołujemy metody z tej klas... |
5fd4a910c61e554d79d8fa79416b31141c139217 | 8c4790265d5e6a7bc011b68b2476573d1adc2824 | /CampionatDeKarate/addorganizatie.cpp | 56fb46a6274b7cfa642e200a39b78bcd3a6e7993 | [] | no_license | Adrriana/proiecte | 5e247c0e0ae5cfd3975a95e112f9e7d638fd83f9 | d8e884b7ca11e04e796c4525c39f691958080b03 | refs/heads/master | 2020-12-02T21:03:20.421172 | 2018-12-06T16:33:55 | 2018-12-06T16:33:55 | 96,248,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | cpp | addorganizatie.cpp | #include "addorganizatie.h"
#include "ui_addorganizatie.h"
#include <QMessageBox>
AddOrganizatie::AddOrganizatie(QWidget *parent) :
QDialog(parent),
ui(new Ui::AddOrganizatie),
m_type(AddOrganizatie::AddType::ADD_PERSON)
{
ui->setupUi(this);
}
AddOrganizatie::~AddOrganizatie()
{
de... |
cae5f419e34608170aff748891ce12b0cb5c1a4c | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Source/WebCore/dom/LiveNodeList.cpp | 5a0dc22ad4d8c8b27928f12e5fb8a38ed2e257f3 | [
"BSL-1.0",
"BSD-2-Clause",
"LGPL-2.0-only",
"LGPL-2.1-only"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | C++ | false | false | 6,215 | cpp | LiveNodeList.cpp | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2006, 2007, 2008, 2010, 2013 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modi... |
bd3425f419ea8aa484b6dab348f8957ac5d7ed86 | 2b4d34bfc16ef7b694ec3b994fd7e7b69560a479 | /q10.cpp | 69427a1ca82e25b064d842b0d109344697de038d | [] | no_license | learner0101/DAA-assignment-3-Section-B | e33b091bcf5d17a8b8c4b7280b1f06e63bc5ea82 | 82b01267e9a2e0e474969edd30719baf5ce35bd3 | refs/heads/master | 2020-04-07T06:01:04.204547 | 2018-11-18T19:31:02 | 2018-11-18T19:31:02 | 158,119,229 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,228 | cpp | q10.cpp | /*
Assignment : 3 section B
question : 10
Submitted by: vashudev(41)
*/
#include<iostream>
using namespace std;
bool **a_mat;
bool *isPotential;
int countknown(int n, int person_x)
{
/*
objective: To calculates number of people that a person_x knows.
Input variables: n- size of array isPotential... |
236b06fbac577617de3f5b6450eeccac23ab0a93 | 48757d2216e4f79970a0d4bb98db076a7da6b209 | /Packet_TS.h | d79ef2f1e88211ba3d79fffc95b74ea5455acbeb | [] | no_license | MtDesert/libTsPackets | 232a043e233d8c10b7050912c47bc8ba1f1a3403 | a7b0507fcbdc6ceb9a848110948d400b0cef37a7 | refs/heads/master | 2021-01-20T08:19:09.446873 | 2014-09-25T16:47:08 | 2014-09-25T16:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,339 | h | Packet_TS.h | #ifndef PACKET_TS_H
#define PACKET_TS_H
#include"DataBlock.h"
class DataBlock_TsHeader:public DataBlock
{
public:
unsigned parseData(uchar *pointer, unsigned length, unsigned offset=0);
DATABLOCK_CUSTOM_ATTRIBUTE_BIGENDIAN(SyncByte,uint8,0)
DATABLOCK_BOOL_BIGENDIAN(TransportErrorIndicator,1,0)
DATABL... |
542e7f7b83c3303241d39788c49be898d48f863c | 9939aab9b0bd1dcf8f37d4ec315ded474076b322 | /examples/nqueen/server/nqueen.hpp | 30c15c3a5f0b8842cbc978a47515087257a067e6 | [
"BSL-1.0",
"LicenseRef-scancode-free-unknown"
] | permissive | STEllAR-GROUP/hpx | 1068d7c3c4a941c74d9c548d217fb82702053379 | c435525b4631c5028a9cb085fc0d27012adaab8c | refs/heads/master | 2023-08-30T00:46:26.910504 | 2023-08-29T14:59:39 | 2023-08-29T14:59:39 | 4,455,628 | 2,244 | 500 | BSL-1.0 | 2023-09-14T13:54:12 | 2012-05-26T15:02:39 | C++ | UTF-8 | C++ | false | false | 4,835 | hpp | nqueen.hpp | // Copyright (c) 2011 Vinay C Amatya
// Copyright (c) 2011 Bryce Lelbach
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/config.hpp>
#if !defi... |
e2e7fee0aa30c1c5ac89741e5d06638774459039 | c63caa816dcd3aedb239969d908c617aaef38fc6 | /src/savegamegamebyro.h | bce080180d250e6a3bb900205edb71d0a2386abf | [] | no_license | noc9109/modorganizer | d54773560a4e8f9f9ed4ab33a8c49bbfbebb2f0d | 5adb3b377ecd50a75dd034a49582a1da91b67e1c | refs/heads/master | 2020-12-24T21:21:40.809230 | 2015-12-21T14:12:22 | 2015-12-21T14:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | h | savegamegamebyro.h | /*
Copyright (C) 2012 Sebastian Herbord. All rights reserved.
This file is part of Mod Organizer.
Mod Organizer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... |
bf38b465f13c1603ec82c2bc8002fa1ec654bbd1 | 11496c1e672cca830ad70d738a5e55c27a82d2ef | /EJEMPLOS/FP01/temp (2).txt | 3f4e83d4fcb6740047f206776b4ea22815de6a4b | [] | no_license | nievesnu/FP2 | 7edad90d79f820404f888e1a409a35405022b962 | 402cf2a162afd7884e422f888eb62374fa711f78 | refs/heads/main | 2023-05-27T22:14:09.601814 | 2021-06-13T12:40:02 | 2021-06-13T12:40:02 | 357,543,791 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,579 | txt | temp (2).txt | #include <iostream>
#include <fstream>
using namespace std;
#include <iomanip>
int main() {
const int MaxDias = 31;
const int MED = 2; // Nº de medidas
typedef double tTemp[MaxDias][MED]; // Día x mínima / máxima
tTemp temp;
double tMaxMedia = 0, tMinMedia = 0,
tMaxAbs = -100, tMinAbs = 100;
... |
9bb2a02446bd693f9cf328c82049c08969b417e9 | 42f701e352599fd402c1aa76691b1c1926da56cf | /main.cpp | 74b5ae6ee8875ca04f383fb237b58882a4bcdaed | [] | no_license | wuyuanyi135/clion-excessive-cpu | a90ac7ac177819dd5addbdce66ffb81dc56e5554 | 4ac15bed0f36950b69f7d8b52f068947762d4168 | refs/heads/master | 2020-08-01T21:26:33.666857 | 2019-09-26T15:45:52 | 2019-09-26T15:45:52 | 211,122,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 162 | cpp | main.cpp | #include <iostream>
#include <xtensor/xarray.hpp>
#include <xtensor/xmath.hpp>
int main() {
auto a = xt::xarray<double>({1,2,3});
auto b = xt::prod(a);
} |
a8a88fb969cd0c491a149c47aea4550e6a235dae | 22e3f9e32c009aa83a3b9ba112be98243faa4707 | /main.cpp | 270c26725510737a5a85fccef6d30b43e23ef2ef | [] | no_license | OlexandrPavliuk/cpplessons | d221285be3ebd6fc32e005a8a8e7091f77247104 | fe7bfa2c74bff0daa6535049e9779878c298b6a4 | refs/heads/master | 2016-08-12T15:29:06.868841 | 2016-02-28T10:40:34 | 2016-02-28T10:40:34 | 50,688,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | main.cpp | #include <iostream>
#include <cstring>
#include <cstdlib>
#include <getopt.h>
#include "httpserver.h"
#include <unistd.h>
int main(int argc, char **argv) {
int opt;
char ip[255] = "\0";
int port;
char directory[255] = "\0";
while ((opt = getopt(argc, argv, "h:p:d:")) != -1) {
swi... |
fa62bd82626315601789e2bf28cbbe8a49666535 | 8d2ef01bfa0b7ed29cf840da33e8fa10f2a69076 | /code/Shared/fxList.cpp | 5f0ec8cb354a9e564926ecdad621fd7832e32c74 | [] | no_license | BackupTheBerlios/insane | fb4c5c6a933164630352295692bcb3e5163fc4bc | 7dc07a4eb873d39917da61e0a21e6c4c843b2105 | refs/heads/master | 2016-09-05T11:28:43.517158 | 2001-01-31T20:46:38 | 2001-01-31T20:46:38 | 40,043,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,192 | cpp | fxList.cpp | //---------------------------------------------------------------------------
#include "fxList.h"
#include <assert.h>
//---------------------------------------------------------------------------
void fxList::Clear(void)
{
if (PointerArray != NULL) free(PointerArray);
PointerArray = NULL;
Count = 0;
}
voi... |
c2c39f0e6791e8815e5eea84a9f46f8c64beccb4 | 3f213b81b2ea38e56f3098ccabe49ed5a71f9dd5 | /topology_cut/geometry.h | a899cd1c08bb686d11c292122e50630f91568dd5 | [] | no_license | silverriver/topology_cut | 0ba4f657bcd7ecfe55caab447c45ca74f97aa1d6 | 31bb4a767a8d62fcdb42e4fbf67a686a9b15ff10 | refs/heads/master | 2021-01-20T16:21:59.730095 | 2019-05-30T03:30:42 | 2019-05-30T03:30:42 | 90,832,713 | 5 | 1 | null | null | null | null | GB18030 | C++ | false | false | 27,258 | h | geometry.h | #pragma once
#include <vector>
#include <cmath>
#include <utility>
#include <CGAL\Exact_predicates_exact_constructions_kernel.h>
#include <iostream>
#include <exception>
#include <algorithm>
#include <CGAL\Polygon_2.h>
#include <CGAL\Polygon_with_holes_2.h>
#include <CGAL\Polygon_set_2.h>
#include <CGAL\Bbox_3.h>
#incl... |
a14e0cc44a2616a1b743f813864bfe47b3931df0 | ce9046039502146ffc454248be1d47d5b01d3894 | /2011/2011.cpp | 961a33a9f2e339a6a486596abfaab534cbe766eb | [] | no_license | yjm6560/BOJ | 476ac9fcdb14e320547d570fe9589542fd13314e | 5532d1e31bc0384148eab09b726dcfcb1c0a96d0 | refs/heads/master | 2021-07-19T08:39:33.144380 | 2021-01-01T12:52:33 | 2021-01-01T12:52:33 | 230,388,040 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | 2011.cpp | /*
암호코드
DP
*/
#include <iostream>
#include <string>
using namespace std;
#define MOD 1000000
int e[5001], dp[5001], N;
string input;
int decode(int idx){
if(dp[idx] != -1)
return dp[idx];
if(e[idx] == 0){
if(e[idx-1] != 1 && e[idx-1] != 2)
dp[idx] = 0;
else
dp[idx] = decode(idx-2);
} else if((e[id... |
6245f3a160aefdc7387b968e185d37b545ac1419 | 2c5f05bad4097cf15170bf11f75535256b4ed790 | /a4.cpp | bbf78b524c5c5d7a1d76ebbea129b541ac22bb7e | [] | no_license | MooKnee/CIS-265 | 9e5b22ff76f2fbb07ecc8cfa2c311b2ac235a67e | f1fd31413021efa58e50f735bfaca78b1459b59e | refs/heads/master | 2020-08-01T12:00:56.003649 | 2019-09-26T03:22:43 | 2019-09-26T03:22:43 | 210,990,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,983 | cpp | a4.cpp | ///
//2. Rainfall Statistics
//Write a program that lets the user enter the total rainfall for
//each of 12 months into an array of doubles. The program should
//calculate and display the total rainfall for the year, the
//average monthly rainfall, and the months with the highest and lowest
//amounts. Input Va... |
0cc4247c74624730b0255a16c65811d548d53da9 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/src/compiler/translator/TextureFunctionHLSL.cpp | 2c81a3945326d763f3e53751578db404c3758adf | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | 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 | 61,653 | cpp | TextureFunctionHLSL.cpp | //
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// TextureFunctionHLSL: Class for writing implementations of ESSL texture functions into HLSL
// output. Some of the implementations are straigh... |
1bbb4459acfde7c53ed987ce910414d4a621d40f | 74437d065ca1be70812a3d5209f80fd97305740b | /AtomSubMoveState.h | 8e4c7cf1350b84627a3cd45b9854a9e680223e8a | [] | no_license | aabramovsky/DeepImpactPublic | 8fb8c9adebbf1be0fda44f4f53a58ef4a4302db6 | 90e556bcaf23feb89bce575a17d7156883c768c2 | refs/heads/master | 2020-04-01T01:45:59.099834 | 2018-10-12T13:07:19 | 2018-10-12T13:07:19 | 152,751,451 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 392 | h | AtomSubMoveState.h | #pragma once
#include "ObjectState2.h"
#include "LuaScript.h"
#include "Controller.h"
namespace Game
{
class AtomSubMoveState : public ObjectState
{
public:
AtomSubMoveState();
virtual ~AtomSubMoveState();
virtual bool Init();
virtual void Loop(float dt);
virtual void Event_DamagedBy( G... |
ec49ac55131bb270e27b1e20b0951b03d407a7a9 | 96e8048d809d1459f019e6a5aa2829d0c55c957c | /project/src/StdLib/Macro.cpp | a4873af70dc08384b26c56f825f5ed0e8fbcdba1 | [] | no_license | Hnatekmar/TPJ | caec78d5ff92c9f46a54f6897b7c90fa6e1060ac | ef322615d5c07e3dda97ecd8b335fd22992e8a26 | refs/heads/master | 2021-06-06T09:36:31.422467 | 2021-04-05T05:41:19 | 2021-04-05T05:41:19 | 72,508,926 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,603 | cpp | Macro.cpp | #include "../../include/StdLib/Macro.h"
#include "../../include/CompilerException.h"
#include <list>
Macro::Macro(std::vector<std::shared_ptr<AST> > &code)
{
if(code.size() < 3)
{
throw InterpreterException("Makro potřebuje minimálně neprázdný seznam argumentů a tělo, které obsahuje minimálně jeden výr... |
66593beb5ed5c50d7f6a090033097573eff5cfce | b08b5a534f96ce065de97de0debbc4bcf71b8698 | /border.h | bda5ec2ced0fdf65350d1c859476fc58700fd1ce | [] | no_license | paolini/surf | 3e095d3e8eb54b1416f5eabe0b5bd05d8dfe16e2 | 90d136cb72536b04470e9e56dabf4b27b70944d6 | refs/heads/master | 2021-05-16T03:14:01.649749 | 2017-07-30T15:33:54 | 2017-07-30T15:33:54 | 42,228,410 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 444 | h | border.h | #include <map>
#include <string>
#include "surf.h"
class Border: public surf {
public:
typedef Border *(*factory_function_ptr)();
typedef std::map<std::string, factory_function_ptr> Registry;
static Registry factory;
};
template<class T> Border *factory_function() {
return new T();
};
template<class ... |
b76cce6fcc9f7fc68f45d30f52c73b0fd9f3a851 | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/rust/glslopt/glsl-optimizer/src/compiler/glsl/ir_rvalue_visitor.h | be19fc7d14cbad4257ed7b8cf657f88b49773199 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,864 | h | ir_rvalue_visitor.h | /
*
*
Copyright
2010
Intel
Corporation
*
*
Permission
is
hereby
granted
free
of
charge
to
any
person
obtaining
a
*
copy
of
this
software
and
associated
documentation
files
(
the
"
Software
"
)
*
to
deal
in
the
Software
without
restriction
including
without
limitation
*
the
rights
to
use
copy
modify
merge
publish
distri... |
7b4e1d7178a36459269cfe8cb2cfcff92e351229 | 8bc40f27ed58d161dc79c90d4a3c860101ef1753 | /libraries/basics/code/base/adapters/android/Android_Application.hpp | 744b702d4e09bc8ce4e80b76e4290f25db0e65ec | [
"BSL-1.0"
] | permissive | LoronsoDev/basics-hexagon | 905d11ed931293908c307c89ab1899100abf9145 | 8db5958d4ef59a34551c4cb8f4eddc9a462b08a0 | refs/heads/main | 2023-06-30T20:14:30.240521 | 2021-07-10T22:00:23 | 2021-07-10T22:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,592 | hpp | Android_Application.hpp | /*
* ANDROID APPLICATION
* Copyright © 2017+ Ángel Rodríguez Ballesteros
*
* Distributed under the Boost Software License, version 1.0
* See documents/LICENSE.TXT or www.boost.org/LICENSE_1_0.txt
*
* angel.rodriguez@esne.edu
*
* C1712291010
*/
#ifndef BASICS_ANDROID_APPLICATION_HEADER
#define BASICS_ANDROID... |
ec5f4c799c409ae3fd79d5988d203d62e45a34d7 | c646dda13bbb0f250106c551c856e84ed1cf3312 | /TFN118A_APP/configpage.cpp | c494d89adbf283101022915f719b51c140b52ab5 | [] | no_license | icprog/TFN118A_APP | 208f06da8a63f3bef5e1d4b87c1a364a7d5af36d | 95bf6a3d93b61f377ab4987de4c5cacfc915b996 | refs/heads/master | 2020-04-07T01:26:36.656703 | 2017-09-11T02:53:48 | 2017-09-11T02:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,541 | cpp | configpage.cpp | #include "configpage.h"
#include "packet.h"
ConfigPage::ConfigPage(QWidget *parent) : QWidget(parent)
{
//时间
QGroupBox *timeGroup = new QGroupBox("时间");
timeGroup->setMaximumHeight(100);
timeGroup->setMaximumWidth(180);
getTimeBtn = new QPushButton("获取时间");
setTimeBtn = new QPushButton("时... |
f3c4062b590679d39e0068255a02fd42a910ea78 | bd7d2ab3fbfb4817cf28c19739dae8d3fa3b500d | /src/include/espbot_sntp.hpp | 524bab1ce4db4a15752a33dac79d7506762040d4 | [
"Beerware"
] | permissive | quackmore/hamsters | 50c6d01167e710ea43065d7baf2b037ecd03b66e | ebaf52227ddbadcdb607fa6a2f19bff35027cc5e | refs/heads/master | 2020-10-01T02:52:36.197200 | 2019-12-11T19:05:28 | 2019-12-11T19:05:28 | 227,437,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | hpp | espbot_sntp.hpp | /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <quackmore-ff@yahoo.com> wrote this file. As long as you retain this notice
* you can do whatever you want with this stuff. If we meet some day, and you
* think this stuff is worth it, you... |
5892d87f255f85a623c0b4b191b20bef3cbc1ce2 | 80f7d15cda1f70bcf38ba32ffa2c1742c9d34b6f | /ctpgateway/servicemgr.cpp | b05e7aa7d10f9e7278504c6555a9b26f23b147c4 | [] | no_license | rafaelchan/lianghuabao | 7d69a0f53e58297f2343446bf395c5ea336b652e | 668253a8529f9d9b16a15b26fa89020643eccd00 | refs/heads/master | 2020-06-28T10:19:19.051902 | 2017-11-25T14:13:54 | 2017-11-25T14:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,231 | cpp | servicemgr.cpp | #include "servicemgr.h"
#include "ctamgr.h"
#include "dbservice.h"
#include "gatewaymgr.h"
#include "logger.h"
#include "profile.h"
#include "pushservice.h"
#include "rpcservice.h"
#include <QThread>
ServiceMgr* g_sm = nullptr;
ServiceMgr::ServiceMgr(QObject* parent)
: QObject(parent)
{
g_sm = this;
}
void S... |
330df9fbb0e50bb74c9a9c4410d7dc2fb7bb1a5a | 6d58cb903b7b5128a0fbbd41325204500b8076b6 | /Engine/script/ex_label.cpp | fcec30ab2cb84ce1bcb5b32514e91e415b69324e | [
"Artistic-2.0"
] | permissive | CliffsDover/ags | a13d968bcd15bd1df9b163055b1489d1045e219c | d79afca04d2a81b7146e638ecdd218b465aa539e | refs/heads/main | 2021-01-17T12:03:06.997569 | 2013-08-16T20:36:42 | 2013-08-16T20:36:42 | 84,053,912 | 0 | 0 | null | 2017-03-06T09:22:20 | 2017-03-06T09:22:20 | null | UTF-8 | C++ | false | false | 1,582 | cpp | ex_label.cpp | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... |
41aa9ac1a22b22e9ffb61fce010a2a3814ec2e7a | 1a51c7612e1a89305358acb580cc4e5dbf843bb5 | /Problemset/A - AquaMoon and Two Arrays.cpp | 7ae49ab459f0a76f1a098e856d6c18d2c3812bfa | [] | no_license | ankitsharma1530/Codechef-Codeforces | 47de72f71586bb4d6a05290ece63e49be2876865 | 5ad38963732c88ed70e570aa1f7411db1bbba3a0 | refs/heads/main | 2023-07-15T00:26:55.760726 | 2021-08-17T07:07:43 | 2021-08-17T07:07:43 | 344,685,363 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,753 | cpp | A - AquaMoon and Two Arrays.cpp | #include<bits/stdc++.h>
#define mod 1000000007
#define lli long long int
#define ll long long
#define pll pair<long long,long long>
const int INF = 1000000000;
#define el '\n'
typedef std::complex<double> Complex;
typedef std::valarray<Complex> CArray;
// for loops shortcut
#define garr(i, n) for(ll i = 0; i < ... |
18d86ff65c4bf7e0050a35d17a18d62f496602a5 | f4aced01d7e577c2f4ddc9e63c409665af22d512 | /c/c3.cpp | b55d9cdba899ca9c05e5e1c71250c7dfd474b438 | [] | no_license | xuanyuweihe/Learn | 38dd90d9471c23fcb8d927e682aafe5be61d1b80 | bfb046fac24536666243d591ca81f22f7f02bb4b | refs/heads/master | 2022-04-19T12:27:47.996803 | 2020-04-15T09:18:50 | 2020-04-15T09:18:50 | 255,335,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,481 | cpp | c3.cpp | //走迷宫
//采用四叉树递归遍历
#include <iostream>
#include <fstream>
using namespace std;
#define NOARRIVE 1000
#define ZHANGAI 1001
#define ROW 10
#define COL 10
int map[ROW][COL][3]={};//x[][]0|1表示前一个点的rc坐标,[][]2表示类型或者记录当前步数
int col=0;
int row=0;
int slw[2]={0,0};//起点坐标
int elw[2]={0,0};//终点坐标
void show(int x,int y){
int r... |
a64550b54d1fccd49760cd07e9cf6f65ba2fc4e2 | a9922d559d43880009effef26ec3b6263e93f88e | /solutions/kattis/naipc18/doubleclique_hcz.cpp | 5840f68414f7b1198f22a9d771b7e8494376e4a3 | [] | no_license | buckeye-cn/ACM_ICPC_Materials | e7cc8e476de42f8b8a3559a9721b421a85a95a48 | 6d32af96030397926c8d5e354c239802d5d171db | refs/heads/master | 2023-04-26T03:02:51.341470 | 2023-04-16T10:46:17 | 2023-04-16T10:46:17 | 102,976,270 | 23 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,532 | cpp | doubleclique_hcz.cpp | // https://open.kattis.com/problems/doubleclique
#include <cstdlib>
#include <cstdint>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <iostream>
using namespace std;
int n, m;
int deg[200000];
int from[200000];
int to[200000];
int limit;
int v_deg[200000];
int e_deg[200000];
int m... |
7fa4bda5e480c51cc780705803a205b52ddc5f22 | 85c7a681d926c4b8682b61f8f53b2368788306c4 | /arduino101_code/game_fire.ino | 31334955285a2a21114bf1ba273d5e09e07ad122 | [] | no_license | gliber/arduino-magic-ball | d741878fae6277b2425f7f43d076da23678b5561 | b0001b93220024d502ebbecd1c49d6f96d2e48c1 | refs/heads/master | 2020-03-13T03:51:31.716079 | 2018-04-25T04:58:22 | 2018-04-25T04:58:22 | 130,951,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,428 | ino | game_fire.ino | #include "ICBall.h"
#define FIRE_EVENTS_DELAY 1000
#define FIRE_MAX_VALUE 300
#define FIRE_STEP_DOWN 5
#define FIRE_DETECTION_NORMAL 2
void gameFirePlay()
{
unsigned long lastFireEvent = 0;
int lastTone = 0;
int fireStatus = 0;
while (!gameChanged())
{
unsigned long current = millis();
float ac... |
20c6f4f947cfc02a6473a4ee55c72545f9eb54fe | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/hunk_7223.cpp | 575c9f5acfbf3619e309ca09c6b8b73fad30ac4a | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | hunk_7223.cpp | opts.rename_limit = merge_rename_limit >= 0 ? merge_rename_limit :
diff_rename_limit >= 0 ? diff_rename_limit :
500;
+ opts.warn_on_too_large_rename = 1;
opts.output_format = DIFF_FORMAT_NO_OUTPUT;
if (diff_setup_done(&opts) < 0)
die("diff setup failed");
|
f02d1291593fb2b62656aab17f85a89d061c4b74 | 707e7b234487c48077fe0eeabfbd5309b19d4742 | /Lesson1/Task 5/main.cpp | 08b96f8df26c960b15d6cd8b4ddb933ba0c76cf1 | [] | no_license | GlebGritsay/NG_2021_Gritsay_Gleb | 2d72cad0c886839048b4d1f97ef31b0dcf767692 | e76b1c69eb23ff447926d69b88bda05c41e411f7 | refs/heads/main | 2023-08-21T08:30:37.751546 | 2021-10-26T17:52:39 | 2021-10-26T17:52:39 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 411 | cpp | main.cpp | #include <iostream>
#include <cmath>
#include <math.h>
using namespace std;
int main()
{
int mess ;
cout << "Enter the mess of the spaceship:";
cin >> mess;
int Fuel;
Fuel=mess/3-2;
Fuel=Fuel*300;
cout << "Fuel=";
cout << Fuel;
// Есть проблема в коде,если масса корабля менше 8, то ... |
1f839b4a04137a36b2b52b70f67e0a3084570f09 | d92304badb95993099633c5989f6cd8af57f9b1f | /LightOJ old/1155.cpp | 7f16ec9b4196d52702d83200347fd35bccf23948 | [] | no_license | tajirhas9/Problem-Solving-and-Programming-Practice | c5e2b77c7ac69982a53d5320cebe874a7adec750 | 00c298233a9cde21a1cdca1f4a2b6146d0107e73 | refs/heads/master | 2020-09-25T22:52:00.716014 | 2019-12-05T13:04:40 | 2019-12-05T13:04:40 | 226,103,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,275 | cpp | 1155.cpp | #include <bits/stdc++.h>
using namespace std;
const int inf = INT_MAX;
class Dinic {
int n,source,sink;
vector < vector < int > > graph,f,c;
vector < int > level;
bool bfs() {
level.assign(n+1,-1);
queue < int > q;
q.push(source);
level[source] = 0;
while(!q.empty()) {
int top = q.fron... |
958a5849390ab1ca3e81b4dd21213228ca1098d2 | b6490ead30210ebb35d4c527c8a9ac7ebb70473a | /Algorithmic Tools/Week 5/Money Change Again.cpp | e72ea0f80845472771c09f28a1584159aeb8cf59 | [] | no_license | Muskan-1527/Data-structure-And-Algorithm | a2bf3a59f02ccae76ba28a576e8025cda7c4e52f | 86078bff82507e35f700b848d5c40a8394a92eae | refs/heads/master | 2023-08-24T20:02:00.852922 | 2020-10-20T04:38:32 | 2020-10-20T04:38:32 | 274,994,417 | 1 | 3 | null | 2021-10-05T11:47:51 | 2020-06-25T19:05:05 | C++ | UTF-8 | C++ | false | false | 415 | cpp | Money Change Again.cpp | #include<bits/stdc++.h>
using namespace std;
int money_change(int n)
{
int a[n+5];
a[0] = 0;
a[1] = 1;
a[2] = 2;
a[3] = 1;
a[4] = 1;
for(int i = 5 ; i <= n ; i++)
{
int x = a[i-1];
int y = a[i-3];
int z = a[i-4];
a[i] = 1 + min(x , min(y , z));
}
... |
14419aa3d9a3a4ba306a245e2275a3e4122c3b6a | 59418b5794f251391650d8593704190606fa2b41 | /sample_plugins/original_snippets/em5/logic/local/gangsters/eventspecific/GangsterBlackoutFP.cpp | b865c60cc8e1bb1f5edc46ee447d790768e1f58a | [] | no_license | JeveruBerry/emergency5_sdk | 8e5726f28123962541f7e9e4d70b2d8d5cc76cff | e5b23d905c356aab6f8b26432c72d18e5838ccf6 | refs/heads/master | 2023-08-25T12:25:19.117165 | 2018-12-18T16:55:16 | 2018-12-18T17:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,722 | cpp | GangsterBlackoutFP.cpp | // Copyright (C) 2012-2018 Promotion Software GmbH
//[-------------------------------------------------------]
//[ Includes ]
//[-------------------------------------------------------]
#include "em5/PrecompiledHeader.h"
#include "em5/logic/local/gangsters/eventspecific/Ga... |
0b667a6b62c5c0f8ca5f9b167a5b666b4e2959fc | d4a7a5a7e2868f5b3563b69d6e457e53d9f1c18e | /1071.cpp | 21d8cde6e732bbdabb323337b4f013175b744bd0 | [] | no_license | cli851/noi | 630328d2e08785caf2bc559618fa1c415a39f647 | 3245e8ea84486553ef24d05ab50aa81837d36657 | refs/heads/master | 2023-04-19T16:04:52.275245 | 2021-05-08T14:38:50 | 2021-05-08T14:38:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | 1071.cpp | #include <iostream>
#include <cstdio>
#include <math.h>
using namespace std;
int main()
{
int k,a=1,b=1,c;
//k=5;
cin>>k;
for(int i=3;i<=k;i++){
c=a+b;
a=b;
b=c;
}
// int i;
// i=3;
// c=a+b;
// a=b;
// b=c;
//
// i=4;
// c=a+b;
// a=b;
// b=c;
//
// i=5;
// c=a+b;
// a=b;
// b=c;
//
cout<<c;
return 0... |
1a23ab8778f5d7bae0eb75d38ef65d932dfe5f89 | aed4c1086ac3e5803912a68d63b8ca3388cc94af | /VotingSimulator/VotingSimulator/MMPVotingSystem.h | 94cbac052a73db891a63906ef83f39c03e3c975d | [] | no_license | mfow/uoa-political-science | e78c957019f9260aeb207351d4deaff0e49981c2 | 77decef08a7ba9a04c1262ad33a803ad90de51b1 | refs/heads/master | 2023-04-25T11:17:59.577779 | 2021-05-06T08:36:10 | 2021-05-06T08:36:10 | 139,300,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,342 | h | MMPVotingSystem.h | #pragma once
#include <String>
#include "votingsystem.h"
// Although this class is called MMPVotingSystem, it includes a special case for Supplementary Member.
enum MMPOptions
{
AllowOverhang,
NoOverhang,
NonAward,
SupplementaryMember,
Proportional,
};
struct MMPVote
{
int localVote;
int partyVote;
};
struct... |
43d3e1583db1cd3504259feccabba71f89aee2ae | 27bff64421b33ff20f12d290318f8a4c9b65c4da | /libaad/include/aad/EllipticCurves.h | 20fe84b8de4c4b16c6b2229a8fcae704ceb44d9e | [] | no_license | huyuncong/libaad-ccs2019 | 68418f6b3cda9409f15906b41a3755fb45132c29 | 2f31566bbdac4891df45eee2e9268bc4681533dd | refs/heads/master | 2023-01-14T11:58:57.982435 | 2020-11-22T22:30:08 | 2020-11-22T22:30:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,320 | h | EllipticCurves.h | #pragma once
#include <utility>
#include <libff/algebra/curves/public_params.hpp>
#include <libff/common/default_types/ec_pp.hpp>
namespace libaad {
// Type of group G1
using G1 = typename libff::default_ec_pp::G1_type;
// Type of group G2
using G2 = typename libff::default_ec_pp::G2_type;
// Typ... |
05885a8df8b48e16a4ca1aff4ea785f468d643a0 | 38a164760fcf3d1321cf05ce5b3e181dabaf7575 | /src/linux_parser.cpp | 1537223e5f7ad859c593db1dc0bf14eaaa335d2d | [
"MIT"
] | permissive | edfex/LinuxSystemMonitor | 2a66ae23cedd9f9086ced0bec72b6b86cca3f18a | efe060bd250cb6e449bba875ceb5c0a17789f078 | refs/heads/master | 2023-03-09T08:41:48.519955 | 2021-02-10T22:46:54 | 2021-02-10T22:46:54 | 337,873,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,210 | cpp | linux_parser.cpp | #include "linux_parser.h"
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// Read and return OS information
string LinuxParser::OperatingSystem() {
string line;
string key;
string value;
std::ifstream fi... |
0282ad3b72e56e70c2fbbc3361b8b9a0771eea16 | 0236cd084f91e8f545a972948c40cae7ea832819 | /src/platform/tls_pointer_win.cpp | 3c4c3410da9ac1be4c6c2134508220aa4354ef13 | [
"MIT"
] | permissive | alan0526/cpp-ipc | ce4c8e79a3da1cb89e3241a5301a72679236d40c | 82e0809f9991e39c291b7bee0bf5311ddc35d100 | refs/heads/master | 2020-06-13T20:13:34.187609 | 2020-04-02T09:37:49 | 2020-04-02T09:37:49 | 194,775,767 | 0 | 0 | MIT | 2020-04-02T09:37:50 | 2019-07-02T02:43:46 | C++ | UTF-8 | C++ | false | false | 7,762 | cpp | tls_pointer_win.cpp | #include "tls_pointer.h"
#include "log.h"
#include <Windows.h> // ::Tls...
#include <atomic>
namespace ipc {
/*
* <Remarks>
*
* Windows doesn't support a per-thread destructor with its TLS primitives.
* So, here will build it manually by inserting a function to be called on each thread's exit.
... |
921dc4c908a0d5eeb581a21ba43f8a32aded2285 | 24973c04627980df24b453a51663db953cb69d81 | /CoherentTest/Plugins/Runtime/Coherent/CohtmlPlugin/Source/CohtmlEditorPlugin/Private/CohtmlEditorPlugin.cpp | 9f2027dcc6a38c49c6b6ec9e0a363ca91f4ac4a5 | [] | no_license | akrzon/Coherent | 5aa0dabc0cda6b27a32d24d5b572aebf322a5d78 | 719f10c388250168986c2488ee40dba0216d2608 | refs/heads/master | 2022-11-23T10:27:57.029408 | 2020-07-26T20:33:24 | 2020-07-26T20:33:24 | 282,515,484 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,959 | cpp | CohtmlEditorPlugin.cpp | /*
This file is part of Cohtml, modern user interface library for
games. Release $RELEASE$. Build $VERSION$ for $LICENSEE$.
Copyright (c) 2012-2018 Coherent Labs AD and/or its licensors. All
rights reserved in all media.
The coded instructions, statements, computer programs, and/or related
material (collectively the ... |
aea6e0d2cece5099c03bffe723109f317529bef6 | a7c14f2f0fd386f6f4eb8d610bb40b45168724f9 | /Plat4m_Core/STM32F4xx/GpioPinSTM32F4xx.h | 67c6d9af6445ca2d6a581dd4b906005376483dcd | [] | no_license | bminerd/Plat4m_Core | ecd6939dba658130d4aad5bd9f3d70b35884773c | 809c49fcd739f449f3ea36aad2b2273c57c9ba8e | refs/heads/develop | 2022-02-13T15:04:39.663751 | 2021-06-23T04:47:46 | 2021-06-23T04:47:46 | 5,208,847 | 1 | 0 | null | 2021-06-23T04:47:47 | 2012-07-27T19:59:29 | C | UTF-8 | C++ | false | false | 9,757 | h | GpioPinSTM32F4xx.h | //------------------------------------------------------------------------------
// _______ __ ___
// || ___ \ || | __ // |
// || | || | || | _______ || |__ // | _____ ___
// || |__|| | || | // ___ | || __| // _ | || _ \/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.