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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48a498145c2b4c023a44183cd13785964ce3b305 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/dbus/display_service_provider.h | cae55b85e8720dcb39c22db7fbe1121abdcf5d79 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,287 | h | display_service_provider.h | // Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_DBUS_DISPLAY_SERVICE_PROVIDER_H_
#define ASH_DBUS_DISPLAY_SERVICE_PROVIDER_H_
#include <memory>
#include <string>
#include "base/memory/weak_ptr.h"
#include "chro... |
1766bd445df5c456cae6991d330e5abcb901e5ae | 72ffd2eea11fdcf3ba2dc235d5d4638a849db377 | /CPP/stand_alone_linear_solver.cc | a02c0caf6d23f3c9853609798e53b5115c9bc11c | [] | no_license | ashafe1/mesh | 53818e171e1eb37c9dd2993c4c8e2db23472352c | 6d52e58c40710682b545278895e9062293b6abc6 | refs/heads/master | 2021-06-20T11:22:40.229741 | 2017-07-26T19:48:25 | 2017-07-26T19:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | cc | stand_alone_linear_solver.cc |
#include <iostream>
#include <iomanip>
// Get header (and body) of actual matrix and linear solver
#include "stand_alone_linear_solver.h"
using namespace std;
//===================================================================
/// Matrix test code
//===================================================... |
5ec5eda4659a92b289e60f69d55c1e6ff716983b | 254aed819022cf61bfd0441d7c7ff95852215f55 | /vulkan2/Project1/_INIT_VULKAN.cpp | b15918721043ab52ca338f74167c57c2f31fd6cb | [] | no_license | yunmin1130/Vulkan_Proj | 807c30c4a5c8b42b9013b9a94172d98363ac1c41 | 0122854dd9e6097855b932f40c7f47b7dc38704a | refs/heads/master | 2020-12-30T10:49:11.978840 | 2017-08-03T14:30:34 | 2017-08-03T14:30:34 | 98,855,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | cpp | _INIT_VULKAN.cpp | #include "_INIT_VULKAN.h"
#include "Shared.h"
#include "Build_Options.h"
#include "Platform.h"
#include "Window.h"
#include <iostream>
#include <sstream>
#include <cstdlib>
#include <assert.h>
#include <vector>
vulkan_class::vulkan_class()
{
instance = new vulkan_instance();
gpu = new Vk_PhysicalDe... |
33cc700d3797461dc4dd9781f47a0ffa8c8438ea | 7928f1827da675bb944edae5b027db7aeac9be8d | /014 Longest Common Prefix.cpp | 128c311fbe88e22e11535920a97f712d413feaa3 | [] | no_license | oryxantelope/LeetCode | 61932ed2eef95346a1f92ce42e32231a1c806bdd | b9975c54ecd6d43c36d2bc1537ee76d16126a243 | refs/heads/master | 2016-09-11T05:28:37.789872 | 2015-05-18T09:19:15 | 2015-05-18T09:19:15 | 22,786,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | 014 Longest Common Prefix.cpp | /**
* Write a function to find the longest common prefix string amongst an array of strings.
*/
class Solution {
public:
string longestCommonPrefix(vector<string> &strs) {
if(strs.size() == 0) return "";
for(int i = 0, j;i < (int)strs[0].length();i ++) {
for(j = 1;j < (int)strs.size();j ++) {
... |
daf5f2f52ff61a1dabe8f49aaa726d801e322e3d | 1f902e98de99596e36ba017ce3907828b99a3c1f | /services/core/jni/com_android_server_vibrator_VibratorManagerService.cpp | a47ab9d27c17d6d43dbd7d9124e651b3c24fc38d | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | aosp-mirror/platform_frameworks_base | c98112233373c83586fb1bf4d7ac256e5521b11d | 942d47b019852409865ee53a189b09cc0743dff1 | refs/heads/main | 2023-08-29T10:34:14.756209 | 2023-08-29T07:02:44 | 2023-08-29T07:02:44 | 65,885 | 4,479 | 2,590 | NOASSERTION | 2023-08-08T07:25:50 | 2008-10-21T18:20:37 | Java | UTF-8 | C++ | false | false | 7,346 | cpp | com_android_server_vibrator_VibratorManagerService.cpp | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
42cadef45d58af1a25f12874e4dfead705e7e652 | 50bcb755ed5b37ffaed5556c3d9f265354e9b5f9 | /Codechef/power.cpp | 6dc0c26c8fdbca5efad24cb869734e7177f43894 | [] | no_license | codebudy5247/Compititive_programming | b14a30c887f62f6cbfea497ca6a5dfe047428500 | 61204ad82a101c4d2e8cf293060e77de33b7e429 | refs/heads/master | 2021-05-23T08:31:10.787790 | 2020-04-05T10:14:44 | 2020-04-05T10:14:44 | 253,200,368 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | power.cpp | #include<iostream>
using namespace std;
int main()
{
int n,p,i,e=1;
cout<<"enter a number";
cin>>n;
cout<<"enter power";
cin>>p;
for(i=0;i<p;i++)
{
e=e*n;
}
cout<<e;
return 0;
}
|
1589f3016ac51d0e7b5cc4be3bd6ea5ed36d91ae | e5f04f2f7eed603dc42e8e87795a5622f3e01845 | /src/IndexRebuildThread.h | 1af2aec6981f31f895c61ffe4bcc17b9c8366844 | [] | no_license | chegestar/meebible | e6b5b8d8657869d7d2d37f4bcedc3e8022360daf | 9ea975df227e05b8cf86151dc295b141324f6bf3 | refs/heads/master | 2021-01-16T00:03:29.252065 | 2013-07-31T19:36:40 | 2013-07-31T19:36:40 | 99,949,801 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | h | IndexRebuildThread.h | #pragma once
#include <QThread>
#include <QStringList>
#include "CacheStorage.h"
class Translation;
class Indexer;
class Cache;
class IndexRebuildThread: public QThread
{
Q_OBJECT
public:
IndexRebuildThread(
Indexer* indexer,
CacheStorage* storage,
Translation*... |
750bb5539a9692befcc2a3bc81da636157ab3b42 | ed233de3f3fb6f2b8a36094b8b3a630b6a8100a8 | /getwindowthread.cpp | 9357de48914de8dfcb056524bbf359844f451240 | [] | no_license | supermanc88/WorkDiary | 4a45c23bdf078c5c98a9c5346169cb86da2b5aa2 | 1ccb83a8401f68a1f26ad8d1998b4b5e3253a54c | refs/heads/master | 2023-02-13T03:37:40.757644 | 2021-01-06T10:44:43 | 2021-01-06T10:44:49 | 324,973,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | getwindowthread.cpp | #include "getwindowthread.h"
#include <QDebug>
#include <QApplication>
#include <QWidget>
#include <windows.h>
#include <wchar.h>
GetWindowThread::GetWindowThread(QObject *parent) : QThread(parent)
{
is_close = 0;
}
void GetWindowThread::CloseThread()
{
is_close = 1;
}
void GetWindowThread::run()
{
whi... |
39a6c153eeffbcfa2b4fe232c56cb24741bdd004 | de21f9075f55640514c29ef0f1fe3f0690845764 | /regression/cpp/Apple_extensions1/main.cpp | 90d587123e6ee535c8f2d981bd408977ebd4dc5e | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause"
] | permissive | diffblue/cbmc | 975a074ac445febb3b5715f8792beb545522dc18 | decd2839c2f51a54b2ad0f3e89fdc1b4bf78cd16 | refs/heads/develop | 2023-08-31T05:52:05.342195 | 2023-08-30T13:31:51 | 2023-08-30T13:31:51 | 51,877,056 | 589 | 309 | NOASSERTION | 2023-09-14T18:49:17 | 2016-02-16T23:03:52 | C++ | UTF-8 | C++ | false | false | 139 | cpp | main.cpp | #ifdef __APPLE__
void * _Nullable p1;
void * _Nonnull p2;
// block pointer
void (^p3)(void);
#endif
int main(int argc, char* argv[])
{
}
|
8067a203333464891dd73d9d8eef0a17cc1ea7f2 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/Exhume_i/src/ExHuME.cxx | 4a9d49c19c1cca0663c19b6e8589599b97933743 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,234 | cxx | ExHuME.cxx | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "Exhume_i/ExHuME.h"
#include "GaudiKernel/MsgStream.h"
#include "Exhume_i/Higgs.h"
#include "Exhume_i/GG.h"
//#include "Exhume_i/GluinoGluino.h"
#include "Exhume_i/QQ.h"
#include "Exhume_i/DiPhoton.h"
#include "StoreGate/StoreGa... |
d3a9ce31cea9dcea109e08ed3edd596133ef2f7c | 6691a64f096fec73b7ebc8eea25382ea4cba021b | /c++_Basics/Copy_Constructor.cpp | 000515f934172e935f9fea783f30c6995fc840e4 | [] | no_license | debdeep-banerjee/Programs | 74aec9870ef225ce4690b1ff8f5ba5279854385d | 65574e7a762bab9425acf6e9c98003e2ea7b7cca | refs/heads/master | 2023-07-13T00:53:56.735767 | 2021-08-22T06:38:27 | 2021-08-22T07:22:06 | 15,662,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | Copy_Constructor.cpp | #include<iostream>
using namespace std;
class Vector{
private:
double *elem;
int sz;
public:
Vector(int s);
~Vector(){delete[] elem;};
Vector(const Vector &a);
Vector & operator=(const Vector &a);
double &operator[](int i);
const double &operator[](int i)const;
int size() const;
};
Vector::Vector(in... |
cc0605901f5113efadeef29a7fd710078d716124 | 3322725784b46a45eebc17d7beb726d33a7c8d35 | /chapter02/chapter02/program20.cpp | b533afcc3b9ada94c2b94f022f7479b274fa29f3 | [] | no_license | ScottYijun/CppPrimerV5 | 41632de13b088bcbd68b5f3c15be1ec640b8705e | d86a04f02ae9e61bbd44f878dc85a96480aba251 | refs/heads/master | 2021-06-23T10:47:23.271665 | 2020-11-22T12:01:08 | 2020-11-22T12:01:08 | 151,928,242 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | program20.cpp | //
// program20.cpp
// chapter02
//
// Created by chenyijun on 17/1/25.
// Copyright (c) 2017年 chenyijun. All rights reserved.
//
#include <iostream>
int main()
{
int i = 42;
int *p1 = &i;
*p1 = *p1 * *p1;
std::cout << "*p1========================" << *p1 << std::endl;
return 0;
}
|
7761aa0ea6c1620c491add019ea65153cf09bee6 | dc57d617393613a8e99cb793a9ce3bf45620a7a0 | /CExercises17/test1.cpp | e912c0ceadea33fecb5a607f196c980994a9a864 | [] | no_license | tfcpanda/cBaseExercises | 147e1dceff8a905a763bb4cc210692d73998460b | aeb89e194b3da8c8d8185db883be3ddf258bdcf1 | refs/heads/master | 2022-08-27T21:26:11.679189 | 2020-05-21T13:03:55 | 2020-05-21T13:03:55 | 258,239,920 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 170 | cpp | test1.cpp | #include <stdio.h>
int main()
{
int c;
printf("输入一个copyASCII码值百(如:度66)\n");
scanf("%d",&c);
printf("字符为%c\n",c);
return 0;
} |
65f24077624922e1b07ea52b616c7549f76e5bad | 6225749d7dcb478a0eeda1ddf29d667898f6868a | /150CodingInterview/part1/1.1.cpp | 3fbbfcba5e08a37c2e0642cd7eea1ae3ff0465b4 | [] | no_license | takahiro1127/LearningGo | 29f234bf2a228272991d18bb554a98efcd314dd3 | eca2ca684849f06e90b10604ef20c7f200549588 | refs/heads/master | 2021-06-29T13:57:15.316028 | 2021-02-24T10:33:26 | 2021-02-24T10:33:26 | 209,608,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | 1.1.cpp | #include <iostream>
#include <algorithm>
#include <string>
#include <map> // ヘッダファイルインクルード
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
// 1.1
int main() {
map<char, bool> used_alphabet;
for (char alphabet = 'a'; alphabet <= 'z'; alphabet++)
{
used_alpha... |
3bad57c160afe5dba6a676f44d312aabde0407ee | 5b3bee9372521776c42abeb55201a4fc71479ba4 | /spoj/acpc11b.cpp | 49d12291df62f82665136fe058116d701ef0ad4a | [] | no_license | xariniov9/Competitive-programming | 5376be5c1bc57f72665e6a29e2258d2a5a1ae202 | b6cf2241511db93d98f5052153196323ceeafecd | refs/heads/master | 2021-01-21T13:25:12.044438 | 2017-09-02T10:55:26 | 2017-09-02T10:55:26 | 102,117,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | acpc11b.cpp | #include<bits/stdc++.h>
using namespace std;
int a[1005];
int b[1005];
int n2;
int main(){
int t;
scanf("%d",&t);
while(t--){
int n, m;
scanf("%d",&n);
for(int i=0; i<n; i++)
scanf("%d",&a[i]);
scanf("%d",&m);
n2 = m;
for(int i=0; i<m; i++)
... |
5798311f67cbc01ceed6b746524ad39ea8074866 | 4e302a152ac3ea898d5c449f172a20fbc8eb16e3 | /Project1/CSystem.cpp | 0421939ceb4e64f6b0ea8077813d823abb05a076 | [] | no_license | YoungGyuLee/CG_Assignment3-2 | 917f9bb026844067672a6b7140c3407c65e38c53 | b27741a705731adf71f35c612d5c0215bbeec04d | refs/heads/master | 2022-07-03T00:51:54.819000 | 2020-05-18T00:48:39 | 2020-05-18T00:48:39 | 264,786,375 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 491 | cpp | CSystem.cpp | #include "CGameMain.h"
//DJ - 안 쓰는 함수들인듯
/*
void CGameMain::selectPose(int key, int x, int y)
{
switch (key) {
case GLUT_KEY_LEFT://좌 -> RED
//player.setPlayerPose(RED);
break;
case GLUT_KEY_RIGHT://우 -> GREEN
//player.setPlayerPose(GREEN);
break;
case GLUT_KEY_UP://상 -> BLUE
//player.setPlayerPose(BLUE)... |
5ba67c05cb43dfb9f5484beb188ef7a9b840cd05 | f43585e43137b50b92435e19ef90a8c915e2ff33 | /lib/widgetbase.h | e6cd4720130b3f4f4f01d394e87c142fd5e0e126 | [] | no_license | melfork/speedmeter | a12293b44d5ff6b73bbc263e83e8e36cd3bc35ad | a6a50cb0bec2493ea5f0782468b3471b3bce5177 | refs/heads/master | 2021-01-22T10:09:03.999852 | 2014-07-31T18:14:05 | 2014-07-31T18:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,404 | h | widgetbase.h | #pragma once
#include "speedmeter.h"
#ifndef _WINDOWS
#include <unistd.h>
#endif
#include <math.h>
#include <time.h>
#include "CImg.h"
#include <map>
#include <string>
#include "colors.h"
#include "basictypes.h"
using namespace cimg_library;
namespace SPEEDMETER {
/**
*
*
*/
class SpeedMeterDllExport
Widget: pub... |
21074640b1a656a4cb22eb065606893c4204257c | 1c6e8c694e9383688321d9e92065e61ca571b94e | /Escape/Source/Escape/Switch.cpp | 69e9d8e50cc0b4b432f611390fbd599b601e7db5 | [] | no_license | Isopho/StoreEscape | 9794a5fcaa918ef4ac3910890671c93fc0fb8a3f | 35d8885bf1f1453fb903ef5220709be3b6aed63d | refs/heads/master | 2020-06-16T16:46:17.886548 | 2019-11-18T17:19:17 | 2019-11-18T17:19:17 | 195,639,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 745 | cpp | Switch.cpp | // Copyright Jan-Uriel Lorbeer 2019.
#include "Switch.h"
// Sets default values for this component's properties
USwitch::USwitch()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need them.
Primar... |
aa0125d82d3b906f1f11bd1d1ef244290d1557a0 | 769aee8a4449f825c6ecedffc9bed6fad7e86d4f | /c++/Misc_Algorithms/Sort_Benchmarking/entry.cpp | b96812b4edac098ffab505231b00df9e73d85214 | [] | no_license | Juancm200/Programming-Code-Examples | 3c06c6dfb1847b59913cd5117cb6815040c707b2 | d884d9c5a8729804a8f0df23c97035f17e47dcb9 | refs/heads/master | 2021-02-04T09:17:03.147585 | 2012-03-04T03:18:49 | 2012-03-04T03:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | entry.cpp | /////////////
// entry.cpp
/////////////
#include "entry.h"
#include <string>
#include <iostream>
using namespace std;
Entry::Entry(string sym, string n)
{
comparable = sym;
symbol = sym;
name = n;
}
Entry::Entry()
{
symbol = "";
name = "";
comparable = "";
}
void Entry::setSymbol(string s)
{
symbol = s;
}
... |
b4f4cc0030478c34764fb796ab7f6a5216b8a101 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_repos_function_1891_git-2.4.10.cpp | 0ded39040b65d966f071efb8e632bcae79fe6433 | [] | 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 | 494 | cpp | git_repos_function_1891_git-2.4.10.cpp | static void release_object_request(struct object_request *obj_req)
{
struct object_request *entry = object_queue_head;
if (obj_req->req !=NULL && obj_req->req->localfile != -1)
error("fd leakage in release: %d", obj_req->req->localfile);
if (obj_req == object_queue_head) {
object_queue_head = obj_req->next;
} ... |
0975a463b9b70aa958e85a6ce8bbd05c62119ad7 | 97988dddd77c485083e31f07976e559b18f8fe0b | /src/YoloClientTmp.cc | 5ed94ee1f5a582b029f7d9e0ab05b0cf756febcf | [] | no_license | Sinchiguano/personal_INF | 5f444e3b2fd643e72f97a629ce7f4e5623e9c941 | 1aa06b7835ed0874c9776c54350aa6fec58912b3 | refs/heads/master | 2020-09-02T21:35:11.561084 | 2019-11-13T16:45:20 | 2019-11-13T16:45:20 | 219,123,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,462 | cc | YoloClientTmp.cc | #include "ros/ros.h"
#include "yolo_detector/AddTwoInts.h"
#include "yolo_detector/CheckForObjects.h"
#include <cstdlib>
#include "yolo_detector/BoundingBox.h"
#include "yolo_detector/YoloDetection.h"
//for openCV, i have all i need je je je
#include <opencv2/opencv.hpp>
#include <cv.h>
#include <highgui.h>
#include <... |
72fcf9ed35bac63015c0766822ee6ac0ad43035b | 6cc10a9754ef04f5fa30bee1681ebe044312a881 | /src/Lexer.cpp | 14316553d1061315311cbd9b97926d496c75bbc2 | [] | no_license | Adubedat/AbstractVM | 3955a5bad63b960266ba81b37709291958dbf07e | 7f04a7c422d62e12bfe7bf2d40b744f84bd8cbc7 | refs/heads/master | 2021-01-25T14:33:47.314535 | 2018-04-23T17:59:00 | 2018-04-23T17:59:00 | 123,711,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,569 | cpp | Lexer.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Lexer.cpp :+: :+: :+: ... |
3b3be5a2d4463cf6a064ecc1ae3583ecb4b30bc4 | 117baf3dbd0602496d560694e3e92b7f9d4e310f | /src/LightProbe.h | 01f209c511589158c10fabca072c8749d95b38bd | [] | no_license | newpolaris/lightProbe | 71a4895b09a30fdac68cb3bf8022285ef532f003 | 904f16fb4879cbb89798a5a92a6634076757f920 | refs/heads/master | 2023-04-20T07:05:51.611418 | 2023-04-08T13:48:42 | 2023-04-08T13:48:42 | 118,615,936 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 844 | h | LightProbe.h | #include <memory>
#include <GraphicsTypes.h>
namespace light_probe
{
void initialize();
void shutdown();
BaseTexturePtr getBrdfLut();
}
class LightProbe
{
public:
bool initialize();
bool update();
void draw();
void destroy();
~LightProbe();
BaseTexturePtr getEnvCube();
BaseT... |
c9f641b9e51829a4270c4fa152f064db95501f03 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CommonTools/Clustering1D/interface/MultiClusterizer1D.h | f4129d1eabe07ac10173cc1a679a60c2901b33bf | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 3,383 | h | MultiClusterizer1D.h | #ifndef _MultiClusterizer1D_H_
#define _MultiClusterizer1D_H_
#include "CommonTools/Clustering1D/interface/Clusterizer1D.h"
#include "CommonTools/Clustering1D/interface/Clusterizer1DCommons.h"
#include "CommonTools/Clustering1D/interface/TrivialWeightEstimator.h"
#include "CommonTools/Clustering1D/interface/Clustering... |
0da7d91e0e76f6b1167216c9578922d40cb831a1 | ddc2551fa7665a63cf26291442ed409e03b5e218 | /dblibros.h | 8a57b1db5ac7f812064d6e297512d653f6a81d5d | [] | no_license | kapyderi/recoverdrake-v3 | 41052a7c86e3f25d7cde174e1269e60ed9528164 | e75375b692d5d7cc7dc224d55cd3c8329d4956b0 | refs/heads/master | 2020-06-08T16:26:57.305002 | 2015-02-14T01:34:41 | 2015-02-14T01:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | h | dblibros.h | #ifndef DBLIBROS_H
#define DBLIBROS_H
#include <QDialog>
namespace Ui {
class dblibros;
}
class dblibros : public QDialog {
Q_OBJECT
public:
dblibros(QWidget *parent = 0);
~dblibros();
protected:
void changeEvent(QEvent *e);
private:
Ui::dblibros *ui;
};
#endif // DBLIBROS_H
|
42d343fa999c3fff1bca0e7040c71fec8af08681 | 0496f35769cfa739379e33e8c6f088a2a1363832 | /2012/S3.cpp | fd1d71e22e4b1ab39b488310d3c4d5bc384104b6 | [] | no_license | sjay05/CCC-Solutions | d65ffe6cbbd62d6f3b4b978af0a814c4bed7f9f2 | fe6633dc9d93ca59abfed14786b18218ed5f7906 | refs/heads/master | 2022-07-17T06:47:11.431542 | 2022-07-03T17:05:17 | 2022-07-03T17:05:17 | 191,267,110 | 69 | 35 | null | 2021-01-24T04:54:02 | 2019-06-11T00:53:15 | C++ | UTF-8 | C++ | false | false | 1,929 | cpp | S3.cpp | /* CCC 2012 Senior 3: Absolutely Acidic
* author: DynamicSquid
*/
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
struct Reading
{
int number;
int count;
};
bool SortReading(Reading rd1, Reading rd2)
{
if (rd1.count == rd2.count)
return rd1.number > rd2.number;... |
bbe521108f60602b0aeacbe5368684dd8b8069a8 | b78c255d1c8b917c21bf689f5f9153d765fbe195 | /dogpack/apps/1d/acoustics/two_waves_asym/DFluxFunc.cpp | c163658287a5610323807195d764567d71f8311e | [] | no_license | smoe1/ImplicitExplicit | 8be586bed84b1a661e5fe71f5b063dcd406643fa | 2b9a2d54110ca0f787d4252b9a8cc6d64b23b08d | refs/heads/master | 2016-09-08T02:39:48.371767 | 2015-09-15T21:15:08 | 2015-09-15T21:15:08 | 41,374,555 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | DFluxFunc.cpp | #include "dogdefs.h"
// This is a user-supplied routine that sets the
// Jacobian of the Flux Function
//
// Acoustics equation
//
void DFluxFunc(const dTensor1& xpts,
const dTensor2& Q,
const dTensor2& Aux,
dTensor3& Dflux)
{
int i,j;
int numpts=xpts.getsize();
double x;
... |
36ff5beefdb853369849928dee8b9a112e051817 | 7491e96c4dc532b3ed7a1e6cb1a900892d182f1e | /DP/Edit Distance.cpp | d2ee2119df1527bab4888c419b81c8274b79569d | [] | no_license | parvezaalam786/Placement-Preparation | b4312364d06d9e01118bd872da73f72dc4f6c64e | 948f546443c0d535bb1ee40bc68ed438125a6cf4 | refs/heads/master | 2023-01-19T17:51:46.914941 | 2020-11-11T11:28:14 | 2020-11-11T11:28:14 | 282,716,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | Edit Distance.cpp | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define inf 1e9
#define mod 1000000007
#define ff first
#define ss second
/*
https://cses.fi/problemset/task/1639
*/
int fun(string a, string b)
{
int n = a.length();
int m = b.length();
int dp[n + 1][m + 1];
memset(dp, 0, siz... |
90c25afa1f1e73c51d40c3cb28f071c61bd8e08e | 9d23a4abfad737b1194bc80328653ecae9cbd847 | /Motor2D/Zelda.cpp | b608f0e1938225b41e9aa1a0f51650f2ee244d6d | [] | no_license | bubleegames/Project2_Zelda | 8cb900144ce22e3e58c3269fe31ec62f1a3ed468 | 0ea5121e0a123db710fb2d7605c3c38ab592ca73 | refs/heads/master | 2020-04-29T12:01:10.692097 | 2017-06-12T09:18:23 | 2017-06-12T09:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,466 | cpp | Zelda.cpp | #include "Zelda.h"
#include "GameObject.h"
#include "j1Viewports.h"
#include "j1Map.h"
#include "p2Log.h"
#include "PlayerManager.h"
#include <algorithm>
#include "j1XMLLoader.h"
Zelda::Zelda(iPoint pos)
{
pugi::xml_document doc;
App->xml->LoadXML("zelda.xml", doc);
game_object = new GameObject(iPoint(pos.x, pos.y... |
d5b79338721b577f52a55b2e5d1dfef86bac4048 | f5445c07f405d85cad3efec0c72e6b24956c64e2 | /Array/findsum.cpp | f5f7a4783fe607315f02107f2668c5c89151b69b | [
"MIT"
] | permissive | Farhan-Khalifa-Ibrahim/Data-Structure | ee4836317f08d12bc11f936da41411f63ff66a06 | a2864d70a38cdcb5dbbfb9ef9dc09f49fd2412af | refs/heads/master | 2020-12-12T03:33:34.921872 | 2020-02-21T08:38:55 | 2020-02-21T08:38:55 | 234,032,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | findsum.cpp | #include <bits/stdc++.h>
using namespace std;
#include <unordered_set>
int * findSum(int arr[], int sum, int size) {
unordered_set<int> US;
int * result = new int[2];
for (int i = 0; i < size; i++) {
int temp = sum - arr[i];
US.insert(arr[i]);
if ( US.find(temp) != US.end()) ... |
b0a072d8a35fcb3763bab251be8a1c678a02db9b | 195c3052281ebd602c35220bf2ea985d91ca5b9e | /src/memory/hipHostMalloc.cpp | e8dfc5ad2dd14fbb9fb134afecf5292974acd38c | [] | no_license | lthakur007/HIP-Negative-Tests | 1d2d8cc73f813a9b1466af37a2827763c94433f9 | 597f482a65e96979d056ada65661e519fc5adbe6 | refs/heads/master | 2020-03-12T13:32:42.666469 | 2018-04-23T06:03:03 | 2018-04-23T06:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,765 | cpp | hipHostMalloc.cpp | /*
hipHostMalloc (void **ptr, size_t size, unsigned int flags)
*/
#include <iostream>
#include <string>
#include <fstream>
#include <algorithm>
#include <sys/wait.h>
#include<iostream>
#include<signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include "mem... |
93d2610df5e8a38e3f0db480d82516a289543337 | 9afb751d2ca8933e0fd1a99d6afd4d23671af213 | /LuckBankSim/City.cpp | 11c7971791292f4f52550397805ccb0695e7269c | [] | no_license | Sarah-ElGendy/BOL | 111925607b888a181dd0c089e4ba9cddde656a8c | 80ec8a94c74730133bbd0f9c185e004f8ca6ad27 | refs/heads/main | 2023-05-14T13:37:55.296875 | 2021-06-14T10:32:40 | 2021-06-14T10:32:40 | 376,782,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,595 | cpp | City.cpp | #include "City.h"
#include <fstream>
#include <sstream>
#include <string>
#include <iostream>
#include <vector>
#include "Parking.h"
#include "Market.h"
#include "RestArea.h"
bool City::loadSpaceInfoFile()
{
City city;
fstream file;
file.open("BankOfLuckFiles\\SpaceInfo.txt", ios::in);
string data, name, price, pa... |
6685db026c203052aa582ca4e8f43c0fc45a3d80 | 0fe4908be5e674dc827b35fa0d5496adee734385 | /30_const.cpp | 5afdad0fefdc0002540463705a7b41121bac6b31 | [] | no_license | Darshan-H-E/atomCPP | 068c7803aa8371801d38163cce1e4eb165be333c | 6227250a35ef112abc6723ae35da7ef2bb93e15c | refs/heads/master | 2022-11-21T02:29:49.632050 | 2020-07-17T04:03:37 | 2020-07-17T04:03:37 | 279,839,348 | 0 | 0 | null | 2020-07-17T04:03:39 | 2020-07-15T10:35:18 | C++ | UTF-8 | C++ | false | false | 1,308 | cpp | 30_const.cpp | #include <iostream>
//const is a fake keyword
//its like a promise which can be broken
int main()
{
const int a = 5;
// a = 2; //err: assignment of read-only variable
int* b = new int;
*b = 3;
b = (int*)&a; //typecast from const int* to int* breaks the promise and often crashes but here np
std::cout <... |
bbd8f53ddb20be6bff37c511ad6f82139ae10980 | 34ad34fb18ae96298db85589587285056f1d2aa6 | /23056.cpp | 089e9172a00f0b7c50865f7124842d9f0b92a2d4 | [] | no_license | SeonghyeonKim/BOJ | 2a473ac232ab95b12ae9f46b2dbbbc1d31de6929 | 1dbd78b797ca487555fa4b18558210e5ce4cbb94 | refs/heads/master | 2023-09-02T18:51:55.842309 | 2023-08-26T16:05:54 | 2023-08-26T16:05:54 | 173,932,904 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 822 | cpp | 23056.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int cnt[11];
bool comp(pair<int, string> a, pair<int, string> b) {
if(a.first%2 == b.first%2) {
if(a.first == b.first) {
if(a.second.size() == b.second.size()) {
return a.second < b.second;
}
return a.sec... |
b8e8111770d30464d3dc51d91ce28c7b075471ea | 73e6413a0d74cd3f827702695a51a18b728146cc | /include/rtsp_message.h | feea62003e59eeec4b24f3278313f084ae76b6c6 | [] | no_license | chxj1980/rtsp_server | 809332e09ad6c6ca12004835522331e41b6d5e7d | b9d9b944b965e62e47456a56cae81b4153699720 | refs/heads/master | 2021-09-11T17:07:18.584358 | 2018-04-10T08:15:14 | 2018-04-10T08:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | h | rtsp_message.h | #ifndef _RTSP_MESSAGE_H_
#define _RTSP_MESSAGE_H_
#include "rtsp_message_parse.h"
using namespace std;
class RtspMessageHandle: public RtspMemeryHandle, public RtspMessageParse
{
public:
int rtsp_request_message_init(char* recv_buff, rtsp_request_message_t* request_message);
int rtsp_response_message_init(char* r... |
a85b2cec89938873c9ac6a6ab5dd770af2f507be | 43cc6231174c84d9b544525f6e7fc42eede8c7bc | /network/lib/config/com/HbNetworkConfig.cpp | fbef7d3717e74c72b6d64fe10ca137c2c42ff6d6 | [
"MIT"
] | permissive | hasboeuf/hb | e469a6de8ae26416c8e306500022e92bb540d31f | d812f2ef56d7c79983701f1f673ce666b189b638 | refs/heads/master | 2020-04-23T10:39:12.893445 | 2019-04-16T22:55:53 | 2019-04-16T22:55:53 | 171,110,849 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,354 | cpp | HbNetworkConfig.cpp | // Hb
#include <HbLogService.h>
// Local
#include <config/com/HbNetworkConfig.h>
#include <service/channel/HbNetworkChannel.h>
using namespace hb::network;
HbNetworkConfig::HbNetworkConfig() {
mOpenMode = QIODevice::ReadWrite;
mBadHeaderTolerant = true;
}
HbNetworkConfig::HbNetworkConfig(const HbNetworkConfi... |
fc713b94ea88724abe26c3bfa456a87dc94a9429 | 879681c994f1ca9c8d2c905a4e5064997ad25a27 | /root-2.3.0/run/tutorials/multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/44/U | 9e07294af49125fdbea5534ad8f7d5bfb78e1d7e | [] | no_license | MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu | 3828272d989d45fb020e83f8426b849e75560c62 | daeb870be81275e8a81f5cbac4ca1906a9bc69c0 | refs/heads/master | 2020-05-17T16:36:41.848261 | 2015-04-18T09:29:48 | 2015-04-18T09:29:48 | 34,159,882 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,653 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | |
7a04b2fd3311642bb1c2a3fa13520eb308a45395 | bb9b83b2526d3ff8a932a1992885a3fac7ee064d | /src/modules/osg/generated_code/PositionAttitudeTransform.pypp.hpp | 32caf8524cfc23b8a1ce19b23b61f2d24a05c08f | [] | no_license | JaneliaSciComp/osgpyplusplus | 4ceb65237772fe6686ddc0805b8c77d7b4b61b40 | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | refs/heads/master | 2021-01-10T19:12:31.756663 | 2015-09-09T19:10:16 | 2015-09-09T19:10:16 | 23,578,052 | 20 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 267 | hpp | PositionAttitudeTransform.pypp.hpp | // This file has been generated by Py++.
#ifndef PositionAttitudeTransform_hpp__pyplusplus_wrapper
#define PositionAttitudeTransform_hpp__pyplusplus_wrapper
void register_PositionAttitudeTransform_class();
#endif//PositionAttitudeTransform_hpp__pyplusplus_wrapper
|
00b956652de45db74eb690e82328146512525b82 | fa054ba4aabed9e0c3669a49196fea6708844d5f | /include/agz/d3d12/framegraph/resourceView/impl/descriptorTableRangeDesc.inl | f7903b9b791119cf61de4307dad07219441d4b00 | [] | no_license | asdlei99/DirectX12Lab | c577dd9017f62cee61abd18cc64b94c6e361f876 | c88059122fb18f47446b3180ecb60ad05c03e26f | refs/heads/master | 2022-11-28T03:24:48.329058 | 2020-08-10T06:54:39 | 2020-08-10T06:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,927 | inl | descriptorTableRangeDesc.inl | #pragma once
AGZ_D3D12_FG_BEGIN
namespace detail
{
template<typename G>
void _initDTRange(
G &g, D3D12_DESCRIPTOR_RANGE &range,
const RangeSize &rangeSize) noexcept
{
range.NumDescriptors = rangeSize.size;
}
} // namespace detail
template<typename ... Args>
CBVRange::CBVRang... |
b6b083273d7cbeb48cdd1e6ef9a94bdff7fcbd68 | 95862b34fb789c55de26406c9d516dd7c1c75ac1 | /PiSynth/AlgorithmGenerator.h | 4d546d9476553fafe5f3966e76de2a6e86e67146 | [] | no_license | tomeh2/PiSynth | dbe0ce84bd904e5787b9d37511b553c07941dabe | f6692efdda4ab4eeccd3392a20e381e06f6b2dfd | refs/heads/master | 2020-04-28T12:06:47.031411 | 2019-05-06T18:29:18 | 2019-05-06T18:29:18 | 175,265,148 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | h | AlgorithmGenerator.h | #pragma once
#include "Block.h"
#include "Operator.h"
#include "Algorithm.h"
#include <vector>
#include <string>
class AlgorithmGenerator
{
private:
static std::vector<std::string> splitArgs(std::string arguments);
static Block* generateAlgorithm(Operator** operators, std::string algDescription);
static bool isPo... |
2529f414adff82504dcad94817a2b3f28eea03c5 | 8ee0be0b14ec99858712a5c37df4116a52cb9801 | /Client/GameData/CExchange.cpp | fdd1056bacbe844ed540311ca2163ae64cf6838e | [] | no_license | eRose-DatabaseCleaning/Sources-non-evo | 47968c0a4fd773d6ff8c9eb509ad19caf3f48d59 | 2b152f5dba3bce3c135d98504ebb7be5a6c0660e | refs/heads/master | 2021-01-13T14:31:36.871082 | 2019-05-24T14:46:41 | 2019-05-24T14:46:41 | 72,851,710 | 6 | 3 | null | 2016-11-14T23:30:24 | 2016-11-04T13:47:51 | C++ | UHC | C++ | false | false | 12,392 | cpp | CExchange.cpp | #include "stdafx.h"
#include ".\cexchange.h"
#include "event/CTEventExchange.h"
#include "../gamecommon/item.h"
#include "../Network/CNetwork.h"
#include "../interface/it_mgr.h"
//#include "../gamecommon/citemequip.h"
//#include "../gamecommon/citemuse.h"
//#include "../gamecommon/citemetc.h"
//#include "../ga... |
1f607cf63a3a14b71bd2a555fa183e5ee9790543 | 3e814f0ed8f3563880228f837c851021fc561ba4 | /FinalProject_Chow_Katrine/space.hpp | 14700796529007183f7500dd71303c7aab0cda85 | [] | no_license | katrinechow/OSU-CS-162 | a356ba8cdcc48b89d051283dd415b55eb186d0aa | 082fba9bb4bfa1de742d6e9cdc1e1d74c546e1e0 | refs/heads/master | 2020-06-08T16:07:12.269212 | 2019-06-22T17:42:20 | 2019-06-22T17:42:20 | 193,259,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,148 | hpp | space.hpp | /*******************************************************************************
** Program Name: Final Project - Text-based Game: space.hpp
** Author: Katrine Chow
** Date: March 15, 2018
** Description: This is the header file for class Space, which contains data
** members and Space pointers that will help traverse... |
aeb14c1f65955474162398bc3c5467bb97a5e510 | 078a02386031db33f798edadf18444a4b548704a | /regress/dataCombine/src/main.cpp | b82f7477ce3d8c11be1433e21f1ee6a130999ae8 | [] | no_license | JaydenJane/SYSU-Graduation-Project | cc1a405a7aa5c2b160b560ad1d0cd91cd984a9ce | 23098e6c5bc334f4eae51bd77d00e50e267514bf | refs/heads/master | 2023-07-05T11:23:30.444944 | 2019-04-17T08:07:25 | 2019-04-17T08:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | cpp | main.cpp | #include <iostream>
#include <sstream>
#include <fstream>
#include <cstdlib>
#include <string>
using namespace std;
const int MAX_FILE = 10;
const int fileNum = 2;
string fileName[MAX_FILE];
int main() {
int fileCount = 2;
fileName[0] = "d25cm.txt";
fileName[1] = "d35cm.txt";
ofstream fOut("data.txt... |
4628efc8598de81480251637ce8fc6b6890e6440 | 859c98a77946144882b6a2b281ea36a36aece44f | /Anyaroth/Anyaroth/ParallaxLayer.h | ff1a6f24aca76822b0f2b5058adb2117398a52d1 | [] | no_license | pablojor/Anyaroth | 2dd8fbb6321d63e9bb7c7cbb9d8d2f48729d448b | 40ee462eb545ac429b67631e9966ec7fac7c0c1b | refs/heads/master | 2023-07-18T07:34:51.761320 | 2021-08-26T19:40:42 | 2021-08-26T19:40:42 | 169,109,506 | 6 | 3 | null | 2019-05-16T20:01:09 | 2019-02-04T16:29:26 | C++ | UTF-8 | C++ | false | false | 756 | h | ParallaxLayer.h | #pragma once
#include "Texture.h"
#include "BackGround.h"
class Camera;
class ParallaxLayer : public BackGround
{
private:
float _speed = 0.5; //De momento es la velocidad en pixeles
bool _leftDir = true;
float _auxX = 0;
public:
ParallaxLayer(Texture* texture, Camera* camera) : BackGround(texture, camera) {}
P... |
07ed8a44831920b4307f3dc25e170ff5ea3a6a94 | b14db56b9364f6d0abdd260e5a6cfa3d2401281f | /src/platform/unix/glx11/visualsupport.cpp | c0ba8fa1d7170046de62f0654fa1300b1a5d1ea9 | [
"MIT"
] | permissive | timcogames/Sway.Framework | 41503b8505532535455dc69f2a05df58174dea79 | e59c3ddaaafd849fa683e8d99ec0cd297c3806dc | refs/heads/master | 2021-08-23T06:14:18.905962 | 2017-12-03T20:45:47 | 2017-12-03T20:45:47 | 103,310,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,510 | cpp | visualsupport.cpp | #include "visualsupport.h"
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <cassert>
#include <stdio.h> // memset
NAMESPACE_BEGIN(sway)
NAMESPACE_BEGIN(glx11)
/*!
* \brief
* Конструктор класса.
*
* Выполняет инициализацию нового экземпляра класса.
*/
VisualSupport::VisualSupport() {
// ... |
b95dffe0de667ac488e21741e144a5699b004669 | 8c8fdd5c5bf905d48836a92932af81535939a1f1 | /uieditor/Dialog/DlgInsertXmlElement.h | 8979fd704f3c3d40f8edf969c07892f136d0f8a9 | [
"MIT"
] | permissive | soui3-demo/SouiEditor | 9108a4292fc50eea56dee772cb98c41e8baf7d59 | a304f9fb546fb80a769d0b048767b51d125f8147 | refs/heads/master | 2022-07-11T23:02:19.805289 | 2022-06-28T09:13:02 | 2022-06-28T09:13:02 | 224,601,200 | 26 | 16 | NOASSERTION | 2021-09-03T03:25:53 | 2019-11-28T08:06:29 | C++ | UTF-8 | C++ | false | false | 1,829 | h | DlgInsertXmlElement.h | #pragma once
#include "propgrid/SPropertyGrid.h"
#include "spugixml/pugixml.hpp"
#include "ScintillaWnd.h"
#include "SToolBar.h"
#include "ResManger.h"
namespace SOUI{
class DlgInsertXmlElement : public SHostDialog
{
public:
DlgInsertXmlElement(ResManger * resMgr,pugi::xml_node xmlInitProp,SStringW strNodeName);
... |
e40c43f0ba904eba0ae682446109d6695654da6f | 6ca168bd50a29b935372067fd9fcc545fa3c444b | /Animator/sample.cpp | b692ac9bd0a30e3a47796a05155bf0fa183f9a19 | [] | no_license | szn1992/Computer-Graphics | 2926e06d34dd834fee4167b984dbc47fdc1ab82a | 2415c63329de6b301b550a73411c57d75d94aaf1 | refs/heads/master | 2016-09-06T09:44:15.077880 | 2015-06-18T08:23:42 | 2015-06-18T08:23:42 | 37,647,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,393 | cpp | sample.cpp | // The sample box model. You should build a file
// very similar to this for when you make your model in
// order to plug in to the animator project.
#pragma warning (disable : 4305)
#pragma warning (disable : 4244)
#pragma warning (disable : 4786)
#pragma warning (disable : 4312)
#include "modelerview.h"
#include ... |
93e40b8e745a39d13eacac8791305fddf4fa41a3 | 557b8d48744287bcaf7b465595b3c10611947715 | /Easy/122-Best Time to Buy and Sell Stock II.cpp | 9b0dff235aa3f0174f0d3fe90c545aad6a3a08e8 | [] | no_license | avku06/LeetCode_Solutions | b7f640266bb012be242dfbdf6cb9390f3e5b27fe | 1f3ef2888c7a0f0c3900ba72c70ff8cacec3e9b4 | refs/heads/main | 2023-06-30T23:27:45.586645 | 2021-08-08T11:43:14 | 2021-08-08T11:43:14 | 438,192,746 | 1 | 0 | null | 2021-12-14T09:30:21 | 2021-12-14T09:30:21 | null | UTF-8 | C++ | false | false | 671 | cpp | 122-Best Time to Buy and Sell Stock II.cpp | //for better insight, dry run by plotting graph for the given test case.
//Y-axis : price of the stock
//X-axis : days (0.....length of array prices)
class Solution {
public:
int maxProfit(vector<int>& prices) {
int buy = prices[0];
int sell = prices[0];
int profit = 0;
... |
2f0e71d0e251deebdc0e95d43561602b6c857715 | f6a653cac9cbdabdb6a2c03fd576a2c713ffcbdc | /project2D/main.cpp | 5a6459930dcf447ed3e56c1d60df0caed15d7220 | [
"MIT"
] | permissive | Tarrell99/aieBootstrap-Robert | 0372e94133bb1f8c3d8e1c95ec7fbac07e70b322 | a53dff8c6eba08e37ed320934492893549ce8c69 | refs/heads/master | 2020-04-03T13:40:23.435843 | 2018-10-29T23:03:32 | 2018-10-29T23:03:32 | 155,293,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 225 | cpp | main.cpp | #include "Application2D.h"
#include"DragonRPG.h"
int main() {
// allocation
auto app = new DragonRPG_Application();
// initialise and loop
app->run("AIE", 1280, 720, false);
// deallocation
delete app;
return 0;
} |
5ae550b2268161f6ff7384e89b2c38c62b318472 | 055eb92db0ff5e8a404d4d987533e1a780047584 | /RegualExpressions/stdafx.h | 3967a6f61049319197101433b9bad977a9c269c3 | [] | no_license | boppbo/Software.Lab | cb05a4001cded42c938c6ed6ce7a7ae04cc93738 | f2a84281722698f213569fc0264ecabf027db526 | refs/heads/master | 2021-01-01T04:19:19.591819 | 2016-11-15T20:46:10 | 2016-11-15T20:46:10 | 59,680,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | h | stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#define WIN32_LEAN_AND_MEAN
#include "targetver.h"
#include <algorithm>
#include <sstream>
#include <string>
#include <vector>
#include <window... |
d4cf7224f22927d22a5e0b5850d7a937cb464190 | 2d168890bbaaefed9f2822c6fdb57d83361cbf12 | /modules/labtopo/labtopomodule.cpp | 64d1a6ab07c31451496a8bfc7ca5218f486c0f09 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | KTHVisualization/inviwo | 3244329132bb977564a3a3b029bc138cc91ba807 | 6a3175434901940906fce89ae87fba57b6331aa1 | refs/heads/master | 2022-12-26T23:25:46.898247 | 2022-12-20T14:02:43 | 2022-12-20T14:02:43 | 203,176,743 | 4 | 15 | BSD-2-Clause | 2022-09-21T14:01:25 | 2019-08-19T13:18:43 | C++ | UTF-8 | C++ | false | false | 492 | cpp | labtopomodule.cpp | /*********************************************************************
* Author : Anke Friederici
*
* Project : KTH Inviwo Modules
*
* License : Follows the Inviwo BSD license model
*********************************************************************
*/
#include <labtopo/labtopomodule.h>
#include <labtopo/... |
a8813f1dfd48961613cd2c3ea8650313c2bfd428 | 685a8f67f6d3930e77c64517fd7335f5be871afa | /ui_mainwindow.h | 24e5ebf8fde4d3558ded388c35753ad8f24b708c | [] | no_license | drussilla/netClipboard | 40c4cbb3bf0fd65a95c290235b8d0ab49bfe593a | 38902a326755900abced373f911bc366ef70a66b | refs/heads/master | 2021-01-20T15:38:54.347372 | 2012-06-11T15:31:07 | 2012-06-11T15:31:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,421 | h | ui_mainwindow.h | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created: Sun May 16 16:02:37 2010
** by: Qt User Interface Compiler version 4.6.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
******... |
8b36bb7e988825d6adc89c6be7b2cfd15e8d478d | 1dbed0f84a670c787d2217d97ae3984401c7edb3 | /cf/725/B.cpp | f8842829343af8b7337736c2ef562524779ce0f3 | [] | no_license | prprprpony/oj | 311d12a25f06e6c54b88bc2bcd38003f7b6696a9 | 84988be500c06cb62130585333fddd1a278f0aaa | refs/heads/master | 2021-07-13T16:03:54.398841 | 2021-03-27T14:19:52 | 2021-03-27T14:19:52 | 46,796,050 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
char a[100];
int v[] = {3,4,5,2,1,0};
int main()
{
gets(a);
int i;
for (i = 1; isdigit(a[i]); ++i);
char c = a[i];
a[i] = '\0';
ll n;
sscanf(a, "%lld", &n);
--n;
printf("%lld\n", 16 * (n / 4) + ((n % 4) & 1) * 7 + v[c - 'a'] + 1);
}
|
2452d3c5fa985e650dfb2e331027c853766c9894 | 3b55495417eaeaea92be77384c6b717f5806ee31 | /src/Classes/UIMessages/MessageLayer.cpp | faae23de5f6ab0652150feb88554f6f8657a37e0 | [] | no_license | Sooho/HelloMomApp | f77de7c3b1027fe9b9c6690399af07a7ffaf7f00 | d5f619bafde882e5c516bdd746b2217d443f36db | refs/heads/master | 2021-01-10T21:35:49.421929 | 2015-03-07T02:17:26 | 2015-03-07T02:17:26 | 31,707,990 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,386 | cpp | MessageLayer.cpp | #include <string>
#include "cocos2d.h"
#include "MessageScene.h"
#include "MessageLayer.h"
using namespace cocos2d;
using namespace CocosDenshion;
MessageScene* MessageLayer::m_parentScene = NULL;
// on "init" you need to initialize your instance
bool MessageLayer::init()
{
if ( !LayerColor::initWithColor(Color4... |
4d93cca2378b3c6d909409e56f27f86643439652 | 2e945b901f29638df04753da104777fb5c174da7 | /include/device/JubiterHidDevice.hpp | 8a3e7688e3f913145a104b5c487652c848e2afce | [
"MIT"
] | permissive | ftjubiterwallet/JUB_SDK_CXX | 2a5a82aec6cc04027c71a04392d61953d9d87e47 | 61a736242847ac58770dd4a371b3cd2699dc8cb6 | refs/heads/master | 2021-07-19T13:20:57.278777 | 2020-08-06T06:40:45 | 2020-08-06T06:40:45 | 198,992,574 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,329 | hpp | JubiterHidDevice.hpp | #ifndef __JubiterHidDevice__
#define __JubiterHidDevice__
#include "JUB_SDK_DEV.h"
#ifdef HID_MODE
#include <vector>
#include "hidapi/hidapi/hidapi.h"
#include "device/DeviceTypeBase.hpp"
namespace jub {
#define VID 0x096e
#define PID 0x0891
#define HID_PACKET_SIZE 65
#define HID_PACKET_HEAD_FRIST 8
#define HID_... |
14422010065aafa567831453b867516d16ce52d3 | 197842fefb345260d65acf62daf1956698a6747b | /iris/iris/base/GameObject.cpp | 378e8fd3fbd67327342085884c159269048b1b22 | [
"MIT"
] | permissive | pixelsquare/iris-engine-opengl | ede3129c912bbbac5170f59f6dab60db17849060 | 5b542333f3c3aed9a66f388a6703dc0daa06b3fb | refs/heads/master | 2023-08-19T04:13:44.230693 | 2021-09-27T05:48:39 | 2021-09-27T05:48:39 | 410,756,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,086 | cpp | GameObject.cpp | #include "base\GameObject.h"
#include "base\Component.h"
#include "base\Transform.h"
#include "base\Director.h"
#include "base\Camera.h"
#include "base\Scene.h"
#include "platform\GLView.h"
IRIS_BEGIN
GameObject::GameObject()
: m_active(false)
, m_transform(NULL)
{
m_name = "gameobject";
}
GameO... |
913a11f605bccc9b76ae3d13ee47fe04438d3d81 | 767bc8be0dd38e897cec976abdc0e45ae5645a1e | /src/documentation/documentationengine/constantsdocumentationl.h | cb266ea3496dab7825e10ebc91f62a0b78baa059 | [
"MIT"
] | permissive | natav01/PairStormIDE | 5a805aede7c82da08ca614e851ba0bcfe4da6908 | 68c23f6d57c7c5f8b9e3d10d0f626185ea4f8d0e | refs/heads/master | 2020-09-02T07:45:47.218404 | 2019-09-04T10:25:39 | 2019-09-04T10:25:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,625 | h | constantsdocumentationl.h | #ifndef ULRGLOBAL_H
#define ULRGLOBAL_H
#include <QUrl>
namespace ReferenceUrl
{
const QUrl google("http://www.google.com");
const QUrl reference("https://en.cppreference.com/w/");
}
const std::string mustasheTemplate{R"(<!DOCTYPE html>
<html>
... |
f2d79b73bd0c469c0a86d4c7b6a6c7f2ac98d97f | 461b4f0b646d632bb83c1eb7ccbf5d618aab7a86 | /template_connected_components.cpp | 09bee7afa15bc8291bf66ba543238034e9d7be96 | [] | no_license | pigHasDream/Leetcode | 89e1dd8970f781aab8bdeffce005ee980709c034 | 5c483dec2666e8009e35944fb94ea4d0abeb1e2b | refs/heads/master | 2021-06-23T08:41:40.627950 | 2021-01-03T05:50:14 | 2021-01-03T05:50:14 | 178,759,088 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | template_connected_components.cpp | class Solution {
public:
// Check for LC_721 which essentially is a component check
int numComponents() {
// count connected componets of graph
unordered_map<int, vector<int>> graph;
int ans = 0;
unordered_set<int> visited;
for (const auto& u : graph) {
if (visited.count(u)) co... |
131787c1fffbebdd7f94c8d73deae73eeda1e948 | e490cd3396eed3c3551af17ff0d15fc97c2cba28 | /qixing/plkMachine/dialog/.svn/text-base/CharSewEditDetailDlg.h.svn-base | a54ab3c99e71610126ee0518a4511abb39b80bc5 | [] | no_license | qinww/beijing-qinxing | ca9ef8e248871f42def878db29302be1a8ddfd67 | 5c84ad1e709a5bee87f3f9fd66b68a783093d064 | refs/heads/master | 2017-12-20T06:21:43.332685 | 2016-12-15T18:12:09 | 2016-12-15T18:12:09 | 76,528,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,470 | CharSewEditDetailDlg.h.svn-base | /**
* @file CharSewEditDetailDlg.h
* @brief 字母绣编辑调整窗口类接口定义
* @author ydd
* @date 2011-04-18
*/
#ifndef CHARSEWEDITDETAILDLG_H
#define CHARSEWEDITDETAILDLG_H
#include "public/parentWindow.h"
#include "public/direction.h"
#include "pattern/CharSewEditor.h"
class QLabel;
class QHBoxLayout;
class QVBoxLayout;
class QLin... | |
534f715f2dc6abc6a2f3c263182c6e5fe7be2a71 | 9d575edb6f9d49ed54a90bd34abdb674e22107b1 | /Dismaker/RenderableRectangle.cpp | 92b2cfec6e7a69e556e78300750213a590373176 | [
"MIT"
] | permissive | sardap/Dismaker | 318dc746b0ec5b31cc4b4f68dd9947580a775b66 | 00a5acfebcc538f4e192bffed0853914c14679f1 | refs/heads/master | 2022-04-17T06:41:22.678518 | 2020-04-13T22:31:39 | 2020-04-13T22:31:39 | 255,454,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | cpp | RenderableRectangle.cpp | #include "RenderableRectangle.h"
#include "RenderBridge.h"
RenderableRectangle::RenderableRectangle(const sf::RectangleShape& rectangle, GameState::Value gamestate) : IGUI(gamestate)
{
_rectangle = rectangle;
}
RenderableRectangle::~RenderableRectangle()
{
}
void RenderableRectangle::InternalRender(RenderBridge* re... |
958580478e7e979511605056e0c2a86c0c91c253 | 081f221c3046c4b8a91ceb30c3ac4dbb684ec85f | /Project 3/Part A/src/Paper.h | 61464318137a660a423b6b5f72382f6f946844a4 | [
"MIT"
] | permissive | Nurl4n/Fundamental-Structures-of-Computer-Science-I | a90fa4046d3f24bef40ab6e0b443b5ade0c1eb25 | 21f670a9aa40a2c3c56e237e3cdad5b737c48acd | refs/heads/main | 2023-06-26T02:51:17.847787 | 2021-07-25T23:09:47 | 2021-07-25T23:09:47 | 389,144,581 | 0 | 0 | null | 2021-07-25T22:07:09 | 2021-07-24T16:19:02 | C++ | UTF-8 | C++ | false | false | 537 | h | Paper.h | #ifndef PAPER_H_INCLUDED
#define PAPER_H_INCLUDED
#include <iostream>
//#include <string>
using namespace std;
class Paper
{
public:
Paper();
void setPaperTitle(string pTitle);
void setJournalName(string jName);
void setPublictionYear(int puYear);
string getPape... |
2ef266c29174fa1f56d9c20290f7de8e2f63d4de | a2c017c38a7385c45105f1a25a4548bb6530ed48 | /test_codes/genetic_test.cpp | 73e0b41e957446c69867e4af69e1b63e1c0dcf1b | [] | no_license | SoStealth/dnd_encounter_generator | 2e2e42fd0a8dc155547fb0debc64da21b893c6ce | f56d37764caa67aa5cea2e951e94280ddd09a8f0 | refs/heads/master | 2020-03-11T07:58:59.474131 | 2018-06-28T20:32:01 | 2018-06-28T20:32:01 | 129,871,537 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | genetic_test.cpp | #include "balancer.hpp"
int main(int argc, char* argv[]) {
Entity* characters[1000];
init_random();
Bard* pg0 = new Bard("Lino Mendol,1,1,8,8,12,10,14,14,16,0,0,0,2");
Fighter* pg1 = new Fighter("Sir Iano,7,1,12,16,14,14,6,10,8,1,2,2,0");
Wizard* pg2 = new Wizard("Enrico Vasaio,5,1,6,6,14,8,16,14,10,0,0,0,2");
... |
3ba3720ed7d2433eaafb695d85e22e3a7ffe7133 | 83bd66f8ab3c855d8580434ec35944234d106714 | /plane.h | 5455fb795606b337628941e4cbde848647a3f719 | [] | no_license | aferriss/basicGlfwWindow | 688e51016507419c6385c3cf479ebc03579c6af3 | c45aa782861921091c31092db55c78a1f8f1c32b | refs/heads/master | 2021-01-13T04:57:10.189408 | 2017-02-13T05:16:04 | 2017-02-13T05:16:04 | 81,154,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | plane.h | #pragma once
#define GLFW_INCLUDE_GLCOREARB
//#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <algorithm>
#include <vector>
#include <iostream>
class Plane {
public:
Plane();
GLuint vao;
GLuint positionBufferObject;
void... |
e6628a87478ef24ce5339b7b4dee948b0db0863b | c0a4e199f742a64ac15d4bd4d891cfd5ac595750 | /DJStats/DJTextBufferHelpers.cpp | cbfc47170759bea57527efdae0804d849682cd51 | [
"MIT"
] | permissive | dewe/dropjaw | 367e4c329840745ee5018c409281d82cfb1e2539 | 206b51df31b58d444869608ba7752019cc5ed5de | refs/heads/master | 2020-04-16T04:52:27.038849 | 2019-01-11T17:57:59 | 2019-01-11T17:57:59 | 165,284,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,575 | cpp | DJTextBufferHelpers.cpp | // DJTextBufferHelpers.cpp: implementation of text buffer help functions.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DJTextBufferHelpers.h"
#include <ctype.h>
#include <string.h>
#include <afxtempl.h>
#ifdef _DEBUG
#undef THIS_FILE
static char T... |
f647e4499f26acff2e47636848dc5fc38c29ba78 | 33392bbfbc4abd42b0c67843c7c6ba9e0692f845 | /data_analytics/L2/include/hw/xf_data_analytics/dataframe/internals/gzip_csv_block.hpp | 14b500fab6c2b646d1598cf6c809a02bbcdd05eb | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Xilinx/Vitis_Libraries | bad9474bf099ed288418430f695572418c87bc29 | 2e6c66f83ee6ad21a7c4f20d6456754c8e522995 | refs/heads/main | 2023-07-20T09:01:16.129113 | 2023-06-08T08:18:19 | 2023-06-08T08:18:19 | 210,433,135 | 785 | 371 | Apache-2.0 | 2023-07-06T21:35:46 | 2019-09-23T19:13:46 | C++ | UTF-8 | C++ | false | false | 37,044 | hpp | gzip_csv_block.hpp | /*
* Copyright 2022 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
c26f3d90970c37ffa08c738c0bd3996ad7e49402 | 4657e2c111e04b50d7a0558316ea5d18a0a4a9b3 | /core/core.h | 6b7bc26e5513412dbecc094409e81516135934a9 | [
"MIT"
] | permissive | kambala-decapitator/qt-test-subprojects | b4c97189349071ed8d0826eb14322519aa4a48a4 | fdcdc0a60245933084f46d9658ce921e5c746021 | refs/heads/master | 2020-08-29T17:57:01.535683 | 2019-12-26T09:13:45 | 2019-12-26T09:13:45 | 218,119,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | h | core.h | #ifndef LIB_H
#define LIB_H
#ifdef CORE_STATIC
#define CORE_EXPORT
#else
#include "core_dynamic.h"
#endif
class CORE_EXPORT Core
{
public:
Core();
int a;
};
#endif // LIB_H
|
90db55f035592b9e7ed9976f7b5c860a29688208 | f61b041e74b4c77f322fc26fb5ccb8f97585ac32 | /Main_3D/ProcessLib/ProcessDataManager.h | 49c22ee1a48f13eafd5dd52b99f07a5878a5f9be | [] | no_license | rgoldan/oct_segmentation_thesis_project | bd1b0235ea2889f5caf55e1d3b50542db3f05225 | 4a3333939910761f4e9971edb1022ddfbe34efdd | refs/heads/master | 2021-04-28T19:23:51.106351 | 2019-03-08T04:16:44 | 2019-03-08T04:16:44 | 121,894,974 | 0 | 0 | null | 2019-03-08T04:16:45 | 2018-02-17T21:42:06 | C++ | UTF-8 | C++ | false | false | 1,203 | h | ProcessDataManager.h | #pragma once
//#include "RenderTarget.h"
//#include "ApodizationWindow.h"
//#include "DataResource2D.h"
namespace oct {
namespace proc {
class PerThreadData
{
public:
PerThreadData(int thread, int N, int ExternalWorkBufferSize);
~PerThreadData();
public:
int _thread;
Ipp32f *_pBuf0;
Ipp32f ... |
87a4210fd6c49b021d41b07a609905c2a19cfa24 | 57a44fc34bb39babe3b55825683a569de98688e5 | /2_linked_lists/3_find_nth_node.cpp | 3cf2872945d005869b15e196893bc916a7a46b21 | [] | no_license | JiwoonKim/data-structure-cookies | ffecebf3966356a583c151911d3961f6c41bd75b | bdce2ff729878c3685b3a52569b5e1d2012a9568 | refs/heads/master | 2020-06-01T23:14:30.830112 | 2020-03-09T13:56:20 | 2020-03-09T13:56:20 | 190,962,483 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,684 | cpp | 3_find_nth_node.cpp | /**
* Given a singly linked list and integer n, return the n-th node's value
*
* * Solutions
*
* (1) linear search
* -> iterate over to n-th node
*
* cf) if problem is finding n-th last node,
*
* (1) find length and linear search: O(n) time, O(1) space
* -> first i... |
78ff91432e5199ff738bf842cfae523c918b9d4e | c075cfe521103977789d600b61ad05b605f4fb10 | /div 346/ZAD_E.cpp | 748740c80d4c87ebb79fab52dcb078cc0da9031f | [] | no_license | igoroogle/codeforces | dd3c99b6a5ceb19d7d9495b370d4b2ef8949f534 | 579cd1d2aa30a0b0b4cc61d104a02499c69ac152 | refs/heads/master | 2020-07-20T12:37:07.225539 | 2019-09-05T19:21:27 | 2019-09-05T19:35:26 | 206,639,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 973 | cpp | ZAD_E.cpp | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define x first
#define y second
using namespace std;
typedef long long ll;
vector<int> a[100010];
int color[100010];
int dfs(int v, int p);
int main()
{
int n, m, i, u, v, ans = 0;
cin >> n >> m;
while (m--)
{
scanf("%d%d", &u, ... |
cab0387f53f76f1cc1c2a9c80d2081971479e114 | 44cec120e8ef7542fa243d62c9c57407faa3a49b | /aws-cpp-sdk-apigatewayv2/ub_APIGATEWAYV2.cpp | 3042804a4320de3d978fe4a55087acc1cb7f11a8 | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | Tarjei400/aws-sdk-cpp | d11f8c4c473b9bac37c3767f8a43a12e953f1efe | bd4fb51e1142d864a76ad337a6ccd0c038a5250c | refs/heads/master | 2022-12-07T07:34:08.025065 | 2020-08-25T08:07:58 | 2020-08-25T08:07:58 | 290,169,962 | 0 | 0 | null | 2020-08-25T09:17:53 | 2020-08-25T09:17:52 | null | UTF-8 | C++ | false | false | 18,080 | cpp | ub_APIGATEWAYV2.cpp | // Unity Build generated by CMake
#include <C:/Users/isaac/Projects/aws-sdk-cpp/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Client.cpp>
#include <C:/Users/isaac/Projects/aws-sdk-cpp/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Endpoint.cpp>
#include <C:/Users/isaac/Projects/aws-sdk-cpp/aws-cpp-sdk-apigatewayv2/source/Ap... |
548d4d4391ba5ef4940efbb303de68aa5934cce5 | e7dc148001d4a8a9c65a526f012eb34c23bed371 | /API_FrameWork/animationManager.h | 91501af5d6b5cad3ffb8a56d4f86afd5f41a1480 | [] | no_license | 12tg12tg/katanaZERO | 466255c89d298cc4c23ae01d7d5b384efe21c535 | 3637a34d7653aadc467ac5f6911206469a142678 | refs/heads/main | 2023-07-31T13:19:52.661323 | 2021-08-29T06:22:09 | 2021-08-29T06:22:09 | 398,959,693 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,967 | h | animationManager.h | #pragma once
#include "singleton.h"
class animationManager : public Singleton<animationManager>
{
private:
typedef map<string, animation*> arrAnimation;
typedef map<string, animation*>::iterator iterArrAnimation;
//--------------------------20210808 추가 제작-----------------------------------
vector<animation*> _vAn... |
421271396e03e99831269d9e7ebbb78f7f04b934 | 5f06b52faf064d968b123777b318732db0d63da1 | /array.cpp | b970766e12d22b3265eac455c1785fa82efbcc8f | [] | no_license | dibrova/cpp | 08dd043ee1db92502a2b669a44f980a1fb5fc016 | 960a9f4197522bb942a21b4c4612d5ed1f29f0e4 | refs/heads/master | 2021-01-13T16:47:42.385945 | 2017-06-26T19:23:58 | 2017-06-26T19:23:58 | 94,890,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | array.cpp | #include <iostream>
using namespace std;
int main()
{
const int size = 10;
int arr [size] ;//= {15, 35, 10, 5, 20, 1, 72, 69, 47, 51};
cout << "Input " << size << " elements of array:" << endl;;
for ( int i=0; i < size; i++)
{
// cout << "arr[" << i << "] = ";
cin >> arr[i];
}
int minOdd = arr[0] , sumOd... |
9d38c7291e11e83ed1840adb36e80bac8f89f191 | 79238b0a56064bbce91c1a9219af54d54d41256c | /exp8.cpp | 1191f782e72a06cba81c50b5a26178403766d532 | [] | no_license | cyan-chatter/DS-Algo | 630ce3be69568d6e672d4617c53b256ffe25cbe5 | 744baa36a8aeb175d1bb1531afa7358baf5b19c2 | refs/heads/master | 2023-01-10T18:03:09.208713 | 2020-11-17T03:53:16 | 2020-11-17T03:53:16 | 313,270,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | exp8.cpp | #include<iostream>
using namespace std;
int main(){
int num;
char arr;
cin>>num;
arr = num + 'a';
cout<<arr;
return 0;
}
|
0ce001f613c8bcef65ab9d92babd23b57de3e3ce | f36d369fe93cf802ec9eda1c16eb4bf712b35d19 | /sketch_mercury_ky-017/sketch_mercury_ky-017.ino | b960cb235c974c644190afe1e836e6d9eeee1047 | [] | no_license | PFSLDO/Projetos_Iniciantes_Arduino | 72809eda0d5fb4a6c895fd46162d0242b5bd6c7a | 01f2ab950e4c5d889185b3e088c4ebea56bb5a59 | refs/heads/master | 2023-04-10T01:18:09.182671 | 2021-04-15T17:17:08 | 2021-04-15T17:17:08 | 283,353,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | ino | sketch_mercury_ky-017.ino | //Autora: Pamela Fialho
//Data: 10/08/2020
//Função: utilizar um sensor de inclinação KY-017 para acender um led
int led_pin = 13;
int switch_pin = 7;
void setup()
{
pinMode(led_pin, OUTPUT);
pinMode(switch_pin, INPUT);
}
void loop()
{
if(digitalRead(switch_pin) == HIGH)
{
digitalWrite(led_pin, HIGH);
... |
e94c7dfb9c8bef785683f7fdd04f5e88141554c2 | d6c88c10b2ed79ed260f3eedeb8a4f544ccd555a | /assignment solutions/assignment 4/4b/Emp.cpp | 14fd36461fb02227118963b8b349c6be175a2d30 | [] | no_license | prijuly2000/CPP | 4e14141f2f5f6256921715425dc17f3f9ab6e566 | 74b574094787dc2d326c625336144a26ee70521d | refs/heads/master | 2016-09-06T08:26:56.249305 | 2015-08-14T00:02:53 | 2015-08-14T00:02:53 | 40,687,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | Emp.cpp | #include"emp.h"
#include<string.h>
Emp::Emp()
{
id=0;
strcpy(name,"");
basic=0;
}
Emp::Emp(int i,char*n,int b)
{
id=i;
strcpy(name,n);
basic=b;
}
Emp::~Emp()
{
cout<<"\nemp destroyed";
}
void Emp::display()
{
cout<<"\nID :"<<id;
cout<<"\nName :"<<name;
cout<<"\nBasic :"<<basic;
}
doubl... |
7b23a197c80838807ed98fcbf9293f719f69f1e2 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/11_2341_40.cpp | 26c109b34b2f4b5d87af053a5d53aff6a0fbd967 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | 11_2341_40.cpp | #include<iostream>
#include<algorithm>
using namespace std;
const int maxn = 1000010;
int dis[maxn];
int main()
{
int t;
cin>>t;
for(int tn=0;tn<t;tn++) {
int l,n,c;
long long t;
cin>>l>>t>>n>>c;
for(int i=0;i<c;i++)
cin>>dis[i];
for(int i=c;i<n;i++)
dis[i] = dis[i-c];
long long total = 0;
for... |
569392cb4e1ab439b67a2811209af78c254142a0 | 9b70091dc9f94561d7977a2d6303860f493f9862 | /tests/test_main.cpp | 0b0b686522e2f8f0a9732eeb6a4fa123dfaf7018 | [] | no_license | mehraj24158/SSE_554_P4 | 66c12d0adb850f58c764b3f6706b47ed1380ed44 | 596c612b06ad22df2db8075e9b9139bf05677ab0 | refs/heads/master | 2023-04-17T02:14:07.603871 | 2021-04-30T22:33:35 | 2021-04-30T22:33:35 | 354,711,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,300 | cpp | test_main.cpp | #include "gtest/gtest.h"
#include <thread>
#include <stack>
#include <queue>
#include <algorithm>
#include <random>
#include <mutex>
#include <shared_mutex>
#include "src/lib/car.hpp"
#include "src/lib/engine.hpp"
#include "src/lib/frame.hpp"
#include "src/lib/tire.hpp"
#include "src/lib/operations.hpp"
#include "src/l... |
af10a6af6a3d3aaf58c1d0b68a3502f3283ca980 | 8d88c774dd7979401f434c1b0e35e4cb9a42938e | /Recursion/509.Fibonacci Number.cpp | f8258fac024c94acd330d309199f2e8972d17db7 | [] | no_license | yycccccccc/Leetcode | 15a76eca96f6d5420416d806b5372bdf2c55efbf | 8e879cc1495e47f1230e968b941543326cb28f38 | refs/heads/master | 2020-05-27T08:09:58.411710 | 2019-03-28T06:46:43 | 2019-03-28T06:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,475 | cpp | 509.Fibonacci Number.cpp | 题意:斐波那契递归
方法一:递归
T(n) = O(2^n);
思路:
1.判断递归的临界条件,等于0和1的时候return
2.再进行递归调用
class Solution {
public:
int fib(int N) {
if(N == 1) return 1;
if(N == 0) return 0;
return fib(N-1) + fib(N-2);
}
};
方法2:DP+记忆数组
注意:C++中也可以用[]来声明数组,用int memo[N+1]表示。
class Solution {
public:
int fib(int N) {
... |
a32c00bc5e776907021f29dc189e5cd4f5b07750 | 8c4164e720523299fee26b5774eed9399df599cc | /src/0001.cpp | 0d407a6e649652d177beeade931f5dc5bb1967c1 | [] | no_license | thisfin/LeetCode | 965f98249295793cede1b691f325ac2f1855fbe4 | fa55962b9643f7436f8de4a3fa660a38279e9e1f | refs/heads/main | 2023-03-28T17:16:38.408453 | 2021-03-30T07:03:20 | 2021-03-30T07:03:20 | 341,758,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | 0001.cpp | //
// Created by 李毅 on 2021/2/25.
//
#include <vector>
using namespace std;
class Solution {
public:
vector<int> twoSum(vector<int> &nums, int target) {
vector<int> result;
for (int x = 0; x < nums.size(); ++x) {
for (int y = x + 1; y < nums.size(); ++y) {
if (nums[x] ... |
0d2824348576fdfd8612501ac548c9650b9e2ee5 | ec630b65416e617bf6c30cfe2e88129e90f14aa6 | /xptMiner/metiscoinMiner.cpp | fc28ef9312ab7ff8c8289f7744cdf8a94bb03213 | [] | no_license | martyj/xptMiner | 74f0bb81bf3a5c0ddefca46e1691b15d027db05f | 54276c4565de553dc07d0c42358766282de76d47 | refs/heads/master | 2021-01-16T23:07:29.479487 | 2014-02-05T05:37:45 | 2014-02-05T05:37:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,628 | cpp | metiscoinMiner.cpp | #include"global.h"
#define GROUPED_HASHES (32)
void metiscoin_process(minerMetiscoinBlock_t* block)
{
sph_keccak512_context ctx_keccak;
sph_shavite512_context ctx_shavite;
sph_metis512_context ctx_metis;
static unsigned char pblank[1];
block->nonce = 0;
uint32 target = *(uint32*)(block->targetShare+28);
ui... |
e7591a546cb94de3e0295c568ad02fef53a71603 | e89f4889c63b21f580840695e6600810a1c3fcd5 | /104A_Blackjack.cpp | 2ae2b00d55671a28ffef765f19f0da1d4ee923ca | [] | no_license | Thisayang/C- | b60a5074485797cf57c8ecfd67d04ae91ec398dc | b1ca13fa9e16f267130d3f3ef7b9ff06c69c1fd1 | refs/heads/main | 2023-02-12T09:53:25.517632 | 2021-01-03T11:54:03 | 2021-01-03T11:54:03 | 324,344,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | 104A_Blackjack.cpp | #include <bits\stdc++.h>
#define LL long long
using namespace std;
int main() {
ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
int n;
cin >> n;
if(n - 10 <= 0) cout << 0;
else if(n - 10 < 10) cout << 4;
else if(n == 20) cout << 15;
else if(n == 21) cout << 4;
else cout << 0;
return 0;
}
|
f75182892affa206fc37eaec254546452be9dba3 | e78c472f471b9f35f1e7efc0147a9ceae5d32d3d | /prog_1.cpp | 77da7a6b099c6754e4ab7a8555174aefc53d7710 | [] | no_license | Kisekya/Projet_Modelo | 4cb98c6cbe9aab655f30b1d7c57757a6faa2d577 | 3524e0b6ed6b6ccd937e3681d6da7d1c15c8b699 | refs/heads/master | 2020-05-18T06:57:40.172907 | 2019-04-30T14:32:41 | 2019-04-30T14:32:41 | 184,250,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,020 | cpp | prog_1.cpp | #include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <math.h>
using namespace std;
///// Fonction Read
string read_file(string file){
ifstream fichier (file);
string data;
string line;
if (fichier) {
while(getline(fichier , line)){
data+=line+"\n"; ... |
000a4e4659540b112904a0d9b2a83d11147500aa | b697639053b9d226cbcd54235c3f88cdbec724c7 | /ZOOM/Course-Struct.cpp | 0fbbb03cd88dfc02453687f502d92ac53e09568d | [] | no_license | BondHydrogenBond/fantastic-disco | bdce9a858943c9cbafd8a3ee79c7127399dde782 | b1a6ccaaba900f373c8bbe2c72122b21017e1e62 | refs/heads/master | 2023-07-09T22:37:08.065485 | 2023-06-22T10:45:24 | 2023-06-22T10:45:24 | 215,550,999 | 0 | 0 | null | 2023-06-22T10:45:25 | 2019-10-16T13:09:04 | C++ | UTF-8 | C++ | false | false | 1,454 | cpp | Course-Struct.cpp | #include <iostream>
#include <string>
using namespace std;
struct course
{
string department;
int number;
string title;
};
//funtion takes an array of course structs, and counts how many courses there are in
// a department given as a parameter.
int numCoursesInDepartment(course courseArray[], int arraySize,... |
09366b182d3c279fdebec975428da1c900496703 | 4a33d0eeb1cebb85160e19e1ee068e83f202ef76 | /src/operations/PhotoOperation.hpp | 6d511947d5a18f984b70e862bca56817ffb1aa45 | [] | no_license | arthurmco/picguy | 25b3d5075f7e3eac95b1bc2132259ad5adf1fc51 | b1a44e8114f67e0c70003a2ea3cafc835241504b | refs/heads/master | 2021-01-18T21:13:44.349474 | 2016-12-09T15:47:27 | 2016-12-09T15:47:27 | 52,307,421 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 729 | hpp | PhotoOperation.hpp | /* Photo operation
Copyright (C) 2016 - Arthur M
*/
#include "../Photo.hpp"
#ifndef PHOTOOPERATION_HPP
#define PHOTOOPERATION_HPP
/**
A photo operation is something you can do with the photo, like a filter, or
a simple operation.
**/
class PhotoOperation {
public:
virtual const char* GetName() const {retur... |
29fa6a187d765488b15cead5ea0a114a8eba08cd | 05831d31255887632f4cc2c5d5478ac371a1b5c8 | /51nod/2641(思维).cpp | 09c5a3fc213a5388c40a4720cdcd2d4c839324e7 | [] | no_license | zhangyufeng0123/route-to-acmer | ccfbad6d7b9c7d9e5c9f8836c64e0c0c33205b7f | 236d20a2ff27589435b8e9749fe94c5398119999 | refs/heads/master | 2020-04-17T03:22:10.359138 | 2020-01-08T02:42:43 | 2020-01-08T02:42:43 | 166,179,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,221 | cpp | 2641(思维).cpp | //\\ \\ \\ \\ \\ \\ \\ \\ || || || || || || // // // // // // // //
//\\ \\ \\ \\ \\ \\ \\ _ooOoo_ // // // // // // //
//\\ \\ \\ \\ \\ \\ o8888888o // // // // // //
//\\ \\ \\ \\ \\ 88" . "88 // // // // //
//\\ \\ \\ \\ (| -_- |) ... |
d4f71c5369c6ecaeeb3302d32185d9c0ad7a9f6d | 1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d | /src/systemc/tests/systemc/1666-2011-compliance/include_descendants/include_descendants.cpp | 3a9306d0415e43d71d77c536ee5042deac49b9fe | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | gem5/gem5 | 9ec715ae036c2e08807b5919f114e1d38d189bce | 48a40cf2f5182a82de360b7efa497d82e06b1631 | refs/heads/stable | 2023-09-03T15:56:25.819189 | 2023-08-31T05:53:03 | 2023-08-31T05:53:03 | 27,425,638 | 1,185 | 1,177 | BSD-3-Clause | 2023-09-14T08:29:31 | 2014-12-02T09:46:00 | C++ | UTF-8 | C++ | false | false | 7,596 | cpp | include_descendants.cpp | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... |
482a718692cb1e96fed3366856382475b0bf43f3 | 9e5d1e9414833472f43f3616e1c140f6ed5b6ee9 | /AtCoder/abc/179/e.cpp | e20431417c1e45655fa743f46dab7a3814b4cd84 | [] | no_license | junewaves/contests | a93dc3b3c1a167005fe12bb0ee6f330ac572f1c4 | 387860b65bdd3c1559f93c5f2d01c69ee364506e | refs/heads/master | 2023-02-27T07:45:11.339127 | 2021-02-08T18:05:01 | 2021-02-08T18:05:01 | 254,631,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,083 | cpp | e.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
int64_t n, x, m;
cin >> n >> x >> m;
vector<int> cnt(m), cand, cand2;
for (int64_t i = x; cnt[i] < 2;) {
cnt[i]++;
if (cnt[i] == 1)
cand.push_back(i);
else i... |
c1c6df9d1f52d6e4e2052f47c23b0873717e6f7a | 498f5629f15083ac5dbbb3ba73f90bf59067f2e5 | /codeforces/A. Space Navigation.cpp | cc6c8d535d13e1f70cce54dfb290d7b3e88e5326 | [] | no_license | priyanshuN/Algorithms | b3103722fd6657d6507d72d73ba80b35e3a196dd | 22559ffc50939256f2324afd313d4a32bb63f6ac | refs/heads/master | 2022-01-31T06:17:52.577691 | 2022-01-08T14:33:56 | 2022-01-08T14:33:56 | 244,685,281 | 1 | 0 | null | 2022-01-08T14:33:57 | 2020-03-03T16:24:45 | C++ | UTF-8 | C++ | false | false | 1,480 | cpp | A. Space Navigation.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pi pair<int,int>
#define pii pair<int,pi>
#define IMA INT_MAX
#define IMI INT_MIN
#define pl pair<ll,ll>
#define pll pair<ll,pl>
#define ff first
#define mp make_pair
#define mod 1000000007
#define ss second
#define pb push_back
#define fr(i,s,n)... |
a4b806b71f3ba4723f9e47781202bf01e1a245f2 | 36009186976eeab56173fc79d27916e57076df94 | /OEGL/OEGLCapabilities.cpp | 118fdf24e9ed44117473807e5ca4c530ec781325 | [
"BSD-3-Clause"
] | permissive | SanderVocke/nwtpi | 0d613a3127d890e9fbe650ee08ee9c6c6e88bf38 | 49b940368ca51f38da3364e924c568d8f07302b5 | refs/heads/master | 2021-01-10T15:31:25.386277 | 2013-04-22T16:47:04 | 2013-04-22T16:47:04 | 36,365,321 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,200 | cpp | OEGLCapabilities.cpp | #include <iostream>
#include <sstream>
#include <stdexcept>
#include "OEGLCapabilities.h"
namespace nwtpi {
// Static data initialization
const EGLint OEGLCapabilities::RGB565_SET[] = { EGL_BUFFER_SIZE, 16 };
const EGLint OEGLCapabilities::RGB888_SET[] = { EGL_BUFFER_SIZE, 24, EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, E... |
a190bb0b85fbc49b0ba6bd045bf8eb7803015c37 | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_2/40/U | cecbba71ee11772f0a640060b3271b85635deb6f | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 776,910 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
ff08600f49695238302b08895d1cab965f62bd42 | 70327ab147f16c1b79b14d00115238183b31c3b4 | /GiaiDeThi/2013/FindSubFibonacci.cpp | 5f6e50c3609e37854304626302dedc96e3c0412c | [] | no_license | NguyenTichDuy/DataStructuresAndAlgorithms | 6e3fab30375059415d47c54feaa1a6a8f645d6e3 | 08f8e2350b9f8af4d2d9f1b31d72b91797690814 | refs/heads/master | 2020-07-02T23:29:58.532995 | 2020-04-18T13:15:55 | 2020-04-18T13:15:55 | 201,706,566 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 713 | cpp | FindSubFibonacci.cpp | #include<stdio.h>
#include<vector>
using namespace std;
FILE *f1, *f2;
vector<int> stack;
int countMax = -1;
int n;
void InputFile()
{
f1 = fopen("FSEQ_INP.txt", "r");
fscanf(f1, "%d", &n);
int num;
while(!feof(f1))
{
fscanf(f1, "%d", &num);
stack.push_back(num);
}
fclose(f1);
}
void OutputFile()
{
f2 = fop... |
11496b4edfe411fd8d3b44f13c771957f731cc6c | 0fc75c0a96916e8359c8033934244a6332ad5a02 | /12/04_function_templates/functions.h | 2fea36d184a931c772ab4e4837a6e5163ed91a17 | [] | no_license | ysemenovkrop/cpp_course | 0e78531e2688d2bc467e5420f6c83b9bb55eecb0 | 41a525a2c24b457d827daf442f39694e2b5ccfb6 | refs/heads/master | 2023-03-26T04:45:24.081464 | 2021-01-21T11:58:32 | 2021-01-21T11:58:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | h | functions.h | #ifndef FUNCTIONS_H
#define FUNCTIONS_H
namespace my_functions{
template <class var_type>
var_type max(var_type a, var_type b){
if(a>b){
return a;
} else {
return b;
}
}
template <class var_type>
var_type min(var_type a, var_type b){
if... |
c95525c1331eabff1fccfe0444213734ffbcfb40 | 9a3fc0a5abe3bf504a63a643e6501a2f3452ba6d | /spoj/7297. Placing Coins on a Grid.cpp | 036438e544aa91ed6bc4391489bda02614bc0646 | [] | no_license | rodolfo15625/algorithms | 7034f856487c69553205198700211d7afb885d4c | 9e198ff0c117512373ca2d9d706015009dac1d65 | refs/heads/master | 2021-01-18T08:30:19.777193 | 2014-10-20T13:15:09 | 2014-10-20T13:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,168 | cpp | 7297. Placing Coins on a Grid.cpp | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstring>
#include <set>
#include <queue>
#include <map>
#define REP(i,a) for(int i=0;i<int(a);i++)
#define MOD 1000000007
using namespace std;
typedef long long ll;
int T,N,M,R;
int dp[40002][20... |
77336a90c343f9119353e4061a8ad9f3a5489e3b | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/ServiceModel/ServiceHealth.h | 114dbadbf7b91efb7935e18f39563827b91816fc | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 2,804 | h | ServiceHealth.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Servi... |
beb260c5122b95a9fd127b2abecc269f0873438f | 6b9a4342b3ffee005573f9cbb3c53aefb04e75ae | /CodesC/Teach yourself c++/tuscppP312ex1/main.cpp | 7be90b8608097a07b3062d7d0d40cbce696a19ae | [] | no_license | YousufAzadSami/Codes-From-Bachelor | be7613170f34c4be7efd399599e174c7a96f02aa | 51d36072417a1c4df172bb468ee04be72cbeff7f | refs/heads/master | 2020-12-15T00:22:42.641842 | 2020-01-19T15:53:53 | 2020-01-19T15:53:53 | 234,925,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | main.cpp | #include <iostream>
#include <ctime>
using namespace std;
ostream &showDate (ostream &stream){
struct tm *localt;
time_t t;
t = time(NULL);
localt = localtime(&t);
stream << asctime(localt) << endl;
return stream;
}
int main()
{
cout << "here we are to show date and ti... |
06c3dc5008daf8bd8e524b265060821baabe779b | 10f60ddfb9be2e31bc9901f5c0c20562973d9c68 | /src/ultrasonic_read/ultrasonic_read.ino | 8974e6994dd7b6d76591fb98151f93e533225593 | [
"MIT"
] | permissive | ethankale/cellular-arduino-ultrasonic-sensor | 08241631f91e87f890e24e53936ce2eacec8f99a | a7fde3f2b49e503afe8c10273db989e9f14ee082 | refs/heads/master | 2020-03-30T17:20:38.800863 | 2018-10-12T23:24:19 | 2018-10-12T23:24:19 | 151,451,445 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,518 | ino | ultrasonic_read.ino | // Sketch for reading from a Maxbotix 7092 ultrasonic rangefinder
// and writing to an attached SD card
// SD card libraries and variables
#include <SPI.h>
#include <SD.h>
Sd2Card card;
SdVolume volume;
SdFile root;
String filename = "log2.csv";
File myFile;
// Sensor variables
int sensorPin = A1;
int controlPin ... |
58758f72ff2826da9b589fb14936c157be3a0433 | 4f267de5c3abde3eaf3a7b89d71cd10d3abad87c | /ThirdParty/Libigl/igl/barycentric_to_global.cpp | e2656ad70312440dc7b778bd15057eb0193b4851 | [
"MIT"
] | permissive | MeshGeometry/IogramSource | 5f627ca3102e85cd4f16801f5ee67557605eb506 | a82302ccf96177dde3358456c6dc8e597c30509c | refs/heads/master | 2022-02-10T19:19:18.984763 | 2018-01-31T20:09:08 | 2018-01-31T20:09:08 | 83,458,576 | 29 | 17 | MIT | 2022-02-01T13:45:33 | 2017-02-28T17:07:02 | C++ | UTF-8 | C++ | false | false | 1,532 | cpp | barycentric_to_global.cpp | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Daniele Panozzo <daniele.panozzo@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at ht... |
a1855a78e6c0f157103ffb4b496357e4837bbe87 | ca805a49a84b5d54b7eac85feff78a8bdec4a233 | /9020.cpp | bcce83f154b83e33051ac3ec4d91ec17fc17acc1 | [] | no_license | lcy8417/backjoon-online-judge | 523a888cce80b82f447732876a6972c0c8c5dc0e | 042966b069faf68589fe77a9311af42498d91a51 | refs/heads/main | 2023-08-10T14:08:48.671399 | 2021-09-19T12:57:49 | 2021-09-19T12:57:49 | 348,651,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 789 | cpp | 9020.cpp | #include <bits/stdc++.h>
using namespace std;
int a[10001];
bool isPrime(int x){
int end = (int)sqrt(x);
for(int i = 2; i <= end; i++){
if(x % i == 0) return false;
}
return true;
}
void PrimeNumber(int m){
int x = 0, y = 10001;
for(int i = 1; i <= m; i++) a[i] = 1;
for(int i = 2; i <= m; i+... |
edb0e84d53d5ef04a4513f9b30a5f670188806ff | 852c732727ec349914b32b96e6b990db13550a21 | /inc/grafo.hpp | 643355e63edaec662e896dac373684ddbc20f140 | [] | no_license | projeto-de-algoritmos/Grafos2_FibraNRCG | e783fa1d4e7070bb4b6b6b9cd9df0a4cecfcc49c | 487fc7d28cfbbcba793f2c87f09c8daca1b5a870 | refs/heads/master | 2022-12-20T18:45:20.037566 | 2020-10-03T02:22:30 | 2020-10-03T02:22:30 | 298,396,088 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | hpp | grafo.hpp | #ifndef GRAFO_HPP
#define GRAFO_HPP
constexpr int MAXN {2000};
constexpr int MAX_NO {55};
constexpr int INFINITO {999999999};
#include "./mapa2D.hpp"
#include <iostream>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
typedef std::pair<int, int> pii;
class Grafo : public Mapa2D {
private... |
efb9425e7b6185e33abee061842c6af3f7a3789f | 2f44e5ad214795598a86bf6959fb105ac6674260 | /lab-05-decorator-pattern-sigsegv-noises/paren.hpp | 5fbca8abd5c0a638be6a14b56dac27a513026e05 | [] | no_license | AppleTater/CS100-Labs | b91d89a5f0d4becb1a069866fd7e32371efa002c | 67b5462d4fcaba18789060d9b94761d487c4a55c | refs/heads/master | 2022-11-22T12:42:08.400387 | 2020-07-23T06:50:45 | 2020-07-23T06:50:45 | 281,864,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | hpp | paren.hpp | #ifndef PARENTHESES_HPP
#define PARENTHESES_HPP
#include "base.hpp"
#include "Decorator.hpp"
using namespace std;
class Base;
class Paren : public Decorator {
protected:
public:
Paren (Base* input) : Decorator() {value = input;}
double evaluate(){ return value->evaluate();}
string stringify(){
string res... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.