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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fdf49dbea17d68b224fed51fb1c0770301d77668 | 1ea0b8bc590172ea2be423467aa8765246121539 | /cpp/Mesh/general_mesh.h | 886ab625165481b4c059c377bae49ad0d2be39c6 | [
"MIT",
"Python-2.0"
] | permissive | rstebbing/common | 95bcac8a53bcc6a2f84a08db858383243943b0d5 | 10f22490325fd692c6704ea044b2ff8cbd59e6a0 | refs/heads/master | 2021-01-23T12:18:04.647102 | 2015-12-22T20:12:57 | 2015-12-22T20:20:06 | 25,832,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,967 | h | general_mesh.h | ////////////////////////////////////////////
// File: general_mesh.h //
// Copyright Richard Stebbing 2014. //
// Distributed under the MIT License. //
// (See accompany file LICENSE or copy at //
// http://opensource.org/licenses/MIT) //
////////////////////////////////////////////... |
5a57cd84ced67e7b699a3e29ca725e97965b8bd3 | f779f1e1cf478eb64dfd069ae23db5fa442fbacb | /jni/EventLoop.hpp | 99b06d8b6a7adf4b2457b024577826f8481664d7 | [] | no_license | likeleon/RocketCommanderDroid | ebc3390898663ad7e0477e3b778ba8d13399dce4 | 892c6eed83df093bf5d9acb513441a3b631b0a64 | refs/heads/master | 2021-01-24T06:41:23.136241 | 2013-03-17T07:14:17 | 2013-03-17T07:14:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | hpp | EventLoop.hpp | #ifndef _EVENT_LOOP_HPP_
#define _EVENT_LOOP_HPP_
#include "ActivityHandler.hpp"
#include "Types.hpp"
#include <android_native_app_glue.h>
#include "SensorHandler.hpp"
namespace likeleon
{
class EventLoop
{
public:
EventLoop(android_app* pApplication);
void run(ActivityHandler* pActivityHandler, ... |
a9a14e30b15104a9959d89e9d0b25ccd1dcf200c | de1eab3e33546f0762300141cb2db070a58bff5a | /Views/Cards/CardView.cpp | e65391407d5f19f347f09bab10409ed6cc13badc | [] | no_license | alexkarpovich/qt-china-tut | c12cea76d3eef9a530501b50b1cf6dc786558971 | 0fd7a94b4d2647e67f48c41106407dd440832339 | refs/heads/master | 2020-08-07T00:57:32.256246 | 2019-12-10T12:09:12 | 2019-12-10T12:09:12 | 213,229,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | CardView.cpp | #include <QVBoxLayout>
#include <Views/TrainingView.h>
#include "CardAskView.h"
#include "CardView.h"
CardView::CardView(TrainingView *parent)
: CardAbstractView(parent)
{
QVBoxLayout *rootLayout = new QVBoxLayout;
if (getModel()->isNew()) {
setAskView();
getModel()->nextWord();
} e... |
c433f205ce9fe2b06fd3ef929d1163fff91aef0d | 85c91b680d74357b379204ecf7643ae1423f8d1e | /tags/rel_0_0_3/qedo/ComponentInstaller/DOMOutput.h | db965ef2c81521e0887494723dd8a8fd1c9b90f2 | [] | no_license | BackupTheBerlios/qedo-svn | 6fdec4ca613d24b99a20b138fb1488f1ae9a80a2 | 3679ffe8ac7c781483b012dbef70176e28fea174 | refs/heads/master | 2020-11-26T09:42:37.603285 | 2010-07-02T10:00:26 | 2010-07-02T10:00:26 | 40,806,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,754 | h | DOMOutput.h | /***************************************************************************/
/* Qedo - Qualitiy of Service Enabled Distributed Objects */
/* */
/* http://qedo.berlios.de/ */
/* ... |
9cb5e445527b662ba6a77f4bdf1239ccd6189759 | 733335a50de426f8d37594f62bc8363fba71108b | /world_control/transport.hpp | e5807bf42ecd9ab8883da3a080dce06efb0831f7 | [] | no_license | SPECSDev/iqr-gazebo | 77b0fa5747fd1c587af119a94435b7ddab07d390 | ab95232fa0cafd356ac56e11bec0608fa35ed903 | refs/heads/master | 2016-09-10T23:00:59.243540 | 2015-03-04T15:12:46 | 2015-03-04T15:12:46 | 32,143,625 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,511 | hpp | transport.hpp | #ifndef TRANSPORT_H
#define TRANSPORT_H
#include <QObject>
#include <QTimer>
#include <QVector>
#include <QList>
#include <QMutex>
#include <boost/bind.hpp>
#include <boost/program_options.hpp>
#include "gazebo/transport/transport.hh"
#include "gazebo/msgs/msgs.hh"
#include "gazebo/msgs/vector3d.pb.h"
#incl... |
56dbc932fbcec35a2008136e7b9abc211efa0f41 | 334558bf31b6a8fd3caaf09c24898ff331c7e2da | /GenieWindow/plugins/GeniePlugin_MapV2/powerline/plc_appengine/plcmainpipe/plcapi/plcdriver.cpp | 807c448a8064227d8ec78860b29d19441b2cb90e | [] | no_license | roygaogit/Bigit_Genie | e38bac558e81d9966ec6efbdeef0a7e2592156a7 | 936a56154a5f933b1e9c049ee044d76ff1d6d4db | refs/heads/master | 2020-03-31T04:20:04.177461 | 2013-12-09T03:38:15 | 2013-12-09T03:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,980 | cpp | plcdriver.cpp | #include "plcdriver.h"
#include <QLibrary>
PLCDriver::PLCDriver(QLibrary *libDriver):
m_libDriver(libDriver)
{
ResolveSymbols();
}
PLCDriver::~PLCDriver()
{
if(m_libDriver != NULL){
//m_libDriver->unload();
delete m_libDriver;
}
}
void PLCDriver::ResolveSymbols()
{
#ifndef DUMP_LAYER2... |
cc7e0a5c57fd97ad34a56ec942bb1d754838bd5c | b0f634107d51bd503e87476cd73b1471883adbd8 | /tankgame/graphicsEngine.hpp | 7da5cd43f6d38b933e929319fdbf38ce5ae2d199 | [] | no_license | eminayar/tank-game | a3529e81e593449318dd9d05fada328de138e0f0 | b0ab32f03e0371774d51e536540e926e7d736f63 | refs/heads/master | 2020-11-30T21:55:09.391488 | 2019-12-30T08:59:27 | 2019-12-30T08:59:27 | 230,489,022 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,733 | hpp | graphicsEngine.hpp | #ifndef graphicsEngine_hpp
#define graphicsEngine_hpp
#define GL_SILENCE_DEPRECATION
#define AD_PORT 12345
#define AD_RESP_PORT 12347
#define GAME_PORT 12346
#define PLAYER_PORT 12348
#include <GLUT/GLUT.h>
#include "gameState.h"
#include <chrono>
#include <fstream>
#include <cstdlib>
#include <cmath>
#include <iostre... |
bd58d94a3c4865ec613bc1d39f21d61cf2ed3103 | b49a1ebd1a26b85e9a7fa1a4e56f5b6c241d3b64 | /codeforces/codeforces7.cpp | 4aeb4241f1f97246b5bd2654ed155b771e73d0af | [] | no_license | sahilnare/acm-icpc-prob | d00e3fe95c4d8e1b3268fa2995f1c0108f74f3fa | f70e82e1e86cd424ebc94e6110b7c884cc76f8c9 | refs/heads/master | 2020-12-03T18:14:04.504508 | 2020-01-02T17:09:03 | 2020-01-02T17:09:03 | 231,425,375 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | codeforces7.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long int first;
cin >> first;
if(first % 2 == 0) {
cout << "Mahmoud";
}
else {
cout << "Ehab";
}
return 0;
}
|
76532e497968a8307b812c27dc207aae6bab1b3a | 6d427c7b04cb92cee6cc8d37df07cf8b129fdada | /10000 - 10999/10842.cpp | 934227122799e198a994ab331b413d143d623ef4 | [] | no_license | FForhad/Online-Judge-Ex.-Uva-Solutions | 3c5851d72614274cafac644bcdbc9e065fd5d8d8 | b7fdf62d274a80333dec260f5a420f9d6efdbdaf | refs/heads/master | 2023-03-20T23:47:30.116053 | 2021-03-10T02:07:49 | 2021-03-10T02:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,467 | cpp | 10842.cpp | #pragma comment(linker, "/stack:200000000")
#include<bits/stdc++.h>
using namespace std;
#define inf (1e8+9)
#define mxs 102
#define pii pair < int , int >
vector < pii > graph [ mxs ];
priority_queue < pii > pq;
int n , m , a , b, c , t , cases , ans , i , j , sz;
bool visited [ mxs ];
int cost [ mxs ];
void mst();
in... |
4c564afc4f1fdfc9bba5d99dcb46cf6b66599af5 | bb84ce17ebf8c61739776b70370206e23e60a9a8 | /optimization/bilbo's.forest/main.cpp | 75dbf38319a8acb5777657369b036a551d6420c3 | [
"MIT"
] | permissive | kvirund/codingame | af28a29c7783a95b93bae3345ae2b2f3da2d5af4 | 1676a765f6e5e6ddc8fc22db4cafbc3996b520eb | refs/heads/master | 2020-04-21T20:06:17.590641 | 2016-02-18T19:53:53 | 2016-02-18T19:53:53 | 26,226,958 | 3 | 3 | null | 2016-02-18T19:53:24 | 2014-11-05T15:54:23 | C++ | UTF-8 | C++ | false | false | 4,923 | cpp | main.cpp | /**
* \author Anton Gorev aka Veei
* \date 2015-08-09
*/
#include <assert.h>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <map>
using namespace std;
const int TAPE_LENGTH = 30;
const int LETTERS_COUNT = ('Z' - 'A' + 1) + 1; // letters count plus ' '
... |
78874e9a42afb2f2e1030fd7d4282e0aa6e1a9d5 | 5ecda5c1ee27722360a10f8b171464218edd97e5 | /tut2/Q3.cpp | 40621b4a8afdbe47834ac9bddd2a4b61111ff1ba | [] | no_license | RDPerera/C-LecPrac | 78a7bb0cab757b1be54c2c49f5c2aca35b836f65 | 5f4264d92a8792b47116b50d22fba8df32009590 | refs/heads/master | 2020-09-28T14:27:03.347735 | 2020-03-29T08:04:11 | 2020-03-29T08:04:11 | 226,796,277 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,407 | cpp | Q3.cpp | #include<iostream>
using namespace std;
class ThreeNos
{
private :
int n1;
int n2;
int n3;
public:
ThreeNos(); //initialize numbers to 0
ThreeNos(int x, int y, int z); //initialize numbers to x,y,z
int getMax(int x, int y, int z); //return... |
6281c7361ca4b35b0f39b5a5f63f633834eaa4a4 | 9eb4f472070b39db09e7088b173edb24d2af4652 | /Hadrons/A2AVectors.hpp | 7cbd19efe4f66d487716f669878bcf811ed7b977 | [] | no_license | guelpers/Hadrons | 55dd3b2e5e87605e459f5066f47238ab452aeae0 | 735e5c0f10bbfaaf52e2efc5ead1010f5ac50bc6 | refs/heads/master | 2023-02-23T12:13:29.085574 | 2020-03-27T17:53:07 | 2020-03-27T17:53:07 | 252,408,759 | 0 | 0 | null | 2020-04-02T09:17:12 | 2020-04-02T09:17:11 | null | UTF-8 | C++ | false | false | 12,137 | hpp | A2AVectors.hpp | /*************************************************************************************
Grid physics library, www.github.com/paboyle/Grid
Source file: Hadrons/A2AVectors.hpp
Copyright (C) 2015-2019
Author: Antonin Portelli <antonin.portelli@me.com>
Author: fionnoh <fionnoh@gmail.com>
This program is free software;... |
e561416c8fcfa856148718a75f7751837bd6882b | 4d317369bd7de599e0364e9097e50f381845e22c | /2021/Div 2/742/Programs/Carrying Conundrum.cpp | 01dd6bccbe67b283115d08d35d4b172f98cab688 | [] | no_license | MathProgrammer/CodeForces | 4865f0bad799c674ff9e6fde9a008b988af2aed0 | e3483c1ac4a7c81662f6a0bc8af20be69e0c0a98 | refs/heads/master | 2023-04-07T11:27:31.766011 | 2023-04-01T06:29:19 | 2023-04-01T06:29:19 | 84,833,335 | 256 | 114 | null | 2021-10-02T21:14:47 | 2017-03-13T14:02:57 | C++ | UTF-8 | C++ | false | false | 666 | cpp | Carrying Conundrum.cpp | #include <iostream>
using namespace std;
void solve()
{
string n;
cin >> n;
long long odd_places = 0, even_places = 0;
for(int i = 0; i < n.size(); i++)
{
int digit = n[i] - '0';
switch(i%2)
{
case 1 : odd_places = odd_places*10 + digit;
b... |
fcc9c21da2929ffa5d64beaed7b7d5589a132c8b | ee90310e5a04924320074b1ad328b19850ec6cc4 | /longbow_infantry.h | f9a9447f166438318830e50fa64cdb61963a4355 | [] | no_license | Darkborderman/Fake-Emblem | 2a148a85aec28939ca63e73cbd90061889968b9a | b6607a6dfc6a9837d0d90c552047bb4b89cfcae4 | refs/heads/master | 2021-01-19T10:40:04.279184 | 2017-06-28T17:52:36 | 2017-06-28T17:52:36 | 95,696,080 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | h | longbow_infantry.h | #ifndef LONGBOW_INFANTRY_H
#define LONGBOW_INFANTRY_H
#include"unit.h"
class longbow_infantry: public unit
{
public:
longbow_infantry();
};
#endif // LONGBOW_INFANTRY_H
|
9150b8e9f42cbbfe82d0fc6954cebc0fcdb5004e | e37a4775935435eda9f176c44005912253a720d8 | /datadriven/src/sgpp/datadriven/application/LearnerSGD.hpp | f477ee4e2b35fd412a4f960161a5d8019c28c048 | [] | no_license | JihoYang/SGpp | b1d90d2d9e8f8be0092e1a9fa0f37a5f49213c29 | 7e547110584891beed194d496e23194dd90ccd20 | refs/heads/master | 2020-04-25T10:27:58.081281 | 2018-09-29T19:33:13 | 2018-09-29T19:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,355 | hpp | LearnerSGD.hpp | // Copyright (C) 2008-today The SG++ project
// This file is part of the SG++ project. For conditions of distribution and
// use, please see the copyright notice provided with SG++ or at
// sgpp.sparsegrids.org
#ifndef LEARNERSGD_HPP
#define LEARNERSGD_HPP
#include <sgpp/base/datatypes/DataMatrix.hpp>
#include <sgpp/... |
3306c1d40fa7f3feeb00eb065b417c317398cc36 | 419e3b4f150e91c98da95627b40bd36e159bc957 | /figura.h | 17039da6fdc7de9f9237f6f343873144477d30b7 | [] | no_license | ChristianVJ/OPENGL | 1f318b7449a25bbe7f0a81c068e99cded7703626 | 6ca44de318457e25629387a33d1d53a9715786bf | refs/heads/main | 2022-12-25T08:02:17.665391 | 2020-10-02T14:59:01 | 2020-10-02T14:59:01 | 300,649,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,413 | h | figura.h |
#include <GL/gl.h>
#include <GL/glut.h>
#include <vector>
#include "stdlib.h"
#include "vertex.h"
#include <math.h>
#include "Tipo_luz_material.h"
#include "Materiales.h"
#ifndef _MALLATVT_H_
#define _MALLATVT_H_
#define MATERIAL 4
using namespace std;
class Figura { // CLASE PARA VISUALIZAR Y REVOLUCIONAR
privat... |
2f97d048b5140975ad2772209b5d7db7b66742c3 | de390163287fda86b73df015d6b6a3dc5e1bf736 | /Codeforces/Good Bye 2018/C.cpp | 59a3ed7583c724d6bc812a7cae7c745284dcae2a | [] | no_license | iamarshsingh/Competative_programming | fb71a7b62d4ba2846deae25203f9087f31a0b675 | 09418842d029b20d2df0f5b5a5e87619f44a18b3 | refs/heads/master | 2020-06-26T14:39:59.199295 | 2020-03-28T14:05:26 | 2020-03-28T14:05:26 | 97,026,462 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | cpp | C.cpp | #include <bits/stdc++.h>
#define MOD 1000000007
#define ll long long int
using namespace std;
vector<ll> printDivisors(ll n)
{
vector<ll> ans;
ans.clear();
for (ll i=1; i<=sqrt(n); i++)
{
if (n%i == 0)
{
if (n/i == i)
ans.push_back(i);
... |
fd5fc00e0a3bb8293f8df819be81508e3f46abef | a5edd00159a2ba88ff6307566dcc515f96254196 | /Sigcreator/main.cpp | 220a568c2bd30e4711347a697176504abdf11fb3 | [] | no_license | McSimp/driver-sf-modtools | c61eab0c6d8a8a36bf6d9c90f1cc362784731429 | a2e561aa07bbb446c2c948ccd6a223cdca325d4a | refs/heads/master | 2020-12-24T13:45:04.671360 | 2012-07-07T15:28:57 | 2012-07-07T15:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 966 | cpp | main.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
int main() {
int i, len, out_i = 0, mask_i = 0;
char *sig, *out, *mask;
sig = (char*)calloc(1024, sizeof(char));
printf("?");
fgets(sig, 1022, stdin);
len = strlen(sig);
out = (char*)calloc(len*2, sizeof(ch... |
e3c4bf168a93f0129f3eec9290865683085219c1 | f225567d44480b5c96f60f1d23b6b0bd3bc6b5c9 | /DIP/hw1/prob1.cpp | 958c4f3dfd78001a99539f639afadad50755b756 | [] | no_license | johnjohnlin/MyCourseProjects | c0fa93c65b2d35ccacd62d5924e2db1bab14756d | ec729d95dec98966c98aaaa545fcbfe51fb05245 | refs/heads/master | 2020-12-24T15:58:12.265515 | 2015-04-17T15:41:28 | 2015-04-17T15:41:28 | 34,122,406 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,047 | cpp | prob1.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include "pgm.h"
inline int clamp(int x, const int l, const int h)
{
return std::max(std::min(x, h), l);
}
void dump_hist(const unsigned *in)
{
printf("Hist:\n");
for (int i = 0; i < 256; ++i) {
printf("%u\n", in[i]);
... |
c0331fff840e072fdf0db5c7d708f3b5dca0f94a | cf96c6e7d06aea5f11a6de8cce54031a7ece5b3b | /lista.cpp | 408010922cd2187bdf542b8648a4eacb2592e70a | [] | no_license | FernandaCano08/cop | dc541072595f937343b15461a04021f0e511c7bc | 8531f761f905d3fa5bcb0cb55ba0d46fd8f9a45b | refs/heads/master | 2020-07-08T08:02:43.549442 | 2019-08-21T15:26:15 | 2019-08-21T15:26:15 | 203,611,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | lista.cpp | #include "lista.h"
#include <iostream>
using namespace std;
//fallamos :c creo que neceitamos mas practica antes de reiniciar mi cerebro
///Perdon
lista::lista()
{
//ctor
}
lista::~lista()
{
//dtor
}
void lista::mostrar()
{
}
void lista::agregar()
{
nodo* aux;
if (vacia()){
... |
a0a651aca82a7a1f05ab2014240a1b167879177a | 1a1b98a049063b542c85c5f767e1a8227baa0799 | /957.cpp | c6e0e7658bc35562be88234514704b4b79d3589f | [] | no_license | Bhabaranjan19966/COMPETITIVE-PROGRAMMING--ACCEPTED-CODE | 79fdcf60147a66efbeaf35e159195d9fb2e7695a | 9c8e0ea035e4b5cfd0c77134e54f3fe83b3e55fb | refs/heads/master | 2020-03-28T21:26:39.318002 | 2018-09-17T16:39:03 | 2018-09-17T16:39:03 | 149,156,737 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,870 | cpp | 957.cpp | #include<bits/stdc++.h>
#define opt ios_base::sync_with_stdio(0)
#define rep(i,a,b) for(int i=a;i<b;i++)
#define repd(i,a,b) for(int i=a;i>b;i--)
#define trace1(x) cerr << #x << ": " << x << endl;
#define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl;
#define tra... |
250ca673a589d57f71058832d9d0b97b4520c8d9 | 9c246730628d95b1e5f766d2b7a8bdbb5e068674 | /11661 - Burger Time/11661 - Burger Time.cpp | bca62514467e540a3d9010908120895646acad72 | [] | no_license | AngieMeG/Uva-Online-Judge | e4c2e463e34c8237fccd048dd367cf20565db9c6 | 963b7dc8247018bc7a41e63b1e7ca79ec4e05489 | refs/heads/master | 2023-05-13T20:04:23.450075 | 2021-05-25T21:25:48 | 2021-05-25T21:25:48 | 293,392,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cpp | 11661 - Burger Time.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int cases;
cin >> cases;
while(cases != 0){
int ans = cases, d = -cases, r = -cases;
string highway;
cin >> highway;
for (int i = 0; i < cases; i++){
if (highway[i] == 'Z'){
ans = 0;
... |
2bdab2ece002571a231c80be2b563cd9b2abf4ea | 496ac9605493ae14b5bb8e12dd20a82f61fe144b | /src/context/GlfwInputManager.cpp | 706fb07e23e68ec4ad60e172d088908e9ee0618c | [] | no_license | ennioquaglia/GameEngine | f17d9cbdebe8ff143f7f1f8fcdd2c125ac7c4ca8 | 8a83a26e9b52eaa2d66f59c76b7852e8e66e9f21 | refs/heads/master | 2020-05-19T21:26:59.455956 | 2017-03-30T19:15:10 | 2017-03-30T19:15:10 | 39,824,096 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,653 | cpp | GlfwInputManager.cpp | #include "GlfwInputManager.h"
#include "GlfwWindow.h"
#include <glm/glm.hpp>
#include "Debug.h"
namespace Engine {
GlfwInputManager::GlfwInputManager() :window(0), engine_window(0)
{
}
GlfwInputManager::GlfwInputManager(GlfwWindow *w) : engine_window(w) {
setup(engine_window);
}
GlfwInputManager::~Glfw... |
eea74aee7ec0170ed0d75e7641a2537d17d95dde | d7ee43d59443b19c8715b7087bf9de296c44670a | /student.h | 3327602fbb9da4b3268cfd858b79fff514fa6bb1 | [] | no_license | JohDor/C867-New-SPA | 76991190e466271e09e60fad0a294374cabbdc1e | b3a16f465b46bd541af93941bb1c83405aa59a29 | refs/heads/master | 2022-03-25T23:29:23.730778 | 2020-01-10T07:53:50 | 2020-01-10T07:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,925 | h | student.h | /*
C867 - Scripting and Programming Applications
Ryl Johann Lolor Dorado
Student ID: 001231016
C++
*/
#ifndef STUDENT_HEADER
#define STUDENT_HEADER
#include"degree.h"
#include<iostream>
#include<string>
using namespace std;
class Student {
public:
// 2.c. constructor using all of the input parameters provid... |
3172b72c60b376283a328c471f20998d22b1b268 | f1f24d86d2ddd7a7b265ff53a8e3b7154a29176d | /rome/include/ROMEAnalyzer.h | 21730b55e3956be8b6fca91f13d83875685edba0 | [] | no_license | cjpl/rome | 0409725419291c48cc58dd46268dc20174f73040 | d23af1df807144e96e6df630e4ead1169c24ebe3 | refs/heads/master | 2021-01-16T20:25:22.140962 | 2013-07-17T09:14:59 | 2013-07-17T09:14:59 | 3,942,387 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 40,851 | h | ROMEAnalyzer.h | /********************************************************************
ROMEAnalyzer.h, M. Schneebeli PSI
$Id$
********************************************************************/
#ifndef ROMEAnalyzer_H
#define ROMEAnalyzer_H
#include <stdlib.h>
#include <RConfig.h>
#if defined( R__VISUAL_CPLUSPLUS )
# pragma w... |
99766dbbcb54b39f5fa86d7cd4b798caf6a13cfb | f2db06db198810be7c046e2e241e359f95e47e8d | /trial_targets/shared_library_on_pic.cc | 4ee5a752145bbc01bb79da365ed05943b7954cf5 | [
"MIT"
] | permissive | adambreland/cpp-simple_bazel_cpp_toolchain | 87c8fee3ec638585cf4a45a349f46a7f563400b0 | 9530aad19a03b3ede56d51f6700b726249d51fe9 | refs/heads/master | 2023-04-08T02:54:47.866574 | 2021-04-20T20:11:03 | 2021-04-20T20:11:03 | 340,477,263 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | cc | shared_library_on_pic.cc | #include "shared_library_on_pic.h"
#include <string>
#include "pic1.h"
std::string so_on_pic_func()
{
std::string result {"so_on_"};
result.append(pic1_func());
return result;
}
|
f2d4bdabb538d107bbb9ee1e2d5fb49f4c48d7d9 | 8a819b2a0a643b659097b96d041c52e5df81b4a1 | /books/Design_Pattern/Parser/dog/AbstractNode.h | 103dd6854f3fda279101379c15648bee776e689b | [] | no_license | hackerlank/Norman | 82e9112eaa838b7fc8e8fd79030f57ca9d58ef59 | db414c7855dacf923edf60849e413c3e2f572922 | refs/heads/master | 2021-01-12T08:57:19.805317 | 2016-07-02T07:33:44 | 2016-07-02T07:33:44 | 76,732,695 | 0 | 1 | null | 2016-12-17T15:53:07 | 2016-12-17T15:53:07 | null | UTF-8 | C++ | false | false | 824 | h | AbstractNode.h | /**
* - version 1.0
* -------------------------------
* Copyright (C) 2016-2016 by Norman (none_lih@163.com)
* Report bugs and download new versions at https//github.com/evely211
*
* This library is distributed under the MIT License. See notice at the end of this file.
* This work is based on POSIX,which is:
* Copyr... |
7baa0dd9b11d0720aee7f5b8dd73b839eebc1032 | 03b64789ab199ba9e249b0cee16e89f1f6b16289 | /Kalashcode/Score.h | 0d6ba2875fbe4d58c4655e1a8ee8bd845f4d97ab | [] | no_license | mrcapucon/GoogleHashcode | ef521dc7ea0318dead856b1de71581cd0dc7f355 | 15eba638410dc099cba3f69ff9a28c23126b95e1 | refs/heads/master | 2021-01-18T03:33:53.260469 | 2017-03-22T09:59:45 | 2017-03-22T09:59:45 | 85,811,073 | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 3,282 | h | Score.h | #pragma once
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include "Univers.h"
#include "ImagesCollection.h"
#include "Satellite.h"
#include "Utils.h"
int calculerScore(std::string, std::string);
// Fonction qui calcule le score en fonction du nom de fichier sans l'ex... |
b5292936155e540d3b9df961c9c8f4e5bbf63caa | 2d7249c50b3e8cc3821fa20faf629554982424f5 | /Sources/Player.cpp | 50603204f58035bdcf9f43075d06ceb09ec94478 | [
"MIT"
] | permissive | WeyrSDev/CBomberman | 9ea3052232a09e4042ee5d922ea61164a14cb989 | 9aa39da7cc5c3683130d883f953c9b2585acfe42 | refs/heads/master | 2021-07-20T09:27:34.673196 | 2017-09-20T19:05:11 | 2017-09-20T19:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | cpp | Player.cpp | #include "../Headers/Player.h"
Player::Player(sf::Texture* txtr, sf::Vector2u imgCount, float switchTime, float speed) :
animatioff(txtr, imgCount, switchTime)
{
this->speed = speed;
row = 0;
faceRight = true;
body.setSize(sf::Vector2f(50.0f, 50.0f));
body.setOrigin(body.getSize() / 2.0f);
body.setPosition(0.0... |
93bf734a826b9abf76eb00b1b55da62e577c741c | 5e561d21184a0f006892201c10129bbba1795b11 | /streams/stream_ciphers/estream/py/py6.cpp | 3d6359f2743ee17e96ab9dd0c16839a37b8ffc6b | [
"MIT"
] | permissive | crocs-muni/CryptoStreams | c5bf432a14aa161ff2aa6dbfa38448152293ebb1 | b92d96ad16679c24a9402b0d33378d1f318db23a | refs/heads/master | 2022-11-13T06:57:04.333740 | 2022-11-11T20:44:47 | 2022-11-11T20:48:36 | 84,541,435 | 9 | 5 | MIT | 2022-11-11T20:48:37 | 2017-03-10T09:11:32 | C | UTF-8 | C++ | false | false | 13,270 | cpp | py6.cpp | /* py.c */
/* Inventors: Eli Biham and Jennifer Seberry */
/* This cipher is submitted as a response to the */
/* Ecrypt call for stream ciphers */
/* The designers/authors of Py (pronounced Roo) */
/* keep their rights on the design and the name */
/* However, no royalty will be necessary for ... |
d122c80daac326e4732c21196be42de029f3d5aa | f390eab7e59d3c10e88161c388b8024c2b04874a | /Algoritmo/Trabalho Algoritmo/Atividade 01/SalarioLiquido.cpp | 7867f8b7e7f40b18aeed1e292dc970efa240e01d | [] | no_license | Bryant-Anjos/Fatec | 198bb5c49bc04297806cf0a516cffba34eedebfa | d2da865b17dd239c9f5ee5894b445b118147d862 | refs/heads/master | 2020-03-22T06:29:35.652257 | 2019-10-15T13:33:46 | 2019-10-15T13:33:46 | 139,638,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | SalarioLiquido.cpp | #include <stdio.h>
main()
{
float bruto, liquido;
int funcionario;
for (funcionario = 1; funcionario <= 100; funcionario++)
{
printf("Digite o salario bruto do funcionario %d: ", funcionario);
scanf("%f",&bruto);
liquido = bruto - bruto * 0.2;
printf("\nO salario liquido do funcionario %d eh... |
441470975957cc764399323042c8770923595ef7 | d4b0364977c3ce73376f80c13b95579031a9ff9f | /my_httplib/http1.0.hpp | 55b21611f27ccc35f126985141e330f5e0b69171 | [] | no_license | xiaotaohe/Project | f0845f9a09e8b21d5eb2f57caeae49d8cf7c7083 | dabb352561ceef0c1d619947ee3cda681e0077d0 | refs/heads/master | 2020-05-26T11:01:58.010062 | 2020-03-29T06:24:58 | 2020-03-29T06:24:58 | 188,208,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,009 | hpp | http1.0.hpp | /*************************************************************************
> File Name: http0.hpp
> Author: 陶超
> Mail: taochao1997@qq.com
> Created Time: Fri 21 Jun 2019 01:30:42 AM PDT
************************************************************************/
#include"tcp.hpp"
#include"show_error.hpp... |
c7be6e79373e1f15b6f185857b42e37c127ffb19 | ec44b61e4552ff446d89dcbf898a3dbb4afd0ad9 | /client/client_app.h | 97351b408a5d1034e76cc9fbe872ed3a71ff862f | [] | no_license | napalm201905/cef_browser | e3d98a90cc64128ec3256ed365582873b8654cbe | 42679f0b7e0f54501c6b33031482ababac6c4b42 | refs/heads/master | 2020-06-24T00:20:41.235650 | 2017-08-03T15:21:58 | 2017-08-03T15:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,416 | h | client_app.h | // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#pragma once
#include "include/cef_app.h"
class ClientApp :
public CefApp,
public CefBrowserProcessHandler,
public CefRenderP... |
14b68f2df609ca6a8f7de7d4f6ec49242fe69d63 | 4afd8f383a9548ddece248bd7c08246e8ce62fce | /gcf/test/gcf/src/gcf/tab/BinaryLoader.h | 98b9b67a0d22382c7011af35fcd94e6c1b458648 | [] | no_license | xuantao/small-idea | 4f161ae77eadf846e50a3ba8e50f38428cb014d6 | a421668bee717bd07880aa6606ebf0d9fd7d867f | refs/heads/master | 2020-06-22T06:29:39.837841 | 2020-05-20T15:43:44 | 2020-05-20T15:43:44 | 74,754,319 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,061 | h | BinaryLoader.h | #pragma once
#include "TabDef.h"
#include "../serialize/SerUtility.h"
#include "../serialize/SerBinary.h"
#include "../serialize/SerMemoryStream.h"
namespace tab
{
template <class Ty>
class BinaryLoader : public ILoader<Ty>
{
public:
bool Setup(const void* data, size_t size)
{
... |
b034f668fdf73644c391e8ae52c05d1178831d90 | c2ed15b173e6c382aa5ff27c6771d6b27d98f5d8 | /Advanced/Lab09/09-05/Slopes.h | 0bff7acb9811abe1c47b1ad56c67227bf7b6bad8 | [] | no_license | Odinra/Intro-and-Advance-C- | 998eb1049ed4e0198c4c6896215c2a9e205ef44c | 9272be2375af363529201f00f12a73e06a2f56e6 | refs/heads/master | 2020-04-05T05:16:34.632060 | 2015-07-06T18:23:35 | 2015-07-06T18:23:35 | 38,602,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | h | Slopes.h | /* Christopher King
Section 1031
Snow condition Structure Header
CK 05/08/12 - 12:55-01:42 Started Program
CK 05/10/12 - 11:00ish - 11:37 Finished product
*/
#ifndef SLOPES_H
#define SLOPES_H
#include <string>
using namespace std;
struct Slopes
{
string sMonth;
int iDate[7];
double dBase[7];
void setDates(int star... |
e50d52f83c6066abd765d9adde307c95e4de503b | b059cd4dfca19b0798a76428d8f36555de2ac9b1 | /max.cpp | 6c5138c864b7e04ce07746de25bdc0fbbb18e4e2 | [] | no_license | SakshiRathore982/data-structure | e66f0f9e5a9edb5ec7228bf4d57abb0ee4c8cd81 | 1ba6341c238eac2003f8e1053d538637cb33e1da | refs/heads/main | 2023-04-04T04:10:50.018178 | 2021-04-18T18:27:59 | 2021-04-18T18:27:59 | 336,478,744 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | max.cpp | #include<iostream>
using namespace std;
int main()
{
int arr[] = {4, 45, 30, 60, 20, 8};
int max1=0,max2=0;
for(int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
{
if(arr[i]>max1 )
{
max2=max1;
max1=arr[i];
}
else if(arr[i]>max2 && arr[i]!=max1)
{
... |
4cf50f64019aed912868e5de12d7a62b99246a30 | 86dd7ae97c6f222048034faa26860335faa5b582 | /01_C++ 基礎入門/02 整型/Project2/04 字符型.cpp | 253c32acaee4a71f3931f200dc47307d24acaea4 | [] | no_license | XinTWK/CPP-prac | d13f980c45a81fd76d4126563501230146731906 | 52b5e7138c47b071536cd8d88054aa2e55d7fac0 | refs/heads/main | 2023-06-23T16:43:52.333444 | 2021-07-17T06:18:11 | 2021-07-17T06:18:11 | 383,211,963 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 275 | cpp | 04 字符型.cpp | #include <iostream>
using namespace std;
int main4() {
char ch = 'A';
cout << ch << endl;
cout << "char字符形變量所佔內存: " << sizeof(char) << endl;
//字元變數對應ASCII編碼
//a-97
//A-65
cout << (int)ch << endl;
system("pause");
return 0;
} |
d04afbaf709b40de92d216b3dee8fd4b71d1d799 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /library/cpp/threading/future/wait/wait-inl.h | 2753d5446cc2b913806fe59d5da2fef54a38fa50 | [
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | C++ | false | false | 1,155 | h | wait-inl.h | #pragma once
#if !defined(INCLUDE_FUTURE_INL_H)
#error "you should never include wait-inl.h directly"
#endif // INCLUDE_FUTURE_INL_H
namespace NThreading {
namespace NImpl {
template <typename TContainer>
TVector<TFuture<void>> ToVoidFutures(const TContainer& futures) {
TVector<TFuture... |
87170efc5a16fa17b835ff0160f7a87c631b1579 | 4bebd8afd27db2237ca3a0d276ffd9100511ce3d | /源代码/seetaface/qdlglogin.h | e1905bc040df0df257c80dfacf7884f8176e5fa1 | [] | no_license | qaz734913414/Shopping-mall-payment-system | ec8a000e6f4c54b71b7a573783474916b41e8d33 | d4bc31efe35435e2ff7117734547fd772cf67cf9 | refs/heads/master | 2022-11-16T08:47:20.458264 | 2020-07-16T11:33:19 | 2020-07-16T11:33:19 | 291,867,879 | 2 | 0 | null | 2020-09-01T01:47:44 | 2020-09-01T01:47:43 | null | UTF-8 | C++ | false | false | 504 | h | qdlglogin.h | #ifndef QDLGLOGIN_H
#define QDLGLOGIN_H
#include <QDialog>
#include <QMessageBox>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QDebug>
#include "g.h"
namespace Ui {
class QDlgLogin;
}
class QDlgLogin : public QDialog
{
Q_OBJECT
private:
int m_tryCount = 0;//试错次数
public:
explicit QDlgLogin(... |
c3d33248520202e7f0aad12a6f676701d92d3ca2 | 2868b9c83758c746233305cb6874d8bdd5d3dc05 | /week6/main.cpp | daa47eed844c99b6a3aaaad746c407a795c51115 | [] | no_license | schmcory/CS161 | b5671fe169ba71d4c8716da276479a819592a455 | bd8aba7b5aecfc24b0286a032331d35b70bc33f7 | refs/heads/master | 2020-07-05T23:02:28.825182 | 2019-08-18T16:00:37 | 2019-08-18T16:00:37 | 202,810,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cpp | main.cpp | #include "player.hpp"
#include "team.hpp"
#include <iostream>
int main() {
Player p1("Charlotte", 24, 10, 7);
Player p2("Emily", 21, 13, 9);
Player p3("Anne", 20, 10, 8);
Player p4("Jane", 19, 10, 10);
Player p5("Mary", 18, 11, 8);
p1.setRebounds(9);
p2.setRebounds(5);
p3.setRebounds(14);
p4.setReboun... |
29b9b31a94a0eac6741cf9a5cc9bb981920bac75 | b8d438bea9a3dd601ca0fd4b3e3d893f8926201d | /C_C++/Samsung/StackQueue/Bai1.cpp | caa676611b734774fde0221a07876bbb36a56f10 | [] | no_license | lng8212/DSA | dfa43e6ab3cd4f4b81f16dd52820dcaaa3ce410c | affd23596e19cc1595b3a8f339163621e9ceb3b1 | refs/heads/main | 2023-06-16T09:52:35.363218 | 2021-07-17T08:44:26 | 2021-07-17T08:44:26 | 386,876,462 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | cpp | Bai1.cpp | #include<bits/stdc++.h>
using namespace std;
int main (){
int T;
cin >>T;
while (T--){
string a;
cin >>a;
stack <char> check ;
for (int i=0;i<a.size();i++){
if (a[i]=='(') check.push(a[i]);
if (a[i]==')'){
if (check.size()!=0 && check.... |
f95143518d01c978b8526520e2ee4f9b77807c2b | 81c66c9c0b78f8e9c698dcbb8507ec2922efc8b7 | /src/tysh/TyTcl.cc | 8ab0d956d32ae6df203cc789f17d09a04e61df13 | [
"MIT-Modern-Variant"
] | permissive | Argonnite/ptolemy | 3394f95d3f58e0170995f926bd69052e6e8909f2 | 581de3a48a9b4229ee8c1948afbf66640568e1e6 | refs/heads/master | 2021-01-13T00:53:43.646959 | 2015-10-21T20:49:36 | 2015-10-21T20:49:36 | 44,703,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,455 | cc | TyTcl.cc | /**************************************************************************
Version identification:
@(#)TyTcl.cc 1.5 08/24/98
Programmer: Edward A. Lee (based on code by Alan Kamas and Joe Buck)
This file implements in a class C++ extensions to Tcl used
in the Tycho system. The constructor r... |
e2f76e5f1817e0cc1eb93051f9b41e4035bb079e | db6f3e6486ad8367c62163a4f124da185a64ab5d | /include/retdec/llvmir2hll/graphs/cfg/cfg_writer.h | 46442b561e31934130f27a94589fd494b3aa577a | [
"MIT",
"Zlib",
"JSON",
"LicenseRef-scancode-unknown-license-reference",
"MPL-2.0",
"BSD-3-Clause",
"GPL-2.0-only",
"NCSA",
"WTFPL",
"BSL-1.0",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | avast/retdec | c199854e06454a0e41f5af046ba6f5b9bfaaa4b4 | b9791c884ad8f5b1c1c7f85c88301316010bc6f2 | refs/heads/master | 2023-08-31T16:03:49.626430 | 2023-08-07T08:15:07 | 2023-08-14T14:09:09 | 113,967,646 | 3,111 | 483 | MIT | 2023-08-17T05:02:35 | 2017-12-12T09:04:24 | C++ | UTF-8 | C++ | false | false | 1,535 | h | cfg_writer.h | /**
* @file include/retdec/llvmir2hll/graphs/cfg/cfg_writer.h
* @brief A base class of all control-flow graph (CFG) writers.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_WRITER_H
#define RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_WRITER_H
#include <map>
#inclu... |
44266ce130e10bdeab058a02119f823741fe4c0d | 5ecc22627a3b94bcd3d61d529525791b3433c101 | /Numbers and Series/Patterns/Pattern 2.0/invertedpattern.cpp | 3d83d5bf2eded9b3d441e33b0204a8b5da19422a | [] | no_license | bashu22tiwari/Apna-College | c4ef6b41e25024b9108dfd39c71015131899aab2 | 82a5018b9c2f27770b08b68cdb896338c47959f2 | refs/heads/main | 2023-08-03T07:19:59.686927 | 2021-09-23T06:40:49 | 2021-09-23T06:40:49 | 328,662,653 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | invertedpattern.cpp | // In this we are going to make a inverted pattern suing the numbers
#include<iostream>
using namespace std;
int main()
{
int n;
cout << "Enter n\n" ;
cin >> n ;
int a;
for (int i = 1; i <= n; i++)
{
a=0;
for (int j=1 ; j <= n ; j++)
{
if (i+j <= n+1)
... |
94b8f124e27df040a3b813c9d62555f03f3966c6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2749486_0/C++/Franklinquestionmark/b.cpp | 8a62610196f5df97ce2f6d8d8a17b0b24eff253f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,586 | cpp | b.cpp | #include<cmath>
#include<cstdlib>
#include<cstring>
#include<cstdio>
#include<limits>
#include<iomanip>
#include<algorithm>
#include<functional>
#include<iostream>
#include<fstream>
#include<sstream>
#include<vector>
#include<array>
#include<string>
#include<map>
using namespace std;
//debuggery
// #... |
b9e941a0df9877e2b7bd418e1f6d1a27f10d10e1 | 62696604d9b9768a6b23b0ef0cf240e6f1574b64 | /tetromino.cpp | 1897fd40a29f2c2fc5b4631309f782aea031028a | [] | no_license | leon0128/Tetris_v3 | 2a8fe899ad5e02a2823a19ea654130b7f07b3e6d | f50b278d2755f62fa2c280cdfbbb8dd2a15c7c0e | refs/heads/master | 2023-07-18T05:49:10.108975 | 2021-09-03T23:00:48 | 2021-09-03T23:00:48 | 192,396,289 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,041 | cpp | tetromino.cpp | #include "tetromino.hpp"
#include "game_board.hpp"
Tetromino::Tetromino(Game* game,
int order,
GameBoard* gameBoard,
EType type):
Actor(game, order),
mGameBoard(gameBoard),
mType(type),
mDownFrame(0),
mMoveFrame(0),
mIsQuickDrop(f... |
0cc3bb98a84edb7f789e33ceb4444925ffee1a6a | 88e11e9e124fc6c74aa78aaa6ff49d60ed25b2cd | /Algorithms/n-th-tribonacci-number.cpp | 47c000b1c0353f458c5a305e43ec2dbdfd950618 | [] | no_license | shuvokr/LeetCode_Solution | daa4d8f6d3911feaf112e66ee9e84ad5adf9a752 | d57e6b131f139704c9441250c3e1f3d85fbc76e0 | refs/heads/master | 2021-01-12T09:53:17.672455 | 2019-10-18T19:42:19 | 2019-10-18T19:42:19 | 76,286,340 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | n-th-tribonacci-number.cpp | // Link : https://leetcode.com/problems/n-th-tribonacci-number
class Solution {
public:
int tribonacci(int n) {
if(n == 0) return 0;
if(n == 1 || n == 2) return 1;
int res = 2, a = 1, b = 1, c = 2;
for(int i = 3; i < n; i++) {
res = a + b + c;
a = b; b = c; c... |
05abe22e483f1fcb1c3c34737291d5b50a545655 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DataFormats/Common/interface/CloningPtr.h | fc12a5d9c379e0179adae1cd01db5a76d4d833cd | [
"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 | 1,536 | h | CloningPtr.h | #ifndef DataFormats_Common_CloningPtr_h
#define DataFormats_Common_CloningPtr_h
// -*- C++ -*-
//
// Package: Common
// Class : CloningPtr
//
/**\class CloningPtr CloningPtr.h DataFormats/Common/interface/CloningPtr.h
Description: A smart pointer that owns its pointer and clones it when necessary
Usage:
... |
52c940a4f75814aa22fea6ceecd4ee5cdd88b295 | 0a5645154953b0a09d3f78753a1711aaa76928ff | /sampleapp/qt/qtnavigator_console_plugin/src/placemanager.cpp | 675694bc5e451712969a1ba76f0ceb15698ffe00 | [] | no_license | GENIVI/navigation-next | 3a6f26063350ac8862b4d0e2e9d3522f6f249328 | cb8f7ec5ec4c78ef57aa573315b75960b2a5dd36 | refs/heads/master | 2023-08-04T17:44:45.239062 | 2023-07-25T19:22:19 | 2023-07-25T19:22:19 | 116,230,587 | 17 | 11 | null | 2018-05-18T20:00:38 | 2018-01-04T07:43:22 | C++ | UTF-8 | C++ | false | false | 19,164 | cpp | placemanager.cpp | /*
Copyright (c) 2018, TeleCommunication Systems, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
562b3b92e56a421790d2710da32e37d79de9d224 | b83aaa752f3dd6a4c3cf04cb473003c08366f16a | /Raspberry-Pi/quiz3.cpp | 5dd5e70b744dd435b571881b851d09b7e7fe0d71 | [] | no_license | Hyeongwon/IoT_Device_Dev | e09c40b2b641af9d9b09e28d668b0f578ef3d61b | a0d4172c3a81bd9eebffed64c80c5aeeb644edaf | refs/heads/master | 2020-12-03T00:42:52.425750 | 2017-09-07T08:37:47 | 2017-09-07T08:37:47 | 96,067,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,552 | cpp | quiz3.cpp | #if 0
#include <stdio.h>
#include <string.h>
void callee(const char arr[], const char** reply) { // 1. 리턴타입을 완성하여 동작하게 합니다.
static const char arr_reply[] = "Hello! caller, I'm fine";
printf("%s\n", arr);
*reply = arr_reply;
}
int main() { // caller
const char arr[] = "Hello... |
56585a974ca5eea70d11c7ad08467d1d01fbc1ac | b39b0652150a981c9e08d63b78a5b8d57197601e | /doom_py/src/vizdoom/src/g_strife/a_inquisitor.cpp | b93933422f99b399b10154d51905dfffb846b31b | [
"MIT"
] | permissive | jaekyeom/doom-py | 476026afd7dad6ecd47cf2633c745e3b09fa5c9c | a7d08a0f2e92b0ba4be538e182791be4c5a11a1b | refs/heads/master | 2020-03-06T18:52:38.651857 | 2018-04-05T14:28:14 | 2018-04-05T14:28:14 | 127,015,715 | 1 | 0 | MIT | 2018-03-27T16:29:10 | 2018-03-27T16:29:10 | null | UTF-8 | C++ | false | false | 3,036 | cpp | a_inquisitor.cpp | /*
#include "actor.h"
#include "m_random.h"
#include "a_action.h"
#include "p_local.h"
#include "p_enemy.h"
#include "s_sound.h"
#include "thingdef/thingdef.h"
*/
static FRandom pr_inq ("Inquisitor");
DEFINE_ACTION_FUNCTION(AActor, A_InquisitorWalk)
{
S_Sound (self, CHAN_BODY, "inquisitor/walk", 1, ATT... |
cd03929a241c38597b5b6d58020a43749eb9bf57 | 02d70c967416f60447356b4657903bed939c8cf2 | /Pila.cpp | 417e35a6f71570ddc6a3c1f93b190231394a9725 | [] | no_license | juanmartinnn/tarealistas_pilas | f21775871a6f9153fd0618ebbbeedf2c883c7fa7 | 67f1ae412b0d2751b4e70263c61ded0ffadaad1d | refs/heads/master | 2021-01-10T09:28:37.691101 | 2015-11-26T07:35:57 | 2015-11-26T07:35:57 | 46,911,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | Pila.cpp | #include<iostream>
#include"Pila.h"
using namespace std;
int main(){
Pila pila;
int x;
int op;
do
{
menu(); cin>> op;
switch(op)
{
case 1: cout<< "\n\t INGRESE NUMERO : "; cin>> x;
pila.Apilar(x);
cout<<"\n\n\t\tNumero ... |
61e413691254631fb4fc38c28f83cb6df57b3edc | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir22441/dir28114/dir28512/file28530.cpp | 36172b292e3e2d661da045b6af62be8e21f43a48 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file28530.cpp | #ifndef file28530
#error "macro file28530 must be defined"
#endif
static const char* file28530String = "file28530"; |
3b52550b99db4ae1b02a896322268ca38c087a9b | d77775087bcc0c0ea68bf02550486b7c807a95f1 | /SystemExplorer/SelectColumnsDlg.h | 98dfc40db5ced86686f6c3554529fa53d1c13f19 | [
"MIT"
] | permissive | zodiacon/SystemExplorer | 7dcbd08e95a1f64c81b9fc7faadc2866b271dd73 | f5d51f63581807dbd2a8957bc4bc9dae4aa001cc | refs/heads/master | 2023-06-21T20:03:41.393103 | 2023-06-10T20:44:16 | 2023-06-10T20:44:16 | 204,397,104 | 593 | 113 | MIT | 2021-08-28T09:48:59 | 2019-08-26T04:41:32 | C | UTF-8 | C++ | false | false | 1,999 | h | SelectColumnsDlg.h | #pragma once
#include "DialogHelper.h"
#include "VirtualListView.h"
#include "resource.h"
#include "ColumnManager.h"
class CSelectColumnsDlg :
public CDialogImpl<CSelectColumnsDlg>,
public CVirtualListView <CSelectColumnsDlg> {
public:
enum { IDD = IDD_COLUMNS };
CSelectColumnsDlg(ColumnManager* cm);
CString ... |
bb231c41c079b2f6bcd16e71d80d283688309907 | 2c7cce3f798a3d0ae5348853f4c8de8245f407cd | /Old/esp8266-rc-car-controller-master/esp8266-rc-car/esp8266-rc-car.ino | c88588766479a78dcdf100a54b6ad8247991e4cf | [
"MIT"
] | permissive | abhinavsreesan/Tanks | 899211627d360a929f8b4754e832ca9eda1b0ec2 | df7bbf7d915e1ba77d2a189057a50f44bd825218 | refs/heads/master | 2021-09-07T12:00:39.153682 | 2018-02-22T14:54:01 | 2018-02-22T14:54:01 | 122,491,012 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,976 | ino | esp8266-rc-car.ino | #include <WiFiUdp.h>
#include <ESP8266WiFi.h>
#include<Servo.h>
#define m1 6 //Motor Driver Connection
#define m2 5 //Motor Driver Connection
#define ser 4 //Servo Motor Connection
Servo myservo;
const char* ssid = "Slyphen"; //Enter your wifi network SSID
const char* password = "12345678*"; //Enter your wifi netw... |
650f8ddf1d78e7953319e10d4f6c553c5a3831c0 | f90de00314d0a7fda3a9a2a9577a0e6a1469d88b | /cpp_primer/11/11_12.cpp | b4da88263808ca30b177e2ba34a3a1c131422325 | [] | no_license | 1iuyzh/exercise | fdb4c6c34c47e512c5474c4b90c7533f81c1177f | 95f0b9e91dd8fb7fd9c51566fd47eff4f033d1be | refs/heads/master | 2020-05-20T12:59:51.518359 | 2018-10-25T03:36:11 | 2018-10-25T03:36:11 | 80,420,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | 11_12.cpp | #include<iostream>
#include<string>
#include<vector>
#include<utility>
using std::cin; using std::cout; using std::endl;
using std::string;
using std::vector;
using std::pair;
int main() {
vector<string> svec = { "the", "but", "and", "or", "an" };
vector<int> ivec = { 0, 1, 2, 3, 4 };
vector<pair<string, ... |
8aef931e191a2c01b73d8df47cded4a1a06420b5 | f71bf901621d075d652a20323ec41fb5e46fbfa3 | /example/mirror/repeat_message_args.cpp | 084a4d81557e35871b70f6e825f3940ac41db2a1 | [
"BSL-1.0",
"GPL-1.0-or-later",
"GPL-3.0-only"
] | permissive | matus-chochlik/mirror | c801a5037d51ebb9f267df9941da10ac8175348a | a04ae0fd2c06d953f895f3396583b3d644e5c5e7 | refs/heads/develop | 2022-07-23T04:30:50.495521 | 2022-07-13T15:35:38 | 2022-07-13T15:35:38 | 14,149,419 | 110 | 13 | BSL-1.0 | 2021-12-22T06:00:19 | 2013-11-05T18:01:00 | C++ | UTF-8 | C++ | false | false | 1,696 | cpp | repeat_message_args.cpp | /// @example mirror/repeat_message_args.cpp
///
/// Copyright Matus Chochlik.
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE_1_0.txt or copy at
/// http://www.boost.org/LICENSE_1_0.txt
///
#include <mirror/program_args.hpp>
#include <mirror/sequence.hpp>
#include <chro... |
43d342b9a7a54141bddee38f812c93547f31fff9 | da71886e4daf3336b4f495ecd25933c7ab2ebf06 | /205_4/Mul.cpp | af3c68da8488547e18a601a7a0b55ef0dfc896a4 | [] | no_license | Ranch13/Cpp | c00aa282f39cd834dc68646bdb01cc1ee0e66497 | b7b8bdbd5e2459cb933dfe1f7351cfd3c0c5f4a5 | refs/heads/master | 2016-08-12T14:08:41.805495 | 2016-03-08T01:44:07 | 2016-03-08T01:44:07 | 53,273,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | cpp | Mul.cpp | #include "Mul.h"
bool Mul::supportsOpearion(string operation)
{
return !(operation.compare("Mul") && operation.compare("*"));
}
double Mul::calcResult(double currVal, vector<string> parameters)
{
if (parameters.size() != numberOfParameters)
throw "Not Enoough Params!";
return currVal * stod(parameters[0]);
}
M... |
8a8c5d54840e6e397dd26f333c522766cae8a404 | 868e8628acaa0bf276134f9cc3ced379679eab10 | /firstCrude2D/we123/h10_refined2/0.003/U | 152234fc093762f75a4e54ffa7c92d59a96a5a6a | [] | no_license | stigmn/droplet | 921af6851f88c0acf8b1cd84f5e2903f1d0cb87a | 1649ceb0a9ce5abb243fb77569211558c2f0dc96 | refs/heads/master | 2020-04-04T20:08:37.912624 | 2015-11-25T11:20:32 | 2015-11-25T11:20:32 | 45,102,907 | 0 | 0 | null | 2015-10-28T09:46:30 | 2015-10-28T09:46:29 | null | UTF-8 | C++ | false | false | 1,451,644 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
6c12d1ee51783cdc9fa39dec899b215c190cd727 | 202a04b92b7eed81377401f428a154ab08421ff3 | /src/codegen/kaleidoscopejit.cpp | f55ce162e9ff6791cb27f869bc0d839f61dffa78 | [] | no_license | mkmkme/tupac | d910aa3850901f8cccc039112027cacdccf58abe | 59e6839b391bb7cf45a78e048b8fb042f3d9ff4d | refs/heads/master | 2022-06-07T12:48:41.843977 | 2016-07-09T13:08:04 | 2016-07-09T13:08:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,753 | cpp | kaleidoscopejit.cpp | #include "kaleidoscopejit.hpp"
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/JITSymbolFlags.h>
#include <llvm/ExecutionEngine/Orc/CompileUtils.h>
#include <llvm/ExecutionEngine/Orc/LambdaResolver.h>
#include <llvm/ExecutionEngine/RTDyldMemoryManager.h>
#include <llvm/IR/Mangler.h>
#i... |
200f6f492b0eee9c2d75535da7ea0f74b0f7ecb5 | f769e4df3e80746adadf5ef3c843dda5212809cf | /chuck-norris-joke-part2/HoundCpp/HoundJSON/FlightStatusLookupParameterJSON.cpp | c8794a4499fd989ac12d264f4db3ec6e0afdad5c | [] | no_license | jiintonic/weekend-task | 0758296644780e172a07b2308ed91d7e5a51b77d | 07ec0ba5a0f809d424d134d33e0635376d290c69 | refs/heads/master | 2020-03-30T09:07:29.518881 | 2018-10-03T15:13:58 | 2018-10-03T15:13:58 | 151,061,148 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,635 | cpp | FlightStatusLookupParameterJSON.cpp | /* file "FlightStatusLookupParameterJSON.cpp" */
/* Generated automatically by Classy JSON. */
#pragma implementation "FlightStatusLookupParameterJSON.h"
#include "FlightStatusLookupParameterJSON.h"
FlightStatusLookupParameterJSON::TypeValue FlightStatusLookupParameterJSON::stringToValue(const char *chars)
{
... |
888121cd555584e4bb5273edc8c8ff8da56236b2 | fb6484a6641c3731dcb298016218d7e8ea06a0d1 | /Application/congratulation.h | b246ef461912be35c6d7156ccaa48d838c8f49c4 | [] | no_license | shiyinw/red7_gui | 42225bea2f9bbd7b4dbd491f120829ad3c7f514c | 6c53107a3357cc05d438000d65b465085575f027 | refs/heads/master | 2021-06-19T09:51:36.201864 | 2017-07-16T08:55:01 | 2017-07-16T08:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | h | congratulation.h | #ifndef CONGRATULATION_H
#define CONGRATULATION_H
#include <QDialog>
namespace Ui {
class congratulation;
}
class congratulation : public QDialog
{
Q_OBJECT
public:
explicit congratulation(QWidget *parent = 0);
~congratulation();
public:
Ui::congratulation *ui;
};
#endif // CONGRATULATION_H
|
90e1cae381409286d2e905b52435d82951b31b08 | 251aaf143dab1a24322cd47416e2a14de76bf773 | /STM32F469_Controller/Source/TouchGFX/TouchGFX/gui/include/gui/common/BMPFileLoader.h | b8472a482b8c7a86bd408125253af49e810040a4 | [
"Zlib"
] | permissive | ftkalcevic/DCC | fddc7de6cc6c2c4b758451c444f7cc0131897224 | b68aebab35423f21e0a6a337c11d967f6f8912a2 | refs/heads/master | 2022-12-10T12:24:52.928864 | 2020-07-30T08:16:46 | 2020-07-30T08:16:46 | 121,176,875 | 0 | 0 | null | 2022-12-08T10:16:01 | 2018-02-11T23:12:08 | C | UTF-8 | C++ | false | false | 466 | h | BMPFileLoader.h | #include <touchgfx/hal/Types.hpp>
#include <touchgfx/Bitmap.hpp>
#ifndef SIMULATOR
#include "fatfs.h"
#endif
using namespace touchgfx;
class BMPFileLoader
{
public:
static void getBMP24Dimensions(FIL *fileHandle, uint16_t& width, uint16_t& height, uint16_t &depth);
static void readBMP24File(Bitmap bitmap, FIL *f... |
d37ff67c7bbd2acdb2d698ee442d019705ce967c | 01fe78b4252c20f43e3838813d830d8ddff2ba4f | /ListaSimples/SNode.h | 5f845d786700c2a63170c854b5963c53ae0803fc | [] | no_license | GabrielCzar/Listas | 1d4171f5cf28b13d660144ed143297a105d4665b | 017ca5184254925b39b6fc8220725ac6e6182574 | refs/heads/master | 2021-01-16T20:37:19.247112 | 2016-08-07T21:18:33 | 2016-08-07T21:18:33 | 65,151,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | h | SNode.h | #ifndef SNODE_H
#define SNODE_H
template<class T> //tipo generico
struct SNode{
T value;
SNode * next; //Ponteiro pro prox nó
SNode(T value = 0, SNode * next = nullptr){
this->value = value;
this->next = next;
}
};
#endif // SNODE_H
|
3baaaf48ebfa9806ed075ed44a668807eb1a577e | 5829edf0fadec5b79878f87db05b6222806106d6 | /src/peripherals/sensor/Sensor.cpp | a50cc024735c208cd22d9cfb03cfbb5eee843b41 | [] | no_license | Hadjubuntu/breeze-bb | 3636aa334b630bfa63be81f88e08036366ce6cca | b4a271baad0ccf76c527662cb572dab741bf7965 | refs/heads/master | 2021-04-18T23:14:01.022777 | 2017-04-14T07:06:50 | 2017-04-14T07:06:50 | 56,091,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100 | cpp | Sensor.cpp | /*
* Sensor.cpp
*
* Created on: Nov 10, 2015
* Author: adrien-i3
*/
#include "Sensor.h"
|
37c97b7926772956afa309fd9fc8b894414ef539 | 3b37295cd108961c512db0d54cbeaf32e30c81c1 | /physics3d.cpp | 969fb6ef668a78247370eb5d01ecd494baef1748 | [] | no_license | Nuos/renderer | b85ac6ebf0eec7fe6206af226644f784cd398c31 | a8e0ba889c53cd4c11496230e2f8cc22e7f69093 | refs/heads/master | 2021-01-21T16:38:32.118725 | 2014-01-17T00:31:55 | 2014-01-17T00:31:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,234 | cpp | physics3d.cpp | /*
* Adam Bysice - 0753709
* File: mathlib2d.cpp
* --------------------
* This file contains the implementation
* for the mathlib2D classes.
*/
#include <math.h>
#include "mathlib3d.h"
//using references from Thomas Smid's implementation of collision in c++
void collision3D(point3D p1, point3D p2, vec3D& v1, ve... |
449f763194e3568cd1a0d72c3bc8092416376b8d | ad8271700e52ec93bc62a6fa3ee52ef080e320f2 | /CatalystRichPresence/CatalystSDK/PersistenceData.h | 0f03677f5dc77cd0e675ee26548299bc8e09620b | [] | no_license | RubberDuckShobe/CatalystRPC | 6b0cd4482d514a8be3b992b55ec143273b3ada7b | 92d0e2723e600d03c33f9f027c3980d0f087c6bf | refs/heads/master | 2022-07-29T20:50:50.640653 | 2021-03-25T06:21:35 | 2021-03-25T06:21:35 | 351,097,185 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | h | PersistenceData.h | //
// Generated with FrostbiteGen by Chod
// File: SDK\PersistenceData.h
// Created: Wed Mar 10 19:03:13 2021
//
#ifndef FBGEN_PersistenceData_H
#define FBGEN_PersistenceData_H
#include "PersistenceStatGroup.h"
#include "PersistenceRetentionPolicy.h"
#include "Array.h"
#include "AbstractPersistenceData.h"
class Pers... |
b098d5b406b910d210ffcc795cc85b86d6663854 | 5d34d3cb173fa5e6c7d825b7066660fe6a95d133 | /bessel/hankel.h | 50398e2a353b6568d75010960ef2377d578136fd | [] | no_license | stefano-camarda/DYTurbo | 58ebaaff75ea07fb87c60d46066abad7e05b12ee | 594373ab9705c55988fb8b305c8bd67ea3dbf843 | refs/heads/master | 2021-06-26T02:43:24.590922 | 2021-03-09T00:42:37 | 2021-03-09T00:42:37 | 208,061,119 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | h | hankel.h | #ifndef hankel_h
#define hankel_h
namespace hankel
{
extern int nu;
extern int n;
extern double h;
extern double *zeros;
extern double *w;
extern double *x;
extern double *j;
extern double *dp;
extern double *series;
extern int x_power;
extern int k_power;
extern void init(int Nu, int N, d... |
74ea6289a29def39a31a88b0958b95e3bd56dfdd | 49c7cfb236e0623579fcbd736e2b04fa7aa13b5c | /classify.cc | 52e6236228fd28f79cb924452b998d46652af9aa | [] | no_license | dmtrkzkv/vision | 7d14aab2f04c0192fed24f7a880c5489e37014e3 | 0d4d6ac7850acb5b80dbe4393e78893f13f9bebd | refs/heads/master | 2021-01-10T13:00:53.268604 | 2015-09-24T16:28:38 | 2015-09-24T16:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,586 | cc | classify.cc | /*
* classify.cc
*
* Created on: Nov 10, 2014
* Author: ppsadm01
*/
using namespace std;
#include <card.h>
#include <vector>
#include <imageio.h>
#include <classify.h>
#include <dataCard.h>
#include <iterator>
#include <iostream>
#include <dirent.h>
#include <string.h>
classify::classify(vector <dataCard> d... |
dd076ed8421d3dae842b23252a53548dd56abdb9 | b985d734c6499324d4ba256d535d1365a94b4d14 | /wc_rt1/conf.h | dd8e5f9ef467a44daf1e011224d478ed75d206b4 | [] | no_license | pilnikov/WeatherStation | c5c04a92e7b9e3998b4d0dd342a4bf1b98471184 | c17e0185621de8db92877d909088c27dee04dfb0 | refs/heads/master | 2023-02-24T12:44:58.210478 | 2023-02-22T08:13:18 | 2023-02-22T08:13:18 | 141,115,107 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,495 | h | conf.h | /*
********************************************************** Sensor
struct snr_data_t
{
int8_t t1 = 99; //Температура. Канал 1
uint8_t h1 = 0; //Влажность. Канал 1
int8_t t2 = 99; //Температура. Канал 2
uint8_t h2 = 0; //Влажность. Канал 2
int8_t t3 = 99; //Температура. Канал 3
uint8_... |
b0f0231a0535fc127ffa7f416f3265c3096cabeb | 0a6f6adca840752fba35eb647b362fed93bc8a85 | /include/se2lam/Track.h | 9e28140146a70f73547ad7ecc6bc4c204548d812 | [
"MIT"
] | permissive | FaiScofield/se2lam | f87cddaeb541b079a86a46bb13bbeca845888d9f | 8a4ed0a4df666f53f22679d3042eb7b4c02068d5 | refs/heads/master | 2021-06-20T01:22:34.435862 | 2021-06-12T02:36:37 | 2021-06-12T02:36:37 | 195,356,644 | 0 | 0 | MIT | 2019-10-28T08:47:18 | 2019-07-05T07:03:31 | C++ | UTF-8 | C++ | false | false | 2,868 | h | Track.h | /**
* This file is part of se2lam
*
* Copyright (C) Fan ZHENG (github.com/izhengfan), Hengbo TANG (github.com/hbtang)
*/
#ifndef TRACK_H
#define TRACK_H
#include "Config.h"
#include "Frame.h"
#include "ORBmatcher.h"
#include "Sensors.h"
#include <g2o/types/sba/types_six_dof_expmap.h>
namespace se2lam
{
class Ke... |
7b556690cd100a07771241b07665cbd3a4fb5622 | b335c0baf2396ecc58689dbc72b0bfec9aaef5ec | /include/color_stream_window.h | 797b038cc9d7ec6e44f2cda36f9723c84feef71d | [
"MIT"
] | permissive | hyu1834/Intel-RealSense-R200-Point-Cloud-Capture | 5340761984097ec73197f4be0486e53d306e3904 | 166a635a601a34c5b7d396f1263cce0ac5fd7d93 | refs/heads/master | 2021-01-25T07:54:36.934010 | 2017-06-09T09:45:46 | 2017-06-09T09:45:46 | 93,681,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | h | color_stream_window.h | #ifndef COLORSTREAM_H
#define COLORSTREAM_H
/*
* Standard Libraries
*/
/*
* 3rd Party Libraries
*/
//QT
#include <QWidget>
#include <QImage>
//OpenCV
#include <opencv2/opencv.hpp>
#include <opencv2/highgui.hpp>
/*
* Local Libraries
*/
/*
ENUM
*/
/*
MACRO
*/
namespace Ui {
class colorStream;
}
class c... |
17a8b4b60224ba54425586c417d80038a00dd609 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/net/dhcp/dhcpprov/inc/lsfn.h | 9f03bd07b86427ef75c8d1fc6a3242b07b4f886a | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,170 | h | lsfn.h | /******************************************************************
LsFn.h -- Properties action functions declarations (GET/SET)
MODULE:
DhcpProv.dll
DESCRIPTION:
Contains the declaration of the CDHCP_Lease_Parameters class, modeling all
the datastructures used to retrieve the informa... |
f6afb23ea747a6fb4f5f107bd242ab5e71ae5835 | 975cbf5d389edfd4e3d824543737ba7c32f362ea | /EmerCert/OpenSslExecutable.cpp | afde9a357df3c17ace649b4039a4ae2818fc17aa | [
"BSD-2-Clause"
] | permissive | NESS-Network/EmerCert | b63c6d896b010136792d2a142aed026813ed3902 | 994d09d000ae22b8a9bc0af836b28888e8bd6f88 | refs/heads/master | 2023-01-28T16:07:44.125831 | 2020-11-26T13:36:50 | 2020-11-26T13:36:50 | 316,082,402 | 1 | 0 | BSD-2-Clause | 2020-11-26T06:44:47 | 2020-11-26T00:15:44 | null | UTF-8 | C++ | false | false | 9,107 | cpp | OpenSslExecutable.cpp | //OpenSslExecutable.cpp by Emercoin developers
#include "pch.h"
#include "OpenSslExecutable.h"
#include "Settings.h"
#include "CertLogger.h"
QString OpenSslExecutable::s_path;
OpenSslExecutable::OpenSslExecutable() {
setWorkingDirectory(Settings::certDir().absolutePath());
if(s_path.isEmpty())
s_path = defaultPat... |
ccefedb3717a69591166ce80610588639c3043f8 | 36da767242709b44289a27b7d98aeede7f679182 | /replication/meerkatir/replica.cc | 527f26b14fb317903401caa40c3d0e6125422789 | [] | no_license | aaasz/meerkat | 4cbaad4af5a2182d53b97d25125f920a4a0c0bf3 | 8ae519d51f79711be4845da2417d0137548ae02e | refs/heads/master | 2022-07-01T13:18:25.360744 | 2019-10-23T00:28:13 | 2019-10-23T00:28:13 | 261,566,394 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 8,601 | cc | replica.cc | // -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
/***********************************************************************
*
* replication/ir/replica.cc:
* IR Replica server
*
**********************************************************************/
#include "replication/meerkatir/replica.h"
#include ... |
20797c4ab6cdaa4f950db0c0920d086604999333 | 43b429b62c58a0baa7ed12d9c321154ffe78add8 | /hg/boj/11000/11054-longtest-bitonic-subsequence/src/dp.cpp | c3ccb4749a933ff442ed33eb2ae41e819e901ddc | [] | no_license | JinYoung-Shin/Algorithm-Challenge-2017 | 215d6f4aef75d412ec98eedcdfdf8d818c3fa038 | 6d8e7d02a7606e8b89c63a815aac9f113e4bb01c | refs/heads/master | 2021-01-18T11:25:59.272019 | 2019-04-07T03:27:47 | 2019-04-07T03:27:47 | 84,324,714 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | dp.cpp | #include <bits/stdc++.h>
using namespace std;
int dp1[1001]; // arr[i]를 마지막으로하는 앞에서부터 시작했을 때 가장 긴 증가하는 부분수열의 길이
int dp2[1001]; // arr[i]를 마지막으로하는 뒤에서부터 시작했을 때 가장 긴 증가하는 부분수열의 길이
int arr[1001];
int main() {
int n;
cin >> n;
for (int i=0; i < n; i++) {
cin >> arr[i];
dp1[i] = dp2[i] = 1;
... |
92649ecd160a22d81154ef432473bd4cdb2f7598 | 11372f47584ed7154697ac3b139bf298cdc10675 | /刷题比赛/ICPC/ICPC沈阳网络赛/K.cpp | f15aedff6f97441420abcfc789152d89ab979a41 | [] | no_license | strategist614/ACM-Code | b5d893103e4d2ea0134fbaeb0cbd18c0fec06d12 | d1e0f36dab47f649e2fade5e7ff23cfd0e8c8e56 | refs/heads/master | 2020-12-20T04:21:50.750182 | 2020-01-24T07:43:50 | 2020-01-24T07:45:08 | 235,958,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,626 | cpp | K.cpp | #include<bits/stdc++.h>
using namespace std;
int t;
int main()
{
cin >> t;
int tt = 0;
while(t--)
{
string str;
cin >> str;
int n = str.size();
printf("Case #%d: ",++tt);
if(n > 3)
{
cout<<317<<endl;
}
else
{
int ans = atoi(str.c_str());
if(ans >= 317)
{
cout<<... |
b87e015e6a299f6bd80ae966c0c27125f3d9e4b2 | 41781f63a3f8ae236406ba3a797f52344da000bf | /00_src/Corelib/Button.h | 3d63e0302812c720a889bc444bd8c03ca4e0d779 | [] | no_license | tonnac/Study_0 | 760cd9d5847d1c6a7c9b0fd73efbe7d94e3d6e03 | dfbaaa5697ad30254bf4684246d0e84131ee595c | refs/heads/master | 2020-03-25T04:58:55.017853 | 2019-01-22T06:00:16 | 2019-01-22T06:00:16 | 143,423,294 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | h | Button.h | #pragma once
#include "KObject.h"
#include "Input.h"
enum Btn_State
{
Btn_Normal,
Btn_Click,
Btn_Active,
Btn_Hover,
Btn_Count
};
class Button : public KObject
{
Bitmap* m_BtnColorBitmap[Btn_Count];
Bitmap* m_BtnMaskBitmap[Btn_Count];
Bitmap* m_BtnCurrent;
public:
bool Init () override;
bool ... |
e9da0acf3cffa5426be1fd09c220b0193235de02 | 9a94dd59935671152c954e5eb6a2acad274cf381 | /src/CCamera.cpp | f3e6817a1b736f5dda7b02d6f3eb18f12f5f83ab | [] | no_license | tomalbrc/visionray | 41ee3f2e8c910e3554cb53c4211e1cb993154fed | 30bbbb4078286863cc90916247906bd9737e1559 | refs/heads/master | 2020-04-23T17:35:36.746077 | 2019-02-18T18:41:46 | 2019-02-18T18:41:46 | 171,336,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | CCamera.cpp | //
// CCamera.cpp
// trace
//
// Created by Tom Albrecht on 18.12.18.
// Copyright © 2018 Tom Albrecht. All rights reserved.
//
#include "CCamera.h"
NS_VRAY_BEGIN
CCamera::CCamera(const Vec3d &position, const math::Vec4 &orientation)
{
_position = position;
_orientation = _orientation;
}
void CCamera::p... |
81003bef48c78e4290cf0ed46c4e651313e2a9a8 | cbe0396f8743ceb0a223d7be152dc472a421b618 | /IRDConnect/include/calendarUtil.h | b008021534831fce2d1904662a3a93d08b5d1990 | [] | no_license | jagadeeshgajula/Derivatives-Connect | ab47bf8237daa9b54aec3f88d9e6f30a27aacb33 | e0dc101aae11f930f90c06e0f062a6329b17e73a | refs/heads/master | 2020-04-15T11:33:12.321802 | 2019-01-09T04:25:37 | 2019-01-09T04:25:37 | 164,635,803 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 524 | h | calendarUtil.h | #ifndef CALENDAR_UTIL_H
#define CALENDAR_UTIL_H
#include "calendar.h"
#include <set>
#include <list>
using namespace std;
using namespace IRDConnect;
namespace IRDConnect {
class CalendarUtil {
public :
static Calendar * getCalendar ( const std::string & holidayCd ) ;
static... |
4ed00731dadd096c016b3f6dac12ff0987fe9d64 | 54e0ffd2fc7a58dd37966d9ac6ab57860e3bc1ac | /source/src/XJBrowser/AutoCallResult.cpp | 89bf36375524f731e2b7349f2f5aaddadaee6ada | [] | no_license | xjsh2017/vicente2018 | 4fef21671771ea55c96f617cf31cfedefca72495 | 414de9d7558c03a8666fc23d7dc080be738e21de | refs/heads/master | 2020-03-23T16:37:45.389992 | 2018-08-28T00:09:37 | 2018-08-28T00:09:37 | 141,820,732 | 2 | 1 | null | null | null | null | GB18030 | C++ | false | false | 81,008 | cpp | AutoCallResult.cpp | // AutoCallResult.cpp : implementation file
//
#include "stdafx.h"
#include "xjbrowser.h"
#include "AutoCallResult.h"
// #ifdef _DEBUG
// #define new DEBUG_NEW
// #undef THIS_FILE
// static char THIS_FILE[] = __FILE__;
// #endif
/** @brief 升降序作用位*/
int g_iResultViewAsc;
CString g_sRootDirP... |
d1cf2b000ad5b38df9152ba1a159d9ed595e5f57 | 8fe2d7853c375adecd4549de13988aa01c637c09 | /base/mygrid.h | 79dc7058029e8618708bb00a0efc1fb41f3810a3 | [] | no_license | borjabrisson/WxAF | 85a5bc6ccc8b440a8e9152a6ed795f705f81b5c0 | 73fe724ea8331bb8cd9aba17284f0a3d806f772b | refs/heads/master | 2020-05-19T12:45:50.960072 | 2014-01-18T15:56:37 | 2014-01-18T15:56:37 | 11,108,041 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,094 | h | mygrid.h | // hworld.cpp
// Version using dynamic event routing
// http://docs.wxwidgets.org/trunk/group__group__funcmacro__events.html
#ifndef MY_GRID_H_
#define MY_GRID_H_
#include <wx/wx.h>
#include <wx/grid.h>
#include <wx/string.h>
#include <wx/object.h>
#include <wx/string.h>
#include <wx/colour.h>
#include "../configur... |
c14ef14580fdedd0fdae8e0da0dd7479288414a7 | bc4af9166e9c4074338a58f5a9bced45a2c08720 | /rush01/srcs/CPUModule.cpp | bc5c5e109d3c7d0122720b14befc9f17e975adb0 | [] | no_license | abassibe/CPP | 75eeb5f82fefd2fe37d79cabe8a00ffbac9a6790 | a5fe1431052ee089f95a57c30857a837f879736f | refs/heads/master | 2020-05-04T20:50:27.611626 | 2019-04-08T13:34:20 | 2019-04-08T13:34:20 | 179,453,059 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,682 | cpp | CPUModule.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* CPUModule.cpp :+: :+: :+: ... |
04f0ddb139ddb3fdd6e931972aaee20bd0112eff | 7810b13f010d84cbe7f40586ecb3a5d60399b821 | /MyTestServer/ZoneManager.h | c035922cf17480c0bf9c76cd1531bbb4e8fc3aea | [] | no_license | chrak/MyTestServer | 091d9be4d0d9653abc3750ab2b5213b716afc983 | 189146e3b4d8aeefc93eae6efb14459e25cd3994 | refs/heads/master | 2022-05-02T13:45:21.738700 | 2022-04-11T06:35:26 | 2022-04-11T06:35:26 | 144,518,444 | 5 | 4 | null | null | null | null | UHC | C++ | false | false | 1,828 | h | ZoneManager.h | #pragma once
#include "Define.h"
#include "Singleton.h"
#include "ServerTask.h"
#include <map>
#include <vector>
class CServerTask;
class CServerBase;
class CActor;
class CZone;
///////////////////////////////////////////////////////////
// Zone 관리 클래스
///////////////////////////////////////////////////////////
class... |
2dd6be5820830e8429806904514b8334429e2196 | a384e6e5fbaf22520777ae4846dad3c00f792d3d | /August Challenge/PALINGAM/main.cpp | 46601afda09be0cb1f5b83bc5e88ca334cfd05cf | [] | no_license | Kingpin007/Codechef | 90fb377d3ceccf11b354edad53be00ef6af07380 | ca265441ace65d4466b938f7ad92ac587e2f610f | refs/heads/master | 2020-12-24T13:00:04.428399 | 2018-03-23T09:23:31 | 2018-03-23T09:23:31 | 66,718,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | cpp | main.cpp | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
ll minSalary[1000],offeredSalary[1000],maxJobOffers[1000],company[1000];;
string qual[1000];
int main()
{
ll n;
cin>>n;
for(int i=0;i<n;i++){
string a,b;
bool aWins = false;
cin>>a;
cin>>b;
int c... |
7bbd5c7e23db3fb313fed5cb357b71e9945ca2bd | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/multimedia/danim/src/daxctl/controls/mmctl/src/ochelp/dispiez.cpp | 9e6d51cabf520345f8824a6746af3c3066f27051 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 17,093 | cpp | dispiez.cpp | // dispiez.cpp
//
// Implements IDispatch helper functions.
//
// Important: This .cpp file assumes a zero-initializing global "new" operator.
//
// @doc MMCTL
//
#include "precomp.h"
#include "..\..\inc\ochelp.h"
#include "debug.h"
// Common code used by DispatchInvokeEZ and DispatchInvokeIDEZ to conver... |
3fbc271286e19c50107db0e26c511de166e2c280 | 8207fcff3741be2f255efd234917b1b79ff42cfa | /Beautifu art.cpp | 28bda561cabe1cc5837685ed932f925f1b4a0082 | [] | no_license | p39149845/600612164 | 164ca8b18a240c11232e251e1cdf98c2c53beb6e | e9ea577e4c6d7db2cb2368c22eb433638ac6b641 | refs/heads/master | 2021-05-12T09:50:59.905103 | 2018-01-13T10:05:21 | 2018-01-13T10:05:21 | 117,333,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | Beautifu art.cpp | #include<iostream>
using namespace std;
int main(){
cout<<"__________________ \n";
cout<<"?+-+ -+? \n";
cout<<"??? /?/ \n";
cout<<"???/?/ \n";
cout<<"?? /?/---+ \n";
cout<<"???????? \n";
cout<<"+----+-+-+ THIS IS BEAUTIFUL ART \n" ;
cout<<"??+--+???? \n";
cout<<"++??????++ \n";
cout<<"++????++ \n";
}
|
39deee97ef48d41c5d60cd6abee837e39eb53ac2 | d61bef1c247c2d454612f37055ef2555802f1ca2 | /138.cc | 11bfcac435b81b2512c1e2582e21a608825b618d | [] | no_license | li-chunyu/leetcode | 14abb171c70981445ec2c47aafc8940610227cc3 | b7156943519f13542986b5da0baabde6a3bb120c | refs/heads/master | 2021-07-23T11:46:59.921027 | 2021-05-28T05:02:28 | 2021-05-28T05:02:28 | 69,959,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cc | 138.cc | /*
// Definition for a Node.
class Node {
public:
int val;
Node* next;
Node* random;
Node() {}
Node(int _val, Node* _next, Node* _random) {
val = _val;
next = _next;
random = _random;
}
};
*/
class Solution {
public:
Node* copyRandomList(Node* head) {
if (!hea... |
9a9e2f5a883e96f38875e9906d2b7e156c687cc0 | 06db9f0fb62c3b7621c4ce5c9ea07fb8056afd68 | /include/bm_test_utils.h | a13c32a350f0930742574ac218b15c12bffe1bcb | [
"Apache-2.0"
] | permissive | apuaaChen/vectorSparse | 940b7b5dc1d561a30ea2417a24cb87212128757a | 4f73d4c6bce3061cbdb8593e6e6cf9ace65c02f2 | refs/heads/master | 2023-04-19T03:01:22.915757 | 2022-08-24T17:27:53 | 2022-08-24T17:27:53 | 351,565,020 | 15 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 8,256 | h | bm_test_utils.h | #ifndef BM_TEST_UTILS_H
#define BM_TEST_UTILS_H
#include <algorithm>
#include <cstring>
#include <random>
#include <stdio.h>
#include "cuda_fp16.h"
#include <assert.h>
#include <cublas_v2.h>
inline
cudaError_t checkCuda(cudaError_t result){
if (result != cudaSuccess){
fprintf(stderr, "CUDA Runtime Error: %... |
bbd4554688d9d81a1c456584d6c07055c2345644 | 2b5b6402c1367b7aab8a77ede5295044a0decf73 | /projects/node-pylon/src/genicam/gcstring.cc | 71cb74e0f59014ced6c6e022b03df3e42b6a5dad | [
"MIT"
] | permissive | bjoernrennfanz/node-pylon | 7d951ceb227ade4d5885d5e8a5ae06c4963a21e7 | 8c20349d112de2674817a07b3ddbe2e5c481a676 | refs/heads/master | 2021-01-21T19:40:34.263058 | 2018-06-05T18:11:29 | 2018-06-05T18:11:29 | 92,153,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,119 | cc | gcstring.cc | // MIT License
//
// Copyright (c) 2017 - 2018 Björn Rennfanz <bjoern@fam-rennfanz.de>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitatio... |
0931d91b1e45fa5c009e6d9901f12092352e7b11 | 29b91fafb820e5513c7284072dca5bd77c189b22 | /bst_preorder_represents_bst.cpp | b523b3d6c1a34b7b39a916fcaa93388196ec83e5 | [] | no_license | rishirajsurti/gfg | c1d542ebb59790d529be7be2a107a67f4fae2b35 | f7205bec70c39e085bf8a45b527f7464c8bcef8e | refs/heads/master | 2021-03-27T19:13:06.466708 | 2016-11-15T11:43:31 | 2016-11-15T11:43:31 | 61,434,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | bst_preorder_represents_bst.cpp | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
vi a;
bool solve(){
stack<int> s;
int root = INT_MIN;
for(int i = 0; i < a.size(); i++){
if(a[i] < root) return false;
while(!s.empty() && a[i] > s.top()){
root = s.top(); s.pop();
}
s.push(a[i]);
}
return true;
}
int main(){
int t;... |
45377e2d2ec3996ff2380656001fdf0c37b352e8 | 5ca54a530989235266fa7aebd18705cdea8080f6 | /Creational/FactoryMethod/FactoryMehtod/C++/Factory.h | 493b18b0a66ab4d6aa213c32ae5fa61585942e95 | [] | no_license | Farbowd/Practical-Design-Patterns | 87710df0d7f6dac4a3774a58f95a56413ccda8b6 | eeb76c0bceec66717d9b0be0de17db52d5e8dbf1 | refs/heads/master | 2023-04-23T15:26:07.882500 | 2021-05-07T09:50:14 | 2021-05-07T09:50:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | h | Factory.h | #ifndef FACTORY_H
#define FACTORY_H
class Product {
};
class ConcreteProduct : public Product {
};
class Factory {
public:
void AnOperation();
protected:
virtual Product* FactoryMethod() = 0;
};
class ConcreteFactory : public Factory {
protected:
virtual Product* FactoryMethod();
};
#endif
|
3296b82b3c02f0978e454cee416d7b526843788f | 44deb39f20d9f741c6a201bccd3040cc4244d883 | /Day10/String5.cpp | bdc2b47ecd8e8697a18d4769b4c2de6ed51be001 | [] | no_license | gargpriyam21/CPP-Codes | 0a51060aaa2527f21d6a5f8f7c115aaf67a365f3 | 895a8f04879d1d43f44593f25fee5b0f4934de15 | refs/heads/master | 2022-04-12T12:38:28.565108 | 2020-04-10T15:51:12 | 2020-04-10T15:51:12 | 254,673,188 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 236 | cpp | String5.cpp | //
// String5.cpp
//
//
// Created by Neera on 21/06/16.
//
//
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char s1[10]="BIRD";
char s2[10]="BEAR";
int i = strcmp(s1,s2);
cout<<i;
}
|
8b30c580345af40030d0f222735f8161951db6f6 | e68f71f8b60f103d788a7d52bb6947653a00d8be | /Tree/Binary Tree/Traversal/DFS/Iterative/preorder.cpp | 729245c8dd09652af097931d86a5759f52ab3c05 | [] | no_license | mridulraturi7/Data-Structures | 8a662cdec15b4b3c22de39efa7bb4fbfb45ec6cd | 26e18c72d5ea8c27ab24a56299d3de6743b57e24 | refs/heads/master | 2023-06-05T07:36:15.808088 | 2021-06-22T18:17:50 | 2021-06-22T18:17:50 | 287,454,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,599 | cpp | preorder.cpp | /*
Implementation 12.
Preorder Traversal of a Binary Tree using Stack (Iterative).
Algorithm:
Create a stack and push the root node into stack.
while(stack is not empty)
{
Pop an element from stack.
Push the right child of popped element.
Push th... |
9bfc5db635b82cc6130baa7197d0354b7fe440ec | fa9c0a6cf911551551d56c2270808b1e35926ae0 | /Apunts_examen_Programació_2/Apunts_examen_Programació_2/Stack_2.h | a39faa2579f17c5cdd920db62c7adcb35a9de71d | [] | no_license | AGM16/Material-Apunts-Programaci--2 | fd653e8f76eeeca7b226a60b101eb9ea36bca88c | 1b8564a1f19c233fa969494cbaf8b75eb16e2511 | refs/heads/master | 2020-05-16T23:51:30.788460 | 2015-06-09T07:01:05 | 2015-06-09T07:01:05 | 32,765,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | h | Stack_2.h | #ifndef _STACK_2_
#define _STACK_2_
#include "Double_List.h"
template<class TYPE>
class Stack_2
{
private:
DLinkList<TYPE> data;
public:
void Push_s2(const TYPE& _data)
{
data.add(_data);
}
bool Pop_s2(TYPE& result)
{
if (data.Count() != NULL)
{
result = data.end->data;
data.del(data.end);
r... |
d202629b10a26df093557224e039811c5c3eb47c | 4b79831a6d198952a492c02c4aaa19a826d94477 | /TargetSum.cpp | bef027ba62821599e74c39cd394d1da5ae29c15f | [] | no_license | moakbari/LeetCode | acbfdc680ebb5a865cab354676e5f42542f14615 | e6aef12421c59de6cff314207940b50c9e0e31cb | refs/heads/master | 2020-04-29T01:22:15.712029 | 2019-05-27T20:08:27 | 2019-05-27T20:08:27 | 175,727,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | TargetSum.cpp | class Solution {
public:
// sum(p) - sum(n) = S; --> sum(p) - sum(n) + sum(p) + sum(n) = S + sum(nums) ---> 2*sum(p) = S + sum(nums) ---> sum(p) = (S+sum(nums)) /2
int findTargetSumWaysHelper(vector<int>& nums, int target){
vector<int> Dp(target + 1, 0);
Dp[0] = 1;
for (in... |
7ebaa2c59aa3edd70a311338ef66af2989fde671 | 5bc6cc084bbd2273a58d0be37c79fdd14caf7a48 | /Source.cpp | c9620625c80bd7252d7d0a81b578dad67aabe2e2 | [] | no_license | okeith12/ProjectScripts | 76d3e022352568ca8b5d852ee480aa5f7f1024be | 9e53fe5fb7e5e25bf421aff9b1f58961e310308d | refs/heads/master | 2021-09-23T21:55:19.962102 | 2018-09-28T02:13:28 | 2018-09-28T02:13:28 | 116,326,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,338 | cpp | Source.cpp | #include <iostream>
#include <fstream>
#include <utility>
#include <vector>
#include <sys/types.h>
#include <algorithm>
//#include <sys/wait.h>
//#include <unistd.h>
using namespace std;
void swap(int &a, int &b);
void childFunction(pair<int, pair<int, int>>b);
void parentFunction(pair<int, pair<int, int>>b)... |
03350b3b36acb3aed027b0bc95184d05df976486 | 9ed0ca49d7fddf6ecb1784d15709a3235cba37b4 | /Source/Runtime/Foundation/Memory/StlAllocator.h | 89580f41f0b6b4cc0d99fd98e73f3f5d74f84c31 | [
"MIT"
] | permissive | simeks/Sandbox | 1332422161924dd490bd70cac8d791a6bfb67492 | 394b7ab774b172b6e8bc560eb2740620a8dee399 | refs/heads/master | 2020-05-17T08:45:03.388896 | 2017-03-05T14:10:37 | 2017-03-05T14:10:37 | 83,967,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,629 | h | StlAllocator.h | // Copyright 2008-2014 Simon Ekström
#ifndef __FOUNDATION_STLALLOCATOR_H__
#define __FOUNDATION_STLALLOCATOR_H__
namespace sb
{
/// @brief Custom allocator for STL
///
/// It's made so that we can use our memory::DebugAllocator with STL
template<typename T>
class stl_debug_allocator : public std::allocator<T>... |
8bdbf1e780b262967a412c55dd6aa9ee1a3e47a0 | fa59cfedc5f57e881679fb0b5046da8c911229ca | /2670 연속부분최대곱.cpp | cf9d0eb130f20ea9c9208b090789b137bcf1be61 | [] | no_license | ju214425/algorithm | e2862df2c55490b97aefffaec99bb449a9db7e1f | db6d96eda3272a7faddaf11fdd02534d6231eafc | refs/heads/master | 2023-07-02T21:32:53.718629 | 2023-06-25T06:04:57 | 2023-06-25T06:04:57 | 193,701,850 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 178 | cpp | 2670 연속부분최대곱.cpp | #include <cstdio>
#include <vector>
using namespace std;
int main(){
int n;
scanf("%d", &n);
vector<int> v(n+1);
for(int i = 1 ; i <= n ; i++){
scanf("%d", &v[i]);
}
} |
e169ea9a9b6bfd12f671c7877dc7037214cde44d | 2f9493b5001f9c881126d24ade21dd63ea08057d | /src/Altimeter.h | 547d380a7e8b868f28c6fe5be5682b2433e05760 | [] | no_license | stanford-ssi/rockets-irec-sradaltimeter | 24ea5a02f73e40632bd61998407b1da2a827be01 | bd6c8bfb12a65ca1f20a4596cfbcb34ea2329640 | refs/heads/master | 2021-01-12T01:24:49.285944 | 2018-05-16T03:11:45 | 2018-05-16T03:11:45 | 78,380,915 | 1 | 3 | null | 2018-05-13T23:52:24 | 2017-01-09T00:49:26 | C++ | UTF-8 | C++ | false | false | 1,815 | h | Altimeter.h | /*
This file contains the class for the altimeter for which everything
else is a meber of.
*/
#ifndef ALTIMETER_H
#define ALTIMETER_H
#include <WProgram.h>
#include <stdint.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <Adafruit_BMP280.h>
#include "Flight_Sensors.h"
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.