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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19ac3352cdc36bec0e37bcb3531ce8dacdabc9c5 | e80546c7257c40416b7b1076a533a0b864a81742 | /src/test/wirelessTestRx/wirelessTestRx.ino | 7472a3f8f3b3003c192ac8f43f22ae032b6fafa9 | [] | no_license | ewoutexelmans/ssys-herexamen | 0acf87c67ec798b9c6eb626e108f1a49949c1b73 | cee33ac7636d443238a7a8bf2dea16741225bd6f | refs/heads/master | 2021-01-23T09:45:48.652434 | 2017-09-07T11:53:23 | 2017-09-07T11:53:23 | 102,597,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | ino | wirelessTestRx.ino | #include <SPI.h>
#include <RF24.h>
#include <nRF24L01.h>
#include <printf.h>
RF24 radio(9, 10); //ce and cs pin
const uint64_t add1 = 0x0a0c0a0c0aLL;
char msg[10];
void setup() {
Serial.begin(9600);
radio.begin();
printf_begin();
radio.openReadingPipe(1, add1);
radio.startListening();
}
void loop() {
// ... |
ee150a1a566a4210adeff43a0baa72a1e6f9d3ab | 6b3f6d7b849071af7913891ca85e1af09e137011 | /root/mjpeg_face_leaf_detection/face_leaf_detection/leafRecognition.h | 56129c98886f5f8c3d6702e167b069e4cbe5eb76 | [] | no_license | chhx001/fs-zrobot-zed | addf3d0dae32aa4a6ee1765b98f831b300b60f25 | 5a1b1e65b3bc9f81595216bb06d7911b52309cc2 | refs/heads/master | 2021-01-20T07:47:15.148537 | 2015-04-22T14:21:48 | 2015-04-22T14:21:48 | 34,391,573 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 404 | h | leafRecognition.h | /*
* LeafRecognition.h
*
* Created on: Jul 21, 2013
* Author: Jerry Peng
*/
#ifndef LEAFRECOGNITION_H_
#define LEAFRECOGNITION_H_
#include"opencv2/opencv.hpp"
#include "hullDetector.h"
#include "LeafClassifier.h"
#include <stdio.h>
using namespace cv;
void leafRecognition(Mat *image, ... |
eb701d6758e6c7cb9c81969e4f7b1ec00fb49db1 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5751500831719424_1/C++/Pranet/bs.cpp | 0f7e5e1301d4a6ff34fd88ba413c1c25e10538c5 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,276 | cpp | bs.cpp | #include <cstdio>
#include <queue>
#include <string>
#include <algorithm>
#include <iostream>
#define pii pair<int,int>
using namespace std;
int infinity =1000000;
string skeleton(string s)
{
string ans;
int n=s.size();
char prev='A';
for(int i=0;i<s.size();++i)
{
if(s[i]!=pr... |
6e046ed8cf14a0f28d2f4f8d4d1fa265d7af345c | eddc1cf5d83b91c6e9883983e58b8ce6c110913a | /第06周/4-b2/4-b2-sub1.cpp | d648dc971b619cbe42766437f46c5150164a48a4 | [
"MIT"
] | permissive | zzc-tongji/tongji-10021501-high-level-language-programming | 1e92c2cf2c6b3dadda16c388e331647c32ac964c | 77cedc89e130c9a7e400637bb76bb27564ab2359 | refs/heads/master | 2022-06-10T07:22:14.611046 | 2020-05-06T04:41:00 | 2020-05-06T04:41:00 | 261,336,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | 4-b2-sub1.cpp | #include <iostream>
#include <cmath>
using namespace std;
void solve0(double b,double c)
{
cout << "a为0,这是一元一次方程" << endl;
if ((b==0)&&(c!=0))
{
cout << "该一元一次方程无解!!" << endl;
}
else if (c==0)
{
cout << "该一元一次方程的解为 x=0" << endl;
}
else
{
cout << "该一元一次方程的解为 x=" << (-c/b) << endl;
... |
6291079e6289bd91f0c49c33745596ff00f109e0 | 33efc964c6b697d5ee55c84fcf0b3dc3f2790de3 | /단계별로 풀어보기/for문/2439_별찍기2.cpp | f46a3df66372b4fde3acc2f79ab2c919fcceab21 | [] | no_license | khyun3/baekjoonCpp | daf37db98550f8e9461f1d0aaa50e0308994c616 | 04ac1842e59582e5bfd493ec2ea232849e975cb6 | refs/heads/master | 2022-09-13T04:40:12.736591 | 2019-11-29T12:03:51 | 2019-11-29T12:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | cpp | 2439_별찍기2.cpp | #include<iostream>
using namespace std;
class star{
char s;
int starNum;
public:
star(int num);
void printStar();
};
star::star(int num){
s = '*';
starNum = num;
}
void star:: printStar(){
int i,j;
if(1<=starNum && starNum<=100)
for(i = 0; i<starNum; i++){
for(j = 1; j<=starNum; j++){
if(starNum-j<=i)... |
450035b9b2edaaca767151908b1897da75cc4652 | 7da188d7668460304bbdd10e988de4f7e9b504e5 | /Chapter04/Cp4_lab1.cpp | d608d2744f57a6b5e3857ed543d84814ff0fddc9 | [] | no_license | HyeonJun97/C_study | f4469cfecfd133de8c38119240caedd2cd368ae7 | a31939d6e237dbc4fbb322b95381abe5739f73d0 | refs/heads/main | 2023-01-14T01:04:59.484157 | 2020-11-19T07:05:23 | 2020-11-19T07:05:23 | 314,147,858 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 976 | cpp | Cp4_lab1.cpp | #include<iostream>
using namespace std;
void get_input();
int pluss(int x, int y);
int minuss(int x, int y);
int star(int x, int y);
int divice(int x, int y);
int main()
{
char check;
get_input();
while (1)
{
cout << "계속하시겠습니까?(y 또는 n): ";
cin >> check;
if(check==110)
break;
else ... |
da21c6bfa9d27ebd099a4aae3625d92c1292f272 | a6bfdf4d2dd1ea4ae285215c651c2b64479b6b6a | /include/boost/simd/function/safe_max.hpp | 11e37ab2ae9c7ee34941e6c0ca81213274ef60de | [
"BSL-1.0"
] | permissive | jeffamstutz/boost.simd | fb62210c30680c3cb2ffcc8ed80f8a0050f675fd | 8afe9673c2a806976a77bc8bbca4cb1116a710cb | refs/heads/develop | 2021-01-13T04:06:02.762442 | 2017-01-05T02:56:52 | 2017-01-06T16:11:47 | 77,879,665 | 6 | 1 | null | 2017-01-03T03:08:57 | 2017-01-03T03:08:57 | null | UTF-8 | C++ | false | false | 1,157 | hpp | safe_max.hpp | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... |
bcb2f5d91939bf443a0b1bea39c805ace2b55188 | fa188b9ddc7040b5bdb965efb0ff2f0143b256a9 | /CrazyRandomSword.h | 171af163177e06d475cb7ba7d34c8969e0508461 | [] | no_license | spanky3449/Assignment1 | 4a714a75486ca48b53eb3aeb3ac6363bd866a284 | a23fb3bc0672285cad22e024bb1e58a4b8dd9959 | refs/heads/master | 2021-07-10T14:07:00.082023 | 2017-10-12T01:00:28 | 2017-10-12T01:00:28 | 106,354,775 | 0 | 0 | null | 2017-10-10T01:42:35 | 2017-10-10T01:42:35 | null | UTF-8 | C++ | false | false | 375 | h | CrazyRandomSword.h | #include <string>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "Weapon.h"
#ifndef CRAZYRANDOMSWORD_H
#define CRAZYRANDOMSWORD_H
class CrazyRandomSword : public Weapon {
public:
CrazyRandomSword() : Weapon("Crazy random sword", getHP()) {
}
double getHP();
virtual ~CrazyRandomSword()... |
a7ff13b71728f164dfa9d79c4900e396c67f38d4 | 1cb661b1be375cf31e41a36ccedbb2db114c305f | /OpenGL_ES_11_1/src/Common.cpp | b16fbec3eb79052ff99988dcc86b15b912d48054 | [] | no_license | pcrazyc/opengl_es_training | 875030be2d944e1401c4a0ee400dbc3e43eae881 | c2d57165f944fc3d0de5a19c544bd9167589eaf4 | refs/heads/master | 2021-01-18T14:18:37.772428 | 2013-01-30T10:39:37 | 2013-01-30T10:39:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,853 | cpp | Common.cpp | /*
* Common.cpp
*
* Created by Dan Banay on 4/8/07.
*
*/
#include "Common.h"
#include "MTRand.h"
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
static Sexy::SexyChar ForwardSlashChar = _S('/');
static Sexy::SexyChar BackwardSlashChar = _S('\\');
static Sexy::SexyChar CommaChar = ... |
9fa77e8ec277c7a30045ad426cf88e48f8c0b727 | 9db308aea9bbe37cee092f7134697fb58262cd2e | /leetcode_811.cpp | e139275af5439a02e6f6fa8ddfcaf2a16c47b741 | [] | no_license | dreamiond/LeetCode | b5588d077a658ac39938b47289a29d9726e1fd44 | 3c27a02dce2dc5720957b7d65c0db20f99273e83 | refs/heads/master | 2020-07-12T13:19:39.552938 | 2019-10-24T06:28:36 | 2019-10-24T06:28:36 | 204,828,141 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,045 | cpp | leetcode_811.cpp | //leetcode_811:Subdomain Visit Count
/*
A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discuss.leetcode.com". When we visit a domain like "discuss.leetcode.com", we will also visit the par... |
19104426eab3143023bf3dba67df4dd62aa39723 | 2eb66d4475500276a126e1fba3a1fcba94cd04f6 | /StockAccount/MoneyMarket.cpp | 36d8e61c0f1c3779e4d872515a39eb96cddd064a | [] | no_license | cp0153/StockAccount | c39d102ec3dd2ba44b7263a3701ca388eb5cba6c | a7d508da0f7ce56b82e3583a47cbc2c1bb937e7b | refs/heads/master | 2021-01-17T12:29:49.178801 | 2016-07-14T00:00:14 | 2016-07-14T00:00:14 | 37,888,006 | 2 | 1 | null | 2015-09-22T16:50:51 | 2015-06-23T00:29:09 | C++ | UTF-8 | C++ | false | false | 447 | cpp | MoneyMarket.cpp | #include <iostream>
#include "MoneyMarket.h"
MoneyMarket::MoneyMarket()
{
std::cout << "Please Enter Your Name: ";
std::cin >> m_name;
m_balance = 0;
std::cout << "\nHello " << m_name << ", You have $" << m_balance << " in your account" << std::endl;
}
MoneyMarket::MoneyMarket(std::string name, double balance)
{
... |
6c8b08acf7f3e848d1b4eb3ec2dbffc7acdc2538 | 87da0882c8e0983f2b6a95e77e6dc29cd4860814 | /include/nauths/mcl/misc/monoid.hh | 057a9bc47d2ac94228a84dd440206fde5a2653ed | [
"MIT"
] | permissive | nicuveo/MCL | 2284a2b9a37da97f72acf7036f09ffecc8932586 | ce717de6ebc873b9d18ac0e3d3a8e10e83eb2386 | refs/heads/master | 2021-01-22T05:00:36.590579 | 2015-10-04T09:43:39 | 2015-10-04T09:43:39 | 28,825,900 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 903 | hh | monoid.hh | //
// Copyright Antoine Leblanc 2010 - 2015
// Distributed under the MIT license.
//
// http://nauths.fr
// http://github.com/nicuveo
// mailto://antoine.jp.leblanc@gmail.com
//
#ifndef MCL_MONOID_HH_
# define MCL_MONOID_HH_
//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
// Includes
# inclu... |
90eb98386e3d149422dd1ad9b60e8dc1e93db55c | 123bfba3830338b34fbc70303872e54084b2d47c | /meshexaminer.cpp | 0dbf567133774312aaa9b035828da1081652961e | [] | no_license | QianyiWu/UI_framework | d3248580f023ea5c37861b063dfbe27830ad5c1e | ee24616316945eaf4609e382ddfb1cc4e3c82e78 | refs/heads/master | 2021-06-15T11:28:32.071845 | 2021-02-26T06:20:18 | 2021-02-26T06:20:18 | 136,130,217 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,841 | cpp | meshexaminer.cpp | #include "meshexaminer.h"
#include "glwrapper.h"
#include <QFileDialog>
#include <QString>
#include <queue>
MeshExaminer::MeshExaminer()
{
}
MeshExaminer::~MeshExaminer()
{
}
void MeshExaminer::draw()
{
// double dist_x = max_coord[0] - min_coord[0];
// double dist_y = max_coord[1] - min_coord[1];
// do... |
912477a55db44f1363d3355f75b3f22f848b2a08 | 49f4b43fb1c8bc550915ce937c850038d12a5995 | /codechef/icpc_training/test.cpp | 296f49ad6f3a3a4be6a5a5d4cddc839c710c8cda | [] | no_license | arp1561/competitive-programming | 8c5a93b172cfb9fa1cfe9fab98c4961419190dc1 | 6241d43cd21f3d46c6f6b8e2aa2cf42d3c67494a | refs/heads/master | 2021-08-22T15:00:25.311396 | 2017-11-30T13:26:49 | 2017-11-30T13:26:49 | 112,613,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | cpp | test.cpp | #include<bits/stdc++.h>
using namespace std;
int fact(int n)
{
int facto=1;
while(n>0)
{
facto*=n;
n--;
}
}
int main()
{
int n; cin>>n;
int arr[n];
for(int i=0;i<n;i++) cin>>arr[i];
vector<int> a(arr,arr+n);
for(int i=0;i<fact(n);i++)
{
next_permutatio... |
1fd6f5fe3d5efc42e82d7c98ec4204096ac8de9c | e90a27459cbd73bca5e5638b87fefbc2fbb80252 | /#2 3D training/TrainingFramework_VS2013/TrainingFramework/ResourceManager.cpp | 1289b9a65e99ebeb6de0542e6f269509a4a622dc | [] | no_license | Tienkaca/tien.vanluu | 0d0209614620b75f1d008963bb9b9a2f53198e39 | e189fd1f5f6bb7eed1417214447f509ee39445a5 | refs/heads/main | 2023-06-23T12:45:27.324110 | 2021-07-22T06:50:14 | 2021-07-22T06:50:14 | 385,491,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,087 | cpp | ResourceManager.cpp | #include "stdafx.h"
#include "ResourceManager.h"
ResourceManager* ResourceManager::ms_Instance = NULL;
ResourceManager::ResourceManager()
{
}
ResourceManager::~ResourceManager()
{
for (int i = 0; i < mp_texture2D.size(); i++)
{
delete mp_texture2D.at(i);
}
for (int i = 0; i < mp_models.size(); i++)
{
delete... |
0faecbf2d3537bb1ec9d51d8b3ce41635ea5bd2e | b146dc3af34ca271af40b572df97652deef886f8 | /Runtime/RHI/D3D11/D3D11_RenderTexture.cpp | 13e4e28a0627a273d633f70ed1c24b5dddc03b6a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fromasmtodisasm/SpartanEngine | 6d7c81a7be96091569aa22b5181446531c8948f2 | cffd5bde28b83356b80903b4f011fbe6a005ed3f | refs/heads/master | 2020-05-16T04:39:52.014752 | 2019-04-21T18:52:50 | 2019-04-21T18:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,701 | cpp | D3D11_RenderTexture.cpp | /*
Copyright(c) 2016-2019 Panos Karabelas
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, distrib... |
b768451248519db0bb9533247311de430ddca6ec | 803c5084fb83c1b50c3bd0734f48f30792f783e1 | /SPOJ/natureza.cc | 31334bf5b8747a7859dc3ff8f2ae4b31a5d7d02f | [] | no_license | guilhermeleobas/maratona | 9627570276d4fd843918013c1fd5a702bbada0e4 | 5d46263b335d2e70b0156001116f7030a068cf5a | refs/heads/master | 2022-09-20T11:28:26.367178 | 2022-09-05T05:20:43 | 2022-09-05T05:20:43 | 21,397,024 | 5 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,733 | cc | natureza.cc | /*
Problema - Natureza
http://br.spoj.com/problems/NATUREZA/
Guilherme Leobas
*/
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <deque>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <stack>
#include <queue>
#include <cmath>
#include <fstream>
using ... |
1b3529728c1439050284527c506f4dce8434e1ef | 4950acdf81f184f1ad5d444982529ca1e938cc5d | /librarySystemList/administer.cpp | 0a47e123ffdbf191ad24ec69f785ad111cf99fd8 | [] | no_license | tjl877489803/myreposi | be06ad8b71e55aacfe28cb95a67743f19a21ca30 | 4214d411c0b76bf4616886a66dddecf1f4b931c8 | refs/heads/master | 2020-03-28T05:36:20.164924 | 2016-06-27T01:18:41 | 2016-06-27T01:18:41 | 62,015,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,675 | cpp | administer.cpp |
#include "administer.h"
#include <iostream>
using namespace std;
admin::admin(const string &Num, const string &Password)
{
adminNum = Num;
password = Password;
}
void admin::addBook()
{
Book book;
cout << "please input the book number: ";
cin >> book.bookNum;
cout << "please input the ISBN: ... |
caa20a062cb3bbda8b61062948c3c857b743208b | ac2c7ce45a28c8ceb10d543944db90f6025e8a58 | /src/fs/pathblock.cpp | a9965cef725adf2356c01f07347df5b27b2c1d45 | [
"MIT",
"BSD-3-Clause",
"Zlib",
"BSL-1.0"
] | permissive | degarashi/revenant | a5997ccc9090690abd03a19e749606c9cdf935d4 | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | refs/heads/master | 2021-01-11T00:15:06.876412 | 2019-09-08T13:00:26 | 2019-09-08T13:00:26 | 70,564,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,433 | cpp | pathblock.cpp | #include "path.hpp"
#include "lubee/src/compare.hpp"
namespace rev {
void PathBlock::_iterateSegment(const char32_t* c, const int /*len*/, const char32_t /*sc*/, const std::function<void (const char32_t*, int)>& cb) {
char32_t tc[128];
auto* pTc = tc;
while(*c != CharConst<char32_t>::EOS) {
if(_IsSC(*c)) {
... |
edda9467db59333c55f7bac23fca8de60547c32a | 165be8367f5753b03fae11430b1c3ebf48aa834a | /test/expr/ExprResizeTest.cpp | bf05b39f8e95023e31a00408d2ac6c81eaf0f20f | [
"Apache-2.0"
] | permissive | alibaba/MNN | f21b31e3c62d9ba1070c2e4e931fd9220611307c | c442ff39ec9a6a99c28bddd465d8074a7b5c1cca | refs/heads/master | 2023-09-01T18:26:42.533902 | 2023-08-22T11:16:44 | 2023-08-22T11:16:44 | 181,436,799 | 8,383 | 1,789 | null | 2023-09-07T02:01:43 | 2019-04-15T07:40:18 | C++ | UTF-8 | C++ | false | false | 1,906 | cpp | ExprResizeTest.cpp | //
// ExprResizeTest.cpp
// MNNTests
//
// Created by MNN on 2019/09/10.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <MNN/expr/ExprCreator.hpp>
#include "MNNTestSuite.h"
using namespace MNN::Express;
class ExprResizeTest : public MNNTestCase {
public:
virtual bool run(int precision) {
... |
a3a51ea29f0ad2c32f8dbda065c3239173e2036d | 7235b8a3d289994d93914e12c6bb031ac0980e69 | /3rdparty/VLExtension/Actors/TextureRatioViewActor.h | 919980f03b03038b8bb6e2d81f815f36db3c3900 | [] | no_license | absentje/ImageProcessing | 31c190274923464f470c3eee1ead40f4f353518e | 0dee8ce4b869c2166d1c697f5f1e051d92eae547 | refs/heads/master | 2021-04-11T17:31:20.255129 | 2020-06-27T11:10:38 | 2020-06-27T11:10:38 | 249,040,768 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | h | TextureRatioViewActor.h | #pragma once
#include "TextureViewActor.h"
/*
TextureRatioViewActor is TextureViewActor that preserves texture proportions (w/h)
*/
namespace VLExtension
{
class TextureRatioViewActor: public TextureViewActor
{
VL_INSTRUMENT_CLASS( TextureRatioViewActor, TextureViewActor );
public:
TextureRatioViewActor( vl::Textur... |
fddbefefab00c739a0c170e183098d1550efcd98 | 0d62a76de885f14f98915abba437e03fdf228dbd | /Gaussian.h | 5ec96a6f6da139598a2e7f8e756471bf18bac707 | [] | no_license | LyDD42/CMC | df7562ac7bc9d5f2e1f3bd522f9f7f78dac894c6 | 13bff977502a147a215ad1230127d90d47118fb3 | refs/heads/master | 2020-12-24T14:09:40.122627 | 2015-06-16T21:06:06 | 2015-06-16T21:06:06 | 37,556,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | h | Gaussian.h | #ifndef GAUSSIAN_H
#define GAUSSIAN_H
#include "RandomVariable.h"
#include <math.h>
#include "Uniform.h"
class Gaussian :
public RandomVariable < double >
{
public:
Gaussian(double mean = 0, double std = 1)
: mean(mean), std(std), flag(true), unif(-1, 1) {};
double operator()();
private:
double ... |
90aef210f1fd4684c6643269a0b0d2bb0a815402 | 8cc95381e7c810f0ee4921fb2e6140748dd3ea57 | /300_399/310_find_min_height_tree.h | 0099b36e5e4819f72162030d0d4b04dcefc73c26 | [] | no_license | wangchenwc/leetcode_cpp | 5691fd6091050cd09ececfa94c02497f78b88293 | 6c0c847f25710781f40a2817cb0e0152002f1755 | refs/heads/master | 2020-04-22T02:36:02.836904 | 2018-11-08T06:13:00 | 2018-11-08T06:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,288 | h | 310_find_min_height_tree.h | //
// 310_find_min_height_tree.h
// cpp_code
//
// Created by zhongyingli on 2018/8/11.
// Copyright © 2018 zhongyingli. All rights reserved.
//
#ifndef _10_find_min_height_tree_h
#define _10_find_min_height_tree_h
class Solution {
public:
vector<int> findMinHeightTrees(int n, vector<pair<int, int>>& edges) {... |
9885fc6049a65ce31c37ff3fb5d1ab8053a0fb79 | 265c6e18715a6276729283a91356f09d41784d86 | /examples/timeline.cpp | bc34d809d0cfb8bc8fdf3e6ecfe45b572c5b5ce5 | [
"Zlib"
] | permissive | kubawal/TweenSF | ca771d7c6fc511afc6bd782474170b27bfc83fe4 | e7e9a94d226c0849b490ffbb0b2d9220cf563fcb | refs/heads/master | 2021-01-19T07:38:52.766367 | 2015-01-03T13:51:50 | 2015-01-03T13:51:50 | 28,631,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | timeline.cpp | #include "../include/SFML/Graphics.hpp"
#include "../include/tweensf.h"
#include <iostream>
using namespace std;
using namespace sf;
using namespace tsf;
int main()
{
RenderWindow win(VideoMode(800, 600), "TweenSF | Example2");
CircleShape sh1(100);
sh1.setFillColor(Color::Red);
CircleShape sh2(100);... |
4064fcdde9f91514d34d41b3018354d8011e31a0 | a5c7630ffdd228aee7d9143a8c3e5e8f64766c46 | /source/service.cpp | 252670f789501b7454297a6680160883d5e7744b | [] | no_license | p-jackson/drunner | 86b6a386ed0046d856ec0feab127b667268b346f | 94f97c70445fb3c5801288cdc9f88f3bbb8db91b | refs/heads/master | 2021-01-18T02:56:32.846093 | 2016-05-04T11:01:53 | 2016-05-04T11:01:53 | 58,033,349 | 0 | 0 | null | 2016-05-04T10:49:12 | 2016-05-04T07:52:11 | Objective-C | UTF-8 | C++ | false | false | 8,469 | cpp | service.cpp | #include <unistd.h>
#include "service.h"
#include "logmsg.h"
#include "utils.h"
#include "servicehook.h"
#include "sh_servicevars.h"
#include "drunnercompose.h"
service::service(const params & prms, const sh_drunnercfg & settings, const std::string & servicename, std::string imagename /*= ""*/) :
servicepaths(sett... |
2c1ee53998f53ccfab6c77f4e7367a9ae79315e8 | 1d5d650014ac3dd142965906cf2b4fdbe34afb63 | /abc118/abc118_c.cpp | c0c416b51dafe71569b24cb32232eb8a48db6351 | [] | no_license | tks3210/Atcoder | c1b88654762273693bd41db417811169780c0161 | 593dda88e13f703bdb3b4c3e6d795bc425e29416 | refs/heads/master | 2021-07-02T17:46:00.099867 | 2020-12-19T07:57:14 | 2020-12-19T07:57:14 | 146,293,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | abc118_c.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll gcd(int x, int y){ return y?gcd(y, x%y):x;}
int main(){
int n;
cin >> n;
vector<int> a;
for(int i = 0; i < n; i++)
{
int tmp;
cin >> tmp;
a.push_back(tmp);
}
ll ans = gcd(a[0],a[1]);
f... |
83703e2a3a50c1606b034929f9b89bcf7cb18dab | c4a5fac86d54de270d9fe63ba2e8cac3a3f07f0c | /MatchThree/MatchThree/Classes/managers/SoundManager.cpp | 999a2f58605d608ca8bfe683301ca126bcd50ca7 | [] | no_license | puspesh/matchblitz | 3d79fff634b107beba48e0c5ec0cb7c4ea703cb7 | ff5177b092c541609b7755da94deb242f3400592 | refs/heads/master | 2020-12-24T15:58:22.933148 | 2013-07-24T10:15:15 | 2013-07-24T10:15:15 | 11,630,813 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,561 | cpp | SoundManager.cpp | //
// SoundManager.cpp
// MatchThree
//
// Created by kpuspesh on 7/15/13.
//
//
#include "SoundManager.h"
#include "EventsManager.h"
#include "SimpleAudioEngine.h"
SoundManager* SoundManager::m_mySingleton = NULL;
SoundManager::SoundManager()
{
}
SoundManager::~SoundManager()
{
}
SoundManager* SoundManager::... |
44fe10c09fe7e92db7dc631c93a2ba02217fa720 | 659d99d090479506b63b374831a049dba5d70fcf | /xray-svn-trunk/xr_3da/xrGame/Torch.h | 430c49bfd8ccb6aba9c33015373f0cee4225654b | [] | no_license | ssijonson/Rengen_Luch | a9312fed06dd08c7de19f36e5fd5e476881beb85 | 9bd0ff54408a890d4bdac1c493d67ce26b964555 | refs/heads/main | 2023-05-03T13:09:58.983176 | 2021-05-19T10:04:47 | 2021-05-19T10:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,661 | h | Torch.h | #pragma once
#include "inventory_item_object.h"
//#include "night_vision_effector.h"
#include "hudsound.h"
#include "script_export_space.h"
class CLAItem;
class CNightVisionEffector;
class CMonsterEffector;
class CTorch : public CInventoryItemObject {
private:
typedef CInventoryItemObject inherited;
protected:
... |
41850054cd68f4fd9ad8574e18081228380f658d | 16cd11545bccab5868ff02c3ed2c2c402cbb606b | /Source/Tankogeddon/TankPawn.cpp | a7efc17054b81178a3fd654d9f74c9e94871202e | [] | no_license | FokVarzov/Tankogeddon | 068fd004c14b14b94b078a3d35cd611692f0bba5 | ce8622114c3cf369f52f785a16d70770220d85be | refs/heads/lesson-2 | 2023-08-21T07:32:44.450051 | 2021-09-13T14:36:06 | 2021-09-13T14:36:06 | 397,967,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,849 | cpp | TankPawn.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "TankPawn.h"
#include <Components/StaticMeshComponent.h>
#include <GameFramework/SpringArmComponent.h>
#include <Camera/CameraComponent.h>
#include <Math/UnrealMathUtility.h>
#include <Kismet/KismetMathLibrary.h>
#include <Compone... |
340a99b94d99f003b75c698786b0b6e05f5e455d | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/curl/gumtree/curl_repos_function_459_curl-7.18.1.cpp | 87efa453b1f05c22a23dd41675187c1dfff9c2bd | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | curl_repos_function_459_curl-7.18.1.cpp | int Curl_qsossl_close_all(struct SessionHandle * data)
{
/* Unimplemented. */
(void) data;
return 0;
} |
dd901d067432a223c6caa2084e9a4cec23e1d404 | a9fb98b270f3cfdb98496a01353a8f7efc2f7437 | /src/app.h | fea5dff7fa7655a3d25fb006051ea47be9c2708b | [] | no_license | Keenuts/CLTracer | 6ce2db6c3701da73d0dc3abcf2f913183249af42 | 97e87d0bcfcd7a274d871fe9e8a04836db5c03bc | refs/heads/master | 2021-01-22T11:04:17.269901 | 2018-10-23T11:00:19 | 2018-10-23T11:00:19 | 92,668,310 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | h | app.h | #pragma once
#include <CL/cl.hpp>
class app_t {
private:
cl::Context m_context;
cl::Device m_device;
cl::Platform m_platform;
std::vector<cl::Program> m_kernels;
public:
app_t();
int add_kernel(const char* filename);
void render();
};
|
845e10acf40e63b82c8bad04a7b12f4943483bf4 | 28470900ae045a017fbecde98cf9736b435022d4 | /practicePracticum3/15.cpp | 1693ac5aa40b39d2deb568de649baad7c8c71172 | [] | no_license | cwong907/CSCI1300 | 4c401d34ba5524365f1e05f771e324944a200422 | 91297de56d8d0d7f3806555704c5d8f62cf26ce5 | refs/heads/master | 2022-11-22T00:27:55.769876 | 2020-07-25T21:48:21 | 2020-07-25T21:48:21 | 282,524,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,231 | cpp | 15.cpp | /*1) Create a class named Stats with a default constructor, public methods ReadFile, getAvgStringLength, and getLongestString and private data member data,
which is a vector of strings, containing all the lines from the file.
2) The public method ReadFile will read each line from the given filename and store each... |
ce71f538e76638b4ec21b03a028899f96a769c7f | 7eb37492891889ffbe824fe4b193479ffe693e38 | /UiCommTools/UiCommTools/ULib.h | b0c549c6ddd7bacc2c999c0d5a59350efd2fa215 | [
"MIT"
] | permissive | hanbox/UInterfaceLib | 185c037d2c2babdcb9e9b76602d8096632d9f00d | 6724d5eda486fe604c13bc1bc11a66d3c53dec56 | refs/heads/master | 2021-06-12T12:51:49.335786 | 2017-02-19T16:00:17 | 2017-02-19T16:00:17 | 82,470,771 | 16 | 12 | null | null | null | null | GB18030 | C++ | false | false | 868 | h | ULib.h | #pragma once
//define
#define lib_max(a,b) (((a) > (b)) ? (a) : (b))
#define lib_min(a,b) (((a) < (b)) ? (a) : (b))
#include <string>
#include <sstream>
#include <vector>
using namespace std;
#define FORMAT_HEX 1
#define FORMAT_ASC 2
#define FORMAT_HEX_SPACE 3
#define FORMAT_ASC_SPACE 4
en... |
dd48fe7a369cd0130079181c3ceb71965d809f54 | 051739fa11d82e759ebcaf035f99512fb71b4b6a | /include/slirc/packages/load_module.hpp | e3a9cdd72a24f54626d812382f70b7eae42be5b6 | [] | no_license | SlashLife/libslirc | 278e994fb5d2cc2f103e3f3dffb8f8c4e8373643 | ffb726f808817c9f06b71c2d39712300c55f4822 | refs/heads/master | 2021-01-15T18:03:50.088475 | 2019-12-23T10:52:46 | 2019-12-23T10:52:46 | 2,335,717 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,391 | hpp | load_module.hpp | // Copyright 2018 Simon Stienen
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaim... |
944a5b67ff63f03abdfd4e34bac4934bfb880975 | fa04d2f56c8d4ebfb931968392811a127a4cb46c | /trunk/Cities3D/src/ModelCore/AggregatorObject.h | a9309cdea08e24b793bf1e9f758fb6b262c1e5e7 | [] | no_license | andrewlangemann/Cities3D | 9ea8b04eb8ec43d05145e0b91d1c542fa3163ab3 | 58c6510f609a0c8ef801c77f5be9ea622e338f9a | refs/heads/master | 2022-10-04T10:44:51.565770 | 2020-06-03T23:44:07 | 2020-06-03T23:44:07 | 268,979,591 | 0 | 0 | null | 2020-06-03T03:25:54 | 2020-06-03T03:25:53 | null | UTF-8 | C++ | false | false | 4,140 | h | AggregatorObject.h | /*
* Cities3D - Copyright (C) 2001-2009 Jason Fugate (saladyears@gmail.com)
*
* 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)
*... |
de78f2305a0f1dba4931dbcc695a1a7adefad98d | fbead987f6c42137c94c1b8d1b3a9fc690fb6846 | /include/Primitive.h | fa25e2c7487fc787f3b0e1f905bc77f04f65bd4b | [
"MIT"
] | permissive | vinihcampos/target | cf43f3655a5b9e1e0e01bbb175dd1d0211341a19 | 0233acf3a908ffb90d8b2d83ee3c201228582abb | refs/heads/master | 2020-04-30T12:00:16.970675 | 2019-06-25T07:22:27 | 2019-06-25T07:22:27 | 176,815,879 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,526 | h | Primitive.h | #ifndef _PRIMITIVE_
#define _PRIMITIVE_
#include "Ray.h"
#include "SurfaceInteraction.h"
#include "Material.h"
#include "Bounds3.h"
#include "Transform.h"
#include <string>
namespace target{
class SurfaceInteraction;
class Primitive{
protected:
std::shared_ptr<Material> material;
Bounds3 box;
public:
... |
565b21c9fba2aa069a89484c5a5c4cb1aafed031 | eafa900865214ba41e92425bbfb59c1185713c4b | /src/mtr.c++ | 98abf467149d0957d434bf78d1ad3dd219ab7451 | [] | no_license | alexey-luchinsky/directpsi | b2cc3f9dadf86a6dc7e01ea97320625e83767636 | e59a4c147e3251f949eb8606415fdc17766a1e4c | refs/heads/master | 2021-01-18T21:38:38.668303 | 2016-10-03T17:30:03 | 2016-10-03T17:30:03 | 69,737,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159,230 | mtr.c++ |
#include <iostream>
#include "math.h"
#include "mtr.h"
using namespace std;
extern double mc, qq, s, T, U, k1q, k2q;
extern double NG, NJ0, NJ1, NJ2;
double calc_matr0() { return 1;}
double calc_matr1() {
// -1 -1 -> 0 -1
double mtr=(-64*s*T*(4*Mcc*qq + (2*mc + Mcc)*(s - T - U))*U*(pow(k2q,2)*pow(s - T,2) + pow(k... | |
512ea7c234d31ac5f87872d80563941bb0f88109 | a97b9ad50e283b4e930ab59547806eb303b52c6f | /team/case8/C_dbldbl/1600/nut | 85431d74a167a4499b79763ad4fe5120f288084f | [] | no_license | harrisbk/OpenFOAM_run | fdcd4f81bd3205764988ea95c25fd2a5c130841b | 9591c98336561bcfb3b7259617b5363aacf48067 | refs/heads/master | 2016-09-05T08:45:27.965608 | 2015-11-16T19:08:34 | 2015-11-16T19:08:34 | 42,883,543 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 565,339 | nut | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
88dda3afeb6cb7e812ee3db138639683c3fbe193 | a61ee3ce335c9747da70b5cfec2ac48510243722 | /MADVPano/exiv2/source/image.cpp | f817e5fb85f5a45565e0554d32ea9050ac71521b | [] | no_license | MADV360/ImmoviewerMadventureDemo_iOS | 3b06cfeae8b1868e2fdebfe31c8f681b006a61e4 | c2f2651e34f6ec099e298cb4ca2d0dde7cac9925 | refs/heads/master | 2021-05-09T22:22:23.348207 | 2019-04-10T09:59:47 | 2019-04-10T09:59:47 | 118,747,968 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 39,050 | cpp | image.cpp | // ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2018 Exiv2 authors
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publish... |
468b0e4f562421f83a4b28f0a0abd66345d3f9ac | 4d2bae21685dbe97e8eb5ba9c7e8e9d847bcfbdb | /Visual_Studio_2013/Projects/sdclient/clientcom/FilesVec.h | 200fa27d7846f4b291faf261bec3cc392cd82e51 | [] | no_license | jamesxucq/Server_Workspace | b744a26ae739e2fa7e5b3053334f1ddae3af458d | fc1b58716132eb5ec398b939813ef52fb68d5cad | refs/heads/main | 2023-05-26T20:57:41.730820 | 2021-06-17T05:42:58 | 2021-06-17T05:42:58 | 377,662,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,110 | h | FilesVec.h | #pragma once
#include "common_macro.h"
#include <xstring>
using std::wstring;
#include <string>
using std::string;
#include <unordered_map>
using std::unordered_map; // namespace where class lives by default
#include <vector>
using std::vector;
//
struct attent {
DWORD action_type; /* add mod del list r... |
fb6e3a4b99ed2c813bff498a57955e179a4fa8b3 | c53181e450253f158496c7221071678a458565b1 | /MuseJiyugaoka/src/animation/Wing.h | 046853e5e47cc01e071556945d13cd3b38e97c7f | [] | no_license | haramakoto/MuseofJiyugaoka | 9c5648f7041ac2ebd4c28fd29eb6781e760a35ee | 2902937191e91a51e67b7a4d1333d3be70ca94f7 | refs/heads/master | 2016-09-09T23:40:31.141349 | 2010-12-15T09:51:39 | 2010-12-15T09:51:39 | 1,170,614 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | h | Wing.h | /*
* Wing.h
* PolyTest1
*
* Created by Hara Makoto on 10/11/30.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#ifndef __WING_H__
#define __WING_H__
#include "ofMain.h"
class Wing{
public:
Wing();
ofImage WingBody;
bool L_R;
void update();
void draw();
void setup();
void initWing... |
64402ded19096a1303af5fc46f04be88fc7b5dcf | 125ae0adb562478b184bbb35d40f2c43b335415c | /At5Lib/FeatureTypes/BaseFeatures.h | fd1b1b971c72de8a95196cfa5e8dc2b139d95be4 | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | UTF-8 | C++ | false | false | 7,254 | h | BaseFeatures.h | #ifndef AT5BASEFEATURES
#define AT5BASEFEATURES
#include "../CoreTypes/CoreTypes.h"
#include "../IO/DataStream.h"
namespace At5
{ //begin namespace
class tFeatureLibrary;
class tMiscTextLibrary;
class tAt5Data;
//Serialized data container
//! Feature data structure
/*!
This is a str... |
b8b2050a5762139a97f7e13883bb6d511071b75b | 7c4b1d0039173e3949bb6fc1ef824ba2499d8f57 | /HDU/problems/5942.cpp | 32bff633351d26db191b2b2252aa4fd1e63335d5 | [] | no_license | sdwalker233/ICPC | af73b75b73591b7a124684bc3d3d0cd8ba5a2bdf | a8706f00c30810b9523e5a190d6d542745bf921f | refs/heads/master | 2023-06-24T15:07:22.746366 | 2017-09-17T11:21:35 | 2017-09-17T11:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | cpp | 5942.cpp | #include <bits/stdc++.h>
#define MAXN 1000010
using namespace std;
const int mod=1e9+7;
bool not_prime[MAXN];
int tot=0,prime[MAXN],N=1000000;
long long res[MAXN],n;
int pnum[MAXN][10],cnt[MAXN];
void init()
{
int i,j;
for(i=2;i<=N;i++){
if(!not_prime[i]){
prime[++tot]=i;
}
for(j=1;j<=tot&&i*prime[j]<=N;j++... |
c38ac2f2ccb7c58885fd992b9b1c751af06d4e67 | f30af6e688cfbe2c97c404ef11e4352294a3ea26 | /src/engine/application.cpp | cb1bf3f7f427adf8bd8dc4182e5bee950fa7d160 | [
"MIT"
] | permissive | pjdixit/vxr | 19a286d72f05e3a466d6f6b1c637e8dc668bd13f | 9b21596dd8447fb6c8a0ff41a7a16a920401946b | refs/heads/master | 2020-08-12T09:01:55.626397 | 2019-04-19T20:41:09 | 2019-04-19T20:41:09 | 214,734,046 | 1 | 0 | MIT | 2019-10-13T00:07:41 | 2019-10-13T00:07:41 | null | WINDOWS-1250 | C++ | false | false | 5,350 | cpp | application.cpp | // ----------------------------------------------------------------------------------------
// MIT License
//
// Copyright(c) 2018 Víctor Ávila
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// i... |
a9985737148ac48d66a4690e8ff34d125f930ab4 | 9ccfb1ec8f1072374ade70436b7541be64c8b358 | /filter_stubs/normalize_constant_range.cpp | e148d107d1e4038642260f8a43a0139f6f88c775 | [
"MIT"
] | permissive | flyingfalling/salmap_rv | 5bc101c9a1eb8d0545c5ade8bb3c385d750f1b3a | 61827a42f456afcd9c930646de33bc3f9533e3e2 | refs/heads/master | 2023-02-11T08:27:02.759626 | 2020-11-25T16:21:50 | 2020-11-25T16:21:50 | 267,758,383 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 742 | cpp | normalize_constant_range.cpp |
auto i1 = GETINPUT("input");
auto output = GETOUTPUT("output");
if( false == scratch.initialized() )
{
scratch.float64( "norm_min" ) = param_as_float64( params, "min");
scratch.float64( "norm_max" ) = param_as_float64( params, "max");
if( scratch.float64("norm_min") == 0 && scratch.float64("norm_m... |
afd9aa86796300cb6ac68eb5434967569b402045 | bb255277e006175ebac4f2115de158e8e63433b1 | /maysa habbachi/ventilateurs.cpp | e0edafac8e4750ffd4a4bedc6a8ede95b9f6eb6f | [] | no_license | FirasSoltani/jade | 4447b2e31928f5b948daede3fcdd1986389baa23 | 7e23581058cd2e55a23bb10c5e66224e9b8fea6c | refs/heads/master | 2020-04-08T15:54:18.908429 | 2019-01-01T20:30:30 | 2019-01-01T20:30:30 | 159,496,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,600 | cpp | ventilateurs.cpp | #include "ventilateurs.h"
#include <QDebug>
Ventilateurs::Ventilateurs()
{
id=0;
emplacement="";
etat="";
intensite="";
}
Ventilateurs::Ventilateurs(QString emp,int idd,QString inte,QString et)
{
this->id=idd;
this->emplacement=emp;
this->etat=et;
this->intensite=inte;
}
QString Venti... |
6157ca25d027a07e2dc2a7e8ea61e224f4965bd8 | 6f7ee3eab2e539d52226b8c3d811f0916ad101eb | /3rdparty/humble-logging-library/examples/basic/basic_example.cpp | 023e014e0dfd56f4524510cc1225f6a5febf31c2 | [
"Apache-2.0"
] | permissive | evanfeng/cordova-cef | 2ac8cde6ea5fc5465f8a25dce2b24e50babcae27 | 669b79f3316634913e49acce0ea40d9257f221c5 | refs/heads/master | 2021-01-18T00:52:50.534409 | 2014-11-20T21:09:18 | 2014-11-20T21:09:18 | 29,507,815 | 0 | 0 | null | 2015-01-20T02:30:03 | 2015-01-20T02:30:02 | C++ | UTF-8 | C++ | false | false | 679 | cpp | basic_example.cpp | #include "humblelogging/api.h"
// 1# Create new logger.
HUMBLE_LOGGER(logger, "default");
using namespace humble::logging;
int main(int argc, char **argv)
{
// 2# Initialize some default settings.
// Change the default LogLevel, which every NEW Logger will have.
Factory &fac = Factory::getInstance();
fac.set... |
c8c8963bfb20da006856eec70d6081cda6439575 | 7dea08ae1ee8217793fb01b2964b60937ab28587 | /jiuzhang/powx-n/powx-n.cpp | a557c3af85f69d05b02e5ee4b6bf2fd638496e84 | [] | no_license | chunyang-wen/leetcode | 4ade9e7bb49851f73b369eb118d6cd803923d990 | 109e9b957c06989c163b110c32b0f392d182517c | refs/heads/master | 2021-03-13T00:06:50.952274 | 2016-11-02T04:14:32 | 2016-11-02T04:14:32 | 25,857,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | powx-n.cpp | /**
* 本代码由九章算法编辑提供。没有版权欢迎转发。
* - 九章算法致力于帮助更多中国人找到好的工作,教师团队均来自硅谷和国内的一线大公司在职工程师。
* - 现有的面试培训课程包括:九章算法班,系统设计班,九章强化班,Java入门与基础算法班
* - 更多详情请见官方网站:http://www.jiuzhang.com/
*/
class Solution {
public:
/**
* @param x the base number
* @param n the power number
* @return the result
*/
public:
... |
575450fdf95dbf2ea4bfc1303867d11c08d11309 | 9e3797fd47b4783e83a7357b556db7e57c10fd16 | /Stack_versus_heap/main.cpp | bbdee4838ac7dbb6536997c529bfd79c34287f52 | [] | no_license | georgecatalin/Qt-Core-for-Beginners-with-Cpp | d0b022c5a9fd3deec421828a442beb3649518d0e | 7d87ccbc4422a46165b1e9e3871271adc9a59b18 | refs/heads/master | 2022-09-17T21:07:03.644178 | 2020-06-03T08:05:42 | 2020-06-03T08:05:42 | 260,226,313 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 935 | cpp | main.cpp | #include <QCoreApplication>
#include <QDebug>
void display(QString* name)
{
qInfo()<<" The pointer is: "<<name;
qInfo()<<" The object is "<<&name<<" a copy of the pointer";
qInfo()<<" The value behind the pointer is "<<*name;
qInfo(" ");
}
int main(int argc, char *argv[])
{
QCoreApplication a(arg... |
5f62dcb994fb93f281a360a90e568383cd7d311a | 859b74be5826849bd466a4302879f04d3ae939be | /Classes/Login/LoginModel.h | 61251a51ca3fe42eedde6a16f0df4c0b9d1cc7b8 | [] | no_license | phihere/MIGUSDK | 15d5cdd70545e0b8aad3ecbc83fbdbe9e5cd55ca | e421da2db92300077d9259d839b2f9ce1fd126e4 | refs/heads/master | 2020-08-30T15:17:14.039112 | 2016-08-31T08:04:59 | 2016-08-31T08:04:59 | 66,434,099 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | h | LoginModel.h | #ifndef __LOGIN_MODEL_H
#define __LOGIN_MODEL_H
#include <string>
#include "../PublicDef.h"
MIGU_NS_COCOS
enum class Gender
{
male = 1,
female = 2
};
class LoginModel{
public:
void init(const std::string& token, const std::string& username){this->token = token; this->miguID = username;}
void update(const st... |
b9f526c5a789125e2636f5532618939a51891d12 | f68f72e3cfc593310c405a111b4fa4eac6fdcc87 | /geo.cpp | 69f0553dc1fbf737aa4483dd6538f2de8414567a | [] | no_license | weedge/geo | e828dd13202a8d79511754a219ddbe1f32b9f67b | 796d9061afa93757dd588f9ee0c46ca6c4a666b8 | refs/heads/master | 2021-01-01T05:38:18.307841 | 2017-09-03T17:07:25 | 2017-09-03T17:07:25 | 30,302,554 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,888 | cpp | geo.cpp | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2014 The PHP Group |
+--------------... |
5d8fa67c225d728917f76da1e38ab2d38563e494 | 9eed15a8dba1c06d53327097722197e61f8a0ee2 | /dbklib_test/idx_ring_tests.cpp | 9279afd6913ffdf0e116b8ba80c54247ec6a3f7f | [] | no_license | nh2oh/dbklib | d77207a26c7937809083ea9d2e70742731824835 | 9b59e2b9161377e92b9aa325baad2234c0ac10c4 | refs/heads/master | 2021-06-28T00:48:55.468678 | 2020-09-28T18:35:28 | 2020-09-28T18:35:28 | 154,320,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | idx_ring_tests.cpp | #include "gtest/gtest.h"
#include "dbklib\dbklib.h"
using namespace dbk;
TEST(idxRingTests, whatever) {
ring<7> r7 {0};
// 1,2,3,4,5,6,0,1,2,3,4,5,6,0,...
for (int i=-20; i<20; ++i) {
std::cout << "i="<<i<<": "<< "r+i= "<< (r7+i) << std::endl;
std::cout << "\t ring_pass(i,7) == "<< ring_pass(i,7) << std::endl;... |
323b48a910db39896439188482b418e49718944e | 8ff774e123febeb306131750d63d22f3483b2319 | /src/SmartIoT/LoopFunction.cpp | f184b2172473c706611034e12af8eaee4793168d | [
"MIT"
] | permissive | AntorFr/SmartIot | b79c5fa85116c402587ea6e63b4f669492ad7588 | 5966511af97f5d486f800248d2ac229d0f485331 | refs/heads/master | 2022-03-22T01:29:20.102205 | 2022-02-17T22:45:18 | 2022-02-17T22:45:18 | 160,933,793 | 3 | 0 | MIT | 2022-02-06T09:21:31 | 2018-12-08T11:47:03 | C++ | UTF-8 | C++ | false | false | 1,646 | cpp | LoopFunction.cpp | #include "LoopFunction.hpp"
using namespace SmartIotInternals;
LoopFunction::~LoopFunction() {
stop();
}
void LoopFunction::start() {
#ifdef ESP32
if (_multitask){
xTaskCreatePinnedToCore(_coreTaskImpl, "Task", 10000, this, 1,&_TaskHandle, 0);
} else if(_freq != 0) {
_ticker.attach(_freq, +[](Lo... |
67ba16d58190a862cdef991866b9a623f0fdf46c | 5e2aec2f1a4066738cd962d7b44797eecd37fbbf | /liblonely/src/gamedata/LaylaObjectPatternToken.cpp | 74643c49bc5b9547522a3a281b100408246be687 | [] | no_license | suppertails66/lonely | 119dcc030104b5a603b561f49e83ae2c7bb06845 | 10cb7bc2cbad06e8c41fab7ed484d9ea5a938b8f | refs/heads/master | 2021-01-12T06:07:46.773284 | 2017-01-10T05:48:06 | 2017-01-10T05:48:06 | 77,306,625 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,377 | cpp | LaylaObjectPatternToken.cpp | #include "gamedata/LaylaObjectPatternToken.h"
#include "util/ByteConversion.h"
#include "util/StringConversion.h"
#include "exception/TGenericException.h"
#include <iostream>
namespace Lonely {
LaylaObjectPatternToken::LaylaObjectPatternToken() { };
LaylaObjectPatternToken::~LaylaObjectPatternToken() { };
int ... |
afe42bd69dd66217c6f71b3171b780565bec73b4 | d8dde07d7c9cf75f7f18a91ab1dd74a4a261a9e7 | /contest/sgu/344.cpp | 6081f232c29ef79097f752e22ed35c3770a470a8 | [] | no_license | tiankonguse/ACM | 349109d3804e5b1a1de109ec48a2cb3b0dceaafc | ef70b8794c560cb87a6ba8f267e0cc5e9d06c31b | refs/heads/master | 2022-10-09T19:58:38.805515 | 2022-09-30T06:59:53 | 2022-09-30T06:59:53 | 8,998,504 | 82 | 51 | null | 2020-11-09T05:17:09 | 2013-03-25T04:04:26 | C++ | UTF-8 | C++ | false | false | 2,076 | cpp | 344.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <cctype>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <cassert>
using namespace std;
typedef long long LL;
#define N 1005
#define M 100005
int n , m ,... |
d7e384e807a7e608c468b812dbbb89b954b0e611 | 57cbfaa18d34c571294e259a69fe30dd01e71361 | /src/terrain.hpp | 56b417a28343fed6289dbbb69f3fe33aeb9c7d1c | [] | no_license | niwohlos/rts | b292218b3655741cece065b25b2ab45905d56011 | c07966ca342278b635ee1de54da8e810e545addc | refs/heads/master | 2021-01-23T22:07:22.537407 | 2013-03-31T04:40:49 | 2013-03-31T04:40:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | hpp | terrain.hpp | #ifndef TERRAIN_HPP
#define TERRAIN_HPP
#include "camera.hpp"
#include "shader.hpp"
class terrain
{
public:
terrain(const char *normal_height, const char *texture);
~terrain(void);
void draw(void);
void update_camera(camera *cam);
private:
unsigned normal_height_gl_... |
1946a3664a3b08e501a6b8d7d5a727a735817ce4 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/kernels/xpu/__xpu__mmdnn_compute.cc | 10e8e3c318d41a683624746bf17497b974af8e42 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | C++ | false | false | 47,389 | cc | __xpu__mmdnn_compute.cc | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
0b0ca6b73f37b5b8845132e7424843c354d007af | e32754430ba8183e8d5a3cdb787b153b6a2e00fe | /Engine/Maths/Quaternion.cpp | bbd5e498bc6d926495fc95ba18bd0aae42424b76 | [
"Apache-2.0"
] | permissive | ConfuzzledBovv/Game-Engine-Project | afcc35f2ca156f124ba9cf700f31896d5dd441be | f78ac3482ad5535bd111ba771377240564e8c876 | refs/heads/main | 2023-02-28T04:03:08.657079 | 2021-01-25T16:49:41 | 2021-01-25T16:49:41 | 332,816,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,405 | cpp | Quaternion.cpp | #include "Quaternion.h"
#include "iostream"
namespace Maths
{
Quaternion::Quaternion()
{
vector = Vector3D(0, 0, 0);
w = 0;
}
Quaternion::Quaternion(float _w, const Vector3D & _vector)
{
w = _w;
vector = _vector;
DegreesToRadians();
}
Quaternion::Quaternion(float _w, float x, float y, float z)
{
w ... |
753427ad35dc43ca58c58341e4705159cc446a3e | 156ac841801fd27334b94827f8d7223e92447cb4 | /sek_drive/src/drive_base.cpp | 44fce3f5a0ddc459b0aba6b2224b795545cd6bc6 | [] | no_license | gstavrinos/Sek_Slam | 19428e73f8f58e6bc05d07df42434be3832a0756 | c6c282f215dc2353b19f72fb3d14188b6479956c | refs/heads/master | 2021-01-22T10:01:45.310548 | 2014-05-07T11:58:11 | 2014-05-07T11:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,716 | cpp | drive_base.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <time.h>
#include <math.h>
#include <sensor_msgs/Joy.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Twist.h>
#include <tf/transform_broadcaster.h>
#include "robodev.cpp"
#include <sdc21... |
7325b03419427c7ce807b0366b4545ec26700401 | 73dd85be1397814f63fd0be42b656e97e7fb9400 | /Basics/prog4.cpp | 5996ba3021aa389208065250016d6354147965fa | [] | no_license | San0330/C-Codes | 818441bf0b06e52c943dd12af6795fd59dd74df3 | fc37890c72eb8f7f81491fd177985c80f8bb0740 | refs/heads/master | 2022-06-08T02:12:03.454523 | 2020-05-08T11:30:38 | 2020-05-08T11:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cpp | prog4.cpp | #include<iostream>
int main(){
int n1,n2,n3,n4,n5;
std::cout << "Enter any five integers seprated by space :" << std::endl;
std::cin >> n1 >> n2 >> n3 >> n4 >> n5;
int sum = (n1 + n2 + n3 + n4 + n5);
// sum and 5 is both int so sum/5 also gives int , hence we use 5.0f to get float point
float avg = su... |
651542525002a6dd769a825c790591f8aaaa90b7 | 4de74b60f7b0131784a99e963be3cfdc9271ec50 | /src/planner_class.cpp | 79a1e0ae96da80e1ca05f1a3d6b98538eb917161 | [] | no_license | ManasGupta93/Discrete-Planner | 33c6fb8a865a98bf8f50d8230ef2e5a7d2946ef1 | 067dcf860049175e778d70e0fe3221f170c21d70 | refs/heads/master | 2020-05-09T11:10:40.991798 | 2019-05-01T18:26:23 | 2019-05-01T18:26:23 | 181,070,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,677 | cpp | planner_class.cpp | #include "include/planner_class.hpp" // Including the class definitions
Planner::Planner(int max_step_number) // Constructor
{
max_step=max_step_number;
}
pose Planner::move_right(pose& curr_pose) // Method to move to a right state
{
this->new_pose.x=curr_pose.x;
this->n... |
067e2ebf6e29ad622660d1ed7525c575476f4fa6 | e7b6e91890471a05314be4fa615aa5f82bfab653 | /test/base64_test.cpp | 529104b74110bc3e7d37414508136a105be1a1f7 | [
"Apache-2.0"
] | permissive | vogro-x/vogro-utils | d67eb1d1784bace0dfb119f07f0495522a2d6e01 | bdca27d31f7d0035479a070872ada6dc5966983e | refs/heads/master | 2020-03-27T10:34:45.812070 | 2018-09-24T07:05:33 | 2018-09-24T07:05:33 | 146,430,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,920 | cpp | base64_test.cpp | //boost库引用文件
#include <boost/archive/iterators/base64_from_binary.hpp>
#include <boost/archive/iterators/binary_from_base64.hpp>
#include <boost/archive/iterators/transform_width.hpp>
//标准库
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
using namespace boost::archive::iterators;
//Bas... |
7fa160cbaf94eeb471f6fdd8429449e0fd412d2b | 942bc7a374ced8f96a139feac1a01148cc4e60d7 | /curl/nscurl.cpp | 2a7f848708ac15aed0d43a59c906de224428a93a | [] | no_license | p-ameline/Episodus | 915b0dfa324a0b9374b887f0fc9fd74a599b9ae3 | 8bba0a26e267cff40a7669c6ae47647c68a30834 | refs/heads/master | 2022-04-07T12:39:09.224028 | 2020-03-06T09:20:03 | 2020-03-06T09:20:03 | 119,287,108 | 1 | 3 | null | null | null | null | ISO-8859-1 | C++ | false | false | 16,087 | cpp | nscurl.cpp | //---------------------------------------------------------------------------
#include <stdio.h>
#include <sysutils.hpp> // needed for FileExists
#include "curl\nscurl.h"
#include "nautilus\nssuper.h"
#include "partage\nsdivfct.h"
#include "partage\nsdivfile.h"
/**********************************************... |
00ddde4767342806b2bc1825acf8e0524f1e479a | fada2fe331320ece52dc8420f1bcf3d319c372cf | /RecursiveFilter.h | e10be196504b6fab1be3884b748e9bf4dcb15cd5 | [] | no_license | andhieSetyabudi/filter-library | f33dc152c8286bea048d395267a6c792c07d2a81 | d67b3df3e58c57e740c52ee829ad4ad69d7f79f1 | refs/heads/master | 2020-04-15T15:11:46.525150 | 2019-04-09T02:52:33 | 2019-04-09T02:52:33 | 164,784,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 866 | h | RecursiveFilter.h | /*
This library's purpose to create simple-linear-filter recursively
simply way to filtering data-series on mcu ( arduino or stm32 board)
Lib_name : FILTER
AUTHOR : Andri Setyabudi ;
*/
#pragma once
#ifndef RECURSIVEFILTER_H
#define RECURSIVEFILTER_H
// constant variables bellow is in percent
... |
cd9f773012f4d2f20efc7157d213efdacdd98199 | bb51b3ddf8237ed6a0a9d2e7e59e92d6090ffec0 | /JKW_MQTT_PWM_PIR_TEMP/src32/src/globals.cpp | b0f719b77ff510a1517d8c6e90d5a13dcbca7ed9 | [] | no_license | schimi42/ESP8266_mqtt_pwm_pir_temp | 56048cc61384a2d5c2c50e40eb839dff879c3c3c | 7e022193457d0259deb206f439e9522d3563678f | refs/heads/master | 2020-06-11T07:43:40.387943 | 2019-06-25T19:35:31 | 2019-06-25T19:35:31 | 193,894,090 | 0 | 0 | null | 2019-06-26T11:47:55 | 2019-06-26T11:47:55 | null | UTF-8 | C++ | false | false | 1,404 | cpp | globals.cpp | #include "main.h"
capability *p_adc;
capability *p_bOne;
capability *p_button;
capability *p_neo;
capability *p_pir;
capability *p_pir2;
capability *p_pwm;
capability *p_pwm2;
capability *p_pwm3;
capability *p_rssi;
capability *p_simple_light;
capability *p_dht;
capability *p_ds;
capability *p_ai;
capability *p_light... |
577e3b4a95ee96d22ac93b2756fcd50a0c555266 | 499f220afdb8293a31041a0a06bf8a1d8af18029 | /Lab_Works/DSA _Lab/Algorithms/insertarray.cpp | 852ade72e57a8ab71a9b46262b79bec5d5ba0df9 | [] | no_license | acharyasandeep/Lab_Works | c89660613d90599991da78a54b5738c28c467583 | 42676a9a8960fb86f639692ad856af6fa826ee8f | refs/heads/main | 2023-03-14T06:55:21.672477 | 2021-02-23T17:51:12 | 2021-02-23T17:51:12 | 336,042,713 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | insertarray.cpp | #include <iostream>
#include <chrono>
using namespace std::chrono;
auto start = high_resolution_clock::now();
using namespace std;
void insertarray(int arr[], int ,int,int);
int main()
{
int newarr[4] = {0,1,2,3};
cout<<"The given array is: ";
for (int i=0;i<4;i++)
cout<<newarr[i]<<" ";
cout<<... |
28e12c59051895d6c419f3b2f624670bf58e17e4 | d622b6b74b51effbc47bd6d7150aa505da91ae2b | /build-ESOINlib-Desktop_Qt_5_4_0_MSVC2012_OpenGL_32bit-Debug/debug/qrc_qml.cpp | 0a724250fcfb3b741b77d6c0286e01bd4fd81957 | [] | no_license | VincentoLaw/ESOINNlib | d1a7d79d8f3c0c9dfdf4e70ef2463077f0ee0b7d | 8e4e9185e26e01591451a00c6a8d284d505debad | refs/heads/master | 2021-01-10T19:54:56.869820 | 2018-01-18T20:57:14 | 2018-01-18T20:57:14 | 21,893,644 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,531 | cpp | qrc_qml.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.4.0
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
ef57642347a6140c89a4baeaf6661e36bdc469f4 | 6a317387d83036595d29cdc75db61d1ce007d0b0 | /examples/resource-dynamic-forall.cpp | 1f9f4bcd8837450e93bdf88c92ae76769770d499 | [
"BSD-3-Clause",
"MIT"
] | permissive | LLNL/RAJA | e06cca47fc630a9a141077049f9dd50d45800c12 | e78b1eb03cbcd9f954c9f54ea79b5f6f479bde45 | refs/heads/develop | 2023-09-04T03:49:31.213514 | 2023-08-29T16:57:38 | 2023-08-29T16:57:38 | 57,340,960 | 414 | 114 | BSD-3-Clause | 2023-09-13T09:06:25 | 2016-04-28T23:46:22 | C++ | UTF-8 | C++ | false | false | 4,235 | cpp | resource-dynamic-forall.cpp | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-23, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
f2ead2dc174a8b7a45cfe3a581eed104a5763a3b | 925edd34f9341f18cd585322261033c0e5aad667 | /BVTest/helpfunctions.cpp | 5c9142eace72abda66cf642a5b0e7caf480cea6f | [] | no_license | GraphCompressionProject/Pro | 7350b54f314ef4b8e61154b1226559e7115b232a | ce42802ef2c32016dbbc9c1e4c65f698ede11a82 | refs/heads/master | 2022-01-09T04:11:32.275735 | 2019-05-17T12:11:27 | 2019-05-17T12:11:27 | 166,197,624 | 1 | 0 | null | 2019-03-11T23:10:30 | 2019-01-17T09:23:38 | C++ | UTF-8 | C++ | false | false | 1,326 | cpp | helpfunctions.cpp | #include "stdafx.h"
#include "helpfunctions.h"
#include <iostream>
#include <string>
/*
* Extention of the adjacency matrix in the case
* where its size is not a power of k
* Inputs :
* - A: Original Matrix
* - n : the resulted size
*/
using namespace std;
void helpfunctions::extend_matrix(std::vector<boost... |
f402d4d7f5d4f7c6abd4cfadcbb2f7f01d20ec17 | be31580024b7fb89884cfc9f7e8b8c4f5af67cfa | /CTDL1/New folder/VC/VCWizards/CodeWiz/MFC/Simple/Templates/1031/generic.h | 564d03bc7fcd34a6663a456bec18fb313a8a2149 | [] | no_license | Dat0309/CTDL-GT1 | eebb73a24bd4fecf0ddb8428805017e88e4ad9da | 8b5a7ed4f98e5d553bf3c284cd165ae2bd7c5dcc | refs/heads/main | 2023-06-09T23:04:49.994095 | 2021-06-23T03:34:47 | 2021-06-23T03:34:47 | 379,462,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | h | generic.h | #pragma once
// [!output CLASS_NAME]-Befehlsziel
class [!output CLASS_NAME] : public [!output BASE_CLASS]
{
public:
[!if CINTERNETSESSION]
[!output CLASS_NAME](LPCTSTR pstrAgent = NULL,
DWORD dwContext = 1,
DWORD dwAccessType = PRE_CONFIG_INTERNET_ACCESS,
LPCTSTR pstrProxyName = NULL,
LPCTSTR pstrProxyBypass... |
a3aac5b59055c9cc3ead59e00342529c64568fc8 | 185089c777f7a414c2c9ee39922153336f4db92f | /chapter3/drill3_6.cpp | a8234ff92880c309dd731a6a236e7a67c708eb0d | [] | no_license | cficien/cpp | 57ab078f52886ebff1de7de8aa136dfac0709bd4 | af4d550f0ff349102656d4bc9f99ba9b06e71872 | refs/heads/master | 2020-04-05T13:53:52.146474 | 2015-07-07T03:06:00 | 2015-07-07T03:06:00 | 37,111,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | cpp | drill3_6.cpp | // prompt the user for the age of the recipient
#include "std_lib_facilities.h"
int main() {
cout << "Enter the age of the recipient\n";
int age;
cin >> age;
cout << "I hear you just had a birthday and you are " << age
<< "\tyear old\n";
if (age <= 12) {
++age;
cout << "Next year you will be "... |
71c1aea6f2e1ae5d0ba40417a3239693adea2ef4 | 3868b19f3d33b213cad26013799bbbac7837d3b1 | /src/gamestatejson_tests.cpp | d98242e1b90e8df7a865169e41e70f2ca876da5f | [
"MIT"
] | permissive | xaya/xid | b4fe15cc72b910f00548150fdbca5c673718afdb | cac89c4861e5c2c4fa8d4a439a22fd7c12e5143b | refs/heads/master | 2022-08-18T10:45:34.501928 | 2022-06-14T12:26:23 | 2022-06-14T12:26:23 | 170,554,939 | 12 | 5 | MIT | 2021-04-12T10:56:51 | 2019-02-13T18:06:47 | C++ | UTF-8 | C++ | false | false | 3,921 | cpp | gamestatejson_tests.cpp | // Copyright (C) 2019-2020 The Xaya developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "gamestatejson.hpp"
#include "dbtest.hpp"
#include "testutils.hpp"
#include <gtest/gtest.h>
#include <glog/logging.h>
#i... |
c2468918dce3747f29888162005d420124779bc9 | e0cd16e9d5869dd21a5d45f838412b0e14c947fd | /cowichan_mpi/norm.cpp | de94bc2ac440240582e2548f009430785cd8514e | [] | no_license | ptkila/cowichan | d193fdfc109bbf1b5dca802a65910d79b7f6d612 | 42ce55bbda400d839d5d5e4c22fda103556b3698 | refs/heads/master | 2021-01-01T05:59:27.199307 | 2010-12-09T03:07:55 | 2010-12-09T03:07:55 | 34,251,347 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,867 | cpp | norm.cpp | /**
* \file cowichan_mpi/norm.cpp
* \brief MPI point normalization implementation.
* \see CowichanMPI::norm
*/
#include "cowichan_mpi.hpp"
namespace cowichan_mpi {
/**
* Find min/max point positions.
* \param vec vector of points.
* \param n number of points.
* \param ptMin minimum location.
* \param ptMax ... |
ee32ecdddacbde979e4bf8c0a30c485fbe69472c | 227e42764b440331e7b71c9536ae2d0260dbbad5 | /lib/OSLErrorHandler.cpp | 9ec6934561bd38d12da1069017771675b5605c1d | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gzorin/LLOSL | 0170b5b044ada44685d8c8be246d717d81879828 | 23ed0ab7267c484d7b6f74b8e314e72608179415 | refs/heads/master | 2022-04-09T19:04:31.241328 | 2020-03-03T12:21:12 | 2020-03-19T20:30:53 | 230,159,934 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,300 | cpp | OSLErrorHandler.cpp | #include "OSLErrorHandler.h"
namespace llosl {
namespace {
struct ErrorCategory : std::error_category {
static const ErrorCategory &Get() {
static ErrorCategory s_error_category;
return s_error_category;
}
const char *name() const noexcept override { return "OSL"; };
std::string mes... |
8a846872b17498dde13b5f3333e49b6bef4fea09 | c66e29d76483baa27cbe24cb155fd402deae6f32 | /fw/arduino/js/regs.local.cpp | 573abe9d6f30251c394c729743042307bcff37fe | [
"MIT"
] | permissive | celephicus/tadtas-joystick | b7d266d1a200ac641efe7f33988e9a778f23ded8 | daa655da6d299be6642ed11e78ab8fce464c8434 | refs/heads/main | 2023-08-15T10:25:20.238294 | 2021-09-27T08:41:29 | 2021-09-27T08:41:29 | 381,234,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 74 | cpp | regs.local.cpp | #include <Arduino.h>
#include "regs.h"
void regsExtraSetDefaults() {
}
|
fc868a08e78804d6341aaa9184364c6989c5f164 | 6681418005d4016a77b09559171c3c3cab33aa1e | /数据结构-C/Tree/Example&霍夫曼编码.cpp | 10dfa92aaa78c175b8ced3ecc0eb58ac499a725d | [] | no_license | LuckPsyduck/Data-Structure-Example | ae675ccc7c8d5f7f8527f7b454b330afabc840ae | 76e1b99a2671aed8f953033e5e83d3ed0384383b | refs/heads/master | 2022-07-03T17:07:07.704047 | 2020-05-16T10:22:09 | 2020-05-16T10:22:09 | 264,411,852 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,034 | cpp | Example&霍夫曼编码.cpp | // 霍夫曼编码.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#define n 5 // 5个数据
#define m (2*n)-1 // 循环建立结点,总计为(2*n)-1
#define maxval 10000.0
#define maxisize 100
typedef struct
{
char ch;
float weight;
int lchild, rchild, parent;
}hufmtree;
typedef struct
{
char bits[n];
int start;//编码在位串的... |
0722a91a1490efe72564a4292e36d18b27decc7a | 9d9895a4f36fc3b8f745374cc9bf4f609cf758b3 | /Hdu reverse.cpp | 606670a02269599a77a666e0b062ce34d27e4150 | [] | no_license | saif1642/Competitive-Programming-Solving | edf600e5f246f98c2a0e7181daa17d247ac63d8a | 0d8f537419b1662f6f576820b807a9a67d62f8e2 | refs/heads/master | 2020-03-06T20:39:10.687943 | 2018-03-27T23:46:22 | 2018-03-27T23:46:22 | 127,058,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | Hdu reverse.cpp | #include<stdio.h>
#include<stack>
#include<string>
using namespace std;
int main(){
stack<char>s;
int t;
scanf("%d",&t);
getchar();
while(t--){
char x;
while(1){
x=getchar();
if(x!=' '&&x!='\n'&&x!=EOF)
s.push(x);
else{
... |
68fc7d458eba8872b32b20e10db96aad9b4ed41f | e74a8648f80d0a56114c79797fb1290a0daae875 | /p1753.cpp | 3926b3d421501ab44d054d1c011b5eaf2c8595a9 | [] | no_license | SimJung/Baekjoon_20190704 | 0f8d6be1492395f396bead945963704e068660cb | e40ea8c48c762b3338512c9857d4b8ff0db950d9 | refs/heads/master | 2021-07-11T04:58:58.108981 | 2020-10-13T10:48:49 | 2020-10-13T10:48:49 | 195,100,613 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,021 | cpp | p1753.cpp | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
#define pi pair<int, int>
#define INF 2100000000
int dist[20001];
//first: 가중치, second: 도착지
vector<pi> edges[20001];
int vc, e, k, u, v, w;
priority_queue<pi, vector<pi>, greater<pi>> pq;
int main()
{
ios::sync_with_stdio(false);
cin.tie(NU... |
0d7535eeb5e64e3c3b00db178ee740a937e01e7e | f05cd27a7a7c32a4c750b50c456c662be4159422 | /Project6/Real.h | 56983d172f5d90174a504da9285101d55cc65009 | [] | no_license | Iceberry-qdd/C-Problem | dea6d2de30fd7b6d85720ba09b8241f1a97e9d92 | 4973867fde61c4b628578287fde9dc39f3cfd2d1 | refs/heads/master | 2020-12-09T19:44:56.153264 | 2020-01-13T00:20:17 | 2020-01-13T00:20:17 | 233,401,298 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | h | Real.h | #ifndef REAL
#define REAL
#include"Complex.h"
class Real :public Complex {
public:
Real(double real);
void DispRoot();
};
#endif |
8e319c96a2ec5e98f1e9b5409bbb397d7458ca04 | b9b8862e5e21b285d0f95008ace3769141ba755d | /include/ignition/physics/detail/Joint.hh | 2bf543f803314f61b1aba0ab73bd2837725f279b | [
"Apache-2.0"
] | permissive | vatanaksoytezer/ign-physics | 61d29576cc4036224ca45ca8eccc91e1e85f317f | 9d5cc9abd29488fd2d2f2ff0d6b3e5ac0e13d392 | refs/heads/main | 2023-07-11T02:08:22.906603 | 2021-07-10T01:50:15 | 2021-07-10T01:50:15 | 385,698,216 | 0 | 0 | NOASSERTION | 2021-07-13T18:21:28 | 2021-07-13T18:21:27 | null | UTF-8 | C++ | false | false | 6,355 | hh | Joint.hh | /*
* 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... |
46d080a77b63741b131d04620f15fa38cadb7d5a | 7b5a30718e95ae75b2a8b0bf8bb0a8e34cb9804a | /Koala/CompanyInfoDlg.h | 48c8b805e4c8f99f472103b29286bab7cff92201 | [] | no_license | koalajack/koalachainclient | b5cfd2df28b1c1e6927161515f0047bb793e9667 | 712dc57d63c160412b26074bdd05f0b7b2b40724 | refs/heads/master | 2021-01-02T09:44:51.972008 | 2017-08-04T00:43:27 | 2017-08-04T00:43:27 | 99,200,011 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,082 | h | CompanyInfoDlg.h | #pragma once
#include "afxcmn.h"
#include "ListCtrlCl.h"
#include "afxbutton.h"
#include "afxwin.h"
// CCompanyInfoDlg 对话框
#define NUM_IN_PAGE 14 //一页显示多少行
struct LIST_APP_DATA
{
string scriptId;
string entName;
string entAddr;
double fQuotaByTime;
double fQuotaByDay;
double fBalance;
double fWithdrawByTo... |
bfe8512e265382c03bbbded51b202adf9cbf667f | 5aa8a54280f446fa38b841922e1cd9c99e8e862f | /DP/AtCoder Educational Contest/q.cpp | fc66f019110c83ef0566969e3056e98b4b6cbf5e | [] | no_license | lucasturci/Competitive_Programming | 72a458f8ed11a434d067f9cdf749b934da369339 | 8323aa16bcded05d2de83d057c51ace5fd63cfca | refs/heads/master | 2021-06-15T02:17:14.141431 | 2021-02-02T00:50:53 | 2021-02-02T00:50:53 | 130,897,029 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | cpp | q.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
const int N = 3007;
const int M = 1e9 + 7;
int f[N][N];
int n;
string s;
int pre[N], suf[N];
int main() {
cin >> n;
cin >> s;
s += '<';
f[0][1] = 1;
pre[1] = 1;
suf[1] = 1;
for(int i = 1; i <= n... |
e363baa97b9d2bf1a01caf195662a1f22e6d64bf | 6939bd7b6714498a8bad2c22cb4ad3d89918c97e | /src/Configurable.h | ed96132c5a5a181eb868429b5d3e4208a7dcbd23 | [
"MIT"
] | permissive | CommonLoon102/nes-dono | 78a302f8ffc455c36fdd9a2f3fa2dc9bc54ae9a6 | d5b86458423b9e044e265d001bcd77e59289274d | refs/heads/main | 2023-08-18T21:56:53.958606 | 2021-10-19T19:57:43 | 2021-10-19T19:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197 | h | Configurable.h | #pragma once
#include <fstream>
#include "Serialization.h"
class Configurable
{
public:
virtual void Configure(Serialization::BaseFunctor& functor) = 0;
virtual void SetDefaultConfig() = 0;
}; |
b875f6dd7a8da3f83b3e373afb831e25ee188ec7 | 31b46571743549c87881eb378df2b417da5aec4b | /ques21 (1).cpp | cb3f8a395b39209ef51d4ccfeff0c7fafb10c73b | [] | no_license | ShreyasP7495/DP-2 | d96afa9d00d23be4af8384b8bd17c0ebb57c2d50 | ce145eb7a3496f6c6e899a83b2de180c627a0612 | refs/heads/master | 2020-12-03T11:58:33.092666 | 2020-01-03T10:48:19 | 2020-01-03T10:48:19 | 231,306,945 | 0 | 0 | null | 2020-01-02T04:22:36 | 2020-01-02T04:22:35 | null | UTF-8 | C++ | false | false | 1,201 | cpp | ques21 (1).cpp | Time complexity-O(n)
Space Complexity-O(n)
Did the code run on Leetcode? Yes
#include <iostream>
#include<vector>
using namespace std;
class Solution {
public:
int compare(int a,int b,int c)
{
if(a<=b && a<=c)
return a;
else if(b<=a && b<=c)
return b;
else
... |
f83f75c1b2ae797bf4a953399f21f7ccbdb5246c | e825b1623168d4abd5acaa5d00e6ba2c6fd5c52e | /TimerwithButtons.ino | 24280fc35ea3c5a4d25919370ec186d23fbb3500 | [] | no_license | TLeigh315/ForgetMeNot | 2c92657bb066a59ee2a0f412b00095ee966b0279 | 588582eddc357899885f7f22e45b16952b38b75d | refs/heads/master | 2020-03-14T04:43:01.483809 | 2018-11-20T04:51:08 | 2018-11-20T04:51:08 | 131,447,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,379 | ino | TimerwithButtons.ino | const int onbutton = 9; //Symbolizes parent out of range of BLE
const int offbutton = 8; //Parent has returned and interacted with child
int second = 0;
int minute =0;
int onState = 0; //Variable for reading on button status
int offState = 0; //Variable for reading off button status
void setup() {
Serial.begin(11520... |
1dd61688d013338dbfb01938e06af73bcac4a67c | d7b22d4d71995e42d2e5dfa1225230b2f145c3b7 | /cppcode/wentiqiujie/test.cpp | 5e49f35f7b87802c7ebdea33acc95c9cb23c440d | [] | no_license | shenyushi/mycppProject | cdb5c1a03b3c45f1aad8db0a1c6407fdab34cf4e | 03e3e8283e09e7ea22aa53aabf117cb70954e97e | refs/heads/master | 2020-08-12T18:08:29.402312 | 2019-10-15T01:27:58 | 2019-10-15T01:27:58 | 214,816,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | test.cpp | #include <iostream>
using namespace std;
#include <iomanip>
#include <math.h>
int main()
{
double v;
cin >> v;
int integer = floor(v);
double decimal = v - integer;
long long int tmp = decimal * 1000000;
int d[] = {tmp / 100000, tmp / 10000 % 10, tmp / 1000 % 10, tmp / 100 % 10, tmp / 10 % 10, t... |
6293faa32607b6bd06a293ba2a7ad73543513f4d | e424b3e37403c9059ccd20eed91e6746a5884979 | /LithiumBMS/LithiumBMS/LowPowerTimer.h | b50bc57888e8c5aaa4e837691d68c62f32b9f932 | [
"MIT"
] | permissive | ericguan123/LithiumBMS | dee45b9e9f71da82a01fdb7ff72bc837cb0d4ed2 | cc17f6a5baedba840e0d1ac203bbf102da6f1d6e | refs/heads/master | 2021-02-17T08:25:53.177578 | 2018-05-10T14:25:22 | 2018-05-10T14:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | LowPowerTimer.h | #ifndef LOW_POWER_TIMER_H_
#define LOW_POWER_TIMER_H_
#include "stm32l0xx_hal.h"
class LowPowerTimer {
public:
LowPowerTimer();
void EnableLSI();
void SetTimeoutAfter(float seconds);
void SetTimeoutDone();
bool IsTimeoutDone() {
return done_;
}
void TimeoutDoneAck() {
done_ = 0;
}
void LPTIM_IS... |
6cf6943a143d9ad31a1bf5568f02a9d016af7686 | b260306b4d817f353bd7368ee584fa90e261dbb6 | /DFS_EightQueen.cpp | 0b8b0adb21618afd0f2d47beb7b030def16338bf | [
"MIT"
] | permissive | hgrui/algorithms | 5ac78790e7742d33504ca05c4d73dbd6995be185 | 4eeda583c06df4e11f875afe04bf414d8c8f6389 | refs/heads/master | 2021-09-05T22:19:21.880152 | 2018-01-31T09:51:58 | 2018-01-31T09:51:58 | 119,665,747 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,321 | cpp | DFS_EightQueen.cpp | #include<iostream>
using namespace::std;
#include<math.h>
#include <stdlib.h>
#include<conio.h>
#define NUM 12
void showQueens(int queenArr[],int nlen,int &nums)
{
nums++;
/* cout<<nums<<endl;
for(int i=0;i<nlen;i++)
{
for(int j=0;j<queenArr[i];j++)
{
cout<<"0 ";
}
cout<<"1 "... |
0e4ca3c4f8b0c5bdbea4a407be9943c6e8c7fb2a | 4551db753842d65d18cac3683de37e2c761a2540 | /2 semester/TSP/tsp_problem/graph/disjoint_set/disjoint_set.cpp | 3e983a25a9463ffe4ddde3b4c6dba2f201594c6a | [] | no_license | houcha/algorithms | eb7a14be39d2eae21d1d4b6442b798fda10a8ba6 | b68edc250decc118305135a21db9340ae27bf549 | refs/heads/master | 2021-06-16T12:38:55.914761 | 2021-03-13T14:13:06 | 2021-03-13T14:13:06 | 178,891,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | disjoint_set.cpp | #include "disjoint_set.h"
element_type DisjointSet::Find(element_type element) {
return parent[element] == element ? parent[element] : parent[element] = Find(parent[element]);
}
void DisjointSet::Union(element_type first, element_type second) {
element_type firstParent = Find(first);
element_type secondParent =... |
00e8c26823a3a722a83b551a0b3801ab705b4d0f | e0832d35207eca2519ee50fdd83fb4737b47e9c5 | /AtCoder/ABC185/c4.cpp | 5d062b9e5ce1ada1cd526082a1c16a9da3982e77 | [] | no_license | soqutto/practice | f202f7f5ba17d2c98b8e8323ac22e541daac8dbf | fa9f4749d5862037416e7c229ed4fda544a16229 | refs/heads/master | 2023-05-02T07:46:10.885731 | 2021-05-21T05:44:00 | 2021-05-21T05:44:00 | 310,563,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | cpp | c4.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int L;
cin >> L;
__uint128_t ans = 1;
for(int i = L-1; i >= L-11; --i){
ans *= i;
}
for(int i = 11; i >= 1; --i){
ans /= i;
}
cout << (int64_t)ans;
return 0;
}
|
8d4d9ce3043d13d62622d6f6f9afa792b4b68b14 | 12714412e750e7404aa7514fffa3673bf83f4803 | /c++/二叉树.cpp | 916a4939d1cede1d2cbc0f5d215bcfdf128be590 | [
"MIT"
] | permissive | dateolive/datastruct-and-algorithm | c29ee5667f37b8725c3e4e440b95ea1dd4183f27 | cfe4bbcfb857fc07cb4b98368b48034ab0bc1ed2 | refs/heads/master | 2023-01-23T14:05:51.904740 | 2020-11-30T06:14:23 | 2020-11-30T06:14:23 | 294,013,148 | 5 | 1 | null | null | null | null | GB18030 | C++ | false | false | 5,241 | cpp | 二叉树.cpp | #include<bits/stdc++.h>
#define MaxSize 1000
using namespace std;
typedef struct Node{
char data;
int ltag;//0=>指向左子树 1=>指向前驱节点
int rtag;//0=?指向右子树 1=>指向后继节点
Node *lchild, *rchild; //定义左右节点
}*BitTree, BitTNode;
BitTree pre=NULL;//线索化,指向当前结点的前驱结点的指针
//二叉树创建
void CreateBinaryTree(BitTree &T){
BitTree Tre[MaxSi... |
f2a8c5f5e5f3a00e5306560a780cd38b7c7949cf | be85fffb3da2b14d36461ba46879385a004a0240 | /SPOJ/adatrip/a.cpp | 0c221fdbbb1b211bc3eaa8d23d826d675e779165 | [] | no_license | r0ck1n70sh/competitive | d46d6d37cb6e55fa5ff1a68b2d9ffbf769b91216 | 2ce731ef5eec096760cf4bee50339f570a58edb3 | refs/heads/master | 2022-11-23T11:37:47.822087 | 2022-11-09T16:56:39 | 2022-11-09T16:56:39 | 226,349,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | cpp | a.cpp | #include <bits/stdc++.h>
#define max1 500000+5
#define max 1000000
#define INF 1e9
void dijktra(int s);
std::vector<std::pair<int, int>> V[max1];
int dist[max1];
bool vis[max1];
int N, M;
int main() {
int Q, count=0, mostDist=0;
int x, y, l, q;
scanf("%d%d%d", &N, &M, &Q);
for(int i=0; i<M; i++) {
scanf("%d%d%d",... |
d4459b801028ba06ef91ff8c4cd007b3c7831d7e | 4af691bc6f0530d2c06d1239c53956ba542a3354 | /Scheme/SchemeBuffer.cpp | e14752e65f6b61c41c1cd5a917bca1a0c12a00c1 | [] | no_license | owensss/renkou | ce9cadfc7903d272e512217cb9f00e0269bc6884 | 5ab84a70031f61ec5bc2b0d3fa3062499a68cf32 | refs/heads/master | 2016-09-06T03:56:04.228489 | 2014-03-12T07:58:57 | 2014-03-12T07:58:57 | 9,868,027 | 3 | 0 | null | 2014-03-12T08:01:15 | 2013-05-05T12:10:02 | C++ | UTF-8 | C++ | false | false | 9,899 | cpp | SchemeBuffer.cpp | #include "SchemeBuffer.hpp"
#include "Scheme.hpp"
#include "schememetadata.h"
#include <ctime>
#include <cstdio>
#include <cstring>
#include <QString>
#include <QFile>
#include <QTextStream>
#include <QStringList>
#include <QDebug>
#include <QTextCodec>
#include <windows.h>
#include <utility> // std::swap
// #define _D... |
6e7dd9bc9f4d2f55c07383843741f793929ce0af | af5c13cb0c192288b178a5d8a68be66cc0987f66 | /engine/src/world/effect/material.cpp | ae212afb7778b16d0ebf916c3e27833648a5aa1d | [] | no_license | hswope/collada-engine | 495bc8f32fb8499cf28b3675ccbc4e211cb56abb | 61eb96219b772269b746630d5c30777e86ed5a17 | refs/heads/master | 2020-03-27T18:11:05.247409 | 2018-08-31T14:48:33 | 2018-08-31T14:48:33 | 146,903,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,610 | cpp | material.cpp | #include "material.h"
Material::Material()
{
}
Material::~Material()
{
}
WorldObjectPtr Material::clone()
{
MaterialPtr obj = MaterialPtr::create();
obj->copy(*this);
return obj;
}
void Material::copy(const Material &material)
{
WorldObject::copy(material);
this->emission = material.emission;
... |
27f4101b30fca41f444c2a78e05c39403b4f551c | f80fb7e84e6a6fb6b66edb9aa14c72649444cf43 | /timer/mainwindow.cpp | cbde46cf74f5b383833ecca51f96a45de44c9497 | [] | no_license | matiashaapasalmi/Ajastin | a564704af03708ae1d21c370938faaf7f90e30f2 | e04e7098b05eccf64f6611cf0994d0534add7a46 | refs/heads/main | 2023-04-26T06:53:31.830111 | 2021-05-19T10:19:28 | 2021-05-19T10:19:28 | 368,827,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,382 | cpp | mainwindow.cpp | #include "mainwindow.hh"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
timer(new QTimer(this)),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->startButton, &QPushButton::clicked, this, &MainWindow::on_start_button_clicked);
connect(ui->stop... |
972b10c6a3de8ac9536f2c949fd6bd32c39bbc6d | 393901eb33543d662c45a6dc6a86fd734ed4de35 | /TP8/src/Test.cpp | f2c02fba23bb0ba69865590c1e3f49e5bc211c54 | [
"MIT"
] | permissive | pemesteves/AEDA_1819-exercises | 65b6495163660a2e0ec6c8a108acb739d0aa4b53 | c8158547a53865c3910e420208b853579d0971c6 | refs/heads/master | 2020-04-06T14:36:18.727673 | 2019-02-23T16:00:35 | 2019-02-23T16:00:35 | 157,547,349 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,053 | cpp | Test.cpp | #include "cute.h"
#include "ide_listener.h"
#include "cute_runner.h"
#include "Jogo.h"
#include "Dicionario.h"
#include <fstream>
void test_1a_CriaDicionario(){
ifstream fich;
fich.open("dic.txt");
ASSERTM("Erro ao Abrir o Ficheiro", fich);
Dicionario d1;
d1.lerDicionario(fich);
fich.close();
BST<PalavraSignif... |
4ee447dd119fda0775896b9d300448d7a7820aba | c5219d05126a8e1a119aa4f367525f357e9f6830 | /Codeforces/ladder/ladder2/05.cpp | 4fd5fc61c6f3626f28bc8ae5595adce7086ef7c1 | [] | no_license | kaiboy05/CodingPractice | 328ea4c651df9facdd5875e07be49e223987008a | 8aa55809d215c8cfeefde2829f6ba39bbdeca014 | refs/heads/master | 2023-08-18T06:50:46.308516 | 2021-10-15T00:43:39 | 2021-10-15T00:43:39 | 404,919,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | cpp | 05.cpp | #include <iostream>
#include <vector>
#include <array>
#include <algorithm>
#include <map>
using namespace std;
int main() {
map<int, int> mp;
for(int i = 0; i < 6; i++) {
int c; cin >> c;
mp[c]++;
}
auto first = mp.begin();
if(mp.size() == 1) {
cout << "Elephant" << ... |
369725a78f9daac985c4ca10bcf3eb55bf5dd388 | 18c5920065d5c03737476b085bbd0b330dd585bf | /dang-gl/include/dang-gl/Context/StateTypes.h | a8cc9a9d6ace255f620ad8bcd535b8113463b01d | [] | no_license | Possseidon/dang-lib | 35dcbb1b672b587bdf8624be11d912ee889189f6 | 0993b42941bfafda771c9ac8592d03464d345b53 | refs/heads/master | 2023-08-17T05:12:54.509495 | 2022-11-15T06:28:12 | 2022-11-15T06:28:12 | 236,157,235 | 2 | 1 | null | 2022-11-21T19:36:50 | 2020-01-25T10:47:46 | C++ | UTF-8 | C++ | false | false | 7,698 | h | StateTypes.h | #pragma once
#include "dang-gl/General/GLConstants.h"
#include "dang-gl/Math/MathTypes.h"
#include "dang-gl/global.h"
#include "dang-utils/enum.h"
namespace dang::gl {
/// @brief The source factor, used for the blending function.
enum class BlendFactorSrc {
Zero,
One,
SrcColor,
OneMinusSrcColor,
... |
c24a87e6edbae543d73a12cbad3402deefb12f4a | 34c99d8a9e43b46fe50dd9880af5a5c1e0e06990 | /Lab11/main.cpp | fff95e2278c742cb925eabbda9bf8546b9d4823a | [] | no_license | bowei437/Intro-to-C-ECE-1574 | 234d3d332c8f647018d1de9ac525afb32038018e | 430585b709c98cb184fb40c0129c7799c1f0cfde | refs/heads/master | 2021-09-11T12:34:57.345290 | 2018-04-06T22:41:14 | 2018-04-06T22:41:14 | 82,741,726 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 101 | cpp | main.cpp | #include "dynamic.h"
#include <iostream>
using namespace std;
int main()
{
dynamic(cin, cout);
} |
5d43e183a053af8923dba427771dfea1e9a2cb49 | f67f64e6d359239328266524bc676808f30a0cd4 | /tests.cpp | b3e4dff7c94e0ca6ab7d778bce96a7f69ac727ff | [] | no_license | magv/fuchsia.cpp | 18c9f78ef16375d022200c1b929787d85b53c1e7 | 80ad8608be6ea194ad900cc4486c1af30827977b | refs/heads/master | 2023-02-06T16:53:44.016835 | 2023-01-26T13:28:06 | 2023-01-26T13:28:06 | 150,902,225 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 29,183 | cpp | tests.cpp | #include "build/catch.hpp"
#include "fuchsia.cpp"
TEST_CASE("eigenvectors") {
symbol x("x");
matrix m = {
{x, 0, 0},
{1, x+1, 0},
{x, 0, x+1},
};
for (const ex evalue : vector<ex>({x, x+1})) {
for (const matrix &ev : eigenvectors_right(m, evalue)) {
ex mm = n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.