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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4dd28abbfb96e8533e99141dae638177f21f8a3 | 899a9cd451ecd79e89af4c21ec93e36a98e03aaa | /storage_processor.hpp | 803599c1e6b73f2672dc27e149d5d920e3fbd0ba | [] | no_license | gdabba-WORK/Qt5_openCV4_raspberryPi3-for-RP3 | f8f4eabeecad7da2f45ef18f0d3a116f5bc10eb4 | 34efd3bd6933ff87f875f7dfdaaebe0c61630722 | refs/heads/master | 2020-11-25T06:27:38.227569 | 2019-12-18T06:43:05 | 2019-12-18T06:43:05 | 228,538,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | hpp | storage_processor.hpp | #ifndef STORAGE_HPP
#define STORAGE_HPP
#include "includes.hpp"
using namespace cv;
using namespace std;
class Storage : public QThread
{
Q_OBJECT
private:
VideoWriter writer;
Mat frame;
private:
void run() override;
public:
Storage(QObject *parent = nullptr);
~Storage() override;
void r... |
49f0573d9a883f115738727dd2dd07e3ddedb189 | 84d2532fecb9949973064c8432162753fa459659 | /src/modelbar.cpp | bbdece89807033a515cbb854f620db48320fdbcf | [] | no_license | Ming-Hao/PracticeBuildQtTest | 2d3857e185daf2a2847018c22a6bed04f8a294a1 | 4d2e9cfb2c1189cc291837edec856d0a66444677 | refs/heads/main | 2023-08-31T00:10:47.147406 | 2021-10-11T04:28:36 | 2021-10-11T04:35:16 | 415,781,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 157 | cpp | modelbar.cpp | #include "modelbar.h"
ModelBar::ModelBar()
{
}
int ModelBar::val() const
{
return m_val;
}
void ModelBar::setVal(int newVal)
{
m_val = newVal;
}
|
f254870c1beeafe3d3a066808f1c1f0af2f97439 | 25d5d95a3b84d38a5daa72c703b90a7262fab24d | /EJsAnalysis/EJsAnalysis/EJsHelperFunctions.h | 327a548a136c8e4a2c2f90a95555fdb7be8b0a84 | [] | no_license | ctreado/EmergingJetsAnalysis | e051b9c0cc1162ec294e1b3c99a9e456365e04be | a9e4dbf1d3d0d92e22c86cdddc389d53ea35273f | refs/heads/master | 2021-07-23T04:41:19.728071 | 2020-08-19T15:04:00 | 2020-08-19T15:04:00 | 207,605,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,842 | h | EJsHelperFunctions.h | #ifndef EJsAnalysis_EJsHelperFunctions_H
#define EJsAnalysis_EJsHelperFunctions_H
/* EJsHelperFunctions is a set of generic helper functions for EJsAnalysis,
not already provided in xAODAnaHelpers's HelperFunctions */
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <TTree.h>
#include <A... |
d1eba24eaebca85e9298f0601996fd44bfcfd0f0 | ed68ce5736231f7537d7f8927cbc08704fd7742e | /The 81 (part2)/Equal_rectangle.cpp | 53588fded2bf6c61ad43d79ddbff80b00d8ac678 | [] | no_license | Touhidul121/All_code1 | 9690c240502ff1588967a115cbda21feeddacb0d | 4a60c6db51ece4dfaa4dbc954d46b52a62cc2982 | refs/heads/main | 2022-12-30T18:29:29.355580 | 2020-10-26T19:41:44 | 2020-10-26T19:41:44 | 307,480,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 915 | cpp | Equal_rectangle.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n,a,b,c,d,a1,a2;
cin>>n;
set<int>st;
vector<int>v;
for(int i=0;i<n;i++)
{
cin>>a>>b>>c>>d;
v.push_back(a);
v.push_back(b);
... |
b6a2d94ece6e53e573af99f6e504b47264b337a0 | 593d347bc20b014c9d91c9266de7162d2348ce5d | /transitin-sqlite/database.hpp | 14649e393e06691fe88a5b4a5f00372626afb04a | [
"MIT"
] | permissive | alairon/transitin-sqlite | 94f56ea7d6ec9066f08d91bc921337e703a08eb7 | 6533b45ed2bc5da976ff86680e3a4aa9e40d874b | refs/heads/master | 2020-03-24T02:33:55.089093 | 2018-09-05T19:00:00 | 2018-09-05T19:00:00 | 142,381,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | hpp | database.hpp | #pragma once
/*The callback function used when SELECT statements are called*/
static int callback(void *NotUsed, int argc, char **argv, char **azColName);
/*Initalizes the database with the standard headers specified under the GTFS*/
void initDatabase(void* dbx);
/*Inserts values into the database*/
void writeValues... |
49dc3ec94f299b6c42584fa3a641efb23cc5131e | bdee7507bc5d17c18a8e59883fec176fe7928509 | /gameSetup/main.cpp | f0d90b276d8c66e6b70f2accb878f8cd6f24fcf0 | [] | no_license | meemknight/gameLayer | 4ab02da055523d47222e6f0981b7ad649b3923a8 | 4b0b94f567ac6f00a4e25da2cf482003ce8f5bde | refs/heads/master | 2023-07-02T05:36:06.052490 | 2021-08-04T08:48:21 | 2021-08-04T08:48:21 | 273,767,187 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,264 | cpp | main.cpp | #include <Windows.h>
#include "gameStructs.h"
#include <GL/glew.h>
BOOL WINAPI DllMain(
HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved
)
{
if(fdwReason == DLL_PROCESS_ATTACH)
{
// OutputDebugString("gameLayer: dll attached");
}
return true;
}
FreeListAllocator* allocator = nullptr;
Console*... |
6925d84b2a0fb9e0308dac0c597db2a34c44f87d | f5b7aa967a3f35bed97e28577933999367d2c3d5 | /Pethan/MyRobot.cpp | dd2068da1149e9a97d94050317844152252f1e0b | [] | no_license | rockychat3/4859code | 29020516026c2fa5d07fb9e6df319bac44e152a2 | 935fb3885b40220aa63e6329dbecea446293c7de | refs/heads/master | 2020-05-18T18:23:49.082855 | 2014-03-09T21:32:30 | 2014-03-09T21:32:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,331 | cpp | MyRobot.cpp | #include "WPILib.h"
#include "Math.h"
#include "Victor.h"
#include "Ultrasonic.h"
#include "Servo.h"
//#include "Compressor.h"
//#include "Solenoid.h"
/**
* This is a demo program showing the use of the RobotBase class.
* The IterativeRobot class is the base of a robot application that will automatically call your
... |
36aa3d706ccead67f898899a3a75d25b128d28c4 | a0e24dfcccd4adc7221fbdcdf3eced2181d0729a | /CRHM_Borland origin/src/Shared/Hype_river.cpp | 7294a553c1ae1611c2efa733d18ef48afee2223c | [] | no_license | rayhan-ferdous/ProvMod-Legacy | ccb3ad445e39dbdb1a7def81f8671dce31d96d5a | 6d02d412ef86f35dcc2a851c9af00b81b74f1fcb | refs/heads/master | 2021-06-04T03:54:07.101316 | 2020-04-08T20:26:53 | 2020-04-08T20:26:53 | 141,753,964 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 34,327 | cpp | Hype_river.cpp | // 01/23/18
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Hype_river.h"
#include "Hype_routines.h"
#include "Hype_routines.cpp"
#include "DefCRHMGlobal.h"
#include <math.h>
//--------------------------------------------------------------------... |
31b8f8049234331acb96715f38851611d49199c0 | a46812732fe8f00df185defd98b401bc9686638c | /Game/Game/Obstacle.h | 6e7cff6b252c144904b4b17874af1e26a83aabf6 | [] | no_license | Filishtinskaya/Luxoft-Race | 11309468981a9862a04248db15e24e991f57edf6 | 1012faaa7409e631c56948ac6b87b1b496dd9d81 | refs/heads/master | 2021-04-25T18:45:10.212390 | 2017-10-29T22:46:50 | 2017-10-29T22:46:50 | 108,473,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | h | Obstacle.h | #ifndef _OBSTACLE_H_
#define _OBSTACLE_H_
class Obstacle
{
public:
Obstacle();
void changePos();
bool checkCrash(int pos);
void moveObstacle(int speed, double timespan);
int getx1();
int getx2();
int gety1();
int gety2();
private:
int x1_,y1_,x2_,y2_;
};
#endif
|
b8fc667272e155cfc3ddf893e97f237b9c159f2c | 2b124aa51a7a476988b67554bde2658b72e703f3 | /src/pin/PinException.cpp | c291b5f91aee311332e9c3019a84b16a66060d03 | [] | no_license | arthurteisseire-epitech/OOP_nanotekspice_2018 | 10375bfcba47ac807c377476e9963a59e229bf7e | 5588c0b5de8880be0dad4802c8c6f97590fa73d4 | refs/heads/main | 2023-02-16T16:57:18.833400 | 2019-02-21T15:00:33 | 2019-02-21T15:00:33 | 330,003,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | PinException.cpp | /*
** EPITECH PROJECT, 2018
** OOP_nanotekspice_2018
** File description:
** PinException.cpp
*/
#include "PinException.hpp"
nts::PinException::PinException(const std::string &message) :
_message("Pin exception: " + message)
{
}
const char *nts::PinException::what() const noexcept
{
return _message.c_str();
}
|
1147f84f8a4515fb0d53c4eaea2f217de0b5e253 | b355a82775e7c0cfd4103f20f28eaaebe49f15ac | /src/analyser.cpp | 6bd606e49d13788da5996d9859c62fb3f1e30ab1 | [
"Apache-2.0"
] | permissive | kerimoyle/libcellml | e8ac5033c86e57ede33118b0b60ac9983536b4a3 | 63b677e4b22c28a7dcb69513df1495f0f8eccefa | refs/heads/develop | 2021-06-23T11:46:45.854192 | 2021-02-09T21:36:29 | 2021-02-09T21:36:29 | 213,599,235 | 1 | 0 | Apache-2.0 | 2021-03-23T10:39:14 | 2019-10-08T09:17:59 | C++ | UTF-8 | C++ | false | false | 76,855 | cpp | analyser.cpp | /*
Copyright libCellML Contributors
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 in writing, softwa... |
c7498f0111af872e91fe8df95b89f3a8afa41fed | 20600fba0845459feb9f8fc83960cbdd2890bb75 | /src/igl_dev/tet_refine_operations.cpp | 03c03dc3d9c0fb14f7195462a075adbbf2a724f9 | [] | no_license | yxmanfred/Scaffold-Map | af2c957affd29b5b0d1163b0e9ad8d1fdaf32ce8 | a31986619619b9d2d113420e7f4ac6649b47796c | refs/heads/master | 2020-05-14T23:00:08.726215 | 2019-01-18T02:01:09 | 2019-01-18T02:01:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,855 | cpp | tet_refine_operations.cpp | //
// Created by Zhongshi Jiang on 5/2/17.
//
#include "tet_refine_operations.h"
#include "tetrahedron_tuple.h"
#include "retain_tetrahedral_adjacency.h"
#include "tetrahedron_tetrahedron_adjacency.h"
#include <iostream>
namespace igl{ namespace dev {
bool tet_tuple_edge_contraction(int ti,
... |
3ca116cef0a53bde20ed26e3f203a7a49815c107 | 00cbd1ca5bee93a41dd4e79460e1e37f9f6f2d0c | /Codeforces/883M/main.cpp | 75d6b0bec4c7058e262e55e240d5c79e988161b1 | [] | no_license | nthieu98/Competitive-Programming | 251b3ab2891d0a4c7c96f11b4c2e79e0d1535233 | 93251f3641b48f60d531dcf027c7543353658181 | refs/heads/master | 2022-02-28T16:19:02.461412 | 2019-10-20T06:13:41 | 2019-10-20T06:13:41 | 212,516,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
int a = abs(x1-x2);
if(!a) a+=2;
else a++;
int b = abs(y1- y2);
if(!b) b+= 2;
else b++;
cout << a*2+b*2;
return 0;
}
|
881fde2937f3b5b4119f73acd728de7061b04eb5 | 445f135c3c7dd172e1dd0db523a53bc8da8c655a | /PointCloudApplication/include/NewFileDialog.h | f8f23b7cf9a65666904a368a237d517d09a93632 | [] | no_license | MoreDrinkHotWater/Demo | 99ba3705b36630feba8a334e49f8de0c75c84110 | 786c13fdcab04cd3a85aa15adc879e80ded52f49 | refs/heads/master | 2020-06-30T21:11:37.228722 | 2019-08-07T02:30:31 | 2019-08-07T02:30:31 | 200,952,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | h | NewFileDialog.h | //
// Created by zhihui on 7/5/19.
//
#ifndef DEMO_TWO_POINTCLOUDAPPLICATION_INCLUDE_NEWFILEDIALOG_H_
#define DEMO_TWO_POINTCLOUDAPPLICATION_INCLUDE_NEWFILEDIALOG_H_
#include <QDialog>
#include <QLineEdit>
#include <QDebug>
class QPushButton;
class NewFileDialog : public QDialog {
Q_OBJECT
public:
ex... |
8e60ed59b4fbd26dd0f034d3971bf16ab1f79126 | 3412b6351a1a5967d316720d442843ffa61e37bc | /Project1/compile_error.cpp | 353bff570d412ef3e1c74130f4ca5723ed067383 | [] | no_license | sadhanavadrevu/CS-31 | 43c5f0249bb7ca32082bf97974d32f98bf589655 | 7de1e005ef204506983e6a5b502b07273da0aacf | refs/heads/master | 2020-12-10T21:39:31.241585 | 2020-01-14T00:05:11 | 2020-01-14T00:05:11 | 233,717,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,122 | cpp | compile_error.cpp | //
// compile_error.cpp
// Project 1
// change code so that it is unable to produce poll results
// Created by Sadhana Vadrevu on 10/5/18.
// Copyright © 2018 Sadhana Vadrevu. All rights reserved.
//
#include <iostream>
//did not include namespace std
int main //no parantheses next to main function
{
int n... |
0df3e12f81907a20313b6bee956b18ef8bab777e | a46f3d9d75686a3b3090f4ede4bcb79568728039 | /vs2013/controller/engine.hpp | 853dfd9d848b9bbc2b2a1ef70dc126b7b175944c | [] | no_license | XanClic/laughing-octo-hipster | 80399e32267b064c8140473648cbb1725e06542a | f774dbf5e920495be7293d1c8a1de5d5662dd5fd | refs/heads/master | 2016-09-05T18:38:41.937607 | 2014-05-14T13:19:14 | 2014-05-14T13:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | hpp | engine.hpp | #ifndef CONTROLLER__ENGINE_HPP
#define CONTROLLER__ENGINE_HPP
namespace controller
{
class Engine {
public:
virtual void init(int &argc, char **argv) = 0; // = 0 bedeutet soviel wie abstract, also dass es keine Implementation gibt
virtual void run(void) = 0;
};
}
#endif
|
c2e2789dac80d41c80da58db032372694e760abe | f636c156d9e8a007462abcdc75e51d5a626b4e1e | /player.h | ca1ea3daecd3f9647e9b565d144bbdb2118b7c6a | [] | no_license | ryanfd/blackjack | 5e21e0b2d58e2b2c01d8e422610c127529bb1382 | e0b814af37d47a3bd4add2b827ddac4843acda16 | refs/heads/master | 2023-01-02T08:03:54.150807 | 2020-10-23T20:19:45 | 2020-10-23T20:19:45 | 306,154,672 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | h | player.h | #include <vector>
#include <iostream>
#include "card.h"
class Player {
public:
Player()
: total(0)
{
hand = std::vector<Card>();
// hand.push_back(Card("A",11, "hearts"));
}
void calculateTotal();
void playerTurn(std::vector<Card> deck);
void displayHand();
// gette... |
392ace8cb6a40172afaa2e457d23562891eb55c2 | 6b28df12d3a45c20a19503e0eeb3649460d587f9 | /data/179.cpp | c3a567aa90dc946032b28850d2c06f4aaa239992 | [
"MIT"
] | permissive | TianyiChen/rdcpp-data | 9bb1f0319de5a22c601192c3eef33e4024b172fe | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | refs/heads/master | 2021-04-15T09:26:01.359253 | 2018-03-21T18:57:09 | 2018-03-21T18:57:09 | 126,216,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,147 | cpp | 179.cpp | int WMTz
,
KT//EQ
, c , ya ,qCA7coC ,
WXo3m
,
v
, MVz8 ,hwyU,//S0M
UTE,
xEw,
bnDd,vi/*kKEKz*/ ,/*E*/nCLx
/*na*/
,
VX
, NK2
,
U8P,Uah,qcuqC, dal,rNu/*ZsJ*/,Ost
, rrk , SC ,sQR, H7uR,SAN, tLG43,zmv ,
/*y*/
//n
L9
,//
maL , JNdm ,
bxpZ , Dy,dP/*k*/, /*1OD*/S85,/*A*/CP ,L6
,/*BwL*/ ZSR , BznyJj ... |
ad8ced069b13560a7e15c8359fb2223cc9af9a7e | 1fade2f27e01d75554a5b71ae18aebaa67684013 | /algoritms/SimplyLinkedList.cpp | 7e26e8e0e2955c9e32cd1f0d7a4b6209c41ccd3e | [] | no_license | igor35hh/C | ce04b9e351d1fcdd865c8d03608e11b1cb7a2ee4 | 51a37cab340140d9b9ab96cc6a5e7df6497802c1 | refs/heads/master | 2021-01-20T00:28:17.735899 | 2017-08-26T12:07:21 | 2017-08-26T12:07:21 | 89,135,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | SimplyLinkedList.cpp |
#include <iostream>
#include "HeaderSimplyLinkedList.h"
using namespace std;
void print_slist(const Single_list & sl) {
int list_size = sl.size();
if(list_size == 0) {
printf("empty list\n");
} else {
int elt = 1;
while(elt <= list_size) {
printf("%d ", sl.get_nth(elt++));
}
printf("\n");
}
}
Single... |
a0fbf5abf29dc909f0212eb776c4b5e87305ccc0 | 7e762e9dda12e72f96718ef7bec81bca85f3937a | /LargeKnapsack.cpp | 72836d035373eb969f7e349eb9d6771cc6429ca9 | [] | no_license | ShravanCool/spoj-classical | b9bd563a28523ad8d626c867f54646d839302ce9 | 448bf7745c65f6552fb00b32a827044bd1528925 | refs/heads/master | 2020-05-31T06:48:59.737307 | 2019-03-30T16:46:07 | 2019-03-30T16:46:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | cpp | LargeKnapsack.cpp | #include <cstdio>
#include <vector>
int dp[2][2000001];
int knapsackOptimized(std::vector<int>& weight, std::vector<int>& value, int K) {
for(int i = 1; i <= value.size(); i++) {
int j = 0;
if(i%2 != 0) {
while(++j <= K) {
if(weight[i-1] <= j)
dp[1][j] = std::max(value[i-1] + dp[0][... |
25be99dcd1fa11b5930df3691623cfb2d6293b22 | 90cac1c0b2c0d41f1845f69552ffa71ab0706e58 | /c++/primo.cpp | ba7dfe76845f89689a776f115065bee6c60f472a | [] | no_license | pakinja/C-Codes | 538d783b08b4940f95a1407484b9b1821debe158 | e827084db92119b163fddb269b52feb26f1b8aa6 | refs/heads/master | 2021-01-20T15:23:33.546414 | 2017-05-09T15:49:43 | 2017-05-09T15:49:43 | 90,762,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | cpp | primo.cpp | #include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int n, i,j, aux;
cout << "Introduce un numero"<< endl;
cin >> n;
j = 0;
for ( i = 2; i<n; i++)
{
aux = n % i;
if (aux == 0)
{
j = 1;
}
}
if(j == 1)... |
aff3f227821be02c5ff90fe672ff3fc9f1b08e85 | 52d68b7358dbca9ee1a187c63dc3078b58d6d90f | /src/repr.cpp | 271c45885894f711f61b1edbbf6bf42277123ee9 | [
"MIT"
] | permissive | PranayAnchuri/approx-graph-mining-with-label-costs | 8b8d53868e6d9a034c93157ef1980ea8ad50277f | 4bb1d78b52175add3955de47281c3ee0073c7943 | refs/heads/master | 2020-06-28T20:30:52.899718 | 2019-08-03T05:04:26 | 2019-08-03T05:04:26 | 200,332,377 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 710 | cpp | repr.cpp | #include "repr.hpp"
Repr::Repr(const types::db_vertex_t& vid, const types::cost_t& cost) {
this->vid = vid;
this->costs[0] = cost;
initcost = cost;
}
bool Repr::operator==(const Repr& r) const {
return vid == r.vid;
}
bool Repr::operator<(const Repr& r) const {
return vid < r.vid;
}
void Repr::r... |
20ba8fa294ffe9e2217147167e7332fd64bdcc07 | ab78d1da00207b483b17a761665b6d68c7195a2f | /DarGame/Main.cpp | 70149c045a4fff195ecdbb827a524161d76ad9e9 | [] | no_license | DarioMiroli/OpenGLInCPP | f47bcdfd5366949af0a061328eb88a47b86fa144 | 1800762c7f247ce895117de782b8c0b618973437 | refs/heads/master | 2020-09-12T18:42:22.730403 | 2017-06-29T14:09:01 | 2017-06-29T14:09:01 | 66,567,500 | 0 | 0 | null | 2017-06-29T14:04:37 | 2016-08-25T14:56:18 | null | UTF-8 | C++ | false | false | 302 | cpp | Main.cpp | #include <iostream>
#include "DarGameEngine.h"
int main(){
std::cout << std::endl << "Main" << std::endl;
DarGameEngine D1 = DarGameEngine::getInstance();
D1.createWindow(800,600);
D1.bindShaderProgram();
D1.initDrawing();
while(!D1.closeDarGame()){
D1.update();
}
return 0;
}
|
2147017d0d129c9ac637e0d0668c98009c303630 | e3600a5f1431f6d542ec098db2887ea86d5f0b28 | /vezba6.cpp | 2570e5d84285ff0935f611a915065a81f803fc39 | [] | no_license | DrFujitsu/PRM2 | be56d74261612bb64dc5a42c1f00aef5b4cc89d4 | 62221595ec35021ec0fcc8b149b2a08471afda58 | refs/heads/master | 2020-03-07T01:03:37.772052 | 2018-03-28T17:14:58 | 2018-03-28T17:14:58 | 127,173,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,243 | cpp | vezba6.cpp | // Elektroenergetski softverski inzenjering
// Primenjene racunarske mreze u namenskim sistemima 2
// Vezba 6 - Interpretacija sadrzaja paketa (2.deo)
// We do not want the warnings about the old deprecated and unsecure CRT functions since these examples can be compiled under *nix as well
#ifdef _MSC_VER
#define _CRT... |
6917e02cb203ddb993cbc80be9ec0a4b03f234c3 | 1a7ecc360191b8cbcdf36658fa517c1fc2f1e6d3 | /Problem2Test.cpp | 9db39149b87f674d31c5a46acf098f764fcd3f9a | [] | no_license | Tovrik/ECS158Homework1 | 6593eb936ef5d356578190c830ee6e85ed947373 | 79d0a5398a91f79506996e789ad0a2f85fec8c1e | refs/heads/master | 2021-05-29T19:40:58.148315 | 2015-01-23T09:21:33 | 2015-01-23T09:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,620 | cpp | Problem2Test.cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <sstream>
#include <unordered_map>
#include <omp.h>
using namespace std;
static const int ARRAY_SIZE = 100000;
int *numcount(int *x, int n, int m) {
unordered_map <string, int> mapCount;
string key;
int val;
int firstIter = 0;
... |
34194232ec2b535098430758ed6b5962511527ad | 07bd66ba2ff1cf94b203934bc66605f8c17c7356 | /c6-23.cpp | 8e7c5af18746bb1a2f34bb11737f266360693aea | [] | no_license | richader/c11 | f158aa14015edd9db5ee3d2383ba748472a192d6 | d21948dccc35518f1f86c397806f591dbbdcb5bc | refs/heads/master | 2020-04-05T06:18:53.222165 | 2018-11-29T06:28:37 | 2018-11-29T06:28:37 | 156,633,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | cpp | c6-23.cpp | #include <thread>
#include <atomic>
#include <iostream>
using namespace std;
atomic<int> a{0};
atomic<int> b{0};
int ValSet(int){
int t=1;
a.store(t,memory_order_relaxed);
b.store(2,memory_order_relaxed);
}
int Observer(int){
cout<<"("<<a<<","<<b<<")"<<endl;
}
int main(int argc, char const *argv[])
{
thread t1(... |
1949e7bee967c94f3204068f57da2ffb4d187734 | 67930cfbf6416fa1c76ed14d27f3d961d4de63e7 | /2.point(&function)/p61.cpp | aa1a0107f98f05c3987c46bc86c6a0484b40aa64 | [] | no_license | 1844520476/Cplusplus-learning-note-Chinese | 279e2e21047f48764cbb041ffbbae8a6e010d4b3 | 9eb07a72c5685d17dee4a17dc6164b7468d77c19 | refs/heads/main | 2023-09-04T15:51:07.973874 | 2021-11-04T08:44:14 | 2021-11-04T08:44:14 | 418,586,737 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cpp | p61.cpp | #include<stdio.h>
#include<iostream>
using namespace std;
//指针和数组
//利用指针访问数组中的元素
int main()
{
int arr[10]={1,2,3,4,5,6,7,8,9,10};
cout<<arr[0]<<endl;
int*p=arr;
//arr就是数组首地址。区别int*p=&a;
cout << "a[0]=" <<*p<< endl;
p++;//后移4字节
cout << "a[1]=" <<*p<<"\n"<<endl;
int*p2=arr;
for(int i=0;i... |
54cd8eea0e0f878833dd72a984215b09c503182b | 757db038557bf3386707b5f947e17f0fb4853762 | /UserUtils.h | 2723d0bc1b28e9fd74d77b967e43382759ca5387 | [] | no_license | SheetanshKumar/2048-fibonacci-c | 5b1b3cc7166c7d1ba362aae14ae7cbcbc564fb94 | 162098da24ea737057dcf3d836c4906b8b0ef70e | refs/heads/master | 2020-03-22T22:37:40.826929 | 2018-07-12T20:31:35 | 2018-07-12T20:31:35 | 140,761,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | h | UserUtils.h | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
struct User
{
char name[20];
int score;
int boardSize;
int movesCount;
};
User * createUser()
{
printf("Enter your Name : \n");
User * user = (User *)malloc(sizeof(User));
//scanf_s("%[^\n]c... |
e58c71610bafab928a747a303d6270e829f5e348 | cac7808afd9fc562c2d0ed4eddab052ab42aa9eb | /CfCppCli/CloudFilter.cpp | 19dcdfea1a6aaf8eac02c98300b19dcc2d20d8c1 | [
"MIT"
] | permissive | qrdemole/CloudFilter.NET | eb2226a3f42cae13cac52317d3f06f7f6840923b | 5b1579d0e98c48563560e273f20dfeddd3c70294 | refs/heads/master | 2021-01-14T21:47:39.686291 | 2020-02-13T20:49:12 | 2020-02-13T20:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 764 | cpp | CloudFilter.cpp | #include "pch.h"
#include "CloudFilter.h"
#include <windows.h>
#include <cfapi.h>
#include <vcclr.h>
using Cf = JDanielSmith::Microsoft::CloudFilter::CloudFilter;
// https://docs.microsoft.com/en-us/windows/win32/api/cfapi/nf-cfapi-cfunregistersyncroot
void Cf::UnregisterSyncRoot(System::String^ syncRootPath)
{
pi... |
91122286e4afe50452ac36cb218ff0d93bf4f2ab | 0dbbda907a9b29dda120d22ae274aee490935746 | /opengls/Rendering/VertexFormat.h | fc7ab3e39dfb606e803ca7ccc60c381e161f3886 | [] | no_license | lunaticAnn/OpenGl_GameEngine_Linux | 10bdde6bf98ab123a22e7ba9451b62c24197ac8a | 6642185247bd46795fa47c107232c163b8bec350 | refs/heads/master | 2021-07-21T03:04:10.067695 | 2017-10-29T08:04:44 | 2017-10-29T08:04:44 | 108,597,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | h | VertexFormat.h | #ifndef VertexFormat_H_
#define VertexFormat_H_
#include "../Dependencies/glm/glm.hpp"
namespace Rendering{
struct VertexFormat{
glm::vec3 position;
glm::vec4 color;
glm::vec3 normal;
VertexFormat(const glm::vec3 & pos,
const glm::vec4 & col = glm::vec4(1.0)){
position = pos;
color = col;
}
... |
a6626be74e0c4eb18af529e5d4c2f3b9af48ff4c | f8ac0f7627d263747b38707ef25c106a5589fd1d | /src/Job.cpp | be2aa011135ea01afb048f172239a990d9afa5df | [] | no_license | eth42/MetagraphMatchingBenchmark | e54d3befee088702b069bd5c91f196927b2ad929 | b18e104d947bc95ef9ba0d85d1fffbfc5404e99a | refs/heads/master | 2020-07-03T06:18:31.962350 | 2020-01-13T11:40:34 | 2020-01-13T11:40:34 | 201,817,400 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,373 | cpp | Job.cpp | #include "Job.h"
namespace maxmatching {
Job::Job()
: source(new VoidGraphSource)
, seed(0)
, shuffle(false)
, iterations(0)
, solver(MultiTrees)
, solverArg1(0)
, solverArg2(0) {}
Job::~Job() {
delete(this->source);
}
GraphSource& Job::getSource() {
return *this->source;
}... |
0e886ddd6105ae3d768ded0c4e3ab906053792ad | 61e06d54f7b90797a2be0fb6f8c5ede2006ee5c1 | /Brave-Pirate/Magnet.cpp | 8ffcc5ba8885af13a675f9ffce47e5a6cedf5f28 | [] | no_license | Politechniczne-Caleczki/BravePirate2 | f345062884de23ac0e0b6d9c10749d7653410419 | 3a1eb2c1207ab475464a32918f1bba56a8d2591f | refs/heads/master | 2021-01-02T22:51:47.556801 | 2015-06-16T13:22:17 | 2015-06-16T13:22:17 | 20,548,909 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,191 | cpp | Magnet.cpp | #include "Magnet.h"
//Constructors and destructors
Magnet::Magnet(const Vector2 position, const Vector2 size, const float angle, const std::string textureName, const float descentRate):
descentRate(fabs(descentRate)),
GameObject(position,size,angle,textureName),
descent(1),
catchObject(NULL){}
//Getters and set... |
414624eabdc7999fad4f3a62ddd51df8c8d6b18e | 189777e6e9f61a632b6fa767b7e3be2ae3d411fb | /Baekjoon/그래프/연결 요소의 개수.cpp | fb3979b715000be46d5ef73e51290a402ba94145 | [] | no_license | padoling/Baekjoon | 1feb1454cad3687c7edd75ccd27711c4bfc2890d | 6982e3eb152f51925a0e3b91b3f962cc9ff6ef0e | refs/heads/master | 2021-09-09T23:20:15.611457 | 2018-03-20T07:51:19 | 2018-03-20T07:51:19 | 117,862,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | 연결 요소의 개수.cpp | #include <cstdio>
#include <vector>
using namespace std;
vector<int> g[1001];
bool check[1001];
void dfs(int x) {
check[x] = true;
for(int i=0; i<g[x].size(); i++) {
int y = g[x][i];
if(check[y] == false) {
dfs(y);
}
}
}
int main()
{
int n, m;
int cnt = 0;
scanf("%d %d", &n, &m);
for(int... |
c006202018dbe04d944683a23490c91bbace4e89 | 2d2aa582aecfb39563e31b85bb219dc4a14400e8 | /TerrainDirectXLight/Light.cpp | 9938660838fae84dac27be6abc1b840a5e5b06eb | [] | no_license | Porsche7144/TerrainDirectX | 3e9efaaec5d1cc03e45e90bcaaaf83463a2161df | ea7202ec227b1515f5381759d8dc757c3e5564f9 | refs/heads/main | 2023-04-21T19:30:10.408844 | 2021-05-07T06:30:51 | 2021-05-07T06:30:51 | 360,801,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | Light.cpp | #include "Light.h"
void Light::SetDiffuseColor(Vector4 color)
{
m_DiffuseColor = color;
return;
}
void Light::SetDirection(Vector3 Dir)
{
m_Direction = Dir;
return;
}
Vector4 Light::GetDiffuseColor()
{
return m_DiffuseColor;
}
Vector3 Light::GetDirection()
{
return m_Direction;
}
Light::Light()
{
}
Light::~... |
8ef3abbfb38da25c690a86b572f31f9508bb68c3 | 8420523466c9f6ab0edf6ff556c09c5a49edc1cb | /mk/msvc/appnavgen_static_static_glue_app.cpp | 48dec05ee623277abde030170d394340d2ccc063 | [] | no_license | huigou/planeshift | fb31a43ff1fad0e1b69d9683d0e1e8a0945d8fd3 | 78afce50bccf755ec4ded0c6bc91ae3c80bc5eba | refs/heads/master | 2020-05-25T15:47:26.462741 | 2016-06-15T20:34:37 | 2016-06-15T20:34:37 | 64,410,081 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | appnavgen_static_static_glue_app.cpp | // This file is automatically generated.
#include "cssysdef.h"
struct CS_IMPORT_SYM _Bind_navgen_static_plugins
{
_Bind_navgen_static_plugins ();
};
namespace { _Bind_navgen_static_plugins bind_navgen_static_plugins; }
|
3c8b099e3209087902f59b488aa74b5cd79e7b50 | e9a7c5f48dff9db2c746e4d07b1fbf4af6d01e6f | /verify/aoj/GRL_1_B/spfa.test.cpp | 97e861b5a8f5e68ab643444bc2986968bbfd502c | [] | no_license | taotao54321/cpp-procon | d9ee55d505ed2819c7f47e36e7dbffbccf9db0d2 | f907a53f9cadc28b3d407a0c4437fda2821f1146 | refs/heads/master | 2022-11-16T22:30:56.747668 | 2020-07-03T11:13:07 | 2020-07-03T11:13:07 | 175,445,761 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,165 | cpp | spfa.test.cpp | #define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/library/5/GRL/1/GRL_1_B"
//#define ERROR "1e-6"
#define ASSERT_LV 2
// header {{{
#include "../../../include/stdc++.hpp"
using namespace std;
#include "../../../include/types.hpp"
// }}}
using Int = i32;
using Real = f80;
constexpr Int MOD = 1'000'000'007;
... |
c629ab4d1d8bce7d648bdae2a896a097e6b50e58 | 5d7739bd360a447ee1c7285483d2f37d521fa99e | /Volume 005 (500-599)/534.cpp | a399d0a92b461dc69d6a22e09abcab353357af42 | [] | no_license | aaafwd/Online-Judge | c4b23272d95a1c1f73cc3da2c95be8087a3d523c | b264f445db2787c5fc40ddef8eb3139adae72608 | refs/heads/main | 2023-04-02T01:01:26.303389 | 2021-04-11T14:17:58 | 2021-04-11T14:17:58 | 356,840,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,368 | cpp | 534.cpp | /* @JUDGE_ID: 19899RK 534 C++ "By Anadan" */
// Frogger
// Accepted (0.010 seconds with low memory spent)
#include <math.h>
#include <stdio.h>
#include <string.h>
int N;
struct Point{
int x, y;
}pt[200];
unsigned char flags[200], w1[200], w2[200];
inline int sqr(int x) { return x*x; }
int reachable... |
8d024aa52a141caad791a98f182f9801775fe217 | c0e0138bff95c2eac038349772e36754887a10ae | /mdk_release_18.08.10_general_purpose/mdk/common/components/flic/tests/flic_02_multi_pipe/leon/main.cpp | c805c4944ec9e205c73f0693bcd85a8df5bdc22b | [] | no_license | elfmedy/vvdn_tofa | f24d2e1adc617db5f2b1aef85f478998aa1840c9 | ce514e0506738a50c0e3f098d8363f206503a311 | refs/heads/master | 2020-04-13T17:52:19.490921 | 2018-09-25T12:01:21 | 2018-09-25T12:01:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 980 | cpp | main.cpp | ///
/// @file
/// @copyright All code copyright Movidius Ltd 2017, all rights reserved.
/// For License Warranty see: common/license.txt
///
/// @brief Multiple pipes test
///
#include <Flic.h>
#include <UnitTestApi.h>
#include "PlgEcho.h"
#define N_PIPES 3
PlgEchoSend plgSend[N_PIPES];
PlgEchoRecv ... |
3198fb7a0499bd41c4f252eee17c53acf5127b5b | 5c864308b0510c13e51b538ba0855985b76f2023 | /ComputerVisionThesisSolution/ScenceSimulateProj/Graphics/cSanLightManager.h | f4c2ef47002e099c6ce7b89fc369e6fa7bb898d7 | [
"MIT"
] | permissive | zxyinz/ComputerVisionThesis | f660aaa57333d820164c848fb12995e793252177 | 081cadc6b9d2b05bd42f0ff0ba9d084c1da4faa2 | refs/heads/master | 2020-06-04T17:15:42.698161 | 2015-10-14T05:34:26 | 2015-10-14T05:34:26 | 34,825,050 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | h | cSanLightManager.h | #include"../Core/SanMathematics.h"
#include"SanGraphics.h"
#include"../Core/cVectorManager.h"
#include"GL/cSanLightGL.h"
#pragma once;
using namespace std;
using namespace San::Graphics;
namespace San
{
namespace Graphics
{
#ifndef __CSANLIGHTMANAGER_H__
#define __CSANLIGHTMANAGER_H__
class cSanLightManager :prote... |
5cf284030477d03f7468e2e937dc2c0cd4998a40 | 55822e9e9222134dfb7e3b042536e7df87fff2bc | /Source/LostInSpace/Rocket/Behaviors/Seek.h | 0b615dc78e726f8f77b1fdd9f9b7bae300b89ee5 | [] | no_license | bpeake13/LostInSpace | 378b3f07b8a5a3bee17b531b39866f33cb3f3c70 | a8518171bb4f2966eaf72d85bb5f7d1e88003a8f | refs/heads/master | 2016-09-05T10:59:08.721607 | 2015-05-05T01:08:34 | 2015-05-05T01:08:34 | 33,699,861 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 385 | h | Seek.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "AI/HierarchicalStateMachine.h"
#include "AI/HSMActionNode.h"
#include "../AIRocket.h"
#include "Seek.generated.h"
/**
*
*/
UCLASS()
class LOSTINSPACE_API USeek : public UHSMActionNode
{
GENERATED_BODY()
protec... |
b725269079d4cde8c9d5e97893ce7de0300aef77 | 5b0396267b184faf284f7b74e6dd6c3b54d86736 | /Routing/Router.h | 5f3c44711892be026db351f593889622738a9e1f | [] | no_license | obryanlouis/cs_143_group_project | bb12c21345628b2c72511c3fd0919d59ed199501 | db1bc10e92e1ccdba533db47f7da59fa1f53cb6f | refs/heads/master | 2021-03-12T20:37:42.266332 | 2013-12-11T01:08:14 | 2013-12-11T01:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,947 | h | Router.h | // Router.h
#ifndef ROUTER_H
#define ROUTER_H
#include "Link.h"
#include "Node.h"
#include "RoutingTable.h"
#include <cmath>
#include <stdlib.h>
#include <math.h>
#include <list>
#include <map>
class Link;
class RoutingTable;
class Node;
class Host;
class Router : public Node {
friend void outputRoutingTables(... |
84910b7e78478e71ce55da0c9b4611fef496aa24 | d7b7403f2ebecab746a7caf7f2c0afaa5ba6444a | /Tester.h | ff2afb1642891214d1158039a5ba59acf2513190 | [] | no_license | sphinxme/PCForest | 970c0a304016622b9ba9c8e8b96cc278c6c231cf | 1cec3e31e1a91a19d7b30aa8a9c754f2c5841ba7 | refs/heads/master | 2022-06-05T08:03:39.822787 | 2020-05-02T12:42:23 | 2020-05-02T12:42:23 | 260,642,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | h | Tester.h | #ifndef TESTER_H
#define TESTER_H
#include "Printer.h"
#include "PCForest.hpp"
#include <iostream>
#include <sstream>
#include <cstdlib>
#include <string>
#include <list>
#include <utility>
using std::to_string;
class Tester
{
protected:
Printer printer; // 显示输出相关
PCForest<char> forest; // 数据
std::list<int... |
2de45669c08926572b3c48ce7a01dbfeb0f25be0 | eda342af44649ee72fd0534a12e40dacc8ad3976 | /examples/qmake/main.cpp | 0a9afceb367c1babfa7f16774df81d4704e2223d | [
"MIT"
] | permissive | lineCode/vivid-1 | d2c26164e24f926df7bfa2a1f3787c089a638ac3 | 07085c0f53f76c003f64fa0510253679f007a580 | refs/heads/master | 2020-05-25T07:26:11.340260 | 2019-05-20T14:28:50 | 2019-05-20T14:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,674 | cpp | main.cpp | #include "vivid/vivid.h"
#include <QImage>
#include <QColor>
#include <QDir>
#include <iostream>
#include <functional>
#include <sstream>
#include <fstream>
int main( int, char* argv[] )
{
using namespace vivid;
// debug stuff
// ColorMap cmap( ColorMap::PresetHsl );
// cmap.interpolation = ColorMa... |
88be9cf6c04e44ce94a481d715eb4707bc5c2ba3 | 92418ed0ed1be6558e2f9098858885f238703b60 | /BNAPlatform-win64-cuda-20140905/BNAPlatform-win64-cuda-20140625/src/CorMat/CUCorMat/CUCORMAT/CorMat.cpp | a5b9660288786c53a6c8c5c866e09338a75fa358 | [] | no_license | BNAplatform-organization/codeVSassembly-function | 04875f1e845ec7faabaa173b4e06758062a684e7 | 6b0391a79d6d0806fba8d56904d2ecdbf325cc1b | refs/heads/master | 2020-04-14T05:09:36.023795 | 2015-12-25T12:56:36 | 2015-12-25T12:56:36 | 38,564,118 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,773 | cpp | CorMat.cpp |
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include <ctime>
#include <cmath>
#include <iomanip>
#include "dirent.h"
#include <iostream>
#include <fstream>
#include <stack>
using namespace std;
typedef float real__t;
typedef unsigned int uint__t;
const int HdrLen = 352;
double ProbCut = 0.5;
const ... |
abd973c15aa0d48c82a298ecd849775ec1da5cee | 1fc1c628992be7cc95bc49b428594caf57e0b049 | /cpp files/Tree/Binary Tree/is Heap or not Binary tree.cpp | 21043089dc032386f904b285aebd709ed782bbfd | [] | no_license | av1shek/DSA-NITW | 8150b5646956177fa965a18b2c474db863687705 | fe8219c145fccfaedf0a59867c7d4cc7fb70bdf1 | refs/heads/master | 2023-05-13T21:43:16.393840 | 2021-06-03T09:02:17 | 2021-06-03T09:02:17 | 373,443,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,935 | cpp | is Heap or not Binary tree.cpp | #include<bits/stdc++.h>
using namespace std;
typedef struct btnode *btptr;
struct btnode
{
btptr lchild;
int data;
btptr rchild;
btnode()
{
lchild = NULL;
rchild = NULL;
}
btnode(int k)
{
lchild = NULL;
data = k;
rchild = NULL;
}
};
void ins... |
3ed23585233f71d62a26cc956f396681111fac3e | 0cb5c9a45a4e404b237c850b2bf8ba9d7a11043d | /src/Usuario.cpp | 28321441451d9f260d2ae067934865e6f334d8d9 | [] | no_license | weltonbraga/mp | a1e9f3997e4b5828526c0ef91f020c39279f1a03 | a10bd81319a632dd12332418ed3ca78624d017cc | refs/heads/master | 2021-08-28T07:05:55.304828 | 2017-12-11T14:21:27 | 2017-12-11T14:21:27 | 112,992,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,187 | cpp | Usuario.cpp | #include "Usuario.hpp"
//#define DEBUG
#ifdef DEBUG
#define DEBUG_PRINT(x) do{cout << x << endl;}while(0)
#else
#define DEBUG_PRINT(x)
#endif
Usuario::Usuario() {
}
//(string _nome) : nome (_nome) {
Usuario::Usuario(string login, string nome) {
this->nome = nome;
this->login = login;
//listaAberta = Lista();
}
... |
0364400f7e99364f30049b9bb90d1eab611050c7 | c3d65b9cef25a0daf94e0590ad78f7b3de0410f7 | /server/mod_mysql_config.cpp | b7270bc6a4619a49809c214c646c3a20e012caa2 | [] | no_license | moriyoshi/mod_mysql | 4dcd5f60801e0dba49db9421dea7976dda38b4bf | c41716bd9c4d7da58d8b98b2ef3b7859ff087407 | refs/heads/master | 2016-09-06T02:43:18.533556 | 2014-12-31T09:17:52 | 2014-12-31T09:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,871 | cpp | mod_mysql_config.cpp | /*
* mod_mysql
*
* Copyright (c) 2007 Moriyoshi Koizumi. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
5d80a1842b8b37d8b92e7d647fb275f31852cdfb | 97140400c98e4a7b702486f0c891f9822ce24f81 | /plus-one.cpp | aa620f1a3d20aff398b3b2ba425a2045a1130101 | [] | no_license | Hibiscusofxp/Leetcode-sol | d93d43383ab60fa508b6d358a302c973c8369eca | 6a8377a8d389cc1331079b1022775ff6d0ac285a | refs/heads/master | 2021-01-23T03:43:57.664069 | 2014-03-22T20:00:30 | 2014-03-22T20:00:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | plus-one.cpp |
/**
* plus-one
* http://oj.leetcode.com/problems/plus-one/
* Prob:
*
* Solution:
*
* CAUTION:
*
*/
class Solution {
public:
vector<int> plusOne(vector<int> &digits) {
int idx = digits.size()-1;
while (idx >= 0 && digits[idx] == 9)
{
digits[idx] = 0; // f... |
867fdd9fa8d5571fb976cc51e7aca0ec78cdf5ad | 6da6a59f57713c2ff16a43dd7c3df812e2f3cc29 | /src/core/helper/ADCKeyboardAnalyzer.cpp | dfc3ef461bc981f25a3021b4af7af1a53a982dcd | [] | no_license | stawel/cheali-charger | 4ee3ab1d2bda1db5a46a095289e5aee0acbacaa7 | ecfc5eb35334f433e902d8a3d6a9c8fbdb925342 | refs/heads/master | 2023-07-31T22:37:49.989571 | 2023-05-22T23:40:29 | 2023-05-22T23:40:29 | 5,304,799 | 747 | 288 | null | 2023-04-19T21:12:44 | 2012-08-05T15:58:30 | C | UTF-8 | C++ | false | false | 1,729 | cpp | ADCKeyboardAnalyzer.cpp | /*
cheali-charger - open source firmware for a variety of LiPo chargers
Copyright (C) 2013 Paweł Stawicki. All right reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, eit... |
94a22a17d239451831922d5476fcb3d598f45324 | 82bc1647b5db6b0cf6fe4a1a7c0d988a41d01d65 | /代码随想录/回溯/77.组合.cpp | 6200e1b57f9c15d4d4e94762b7c5480b499d1618 | [] | no_license | QinHaoChen97/VS_C | 8a6bc3f50be17109839bf4474a817244ff5be3e8 | 527c851298a351fe2e417ec014e8ed555bb0fab3 | refs/heads/master | 2023-05-25T15:00:09.594020 | 2023-05-03T15:27:56 | 2023-05-03T15:27:56 | 211,770,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | 77.组合.cpp | /*
* @lc app=leetcode.cn id=77 lang=cpp
*
* [77] 组合
*/
// @lc code=start
#include<vector>
using namespace std;
class Solution {
public:
vector<int> path;
vector<vector<int>> ans;
vector<vector<int>> combine(int n, int k) {
if(n<k || k==0)
{
return {};
}
dfs(1... |
e911616229d05df717d704919afb127a993afd53 | 7e62f0928681aaaecae7daf360bdd9166299b000 | /external/DirectXShaderCompiler/tools/clang/test/CXX/class.access/class.friend/p2-cxx03.cpp | 4475b7ac919dfd573299dcd90455e3d2df957be9 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yuri410/rpg | 949b001bd0aec47e2a046421da0ff2a1db62ce34 | 266282ed8cfc7cd82e8c853f6f01706903c24628 | refs/heads/master | 2020-08-03T09:39:42.253100 | 2020-06-16T15:38:03 | 2020-06-16T15:38:03 | 211,698,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | cpp | p2-cxx03.cpp | // RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T>
class X0 {
friend T; // expected-warning{{non-class friend type 'T' is a C++11 extension}}
};
class X1 { };
enum E1 { };
X0<X1> x0a;
X0<X1 *> x0b;
X0<int> x0c;
X0<E1> x0d;
|
d405a867c1e906f776992b3d1272680ea12195b5 | 85036702b83baa83f89bf295b3b01db1dbd5cc96 | /Barbarian.hpp | 8fdde2cc51bb121a33c99e25f9e2e8c48e7910b9 | [] | no_license | Matteo-Grellier/RPG | 491e6f1325a65dea31d3720c115ade935b868a6c | 0fe3dc431fa17fa2f4000255d1eada1f1283e745 | refs/heads/main | 2023-05-29T02:58:33.732430 | 2021-06-13T22:12:42 | 2021-06-13T22:12:42 | 370,978,271 | 2 | 0 | null | 2021-06-13T21:59:02 | 2021-05-26T09:29:43 | C++ | UTF-8 | C++ | false | false | 448 | hpp | Barbarian.hpp | #ifndef BARBARIAN_HPP
#define BARBARIAN_HPP
#include "./Character.hpp"
#include <string>
#include "./Exceptions.hpp"
using namespace std;
class Barbarian : public Character {
private:
int baseAttack;
int baseDefense;
bool inFury;
public:
Barbarian(string name);
void enterFury();
void ... |
26950d82ded9a648f046086e6ebf7570286da3dd | d6b4bdf418ae6ab89b721a79f198de812311c783 | /cvm/include/tencentcloud/cvm/v20170312/model/CreateLaunchTemplateVersionRequest.h | 8d135b9f135cc7054ef8bdf60f3c6e2052f2f5b1 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp-intl-en | d0781d461e84eb81775c2145bacae13084561c15 | d403a6b1cf3456322bbdfb462b63e77b1e71f3dc | refs/heads/master | 2023-08-21T12:29:54.125071 | 2023-08-21T01:12:39 | 2023-08-21T01:12:39 | 277,769,407 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 69,818 | h | CreateLaunchTemplateVersionRequest.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
531ce259efe3242d007df0aab57126cec09745a5 | 2c844f90175901f9fd0909111e5780d73ec3390d | /Utility.h | 1b7952f49399f6ca5393d8e0433c2bdbddc1c965 | [] | no_license | UthTech/AlamoExporter | f121ffe867a31b8dc76d70226e27648443dc11c3 | e1d06fc9743672bc3d077b239cd5d4837649ff3a | refs/heads/master | 2020-05-04T06:24:49.899410 | 2017-03-16T14:58:16 | 2017-03-16T14:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | h | Utility.h | #pragma once
#include <Mesh.h>
#include <vector>
struct VertFaceRelation
{
public:
VertFaceRelation(short orgID_);
short orgID;
int faceID;
};
class Utility
{
public:
static void ComputeFaceNormals(Mesh *mesh, std::vector<Point3> &normals);
static void generateAdjacencyList(Mesh *mesh, std::vector<std::vector<i... |
2a57a4baf127705cf9fdbb5e21e89555b48668d5 | 7fb3a189db85093a05032a20278395d91c54c74d | /IECTimer/examples/TON/TON.ino | 78a83cb2ad7df7f596cc19a876db4407d5b4d643 | [
"MIT"
] | permissive | AndreSantos3/Arduino | e421f9c2f5206dbc11450300a156f0519ce87995 | 889df9ee8f11eac4adf32eb78b93a0995dfc1a41 | refs/heads/master | 2021-05-21T05:34:44.546283 | 2020-04-07T19:55:14 | 2020-04-07T19:55:14 | 252,568,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | ino | TON.ino | /* This example shows how to make a delay using the IEC TON
The timer time (ET) rises while the Start is true and Reset is false
When the defined time (PT) is lower than the rising time, the output is true
TON time diagram
.........................................
. +--------+ +-+ ... |
730f1bfc1111968ca099f6f826345d00a1ab1205 | 39a1d46fdf2acb22759774a027a09aa9d10103ba | /inference-engine/src/vpu/common/include/vpu/utils/containers.hpp | 745613c977ece80ad0196c853f0ffbee5a0d7bf3 | [
"Apache-2.0"
] | permissive | mashoujiang/openvino | 32c9c325ffe44f93a15e87305affd6099d40f3bc | bc3642538190a622265560be6d88096a18d8a842 | refs/heads/master | 2023-07-28T19:39:36.803623 | 2021-07-16T15:55:05 | 2021-07-16T15:55:05 | 355,786,209 | 1 | 3 | Apache-2.0 | 2021-06-30T01:32:47 | 2021-04-08T06:22:16 | C++ | UTF-8 | C++ | false | false | 1,332 | hpp | containers.hpp | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <vector>
#include <algorithm>
#include "error.hpp"
namespace vpu {
template<class Key, class Value, template<class...> class Map>
inline std::vector<Key> getKeys(const Map<Key, Value>& map) {
auto keys = std... |
a8daadbd0ce69dfb8c1f979add370ef26274e43a | 995d997ad8d9e7680766f32e03415693dba97136 | /phoenix/nall/mosaic/parser.hpp | 15f494795eaa31624c05ae2ee42715bb831d0cd7 | [
"ISC"
] | permissive | sorlok/Dubious-Dabblings | 3c80c3ff02dd0ba19d53d38413d63edd301376e9 | 21a661fe6b709627318522b63512df93f1ac7dac | refs/heads/master | 2020-05-31T06:27:33.481495 | 2012-02-24T01:34:11 | 2012-02-24T01:34:11 | 2,095,911 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,401 | hpp | parser.hpp | #ifdef NALL_MOSAIC_INTERNAL_HPP
namespace nall {
namespace mosaic {
struct parser {
image canvas;
inline void importData(bitstream &stream, uint64_t offset, context &ctx, unsigned width, unsigned height) {
canvas.allocate(width, height);
canvas.clear(ctx.paddingColor);
parse(1, stream, offset, ctx, w... |
e93c79b7f730e0cec12909456b28e5e87eacf97d | 88b130d5ff52d96248d8b946cfb0faaadb731769 | /configd/src/apps/sentinel/output-connection.h | 39ed43f26e418263d7600ca3dd046421d6309232 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vespa-engine/vespa | b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb | 1f8213997718c25942c38402202ae9e51572d89f | refs/heads/master | 2023-08-16T21:01:12.296208 | 2023-08-16T17:03:08 | 2023-08-16T17:03:08 | 60,377,070 | 4,889 | 619 | Apache-2.0 | 2023-09-14T21:02:11 | 2016-06-03T20:54:20 | Java | UTF-8 | C++ | false | false | 686 | h | output-connection.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "line-splitter.h"
namespace ns_log { class LLParser; }
namespace config::sentinel {
class OutputConnection {
private:
int _fd;
LineSplitter _lines;
ns_log::LLParser *_parser;
... |
6d08b26b3cdfffea16a56a4c15e8cd5b55b399fb | 54eb164a26f83c6063ab666f75ada84246dca9cf | /QtQuickSimple/build-StmComPort-Desktop_Qt_5_9_1_MinGW_32bit-Release/release/qrc_params.cpp | b00ae91543529465d133d9c7f50ff8b5a73428d2 | [] | no_license | Nonmant/Qml-Cpp-Simple-TableView | 2f220a8b4528c2dc95e939cb243667bb911af81d | 44578a5556f09cd69f02000d77303da36f6e89de | refs/heads/master | 2021-07-09T02:53:04.968519 | 2021-03-24T09:22:19 | 2021-03-24T09:22:19 | 235,387,931 | 3 | 2 | null | 2021-03-24T09:22:20 | 2020-01-21T16:27:07 | C++ | UTF-8 | C++ | false | false | 15,604 | cpp | qrc_params.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.9.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static con... |
c9cdc10262b8ab78e8e5ca1e43cadbf2e4d07d8e | 2e3d9d4b286b7b3d0b367181f5d1c2c154fb9b28 | /Regex/main.cpp | 1609038881a06f60e279c2a8e146439da07a0cfe | [] | no_license | squirrelClare/algorithm_cplusplus | 8237baf5cea6f79889eaad6360b2dadd7a1b3624 | 312a63851182962d014b6b5fba28bdd51decb033 | refs/heads/master | 2021-01-10T03:38:40.434217 | 2015-10-22T17:36:57 | 2015-10-22T17:36:57 | 44,685,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,117 | cpp | main.cpp | #include <QCoreApplication>
#include<iostream>
#include<string>
#include<
using namespace std;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
//c风格的字符串
char text1[]="dadasd";
cout<<sizeof(text1)<<endl<<strlen(text1)<<endl;
char* text2="dadasd";
cout<<sizeof(text2)<<endl<... |
baf60cc0811eea52b03190539129fd3d6b425a00 | 917196862018eeef7197a2767684b00453ce29f6 | /Classes/Rook.hpp | cdbe230aed3e84da3c9a78824a15dd1674e956c1 | [] | no_license | santos-lucasm/Game_Chess | b997d9edeb26ef8cc07455e2af620d22984bd987 | b34df45921e455504531339b6b0b7c031ae90a70 | refs/heads/master | 2022-06-03T23:38:57.542073 | 2020-05-03T14:49:39 | 2020-05-03T14:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,136 | hpp | Rook.hpp | #ifndef ROOK_H
#define ROOK_H
#include "Piece.hpp"
class Rook: public Piece {
public:
Rook(char a, bool b): Piece::Piece(a, b){}
private:
virtual char GetPiece(){ return 'R'; }
bool IsLegalMove(int LinI, int ColI, int LinF, int ColF, Piece* mat[8][8]) {
if (LinI != LinF && ColI == ColF) {//movimento vert... |
a9049c0e5bbf941dfd1ae8e4b148124d0a7aba2e | 0e7ad8176a57024f341d032b1427346ab356a433 | /include/ElseCondition.h | 3a359b0b1b717c94ec43000e64d429a4868a8b97 | [] | no_license | yannfok/datamlang | 6946626617db8928283342b4bdfc324ef51a8267 | c2597509dce24b6db00b6d450b289890d75b7213 | refs/heads/master | 2023-06-17T08:42:46.326042 | 2021-07-15T20:02:11 | 2021-07-15T20:02:11 | 379,914,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | h | ElseCondition.h | //
// Created by yanni on 15/07/2021.
//
#ifndef HELLO_ELSECONDITION_H
#define HELLO_ELSECONDITION_H
#include "KeyWord.h"
class ElseCondition : public KeyWord {
public:
ElseCondition(std::string identifier,std::map<std::string,std::string> __JSTranslation);
protected:
std::string parse(std::string content)... |
6232cbcffd1dcbc26ce2ec9d27ff818011c7bebd | d54f8df0b27184d07be7512b24183838a5b4be2c | /config/EvrEventCodeTable_V6.cc | 88252d4148bae183898a86e5e96b789961dfc2b2 | [] | no_license | lcls-daq/pdsapp | 52b038e39ed16f2fa4630f234bf16615586693b1 | 902602c4a7ee46dd07eff665d1ff161fd1762680 | refs/heads/master | 2023-09-01T05:12:45.568931 | 2023-08-17T10:14:54 | 2023-08-17T10:14:54 | 87,125,541 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,603 | cc | EvrEventCodeTable_V6.cc | #include "pdsapp/config/EvrEventCodeTable_V6.hh"
#include "pdsapp/config/Parameters.hh"
#include "pdsapp/config/EvrSeqEventDesc_V6.hh"
#include "pdsapp/config/EvrGlbEventDesc_V6.hh"
#include "pdsdata/psddl/evr.ddl.h"
//#include "pds/config/SeqConfigType.hh"
#include <QtGui/QCheckBox>
#include <QtGui/QGridLayout>
#inc... |
2089feddb92b85c6596482a5f79d729209337bca | 27f920ad4407e685f9315fc6c260e6e5a237b010 | /Cells2/WorldSettings.cpp | 0bb3daaafbdd58d586be60a4c8846fb9972e4139 | [] | no_license | philippe554/CellSimulator1 | 89418097f1d39bd7be7123d8269949d5c1f328f4 | 82a3f2c0b804a47bda23d54bdb9dbe8e15a41f5b | refs/heads/master | 2021-01-01T15:53:04.761515 | 2017-12-13T20:53:38 | 2017-12-13T20:53:38 | 97,723,015 | 0 | 0 | null | 2017-12-13T19:11:06 | 2017-07-19T14:02:27 | C++ | UTF-8 | C++ | false | false | 772 | cpp | WorldSettings.cpp | #include "WorldSettings.h"
WorldSettings::WorldSettings()
{
particleProtoType[p_hydrogen].init(1.0, false, 0, 0, 80);
particleProtoType[p_carbon].init(10.0, false, 0, 0, 5);
particleProtoType[p_oxygen].init(12.0, false, 0, 0, 10);
particleProtoType[p_nitrogen].init(14.0, false, 0, 0, 5);
float sum = 0;
for (int... |
7ec9f73258e1c14fcad41205ab86d129b6d22caf | 9a266c4a101ce7174081debec864c38892c5003c | /CoffeeDisplay/SerialPort.cpp | 814ec9f9d73d781f375942bf0840cc9ffaf5e2f6 | [] | no_license | Tomek-Stolarczyk/CoffeeRoaster | 2e9c2528b788c3bff952c9253ccdc9f91872496d | e212fdbf811d43340d6ad24d34224032ffeb1f1c | refs/heads/master | 2020-03-20T19:10:37.091447 | 2019-11-29T04:50:40 | 2019-11-29T04:50:40 | 137,625,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,662 | cpp | SerialPort.cpp | #include "SerialPort.hpp"
#include <assert.h>
#include <stdio.h>
namespace
{
void PrintCommState(DCB dcb)
{
// Print some of the DCB structure values
printf("BaudRate = %d, ByteSize = %d, Parity = %d, StopBits = %d\r\n",
dcb.BaudRate,
dcb.ByteSize,
dcb.Parity,
dcb.StopBits);
}
}... |
e3fb201d099e9bd8b82d4028767198ddf9747e55 | 6d80943b95a86ac7f00c1061fc8f615c68acff0e | /Server/Server/Server/tcpServer.h | a11a3c46ce4b09b5d17ac7832859baae34e2a3a6 | [] | no_license | horoyoii/Distributed_File_System | ce36565b7256ba035c05a5866d090a2a82fc31ec | ad5ad9bb9ef41e8ddbc411c63e0b8e697b89daf0 | refs/heads/master | 2020-04-30T18:02:32.429900 | 2019-05-21T06:17:58 | 2019-05-21T06:17:58 | 176,998,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | h | tcpServer.h | #pragma once
#include"pch.h"
#include"tcpConnection.h"
class tcpServer : private boost::noncopyable {
private:
boost::asio::io_context io_context;
boost::asio::ip::tcp::acceptor acceptor;
public:
typedef boost::shared_ptr<tcpConnection> ptrTcpConnection;
tcpServer(unsigned short port);
void handleAccept(ptrTcpC... |
1e9df9c7acb8d53d7c7220c7c546f4cc8fd73d65 | 045ad86b79d87f501cfd8252ecd8cc3c1ac960dd | /RxConcurrent/ThreadPool/RxThreadPoolFactory.h | 4cffb58221d675a19318f31b46215499bd2478e7 | [
"MIT"
] | permissive | intact-software-systems/cpp-software-patterns | 9513e4d988342d88c100e4d85a0e58a3dbd9909e | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | refs/heads/master | 2020-04-08T08:22:25.073672 | 2018-11-26T14:19:49 | 2018-11-26T14:19:49 | 159,176,259 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,674 | h | RxThreadPoolFactory.h | #pragma once
#include"RxConcurrent/ThreadPool/RxThreadPool.h"
#include"RxConcurrent/Export.h"
namespace BaseLib { namespace Concurrent
{
class DLL_STATE RxThreadPoolFactoryPolicy
{};
class DLL_STATE RxThreadPoolFactoryState
{
public:
//RxThreadPoolFactoryPolicy::DefaultRxThreadPoolFactoryCachePolicy cachePolicy... |
37b176502054ed3e298f6d7d59bfb96e816c22ff | f9f37252b7c0462e477c0501c2a85de7fd5e05c7 | /Source/TauProject/MarketPlace/MarketItem.h | a415d8451d3841c26dffadf1cee9f12dd7580b83 | [] | no_license | JLLDeGroat/Tau | 0238c2ec8100ae593fbdd4de9177e23b9e15a9d7 | 73c030e4eda6dcccedea4c13cc94f6493cb4beb6 | refs/heads/master | 2020-03-19T06:27:39.591268 | 2018-12-28T12:24:00 | 2018-12-28T12:24:00 | 136,022,252 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,733 | h | MarketItem.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "PlayerResource/All.h"
#include "MarketConversionItem.h"
#include "UObject/NoExportTypes.h"
#include "MarketItem.generated.h"
/**
*
*/
UCLASS(Blueprintable)
class TAUPROJECT_API UMarketItem ... |
2f8f468b1bfaeafc6395f00f9f5d78212736f58d | 9eb09df4b752204add5c07103eba3731b1dc489f | /mydb.cpp | 9268288ed93b4936326add61c74be39305752d56 | [] | no_license | CenJieTeng/Tetris-Server | 294850088f89f9ae5d355751ef524c0b619f0bc0 | 0c746bacd3d25f19c6956ef10ad1dfdc83e1e557 | refs/heads/master | 2020-05-07T12:35:03.447042 | 2019-06-29T07:03:33 | 2019-06-29T07:03:33 | 180,511,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,993 | cpp | mydb.cpp | #include "mydb.h"
extern const char *OutPutFileName;
Mydb::Mydb() : res(nullptr){
//初始化 并 连接数据库
mysql_init(&connection_);
if ( !mysql_real_connect(&connection_, "localhost", "lbt", "5656", "tetris", 3306, 0, CLIENT_FOUND_ROWS) ){
Logger logger(OutPutFileName);
logger << " Database conne... |
8484799f26d05876b4d6b13562dabb2bdb1eac42 | ee88f4b68b334910a900c539594012a630921051 | /Clinic.h | 245c5b52326164fcc758ce6a6ba1d597339b62a6 | [] | no_license | errob/sep18 | 36a6eb8e9c85deb55dcdf301d3bec82e90360ee9 | 9821c879c71a2bbd95b871da07f01d45e554f9d4 | refs/heads/master | 2022-02-24T13:41:39.673484 | 2019-04-10T20:16:36 | 2019-04-10T20:16:36 | 180,656,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,180 | h | Clinic.h | //------------------------------------------------------------------------------
// Clinic.h
//
// Group: Group 18622, study assistant Roman Walch
//
// Authors: Christina Dionysio (01610877)
// Johannes Mayerhofer (11739820)
// Robert Ertl (01114419)
//----------------------------------------------------------... |
8607bbe0202ddbfa7700a4653ea344f77843f0f0 | 0efb71923c02367a1194a9b47779e8def49a7b9f | /Oblig1/les/1.03/phi | 8aa45bb68305e653b266b82c683b628fbba07c41 | [] | no_license | andergsv/blandet | bbff505e8663c7547b5412700f51e3f42f088d78 | f648b164ea066c918e297001a8049dd5e6f786f9 | refs/heads/master | 2021-01-17T13:23:44.372215 | 2016-06-14T21:32:00 | 2016-06-14T21:32:00 | 41,495,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214,118 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
66477fca6fddbbaabf10cac3524b75244d23a82d | 7f076778470fc5d7f2e8e573be5088d621c78cb6 | /Sharing/Src/Source/Common/Private/Utils/ScopedLock.cpp | 305ad68f9cc3f6bc5e2437ac618b4534d5aa81a6 | [
"MIT"
] | permissive | jochao/HoloToolkit | bbc76b0bb397d57024beea7121bab9d5466be75f | 156ec419befab3ad13a32960539f11425906afdb | refs/heads/master | 2021-01-18T10:42:10.114351 | 2016-07-07T19:38:14 | 2016-07-07T19:38:14 | 62,741,898 | 0 | 0 | null | 2016-07-06T17:51:45 | 2016-07-06T17:51:44 | null | UTF-8 | C++ | false | false | 540 | cpp | ScopedLock.cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
//////////////////////////////////////////////////////////////////////////
// ScopedLock.cpp
/////////////////////////////////////////////////////////////////////////... |
47d12a20da89068042cbdc5304e09b1367f9bec2 | 7e068f1f7128a0ce45985dcf70ad5100792aa2cf | /Project/Code/src/BIGFile.h | bc065ff04af2671cc2ae73c73ea982909c061145 | [
"MIT"
] | permissive | TheSuperHackers/GeneralsBigCreator | 4c3ebbec8fe1f38045167ada5d20b8e0669271ed | c7e43fac575484262340d250c14eaef7bf5d95f9 | refs/heads/main | 2023-08-14T06:53:43.901600 | 2021-09-22T17:27:28 | 2021-09-22T17:27:28 | 352,351,573 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,019 | h | BIGFile.h | #pragma once
#include <string>
#include <vector>
#include <fstream>
#include "types.h"
#include "utildef.h"
#include "smartptr.h"
// --- BIG HEADER
// .BIG signature (4 bytes) - it must be 0x46474942 - 'BIGF'
// .BIG file size (4 bytes)
// FILE HEADER count (4 bytes)
// BIG HEADER + FILE HEADER (count) + LAST HEADER ... |
8322e89c350c939ff7175bd7ab29bcef8617b003 | cd17c6e4b295e5e137e5e9db3c9f351b61d0934c | /queue_memory.cpp | 9798a619f0063d0f902aab82c0aa489b74f0064b | [
"MIT"
] | permissive | piovano/queue | 4a08919f805f9bdc1d3570293ed1256449533a12 | d792653da136852461bad8e9c60f7c49e2c71120 | refs/heads/master | 2021-01-02T09:09:10.323111 | 2014-08-11T08:53:19 | 2014-08-11T08:53:19 | 22,832,714 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,853 | cpp | queue_memory.cpp | /*
作者:Piovano
日期:2014.05.26
版本:1.0
描述:内存队列
*/
#ifndef _QUEUE_MEMORY_C
#define _QUEUE_MEMORY_C
#ifndef _QUEUE_MEMORY_H
#include "queue_memory.h"
/*
函数:构造
参数:队列最大长度
*/
MemoryQueue<void>::MemoryQueue(unsigned long maxLength) {
_maxLength = maxLength;
_queue = new MemoryBlock[_maxLength];
_head = _queue;
_tai... |
9bb201c9912736bba79c44ec5b15dfb22b3453eb | e51d009c6c6a1633c2c11ea4e89f289ea294ec7e | /xr2-dsgn/sources/xray/physics/sources/collision_shapes.cpp | c60d1b33f5d8e6b124bc15d937f6be329dc8405b | [] | no_license | avmal0-Cor/xr2-dsgn | a0c726a4d54a2ac8147a36549bc79620fead0090 | 14e9203ee26be7a3cb5ca5da7056ecb53c558c72 | refs/heads/master | 2023-07-03T02:05:00.566892 | 2021-08-06T03:10:53 | 2021-08-06T03:10:53 | 389,939,196 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,656 | cpp | collision_shapes.cpp | ////////////////////////////////////////////////////////////////////////////
// Created : 09.09.2011
// Author : Andrew Kolomiets
// Copyright (C) GSC Game World - 2011
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include <xray/physics/collision_shapes.h>
#include "b... |
7670f3cddadab9d9c6d71912dbd76404a821640f | 50ddcb8160a442b86da3abed45a05dd31a47fa19 | /GTEngine/Include/GteWindow.h | 042f8fbf3905c1ce0e4ccb3638acee8ce6653284 | [] | no_license | luca-penasa/GeometricTools | 753df5909e58511dd0b13009aeeee4333170602f | f3fe5b0c344d192fcdc6ab65ab6520f95ba3b89a | refs/heads/master | 2020-04-02T03:03:53.888772 | 2018-10-09T16:29:49 | 2018-10-09T16:29:49 | 63,415,831 | 0 | 0 | null | 2016-07-15T11:04:52 | 2016-07-15T11:04:51 | null | UTF-8 | C++ | false | false | 12,318 | h | GteWindow.h | // Geometric Tools LLC, Redmond WA 98052
// Copyright (c) 1998-2015
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 1.0.3 (2014/12/13)
#pragma once
#include "GTEngineDEF.h"
#include "G... |
3b9336f6f5d0de55fd7a9e8c34fa9f994000052f | 61d564820f8a0ee90aba330ceb26f11cca789004 | /167InputSumII/main.cpp | 85696ed50cb3aaf16755d1ef85b9aefc970ac026 | [] | no_license | xiaoniaoyou/leetcode | 37bd48af36d29e1c8b01632bcf899b59245fcd11 | 56871a3eea53c85bfd892e87b268bf4535df3816 | refs/heads/master | 2020-04-29T03:58:12.807119 | 2019-03-26T09:26:11 | 2019-03-26T09:26:11 | 175,830,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,259 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
// vector<int> twoSum(vector<int>& numbers, int target) {
//// int low = 0, high = numbers.size() - 1;
// vector<int> result;
// int rest;
// for (int i = 0; i < numbers.size(); ++i) {
// res... |
4f15571e275dca8f44f7c9631dc4c568f3ead708 | ba2cfdc768a82d02b89153a2435b6b97ee9fa6dd | /include/ppr/backend/requests.h | 98c8e3a5b9a27c25497b704d3d3fcf585be86209 | [
"MIT"
] | permissive | motis-project/ppr | 5462d9626b90f7586b065ba7e5fe1a0951937d9f | 7a4d4fdd0b0b6c75adf38d0a85c40e933815f5a1 | refs/heads/master | 2023-09-01T02:52:59.947388 | 2023-08-22T16:09:38 | 2023-08-22T16:09:38 | 247,506,347 | 5 | 5 | MIT | 2023-08-22T16:09:40 | 2020-03-15T16:33:59 | C++ | UTF-8 | C++ | false | false | 643 | h | requests.h | #pragma once
#include <vector>
#include "ppr/common/location.h"
#include "ppr/routing/input_location.h"
#include "ppr/routing/search_profile.h"
namespace ppr::backend {
struct route_request {
ppr::routing::input_location start_;
ppr::routing::input_location destination_;
ppr::routing::search_profile profile_;... |
71af9ba2d47e20f41c299e477e7d6c36b4dfef6d | 2b0c8a66c4062793d119f168235f027b2e52cb28 | /leetcode dsa bootcamp kunal kushwaha/bit manipulation/18. XOR wueries of a sub array.cpp | e307c5b2014c621ee63fe92fba31f1374072aee5 | [] | no_license | ibhawna/PRACTICE-DS | 37cd20605e340e3466f013f4a7f102f0e720d860 | 7b88b7e52812b9cec3d2a9d33bd8a24d9ef5d45d | refs/heads/main | 2023-09-04T21:27:02.271256 | 2021-10-17T08:31:58 | 2021-10-17T08:31:58 | 396,265,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | cpp | 18. XOR wueries of a sub array.cpp | vector<int> xorQueries(vector<int>& arr, vector<vector<int>>& queries) {
vector<int> ans;
for(int i =1; i < arr.size(); i++){
arr[i] = arr[i] ^ arr[i-1];
} //prefix xor sum
for(int i = 0; i< queries.size(); i++){
int n = queries[i][0];
int m = queries[... |
aa0e89687f527ffe6f570bdaab8f5617ff13825e | 5f70e6186243ce22df5691a03b7cc92869f1876e | /코드/button.h | 260a71f9ef6cfc25b446197b4c4f58d19c2b6c77 | [] | no_license | young-cod/StoneShard- | e3a8038069c6e9d9f45503d27c399f7b79bc895f | 0fe4c9ebf851c73fadfb0af9acc1bce81c96b023 | refs/heads/master | 2023-08-05T16:49:26.749921 | 2021-09-20T08:29:38 | 2021-09-20T08:29:38 | 408,364,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | button.h | #pragma once
#include "gameNode.h"
class button : public gameNode
{
private:
image* _img;
RECT _rc;
RECT _description;
bool _isClick;
public:
button();
~button();
HRESULT init();
HRESULT init(image* img);
void release();
void update();
void render();
void imageSet();
RECT getRECT() { return _rc; }
voi... |
c7c9766777e2bd8015be21eeed672c24dfa0af1a | c0120490cd9d0fd98a835eb1e495020356778dfd | /48hrs/Fan.h | 4680462166fde224f9d507196f7612c0c662773a | [
"MIT"
] | permissive | wgoddard/fab-48hr-game-jam-2009 | 5a8f1e80fe3f7585547b8e5d4a77047fbe93b264 | 5f7d41b38a117d1abc159651fc23a0e736d49d4a | refs/heads/master | 2021-01-19T17:14:01.770361 | 2014-03-16T09:59:46 | 2014-03-16T09:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | h | Fan.h | #pragma once
#include "Enemy.h"
class Fan :
public Enemy
{
private:
int m_Target;
hgeRectExt m_TargetBox;
float m_Angle;
float m_AngleTarget;
float m_Timer;
public:
Fan(const char filename[], int x, int y, int w, int h, float scalex = 1, float scaley = 1, int hp = 1, int damage = 1, bool isboss = false);
virtu... |
3c34c5ebc1d99b73d08d4efc1623d4da4db53699 | 5c5f703a5acd719c0ce9931728a87d40cd3c4844 | /src/GameState.cpp | c696ec00c67c6027066e12aad1391144af8a79dd | [] | no_license | kevinnsun/pacwoman | 50f0cc067f784e34897688f892dcdc35fbde33a6 | 4619d1a8b056cab5f65a0f328885f830a54c3e68 | refs/heads/master | 2020-04-08T13:15:16.306314 | 2018-11-30T22:26:01 | 2018-11-30T22:26:01 | 159,382,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,835 | cpp | GameState.cpp | #include "GameState.hpp"
#include "Game.hpp"
#include <cmath>
#include <iostream>
/*!
\brief "center Origins: template to center the text"
\param "drawable object"
*/
template <typename T>
void centerOrigin(T& drawable)
{
sf::FloatRect bound = drawable.getLocalBounds();
drawable.setOrigin(bound.width/2, bound.... |
edca4d03002b92df1a2b934781dbe2489e82d195 | b69c953e65558112b10cb22763900ff911bc7284 | /vombatlib/ccoutofcore/ccCalibrationModel.h | 4fbee687039e26b39549f7bd3a3dfe60766261be | [] | no_license | luca-penasa/vombat | 948e169b8e0537ef2bb1e99f197e7cda2d6267b1 | 4cd70a7ebba5f0e83c88537889712bdd8523e282 | refs/heads/master | 2021-01-18T23:38:47.659544 | 2018-07-27T09:27:15 | 2018-07-27T09:27:15 | 15,020,646 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 754 | h | ccCalibrationModel.h | #pragma once
#ifndef CC_CALIBRATION_MODEL_H
#define CC_CALIBRATION_MODEL_H
#include <ccoutofcore/ccSPCElementShell.h>
namespace spc {
spcFwdDeclSharedPtr(Attitude)
}
///
/// \brief The ccAttitude class gives a qCC-valid representation of a geological attitude
///
class ccCalibrationModel : public ccSPCElementShell {... |
16afa12066722e0f1d5016cf4ed7c4edd99f26e4 | dea43ebf74c609839aff54d3c8983f93576a1efd | /CES-11/02/nodeAdtSet.cpp | c374902bb391217bee83b3f42eed74326d214043 | [] | no_license | ScharanCysne/ITA | 8be86c874ce1bd265b7bed21f7f6f43451509f93 | cac9539f800ce7788e75c3556ae6b6dde4737115 | refs/heads/master | 2023-01-07T09:24:31.397792 | 2022-12-26T22:22:26 | 2022-12-26T22:22:26 | 172,763,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,972 | cpp | nodeAdtSet.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct position_t{
};
struct set_t{
};
/** Funções indepentes das estruturas de dados **/
void adt_initSet(set_t *)
/*
Inicializa uma lista-conjunto vazia pronta para novas inserções.
*/
int adt_element(set_t, position_t)
/*
Retorna o elemento da l... |
00b1bc1fd84a1f7573866578ef607c1902c1ebdd | a57d8437088ac1eb627169ed82c4bbc8e8f3447a | /Kernel_Linux/ss/src/core/logic_loop.h | 4f59741e92cab24457665842bcfc8ef4c1968f95 | [] | no_license | linchendev/kernel | 7a74ac4ab5fddaede0f7eb94527fd2e60ba147cc | 3f5e76dbb15bef9a57dcbd1e924e38ac3bf1a15b | refs/heads/master | 2021-05-26T17:27:43.499709 | 2013-08-21T09:22:54 | 2013-08-21T09:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,634 | h | logic_loop.h | //
// core - server core source code.
//
// $Rev: 5992 $
// $Author: $
// $Date: 2012-03-15 15:24:40 +0800 (鍛ㄥ洓, 2012-03-15) $
//
// Define class LogicLoop.
//
#ifndef __LOGIC__LOOP__H
#define __LOGIC__LOOP__H
#include <set>
#include "core/event_loop.h"
#include "core/base/boundless_entity_ring_queue.h"
#include "co... |
6512dbbabad81d0b536df4942bbbfa315bca7b32 | c071863a05d23461493a5e5ca021489c8275fd84 | /erts/emulator/asmjit/core/virtmem.cpp | ba02fa7a782e55051055cb95bf21c87bfdb002a2 | [
"Apache-2.0",
"Zlib"
] | permissive | spawnfest/eep49ers | 06a8b55a55256d0404e72e62bd2d498e8bccc938 | 2fa5789fe176661ae86283663d3e86b0c991b0ce | refs/heads/eep-49 | 2023-08-01T11:27:26.809499 | 2021-09-19T23:18:39 | 2021-09-19T23:18:39 | 406,154,995 | 14 | 1 | Apache-2.0 | 2021-09-19T22:34:18 | 2021-09-13T23:06:36 | Erlang | UTF-8 | C++ | false | false | 22,467 | cpp | virtmem.cpp | // AsmJit - Machine code generation for C++
//
// * Official AsmJit Home Page: https://asmjit.com
// * Official Github Repository: https://github.com/asmjit/asmjit
//
// Copyright (c) 2008-2020 The AsmJit Authors
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the... |
41a49631ff54724ac17e4b74389eccee69a3f66b | ece0cdf513db6224babbd58e4563c714477b18ba | /GenerateParentheses.cpp | 7ebb7b6eafb2b56c2eebb9bd77157753f8d77ec2 | [] | no_license | muuuuuua/leetcode | 1e8abf313084c7c2dbb8450415c064b0c3759956 | 3087fbe29d85ecdb6d4763a071b13da2ba308c9a | refs/heads/master | 2020-12-25T17:05:38.606808 | 2016-10-27T06:07:16 | 2016-10-27T06:07:16 | 55,980,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | GenerateParentheses.cpp | /**
* 22. Generate Parentheses
*/
#include "inc/common.h"
void generate(int n, int left, int right, string temp, vector<string> &res) {
if(left == n) {
while(right < n) {
temp += ')';
right++;
}
res.push_back(temp);
return;
}
if(left == right) {
... |
0191a9c59860675a089a267733b44fff52048075 | aaaf7d7432781e9c25ef35d50b9af3e570774d78 | /PrimeGeneration/prime_generating.h | a20af8709e155e594c2a12695e1a5e258b3d668a | [] | no_license | jltong/RSA_Cryption | ba95912938d9fc103cea08fd1db591169445fa2c | 59346323d978fba4376b1ca34ceeca2601498b49 | refs/heads/master | 2016-09-05T13:40:44.396718 | 2013-07-30T15:24:32 | 2013-07-30T15:24:32 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,679 | h | prime_generating.h | /*********************************************************************
应用米勒拉宾算法生成大素数
在计算逆元时,总把最高位(MAXLEN-1)作为符号位
*********************************************************************/
#include <iostream>
#include"global_function.h"
using namespace std;
using namespace global_function;
struct Coeffitient
... |
8f3ef4e299b285db3bf3824bc75b23b1afd2502d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2645486_0/C++/iloahz/b.cpp | d3327d68610890fca6d75655b4b788d1ea4f4c23 | [] | 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 | 1,432 | cpp | b.cpp | #include <map>
#include <set>
#include <cmath>
#include <vector>
#include <cstdio>
#include <string>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;
const int MAXN = 15;
const int INF = 1 << 29;
const long long MOD = 55566677ll;
const int dx[] = {-1, 0, 0, 1, 1, 1, -1, -... |
2bfa35358ca0fc98389503bc3cc64534847ca8a1 | 75a0adde1699190dd79795ad576f05f842c687f2 | /Studys/Cpp/thread2.cc | 67316a1a7c3691f07c1b54139a76e0d2efc4470f | [] | no_license | ifquant/CXX | a429dd5157bd5c6784c09405d091ae02234abf9a | 80b195c70e0b6ff300541087d5cc9deada9f4be2 | refs/heads/master | 2020-04-04T13:24:17.566561 | 2018-11-15T19:28:46 | 2018-11-15T19:28:46 | 155,960,699 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | cc | thread2.cc |
/* ====================================================
# Copyright (C)2018 All rights reserved.
#
# Author : IfQuant
# Email : ifquant@163.com
# File Name : thread2.cc
# Last Modified : 2018-11-05 13:03
# Describe :
#
# ====================================================*/
#inclu... |
1632ab569e05abed3daf4301defebc4db4f38787 | 0e3cab0ba4802bf611323fb121e9d149bc121b5f | /Solutions/FLOW015.cpp | f8a48e3639f865d2ed01568a400eda4871c15f9e | [
"MIT"
] | permissive | nikramakrishnan/codechef-solutions | e8ba0bf4def856ef0f46807726b46c72eececea9 | f7ab2199660275e972a387541ecfc24fd358e03e | refs/heads/master | 2020-06-01T23:13:27.072740 | 2017-06-16T08:10:38 | 2017-06-16T08:10:38 | 94,087,034 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,157 | cpp | FLOW015.cpp | /*Important notes. Read this before you read/copy my code.
HINT:
To determine whether a year is a leap year, follow these steps:
1.If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
2.If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.
3.If the year is e... |
3cf11903841e83d3625614c5a22b1322a2a6a4b1 | 08b71476193080e05a4de24fe73be1c002d04e2b | /acm/test/ETC_DIR/CC_DIR/1021.cc | ee2b95ed64781088583a9c76509d689f6376cbcd | [] | no_license | sency90/allCode | 7321fae92f0a733742ea6831c43ce35898b1d915 | 1e3ad5f6ba929631641d7889c57a398d89be9419 | refs/heads/master | 2022-10-23T00:32:09.833362 | 2022-09-27T16:33:31 | 2022-09-27T16:33:31 | 43,256,814 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | cc | 1021.cc | #include <cstdio>
#include <cstring>
#include <algorithm>
#include <deque>
using namespace std;
deque<int> dq;
int main() {
int n,m; scanf("%d%d", &n,&m);
for(int i=1; i<=n; i++) dq.push_back(i);
int cnt=0,x;
for(int i=0; i<m; i++) {
scanf("%d", &x);
int idx=1;
for(int j=0; j<dq.... |
41d3f03f21c8435161b62b0776bd5f48545f7c6a | bfec9a024fa872cd3661b7949ce771190f74b73d | /main.cpp | 55be488cdbd74b677fc3aad2bf273a472ace75ef | [] | no_license | gritsulyak/wwwconf | 5d85bf71389426456290b60328e36c6d4563f848 | fabf844421cab946e9d5c74d83641ff11bf571fd | refs/heads/master | 2021-04-28T22:03:46.840734 | 2016-06-18T13:52:41 | 2016-06-18T13:52:41 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 273,345 | cpp | main.cpp | /***************************************************************************
main.cpp - main module
-------------------
begin : Thu Mar 14 21:54:15 MSK 2001
copyright : (C) 2001 by Alexander Bilichenko
email : ... |
9f05f189549082ea9c63b38e5839b4832a98c8b6 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/14_12171_28.cpp | f9271f4c5aea9b171e49ce8a20c119e7ce0ce8c3 | [] | 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 | 1,139 | cpp | 14_12171_28.cpp | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
string genant(int*,int*);
int main()
{
string ant[101];
int arr1[16],arr2[16],ans[2];
int T,i,j;
freopen("in.txt","r",stdin);
freopen("out.txt","w",stdout);
cin>>T;
for(i=1;i<=T;i++)
{
ci... |
0721d8c2700fb033d09e62f70506967a0ec397c3 | 0ef987f9a3c1d596202124f48025903419cdaf5f | /C++/Practice/practice/Practice6/StringCtrlSample.cpp | e1e2077686060ab80971e1a4eca68af0fd69db66 | [] | no_license | eun-seong/Documents | bca9a512bd1119540f02b3a3c5eaf307d8f1e24a | fc3c03721fa7da9982948da32ff384db7f4a8233 | refs/heads/master | 2021-07-06T23:54:59.331770 | 2021-06-02T15:42:57 | 2021-06-02T15:42:57 | 243,251,544 | 0 | 2 | null | 2021-06-02T15:39:29 | 2020-02-26T11:57:04 | Java | UTF-8 | C++ | false | false | 1,021 | cpp | StringCtrlSample.cpp | #include <iostream>
#include "MyString.h"
using namespace std;
void TestFunc(const CMyString& strParam) {
cout << strParam[0] << '\n';
cout << strParam[strParam.GetLength() - 1] << '\n';
}
int main(){
// practice6
cout << "------------- Practice 6 -------------\n";
CMyString strLeft("Hello"), strR... |
8d5fc077dd3f28b46ea0e3f19533e07749e43ba2 | afffc76c474fa0f489bfc266ac60410383895193 | /Thuc Hanh/Maxtrix/Matrix/main.cpp | 392b84aecfdfde5cef14cf8e752c38956e02fe22 | [] | no_license | dvtrunggg/OOP | 5113f895b6e8c563a34985e25eebc8a9d5fe4d0b | 3209293cce74ae60a62241db13a2e8c1b7f2f50f | refs/heads/main | 2023-02-25T17:37:40.000985 | 2021-02-02T16:08:02 | 2021-02-02T16:08:02 | 333,431,145 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 185 | cpp | main.cpp | //// 18126035 - Dinh Viet Trung
//Created by April 23rd, 2020
#include"C18126035_MaTran.h"
int main()
{
//C18126035_MaTran mt(4,5);
////cin >> mt;
//cout << mt;
return 0;
} |
6d626e35d62614d390697b2c74051dd31455db08 | 4e1190455394bb008b9299082cdbd236477e293a | /UVA/10215.cpp | e9ffb1b94456775be189b48e32eb5364035a22b9 | [] | no_license | Leonardosu/competitive_programming | 64b62fc5a1731763a1bee0f99f9a9d7df15e9e8a | 01ce1e4f3cb4dc3c5973774287f2e32f92418987 | refs/heads/master | 2023-08-04T06:27:26.384700 | 2023-07-24T19:47:57 | 2023-07-24T19:47:57 | 202,539,762 | 4 | 6 | null | 2022-10-25T00:24:54 | 2019-08-15T12:46:33 | C++ | UTF-8 | C++ | false | false | 417 | cpp | 10215.cpp | #include <bits/stdc++.h> //UVA 10215 - The Largest/Smallest Box
#define EPS 1e-8 // Precision
using namespace std;
double l,w,h1,h2,h3,h4;
int main()
{
ios_base::sync_with_stdio(false); cin.tie(0);
while(cin>>l>>w)
{
h1=(w+l-sqrt(pow(w+l,2)-3*w*l))/6;
h2=(w+l+sqrt(pow(w+l,2)-3*w*l))/6;
h3=min(w,l)/2 + EP... |
60457dcd733de66f2829a325e67212606e829a47 | 6d3f67b2037581ab51f8e85a6eff64f1b78861d5 | /linux_server/13-6_shared_memory_chat_server.cc | 877fcc1fd8ca34bb28582c18fcd72fdd57b28ed5 | [] | no_license | betterpig/fight | 303ae1cf21c4a18707639e36b39a9d59472b1306 | ddae160bb27f0f2f9b6567650676a90e5542e35d | refs/heads/master | 2022-11-24T04:03:01.970142 | 2020-08-08T13:28:04 | 2020-08-08T13:28:04 | 273,816,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,364 | cc | 13-6_shared_memory_chat_server.cc | #include <sys/types.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h... |
a627c2263330ed8659100f00982ce7c1ff912055 | 7f1ea2c15bca166696dd438ceee125a1d532ef87 | /Code/DataTypesSnelheidHeleGetallen/DataTypesSnelheidHeleGetallen.ino | 44facba26802d73c8f6b037c50345ab0baee955c | [] | no_license | amaiam/ArduinoCourse | 5aa400fd0f28677a4cbdb37f3f726cd12b0416e7 | 8db0ad5cb49d7a0de8aa42b4b1ca9a242643f22f | refs/heads/master | 2020-12-03T09:23:21.601831 | 2017-10-20T16:57:09 | 2017-10-20T16:57:09 | 55,251,027 | 1 | 0 | null | 2016-04-01T17:43:44 | 2016-04-01T17:43:44 | null | UTF-8 | C++ | false | false | 1,631 | ino | DataTypesSnelheidHeleGetallen.ino | template <class T>
int Test()
{
const int sz = 150; //Arraygrootte
const int r = 1000; //Aantal herhalingen
T v[sz];
T sum = 0;
for (int j=0; j!=r; ++j)
{
for (int i=0; i!=sz; ++i)
{
++v[i];
sum += v[i];
}
}
return sum;
}
void setup()
{
Serial.begin(9600);
}
void loop()
{
... |
2b3a28a2a8e1f87a859e9cda5b6a984c868bb82e | bc997f47b4cffef395f0ce85d72f113ceb1466e6 | /JOI/joi11b.cpp | 96b9abd86345c981d79d4803f0b70f8b4d298a53 | [
"LicenseRef-scancode-public-domain"
] | permissive | koosaga/olympiad | 1f069dd480004c9df033b73d87004b765d77d622 | fcb87b58dc8b5715b3ae2fac788bd1b7cac9bffe | refs/heads/master | 2023-09-01T07:37:45.168803 | 2023-08-31T14:18:03 | 2023-08-31T14:18:03 | 45,691,895 | 246 | 49 | null | 2020-10-20T16:52:45 | 2015-11-06T16:01:57 | C++ | UTF-8 | C++ | false | false | 855 | cpp | joi11b.cpp | #include <cstdio>
#include <vector>
#include <algorithm>
#include <cstring>
using namespace std;
vector<int> v[10];
int n,k;
int dp[2005][11];
int f(int y, int z){
if(y == 0) return 0;
if(z == 10) return -1e9;
if(~dp[y][z]) return dp[y][z];
int res = 0;
for (int i=0; i<=y && i<v[z].size(); i++) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.