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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc6d40630cf58734c9a5f00fc72059f7a6e7ad3c | 82a5e711c0d0e0f1b639517978469888370ba2cf | /Shopping Cart/orderM.cpp | 7caf6241cb5c49fb4ccae84d67d6dfae560d1c6b | [] | no_license | Eladvain/Shopping-Cart | 890672ae83fe81e49df3a8f65752b2a8d77aa8c6 | 006e0813dacc53d8f79d6c1c1e847151857b625a | refs/heads/main | 2023-06-05T22:19:54.514307 | 2021-06-09T12:57:28 | 2021-06-09T12:57:28 | 375,352,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,479 | cpp | orderM.cpp | #include"order.h"
#include"shoppingCart.h"
#include"seller.h"
order::order(shoppingCart *ChossenshoppingCart)
{
O_shoppingCart = ChossenshoppingCart;
O_arrayOfChossenProduct.reserve(2);
}
//______________________________________________________________________
order::~order()
{
// we dont want to delet... |
ed5f659a26c93e49ae19936bbd266508b5c54791 | 2dd5296eb4f7fdd6569ce0982895d7f55b19752e | /include/fslock.h | 7bae19a9ec19458df585812b115e694e83c16de5 | [
"MIT",
"CC-BY-4.0"
] | permissive | rvasin/newsboat | 40779ea01ddc1b4628ef1c8087bd2f759245dbc1 | 516057c69841747a7636b163a58ea4540e4762a5 | refs/heads/master | 2023-04-07T08:23:53.683461 | 2020-09-29T16:13:04 | 2020-09-29T16:13:04 | 125,317,677 | 0 | 0 | MIT | 2023-03-20T20:11:29 | 2018-03-15T05:38:59 | C++ | UTF-8 | C++ | false | false | 494 | h | fslock.h | #ifndef NEWSBOAT_FSLOCK_H_
#define NEWSBOAT_FSLOCK_H_
#include <string>
#include <sys/types.h>
extern "C" {
void* rs_fslock_new();
void rs_fslock_free(void* ptr);
bool rs_fslock_try_lock(void* ptr, const char* new_lock_filepath, pid_t* pid);
} // extern "C"
namespace newsboat {
class FsLock {
public:
FsLock... |
1b4e35378b6052e7197d747634814f226ed1eadb | 6c9f41caef412274139c10444e523f0ad15a059a | /server/Source/Server/WorkerThread.cpp | ebc139c6b964ad3a453a4e6cf9debc51c64f67da | [] | no_license | JMICKHs/jmickhenger | f4f471c0059d5ee9345ea24d940087364b62b1b2 | 74253d77b5d9f7c0f4e6c512601b3fe378faed81 | refs/heads/master | 2021-05-18T14:15:06.255204 | 2020-06-02T11:15:18 | 2020-06-02T11:15:18 | 251,276,427 | 3 | 1 | null | 2020-06-02T10:07:00 | 2020-03-30T10:49:19 | C++ | UTF-8 | C++ | false | false | 616 | cpp | WorkerThread.cpp | //
// Created by nick on 11.05.2020.
//
#include <thread>
#include <boost/asio.hpp>
#include <mutex>
#include <iostream>
#include "WorkerThread.h"
using boost::asio::ip::tcp;
std::mutex worker_thread::m;
void worker_thread::run(std::shared_ptr<boost::asio::io_service> io_service) {
{
std::lock_guard... |
3dd006342f1d47803b41c40e38b43ee52e392b43 | 05d6cebd6ab970b4fb78840d0349ae6d433be60c | /qt5cpp-client/client/SWGEdgeModulesInvokersApi.h | 0532b2f4c131d1c21287118042812a96e45f584d | [] | no_license | mehome/RADServerSwaggerClients | 0a73089e9f0e54fc9a13bb35bf0168fdfb7580ef | 5f0720e97320e83279e020840d4d3ab77253c403 | refs/heads/master | 2022-01-17T19:21:17.569005 | 2019-06-28T18:00:25 | 2019-06-28T18:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,537 | h | SWGEdgeModulesInvokersApi.h | /**
* EMS API Documentation
* Enterprise Mobility Services API [Learn about EMS](https://www.embarcadero.com/products/rad-studio/enterprise-mobility-services) EMS (Enterprise Mobility Services) offers a Mobile Enterprise Application Platform (MEAP) TurnKey Middleware for Interconnected Distributed Apps... |
b1e49b4842072726c5f4b6ebbd57e3d4de1c494b | c8fd79f4f99a356fd1416800e4726d442f14354f | /Lessons/Lesson 5 - Memory/Lesson 5 - Memory/BinarySearchTree.h | 3f93fa3b545bffbb39304ed928cb76467f9fd5c7 | [] | no_license | Jack-Hookham/CSC8501-Advanced-Programming-For-Games | 5334c6935aa75d9496540ea215bddb48ca48c677 | 79351808895493783d0701665de41586fc03efd2 | refs/heads/master | 2021-07-22T02:00:30.796313 | 2017-10-30T10:43:19 | 2017-10-30T10:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | h | BinarySearchTree.h | #pragma once
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
using namespace std;
class BinarySearchTree
{
public:
BinarySearchTree();
~BinarySearchTree();
struct node
{
int value;
struct node* left;
struct node* right;
};
int depth = 0;
struct node* root = NULL;
void ins... |
010a35cf4293c678395b1563d7fed4c7f2338457 | 946e1a482a7e43670049562b9080001faa2f79ab | /tgcviewer-cpp/tgcviewer-cpp/TgcViewer/Renderer/OpenGL/TgcOpenGLInputLayout.cpp | 1cf22ffe08294dea6f0e257fd6dc47db9682987c | [] | no_license | xyzr0482/TgcViewer-cpp | 8a7f369dacddb25d4396afd5b9e4f01b9f7fe8ca | 76d3cec308362c2ab114cb4145df51a792f8e833 | refs/heads/master | 2021-01-18T01:57:53.096388 | 2014-12-10T13:07:35 | 2014-12-10T13:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,148 | cpp | TgcOpenGLInputLayout.cpp | /////////////////////////////////////////////////////////////////////////////////
// TgcViewer-cpp
//
// Author: Matias Leone
//
/////////////////////////////////////////////////////////////////////////////////
#include "TgcViewer/Renderer/OpenGL/TgcOpenGLInputLayout.h"
using namespace TgcViewer;
void TgcOpenGLI... |
ac0b1b2a8e5d0d1bb8f94538c5cd4cf62714cd5b | 9a3ec3eb5371a0e719b50bbf832a732e829b1ce4 | /NPC AddOn/DoorGluriurl1.cpp | c4fa74fa6e6a8015cbd375926169d22bc8c5a552 | [] | no_license | elestranobaron/T4C-Serveur-Multiplateformes | 5cb4dac8b8bd79bfd2bbd2be2da6914992fa7364 | f4a5ed21db1cd21415825cc0e72ddb57beee053e | refs/heads/master | 2022-10-01T20:13:36.217655 | 2022-09-22T02:43:33 | 2022-09-22T02:43:33 | 96,352,559 | 12 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 969 | cpp | DoorGluriurl1.cpp | #pragma hdrstop
#include "DoorGluriurl1.h"
DoorGluriurl1::DoorGluriurl1()
{}
DoorGluriurl1::~DoorGluriurl1()
{}
extern NPCstructure::NPC DoorNPC;
void DoorGluriurl1::Create( ){
npc = DoorNPC;
SET_NPC_NAME( "[345]Wooden Door" );
npc.InitialPos.X = 2527;
npc.InitialPos.Y = 1656;
npc.InitialPos.world = 0;
}
void ... |
eba7fedaf03e96fb72d27dc4b1e9eda159e6dab2 | 61535d514ec1f28ababba5088c16dd7c8d57e1da | /src/log.h | 8cec2430f38159e3f9b040f0000bf521277de6b2 | [] | no_license | Dachckol/gerda-native-monzo | d6f001c3cabc168a28e340441681857df8cd5f40 | ba366c42d9c7d4f47ba9be54fe123e64984f1951 | refs/heads/master | 2021-02-07T06:29:00.468172 | 2020-07-04T20:45:20 | 2020-07-04T20:45:20 | 243,992,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143 | h | log.h | #ifndef LOG_H
#define LOG_H
#include <sstream>
#include <string>
void info_log(std::stringstream& logs, const std::string&& string);
#endif
|
870df0d82e51b4731232413a536fdeb18424d791 | 31027c743863d503b3006a39a1ea56e6d7895dd1 | /src/CommandService.h | 18a1422d0e565baf8e14b7407744a77f5bde1529 | [] | no_license | t-fi/esp-firmware | 08caeda2f4db26ce633486003ec99113f127266d | 48cc85b51e47267b3cd0289171772143eb7f646d | refs/heads/master | 2021-01-21T22:18:26.156745 | 2018-03-08T22:18:49 | 2018-03-08T22:18:49 | 102,144,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | h | CommandService.h | #ifndef COMMANDUTIL_H
#define COMMANDUTIL_H
#include <ArduinoJson.h>
#include "WifiService.h"
#include "FlashCommand.h"
#include "ConfigureWifiCommand.h"
#include "SetColorCommand.h"
#include "JsonService.h"
enum class CommandType {
SetColor = 0,
SetColorFade = 1,
Json = 123,
Unknown = 255
};
class C... |
d81117de458ef042839c10c11ab7c66b84abc781 | 2a654889123fec21dd6dec5bfd391cc5a2960404 | /AObject.cpp | ef609bd99233cee41a9bd11e023e00117facf54b | [] | no_license | NechaevaS/Retro-arcade-game | 2e464d96cdb7ccddaeb6349bc339660b4efcd514 | 5baf46672fe714a8028ad206b265643d11a22771 | refs/heads/master | 2020-12-23T07:43:49.925473 | 2020-02-19T19:57:11 | 2020-02-19T19:57:11 | 237,087,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,723 | cpp | AObject.cpp | #include "AObject.hpp"
#include <unistd.h>
AObject::AObject(int x, int y, int maxHp, int lives, int damage, int val, char colour):
_x(x), _y(y), _hp(maxHp), _maxHp(maxHp), _lives(lives), _damage(damage), _val(val), _colour(colour)
{
}
AObject::~AObject()
{
}
bool AObject::outOfGame(WINDOW *w) const
{
const Shape... |
efeb1175bc1e8bd0b0669f99055fe1f5f332b3bc | 92e22ff9edefdf4a909b5ec68d3074ffdff19261 | /LaGuardia-LoBianco_CH7_Problem_23.cpp | 084ad3a4e7ac654eadd4c157dad5a6e2a1706ee0 | [] | no_license | cafeTechne/C-PracticeProblems | 9714535a4c5361a6517accd8a7387185f197b6b4 | 6f6021f8c281e99cabb2231f357305785a1244e7 | refs/heads/master | 2021-04-12T11:50:22.719605 | 2018-04-12T22:29:02 | 2018-04-12T22:29:02 | 126,253,746 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,886 | cpp | LaGuardia-LoBianco_CH7_Problem_23.cpp | // LaGuardia-LoBianco_CH7_Problem_23.cpp : Defines the entry point for the console application.
//
/* Gino LaGuardia-LoBianco, Chapter 7, Problem 23:
This program reads a data file and determines the number of occuerrences of each of the characters in the file
Then, it prints the characters and the number of times t... |
d2277f8405fb9ba3d9dacb9baa22a204d4c16aed | 132efa9ad52dde3e311cd32c3df9236ebfc4ab81 | /Ultrasonic_range/ultrasound1.4/key.cpp | 55c0c80aa738857ddfd571e0716838a8d231dbe8 | [] | no_license | Bend1031/Arduino | ae5ff63e3a2dd073eaf26cffc03079d6a871e891 | 290e215cc3ebeaf1576dbb571d23dbfa7651a305 | refs/heads/master | 2022-12-13T13:18:38.929921 | 2020-09-16T06:09:14 | 2020-09-16T06:09:14 | 295,340,182 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,799 | cpp | key.cpp | #include "key.h"
unsigned char key = 0;
unsigned char Last_K1_State = 1;
unsigned char Last_K2_State = 1;
unsigned char Last_K3_State = 1;
unsigned char Last_K4_State = 1;
void Key_Init()
{
pinMode(K1_PIN, INPUT_PULLUP);
pinMode(K2_PIN, INPUT_PULLUP);
pinMode(K3_PIN, INPUT_PULLUP);
pinMode(K4... |
bddec78a859221252930b5756052dd98c6f55dcc | 18b325a6b8b66672f0a83c4e6ffeafa7b9ad8246 | /lab5/Complex/Complex/CComplex.cpp | 3872e1eae6916fabc604efcdea16d3808139db2c | [] | no_license | RomanovAleksandr/oop | dd55416752dc9f28a4c127400374979169fd14f5 | d218de126f4ceb99956261f55a7944e3674b76c8 | refs/heads/master | 2021-02-28T04:19:20.732542 | 2020-07-02T13:14:30 | 2020-07-02T13:14:30 | 245,661,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,600 | cpp | CComplex.cpp | #include "CComplex.h"
#define _USE_MATH_DEFINES
#include <cmath>
#include <exception>
#include <limits>
#include <stdexcept>
CComplex::CComplex(double real, double image) : m_real(real), m_image(image)
{
}
double CComplex::Re() const
{
return m_real;
}
double CComplex::Im() const
{
return m_image;
}
double CCompl... |
3b33b80e721d515a52d70da76ac27310d798356a | 775c24135fc6c8696a34074ae3c6a5aeb4168cdf | /Src/Value.cpp | b75e5de11b723316dad6208ddca956489b5a644e | [
"MIT"
] | permissive | draede/cx | 2d9110d2562c674a5508674c7349c2f33719862f | 7e89f41143a4463fc75a6e4c9074fd4f06352294 | refs/heads/master | 2022-08-10T23:30:57.159750 | 2022-07-21T14:31:04 | 2022-07-21T14:31:04 | 28,647,230 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,025 | cpp | Value.cpp | /*
* CX - C++ framework for general purpose development
*
* https://github.com/draede/cx
*
* Copyright (C) 2014 - 2022 draede
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
252bf7b05b3ab9e7ea7cc3da922dec8f52f5eaec | 4da949e7683e7645e33bb3d0a5d693714e558711 | /constants.h | bb40026f6ba44f987cde499a0bf5f183998fc867 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RichardMarks/dixy | a3b5a88e4d8aed5e247d691dfa581140fd8fc346 | 2158dd646248e89f570be8e72e4fa4ef7c31581a | refs/heads/master | 2022-11-14T09:02:37.436074 | 2020-06-24T16:11:30 | 2020-06-24T16:11:30 | 274,709,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 858 | h | constants.h | //
// Created by Richard Marks on 6/24/20.
//
#ifndef CONSTANTS_H
#define CONSTANTS_H
constexpr const char* COPYRIGHT_AND_URL = "(C) 2020, Richard Marks - https://richardmarks.us\n";
constexpr const char* ASSEMBLER_VERSION = "1.6.0";
constexpr const char* DISASSEMBLER_VERSION = "1.0.0";
constexpr const char* LINKER_V... |
2d5a92f3f3fa5013321fe325cfa9bc6a639699d0 | 4bc2fb0e9d8daeb0a826eabdc0f5beb1aabb521f | /Server Source Code/Utility/Statement.h | 60f91d9b73b8797f74411a19175ac80a6bb63e56 | [] | no_license | FeatherHub/YaloYalo | 93adcdfd144ce2815d3849b22be67f0157ead48a | be16fa1df3b69605ba98dd311023472e2cc62c93 | refs/heads/master | 2021-02-27T08:01:47.287724 | 2020-03-07T08:31:26 | 2020-03-07T08:31:26 | 245,593,873 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 373 | h | Statement.h | #pragma once
#include <functional>
namespace LibLogic
{
class Statement
{
public:
Statement() = default;
explicit Statement(std::function<void()> statement, bool isTriggered = false);
void Execute();
void ExecuteOnce();
void ExecuteIfTriggered();
void Trigger();
private:
std::function<void()> _state... |
a69ab15a21bf959461a180126d47ef7311706a64 | 250fb2c3c0926aec2e67924e631c8b17f5b78611 | /codeforces.com/163/3.cpp | 43ba3612bcbb3854ca2db11d0f53601c105f3fae | [] | no_license | bayram53/online-judge | bc30b4bdb81ce20dff3c86cac1452f8cfdc26747 | de333b60cb78c956a51a0ebdd25ef6e399d2a2d7 | refs/heads/master | 2021-05-26T13:29:58.378783 | 2013-12-13T08:57:01 | 2013-12-13T08:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | 3.cpp | # include <stdio.h>
# include <algorithm>
# include <iostream>
# include <string.h>
# include <limits.h>
# define INF INT_MAX
# define mi(x , y) (x < y ? x : y)
using namespace std;
int n,a,b=1008,an=0;
int ans[100009][4];
int t[1009][3];
bool d[1009];
int main()
{
scanf("%d",&n);
for(int h=0; h<n-1; h++)
{
... |
a05a88f404ed267b12ae6cf8dc7059b8b4e0da18 | fed19b65fd457764693dc9cc55e7636c2a66aba9 | /Logger.cpp | 95fcf46f0394ecc59673d848317521febf1ae558 | [
"MIT"
] | permissive | JasonDeras/P3Lab7_JasonDeras | 4dc8f22bc9581867d4247414fd0f6652978740d0 | cd65fff07ceff07bbbada399aa207ab516636a33 | refs/heads/master | 2020-07-15T00:55:52.261055 | 2019-08-30T22:57:22 | 2019-08-30T22:57:22 | 205,441,861 | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 3,145 | cpp | Logger.cpp | #include <iostream>
#include <string>
#include <string.h>
#include <vector>
#include <fstream>
#include "Log.cpp"
using namespace std;
#ifndef LOGGER_CPP
#define LOGGER_CPP
class Logger{
protected:
char usuario [50];
char n_archivo[50];
int n_log;
vector <Log*> logs;
public:
Logger(){
}//Cons... |
2fe076dc507af06d3dd5085bc61014d778009c86 | cb0650a3909939bb08b829209b9006c8ce775f5a | /CoreLib/src/TMFactory.cpp | 6f897b71866f7bcf0d7d6f5ae0a8479ad1f39d88 | [
"MIT"
] | permissive | MattiasLiljeson/denLilleOstPojken | 3227c15222883009c822b64bae774a5007c3c0d0 | 42bd475f7c33b63453bf35e6e048a3d369c9370b | refs/heads/master | 2021-01-01T17:43:01.606499 | 2018-03-13T20:49:42 | 2018-03-13T20:49:42 | 5,793,599 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,929 | cpp | TMFactory.cpp | #include "TMFactory.h"
#include "GOFactory.h"
TMFactory::TMFactory(IODevice* p_io, GOFactory* p_GOFactory)
{
m_io = p_io;
m_GOFactory = p_GOFactory;
}
TMFactory::~TMFactory()
{
}
Tilemap* TMFactory::CreateTileMap(int p_theme, int p_width, int p_height, vector<int> p_mapData)
{
Tilemap* newTilemap;
int m_theme ... |
93e1b6dee8c2e2850ee67c91c1477a22e86cb169 | d6e4353e5f9f1a9f393a290f2cb942b754e2cda4 | /Práctica2/PacMan 2 to wapo/ProyectosSDL/PacMan 2/Ghost.cpp | afd5f9b31c0f4b85adff3b296a0bbf0724f2d6a8 | [] | no_license | xBlacKnife/TPV_GDV | 7a3676aa308c17e1fb3a688153ef2e9d0cd9ff82 | 45eb38f597b1199ce210ebb73cbab82d31397edf | refs/heads/master | 2021-04-28T21:06:47.441114 | 2018-05-19T08:16:24 | 2018-05-19T08:16:24 | 121,943,724 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,176 | cpp | Ghost.cpp | //Dependencias
#include "Ghost.h"
#include "Game.h"
#include <vector>
#include <cstdlib>
#include <iostream>
using namespace std;
//Constructoras
Ghost::Ghost() :GameCharacter(), ghostNo(0){}
Ghost::Ghost(Texture* texture, Game* juego, unsigned int ghostNo)
: GameCharacter(juego, texture, 0, ghostNo*2), ghostNo(gho... |
2eb07372945c4644966997b5363bd80e8cddcf01 | 5aa80aab7a75d76b0aa838bf8f74a276a12c876e | /src/dns/mgr/dns_mgr.h | 330a9bfa9e2f3e5981b145ee2647004e754b595f | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tungstenfabric/tf-controller | 83b6d58afadb5697b540b5345711a5b2af90d201 | f825fde287f4eb2089aba2225ca73eeab3888040 | refs/heads/master | 2023-08-28T02:56:27.329584 | 2023-08-20T12:15:38 | 2023-08-20T12:31:34 | 231,070,970 | 55 | 29 | Apache-2.0 | 2023-07-23T01:38:17 | 2019-12-31T10:24:38 | C++ | UTF-8 | C++ | false | false | 6,908 | h | dns_mgr.h | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef __dns_manager_h__
#define __dns_manager_h__
#include <tbb/mutex.h>
#include <base/index_allocator.h>
#include <mgr/dns_oper.h>
#include <bind/named_config.h>
#include <cfg/dns_config.h>
#include <config_client_manager.h>
class DB;
class... |
8a7bdb607f279694de470ddd89d5b2c5cc9db2a0 | 92640ec261e7875a5e65e95d6408be2df3cdd9a3 | /temp/147.cpp | 9c9a1a768c21256e80e80d766a9e58c44768ddc9 | [] | no_license | gaolichen/contest | c20c79d1a05ea6c015329bc2068a3bbb946de775 | 4ac5112f150210c6345312922dc96494327cbf55 | refs/heads/master | 2021-01-19T04:45:59.100014 | 2017-04-06T06:46:09 | 2017-04-06T06:46:09 | 87,392,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | cpp | 147.cpp | #include<stdio.h>
#define N 1100
int a[11]={1,2,4,10,20,40,100,200,400,1000,2000};
void main()
{
int i,j,k,n,t;
double f[11][N];
float m;
scanf("%f",&m);
while(m!=0)
{
n=(int)(m*20.0000001);
t=0;
while(a[t]<=n)t++;
for(i=0;i<11;i++)
for(j=0;j<=n;j++)
f[i][j]=0;
for(i=0;i<=n;i++)
f[0][i]=1;
f... |
324bf9442972b6f3434727b4dee4ac15a2e9f4bc | 07c61596c1fba2e2a7034fe5af9707794ea2e2c1 | /Luogu/P1918.cpp | 0039430bcdb589b5b37fd7467e2c8b65c3dd8da8 | [] | no_license | H-Shen/Collection_of_my_coding_practice | 2fcb2f8fef9451ad4a3a9c063bbf6a34ea5966b4 | 6415552d38a756c9c89de0c774799654c73073a6 | refs/heads/master | 2023-08-24T21:19:08.886667 | 2023-08-22T03:47:39 | 2023-08-22T03:47:39 | 180,731,825 | 8 | 1 | null | 2021-08-13T18:25:25 | 2019-04-11T06:48:09 | C++ | UTF-8 | C++ | false | false | 469 | cpp | P1918.cpp | #include <bits/extc++.h>
using namespace std;
using namespace __gnu_pbds;
using ll = long long;
unordered_map<int, int> A;
int main() {
int n, a;
scanf("%d", &n);
for (int i = 1; i <= n; ++i) {
scanf("%d", &a);
A[a] = i;
}
scanf("%d", &n);
while (n--) {
scanf("%d", &a... |
b4008404e41390747348686db76aad16d6530c11 | 83dee8e240b280ef14b2dc5037c14ad79080e4db | /ProyectoHospital/Control.h | cfa806e4ca9961696abd8fe560c86c7a4ac5420d | [] | no_license | una-eif201-progra1-19G01/proyecto-1-hospital-indiviudal-Danter28 | 3af7b1d94feec8bc362240fc859e1dab6c2e63d8 | 4485287dac8ec671b7cfcf532b4d8330ccbf0960 | refs/heads/master | 2022-02-27T08:04:10.966631 | 2019-10-04T05:48:43 | 2019-10-04T05:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | h | Control.h | #ifndef _CONTROL_H
#define _CONTROL_H
#include "Interfaz.h"
#include "ContenedorDoctores.h"
#include "ContenedorEspecialidades.h"
#include "ContenedorPabellones.h"
#include "ContenedorPacientes.h"
#include"ContenedorCamas.h"
class Control
{
public:
Interfaz *inter = new Interfaz;
ContenedorDoctores *contDoctor = ne... |
faa8f1053d9cea4e31f12d0cc083b74e5372b5b4 | 3d0641b9ef748dc7a30040f8daf309756a336d9e | /a11/a11/heap.h | 706748958795da2d33ed51778b29fbbfd95f805e | [] | no_license | Zuffle/assignCode | 6d44685ddec2078e31d1cbdc33181e2ab2f26a69 | 2842ce3a1ab13da4b58314bcefc402258d4b2594 | refs/heads/master | 2020-03-17T22:03:56.198319 | 2018-07-06T02:49:37 | 2018-07-06T02:49:37 | 133,986,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,289 | h | heap.h | //
// heap.h
// a11
//
// Created by Justin Parry on 7/3/18.
// Copyright © 2018 jEnoch. All rights reserved.
//
#ifndef heap_h
#define heap_h
template <class T>
class heap
{
public:
heap(T array[], int num);
// percolate down takes an index and heapifies from that point down
void percolateDown(int ... |
888d42dfbd88d47b2b4e1dc5bef4f04f5b05c48b | a0b0d3e00f838d780b2b231a7668e4a3a360be64 | /day02/practise/login_mainwindow.cpp | ae43802612842d3786d5d1aed128d4e5727fa695 | [] | no_license | hewei-bit/QT-Learing | d5ba754b2f6dec4fb18e085766a6b1e2b394111f | d5c1c4cb8d15237b1c21eda4385bd661068b545e | refs/heads/master | 2022-11-26T05:06:18.491108 | 2020-08-02T07:20:37 | 2020-08-02T07:20:37 | 275,719,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,351 | cpp | login_mainwindow.cpp | #include "login_mainwindow.h"
#include "ui_login_mainwindow.h"
#include "welcome.h"
#include <QtDebug>
#include <QMessageBox>
using namespace std;
Login_MainWindow::Login_MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Login_MainWindow)
{
ui->setupUi(this);
//建立信号与槽
connect(ui->resi... |
c25d07288fcca1f9b7ff2b82b1316195f744d3db | 366b8b15eb92e18a7ca01806d3fd9f940cda8790 | /src/remoteprocess.cpp | 65b1add77f891e9c8bc43b06fd14989fda8286fe | [] | no_license | haitor888/il2cppMemoryProfiler | 132e2579d77e4f668715e8b1f7eb50d3dbe923a5 | 91ddf6f7bf491392a85088dc6a24412f75cc1851 | refs/heads/master | 2020-09-21T12:53:10.725811 | 2019-11-29T07:37:46 | 2019-11-29T07:37:46 | 224,795,137 | 16 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 10,448 | cpp | remoteprocess.cpp | #include "remoteprocess.h"
#include "umpmemory.h"
#include <QtEndian>
#include <QTcpSocket>
#include <QTextStream>
#include <QDataStream>
#include <QRegularExpression>
#include <QProcess>
#include <QDebug>
void Il2CppFreeMemorySnapshot(Il2CppManagedMemorySnapshot* snapshot) {
if (snapshot->heap.sectionCount > 0)... |
ea9bb582e96c5eb0b9a2125573d8cf0be5377e1d | de1fc8272ca500fb13a93c9d053cdd75634329cd | /Book_Source/Cpp-Primer-Plus-programming-exercises-master/Cpp-Primer-Plus-programming-exercises-master/code/Chapter18/18_4.cpp | 342ba5200e55af02acb52313178db7932efb2286 | [] | no_license | hohaidang/CPP_Basic2Advance | ada69129123c14491c29803a3f7224b924616a80 | cdb733e9b24c7ad4927deab57fff389f521d0ea3 | refs/heads/master | 2021-05-21T10:31:46.627204 | 2021-03-29T07:16:43 | 2021-03-29T07:16:43 | 252,654,029 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 798 | cpp | 18_4.cpp | // By luckycallor
// Welcome to my site: www.luckycallor.com
#include<iostream>
#include<list>
#include<iterator>
#include<algorithm>
using namespace std;
auto outint = [](int n) {cout << n << " "; };
int main() {
int vals[10] = { 50,100,90,180,60,210,415,88,188,201 };
list<int> yadayada(vals, vals + 10);
list<i... |
41e80a637763cb3b81ccc777da9b2ec9ba6cf9dd | 2d361696ad060b82065ee116685aa4bb93d0b701 | /src/gui/widgets/loaders/table_annot_data_source.cpp | 25ec9a29f8f7b8874493b97052861013c15fb5cc | [
"LicenseRef-scancode-public-domain"
] | permissive | AaronNGray/GenomeWorkbench | 5151714257ce73bdfb57aec47ea3c02f941602e0 | 7156b83ec589e0de8f7b0a85699d2a657f3e1c47 | refs/heads/master | 2022-11-16T12:45:40.377330 | 2020-07-10T00:54:19 | 2020-07-10T00:54:19 | 278,501,064 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 116,397 | cpp | table_annot_data_source.cpp | /* $Id: table_annot_data_source.cpp 43695 2019-08-14 19:16:30Z katargir $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States... |
ebf3a18bf937fefbbf019ca7e47cc548d9010cd4 | 532a409b9bc21bd2b9bf9b22d73eb99f5d93e5c8 | /UserBenchmark/UserBenchmark/main.cpp | e01f05915c66689b0d565da843ef807e0e76fb87 | [] | no_license | tyekx/musa-thesis | 0d3febcaf388659fdddc5256344f6c825b6eb0d1 | 11e6ae92b8e726cc28523d0237663fbed4cdec8f | refs/heads/master | 2020-03-18T16:45:22.642009 | 2018-05-26T18:16:05 | 2018-05-26T18:16:05 | 134,956,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,299 | cpp | main.cpp | #include <iostream>
#include <thread>
#include <vector>
#include <boost/asio.hpp>
#include <chrono>
#include <atomic>
struct TestResult {
double timeTaken;
std::string Resource;
};
const std::string raw_ip_address = "192.168.0.227";
const unsigned short port_num = 80;
int N;
int C;
std::atomic_int completedIndex =... |
7bf1b3b669c3b42cbf972b5c3358129155b4cb6d | 897146114021e895e763173f515ba85b34f1e59d | /qtool/option/optionClass/实盘交易类/XSpeed_MATLAB/xspeed_mdlogout.cpp | 4a2e3d68704d7a043791d86ad42981138a69c840 | [] | no_license | yangyir/matlabqtool | a564c5e71b07a91d45183d1fb46581906187349f | 46550468c174811850a80e763c0a7d9947a6dc66 | refs/heads/master | 2021-07-06T13:30:13.705629 | 2019-02-28T00:08:21 | 2019-02-28T00:08:21 | 103,919,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | cpp | xspeed_mdlogout.cpp | #include "mex.h"
#include "xspeed_quote_listener_wrapper.h"
#include <iostream>
#include <vector>
# pragma comment(lib,"XSpeedSECQuoteLib.lib")
# define FUNCTION_CALL_MODE __stdcall
void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray*prhs[])
{
Stop();
mexWarnMsgTxt("xspeed market data l... |
ef29b3876deda12436e511da44ef20e8bed2d9a2 | 393320d4dc9463ae7047390e4afe6f3e25fd70b9 | /tek3/C++/cpp_rtype/server/include/libloader/DLLoaderManager.hpp | f1557313f1804b67ec4674cedb68a03809fb2c19 | [] | no_license | Lime5005/epitech-1 | d1c4f3739716173c8083ea4e6a04260d6dc92775 | cb25df1fa5d540624b9e7fd58de6e458cd5cc250 | refs/heads/master | 2023-02-09T07:38:57.850357 | 2019-10-14T15:03:44 | 2019-10-14T15:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,109 | hpp | DLLoaderManager.hpp | /*
** DLLoaderManager.hpp for cpp_arcade in /home/anthony/repository/cpp_arcade/DLLoaderManager.hpp
**
** Made by Anthony LECLERC
** Login <anthony.leclerc@epitech.eu>
**
** Started on sam. mars 11 12:52:53 2017 Anthony LECLERC
// Last update Fri Mar 17 21:34:49 2017 Sylvain Chaugny
*/
#ifndef CPP_ARCADE_DLLOADERMA... |
fab10e42042e0b7b4be02874bb3c92972f9613cb | 492976adfdf031252c85de91a185bfd625738a0c | /src/Game/AI/Action/actionMagneGearGrabbed.cpp | 7c4fcbc4ec145247e645d45485fbcec33ba47b97 | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 712 | cpp | actionMagneGearGrabbed.cpp | #include "Game/AI/Action/actionMagneGearGrabbed.h"
namespace uking::action {
MagneGearGrabbed::MagneGearGrabbed(const InitArg& arg) : ksys::act::ai::Action(arg) {}
MagneGearGrabbed::~MagneGearGrabbed() = default;
bool MagneGearGrabbed::init_(sead::Heap* heap) {
return ksys::act::ai::Action::init_(heap);
}
void... |
dfc99505d4a10aa2e404ffa2444f330fa6972bff | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/03/ad9438db059fbe/main.cpp | 4b9f1a1427a9d61e42cc5c74d2ffbe9fe67310f8 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | main.cpp | #include <stdio.h>
#include <float.h>
#include <math.h>
int main(void)
{
printf("FLT_RADIX = %d\n", FLT_RADIX);
printf("DECIMAL_DIG = %d\n", DECIMAL_DIG);
printf("FLT_MIN = %e\n", FLT_MIN);
printf("FLT_MAX = %e\n", FLT_MAX);
printf("FLT_EPSILON = %e\n", FLT_EPSILON);
printf("FL... |
b91366061ee14f45303607e75d3672df37b78e18 | 5b7ac878cce8bc17b02e8881a18ef25bd58c0896 | /Motor2D/Bunker.h | e78d649d35f6c3080cf52417d690321e0bb7fd00 | [] | no_license | weprikjm/StarCraft | 7c2f20b1ef794e64c3af2c41bb23331f194e91b7 | e0b3a43f67d6102e5d6dd08c8bec582cd49fad93 | refs/heads/master | 2020-03-11T18:40:03.588837 | 2016-05-31T06:56:10 | 2016-05-31T06:56:10 | 53,927,628 | 1 | 0 | null | 2016-03-15T08:32:31 | 2016-03-15T08:32:31 | null | UTF-8 | C++ | false | false | 925 | h | Bunker.h | #ifndef __BUNKER_H__
#define __BUNKER_H__
#include "Building.h"
#include "Marine.h"
#include "Firebat.h"
#include "JimRaynor.h"
class Bunker : public Building
{
public:
Animation idle;
map<uint, Unit*> units_inside;
uint max_capacity;
//Particles Bunker
Particle attack_up;
Particle attack_right_up... |
06c074d38c152647be01169dc93aacb1a199e03c | 2096efcbb93a0faacff8795d89ac716c5172b3e3 | /Common/ClusterCalculator.h | 9ad8e50d02895b70b30af6becb30e0c01afeda06 | [] | no_license | BlueSpells/MapGen | 2800785a0d745f2a6fff6eb6156c16959c739671 | fad130ca4bc08622709c3f459b71a3844990cbd2 | refs/heads/master | 2016-09-11T15:07:05.449608 | 2009-10-29T14:50:00 | 2009-10-29T14:50:00 | 281,121 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,079 | h | ClusterCalculator.h | // ClusterCalculator.h: interface for the CClusterCalculator classes.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CLUSTERCALCULATOR_H__BAB0682A_4D3B_475A_BEA1_CC5A12B007D7__INCLUDED_)
#define AFX_CLUSTERCALCULATOR_H__BAB0682A_4D3B_475A_BEA1_CC5A12B007D7__INCLUDED_
#if _M... |
1bae7f9f3167e1385f79372d3ca3b1cea45b4fcb | ef15a4a77b6e1fbb3220a5047885ba7568a80b74 | /src/base/Base/Filesystem/detail/BoostFSCompat.hpp | f0aeb467476da68a8efc9b3ac31f1e7b4c78b1d5 | [] | no_license | el-bart/ACARM-ng | 22ad5a40dc90a2239206f18dacbd4329ff8377de | de277af4b1c54e52ad96cbe4e1f574bae01b507d | refs/heads/master | 2020-12-27T09:24:14.591095 | 2014-01-28T19:24:34 | 2014-01-28T19:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,316 | hpp | BoostFSCompat.hpp | /*
* BoostFSCompat.hpp
*
* this files provide compatibility elements, that are NOT common between boost::filesystem versions.
*/
#ifndef INCLUDE_BASE_FILESYSTEM_DETAIL_BOOSTFSCOMPAT_HPP_FILE
#define INCLUDE_BASE_FILESYSTEM_DETAIL_BOOSTFSCOMPAT_HPP_FILE
/* public header */
#include <boost/filesystem.hpp>
namespac... |
d510defc9595fc980d4dbf322b2bc8b433f59e58 | a3017bfac079f1787601d89b61b8d9ae7174ac72 | /src/PT3SDKSimulator/BDUtil.cpp | 34ecd76052817ddf21ebb74737b1d165d5bcaf1c | [
"Apache-2.0"
] | permissive | kittandatteba/BDTuner | a6e2e2c7bdc4b276094cff5732602f26243eab27 | 3a61266e661bcbb0b159df2942349ddacf97b678 | refs/heads/master | 2020-03-09T12:17:24.772958 | 2019-03-23T15:25:50 | 2019-03-23T15:25:50 | 128,782,034 | 0 | 0 | Apache-2.0 | 2019-03-23T15:25:50 | 2018-04-09T14:09:01 | C++ | SHIFT_JIS | C++ | false | false | 979 | cpp | BDUtil.cpp | #include "stdafx.h"
#include "BDUtil.h"
namespace EARTH {
namespace PT {
uint32 BDUtil::mDeviceMinIndex = 0;
uint32 BDUtil::mSetFrequencyDelay[] = { 300, 100 };
uint32 BDUtil::mTunerBBGain = 8;
void BDUtil::readIniFile(HMODULE hModule) {
// iniファイルのパスを設定
TCHAR iniFilePath[MAX_PATH] = {};
::GetModuleFileNa... |
cf118c0f11490594bde019a0cac51a5ddcf6e4bb | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/ab/cb9c21947f7e5e/main.cpp | bfd74cc3c33127b210ec7433fe5435ab0b302177 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | main.cpp | #include <initializer_list>
#include <iostream>
#include <typeinfo>
int main() {
std::cout << R"x(
if(x == 3) {
for(int i = 0; i < 30; i++) {
if(i == 3) {
what am I doing
}
}
}
)x" << std::endl;
}
|
c5a2e3a973c2fcce04128123a85b59c43862bece | 473a8a23c5d8899e4e420ca7fb344771253af13f | /src/libmeasurement_kit/common/mock.hpp | c184bcded2625f523efefb5d21983fb58f3163c8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | measurement-kit/measurement-kit | 4bfeb2cfb199e1e28fa153093ba730a35c960d9b | ca705e1084c8226b0b049312961931368f3ef0a4 | refs/heads/master | 2021-06-14T08:04:13.430214 | 2021-03-04T14:14:57 | 2021-03-04T14:14:57 | 20,287,787 | 97 | 36 | NOASSERTION | 2021-03-04T14:14:58 | 2014-05-29T08:44:43 | C++ | UTF-8 | C++ | false | false | 819 | hpp | mock.hpp | // Part of Measurement Kit <https://measurement-kit.github.io/>.
// Measurement Kit is free software under the BSD license. See AUTHORS
// and LICENSE for more information on the copying conditions.
#ifndef SRC_LIBMEASUREMENT_KIT_COMMON_MOCK_HPP
#define SRC_LIBMEASUREMENT_KIT_COMMON_MOCK_HPP
/*
Simplifies life when yo... |
93cdde498a58bf9af22e27f3415188c7c6cac9fb | d44d1e5ae1f70352669cca624d4f0e9956c221fe | /tabbuttonwidget.cpp | afbc3533a5b981304ec55b140f4342a6be77e3e0 | [] | no_license | seanet7or/customqtwidgets | 5bc3d1d009189daecbc0b8da5239d8985e4f08fc | 0ee3f6f1a9c3cd1c42b17c32cf2872b9cb510cc8 | refs/heads/master | 2021-01-19T10:20:10.071023 | 2013-10-18T17:40:46 | 2013-10-18T17:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,627 | cpp | tabbuttonwidget.cpp | #include "tabbuttonwidget.h"
#include <QPainter>
#include <QDebug>
#include "tabwidget.h"
#include "widgets.h"
#include "pushbutton.h"
#include "widgetsettings.h"
TabButtonWidget::TabButtonWidget(TabWidget *parent) :
PushButton(parent),
m_minSize(size()),
m_tabWidget(parent)
{
sizeHint();
this->se... |
56d94f293b9adb95ef04fb11a28e6e9ef8df1806 | b83d946c6c99e327e6a89e240d3d7e0b532dc485 | /ServerConnection.h | 9b2a4567f3b3ef335bfd0e36c83cf0c3dc33865e | [] | no_license | thilinamh/VoIPserver | aa556fe89aa98889cf4def4b49fa37787b65179c | a1a9e3e6b7041571f60f55956b493ba2744588c1 | refs/heads/master | 2021-01-21T04:48:03.852428 | 2016-06-17T07:26:45 | 2016-06-17T07:26:45 | 53,022,714 | 3 | 1 | null | 2016-06-17T07:26:45 | 2016-03-03T05:13:05 | C++ | UTF-8 | C++ | false | false | 2,035 | h | ServerConnection.h | /*
* File: TCPconnection.h
* Author: user
*
* Created on December 9, 2015, 12:31 PM
*/
#ifndef TCPCONNECTION_H
#define TCPCONNECTION_H
#include "Poco/Net/TCPServerConnection.h"
#include <Poco/Net/StreamSocket.h>
#include <memory>
#include "Poco/StringTokenizer.h"
#include <iostream>
#include <mutex>
class Use... |
a5b6cac1d0c76f47b6f23c08ed9787b0a821d6da | b7cf54f2ab1867b8b75c346ce6f6735619f2c71e | /src/gui/cairo/sdl/cairo_gl_sdl_window.h | 1e6a8ea0351bfeae04463c6371b01a6def02b91d | [] | no_license | lii-enac/djnn-cpp | afc8d14e4ce26b53aa89f0d2ae2beb16981d5334 | e975bf6c63ab214208b590edbb778c482a939587 | refs/heads/master | 2023-08-07T12:51:03.677385 | 2023-07-21T12:11:29 | 2023-07-21T12:11:29 | 135,590,013 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,333 | h | cairo_gl_sdl_window.h | /*
* djnn v2
*
* The copyright holders for the contents of this file are:
* Ecole Nationale de l'Aviation Civile, France (2019)
* See file "license.terms" for the rights and conditions
* defined by copyright holders.
*
*
* Contributors:
* Stephane Conversy <stephane.conversy@enac.fr>
* Ma... |
469c6fdec4341854bc487389ed3d2981451a0704 | 3c390fe9fd4df24bcc9f22cbe60602785b019c3d | /algo_ds/ds_stackinfixtopostfixparenth/src/ds_stackinfixtopostfixparenth.cpp | f1c0a473f61d6043d03f24ca0491ec70f9d1a823 | [] | no_license | vnankar/Data-structure | ac893a08fcf4a65513370cf72b49a600046627a2 | 2da672f0c41e92833c6b819831dcdc89f5d34551 | refs/heads/master | 2020-09-09T10:05:07.474619 | 2019-11-13T09:45:57 | 2019-11-13T09:45:57 | 221,418,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,245 | cpp | ds_stackinfixtopostfixparenth.cpp | #include<iostream>
#include<cstring>
#include<stack>
using namespace std;
void infix_to_postfix(char *in, char *post);
bool is_operand(char ch);
int priority(char opr);
int main(void)
{
char infix[64]="(a*b)*(c+d)/e*f-g*h";
char postfix[64]=" ";
cout<<"infix expression :: "<<infix<<endl;
infix_to_postfix(infix,... |
eecc3ad27aad86fed86b452146475f18e14e8f8b | eea7adb1221e39e949e9f13b92805f1f63c61696 | /leetcode-01/cpp/leetcode/349. Intersection of Two Arrays.cpp | 4992d7a8a7f34cbf933651797f65b934945be4fe | [] | no_license | zhangchunbao515/leetcode | 4fb7e5ac67a51679f5ba89eed56cd21f53cd736d | d191d3724f6f4b84a66d0917d16fbfc58205d948 | refs/heads/master | 2020-08-02T21:39:05.798311 | 2019-09-28T14:44:14 | 2019-09-28T14:44:14 | 211,514,370 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | 349. Intersection of Two Arrays.cpp | #include "public.h"
//12ms, 96.75%
//here, we analyse word frequency of nums1 in a unordered_set
//then for each num in nums2, operate the unordered_set of nums1
class Solution {
public:
vector<int> intersection(vector<int>& nums1, vector<int>& nums2) {
unordered_set<int> um1;
for (auto num1 : nums1) um1.insert... |
8db85017e1c9ad12b8ea7b81ace7de9866a10bc5 | 5011ad001199a112d6e7e7c36085d0abfd204b19 | /ConsoleApplication1/ConsoleApplication1.cpp | 92141dcf52578b4e15428e2fb1a89284be4f74f1 | [] | no_license | gorillabull/Even-Tree | ccd950714590effa8c46bff9d1011f1f6d7246f9 | df224cbeff7b390de7b4f9349d4362e16fc80af3 | refs/heads/master | 2020-07-23T21:18:52.684017 | 2019-09-11T02:53:08 | 2019-09-11T02:53:08 | 207,708,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,659 | cpp | ConsoleApplication1.cpp | // ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
void dfs(int node, vector<vector<int>>& graph, vector<bool>& visited, int &count) {
if (!visited[node])... |
e5bdb51960bbb1cd143e098003cb8f044929fddd | 1f56d4d63887021630fbe18526db95ca229361bf | /jb/pitch2/ut_short_add_order_message.cpp | fb0a0f4bdbf62102e27a01bed15d285ddff685c6 | [
"Apache-2.0",
"BSD-3-Clause",
"bzip2-1.0.6"
] | permissive | coryan/jaybeams | ea5ac1ccaed89a31e48095afee7b76ccea36c20d | 36f2584151e8f9e120ea336b7c208a9801bbeff5 | refs/heads/master | 2020-04-15T23:21:02.504482 | 2017-11-14T05:11:52 | 2017-11-14T05:11:52 | 41,223,278 | 4 | 2 | null | 2017-11-14T05:11:54 | 2015-08-22T20:30:04 | C++ | UTF-8 | C++ | false | false | 1,977 | cpp | ut_short_add_order_message.cpp | #include <jb/pitch2/short_add_order_message.hpp>
#include <boost/test/unit_test.hpp>
#include <type_traits>
/**
* @test Verify that jb::pitch2::short_add_order_message works as expected.
*/
BOOST_AUTO_TEST_CASE(short_add_order_message_basic) {
using namespace jb::pitch2;
BOOST_CHECK_EQUAL(true, std::is_pod<shor... |
2ad1b043e0ae6e93865364d3c2981356e46ad656 | 87f17eecf9da93f6093ecd446a592a6230ae4c97 | /SlavsSources/Slavs/Common/misc/BitMask.cpp | 62aeef71473de1f60be55ed8b396ebfb1c5d7377 | [] | no_license | TraurigeNarr/Slavs | 8f842de1316a1416e84deb26425122747bfdc40b | 1b22fcf8ce301d325f1e3987fdba1e6aa6ac31f8 | refs/heads/master | 2021-01-22T21:12:36.824333 | 2015-03-10T15:14:16 | 2015-03-10T15:14:16 | 25,731,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | cpp | BitMask.cpp | #include "BitMask.h"
BitMask::BitMask()
: m_mask(0)
{
}
BitMask::~BitMask()
{
}
void BitMask::ResetAll()
{
m_mask = 0;
}
void BitMask::Reset(char i_bit_number)
{
m_mask = m_mask & ~(1<<i_bit_number);
}
bool BitMask::Empty() const
{
return m_mask == 0;
}
void BitMask::Flip()
{
m_mask = ~m_mask;
}
void... |
4da1acc2a83765b96a02648576f94d04c2073e66 | 581b3411118e6ba777ff031b330f73d1d47027c6 | /1026.cpp | 6b4d46051ae9899a69680519a57b53d2ab6a18f0 | [] | no_license | liyiming22/PATbaisc | 712e49aa6098f5d8d6eb86fa48d21aee3e4a48d0 | 60c45f5ba186e9a1b5cd3d00349c7e4d35feb430 | refs/heads/master | 2021-09-08T21:23:55.469480 | 2018-03-12T09:52:28 | 2018-03-12T09:52:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | cpp | 1026.cpp | #include <iostream>
using namespace std;
const int CLK_TCK = 100;
int main()
{
long long C1, C2;
scanf("%lld%lld",&C1, &C2);
double sum = 0.5 + (double)(C2 - C1) / 100;
printf("%02d:%02d:%02d",(int)sum / 3600,(int)sum % 3600 / 60,(int)sum % 3600 % 60);
return 0;
}
|
0700a5d919a91a72735ca68d53bace06deb94eb6 | 19f039b593be9401d479b15f97ecb191ef478f46 | /RSA-SW/PSME/common/agent-framework/src/command/compute/json/get_blade_info.cpp | 492ffd45c8dd3d17a5e6446b8dff742b118cf507 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | isabella232/IntelRackScaleArchitecture | 9a28e34a7f7cdc21402791f24dad842ac74d07b6 | 1206d2316e1bd1889b10a1c4f4a39f71bdfa88d3 | refs/heads/master | 2021-06-04T08:33:27.191735 | 2016-09-29T09:18:10 | 2016-09-29T09:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,041 | cpp | get_blade_info.cpp | /*!
* @section LICENSE
*
* @copyright
* Copyright (c) 2015 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org... |
157409d86828089a9433c6df4df718d3efdebc15 | bf4ebb891673e4d2345ba08ede6ef7a99dced447 | /work_vc6/gest/GrayWin.h | af4dfdbf6d29f9054d9afba5df36f39608b51c69 | [] | no_license | pglen/xraynotes | 1fc500da9d8ba5584bbf0024028ee273971bf51c | 2cb7f1fda78a03e4c98a1f8aa1d8ee27f113b340 | refs/heads/master | 2021-01-22T01:19:19.821846 | 2017-09-02T20:20:42 | 2017-09-02T20:20:42 | 102,216,286 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | h | GrayWin.h | // GrayWin.h: interface for the CGrayDlg class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GRAYWIN_H__BE3CE0FD_4B2D_4BAC_A21F_E674E50B9921__INCLUDED_)
#define AFX_GRAYWIN_H__BE3CE0FD_4B2D_4BAC_A21F_E674E50B9921__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_... |
dd5f4f795cb62c79dedddb52b37f4121871ce23f | 807fd3f1d55cd1a9f253cb63da4db2d259d8b7cf | /main/inet/SockAddr.cpp | ac56dd68967a510939af34308a300d60ff7a7351 | [
"UCAR"
] | permissive | WardF/hycast | f329b42b55a97a0f9159d17e08e6d34f4bb730f8 | 6dbea3ef56d4cbd1861a04a9b931da3dd3664733 | refs/heads/master | 2022-12-23T14:05:26.718210 | 2020-09-28T20:20:58 | 2020-09-28T20:20:58 | 299,418,890 | 0 | 0 | NOASSERTION | 2020-09-28T20:03:29 | 2020-09-28T20:03:29 | null | UTF-8 | C++ | false | false | 11,339 | cpp | SockAddr.cpp | /**
* Socket address. Can be IPv4 or IPv6.
*
* Copyright 2019 University Corporation for Atmospheric Research. All Rights
* reserved. See file "COPYING" in the top-level source-directory for usage
* restrictions.
*
* File: SockAddr.cpp
* Created on: May 12, 2019
* Author: Steven R. Emmerson
*/
#... |
d94701e72c9f8eb23362daf5e509acc448b05563 | 4d04b7b0a8e9418f729ddee54bda43484657d52f | /Мої/boal/Новая папка/Unit1.cpp | 800e4a6b13fc793be51c55977d0bf14b930d0492 | [] | no_license | BREAK350/myCProgram-old | 359c021d7bcfa9e44fa831498a417294703a0c1e | 10bbfdd3cadd8c8d91b078591d6d646da20b48cb | refs/heads/master | 2021-01-10T20:04:20.229647 | 2015-01-28T06:51:00 | 2015-01-28T06:51:00 | 29,954,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,583 | cpp | Unit1.cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include "Unit2.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
int X=300,Y=300;
TVector ... |
3e512fd5a1e61a33e1e9a97f4f97b31fd7187d49 | 12f789b91b12e4cf234cdac02e657d0dce253309 | /src-cpp/unique_cycles.cpp | ee93e1685f98aa2f2d6fbd924ce5a515fc0c060a | [] | no_license | jmrico01/crypto-arb | 117ae2b57d6dff4d2a078ef9a861577d8e187d68 | f383146371f29ba2f953b64b206e2f36e3ff86d2 | refs/heads/master | 2021-09-11T12:42:51.834273 | 2018-04-07T05:39:27 | 2018-04-07T05:39:27 | 115,051,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,665 | cpp | unique_cycles.cpp | #include "unique_cycles.h"
#include <stdlib.h>
static bool TarjanBacktrack(
int numNodes, const char** nodes, const Link** links, int** neighbors,
int* path, bool* marked, int* markedStack,
int* kPath, int* kMarked,
int v,
FILE* outFile, std::vector<std::vector<int>>& cycles,
RecordCycleFunc r... |
b0dd31c2c1114a77d325ba2fea5fba10f9e87ab9 | b75faa3e194b8843e8fa8cebe07af48138f2c5c3 | /MAKEFILE.TCC | 781191e6e89a4bb9a01ed534979178fff94b6a3c | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | fulcorno/PDL | 1b24b04368367187666b0b7dcededaaf3ada6c73 | 361e6808d715bd3dedf464ae902b91bbff147387 | refs/heads/master | 2020-04-27T00:01:18.610441 | 2019-03-05T10:12:00 | 2019-03-05T10:12:00 | 173,921,531 | 1 | 0 | Unlicense | 2019-03-05T10:12:05 | 2019-03-05T10:02:36 | PostScript | UTF-8 | C++ | false | false | 1,420 | tcc | MAKEFILE.TCC | # MakeFile for PDL language
all: pdl.exe
OBJS= main.obj parse.obj symtab.obj built.obj ogg.obj matrix.obj \
draw.obj hard.obj g_ps.obj g_bgi.obj
CFLAGS=
gram.c: gram.y
gram.obj: lex.c types.h
lex.c: lex.l
$(OBJS): types.h
# main.obj: err.h
# built.obj hard.obj g_bgi.obj: prim.h
pdl.exe: gram.obj $(OBJS)
$(CC)... |
d576fe8a8eb310cb771cd5f3bb9d5e0add6be647 | f8698830f0fa9425f8eec609fa819e1767ccde5c | /src/mainwindow.cpp | ffd2f2f734669effb188cc1801afb306342b765e | [] | no_license | 1ndy/ThrustLogger | 06f02e4265be79638906397a977d2121462c9d42 | 3f53d0dae653f8cbaef6aeaf12a2430c4b187e88 | refs/heads/main | 2023-06-02T02:26:30.383275 | 2021-06-22T01:33:23 | 2021-06-22T01:33:23 | 378,483,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,793 | cpp | mainwindow.cpp | #include <QTimer>
#include <filesystem>
#include "mainwindow.h"
#include "../ui/ui_mainwindow.h"
#include "serialdevice.h"
#include "averagerqueue.h"
#include "serialconfigwindow.h"
#include <windows.h>
#include <Lmcons.h>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow... |
c43bc518f83f545021ce9d9d436e65d9cd38729d | 2b4e3b6498c06a912a7b4306960355eca7e61f3b | /chapter 5/chap5_5.15/main.cpp | ab0b054eea373f3a2358501c13da973447f9ebb4 | [] | no_license | nrqu/answersprimer | 9391510e19764bbafa9ce79b801567f680c1dcaf | a21e782e8c5b771c80b861c59a60f643bab9ab4a | refs/heads/master | 2022-11-14T13:52:43.742962 | 2020-07-13T21:58:30 | 2020-07-13T21:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,186 | cpp | main.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.cpp
* Author: Enigmatic
*
* Created on April 15, 2019, 12:20 PM
*/
//Exercise 5.15: Explain each of the follow... |
b1502df2dc10a32aaaa80b1bc2a73a8796b98a19 | f75c305c3b0d783afa232da99d712e57a4bf63cb | /src/factories/RoomFactory.cpp | dbbbecbd626ccdd40dee03a9773dd5bbe6fc2555 | [] | no_license | Dutch-devil/HTBaL | 1662ef6d9675da36a8853495720c8f08098decff | 0b1748372e7326b628d5484fcb008d2245160fd4 | refs/heads/master | 2020-04-27T03:50:51.668562 | 2014-04-27T19:05:54 | 2014-04-27T19:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,459 | cpp | RoomFactory.cpp | #include "RoomFactory.h"
Room* RoomFactory::createRoomFromFloor(Scene* scene, House* house, list<Floor*> roomTiles) {
return createRoomFromFloor(scene, house, roomTiles, Room::Type::ROOM_EMPTY);
}
Room* RoomFactory::createRoomFromFloor(Scene* scene, House* house, list<Floor*> roomTiles, Room::Type roomType) {
... |
bc4098622377de041a0ccf8012527d34feec69c3 | dd4194c253672e8bd4723473c23dd3cb18defe51 | /MainWindow.cpp | 8254f694a552c5099d1ad4af51555d3a94b057c7 | [
"BSD-2-Clause"
] | permissive | timre13/LightMusic | 1d38806fe49e83e9cea4b03e5d7b6e230ed1c89b | 4f1c5eb2be5cf57abbc855f448eaf0e618f8a9f8 | refs/heads/master | 2023-04-26T20:26:56.339655 | 2021-05-05T21:28:57 | 2021-05-05T21:30:25 | 333,135,116 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,404 | cpp | MainWindow.cpp | /*
BSD 2-Clause License
Copyright (c) 2021, timre13
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions ... |
adf3cea56e17e62605e0b9e81b9070d8a6d892c4 | b5277b9f7e82da01c1f31368492e50d21e798303 | /testboost/number/rational_test.cpp | 41cd65e6c383413d72c7eb7762a2fca313489b51 | [] | no_license | tantaijin/testBoost | 3646ac55eda4e71b7f60295d262a94778f9f2637 | 86763e8b6505f47d0608c0355b1fdef2b0bd5634 | refs/heads/master | 2021-05-07T01:23:03.342499 | 2018-02-01T15:04:44 | 2018-02-01T15:04:44 | 110,249,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | cpp | rational_test.cpp | #include "stdafx.h"
#include "rational_test.h"
#include "boost\rational.hpp"
void test_rational()
{
boost::rational<int> pi(22, 7);
cout << pi << endl;// 22/7
}
|
58bea5b3ad9fec7ee54fc90c16d9f16f72424188 | c9a48ded66701374fd643790f40fe38a2dc93622 | /RayTracing/RayTracing/objects.cpp | 4c08515cf843e3d60e2d467030e3e2a24c05c357 | [] | no_license | Low-profile/Graphics | 193ded717edea9ab4e90751b1041609f52792561 | da9d20e25a17327d51653f5b172f7d6a448f53e3 | refs/heads/master | 2021-08-26T06:39:06.791991 | 2017-11-21T21:56:27 | 2017-11-21T21:56:27 | 110,754,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,327 | cpp | objects.cpp | #pragma once
#include "objects.h"
const float t_bias = 0.001;
void swap(float& a, float& b)
{
float temp = b;
b = a;
a = temp;
}
bool boxIntersectRay(const Ray &ray, const float* box, Point2& range)
{
float p_x{ ray.p.x }, dir_x{ ray.dir.x },
p_y{ ray.p.y }, dir_y{ ray.dir.y },
p_z{ ray.p.z }, dir_z{ ray.d... |
f280af134f880cceca4bb7486f4a2a48fe566f0e | 699ff10c347dc9b6d5af7f531a1c941dbfecd558 | /course14/练习-综合练习/不能一起吃的食物.cpp | 0d5f54a134db60213965595db78596b4aff9fb62 | [] | no_license | iampkuhz/OnlineJudge_cpp | 71a7637c54d81be2aa066a6132aab31b798bbe6b | 737b9bac5a73c319e46cda8c3e9d729f734d7792 | refs/heads/master | 2021-01-10T10:16:37.589855 | 2017-03-06T12:45:20 | 2017-03-06T12:45:20 | 24,891,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | 不能一起吃的食物.cpp | /*
* 不能一起吃的食物.cpp
*
* Created on: Dec 15, 2015
* Author: hanzhe
*/
#include <stdio.h>
#include <string.h>
char * foodPairs [11][2] = {
{"potato", "persimmon"},
{"egg", "glucide"},
{"onion", "honey"},
{"bean-curd", "honey"},
{"radish", "agaric"},
{"taro", "banana"},
{"pignut", "cucumber"},
{"b... |
cb9d2458ebf6d9cdaf397362def1e5fd97ba2fab | 0304b94fb4bc4682c4d5e25bb65dab2c7e9f324f | /Code/Source/sv3/ITKSegmentation/sv3_VascularPhaseOneLevelSetImageFilter.h | 3bbddfdb3dcff11c78e7189f0bdc748fa43b0b34 | [
"MIT"
] | permissive | SimVascular/SimVascular | 205126a3483079a9744d74bbef05112da0dbcc24 | edd1fc7c26cf9550594a7362d66bb5d0fadda4d9 | refs/heads/master | 2023-08-04T10:48:30.886728 | 2023-08-03T02:40:08 | 2023-08-03T02:40:08 | 41,169,947 | 228 | 140 | NOASSERTION | 2023-08-03T02:40:10 | 2015-08-21T18:01:19 | C++ | UTF-8 | C++ | false | false | 5,880 | h | sv3_VascularPhaseOneLevelSetImageFilter.h | /* Copyright (c) Stanford University, The Regents of the University of
* California, and others.
*
* All Rights Reserved.
*
* See Copyright-SimVascular.txt for additional details.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated doc... |
c30fa647a49458d96172a25d19690e6dea9006d9 | 9a3bcd7843dec75f7f75e2762bb3460b8256a78c | /checkers_frontend/include/FrontendController.hpp | 08e9335afd054ec8b7eac789483c1caba6b7484c | [] | no_license | gdomeradzki/genetic-checkers | d07654f0be21d9c1714866aacc8ec4b90cd575e9 | 259d4379ecd96323f119c1ff5856472a32a0c113 | refs/heads/master | 2021-01-01T08:25:08.719225 | 2020-03-01T12:07:19 | 2020-03-01T12:07:19 | 239,194,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | hpp | FrontendController.hpp | #pragma once
#include <memory>
#include <QEventLoop>
#include "FrontBoard.hpp"
#include "GamePlay.hpp"
#include "Heuristics.hpp"
#include "MainWindow.hpp"
#include "MetricsCalculator.hpp"
#include "Strategy.hpp"
class FrontendController
{
public:
FrontendController();
private:
void startNewGame();
voi... |
8a1b3d609421231c0f32e69f6295f24429559d20 | a7d02763314c19988d7f5f4696bb8f4fe0e292e1 | /ParticleModel.h | ebad82dce7864ed4fc613316182ffe29674058a0 | [] | no_license | ThomasJowett/FGGC-Framework-Semester-2 | 8f0fa3347988fdd0968bb0991fa488b14ed25d86 | 40305f5bc5a81ca357428ef9838bd99d73ee9a04 | refs/heads/master | 2021-05-12T01:43:50.669953 | 2018-05-03T14:23:50 | 2018-05-03T14:23:50 | 117,563,205 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | h | ParticleModel.h | #pragma once
#include "Vector.h"
#include "Transform.h"
#include "Collider.h"
#include "Commons.h"
class ParticleModel
{
public:
ParticleModel(float mass, Vector3D velocity, Transform * transform);
~ParticleModel();
void AddForce(Vector3D force);
virtual void Update(float deltaTime);
bool GetSimulatePhysics()... |
b308366536c7a03c1e88216c9a265396a1de89b4 | 659477b4e96ba1044b49e2272fe06f8c79ff1e87 | /OpenGL_FrameWork/Codes/MainApp.cpp | 1c6f58c53494daf99e99b64f83c4a22645a756e8 | [] | no_license | ParkSeJun/2020_CG_Project | a64c9f431f0701950ed9dd29a8300565cd594271 | c8bda82509b8a8d4714de731e290881da8eda368 | refs/heads/master | 2023-02-01T04:23:04.090963 | 2020-12-16T00:03:04 | 2020-12-16T00:03:04 | 321,635,529 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,043 | cpp | MainApp.cpp | #include "pch.h"
#include "MainApp.h"
#include "Shader.h"
#include "Rect.h"
#include "Cube.h"
#include "Camera_Debug.h"
#include "Obj.h"
#include "Terrain.h"
#include "Buffer_TankCol.h"
#include "Player.h"
#include "Light.h"
#include "Robot.h"
#include "Food.h"
CMainApp::CMainApp()
{
}
CMainApp::~CMainApp()
{
Re... |
2a63298c08d7b68f6fa1447bb0d1bfa5d4a76dd4 | 198ff003ba3eb77449acf07fa58ffcbf44da1c02 | /ROS1_Gazebo/gazebo_practice_7_velodyne/src/velodyne_plugin.cc | 021e27548ea53dce378854db4a99d40ef032587b | [] | no_license | luwis93choi/Gazebo_ROS_Simulation | ef9f14c195c2b4598ba78fe3605c060376e01c8f | bc200fb0e32e029fd53279b0ada7c265bf7549b1 | refs/heads/master | 2021-07-16T18:54:26.077038 | 2021-04-13T14:42:31 | 2021-04-13T14:42:31 | 245,111,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,869 | cc | velodyne_plugin.cc | #ifndef _VELODYNE_PLUGIN_HH_
#define _VELODYNE_PLUGIN_HH_
#include "gazebo/gazebo.hh"
#include "gazebo/physics/physics.hh"
namespace gazebo{
class VelodynePlugin : public ModelPlugin{
physics::ModelPtr model;
physics::JointPtr joint;
common::PID pid;
public:VelodynePlugin(){}
... |
6c508c25abaf94e2cdb1e821d84eb6eb1352c9db | 9a178d7e313148b5c110a036628c81f416c6c3b1 | /ttud/testSMS.cpp | 9326a5bece1de92e1891c2089c768e4ea7cb5295 | [] | no_license | hieunv183534/ttud | 09d1300e9de54cf48824c64d42c1e4b86da9d128 | 6ca378968795928db2351e998f3abd66281e53c5 | refs/heads/main | 2023-08-02T01:42:23.698392 | 2021-09-08T03:47:00 | 2021-09-08T03:47:00 | 404,202,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | testSMS.cpp | #include<bits/stdc++.h>
using namespace std;
char a[]=" abcdefghijklmnopqrstuvwxyz";
int b[]= {1,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4};
int demKt(string s)
{
int dem=0;
for(int i=0; i<s.length(); i++)
{
for(int j=0; j<27; j++)
{
if(s[i]==a[j]) dem+=b[j];
... |
ffa5027efca7b590717b5b25957897f0fcd2eebe | af41db0ed8525159101406c5c02a5cc3f1100547 | /Temp/StagingArea/Data/il2cppOutput/AssemblyU2DCSharp_scrMailSpawner_U3CSpawnMailU3Ec_1431046067.h | 151bd7f4efca81d28e4cea30e378683c8af2d064 | [] | no_license | IllyaHlushko/Reply_All | bc171784488a8f6fadeb49aa422f50362069544b | e4d4274f88a76a147a8bfe532c69e21f9b1ba32e | refs/heads/master | 2021-01-02T00:21:37.465192 | 2020-02-11T16:55:16 | 2020-02-11T16:55:16 | 239,408,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,585 | h | AssemblyU2DCSharp_scrMailSpawner_U3CSpawnMailU3Ec_1431046067.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// FMail
struct FMail_t3455079741;
// UnityEngine.GameObject
struct GameObject_t1756533147;
// scrMailSpawner
struct scrMailSpawner_t311409585;
// System.Object
struct Il2CppObject;
... |
47952f41589824b66a80396c457ee3eb80f770a9 | c50b070d4aed30df580b0f066839bf50fa2af668 | /src/pipeline/pipeline.h | 97dcfc63921a9b9c8515bcc1d677311f46b2b175 | [
"MIT"
] | permissive | ealang/z-synth | b2d106afdb349db003b9a0b825a8ca601afa44d9 | b51175803a2419f8b73ad4eefeffb4b57f59d28f | refs/heads/master | 2023-02-08T11:06:24.151440 | 2023-02-07T03:23:00 | 2023-02-07T03:47:47 | 167,772,084 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,737 | h | pipeline.h | #ifndef PIPELINE_H
#define PIPELINE_H
#define PIPELINE_H_PROFILING 0
#include "./plan_execution.h"
#include "./pipeline_element.h"
#if PIPELINE_H_PROFILING
#include "../metric.h"
#endif
#include <sstream>
#include <exception>
#include <memory>
#include <unordered_map>
#include <vector>
template <typename T>
struct... |
00b81107ad57c9392f447f2ddc2bb2aa8641bf50 | a603e9d52853ae836ec34102105b6920c7aad9f6 | /flow/cpp/magical_flow/src/util/Polygon2Rect.h | dcc7d95eedb4e5b82cc5684101d24b6c8c8b07b1 | [
"BSD-3-Clause"
] | permissive | magical-eda/MAGICAL | a8225e66653c411a5b1ec422233ef3f8d60dafff | 199ab0719f85f74c79bf85a556118b132988a5fe | refs/heads/master | 2022-11-19T04:36:36.542986 | 2021-09-10T22:14:57 | 2021-09-10T22:14:57 | 174,222,055 | 176 | 44 | BSD-3-Clause | 2021-09-10T22:14:58 | 2019-03-06T21:12:55 | C++ | UTF-8 | C++ | false | false | 4,227 | h | Polygon2Rect.h | /**
* @file Polygon2Rect.h
* @author Keren Zhu
* @date 11/06/2018
*/
#ifndef KLIB_POLYGON2RECT_H_
#define KLIB_POLYGON2RECT_H_
#include "Box.h"
#include <limbo/geometry/Polygon2Rectangle.h>
//using namespace limbo::geometry;
namespace limbo { namespace geometry {
/**
* @brief if your point class setting is ... |
6ead1b7fa0163eccc29e17a82dccdb950712eebd | 410c9412c80b5c7613971467b68b7c867c09f134 | /easylogger/log.cpp | a6703171767a5247cdc238496ec71cdda0f9ce3a | [] | no_license | ztxgithub/git_network | 64ce9f43f922ba6bf1cf008ad3c645ef97a5c7ed | 3a10d4b35f7cdad91fae7d660994ad32249f3d56 | refs/heads/master | 2020-06-27T16:11:43.075324 | 2019-02-25T14:36:58 | 2019-02-25T14:36:58 | 97,064,207 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,709 | cpp | log.cpp | //
// Created by wangyi on 16-7-15.
//
#include "log.h"
/*
* Esaylogger 初始化,各等级日志格式配置
*/
void elog_init_config(void)
{
setbuf(stdout, NULL);
elog_init();
elog_set_fmt(ELOG_LVL_ASSERT, ELOG_FMT_ALL);
elog_set_fmt(ELOG_LVL_ERROR, ELOG_FMT_LVL | ELOG_FMT_TIME | ELOG_FMT_FUNC | ELOG_FMT_LINE);
elog_... |
9d2074559abf5a138a2f08a10dd280fe28405745 | 9c3679ff615f6f7d302149dea92d66d3512b7e99 | /opening.cpp | 6296a1998cecfa9dab882cf5c1235269f9fc6b74 | [] | no_license | LexusArcherLiu/Magic-Tower | 0c7184c04ce444cf1d484df43a7e785739e82fa6 | dd4e9f2979d9b04d07806fc4032de64fe01373c0 | refs/heads/master | 2020-07-26T10:09:15.787499 | 2019-09-15T15:13:57 | 2019-09-15T15:13:57 | 208,611,608 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 982 | cpp | opening.cpp | #include "header.h"
extern int Dialogue1(IMAGE bg);
void opening() {
setbkcolor(BLACK);
cleardevice();
Sleep(4000);
setbkcolor(WHITE);
cleardevice();
Sleep(1000);
settextstyle(60, 0, "华文琥珀");
setbkcolor(BLACK);
cleardevice();
Sleep(4000);
outtextxy(280, 170, "我现在是在哪儿?");
Sleep(2000);
cle... |
ae97146b4f033b9c88c36d31fd426e36be611287 | 32ee2f573c0768bac3fdc08fba7ebcb71c2a955d | /injector.ino | 19e33061afcfdfbdd1774472646d4d8fa77dcccc | [] | no_license | Misaux/PldInjector | dd1c8a94c0df16fa63d808f67f5c39291a4182d4 | 9baae04ab99705b1ed0896acf39efb0025f38517 | refs/heads/master | 2022-05-26T00:12:57.606089 | 2020-04-28T15:37:07 | 2020-04-28T15:37:07 | 259,728,168 | 1 | 0 | null | 2020-04-28T19:10:52 | 2020-04-28T19:10:51 | null | UTF-8 | C++ | false | false | 2,421 | ino | injector.ino | #include "DigiKeyboard.h"
void setup() {
pinMode(1, OUTPUT);
}
void loop() {
digitalWrite(1, HIGH);
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(500); //Open defender
DigiKeyboard.sendKeyStroke(41, MOD_CONTROL_LEFT);
DigiKeyboard.delay(200);
DigiKeyboard.print("defende... |
491a93debf9edc416474cb19ae4305c30cc15f67 | f403db9ee4b31319b6a329f5bcaa5857426208af | /tic_tac_toe.cpp | 2bf16e6b696cec70479565b32af418e6ff352b37 | [] | no_license | vanshika-13/The-TIC-tac-Toe-game | bc963eeb66f4a517da1d5e7b40f67fdcf145e680 | 7cec12aa217e78df21bd86bf60cc62540d903bc8 | refs/heads/main | 2023-06-26T18:52:20.286986 | 2021-07-26T14:04:07 | 2021-07-26T14:04:07 | 389,649,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,931 | cpp | tic_tac_toe.cpp | #include <bits/stdc++.h>
#include <conio.h>
char board[3][3] = {{'1', '2', '3'}, {'4', '5', '6'}, {'7', '8', '9'}};
char name1[15], name2[15];
char turn = 'X';
bool draw = false;
int row, column;
void display_board();
void player_turn();
bool game_over();
using namespace std;
int main()
{
cout << " ... |
499f80c12951b8df4735539e04b5142f2bd00569 | 2a0ebcf3774859be72e060967e893fec516ca841 | /sum of compex no.cpp | 03d9b3dba2efcd4e89fb2e7d44fa232329c7fa8d | [] | no_license | Sahil624/Cpp-Programs | 8dc1672158425f758022f823a554b34253c5f84d | eff61ae8b919d059eeb8c07718b39a6e24ffcf10 | refs/heads/master | 2021-01-24T18:37:51.559051 | 2017-03-15T16:04:55 | 2017-03-15T16:04:55 | 84,457,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | cpp | sum of compex no.cpp | #include<iostream>
#include<math.h>
using namespace std;
class number
{
float real;
float comp;
float realc;
float compc;
public:
void getnumber()
{
cout<<"Enter Real and Imaginary part of number"<<endl;
cin>>real>>comp;
realc=real;
compc=comp;
}
void su... |
0f387323f7dcb9952c6b795a22b4da0971e079f2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5640146288377856_1/C++/CharanBandikatla/a.cpp | 1b464de87e6b0746ba54b6b4cd66e697fae37ea2 | [] | 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 | 296 | cpp | a.cpp | #include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
int t,i,r,c,w;
for(cin>>t,i=1; i<=t ;i++)
{
cin>>r>>c>>w;
int sol=c/w;
sol=sol*r;
if(c%w!=0) sol++;
sol+=w-1;
printf("Case #%d: %d\n",i,sol);
}
return 0;
}
|
ba3115a6437223e33000c0d24efc91fbfbd99da1 | 019e3b2f28b781bc5654f46f65e40752824d7003 | /bigquic/bigquic-run.cpp | b13c5de10f802093f1a86117c478e561869164d5 | [
"BSD-3-Clause"
] | permissive | hugosc/bigquic | f11cf1df166857f04eb49fcba58a74f484942059 | 107a2db0423f1d642279001e4e2c11e3b575d3a3 | refs/heads/master | 2020-05-19T21:18:31.981333 | 2019-05-06T16:33:23 | 2019-05-06T16:33:23 | 185,221,151 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,314 | cpp | bigquic-run.cpp | // An interface to BigQUIC with raw data as input.
//
// See the README file for more information.
//#include <metis.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <algorithm>
#include "bigquic.h"
using namespace std;
void exit_with_help()
{
printf(
"... |
bbc366adefc7e25afe8ad0d3e9c09c38434e97fb | 2177258dfdb25e207299f3c47ee91926a26c8818 | /irrlicht-1.8.4/source/Irrlicht/CD3D9NormalMapRenderer.cpp | 512dabe251a273f197bad6c506a0854bc798599b | [] | no_license | arthurphilippe/cpp_indie_studio.ressources | 492ee546b4b71cec71d1ce06f987dcc0c21b410b | e2f93e5ddac9623b716377660b9e0f6665fbd684 | refs/heads/master | 2020-03-17T14:58:50.063176 | 2018-05-16T16:22:32 | 2018-05-16T16:22:32 | 133,629,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | cpp | CD3D9NormalMapRenderer.cpp | version https://git-lfs.github.com/spec/v1
oid sha256:c730ec89006912a16460cdbbec69341770d5412afc34d15adf302795a462c5c5
size 10890
|
d25105514f5920223546884415ba0f65a1bab4ad | 472664b9c32e5f767cd5c73ab260cbc940ccca9e | /d03/ex02/main.cpp | 8672e323871ae8d18dd6469ab23b1c36b45a4a40 | [] | no_license | McM1k/piscine_cpp | b41d32ec3cabcff3d8346183c71fe1f1adaaa496 | 9c563d5e10f3dd55c2cd9a8e0b5f9468647756fa | refs/heads/master | 2020-03-07T18:46:47.130610 | 2018-04-10T08:38:49 | 2018-04-10T08:38:49 | 127,651,432 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,597 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
4f301493e2ed6fe58bc3d6a6c6b35bf0aeef2c83 | ad705dad686f92ac7a179290907d5077a3d855de | /3DShootingGame/Game/Components/ShootGauge.cpp | 08daa6b40be0f79c6c8600139ad6b3c5e8a162bd | [
"MIT"
] | permissive | ydeagames/3DShootingGame | e500f78b10617d3701def9e9f6de3cae82c67a5b | f93e15179452810bd55fbfcedb6c162698296ec4 | refs/heads/master | 2021-07-06T18:46:31.155827 | 2020-10-28T02:07:28 | 2020-10-28T02:07:28 | 197,773,632 | 2 | 2 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,565 | cpp | ShootGauge.cpp | // Copyright (c) 2019-2020 ydeagames
// Released under the MIT license
// https://github.com/ydeagames/3DShootingGame/blob/master/LICENSE
//
// Author: ${ydeagames}
// Created: 2020-01-20 08:46:50 +0900
// Modified: 2020-01-27 14:06:31 +0900
#include "pch.h"
#include "ShootGauge.h"
#include <Framework/Components/Trans... |
eddaa67498760ddb0b1b44031f9526e6442aae70 | 8eefbd674653f7009509e76cf6107514af81ac96 | /YF/dishesscale.cpp | 6dabf4b39b9195df593561b917dfee075ca4ebd9 | [] | no_license | xzhy527/qtCanyin | 0d3a0b9bcb623445ca4192329b2ca0454e9a6c41 | f2a8c6dacf3273a54618b628e8de4b8faa2d4e51 | refs/heads/master | 2020-05-29T12:14:41.011070 | 2014-12-03T11:06:12 | 2014-12-03T11:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,929 | cpp | dishesscale.cpp | #include "dishesscale.h"
#include <QJsonObject>
#include <QStyledItemDelegate>
#include <QFont>
#include <QString>
#include <QUrl>
#include <QLinearGradient>
#include <QTableView>
DishesScale::DishesScale(QObject *parent) :
QItemDelegate(parent)
{
}
void DishesScale::paint(QPainter *painter, const QStyleOptionView... |
817f68d05804eaa2ef56c209314e6d3859bab240 | 16288c0fb3a712150c715ddd0c9843e75f69034b | /cpp02_FixedPoint/Ressources/training01/Sample.hpp | 13c600c6b8cac458024d2ba1ea6ad8d8183baad7 | [] | no_license | brian-xu-vlt/42_CPP_PISCINE | 3c6cb8ce224e53335b3e53cd24c97dc867c2d9f0 | bda1f5834649e50012d0153c3cdd28769280fc9d | refs/heads/main | 2023-02-25T23:17:43.176521 | 2021-02-03T07:12:22 | 2021-02-03T07:12:22 | 323,266,501 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | hpp | Sample.hpp | #ifndef SAMPLE_HPP
# define SAMPLE_HPP
# include <iostream>
# include <string>
class Sample
{
public:
Sample(); //canon
Sample( int const n );
Sample( Sample const & src ); //canon
~Sample(); //canon (+ virtual?)
Sample & operator=( Sample const & rhs ); //canon
int getValue... |
cb9d6bf25b025b47c8a8ce74b4d883db2cad92c9 | 178de8c51de364aa1171abc02b4fdc8f87a2a1f4 | /Learn/5.3.x/ThirdPerson/Code/GamePlugin.cpp | 2f05d129928572f6d7b047dddb4913e2aaa05a5e | [
"Apache-2.0"
] | permissive | longlongwaytogo/CryEngineV_Proj | ffea85a50bf92450d16b38828da151d82e890755 | 2073b5e7a86445f41ef70f8986213e39c0ae37a0 | refs/heads/master | 2021-05-11T16:31:26.215450 | 2019-02-25T07:38:52 | 2019-02-25T07:38:52 | 117,769,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | cpp | GamePlugin.cpp | #include "StdAfx.h"
#include "GamePlugin.h"
// Included only once per DLL module.
#include <CryCore/Platform/platform_impl.inl>
IEntityRegistrator *IEntityRegistrator::g_pFirst = nullptr;
IEntityRegistrator *IEntityRegistrator::g_pLast = nullptr;
CGamePlugin::~CGamePlugin()
{
gEnv->pSystem->GetISystemEventDispatche... |
0065d5600bd4bf683d128ba87334389117c65461 | 82ba0fd972dd7ed2760973848a469e509efebe05 | /src/Game.cpp | b46a2c826f5c39ee07622a5889f0266229f98300 | [
"MIT"
] | permissive | yotam5/sfml_snake | d4e2aa144574d2f8a2bc449a9f0fed145a74f309 | e09193a771337c875b32fa5fb14ed7b87c42567c | refs/heads/main | 2023-02-04T14:06:59.619423 | 2020-12-22T06:59:25 | 2020-12-22T06:59:25 | 322,890,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,962 | cpp | Game.cpp |
#include "../headers/Game.h"
#include <iostream>
//-----------------------
#include <vector>
#include <string>
using namespace std;
//constructor
Game::Game()
{
this->initVariables();
this->initWindow();
}
//destructor
Game::~Game()
{
delete this->window;
}
//init apple
void Game::initApple()
{
floa... |
aa84b4806dcc2a8ef60a8b993d36dd67089451af | db1acaba57f9dfff34b175e808518a5ad0fb3d29 | /plugins/ErasureDll/ErasureUI/ErasureRecycleUI.cpp | 5d2c77c69caee91554c7f6416849af98d84acf62 | [] | no_license | locustwei/Leadow | 20157ed7141916361abe85b1a92206821b5a8509 | c9fab13b67e3cc5219e1319adfb603a311bca863 | refs/heads/master | 2021-06-11T16:08:25.524759 | 2019-10-05T08:46:48 | 2019-10-05T08:46:48 | 140,794,910 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,129 | cpp | ErasureRecycleUI.cpp | #include "stdafx.h"
#include "ErasureRecycleUI.h"
CErasureRecycleUI::CErasureRecycleUI():
CErasureFileUI()
{
m_Name = _T("ErasureRecycleUI");
//m_ItemSkin = _T("erasure/listitem_recycle.xml"); //
}
CErasureRecycleUI::~CErasureRecycleUI()
{
}
CControlUI * CErasureRecycleUI::AddFile(TCHAR *... |
0e0458de76859cf7c6863a8d3b2462046165c895 | d325ae621bf0e8b61afa620f5437ba0fbe338de4 | /elenasrc3/elenasm/cfparser.h | 88261233986f394a232cd981debcfe9fc4827199 | [
"MIT"
] | permissive | ELENA-LANG/elena-lang | 4a39aae6e3f91c36c794633cd17fad50a3ac4f17 | 5826a561f5e3356bc4f411a9a89e6c172f7e2707 | refs/heads/master | 2023-08-31T04:12:01.212527 | 2023-08-19T19:00:39 | 2023-08-19T19:00:39 | 13,586,508 | 245 | 36 | MIT | 2023-08-19T19:00:40 | 2013-10-15T10:02:54 | C++ | UTF-8 | C++ | false | false | 6,256 | h | cfparser.h | //---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA VM Script Engine
//
// (C)2023, by Aleksey Rakov
//---------------------------------------------------------------------------
#ifndef CFPARSER_H
#define CFPAR... |
664cd5a7f502bd3e1f4e6c809ff5c7fc05842e15 | b0ce2fc49e7b544b40f9fb0602ec451d7a4b61ba | /num_peeling/numpeel.cpp | f4cc290a0e9f87fe0ba75a2c608e957cfb052250 | [] | no_license | patelaaniket/csce121 | 4516be3cd8cdd67d9625e8648095338a7fa8d8d7 | 345d03ffef8be8d69f74c75ab8527dbce67e8fbe | refs/heads/main | 2023-02-12T06:46:16.301668 | 2021-01-14T22:43:44 | 2021-01-14T22:43:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255 | cpp | numpeel.cpp | #include <iostream>
using namespace std;
int main() {
int input;
cout << "Please give an integer: " << endl;
cin >> input;
int sum = 0;
while (input > 0) {
sum += input % 10;
input /= 10;
}
cout << sum << endl;
return 0;
} |
9e869d86e341b780ea501485303a0a8defcf6009 | 5c4b3fc7d226356ecac48d4bea4e1a3b1416caca | /modules/string/include/shard/string/compare.hpp | ae92b0fbf8e83b29ea9b6d7c04a2d12c929c1946 | [
"MIT"
] | permissive | ikimol/shard | 0cbf35eb2ad32a828f02d09462c525edf96d4113 | a6e6effd67a40ca34969b6a1ac618df886a0f3ac | refs/heads/develop | 2023-08-30T22:49:43.501779 | 2023-08-18T16:15:24 | 2023-08-18T16:15:24 | 167,057,756 | 0 | 0 | MIT | 2020-02-28T12:17:00 | 2019-01-22T19:54:01 | C++ | UTF-8 | C++ | false | false | 1,408 | hpp | compare.hpp | // Copyright (c) 2023 Miklos Molnar. All rights reserved.
#pragma once
#include "shard/string/ctype.hpp"
#include <algorithm>
#include <string>
namespace shard {
namespace string {
/// Check if two strings are equal ignoring case
inline bool iequals(const std::string& lhs, const std::string& rhs) {
if (lhs.len... |
595229d5034e606dff143408f10c10ddf10a2511 | b3f431bb5e8b6fd1ccc58cc179dabffc7c8b1fa4 | /include/imu_ekf/imu_estimator.h | 1ed8b5feb9b4d4e3df0f22ad99926c3eab51cea4 | [] | no_license | hdb1301040027/imu_ekf | 0d03e6e37a9c3175c243b95aef7084ed2e3a8cf3 | 7fb544b99bfb2638e008517105e18a369bef5f18 | refs/heads/master | 2022-04-15T13:14:27.643815 | 2020-04-12T11:34:21 | 2020-04-12T11:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,290 | h | imu_estimator.h | /*
* imu_ekf
*
* Copyright 2016-2017 Stylianos Piperakis, Foundation for Research and Technology Hellas (FORTH)
* License: BSD
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source... |
9648b67328b71dd082a79986f6e75df0314a88f8 | b2fd04f44874a8a0e7ee0a79c4c68065f5ec6e97 | /Library/Math/FastMul.cpp | a3111e4922e9ece709f369592b83ba3a99535852 | [] | no_license | KyRillosBoshRa/CompetitiveProgramming | 4c10d36cc1d27e1a8dc93da3199fc68cf5908eb2 | a59c405b3ff6bfb055460ef9cc72a53ed713bad9 | refs/heads/master | 2023-02-08T17:39:41.187236 | 2023-01-28T19:44:04 | 2023-01-28T19:44:04 | 160,961,001 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | cpp | FastMul.cpp | long long multiply(long long A, long long B, long long MOD) {
if (!B) return 0;
if (B % 2) return (A + multiply(A, B - 1, MOD)) % MOD;
long long partial = multiply(A, B / 2, MOD);
return (partial + partial) % MOD;
}
|
c9d99d84a6322ddfccd5e0f4bac9318b47bc5ffb | caed8e1e3f526423895efbcc2fcaaef214696273 | /src/test/sensor_serial/sensor_serial.cpp | 4c0c7c1492a2942c487c372e8f0b797d2b0d6148 | [] | no_license | bmiro/theramic | a8217e38d22c38781ff17c526b267ade8d6affb9 | a1229cab2dc0d39d8277665a88fca892dc6ed1a8 | refs/heads/master | 2021-01-06T20:46:05.536818 | 2013-01-08T21:07:42 | 2013-01-08T21:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | cpp | sensor_serial.cpp | /* Send sensor value to the serial port */
/* Test to send values to USB using serial interface */
#include "Arduino.h"
#define PIN_BEAT A0
#define PIN_PROX A2
int beat_in;
int prox_in;
void setup() {
Serial.begin(9600);
}
void loop() {
beat_in = analogRead(PIN_BEAT);
Serial.println(be... |
ac5f3a3cbc49a703f10d62d2e2f690bd942d16d2 | d3069304019114e1d3311b2317cb043937a345f3 | /coverage/coverage-tool/trace.cpp | b10776af700ab9a8c86159a14bf6e584e3dd10f0 | [] | no_license | euspectre/kedr-aux | 95687b71dcc26610ec9e859a31a0c0b24b754631 | 63b2f138055044b45aa4c1c1ff5bc2ea6d7aee3f | refs/heads/master | 2023-01-05T01:32:43.784406 | 2022-11-24T16:44:11 | 2022-11-24T16:44:11 | 33,191,520 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 29,345 | cpp | trace.cpp | // trace.cpp - implementation of 'Trace' class methods.
//
// Copyright (C) 2012, Institute for System Programming
// of the Russian Academy of Sciences (ISPRAS)
// Author:
// Andrey Tsyvarev <tsyvarev@ispras.ru>
//
// This program is free software; you can ... |
072082841d3fd828875fe37cb4740ce10bd0fcf3 | 4091bd696528dc8c5d520f8037447c094301b49e | /AperiodicDFAExperiment/Tools.cpp | 214c15ce598627e3485920a6ebabb7ddc3474567 | [] | no_license | SvalovaDasha/AperiodicDFAExperiment | 623896f68b959ad21bb9244f057e9c970a41d5d7 | 6456da091eb01d07cfbf757e538451d5bbad2060 | refs/heads/master | 2021-01-01T04:21:07.388014 | 2016-05-20T09:56:00 | 2016-05-20T09:56:00 | 59,275,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | cpp | Tools.cpp | #include <sstream>
#include "Tools.h"
std::vector<std::string> Tools::Split(const std::string& str, char delimiter){
std::vector<std::string> result;
std::stringstream strstream(str);
std::string token;
while(std::getline(strstream, token, delimiter))
result.push_back(token);
retur... |
153a8b314a77c42f381f99fda53132038a05c0a2 | cf4276242fd2d33af338571d729d20cc46e825db | /src/Int_test/test_command_tests.cpp | d9acb28b3548d2bd070d65505ce15399b8af90dc | [] | no_license | QLiu87/A-simple-shell | c85c3b2d1245516cba7d0914eeccc60ede5882f7 | b833feb24de3d50429eaa103c9f405fd7d38bd58 | refs/heads/master | 2021-10-25T05:23:03.188233 | 2019-04-01T23:30:05 | 2019-04-01T23:30:05 | 178,962,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | test_command_tests.cpp | #include <iostream>
#include <string>
#include <fstream>
#include "../base.h"
#include "../main.h"
#include "../TestCommand_S.h"
#include "../TestParse_S.h"
using namespace std;
int main(int argc, char** argv){
ifstream fin;
string userInput;
fin.open(argv[1]);
while(getline(fin, userInput)){
Te... |
14d9517eef9a797a8c8f51141dad9827c5e4be6e | 4d4822b29e666cea6b2d99d5b9d9c41916b455a9 | /Example/Pods/Headers/Private/GeoFeatures/boost/multiprecision/cpp_int/value_pack.hpp | 79d868ad3ca4fdc879b2cb73e09d6cd947e1e43c | [
"BSL-1.0",
"Apache-2.0"
] | permissive | eswiss/geofeatures | 7346210128358cca5001a04b0e380afc9d19663b | 1ffd5fdc49d859b829bdb8a9147ba6543d8d46c4 | refs/heads/master | 2020-04-05T19:45:33.653377 | 2016-01-28T20:11:44 | 2016-01-28T20:11:44 | 50,859,811 | 0 | 0 | null | 2016-02-01T18:12:28 | 2016-02-01T18:12:28 | null | UTF-8 | C++ | false | false | 79 | hpp | value_pack.hpp | ../../../../../../../../GeoFeatures/boost/multiprecision/cpp_int/value_pack.hpp |
8ae211e5c3ded76ca9fc81b58d5224ff2072e62a | eee17ebce2762905d8113c85436fc026ea4fb885 | /features/network/HTTPClient+Mongoose.cpp | 1e8f1b13ae01dbcb4c6ee8fbbe2c60f4d13ca7ea | [] | no_license | baibaiwei/openscenegraph-cross-platform-examples | 4516fdefdd20b19ebe4429bd9d09ea46445480eb | 2cb775bdc2e131e903d0703c20d6a0603d8054fa | refs/heads/master | 2020-03-21T05:25:00.526384 | 2018-06-21T09:10:25 | 2018-06-21T09:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 79 | cpp | HTTPClient+Mongoose.cpp | FEATURE network.h/Impl
private:
typedef HTTPClientMongoose HTTPClientImpl;
|
83ad1de4b5eb2808376076a354bd2eaf9163b265 | 847851d522c80a2211ab69a05435f93ef0446b5b | /Year 2/Project 3/QuickSort.h | 64a5532fceb05c3b963d3aca720f879ad06b4611 | [] | no_license | huntmk/SchoolWork | 454651f19ed18a5081917b5c8af017d86d303413 | 8cdf87b3be4c815cd3471f6292eba598038422dc | refs/heads/master | 2021-12-11T19:22:38.888640 | 2021-12-07T23:16:53 | 2021-12-07T23:16:53 | 218,656,800 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | h | QuickSort.h | //QuickSort.h
#ifndef QUICKSORT_H
#define QUICKSORT_H
#include "newSort.h"
class QuickSort: public newSort
{
public:
//constructor
QuickSort();
//destructor
~QuickSort();
//virtual sort method
int breakFunct(int*, int, int);
void sort(int *, int,int);
};
#endif//QUICKSORT_H |
a759f06a37798cada8a43b0105203c38d0730bf4 | f3ec6f58945941ca64bcc62fa79b960aae1271fa | /cpp/src/opendnp3/Database.h | 468dfc1b026b27144069aa2559becec3214fbfd9 | [
"Apache-2.0"
] | permissive | m13kot/dnp3 | 2477d191111fa428e142af537269520f15c13870 | b77ec3353bd797003f080577a828421d2bfc7550 | refs/heads/master | 2021-01-16T18:07:46.055589 | 2013-07-30T20:17:52 | 2013-07-30T20:17:52 | 11,766,592 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,986 | h | Database.h |
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
// more contributor license agreements. See the NOTICE file distributed
// with this work for additional information regarding copyright ownership.
// Green Energy Corp licenses this file to you under the Apache License,
// Version 2.0 (the "Li... |
64cf217067d2c54a0a2f517bcdaa252666885f29 | 075f14ec59fe4e91aa65260832cfdfc5a6fcee6b | /brew_main/TemperatureController.cpp | e971d02767ca0d5b82a797cb39b894c69b18c69e | [] | no_license | Lil-Tot/lil-brew | ed49ab7f9edd0f6f82931a78d50461d5d2c0966e | b00c6b7298de4595c84a5c9708531c4b1e6335ad | refs/heads/main | 2023-05-18T20:46:18.406048 | 2021-06-10T22:00:41 | 2021-06-10T22:00:41 | 354,862,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,303 | cpp | TemperatureController.cpp | #include "TemperatureController.h"
TemperatureController* TemperatureController::temperatureControllerList = NULL;
TemperatureController::TemperatureController(uint8_t encodeClick,
uint8_t encodePin0,
uint8_t encodePin1,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.