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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
423bb4c5b15b9cc81f9ef45b405f8363d354026c | 2ea55826ea0804befeea41b9c89dd497e443bbcb | /src/kernel/device/storage/filesystem/Iso9600.cpp | ab057728536e608374451e2d33aea25df295ff6e | [
"MIT"
] | permissive | xuxiaowei007/chino-os | 5918806e8ac14966a6a9eb6533cbaef212e112f9 | 1f725cee15e1c86fbc2bda596279bd65482a082a | refs/heads/master | 2020-03-21T15:25:25.259139 | 2018-06-15T09:16:14 | 2018-06-15T09:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,094 | cpp | Iso9600.cpp | //
// Kernel Device
//
#include "Iso9600.hpp"
#include "../../../kdebug.hpp"
#include <cstring>
#include <unordered_map>
#include <optional>
using namespace Chino;
using namespace Chino::Device;
DEFINE_PARTITION_DRIVER_DESC(Iso9600FileSystem);
struct PartitionTableDetector
{
};
Iso9600FileSystem::Iso9600FileSystem... |
3e97a6312da94e5f01f484058faf3cca587ad790 | 1dba664148395d7a5c987fa2a6018e5539524b46 | /Gato/main.cpp | e963c0696349b962d16acfeda08102ab7d0a9f3b | [] | no_license | crissandivargas/Gato | efd6614e039a56a2335f003b61c93b0e7285768c | 49aa5fc3eff83706c3b1b377e49ca3977ea29250 | refs/heads/master | 2022-04-05T19:08:19.261157 | 2020-01-27T19:22:12 | 2020-01-27T19:22:12 | 233,860,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | cpp | main.cpp | #include "gato.h"
#include "tablero.h"
int main(int argc, char** argv[]) {
Gato* juegoDelGato = new Gato();
juegoDelGato->cargarJuego(true);
juegoDelGato = nullptr;
delete juegoDelGato;
return 0;
} |
7ee45dd57c874ba07b422ec23f2374938844d7d5 | 937a8a50c0efc59fd6822116a518b200ef047a99 | /srcs/sigverse/plugin/plugin/KinectV2/KinectV2Device.h | 1e2d12d2be09726988ad054ef23861b4ee583aec | [] | no_license | noirb/sigverse-plugin | 52823b26a23f093c235cd6dce2c89cbb80d40325 | 3ed19fd9a744e4b3f9a08965843b352f9a641e09 | refs/heads/master | 2021-01-12T21:03:58.422155 | 2016-09-11T21:33:14 | 2016-09-11T21:33:14 | 65,155,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,749 | h | KinectV2Device.h | #pragma once
#include <SIGService.h>
#include <sigverse/plugin/common/sensor/KinectV2SensorData.h>
#include <sigverse/plugin/plugin/common/Device.h>
#include <Kinect.h>
#include <opencv2/opencv.hpp>
template<class Interface>
inline void SafeRelease(Interface *& pInterfaceToRelease)
{
if (pInterfaceToRelease != NULL)... |
9e74463be4d7cf0fe3cf6a62a5a81974806c3ecb | 95649b37e3b9c31d1d5a961e5be945889417cc74 | /stream_process_utility.h | 72f8e0e492ffaff4cc3813870a7839f5ba3d8cc1 | [
"MIT"
] | permissive | zorbathut/d-net | 780755755c953c39a70d0ea6ba00f5badd39ebd0 | 61f610ca71270c6a95cf57dc3acaeab8559a234b | refs/heads/master | 2021-01-12T10:40:31.923196 | 2016-11-02T02:53:29 | 2016-11-02T02:53:29 | 72,597,697 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | h | stream_process_utility.h | #ifndef DNET_STREAM_PROCESS_UTILITY
#define DNET_STREAM_PROCESS_UTILITY
#include "stream.h"
using namespace std;
template<typename T, typename U> struct IStreamReader<pair<T, U> > { static bool read(IStream *istr, pair<T, U> *storage) {
if(istr->tryRead(&storage->first)) return true;
if(istr->tryRead(&storage->s... |
2dba31c041c54807bd68d555f8973b45bd52fdaa | dda0d7bb4153bcd98ad5e32e4eac22dc974b8c9d | /reporting/crashsender/sender/tcp_simple_sender.h | 3d3801464dd5bc6d64c9861fcd80df99fa77729d | [
"BSD-3-Clause"
] | permissive | systembugtj/crash-report | abd45ceedc08419a3465414ad9b3b6a5d6c6729a | 205b087e79eb8ed7a9b6a7c9f4ac580707e9cb7e | refs/heads/master | 2021-01-19T07:08:04.878028 | 2011-04-05T04:03:54 | 2011-04-05T04:03:54 | 35,228,814 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 833 | h | tcp_simple_sender.h | // Copyright 2011 . All Rights Reserved.
// Author: yeshunping@gmail.com (Shunping Ye)
#ifndef TCP_SIMPLE_SENDER_H_
#define TCP_SIMPLE_SENDER_H_
#include "abstract_sender.h"
#include <string>
// 这个使用tcp进行发送,这一个sender非常简单,只是为了在本机进行测试使用。
// 因为可以编写简单的server就可以进行demo。
// 如果是Http之类的,则搭apache http server比较麻烦... |
d74f855f11dc324fd7633643556bd568f481edee | 8dc8a49288e0d5c6d771bf29a6f1b617f4d0a724 | /Source/EucolusCore/EucolusCore/GUI/GUIElement.cpp | 8a3165fa654f7b2dbddded9cb1e45d72261ac637 | [] | no_license | kmteras/Adventures-of-Charles | e0230e6c759941507c3d65dc5ca233213ffe49a0 | 3ffe0054210061f1100cdd65a9ac47d2d02d8762 | refs/heads/master | 2021-03-16T09:26:18.419378 | 2017-01-04T00:59:24 | 2017-01-04T00:59:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | GUIElement.cpp | #include "GUI/GUIElement.h"
namespace Eucolus
{
namespace GUI
{
Element::Element()
{
}
Element::~Element()
{
}
void Element::Update()
{
}
void Element::Render()
{
}
}
}
|
b8e0d5a1cd66f7ee6592c74ddf56f4ceddb1fc2e | 3fe692c3ebf0b16c0a6ae9d8633799abc93bd3bb | /Contests/QuestOJ-Mar-22/card.cpp | 6f44a69bc518006374a22ca275cbeac5f3757975 | [] | no_license | kaloronahuang/KaloronaCodebase | f9d297461446e752bdab09ede36584aacd0b3aeb | 4fa071d720e06100f9b577e87a435765ea89f838 | refs/heads/master | 2023-06-01T04:24:11.403154 | 2023-05-23T00:38:07 | 2023-05-23T00:38:07 | 155,797,801 | 14 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,327 | cpp | card.cpp | // card.cpp
#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 4e5 + 200;
int n, k, ai[MAX_N], bi[MAX_N], ki[MAX_N], nodes[MAX_N << 2], upper, timeStamp[MAX_N], ntot, ansBox[MAX_N];
vector<int> mp;
int ripe(int x) { return lower_bound(mp.begin(), mp.end(), x) - mp.begin() + 1; }
inline char nc()
{
... |
6dce47cf6a8bb3aab9149633e1c9b8a1c9028e7a | 7970235c81e927f38fdaeef6dffe2e52a89c0b54 | /ProcMethodsCoursework/App1.h | a9b3fdda6887801179266cefb6a2260049770d62 | [
"MIT"
] | permissive | Skelebags/ProceduralTerrain | 89b33a45103c785f8c4a84489aaeb04b492fa9ec | a3705b25feac8be2efc2de6a721f124b151a4def | refs/heads/main | 2023-02-17T13:55:16.053341 | 2021-01-08T17:46:28 | 2021-01-08T17:46:28 | 327,971,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | h | App1.h | // Application.h
#ifndef _APP1_H
#define _APP1_H
// Includes
#include "../DXFramework/DXF.h"
#include "../DXFramework/Light.h"
#include "LightShader.h"
#include "TextureShader.h"
#include "TerrainMesh.h"
#include "HorizontalBlurShader.h"
#include "VerticalBlurShader.h"
class App1 : public BaseApplication
{
public:
... |
e5ceac94fce90a07ee33aa93fc5977bced7d8aa4 | 24d7a699d2351fa624db2c2a42e76e922c39c6e6 | /fistr1/tools/neu2fstr/HECD/CFSTRDB_Write.cpp | 6eb9c5d9b3e423e082c61219898cb48b862dcc20 | [
"MIT"
] | permissive | foci/FrontISTR | 90fd63883ee1725bcbd91872546063c9b3b5a8c8 | b89cfd277bccad35b9e016083580e9dbcafe1031 | refs/heads/master | 2020-06-16T16:22:44.806728 | 2016-11-14T18:48:43 | 2016-11-14T18:48:43 | 75,085,121 | 0 | 0 | null | 2016-11-29T13:42:06 | 2016-11-29T13:42:06 | null | UTF-8 | C++ | false | false | 989 | cpp | CFSTRDB_Write.cpp | /*****************************************************************************
* Copyright (c) 2016 The University of Tokyo
* This software is released under the MIT License, see LICENSE.txt
*****************************************************************************/
/*
CFSTRDB_Write Ver.1.0
*/
#include "CFSTRDB... |
1e7076801b7e29103d4fd24f64b685f7d002391c | 1028fd41afa5d61e1f19363778a7904d880f1591 | /C++_Belt_Series/02_yellow/04_Itterators/10_NearestElement/main.cpp | ab4584247e9f756882c3b6af03e37f16c878b0af | [] | no_license | lemikhovalex/Coursera | b1a3fdbf71bac4f2638d788e11c1c14a8df96c5c | 076b288cc2b360d7766a14b3a3ef38fceee54bea | refs/heads/master | 2021-06-26T04:54:37.594374 | 2021-02-06T07:34:41 | 2021-02-06T07:34:41 | 201,340,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | main.cpp | #include <iostream>
#include "vector"
#include "algorithm"
#include "set"
using namespace std;
set<int>::const_iterator FindNearestElement(
const set<int>& numbers,
int border);
set<int>::const_iterator FindNearestElement(
const set<int>& numbers,
int border){
auto out_upper = nu... |
9ce32072f7f9efe385523f77d099912c63287b42 | 9a3e3a91e4fc0f310216fc03d40dee81549644ee | /dialogreport.cpp | 99692ea95293a07a945c2c9551b04afafc4148e5 | [] | no_license | farm2440/beton | 13094bbdad38ba7e62c6f4d52aa2fc643e782a65 | 413c3b40bf9b5c0ca2585dd234b78c2d9ce97b59 | refs/heads/master | 2016-09-06T04:18:52.756207 | 2013-11-13T09:25:54 | 2013-11-13T09:25:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,241 | cpp | dialogreport.cpp | #include "dialogreport.h"
#include "ui_dialogreport.h"
DialogReport::DialogReport(QWidget *parent) : QDialog(parent), ui(new Ui::DialogReport)
{
ui->setupUi(this);
// *** -= КИРИЛИЗАЦИЯ !!! =- ***
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
this->setCursor(QCursor(Qt::BlankCurso... |
c60b474c624ccdea247f831f21e4a176e34611f4 | 88140f300108e245713e2b1c6fd2d9fa1228b277 | /tests/Greeting_test.cpp | 5a9b6f6f6cb555c8714f151b2658a47d9399b8a3 | [] | no_license | ichibrosan/cpp-template | 4df26a98740dab42f6c12c5b22b6fa1850ac5f02 | 3835834a24a01c7123ff59dffc66732696a05b10 | refs/heads/master | 2020-11-29T12:53:53.939508 | 2019-12-25T17:57:55 | 2019-12-25T17:57:55 | 230,112,428 | 0 | 0 | null | 2019-12-25T14:22:52 | 2019-12-25T14:15:47 | null | UTF-8 | C++ | false | false | 506 | cpp | Greeting_test.cpp | #include "gtest/gtest.h"
#include "src/lib/Greeting.hpp"
#include "src/lib/Extra.hpp"
TEST(GreetingShould, ReturnHelloWorld){
Greeting *greet = new Greeting();
std::string actual = greet->getGreetingMessage();
std::string expected = "Hello World!";
EXPECT_EQ(expected, actual);
}
TEST(ExtraShould, Retu... |
26bc9bf0358ecca01a09e4e9658bd21f0dbcb332 | cb477b793eaa3c405418ee8af34112262baad9df | /lab2/qn1.cpp | 87055b6214e377edfce53ae477d5a044bea53adb | [] | no_license | AbiralBhattarai/C-programmming-Lab | 2cc302875763148078cb465d3ba1f23795bc4103 | 47b019644f7cde79c3c3afe857872bb89348b010 | refs/heads/master | 2023-05-13T01:10:33.974848 | 2021-06-08T16:07:04 | 2021-06-08T16:07:04 | 359,832,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | qn1.cpp | #include<stdio.h>
#include<conio.h>
int main(){
int a;
printf("enter a number: ");
scanf("%d",&a);
if(a%2 == 0){
printf("Number is even!");
}else if(a%2 == 1){
printf("Number is odd!");
}
else{
printf("number is zero!");
}
}
|
09f0879f18575166d77fe11b91610a512cd9fb9a | 91e18d602faef7faecc260272f3f3fb6c45ec952 | /Turing/cosc230/assignment3/test.cc | 2fc7464359ac46cfc2ad5c357820b4741d6f888f | [] | no_license | MiniWorks18/UNE_2020 | de3ac0923774c6b221764313310d5f8b028ed131 | d1e03d61dc32a65e47a547e53d5e992d7b1cd79e | refs/heads/main | 2023-06-20T04:35:28.832068 | 2021-07-21T08:36:15 | 2021-07-21T08:36:15 | 388,049,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cc | test.cc | #include "assignment3_functions.cc"
#include<stack>
#include<iostream>
using namespace std;
int main() {
stack<int> S, S1, S2;
S.push(1), S.push(2), S.push(3);
cout << "The top element of S is: " << S.top() << endl;
reverse_stack(S, S1, S2);
cout << "The top element of S is now: " << S.top() << endl;
co... |
1894b099cd9af2e051f6a87b3b5e1caa00c27e38 | 5c17f438f76834ee19410ac1b8949d76bab732f4 | /my-project3/src/app/contact/class.cpp | 724e2166cd6abf6d66b384b716d8161c0738cba3 | [] | no_license | peeraponwannapan/labionic | 9e51539c940c1dfede7e24936f45bd8df755d448 | 281d09f5872a03937ac5d9f89f13fc41d1698b92 | refs/heads/master | 2022-12-18T08:23:53.390547 | 2020-09-22T14:16:11 | 2020-09-22T14:16:11 | 297,659,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | cpp | class.cpp | #include<stdio.h>
#include<iostream>
#include<string.h>
class Student
{
public:char firstname[100] = "John";
public:char lastname[100] = "Lennon";
public:int score = 100;
public:char getGrade(){
if(score<50){
return 'F';
}
else if(score <60){
return 'D';
}
else... |
b9aa24bb508e04a3a09a061a6b88ca20999b9fa9 | 163d370755cdbd0675d2a95fb0c4d374cddaddbd | /beziers.cpp | 3e7a7f4a25c37183505b988616368ba6d19b2a58 | [] | no_license | AlexeyKulbitsky/Constructor | 730bf96616cb788435e5c456db1ffb7db53928e4 | 8e3518e5a60cacbcbcc0e9b5996c07132ed989a4 | refs/heads/master | 2021-01-13T00:49:31.235913 | 2016-03-14T08:36:52 | 2016-03-14T08:36:52 | 36,598,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,031 | cpp | beziers.cpp | #include "beziers.h"
Beziers::Beziers()
{
}
Beziers::Beziers(float x1, float y1, float x2, float y2, float x3, float y3, int numberOfSides)
{
name = "Beziers";
layer = 1;
indexOfSelectedControl = -1;
controlPoints.push_back(x1);
controlPoints.push_back(y1);
controlPoints.push_back(0.0f);
... |
77c9b1faeec04b4246749606b5216538033d2caf | 958f2bb760a3ada920259ef413b815db8175e153 | /src/OJ/2280【C语言】【分支】三整数排序/main.cc | 4f779d68627d283088c31485efe58ff4774f18bd | [] | no_license | arrebole/Leisure | e5639b172a2c58fe84e7458ddd7a90e661e8fee0 | 8a8b8b9906f32ce6fc365f9981bb265a8574ba86 | refs/heads/master | 2021-07-14T20:02:17.063526 | 2019-02-04T12:10:47 | 2019-02-04T12:10:47 | 140,957,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | cc | main.cc | #include <iostream>
#include <stdio.h>
using namespace std;
void sort(int a[3])
{
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 2-i; j++)
{
if (a[j] < a[j + 1])
{
int temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
... |
3165f88b7dca54be6ab14d88242ff2713cfc9881 | de7a77f7e9ef6b54e0c895798e21820d12ec63a6 | /LineChart.h | 7614535a22d2800e2551cdb9b9744ace043e199f | [] | no_license | gmo-quant/QuantEx | eb5b2ece9d54aa006fa1d0a18b37d976527ec409 | 4e21718d9e881a5c7e0508a7e236389a6a14454c | refs/heads/master | 2020-03-17T11:52:15.632419 | 2018-05-20T20:33:04 | 2018-05-20T20:33:04 | 133,566,891 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | h | LineChart.h | #pragma once
#include "stdafx.h"
class LineChart {
public:
LineChart();
void setTitle( const std::string& title );
void setSeries( const std::vector<double>& x,
const std::vector<double>& y );
void writeAsHTML( std::ostream& out ) const;
void writeAsHTML( const std::string& fil... |
66e2e7cd9abf54b3b502ea208c640af93d54ff62 | 775acebaa6559bb12365c930330a62365afb0d98 | /source/sdksamples/snippetrunner/SnipRunControlView.cpp | d238334b66d9006d8479cec8708d4ca45292119e | [] | no_license | Al-ain-Developers/indesing_plugin | 3d22c32d3d547fa3a4b1fc469498de57643e9ee3 | 36a09796b390e28afea25456b5d61597b20de850 | refs/heads/main | 2023-08-14T13:34:47.867890 | 2021-10-05T07:57:35 | 2021-10-05T07:57:35 | 339,970,603 | 1 | 1 | null | 2021-10-05T07:57:36 | 2021-02-18T07:33:40 | C++ | UTF-8 | C++ | false | false | 3,147 | cpp | SnipRunControlView.cpp | //========================================================================================
//
// $File: //depot/devtech/16.0.x/plugin/source/sdksamples/snippetrunner/SnipRunControlView.cpp $
//
// Owner: Adobe Developer Technologies
//
// $Author: pmbuilder $
//
// $DateTime: 2020/11/06 13:08:29 $
//
// ... |
7f92ba5fc49f3b094e52c617ad9c0a9a79aec59d | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/Basic-Dynamic-Mesh-Tutorial-OpenFoam/TUT16/3.72/epsilon | 3320f6f40954e207320deff6e692d0035bac9a81 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,389 | epsilon | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
861833582ada98edc661c48cb2784b353756a233 | b967a36f905d6fea718261b7888d1aeb33a40e78 | /ComboBox.h | 4bfa6f6d24945aac78014a6e10f693fea41e1886 | [] | no_license | SharpShooter17/WinAPI | ef482d760f37477149b955d9a65467bd96a36a46 | ca3560067303657c322776950bc449041e7b08bb | refs/heads/master | 2021-08-08T14:06:01.101490 | 2017-11-10T12:35:32 | 2017-11-10T12:35:32 | 110,242,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | ComboBox.h | #pragma once
#include <string>
#include "Control.h"
class ComboBox : public Control
{
public:
ComboBox() = delete;
ComboBox(HWND & hWnd, HINSTANCE & hInstance, unsigned short height, unsigned short width, unsigned short x, unsigned short y);
~ComboBox();
void addItem(const char * item);
std::str... |
b30070b1cb742a0c98a327f6fd970623ce755856 | 592640e3420f7ac3814fe7f8c4f755e8fe046ca2 | /Pacman/src/Practica4/CollisionSystem.h | 15096f6778da2009a54445b17af05632cc28d4bf | [] | no_license | nestcmartin/SDL2-Projects | 9e3a233b29c3b171623d0868928bb1d76689c41c | 58929acb94ca3df723d4999d03564b9b107c590c | refs/heads/master | 2022-11-14T07:12:17.828667 | 2020-07-06T16:07:36 | 2020-07-06T16:07:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | h | CollisionSystem.h | #ifndef __COLLISION_SYSTEM_H__
#define __COLLISION_SYSTEM_H__
#include "System.h"
class CollisionSystem: public System
{
public:
CollisionSystem();
void update() override;
};
#endif // !__COLLISION_SYSTEM_H__ |
93ba41de5b3318be0846b69d29273da72b6dc023 | b4fa442ef49c1c47583e382a880ff504aed855eb | /UVA340/UVA340.cpp | 1e77769cb98622ce00637a35acec95d16b0f4ea0 | [] | no_license | jackyhobingo/uva_practice | 5c671ba2331adc74f96a83dca921c200c8859382 | a4beb14d7e3f6c3601896b4c7bcbc35831586f6c | refs/heads/master | 2020-12-18T19:25:39.813842 | 2018-07-02T16:11:05 | 2018-07-02T16:11:05 | 34,815,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | UVA340.cpp | #include<iostream>
using namespace std;
int main()
{
int n;
int game = 0;
int ans[1000];
int a[1000];
bool ans_[1000];
bool a_[1000];
int tmp;
while(1) {
game ++;
cin >> n;
if(n == 0){
break;
}
cout << "Game " << game << ":" << endl;
for(i... |
8bb22e96bae6e549ac0fdf63e8b7ad44d0f2427c | 63bbddf136093fec8f31eab26cf500d45b1ff9cd | /draw.cpp | adae064db53acab19261d317fb5338516707d835 | [] | no_license | soodoshll/lese2 | 15804e20fd5224d54bc7a162760353049509470f | e2e3aef62e4a5ea88e3475d7e0beffb5db81a5b1 | refs/heads/master | 2020-03-24T05:56:00.763953 | 2018-07-27T00:47:47 | 2018-07-27T00:47:47 | 142,509,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,234 | cpp | draw.cpp | #include "SDL2_header.h"
#include "draw.h"
Image *imagePlayer, *imageBullet, *imageFighter, *imageCircle, *imageMissile, *imageBonus,
*imageProtect, *imageBackground, * imageButton, *imageRBackground, *imageExplode, *imageWelcome;
void loadPictures()
{
imageCircle = loadImage( "circle.png" );
imageBu... |
266d6c135a64d5097cf144ed3e89362085b93c1b | 4486d0897d08dad8d286548d72dd3a57792da3fc | /Sample.cpp | 89bde9834498fcf3df3dc0c4c87340eb732f5ea3 | [] | no_license | zenkee/AsyncHttpd | e56dbfbf470a2a6c9f51b8b54b9db7c0faceed11 | 394ec43af54891348a98ad892cb7945e1f2fc858 | refs/heads/main | 2023-03-11T05:41:15.644845 | 2021-02-26T07:33:32 | 2021-02-26T07:33:32 | 342,481,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,563 | cpp | Sample.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include "AsyncHttpd.h"
#pragma comment(lib, "AsyncHttpd.lib")
//your customized function to handle http requests
IAsyncHttpServer::HANDLER_RESULT handler(IAsyncHttpServer::REQUEST* req, LBUF* lbuf,
uint16_t callback_port, void* callback_ptr, uint32_t callb... |
7a68c0f06fdf6d12d090bfa5b9823996ea04997d | bc4fec047b886c08e3ffdabcb1723e8eab3e2386 | /hw2-src/main.cpp | 887813ac106b388c10020fb7d1fef409fc836e9e | [
"MIT"
] | permissive | frankyn/CSGraphics-Fall13 | d917787592ae15e4284f4b0373a6ae377e0de596 | e4e5bf8b2ae130a263bfdbcd7359b43a93f478e6 | refs/heads/master | 2016-09-10T11:27:35.899356 | 2013-12-05T23:51:22 | 2013-12-05T23:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,091 | cpp | main.cpp | #include <cmath>
#include <unistd.h>
#include "../include/Angel.h"
int NumberOfLines = 10;
int ArraySize;
void init ( ) {
int i = 0;
float p, a, p2, a2;
float inc = 360.0f / NumberOfLines;
//SUPER DIRTY
for ( p = -180.0f ; p <= 180.0f ; p += inc ) {
for ( a = -180.0f; a <= 180.0f; a += inc... |
26314ed25df83c829cb9f5ad2b9abe49226caa10 | f0c79580c37e23d11fbbc2a8d7b79cec646f23e1 | /src/caffe/layers/irnn_layer.cpp | 9b3212c3297856d26ef3cbce8638f766fee0324f | [
"Apache-2.0"
] | permissive | wpfhtl/DSC | 314cb5afd10991b7a6af71a472e63192cdd09845 | 6dda239b871f8e66aedc1f2db2971cb8890a149e | refs/heads/master | 2020-03-26T20:54:20.343522 | 2018-08-24T06:10:21 | 2018-08-24T06:10:21 | 145,353,875 | 0 | 0 | null | 2018-08-20T02:00:10 | 2018-08-20T02:00:10 | null | UTF-8 | C++ | false | false | 2,488 | cpp | irnn_layer.cpp | // ------------------------------------------------------------------
// Copyright (c) 2017
// The Chinese University of Hong Kong
// Written by Hu Xiaowei
//
// Spatial RNN with identity matrix at four directions
// ------------------------------------------------------------------
#include <vector>
#include <iostre... |
df8cd6ed4e9e9f0d3719a6bd98d1a87a3b28a22f | 7d7b31999ff5951b32560640b027f4ae120290fe | /rutil/ParseBuffer.cxx | 7694697320e2a9c45a1400fc71a172551673be8e | [
"BSD-3-Clause",
"VSL-1.0",
"BSD-2-Clause"
] | permissive | portsip/resiprocate | d462a3c722507d33df55cbb1d3e4e84e8cf0cd15 | 0b15ea2516e5fb0c15850eb91d668274cca666a8 | refs/heads/master | 2022-01-03T09:47:55.478983 | 2021-12-13T22:01:03 | 2021-12-13T22:01:03 | 263,042,889 | 1 | 0 | NOASSERTION | 2020-05-11T12:58:11 | 2020-05-11T12:58:10 | null | UTF-8 | C++ | false | false | 23,614 | cxx | ParseBuffer.cxx | #include "rutil/ResipAssert.h"
#include "rutil/Logger.hxx"
#include "rutil/ParseBuffer.hxx"
#include "rutil/ParseException.hxx"
#include "rutil/DataStream.hxx"
#include "rutil/WinLeakCheck.hxx"
using namespace resip;
#define RESIPROCATE_SUBSYSTEM Subsystem::SIP
const char* ParseBuffer::ParamTerm = ";?"; // maybe in... |
aa4573a4f5d8c2ec4bd5bd409f403656dce07468 | bf5024f69acca285ca6857e2ca01e6e33af9a885 | /Leetcode2615.cpp | 9d1013ce1c34fa34e1a27c3083217755cfa3a40b | [
"Apache-2.0"
] | permissive | dezhonger/LeetCode | 08c37177916e4a71bc07cbb27b1573221d96ee92 | 892ae5c14b92788611b86be6a05d1d02e137822f | refs/heads/master | 2023-08-14T00:34:42.570110 | 2023-07-28T06:54:27 | 2023-07-28T06:54:27 | 48,811,775 | 3 | 0 | null | 2021-02-05T06:22:58 | 2015-12-30T17:26:37 | Java | UTF-8 | C++ | false | false | 735 | cpp | Leetcode2615.cpp | class Solution {
public:
vector<long long> distance(vector<int> &nums) {
int n = nums.size();
unordered_map<int, vector<int>> groups;
for (int i = 0; i < n; ++i) groups[nums[i]].push_back(i);
vector<long long> ans(n);
for (auto &[_, a]: groups) {
int m = a.size()... |
ade768041dfd3e2c7a7c95e838d5cb6ba818e758 | f4cf35b2f9d346f6e8be6ae7b9106cbdf0c879b5 | /sd_hardware_interface/src/i2c_comm_test_node.cpp | 5acfafaa2d64bc7d59e05f16a19d4c16f0db8482 | [] | no_license | coreygamache/senior_design | c9394f1d5b617436a75a680e360cd7a34bfb5fc0 | 16cf373e44f9fac6a63b14a9a4c8fcf2698878df | refs/heads/master | 2020-03-28T19:03:24.376767 | 2019-04-22T16:03:57 | 2019-04-22T16:03:57 | 148,940,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,470 | cpp | i2c_comm_test_node.cpp | #include <errno.h>
#include <ros/ros.h>
#include <sstream>
#include <wiringPiI2C.h>
int main(int argc, char **argv)
{
//send notification that node is launching
ROS_INFO("[NODE LAUNCH]: starting i2c_comm_test_node");
//initialize node and create node handler
ros::init(argc, argv, "i2c_comm_test_node");
ros... |
9ca2094d8c3fd84efa212fafe118d86ec1d673af | ec2b851ac2f7086612a93cf0bce49fc325b86fbf | /src/RedEye.cpp | adc60148ce1263caf6e14a1253e1370f16ae2fbc | [] | no_license | wbvreeuwijk/xiao-redeye | da723137c726aa49ef8b939b41a1a73788e2e4d6 | 33318d55f1442bec4014dfe0571aba285617f9b2 | refs/heads/master | 2023-01-02T11:34:27.224191 | 2020-10-25T12:10:50 | 2020-10-25T12:10:50 | 306,606,731 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,042 | cpp | RedEye.cpp | #include "RedEye.h"
#include <TimerTC3.h>
char time = 0;
volatile int state = STATE_IDLE;
volatile int subCycle = 0;
volatile int pulse = 0;
volatile int startBit = 0;
volatile int eccHalfBit = 0;
volatile int dataHalfBit = 0;
volatile byte eccByte = 0;
volatile int_fast16_t eccPulses = 0;
volatile b... |
becf0a41e78b0b1097ae18eb1f9b24f8a80631db | 34ab31d7d506e9551862fad1300635bf946052de | /auto_raid_Re/auto_raid_Re.ino | 95ba715a808a44f22130a2870a28b682b5c687eb | [] | no_license | Nagan0/AutoPokeController | 6a75a3b545b7e3309b0559cb627cd2f67eb7cda1 | 91a265f90d2ab70679e1cf7c2984ab2373fa288b | refs/heads/master | 2023-06-29T07:45:34.112112 | 2021-07-08T15:13:25 | 2021-07-08T15:13:25 | 275,913,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,557 | ino | auto_raid_Re.ino | /**
* レイドバトル→ポケモンを捕獲→ボックスに預ける→願いの塊を投げ入れるを繰り返すスケッチ
* ボックスに空きがある限り、レイドバトルを続ける
*
* 初期条件は以下の通り
* 1. 願いの塊を投げ入れた巣穴の前にいること
* 2. 手持ちが1体のみのこと
* 3. Aボタン連打でレイドバトルで勝てるようにすること
* 4. ボックスが空のこと
* 5. 願いの塊を大量に持っていること
*/
#include <auto_command_util.h>
// レイドバトルが終わるまでの時間
const int BATTLE_FINISH_SEC = 180;
// 巣穴の前からひとりレイド... |
5ee813e73a962fa1465cf6ba5ae2fd35d1cb6eea | c96881ff116f4a28398546569011399b3092b01a | /Random/C++/Help.cpp | e3abed76f8633ef70289c56fca7cc67d5405b9e8 | [
"MIT"
] | permissive | akimikimikimikimikimikimika/shellCommands | e574e30f8419e9c13782094143acaaff8aa343a5 | f6970f3827ac7491db9b168c8f7929bfb1440940 | refs/heads/master | 2021-06-19T13:17:52.211186 | 2021-04-24T08:19:01 | 2021-04-24T08:19:01 | 195,595,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,546 | cpp | Help.cpp | #include <iostream>
#include <random>
using namespace std;
void help() {
cout << endl << endl;
cout << "使い方" << endl << endl;
cout << " random help" << endl;
cout << " このページを表示します" << endl;
cout << endl;
cout << " random version" << endl;
cout << " このソフトウェアのバージョンを表示します" << endl;
cout << endl;
cout << " ran... |
941f8c9c82b870d70ae58d6b89f71f99370500d0 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/src/compiler/translator/TranslatorMetalDirect/IdGen.h | 65238592971c12b4c20d0ca922c01e0c56ca5050 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 1,372 | h | IdGen.h | //
// Copyright 2020 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.
//
#ifndef COMPILER_TRANSLATOR_TRANSLATORMETALDIRECT_IDGEN_H_
#define COMPILER_TRANSLATOR_TRANSLATORMETALDIRECT_IDGEN_H_
#include "common/angleut... |
94aaf78dda59524df8151534f4391ce52e7b5ab4 | 34e85672fad576629ad0531af9ee452861710428 | /src/ImgLib.cpp | e3306db83d6ed241272319b17ee88d93e38a9ffa | [] | no_license | Boosting/stereo-gaze-tracker | d61b2a3ac490a231e7b8681937dd13c016188418 | eee2b7fed271fbec20cf12ecd913b869fab31cf3 | refs/heads/master | 2021-01-20T17:34:14.031358 | 2014-03-30T01:42:04 | 2014-03-30T01:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,225 | cpp | ImgLib.cpp | #include "ImgLib.h"
void ImgLib::DrawComponent(const CvConnectedComp& comp, IplImage* image, int line_width)
{
CvScalar color;
color = CV_RGB(255,0,0);
cvRectangle(image, cvPoint(comp.rect.x, comp.rect.y), cvPoint(comp.rect.x + comp.rect.width, comp.rect.y + comp.rect.height), color, line_width);
}
int... |
da106426137d5545ba8ee060b5ce82996fcff503 | 63a832f68d83254465f171bab8795418807c8d1a | /src/app/genesis/namespace.xcpp | f6a337d52d96ae69cf558c90aee34add5d1fe5f9 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | yahoo/tunitas-scarpet | 2e615a3725daaa75dd34e41ccea290d262e2cee6 | 0b05121ab0ed5679c551ea10db897e1716f9d50d | refs/heads/master | 2023-08-29T07:54:48.445490 | 2022-12-16T16:48:42 | 2022-12-16T16:48:42 | 198,708,574 | 3 | 2 | Apache-2.0 | 2023-03-21T03:36:39 | 2019-07-24T20:55:04 | C++ | UTF-8 | C++ | false | false | 627 | xcpp | namespace.xcpp | // This is -*- c++ -*- nearly C++23 with Modules TS but in the S.C.O.L.D. stylings that are so popular these days.
// Copyright Yahoo Inc. 2021.
// Licensed under the terms of the Apache-2.0 license.
// See the LICENSE file at https://github.com/yahoo/tunitas-scarpet/blob/master/LICENSE for terms.
// See the LICENSE fi... |
8b1477d7a8afccaf6516c49f5012a7bfcc94b106 | 1b4ef75ce0e320bd8d1ee6a9ad5c9d89b4d91a7b | /account.h | 4cbc285c8aed8bae79ddf2bd71ead979277f16e0 | [] | no_license | sunghyungi/BakingSystem_QT | 9d4590bcde8501f0f868152628905e936d79d4b1 | 608f01cc7158a9015fc163c8ed85a3686ab21edc | refs/heads/master | 2020-12-20T17:59:54.712700 | 2020-01-26T07:43:16 | 2020-01-26T07:43:16 | 236,162,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | h | account.h | #ifndef ACCOUNT_H
#define ACCOUNT_H
#include <cstring>
#include <iostream>
#include "mainwindow.h"
#include <QtSql>
#include <QSqlDatabase>
#include <QMessageBox>
using namespace std;
class Account
{
private:
int accNum;
int passWord;
char cusName[20];
char cusBirth[20];
int balance;
public:
... |
f1653b7b55e7853f50c9f798e506e00e2b191df7 | 06d29665d614aaafd707a643d7465ca6c13be42f | /QT_project/WeerProject/settings.cpp | 7846b64f66641dd56bc2f66e44df6ad30f94f406 | [] | no_license | TheKayneGame/AlWEER-een-project | 716c1eaacc3bb125d42933441c5916320a0e2a31 | 0e06efd6f4508c19dcfe51dc70252603783cdab5 | refs/heads/master | 2020-03-27T22:06:29.833485 | 2018-10-26T12:38:43 | 2018-10-26T12:38:43 | 147,204,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,706 | cpp | settings.cpp | #include "settings.h"
#include "ui_settings.h"
#include "Mainwindow.h"
Settings::Settings(QWidget *parent) : QDialog(parent), ui(new Ui::Settings)
{
ui->setupUi(this);
setGraphSettings(localAmount, false, false, false, false);
}
Settings::~Settings()
{
delete ui;
}
/*
* Adds some extra parameters to the... |
9ec6fe42e581abe0342290fdb9468d0f2bac9fd0 | a98732dc66998ce7ef7fa88b2f4e8a08ead9bfa3 | /tablebrowser.h | cc0a1e624c32e12be684fd4d38a7c5b7cad57520 | [] | no_license | ndenzako/QEUBusiness | de5579feedd8ea54b1916d504dcc16a57c8f06d0 | 1ee330c0d63b8201fdae6084e7a9264d5995d11c | refs/heads/master | 2021-04-09T13:47:07.634143 | 2018-03-18T12:34:52 | 2018-03-18T12:34:52 | 125,721,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 788 | h | tablebrowser.h | #ifndef TABLEBROWSER_H
#define TABLEBROWSER_H
//#include <QTabWidget>
//#include<QTableView>
#include<QDialog>
#include<QSqlDatabase>
QT_BEGIN_NAMESPACE
class QTableView;
class QFile;
class QDataStream;
class QDebug;
class QMessageBox;
class QTableView;
class QSqlDatabase;
class QSqlQueryModel;
class QSqlError;
class Q... |
3a75f5abba0df68cfa7e7719e5ba7ffbcda38540 | c01e1920c20516fcf4b68f8e22ab03b440a48974 | /src/util.hpp | 4406f016f9ccac8b2fb8f1fbf3f9f98d1e9f9448 | [] | no_license | mattpollack/slangc- | 74198b1e13c687907c1398acd4923683a9847899 | d7b5326b34a7f111fbf417aad88e8b2a32b29420 | refs/heads/master | 2021-03-27T16:11:13.546804 | 2017-10-31T15:26:59 | 2017-10-31T15:26:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | hpp | util.hpp | #ifndef _UTIL_H
#define _UTIL_H
namespace slang {
enum class option_type { SET, NIL };
template <class T>
struct option {
option_type type;
T data;
};
};
#endif
|
c12db3fa6224a1eee62849be5d33db1346879219 | 828e1216320cc2ff030c44c980cda5645627348d | /Arduino/sketch_apr26b/sketch_apr26b.ino | 7ca6794d0b7d0ecdd9686549f92e767b788fd486 | [] | no_license | TakIt/ardu | 75555662d5c627f0f3fd033024bf6552ec7135b3 | 7de6ad1a2a44cd47ec0016a26b72bd3d59d83f0a | refs/heads/master | 2020-05-16T04:59:48.403883 | 2019-05-27T15:42:55 | 2019-05-27T15:42:55 | 182,797,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,406 | ino | sketch_apr26b.ino | #include <Boards.h>
#include <Firmata.h>
#include <FirmataConstants.h>
#include <FirmataDefines.h>
#include <FirmataMarshaller.h>
#include <FirmataParser.h>
#define LED_BUILTIN 11
#define anlg A0
long recv_data = 0;
void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN,OUTPUT);
}
void loop()... |
93f6fef1c7c5a876cc695520bd007ac4304c0164 | c705652e2d57354a4c42e8eef83868933f6e432d | /pages/xqsetup.cpp | d396ff2a52301e765a7602ccb383779e6fd1e7b0 | [] | no_license | xuzheyang/XQSetup | 5071f4112c54c7b2f84a5c1b85681f06309996b2 | cea6fc7f4a5b5f006e2e105cb0c5466bc0580adf | refs/heads/master | 2020-05-31T11:48:45.985017 | 2019-06-06T11:59:41 | 2019-06-06T11:59:41 | 190,267,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,146 | cpp | xqsetup.cpp | #include "xqsetup.h"
#include "ui_xqsetup.h"
#include <QStyle>
#include <QFileDialog>
#include "xqutils.hpp"
#include "xqdef.hpp"
#include "xqconf.hpp"
XQSetup::XQSetup(QWidget *parent) :
QWidget(parent),
ui(new Ui::XQSetup)
{
ui->setupUi(this);
initStyle();
}
XQSetup::~XQSetup()
... |
e9546eb71e51ba79d33bffb7e62f5a153c9fddd5 | 882a20fdf88ec1598b1e0031c2f21f521fbbb3f6 | /duff2/Source/PropertyPageStatusLog.cpp | f63b3f3d99c91d25cf19f724f2e12107feb1758f | [] | no_license | presscad/duff | 39fb6db6884c0e46f7b2862842334915ec17375e | eabfd1aa440883cbd5fd172aa9c10e2b6902d068 | refs/heads/master | 2021-04-17T09:16:21.042836 | 2012-01-30T22:42:40 | 2012-01-30T22:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,420 | cpp | PropertyPageStatusLog.cpp | // StatusLogPropertyPage.cpp : implementation file
//
#include "stdafx.h"
#include "duff.h"
#include "PropertyPageStatusLog.h"
#include "duffdlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////... |
e3da9526db80892be5e78251bebcdcf8b04aedbc | c964a9b36a3d3203ceec0f3e63a8bf680bb94ea4 | /MyAssist/nlp++/perceptron/PerceptronModelWriter.h | c3971c8f60b7ca8075cccfb538aae91150de5a55 | [] | no_license | benlm54/myassist-repo | f95bc3c5b033acd19294047b67e35e9fcfa91bd5 | fd24c3bb4eeb86b88e2d0052a6d272f3cdbc6c7f | refs/heads/master | 2021-03-12T22:22:40.330433 | 2013-01-09T23:18:56 | 2013-01-09T23:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,503 | h | PerceptronModelWriter.h | #ifndef PERCEPTRONMODELWRITER
#define PERCEPTRONMODELWRITER
#include "../model/AbstractModelWriter.h"
#include "../model/Context.h"
#include "../model/AbstractModel.h"
#include "../model/ComparablePredicate.h"
#include <string>
#include <vector>
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or m... |
9dbfd061c8fef5caada105b35d5a12cd2a9b6829 | b4330417dd1590cf7ea3484c4dda20a0ecfee3b4 | /Online_judge/HDU/hdoj_1049.cpp | 42ed6f5eea6c6d7cb6e63dded5ff60d1574b667d | [] | no_license | Q10Viking/ACM_ICPC | d2b2c69e451a4e8de2fafdf346797900c61e65ee | d3d6547313a4400ed9c3eef1339a79466ffa5d97 | refs/heads/master | 2021-01-01T17:26:04.629801 | 2014-07-03T06:54:15 | 2014-07-03T06:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | cpp | hdoj_1049.cpp | #include<stdio.h>
int main()
{
int n,u,d;
while(scanf("%d%d%d",&n,&u,&d),n)
{
int t=(n-u)/(u-d);
if(t*(u-d)<(n-u)) t++;
t*=2;
t++;
printf("%d\n",t);
}
return 0;
} |
4f2dd03086fdec9609c7a3767a2bb54c07f7bd0a | 521a7099004abc1e4d48ce516fa4509e4ec9d4d1 | /src/kpoint.h | e58ffb86c159bd6b667567e740b299cd27e6604b | [] | no_license | DmitriiNabok/sirius | 0d92d32a572a1e79f29d27c405d09ae5f4ce7681 | ab0e342df841e58eaa2deff37f630f0b906885e2 | refs/heads/master | 2021-01-18T02:57:41.089125 | 2013-05-15T11:24:44 | 2013-05-15T11:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 99,369 | h | kpoint.h | namespace sirius
{
/// Descriptor of the APW+lo basis function
/** APW+lo basis consists of two different sets of functions: APW functions \f$ \varphi_{{\bf G+k}} \f$ defined over
entire unit cell:
\f[
\varphi_{{\bf G+k}}({\bf r}) = \left\{ \begin{array}{ll}
\displaystyle \sum_{L} \sum_{\nu=1}... |
2b5fe52411942611e2ce3e5888d921288f32a33b | bfd7dedeca1bad71edf6327ebc1e2021bac444f1 | /Game.cpp | 6f6d6806e243bafc18eef1d38c0c9844fdb307aa | [] | no_license | pritzza/SFML-Platformer | 96c401aa66b4900d3858d9ffc0ab86df12b3aaf5 | 883684447a925ab3710cef9a7bc9d2ffc9866eb2 | refs/heads/master | 2022-12-12T04:50:03.724948 | 2020-09-07T05:04:39 | 2020-09-07T05:04:39 | 288,862,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | Game.cpp | #include "Game.h"
#include "Constants.h"
#include "MenuState.h"
#include <iostream>
Game::Game()
{
window.create(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "Window", sf::Style::Default);
window.setFramerateLimit(60);
// Puts first gamestate into play
std::cout << &gameData.assets;
gameData.sta... |
4bbacc18a3dd506b4d53bafae15c0522ba482b43 | 6f0770bd10baea1d8deb4b9b9411748629d08894 | /src/pPointAssignML/PointAssign.cpp | c3445892f364fe7eebe3524a62c8ca6bc1705900 | [] | no_license | argupta98/moos-ivp-internship | 661933270340e314bcc5aac69981a0cce33afb3f | 05f2d241e75dd7ec6f1409bd0337264cc064ab6b | refs/heads/master | 2021-01-23T08:44:54.631989 | 2017-09-06T20:40:54 | 2017-09-06T20:40:54 | 102,546,484 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,316 | cpp | PointAssign.cpp | /************************************************************/
/* NAME: Arjun Gupta */
/* ORGN: MIT */
/* FILE: PointAssign.cpp */
/* DATE: ... |
4f3639c563ab3abe844f1778f090a57d36ac8706 | a1825094d35701215ce7172e56a769ee44f42c90 | /Codeforces/320A.cpp | 7537cfa4ac2611cfe864297d93d6e93598bafc84 | [] | no_license | tantrojan/GFG-Questions | 5c7a335ca5c1eafc70cf83c8f60f2eba01bde314 | 4ca81dd83b6d2bdf9f04f3cd7f7e0cc58e0944dd | refs/heads/master | 2020-03-24T12:58:00.292712 | 2018-07-29T04:22:43 | 2018-07-29T04:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | 320A.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int count=0,i;
int no_of_digits=log2(n)+1;
for(i=0;i<no_of_digits;i++)
{
if(((1<<i)&(n))==(1<<i))
count++;
}
cout<<count<<endl;
return 0;
} |
e788d22270dd71d9d5e7a4f8070f27edc34852a8 | 6020f179883ac1e01baa68055c2de40398223e6e | /problem.1/main.cpp | e4ff672be0afd7ec3095d0cd70bc3b16583680c5 | [] | no_license | leiandi/AMAOEd-ComProg1-Week006 | 41e1a20356dd91a9304f88ef774c3905e82b9732 | f0d6840fa63a2ea3292f277665347da81938d2ee | refs/heads/master | 2020-04-10T09:44:08.905772 | 2018-12-08T14:41:11 | 2018-12-08T14:41:11 | 160,945,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | main.cpp | //Name: Jameson Villaluna
//Date: October 14, 2018
#include<cstdlib>
#include<iostream>
#include<string>
using namespace std;
int main() {
int input;
cout << "Input number: ";
cin >> input;
if (input == 0) {
cout << "Hello World " << endl;
}else if (input == 1) {
... |
c3f869cd2f7c264c60cba8c7706822acdb4da947 | 69303db180b184889065c3e2f47d9b3ccd2459dc | /ds_algo/array_list.h | fd96123eb31865316f47298dd2fef038f2f21531 | [] | no_license | kangic/study | a146eb6ff8a51c99796c3cbf0fa6f403318a7563 | 3c6c458699ba185a6a0056b503bd46b70d9127af | refs/heads/master | 2016-09-06T01:04:46.643655 | 2016-03-04T09:44:07 | 2016-03-04T09:44:07 | 30,464,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | h | array_list.h | #ifndef _ARRAY_LIST_H_
#define _ARRAY_LIST_H_
#define MAX_SIZE 100
template <typename T>
class array_list {
public:
array_list(void);
virtual ~array_list(void);
void add_to_front(const T& data);
void add_to_back(const T& data);
void delete_data(int pos);
bool is_empty();
bool is_full();
int size(... |
de39d037b1f6b7b2b2489ee9d97e16a8a9b1e074 | 44c32f7b4c6af597970e9c15826ed7c34539de27 | /opengl-projects/FechoConvexoTri/Fecho_Convexo_Tri.cpp | 3ef6c964d0ea8a01c680b2ddb35e974b33b186c5 | [] | no_license | ualison/others-projects | 75e74b43a6cc09941b614ca8bb411f16d7a01f40 | 7f360973f97d5e8caa2a66d5532c0f045affe8c2 | refs/heads/master | 2020-05-05T12:53:43.608291 | 2019-04-08T02:33:45 | 2019-04-08T02:33:45 | 180,049,907 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 7,417 | cpp | Fecho_Convexo_Tri.cpp | #include <bits/stdc++.h>
#include <GL/glut.h>
#include <stdlib.h>
using namespace std;
struct Point{
int x, y;
bool isConvex = false;
};
struct Triangulo{
Point t1, t2, t3;
};
int pos_x = 0;
int pos_y = 0;
bool apertarEnter = false;
vector<Point> vec;
vector<Point> convex;
vector... |
bca37ac0855f251188e5f7b20f1d06d0d6e9bcc6 | 86dde6508aa4ae3233895f159aba6c210c2a8cbc | /src/EngineClass/Stop.cpp | a6ea57ec5515b31005fb72fc698c80689b077939 | [] | no_license | kasspip/DOGLE | 84e2808bded0d60d4aa035a91624b01ab1cb0ea8 | c520d967b833fecf6bc88cbaf81c53a11857bcab | refs/heads/master | 2016-08-10T12:22:26.023025 | 2015-12-13T11:56:34 | 2015-12-13T11:56:34 | 43,964,374 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 758 | cpp | Stop.cpp | #include "Stop.hpp"
#include "Script.hpp"
// CONSTRUCTOR DESTRUCTOR //
Stop::Stop(void)
{
}
Stop::~Stop(void)
{
}
// OVERLOADS //
std::ostream &operator<<(std::ostream & o, Stop const & rhs)
{
o << rhs.toString();
return o;
}
// PUBLIC //
void Stop::RunState(Application & app, e_state & currentState)
{
PRIN... |
d2102207e8f55595ca8473c82924e1711935f242 | 3e67fc1156e1477bce398f8162dd20a8c8e0a195 | /Params/inc/Domain.hpp | 92d77440064569ac9e5f065e8da233c220b9208b | [] | no_license | kergab/quorum-sensing-agents | 74336ac0ca14fa939d51e44ed2edbfdd0e47e544 | 2622f1cf0ba88775958139bd7352d0c68726da04 | refs/heads/main | 2023-03-19T17:49:14.585083 | 2021-03-16T11:07:25 | 2021-03-16T11:07:25 | 346,673,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | hpp | Domain.hpp | #ifndef Domain_HPP
#define Domain_HPP
#include "Rect.hpp"
#include "Attribute.hpp"
struct Domain {
bool filled;
Rect r;
Attribute a;
void put(QDomDocument& doc, QDomNode& node);
bool get(QDomNode& node);
};
#endif
|
e918c72888518a85b4d496009bc69794bdd4d1d9 | be9cd9a8e4fcfb0814efb458366af0a52dc7b2f4 | /Topic-Wise/Dynamic-Programming/C++/MinimumJumps.cpp | 3d2cf2c236d136f30af185eaa5ae5ef1ceb8357b | [] | no_license | mdsarfarazulh/Interview-Preparation | 30bf371903bd6d9578b3bacef9fba372b6f8c7f9 | 7f0e438fb78f85caade54f102964fc564d275560 | refs/heads/master | 2020-05-07T10:29:51.544740 | 2019-06-12T04:38:23 | 2019-06-12T04:38:23 | 180,420,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,560 | cpp | MinimumJumps.cpp | /*
Problem: https://practice.geeksforgeeks.org/problems/minimum-number-of-jumps/0
Editorial: https://www.geeksforgeeks.org/minimum-number-of-jumps-to-reach-end-of-a-given-array/
*/
#include<bits/stdc++.h>
using namespace std;
#define LL long long int
void solve(){
int n;
cin>>n;
int arr[n];
... |
2b7c14d751a5e4c2cf4b8e5db16d852bdd923deb | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_9516.cpp | ee140854fe98adbf624bffbc0fe276b9e41dcc9a | [] | 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 | 30 | cpp | Kitware_CMake_repos_basic_block_block_9516.cpp | tacl_entry[4].permset |= eperm |
0c816e361d5b21de1b488792f4374e4975c64e95 | 73758c9e65e166c9a26df2bcf1719af6ed0a9708 | /rs-decoder.cpp | 816b37e2a1ba1367fd0d387fc5192019a181e51a | [] | no_license | thepaintedsnipe/rs-retrieve | 16d9e328687ad29b6bc5ad22a16a7a4fa8bfa154 | 6523b16ca4a34d61e03985092df0364b3f22b0a6 | refs/heads/master | 2020-03-19T01:10:49.134736 | 2018-05-31T12:12:29 | 2018-05-31T12:18:01 | 135,527,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,429 | cpp | rs-decoder.cpp | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/avutil.h>
#include <libavutil/pixdesc.h>
#include <... |
2d0b6ebba6bc0b22fb428d3c8e93d4ca9df4d376 | ce161c98d5b1a69fd12b7af691709a76da55b44d | /codeforces/Codeforces_Round_#Pi_(Div_2)/D_One-Dimensional_Battle_Ships.cpp | fe8d6d91b89cc510c710f8a4c94eea8c17595aee | [] | no_license | cup2of2tea/CompetitiveProgramming | cb45d40ff0c27e2b9891eb135e4e5ef795014989 | eaa9bfac351c0eb909c7686534fe647c31eaac65 | refs/heads/master | 2020-09-02T07:21:18.722266 | 2019-11-02T14:30:57 | 2019-11-02T14:30:57 | 219,165,630 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 837 | cpp | D_One-Dimensional_Battle_Ships.cpp | #include <bits/stdc++.h>
using namespace std;
bool ok(int n,int k, int a, vector<int> &ori, int test)
{
vector<int> v;
for(int c=0;c<test;c++) v.push_back(ori[c]);
v.push_back(0);
v.push_back(n+1);
sort(v.begin(),v.end());
int poss = 0;
for(int c=1;c<v.size();c++)
{
poss +=(((v... |
c81c2ae8e2bdc4ea4113d1c3791401e9036833a7 | 4293dd36cfefc45d5ce9e91bef11c49c0a6736bd | /MS4/kernel/cpu/herm/herm_padded.cpp | 9d82d88e0c8adbbdfe3eb6160ed40485e76d4830 | [
"Apache-2.0"
] | permissive | SKA-ScienceDataProcessor/RC | 2dc8ea9956e0d90681afcf5aacc96ff7357eacf4 | 1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af | refs/heads/master | 2020-04-06T06:55:01.449166 | 2016-08-16T13:48:44 | 2016-08-16T13:48:44 | 20,220,152 | 9 | 2 | null | 2016-06-15T06:01:45 | 2014-05-27T13:04:05 | Haskell | UTF-8 | C++ | false | false | 1,109 | cpp | herm_padded.cpp | #include "herm_padded.h"
#ifndef MOVE_TO_TOP
// Very simple. Only for even sizes.
void herm_padded_inplace(complexd * data, int size, int pitch){
int
pad = pitch - size
// the same as (size-1)*(pitch+1)
, dataend = size * pitch - pad - 1
, jmp = pad + size / 2
;
complexd
* pv0 = data... |
98c1de83fd6e7070c9f254498231ae6dc0b190b2 | 26cc428b3d87f0cd0f1a2e6a51e9da25cd0b651a | /upperPosition/Blasius_30/0.55/phi | 5b302f4c21210ac850863a9b9aba443a53f5f839 | [] | no_license | CagriMetin/BlasiusProblem | 8f4fe708df8f3332d054b233d99a33fbb3c15c2a | 32c4aafd6ddd6ba4c39aef04d01b77a9106125b2 | refs/heads/master | 2020-12-24T19:37:14.665700 | 2016-12-27T19:13:04 | 2016-12-27T19:13:04 | 57,833,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210,916 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | |
bbb36ec275983cc3900e5c54be7bb2e353b9fe91 | 21cbd934d935bd17de198826927a9052f2142ab4 | /session4/C12.cpp | 36a56a057b16b5a1ff76916ac664139e9eb46084 | [] | no_license | rock3rdiaz/course_cpp_training | b80d67d3d830b57f8f960df238689e41bbef0c1b | dedf6e09850c6812cd9e21c3c336579d704b0a3a | refs/heads/master | 2020-03-30T00:02:49.382775 | 2018-10-25T23:42:14 | 2018-10-25T23:42:14 | 150,502,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | C12.cpp | // sesion 4, class 12. Basic vector.
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<string> strings;
strings.push_back("one");
strings.push_back("two");
strings.push_back("three");
for(int i = 0; i < strings.size(); i++) {
cout << "with index: " << strings[i] << endl;
}
for... |
08bd214af7a222d61abe38c2ce10cdab509f9466 | 269e13a077d3ef90d4c352249fb6e32d2360a4ec | /leetcode/trie/211-Design-Add-and-Search-Words-Data-Structure.cpp | 5d255aa35004804d81a78182f939356fb4f3163d | [] | no_license | luckyzahuo/Snorlax | d3df462ee484ecd338cde05869006f907e684153 | 51cf7e313fddee6fd00c2a276b43c48013375618 | refs/heads/master | 2023-08-21T11:02:01.975516 | 2021-10-10T08:50:40 | 2021-10-10T08:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,397 | cpp | 211-Design-Add-and-Search-Words-Data-Structure.cpp | #include <string>
#include <unordered_map>
using namespace std;
class WordDictionary {
private:
class TreeNode {
public:
bool isWord;
unordered_map<char, TreeNode *> next;
TreeNode() {
isWord = false;
}
};
TreeNode *root;
public:
... |
70a7f7aa8ebc49d3e3f020bdc540b987732a80b7 | 5a58e370a85095717320383ba3dd66beb3efad47 | /src/models/lbann_model.cpp | 25ed32ba1ff69ea74b8af378c4740e65fc333be5 | [
"Apache-2.0"
] | permissive | rylberg/lbann | c3a5d7e57822c1622296305d34fb0a11deac68c3 | f5878cfa0bf3a32fdcf9a66083ed88f16fb5876e | refs/heads/master | 2020-03-14T17:59:34.197837 | 2017-06-20T23:02:50 | 2017-06-20T23:05:27 | 131,732,662 | 0 | 0 | null | 2018-05-01T15:56:21 | 2018-05-01T15:56:21 | null | UTF-8 | C++ | false | false | 15,443 | cpp | lbann_model.cpp | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
e8551fdd0b5a2722997aaa23a4d4d39c08495842 | ce99b399bead6c9a285f07d386d04a4a1c5f6bb7 | /Cookbook/Chapter03/Chapter03/SceneEditor/SceneEditor/SceneEditorView.cpp | 34cd561f55c4e1e88d8432d9bc5e9cdca3b2f565 | [] | no_license | codediy/OgreDemo | 13e97c984499330bbd733f5c7c64212324e428b4 | 6fb0ad2edde881feda040f5eb8bdf134f6ca9495 | refs/heads/master | 2020-12-05T21:44:51.348401 | 2020-01-07T06:13:00 | 2020-01-07T06:13:00 | 232,255,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,020 | cpp | SceneEditorView.cpp |
// SceneEditorView.cpp : implementation of the CSceneEditorView class
//
#include "stdafx.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "SceneEditor.h"
#endif
... |
3ce2067d1b9318673af6a50466a3ec34daaa82b7 | e29277d48aae1c4148d08bda129bf81af6f9f937 | /seqList/SeqList.cpp | a016c201ad6bd89d6acb9ecb40bbb33e161f51fd | [
"MulanPSL-2.0",
"LicenseRef-scancode-mulanpsl-2.0-en",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cyber-dash-edu/data-structure-cpp | 6c20ac6c227bee48998820845c36c8eb44206671 | 5e146f954158277b6b1b38f1d7b1b92ebd0d0a82 | refs/heads/master | 2023-03-10T18:55:18.880884 | 2021-02-21T14:46:24 | 2021-02-21T14:46:24 | 340,925,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,742 | cpp | SeqList.cpp | //
// Created by cyberdash@163.com(抖音: cyberdash_yuan) on 2020/7/14.
//
#include "SeqList.h"
using namespace std;
template<class T>
SeqList<T>::SeqList() {
data_array_ = NULL;
max_size_ = 0;
last_idx_ = -1;
}
template<class T>
SeqList<T>::SeqList(int size) {
if (size > 0) {
max_size_ = size;
las... |
ca9cf4a858596c48ed1a1e05f75a0b118162d676 | 6197740e6297da2f3d0c8ffd2a1d7ef5d8b3d2cb | /AlgorithmInC/Ch09/PQ_binomial.cpp | a80875aca72fc39f348d7bff14f9ec8e1ba381f1 | [] | no_license | ssh352/cppcode | 1159d4137b68ada253678718b3d416639d3849ba | 5b7c28963286295dfc9af087bed51ac35cd79ce6 | refs/heads/master | 2020-11-24T18:07:17.587795 | 2016-07-15T13:13:05 | 2016-07-15T13:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,129 | cpp | PQ_binomial.cpp | #include <stdlib.h>
#include "PQ_link_heap.h"
#define maxBQsize 1000
PQlink pair(PQlink p, PQlink q)
{
PQlink t;
if (less(p->key, q->key))
{
p->r = q->l;
q->l = p;
return q;
}
else
{
q->r = p->l;
p->l = q;
return p;
}
}
... |
be5863b59d2824ea7283d8d145345916c4cfa381 | b22055bb75b593abaa69c8def3fb0aaaaab9532f | /Qt (C++)/LabOfWork/wmaskeditwindow.cpp | eda77d08c5b3067d828b2ff250fd38ae06439ad2 | [] | no_license | DanSoW/ProgramQt | fc211a540b59d541c0a32c731cf41e61b1b0e38d | e24b2da21519990aed196f3db9b5541683eec23d | refs/heads/main | 2023-03-04T10:57:19.709946 | 2021-02-11T05:05:04 | 2021-02-11T05:05:04 | 337,934,598 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 107 | cpp | wmaskeditwindow.cpp | #include "wmaskeditwindow.h"
WMaskEditWindow::WMaskEditWindow(QWidget *parent) : QMainWindow(parent)
{
}
|
cec20f75a07e17886367c053fbeb0366d6f5a367 | 0ee270bc168b7b32ea4260212c1ec6382e1c34fd | /evo/NK-const.h | d19f2c17de86e6f521c515dbdbeadb3e0f5175e8 | [
"DOC"
] | permissive | thomaslabar/Empirical | 2c4e7948fa1607d6387f5db1e2de06bda09dd476 | 25cfbe671dfdb464ee0593357ab2dee86d1b06dd | refs/heads/master | 2020-12-28T19:08:08.871036 | 2016-09-03T02:40:30 | 2016-09-03T02:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,338 | h | NK-const.h | // This file is part of Empirical, https://github.com/devosoft/Empirical
// Copyright (C) Michigan State University, 2016.
// Released under the MIT Software license; see doc/LICENSE
//
//
// This file provides code to build NK-based algorithms.
#ifndef EMP_EVO_NK_CONST_H
#define EMP_EVO_NK_CONST_H
#include <arra... |
318379df24699373dac746a0883057d823882763 | 7fc9ca1aa8c9281160105c7f2b3a96007630add7 | /414a.cpp | 960089a6208cf0681f13a7b9d897155bbdef402a | [] | no_license | PatelManav/Codeforces_Backup | 9b2318d02c42d8402c9874ae0c570d4176348857 | 9671a37b9de20f0f9d9849cd74e00c18de780498 | refs/heads/master | 2023-01-04T03:18:14.823128 | 2020-10-27T12:07:22 | 2020-10-27T12:07:22 | 300,317,389 | 2 | 1 | null | 2020-10-27T12:07:23 | 2020-10-01T14:54:31 | C++ | UTF-8 | C++ | false | false | 1,135 | cpp | 414a.cpp | #include <bits/stdc++.h>
#include <stdlib.h>
#include <stdio.h>
#define f first
#define s second
#define inf 1e18
#define ll long long
#define mod 1000000007
#define pb emplace_back
#define vll vector<long long>
#define ull unsigned long long
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define ... |
77bc078b27323d31e00f600656f694e419f03777 | bd3925f5c5327830c535d08a1d7bcd24a52850c6 | /morseMain.h | 3bacc2f2b5ba1e374ce7b5eb3788e6d21b3a7768 | [] | no_license | matwypych/Factory-C- | 28dcbe183f4cfedd9def0fa1510aecc4afe6d61a | 43022e9adb0fcc3acd0f5c3dc0bb06aa6dd29aa5 | refs/heads/master | 2022-10-04T10:21:48.593297 | 2020-06-09T11:30:29 | 2020-06-09T11:30:29 | 270,983,957 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,376 | h | morseMain.h | /*
Klasa "morseMain"
Opis:
Autor: Mateusz Wypych
Data utworzenia: 10.01.2020
Data poprawki/edycja: 16.11.2019 19.11.2019
*/
#ifndef morseMain_H
#define morseMain_H
#include <string>
#include <iostream>
#include <sstream>
#include <iomanip>
class morse
{
protected:
std::string mors; //kod mor... |
cfd79ccca202717dc181819f4db7f2a48a979522 | bd729ef9fcd96ea62e82bb684c831d9917017d0e | /keche/trunk/comm_app/projects/netfile/asynfile.h | 4543552f61fc25b0b58d44d0a646c1fabad769ac | [] | no_license | shanghaif/workspace-kepler | 849c7de67b1f3ee5e7da55199c05c737f036780c | ac1644be26a21f11a3a4a00319c450eb590c1176 | refs/heads/master | 2023-03-22T03:38:55.103692 | 2018-03-24T02:39:41 | 2018-03-24T02:39:41 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,333 | h | asynfile.h | /*
* fileclient.h
*
* Created on: 2012-9-18
* Author: humingqing
*
* Memo: 文件读写客户端程序
*/
#ifndef __FILECLIENT_H_
#define __FILECLIENT_H_
#include <inetfile.h>
#include <NetHandle.h>
#include <protocol.h>
#include <interpacker.h>
class CWaitObjMgr ;
class CAsynFile : public CNetHandle, public INetFile
{
... |
f874aca4683909711fb69dd6cfe89ee880e01aed | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_2597_last_repos.cpp | 3a1c9c276d4118f52fb9687b29e90d1dd49dd3de | [] | 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 | 414 | cpp | httpd_repos_function_2597_last_repos.cpp | h2_request *h2_request_clone(apr_pool_t *p, const h2_request *src)
{
h2_request *dst = apr_pmemdup(p, src, sizeof(*dst));
dst->method = apr_pstrdup(p, src->method);
dst->scheme = apr_pstrdup(p, src->scheme);
dst->authority = apr_pstrdup(p, src->authority);
dst->path = apr_pstr... |
a13c4a22080771d506ded34cadefb8069cf183a2 | 1c4ef07a645751b829114be4ef031018fd7b798f | /Code/Engine/Graphics/Context.cpp | 2742c09a4b8308e4476a2af682a7c1c39d54ab8c | [] | no_license | chadha02/Cross-Platform-Asset-Pipeline | db1d295c848a7dad41b3c2efd5eb9c6e2d9de45e | adf4393a93e4fde0651ada144e61a77a281737b2 | refs/heads/master | 2021-01-23T02:18:58.144292 | 2017-03-23T18:34:50 | 2017-03-23T18:34:50 | 85,983,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | cpp | Context.cpp | #include "Context.h"
#if defined( EAE6320_PLATFORM_D3D )
ID3D11DeviceContext* eae6320::Graphics::s_direct3dImmediateContext = NULL;
ID3D11Device* eae6320::Graphics::s_direct3dDevice = NULL;
ID3D11SamplerState* eae6320::Graphics::s_samplerState = NULL;
#endif |
932a81c21ee9eb466241a375de1eb839a72c3962 | 1f8bbea9bbc4886981a05fc8f193410a9c33fe06 | /ClassCode/W01-HelloWorld/intWrap.cpp | e231542f27dc84556593a7ea63413ffc9d08a51a | [] | no_license | fuzzpault/UIndy-SCSI155-2016-I | fe4ba1691a5450e8207c48e8a3c1e25f9f8b282b | 46839576a04685274da5b16084f2e1d685246a55 | refs/heads/master | 2020-12-04T13:54:15.803945 | 2016-12-19T04:54:16 | 2016-12-19T04:54:16 | 66,765,567 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cpp | intWrap.cpp | /* Name: Paul Talaga
Date: 9/1/16
Desc: What happends if you get too large?
*/
#include <iostream>
using namespace std;
int main(){
//unsigned a = 0; // Watch what happens around 4 billion
int a = 0; // Watch what happens around 2 billion
while(true){ // This will loop forever!
cout << a << ... |
4dbb43ff7dacc8e8bb8f03aa0e9ae692320c933e | 5dd36c9dc3e6169b7a22529a75f620e42da80ee1 | /00283. Move Zeroes.cpp | 41941d6bb4bb432cf0393d67c1608e0172ce2ca3 | [] | no_license | SanyaAttri/LeetCode | cdd6d3831f7a0f707285fd5bb9a5b11556efaa32 | d0cf03fcd6525ceeee231ba7efe40955eec4314d | refs/heads/master | 2022-12-24T20:58:20.040302 | 2020-10-10T11:12:27 | 2020-10-10T11:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | 00283. Move Zeroes.cpp | /**
Status: Accepted
Runtime: 124 ms
Submitted: 1 year, 6 months ago
*/
class Solution {
public:
void moveZeroes(vector<int>& nums) {
int n = (int)nums.size();
int cnt = 0;
int idx = -1;
for(int i=0;i<n;i++){
if(nums[i] == 0){
idx = i;
f... |
dbd70f738080d4bb521c0c6c43369bb0c56a2429 | 350db570521d3fc43f07df645addb9d6e648c17e | /0994_Rotting_Oranges/solution.cpp | a286ed48bbd1a6dfccdfa50ad6160cb68610273b | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,392 | cpp | solution.cpp | /*
994. Rotting Oranges
Level: Medium
https://leetcode.com/problems/rotting-oranges
*/
#include <iostream>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <numeric>
#include <algorithm>
#include "common/ListNode.h"
#include "common/Tree... |
f8ee0776599cfb8796a62f90642af5dceb8d592d | 1cedf5abe49887cf7a3b733231880413ec209252 | /TinyGame/Poker/FCSolver/FCPresets.cpp | ac2b1407884c9f8321b4bee0945ac22e649bfa66 | [] | no_license | uvbs/GameProject | 67d9f718458e0da636be4ad293c9e92a721a8921 | 0105e36971950916019a970df1b4955835e121ce | refs/heads/master | 2020-04-14T22:35:24.643887 | 2015-09-02T06:55:54 | 2015-09-02T06:55:54 | 42,047,051 | 1 | 0 | null | 2015-09-07T10:34:34 | 2015-09-07T10:34:33 | null | UTF-8 | C++ | false | false | 7,925 | cpp | FCPresets.cpp | ////////////////////////////////////////////////
///\file FCPresets.cpp
///\brief This file contains preset card game implementation
///\author Michael Mann
///\version 1.0
///\date August 2002
////////////////////////////////////////////////
#include <string.h>
#include <stdio.h>
#include "FCPresets.h"
const FCSPres... |
14edb16e1f76db093bca347dd78708e21c714a9a | a15200778946f6f181e23373525b02b65c44ce6e | /Algoritmi/2020-07-14/all-CMS-submissions-2020-07-14/20200714T131455.VR452248_id258mal.align_one_string.cpp | 17a0ea85c3b10882647c1682d2b9782bac816c4c | [] | no_license | alberto-uni/portafoglioVoti_public | db518f4d4e750d25dcb61e41aa3f9ea69aaaf275 | 40c00ab74f641f83b23e06806bfa29c833badef9 | refs/heads/master | 2023-08-29T03:33:06.477640 | 2021-10-08T17:12:31 | 2021-10-08T17:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,037 | cpp | 20200714T131455.VR452248_id258mal.align_one_string.cpp | /**
* user: VR452248_id258mal
* fname: DAVIDE
* lname: GUGOLE
* task: align_one_string
* score: 0.0
* date: 2020-07-14 13:14:55.432167
*/
#include <iostream>
#include <limits>
using namespace std;
const int MAXM = 1000;
const int MAXN = 1000;
const int MAXP = 1000;
int M, N, P;
int cost[MAXP+1];
char A[MAX... |
c06303e9b95657a4f8a13444da41e2a18bf69339 | 8a5f8dfdd038590a579d14a84558cce2bb930b22 | /AICamera/app/src/main/cpp/caffe2/core/nomscheduler/tests/SchedulerTest.cc | ce00ab9473d1adc27dfe5e1a4ddc5d6439cdbd08 | [
"MIT"
] | permissive | blackxer/AICamera | ebc94c663e6f2ea6e8c81290a64bce4e7d369ed9 | 4f0a6a09a2288da2ec7140744b5c2862df114c78 | refs/heads/master | 2020-08-11T19:53:42.388828 | 2019-10-16T01:19:59 | 2019-10-16T01:19:59 | 214,616,987 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,202 | cc | SchedulerTest.cc | #include <algorithm>
#include <cstdio>
#include <limits>
#include <sstream>
#include <unordered_set>
#include "nomscheduler/Scheduler/CriticalPathAnalyzer.h"
#include "nomscheduler/Scheduler/HEFTScheduler.h"
#include "nomscheduler/Scheduler/Scheduler.h"
#include <gtest/gtest.h>
namespace nomscheduler {
... |
016424fdfdb513617a32c611eeb6e03a5424f38c | f0822e9ddf6caf13bc333de8c9c415bc1434ba37 | /Disassembler.cpp | bbfc7a3617f5c67dfa95bd11118335321108d6c0 | [] | no_license | gatsby97/CPU | 85e7a40895cbe766d7a0177d7e3ef0761be85b6f | a0eb211df2d92be3111710874e40d98805a20ad5 | refs/heads/main | 2023-07-06T08:22:02.364496 | 2021-04-17T10:00:58 | 2021-04-17T10:00:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,167 | cpp | Disassembler.cpp | #include <iostream>
#include "Standart_Libriaries.h"
#include "commands.h"
#include "File_Operations.h"
//-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
int Command_Decoder(int cmd1, int cmd2, int cmd3, FILE* disassembled_cmds, int PC, int LabelsAmount, int* Labels);
int PrintLabel ... |
99711f643011813d094a54e8c30569ee416d53a6 | 644623d86d115f22ae7ceffe652d9f116ce057b6 | /Engine/Code/AabbCollider.cpp | bedd044d92fffcf4be97d661c078908ed57b9751 | [] | no_license | GyongS/YS_3DProject | 8f05c3704f2e6fa73ccaa72052896ade7d247ff0 | 33df784c791af6e70078bcd1340d11328fbe621e | refs/heads/master | 2023-04-04T23:15:34.387851 | 2021-04-16T16:40:03 | 2021-04-16T16:40:03 | 351,403,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,889 | cpp | AabbCollider.cpp | #include "EngineStdafx.h"
#include "AabbCollider.h"
USING(Engine)
CAabbCollider::CAabbCollider()
{
}
CAabbCollider::~CAabbCollider()
{
}
CAabbCollider * CAabbCollider::Create(_float3 size, _float3 offset)
{
CAabbCollider* pAabb = new CAabbCollider;
pAabb->SetOffset(offset);
pAabb->SetSize(size);
pAabb->SetHalfS... |
c7ebff1a1f1270ace0af331c78aec5faf8baf6d5 | 53f0935ea44e900e00dc86d66f5181c5514d9b8e | /dmih-qual/03/ivica.cpp | 93c032c1c97e891673e87d83ab3545f09aaacfcc | [] | no_license | losvald/algo | 3dad94842ad5eb4c7aa7295e69a9e727a27177f6 | 26ccb862c4808f0d5970cee4ab461d1bd4cecac6 | refs/heads/master | 2016-09-06T09:05:57.985891 | 2015-11-05T05:13:19 | 2015-11-05T05:13:19 | 26,628,114 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | ivica.cpp | #include <stdio.h>
#include <conio.h>
void sort(int *m, int M) {
for(int k = 1; k < M; k++) {
int br = 0;
for(int l = k; l >= 0; l--)
if(l != k && m[l] == m[k]) {
++br; break;}
if(br) {
for(int l = k; l >= 0; l--)
if(l != k &... |
cad71329f9eff001b0ee52e2dbdb2aaa4e32f3df | 303b48eb9354338542e0a4ca68df1978dd8d038b | /include/fox/FXRex.h | fdcd0bcf72e09353fee86d258633733b4ff2814a | [
"BSD-3-Clause"
] | permissive | ldematte/beppe | fa98a212bbe4a27c5d63defaf386898a48d72deb | 53369e0635d37d2dc58aa0b6317e664b3cf67547 | refs/heads/master | 2020-06-04T00:05:39.688233 | 2013-01-06T16:37:03 | 2013-01-06T16:37:03 | 7,469,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,914 | h | FXRex.h | /********************************************************************************
* *
* R e g u l a r E x p r e s s i o n C l a s s *
* ... |
c25f5cc594248118fe1bca057ca221ee3d554db4 | b690c92a2f6a5dfe92b3dba2a9ff1e9e78d078a6 | /Source/Libraries/TimeSeriesPlatformLibrary/Samples/TemporalSubscriber.cpp | e5ee4fec060a560fe8c9a61e632a0a4d54e173d3 | [
"MIT",
"MS-PL",
"BSD-3-Clause",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"CPOL-1.02",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | GridProtectionAlliance/gsf | 5483a8dd739d1c614501ea83c9cbf923430069fc | 9efd592074d5657e06f68d66182fa094c08ea64b | refs/heads/master | 2023-09-02T08:48:16.950323 | 2023-08-31T04:01:55 | 2023-08-31T04:01:55 | 40,739,386 | 156 | 94 | MIT | 2023-09-14T13:35:31 | 2015-08-14T23:05:31 | C# | WINDOWS-1252 | C++ | false | false | 4,281 | cpp | TemporalSubscriber.cpp | //******************************************************************************************************
// TemporalSubscriber.cpp - Gbtc
//
// Copyright © 2019, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
... |
65532ecec7e67477ab0db9b0baa05737436268f2 | 4a314b0a6ca6dc2021eb061861e590784264925c | /src/file/File.cpp | 6695ff75e96af160f871fcd4a8a1f3d95ecfb0df | [] | no_license | gMpHSpLB/WavToMP3 | c9e8eb5cc32f1f384f0289033164368f5db67433 | 02bdb84670843e8fe7af2003b732b000c37b3bbd | refs/heads/master | 2022-11-10T00:45:36.500964 | 2020-06-29T13:05:12 | 2020-06-29T13:05:12 | 275,805,756 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,405 | cpp | File.cpp | /* wave to mp3 encoding using Lame lib
@mpathak
*/
#include <sstream>
#include "File.h"
#include "Log.h"
bool File::Initialize(const char* pFileName,
eFileType fileType,
eFileAccessMode accessMode,
unsigned long int fileSize){
if (pFileName) {
unsigned int len = strlen(pFileName);
if ((le... |
b05adc2f7614e6f39023497736e65c02a3a7a5fa | 46ea063a4ef7d7be296882b089794dbc8ceb7377 | /src/p10/ekb/p10_spr_name_map.H | d6acdc6d13e0f51f69648b2deb8aa8a62ae9244a | [
"Apache-2.0"
] | permissive | open-power/ecmd-pdbg | cfb68da429bef5edb73b203bc141fe270ce5402e | cb4820e97f2a5a7b8488cb21e85e3414fed8975b | refs/heads/master | 2023-05-24T16:23:59.393062 | 2023-05-22T11:18:11 | 2023-05-22T11:18:11 | 177,689,887 | 1 | 30 | Apache-2.0 | 2023-08-30T07:23:02 | 2019-03-26T01:08:06 | C | UTF-8 | C++ | false | false | 25,221 | h | p10_spr_name_map.H | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: chips/p10/procedures/hwp/perv/p10_spr_name_map.H $ */
/* ... |
388a4ec5fc245f3bdd14e92ea5531bc308d1033c | ab804b4e9854420ab6a3b52f3b34cec3953a7f69 | /2/OutOfRangeException.cpp | e5a4a307987237d9338f978ec4b8c26a87416f5f | [] | no_license | bullockwp/Learning-C-for-Data-Sci | f47ab9b6df715c67951a97ee8f6326da066eaed5 | f3478b90aed370467dc80e55d929d2b0a77a5385 | refs/heads/master | 2021-04-15T14:30:27.726640 | 2018-03-22T12:08:01 | 2018-03-22T12:08:01 | 126,328,216 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | OutOfRangeException.cpp | #include "OutOfRangeException.hpp"
OutOfRangeException::OutOfRangeException()
{
SetmTag("none");
SetmProblem("itsok");
}
OutOfRangeException::OutOfRangeException(std::string prob)
{
SetmTag(prob);
SetmProblem("it's out of range idiot!");
}
|
b3814503ce46ed3df5011490b05630ad56d6ad91 | ab150515ab6d9bfe978a64af56d18a6c519179d0 | /src/fileutil.h | 02af0d6e3011abacf13a0a1b436d476e79799e7d | [
"MIT"
] | permissive | dlarudgus20/viterbi | 10ea49304ce8cc9189d3b9f87d8dee3b181dce96 | 92016c3740333d56e19da30425d0e6ac4cc1907e | refs/heads/master | 2020-04-06T13:15:24.060317 | 2018-11-27T17:19:09 | 2018-11-27T17:19:09 | 157,491,164 | 0 | 0 | null | 2018-11-14T04:34:18 | 2018-11-14T04:34:18 | null | UTF-8 | C++ | false | false | 252 | h | fileutil.h | #ifndef FILEUTIL_H_
#define FILEUTIL_H_
#include <vector>
#include <string>
using namespace std;
int listFilePaths (string prefix, string dir, vector<string> &paths);
int listAllInputPaths (string prefix, vector<string> &paths);
#endif
|
1663d4c5296206ae85a44ff1e93c246fa28346b6 | 56d39c1d728597f1f106760931777927e8308434 | /LastFm/agg/matMsg.cpp | ee237a976ffd160e1da3a466abc65d07c057acbf | [] | no_license | yanjunrepo/dp_coupling | f07ae030e7b77e4344ea23c7fe536228a22642d2 | a35130f1502ccb615af1bbd3ff230b8188113f13 | refs/heads/master | 2022-06-21T09:45:48.082398 | 2020-05-08T10:21:28 | 2020-05-08T10:21:28 | 262,233,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,168 | cpp | matMsg.cpp | //
// Created by Yanjun zhang on 2020-08-03.
//
#include <iostream>
#include <Eigen/Dense>
#include <vector>
#include <string>
#include <cstdlib>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <zmq.h>
void matMsg_agg(int row, int column) {
void *context = zmq_init (1);
void *responder = ... |
8b3afef4dd3b647932c63c7a07083ac533339cc7 | 3e0f1ba5574a0fea7cff78f8eb083252db7633f1 | /image_pro/11_week_rotation.cpp | 49b66aed8c4e5cc960ca01efbe65e39feaf007b7 | [] | no_license | Soo-Bin/multimidea_lecture | 11fa1aebf713e25d9f106b5c58b39084139e1ca9 | 144788687f6613e5ab4d29a9686d7c47f6bda003 | refs/heads/master | 2020-05-25T19:22:02.161465 | 2017-06-12T16:41:05 | 2017-06-12T16:41:05 | 84,958,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,328 | cpp | 11_week_rotation.cpp | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <malloc.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
#define PI 3.14159265359
int** IntAlloc2(int width, int height);
void IntFree2(int** image, int width, int hei... |
fd8f1c8b872b054030c8544ad7e66bb35e6d1880 | 9848398c2de0022f15547a62a81c44d834556146 | /testCapture.cpp | d4e234a635919899f613592dee538d610493f901 | [] | no_license | hortka/autodetect | 6d9fc95bef9a65ce2699f3077c6fce818a273144 | 6a5b7dd92ca5d332e396939309325ccf1189e462 | refs/heads/master | 2020-04-04T09:56:16.989328 | 2019-04-04T06:17:26 | 2019-04-04T06:17:26 | 155,836,665 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,027 | cpp | testCapture.cpp | #include <Windows.h>
#include <stdint.h>
#include <stdio.h>
#include "cv.h"
#include "highgui.h"
using namespace cv;
void Screen();
BOOL HBitmapToMat(HBITMAP& _hBmp,Mat& _mat);
HBITMAP hBmp;
HBITMAP hOld;
void main()
{
while(1)
{
Mat src;
Mat dst;
//屏幕截图
Screen();
//类型转换
HBitmapToMat(hBmp,src);
//调整大小... |
689f4ff8e1181fd5fe18e61d3b06798b7f4b330a | 0d38154dd9ab5e447874cec0554b3ad7796f35a0 | /top_2493.cpp | 261fee9d54b2f24204e41ff209075b264fa9c923 | [] | no_license | gwanghui/gwangsSourceJava | 11aa2ccd4137faa5bc3fc8733294656cfcc324f8 | 5ef80cbc4df2567b21a995810f4d0bc710a0a74b | refs/heads/master | 2020-05-02T16:30:31.129350 | 2016-08-22T14:47:04 | 2016-08-22T14:47:04 | 29,085,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 912 | cpp | top_2493.cpp | #include <iostream>
#include <stack>
using namespace std;
stack<int*> s;
int N = 0;
int values[500000][2];
int result[500000];
int main(int argc, char* argv) {
scanf("%d", &N);
for (int i = 0; i < N; i++) {
scanf("%d", &values[i][0]);
values[i][1] = i;
}
s.push(values[N - 1]);
... |
f4967db42284536d38c708e336c86f2d742f6a95 | 4c8e61ea99f15d04174222101360321d11dda1de | /src/DjvuLib.Shared/Document.cpp | a6fb3f88313b63fe4508078d6c2d9fa5eeea050f | [
"Apache-2.0"
] | permissive | eadordzhiev/DjvuLib | 0b652c64663bc2515fdacdcffa5e93ceee1eebc7 | cbbe626708630e8d2abe5ba3ffed1d1d744700ca | refs/heads/master | 2021-01-15T15:31:16.744081 | 2018-01-20T00:01:35 | 2018-01-20T00:06:23 | 54,138,487 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,178 | cpp | Document.cpp | #include "pch.h"
#include "Document.h"
#include "libdjvu\DjVuImage.h"
#include "libdjvu\DjVuDocument.h"
#include "libdjvu\DjVmNav.h"
#include "libdjvu\DjVuText.h"
#include "libdjvu\ddjvuapi.h"
#include "WinrtByteStream.h"
using namespace concurrency;
using namespace std;
using namespace Platform;
using namespace Pl... |
3cf809bb6cdaee6323dec2b61692004c486da5c5 | 8c8820fb84dea70d31c1e31dd57d295bd08dd644 | /Renderer/Private/BasePassRendering.inl | 810f554e38674292a54a6d942ab69ea4409a9ab2 | [] | no_license | redisread/UE-Runtime | e1a56df95a4591e12c0fd0e884ac6e54f69d0a57 | 48b9e72b1ad04458039c6ddeb7578e4fc68a7bac | refs/heads/master | 2022-11-15T08:30:24.570998 | 2020-06-20T06:37:55 | 2020-06-20T06:37:55 | 274,085,558 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,731 | inl | BasePassRendering.inl | // Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
BasePassRendering.inl: Base pass rendering implementations.
(Due to forward declaration issues)
=============================================================================*/
#pragma ... |
0d10ba945a32be1fc3e240b0dcc1f469e58245f2 | 6f998bc0963dc3dfc140475a756b45d18a712a1e | /Source/AnimationLib/PudgeRunState.h | 2ea74b01400bacfc6faf0af328eb094dded0aec3 | [] | no_license | iomeone/PudgeNSludge | d4062529053c4c6d31430e74be20e86f9d04e126 | 55160d94f9ef406395d26a60245df1ca3166b08d | refs/heads/master | 2021-06-11T09:45:04.035247 | 2016-05-25T05:57:08 | 2016-05-25T05:57:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | h | PudgeRunState.h | #ifndef PUDGERUNSTATE_H_
#define PUDGERUNSTATE_H_
#include "State.h"
__declspec(align(32))
class PudgeRunState : public State
{
private:
PudgeRunState(void) {}
PudgeRunState( const PudgeRunState &) {}
const PudgeRunState& operator = (const PudgeRunState& ) {}
public:
~PudgeRunState(void);
static PudgeRunState* ... |
115dbed5228e95be378dfc0784e0acc875642d66 | 9353f7236ddf17f8b26e9536e56a68762e859a64 | /TestDigitalSign/rsaPair.h | b3a8dc38ce333a4f678b7722ae7bb2f6ad452ba1 | [] | no_license | zhouhuamin/year2018testproject | 9ee58dee1b88c8a2b6d27cf6137b563459893a7d | 5c13f6c60d2990677988cf1b953fb6729139bf9a | refs/heads/master | 2020-03-07T05:55:04.345748 | 2018-03-29T15:16:17 | 2018-03-29T15:16:17 | 127,308,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | h | rsaPair.h | /*
* File: rsaPair.h
* Author: root
*
* Created on 2017年1月13日, 下午12:05
*/
#ifndef RSAPAIR_H
#define RSAPAIR_H
#include <iostream>
#include <string>
#include <sstream>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/bn.h> // this is for the BN_new
class rsaPair {
pu... |
a9b364b02ec5a169cfe153817201f75133bb2309 | 1dbf007249acad6038d2aaa1751cbde7e7842c53 | /ecs/src/v2/model/CreateServerNicAllowedAddressPairs.cpp | eaa88ba70cdb04729693eab9cfa761c695414c79 | [] | permissive | huaweicloud/huaweicloud-sdk-cpp-v3 | 24fc8d93c922598376bdb7d009e12378dff5dd20 | 71674f4afbb0cd5950f880ec516cfabcde71afe4 | refs/heads/master | 2023-08-04T19:37:47.187698 | 2023-08-03T08:25:43 | 2023-08-03T08:25:43 | 324,328,641 | 11 | 10 | Apache-2.0 | 2021-06-24T07:25:26 | 2020-12-25T09:11:43 | C++ | UTF-8 | C++ | false | false | 2,607 | cpp | CreateServerNicAllowedAddressPairs.cpp |
#include "huaweicloud/ecs/v2/model/CreateServerNicAllowedAddressPairs.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ecs {
namespace V2 {
namespace Model {
CreateServerNicAllowedAddressPairs::CreateServerNicAllowedAddressPairs()
{
ipAddress_ = "";
ipAddressIsSet_ = false;
macAddress_ = "";
... |
945ae8d3dcea5b6ba28a563e536c220e871e89f4 | daa94c8f8f48a3e3d469451b7a58de66458d6cbd | /fastpb/cpp/PBMsgHeader.pb.cc | bee63caa141311ca145c11c7a5714606b7040730 | [] | no_license | JoeChen999/proto | 88590e5a059a722a0bcfe7e8a309b36a7700ef56 | 63cde28c6f37755d75727a670438da9391244a8c | refs/heads/master | 2021-01-17T15:02:26.136781 | 2016-09-22T06:22:16 | 2016-09-22T06:22:16 | 68,891,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 37,389 | cc | PBMsgHeader.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: PBMsgHeader.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "PBMsgHeader.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>... |
bb2dea2ddd64e9f4394bfc220a0938d239ef7d36 | db30e5539e5e3f0d96068fee6fd391b8f21ab6ee | /src/calculation.cpp | 3c1707b4cecead26aedfaa0580a232c07e7e2f27 | [] | no_license | SebastianParzych/RPN-CALCULATOR | 087c993c1bc8739838d7fbe3713c2cbf249955e4 | 3cedd4ae43f24be2c16f2f801829ecd278bf7747 | refs/heads/main | 2023-03-16T04:48:53.280344 | 2021-03-06T16:28:35 | 2021-03-06T16:28:35 | 345,139,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,347 | cpp | calculation.cpp | #include "conversion.h"
#include "calculation.h"
using std::cout;
using std::endl;
using std::string;
using std::stringstream;
Calculation::Calculation(Conversion *conv){
this->expression=conv->get_rpn();
}
void Calculation:: substition (long double value){ // replacing x,X with lowe bound + dx value... |
9ba508ff91a58680376ba00e7cd5f5fd73cf3a6c | eb7102354979dab936181c42e6ffac01a7809899 | /217_Contains_Duplicate.cpp | 82a4c03ac57ac547d7da38e1e4f667253dd408bb | [] | no_license | hsmakkar/LeetCode-Solutions | d76226332ad163e3450eb29c6050842049dc96cb | 806c761cd793ae0c58dac565dfa7dadabd5d8a9a | refs/heads/master | 2022-11-06T04:13:58.816121 | 2020-06-24T12:21:47 | 2020-06-24T12:21:47 | 268,112,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | 217_Contains_Duplicate.cpp | class Solution {
public:
bool containsDuplicate(vector<int>& a) {
sort(a.begin(),a.end());
for(int i=1;i<a.size();i++)
{
if(a[i]==a[i-1])
return true;
}
return false;
}
};
#Can Solve using HashTable,but this would be faster for large ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.