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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4416c6960b96d9d67d22a0a6be3383f989cfee6c | 185cd525eac144f99216e2f0079163fe52ec19c9 | /src/main/cpp/rocketmq/include/ConsumeMessageServiceBase.h | 50173a578dde58dd93b319bb4127a824710c1785 | [
"Apache-2.0"
] | permissive | aaron-ai/rocketmq-client-cpp | a03d5bf509e53d2a00ea4f9ddf1b367c59e2480f | 55bccfc35e57b9989bcba0df28414ed331f9f0ac | refs/heads/main | 2023-08-20T07:14:36.935701 | 2021-10-18T05:49:41 | 2021-10-18T05:49:41 | 418,398,558 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,026 | h | ConsumeMessageServiceBase.h | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
5048aea20171318b264fb2bb715d8a4aa6f952a4 | 39a60b59c69c7f2abdf6cbdc4ca9386b9ade71bb | /ch8/8_1/main.cpp | 44f610d6710baae2808df67522b4221b922efbcc | [] | no_license | RaneWouters/oop | 7d8d26567e9c8282b20cfd07c092acfff67cf69b | 6e58703139d607f3d121554d79db7ddf72ae8ac3 | refs/heads/master | 2023-04-08T05:49:54.904983 | 2021-04-29T10:59:23 | 2021-04-29T10:59:23 | 346,638,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | main.cpp | #include <iostream>
#include <vector>
#include "MyVector.h"
using namespace std;
int main() {
int temp[] = {1, 2, 3, 4};
MyVector<int> vec_temp(temp, sizeof(temp) / sizeof(int));
MyVector<int> vec_user(vec_temp);
vec_temp.insert(2, 20);
vec_temp.insert(2, 30);
vec_temp.erase(2);
vec_temp.c... |
b44977fb5bcb3b99cf4f27d48661586f689d8ead | 577f1e401ca4c7b13325c603e511c77dbf033589 | /src/AlgoDPath.cpp | cd800ae9565f464211ffe34aa66395fd1f64de75 | [] | no_license | hdd-robot/MPAL | 0c35adef852374a28ad79df4dd061141c118db7d | 97a2041d823728a1dfeecc8a48eb37870fe5d14e | refs/heads/master | 2023-09-03T14:24:27.093210 | 2021-11-15T10:23:32 | 2021-11-15T10:23:32 | 289,668,393 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,262 | cpp | AlgoDPath.cpp | /*
* AlgoDPath.cpp
*
* Created on: 20 mai 2020
* Author: Halim Djerroud <hdd@ai.univ-paris8.fr>
*/
#include "AlgoDPath.h"
namespace mpal {
AlgoDPath::AlgoDPath(EnvironmentContinue *env) :
AlgoContEnvBased(env) {
algoName = AlgoType::D_PATH;
}
AlgoDPath::~AlgoDPath() {
if(lidar_ptr != nullptr){
de... |
5a0552272ddacb82f899d21b4c6651bdbbdfe4aa | f13d58b82ab70b42ff017432272e4e9fc3d8d99a | /online-judge/Luogu/Luogu 3919.cpp | 3d2c23af5faae84e9dca5ac68a67435470444c57 | [] | no_license | WEGFan/Algorithm-Contest-Code | 3586d6edba03165a9e243a10566fedcc6bcf1315 | a5b53605c0ec7161d12d48335171763a2ddf12b0 | refs/heads/master | 2020-11-26T10:33:02.807386 | 2019-12-19T12:05:17 | 2019-12-19T12:05:17 | 229,043,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,903 | cpp | Luogu 3919.cpp | #include <iostream>
using namespace std;
const int N = 1e6 + 7;
int arr[N];
int rt[N]; // root index
struct ChairmanTree
{
int tot = 0; // total nodes
struct Node
{
int l, r; // lson & rson node id
int val;
} tr[N * 24]; // (4 + logn) * n
int build(int l, int r)
{
i... |
b33d966009e285440a01f562ffa1b96a59d6afdb | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/92/218.c | 187082842f880b0ca9da2901146c8063a6adef81 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | c | 218.c |
int compare(const void * elem1, const void * elem2)
{
return (*(int *)elem1 - *(int *)elem2);
}
int main()
{
int n;
int TJ[2001];
int QW[2001];
while(cin >> n && n != 0)
{
for (int i = 0; i < n; i ++)
cin >> TJ[i];
for (int i = 0; i < n; i ++)
cin >> QW[i];
qsort(TJ, n, sizeo... |
dc27e4dcd469f09c4e898b482519a0f177fae831 | 74562eccba8d1de27b6cfea66ff4ac494c4d4c42 | /lineTable/StackAndQueue.cpp | 83d97c5d5e1a4816f30539192379f6ba18a732e0 | [] | no_license | subicWang/data-structure | 380d54a76aae281de9bb75ada98db1afe0331653 | 96f754c27e2b86efb06b7c6159abd9db086d42b9 | refs/heads/master | 2020-03-30T06:02:09.310758 | 2018-10-18T14:08:52 | 2018-10-18T14:08:52 | 150,834,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 817 | cpp | StackAndQueue.cpp | #include<iostream>
#include<stack>
#define GET_ARRAY_LENGTH(array,len){len=sizeof(array)/sizeof(array[0]);}
using namespace std;
class Solution{
public:
void push(int node){
stack1.push(node);
}
int pop(){
if(stack2.empty()){
while(!stack1.empty()){
stack2.push(stack1.top());
stack1.... |
5d3465c3b85bb79ca405a0f12b6e4d9830465903 | 1fd7209fbef51589799619bc28ca018551c4b7b9 | /palindromes/PalindromesMain.cpp | d25d70ee857b895223d4244f865c21da53971bd7 | [] | no_license | miefos/2020-bitl-workspace-cpp | 237792a69782dc62f4161c3fc832a466d44ae313 | e13da10e9dec55004317a5450d985709e2afd347 | refs/heads/master | 2023-02-09T08:17:32.809293 | 2021-01-03T18:54:32 | 2021-01-03T18:54:32 | 292,494,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 955 | cpp | PalindromesMain.cpp | #include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include "Palindromes.h"
using namespace std;
using namespace ds_course;
int main()
{
Palindromes pal;
string mode;
cin >> mode;
string inputString;
int inputDec;
int inputHex;
//cout << '\'' << mode << '\'' <<... |
541b67f31f9a352f52764e9d7b6086caec697fdc | 659306f16ef2784ce1e6b25f951d289a77eccf25 | /ventanapeliculasrentadasporelcliente.cpp | 88b9d493971eee1fa8b35d714798807e67191431 | [] | no_license | antonio-maldonado/movierental | f69a9d98b7338dfec24b764926caa9fa5b377035 | af4c66b1bf6487e928e2d6f79b8507bb8933d779 | refs/heads/main | 2023-08-21T03:05:00.441310 | 2021-10-26T06:41:30 | 2021-10-26T06:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | ventanapeliculasrentadasporelcliente.cpp | #include "ventanapeliculasrentadasporelcliente.h"
#include "ui_ventanapeliculasrentadasporelcliente.h"
#include "menu_principal.h"
ventanapeliculasrentadasporelcliente::ventanapeliculasrentadasporelcliente(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ventanapeliculasrentadasporelcliente)
{
ui->setup... |
9b7a3378c20b40546045df9b4ef56b4ad124260e | eda7f1e5c79682bf55cfa09582a82ce071ee6cee | /aspects/fluid/conductor/GunnsFluidSensor.cpp | 2a3f805b7a732a824c648b07750687eea43b78b7 | [
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nasa/gunns | 923f4f7218e2ecd0a18213fe5494c2d79a566bb3 | d5455e3eaa8b50599bdb16e4867a880705298f62 | refs/heads/master | 2023-08-30T06:39:08.984844 | 2023-07-27T12:18:42 | 2023-07-27T12:18:42 | 235,422,976 | 34 | 11 | NOASSERTION | 2023-08-30T15:11:41 | 2020-01-21T19:21:16 | C++ | UTF-8 | C++ | false | false | 8,854 | cpp | GunnsFluidSensor.cpp | /************************** TRICK HEADER ***********************************************************
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
LIBRARY DEPENDENCY:
((core/GunnsFluidCond... |
ec10c21b881eace0f82ebbdf022e2830e9657143 | b2ddd88f5d0f70deb0bcf814733c3c0d12db4095 | /C++4J_Assignment02/tree.h | dcaa7e21cbd2eeec87fc192de4cb764e29f9d056 | [] | no_license | ChristophNuetzel/CPP4J_Assignment02 | 75d9865cd7b423923d97a8a87335e072e954a11e | e0c8ac66b8931a370c9a2376d198f866a5eaf507 | refs/heads/master | 2021-01-20T11:29:53.122942 | 2012-11-26T16:32:57 | 2012-11-26T16:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,204 | h | tree.h | #ifndef TREE_H
#define TREE_H
#include <string>
namespace CPP4JTree
{
// these typedefs are used for better readability.
typedef unsigned int KeyType;
typedef std::string ValueType;
// Declaration of a class called TreeNode.
// TreeNode contains the logic of the Tree and is an inner class, found in tree.cpp
class Tr... |
10325fb04e7e720bc47cccf4057ff1d9995bea6a | d6aa8e6e52c771e1baedf83de6cc4636636ce3a7 | /IOperand.hpp | 049eaf301346eefe1d792ad9606dec8c45704c03 | [] | no_license | zayrt/cpp_abstractVM | 0a58985719dd732056a0cef6d0aa6e1bef4490f6 | e39ccfae70df7191d3b0e32f656f2419d37dc355 | refs/heads/master | 2021-01-17T15:12:41.138006 | 2014-07-07T10:32:42 | 2014-07-07T10:32:42 | 21,568,375 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | hpp | IOperand.hpp | //
// IOperand.hpp for in /home/zellou_i/rendu/cpp_abstractvm
//
// Made by ilyas zelloufi
// Login <zellou_i@epitech.net>
//
// Started on Mon Jul 7 12:30:12 2014 ilyas zelloufi
// Last update Mon Jul 7 12:30:13 2014 ilyas zelloufi
//
#ifndef IOPERAND_HPP
#define IOPERAND_HPP
#include "Exception.hpp"
enum e... |
44b800b9a85e9f81c7b452bb4ff0f51544bacdb3 | 14248aaedfa5f77c7fc5dd8c3741604fb987de5c | /leetcode/P0624.cpp | 2b89d0870f2ba607d56ad028e818fea0b01332e3 | [] | no_license | atubo/online-judge | fc51012465a1bd07561b921f5c7d064e336a4cd2 | 8774f6c608bb209a1ebbb721d6bbfdb5c1d1ce9b | refs/heads/master | 2021-11-22T19:48:14.279016 | 2021-08-29T23:16:16 | 2021-08-29T23:16:16 | 13,290,232 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | cpp | P0624.cpp | // https://leetcode.com/problems/maximum-distance-in-arrays/#/description
// 624. Maximum Distance in Arrays
#include "BinaryTree.h"
#include "Graph.h"
#include "LinkedList.h"
#include "Util.h"
#include <bits/stdc++.h>
using namespace std;
class Solution {
using PII = pair<int, int>;
public:
int maxDistance(v... |
1ab1e7b93a01864f606e69164545d02ed2aa8165 | 803a33aa957a5f584a47acd564d31ec0faf0de8e | /RyujinCore/Profiler/PixProfiler.hpp | 6d9cbad1997ba68b66b6949bfab3ba49d04d8f8c | [] | no_license | yggdrasil-917/Ryujin | 00d5758ad95290a0dd103b99d33db530b027c010 | 376f2354d13d0be40128b271ef9994a7c7f81f05 | refs/heads/master | 2021-05-15T20:10:44.374984 | 2017-11-14T02:03:41 | 2017-11-14T02:03:41 | 107,832,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 771 | hpp | PixProfiler.hpp | #pragma once
#include "Profiler.hpp"
#if PLATFORM_WINDOWS
#ifndef PROFILE
#define PROFILE 1
#endif
#include <pix3.h>
#pragma comment(lib, "WinPixEventRuntime.lib")
#define MakePixColor(r, g, b) PIX_COLOR(r, g, b)
#else
#define MakePixColor(r, g, b)
#endif
namespace Ryujin
{
class CORE_API PixProfiler : public Pro... |
3d7e09ea85968babc5995c7d7455a6ea7e109b75 | e47e2263ca0b60d0c8327f74b4d4078deadea430 | /tess-two/jni/com_googlecode_tesseract_android/src/ccstruct/ratngs.h | 2ee9c94a30ccdba5c8b4eb5ef2551998246c4e73 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rmtheis/tess-two | 43ed1bdcceee88df696efdee7c3965572ff2121f | ab4cab1bd9794aacb74162aff339daa921a68c3f | refs/heads/master | 2023-03-10T08:27:42.539055 | 2022-03-17T11:21:24 | 2022-03-17T11:21:24 | 2,581,357 | 3,632 | 1,331 | Apache-2.0 | 2019-10-20T00:51:50 | 2011-10-15T11:14:00 | C | UTF-8 | C++ | false | false | 23,084 | h | ratngs.h | /**********************************************************************
* File: ratngs.h (Formerly ratings.h)
* Description: Definition of the WERD_CHOICE and BLOB_CHOICE classes.
* Author: Ray Smith
* Created: Thu Apr 23 11:40:38 BST 1992
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed... |
bb00b6e699fdeb1edd57949c3079cec7cab5ad4f | 01d84e7ab889959a59bf009508000ea5db031dfe | /backup/LongToMa.cpp | ffc831a52351df75bbae589a3d1408785e814b94 | [] | no_license | qanyue/code | 6aa0c4e1ce88847eb7b2a0e68aeb829ed9db7a13 | 9dc31a373dd1f069fc29d98ab965c59e8966ac20 | refs/heads/master | 2023-08-30T06:01:22.219223 | 2021-10-18T11:50:58 | 2021-10-18T11:50:58 | 250,241,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | LongToMa.cpp | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
const int change{220};
double distance1{};
double distance2{};
cout << "please enter the disrance: ";
cin >> distance1;
distance2=distance1*change;
cout << "After change the disrance is " << distance2 << endl;
return 0;
} |
fd1c80835ce9c1013a63a8e04fbdeffe780c38ad | 37610cdd0be1bc86b6b9a71119bf3f3f88c3e565 | /VC++-thread/thread.cpp | d19ec6f925e80ff936644ba4f2a5b8c617bbc91f | [] | no_license | LinusWangg/OS_Expriment | 400b66b9631be251cb36e7065aea56221cbb8dcd | 31d96e7cd02624658db5ce4d1942c90f7a77cf26 | refs/heads/master | 2023-06-25T01:24:49.497040 | 2021-07-08T05:55:34 | 2021-07-08T05:55:34 | 369,985,951 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 713 | cpp | thread.cpp | #include<iostream>
#include<windows.h>
using namespace std;
HANDLE hMutex = NULL;//»¥³âÁ¿
DWORD WINAPI Fun(LPVOID lpParamter) {
cout << "A Thread Fun Display!" << endl;
return 0L;
}
DWORD WINAPI Fun2(LPVOID lpParamter) {
cout << "Another Thread Fun Display!" << endl;
return 0L;
}
HANDLE h1[10];
HANDLE h2[10];
i... |
5e4366060e35a533fd5a3c0b6f30ecf8869e24f4 | 37ab17d6648d7493684cb2d94e5c3c7576fcf72a | /learning/programming_2/программирование2сем/лаб6/6.fix1.cpp | 1904cd6f66b5e9896c7ad7449d5bcf8a53feb785 | [] | no_license | ArtyomAdov/learning_sibsutis | 74780d96658fe23efda916047ebc857215f81fc4 | 4a55314b91f7326ff792ca4521bd8bdf96f44bce | refs/heads/main | 2023-02-11T17:44:42.124067 | 2021-01-03T11:25:46 | 2021-01-03T11:25:46 | 326,384,347 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | 6.fix1.cpp | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
int triangle(float*,float*,float,float,float);
int main()
{
float s=0,p=0,a,b,c;
printf("vvedite stotoni treugolnika\n");
scanf("%f%f%f",&a,&b,&c);
triangle(p,s,a,b,c);
printf("perimetr=%f\nplohad=%f\n",p,s);
}
int triangle(float* p,float* s,floa... |
ce2bca6ed92ed7db65b16fc163d7d024b0c73121 | 690786394eea6925d25618ec015d251735be2e23 | /KU/assignments/week1b/w2p4.cpp | f0c4f76caecf5f3e2f0aca2ae5157f0d802343c8 | [] | no_license | kaisersakhi/data-structures-with-cpp | 69874468f8197da13ec1c0224e71835bb070303c | e530cdda1682e6c3bb8a812bced1b4f675d85aea | refs/heads/master | 2023-09-03T13:47:12.293247 | 2021-09-28T15:09:52 | 2021-09-28T15:09:52 | 375,353,135 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | w2p4.cpp | /*
Author : Kaiser Sakhi
Date : 07-06-2021
Environment : WSL Kali Linux
*/
// program to reverse a string
#include<iostream>
#include<cstring>
void strReverse(char *);
int main(){
char name[] = "Kaiser Sakhi Bhat";
std::cout<<"String Before Reverse : "<<name;
strReverse(name);
std::cou... |
e17841bee9af1a93256686ea9adc8c8832dc9858 | 95cc023556e96743b1b47f4459181a81bf592be7 | /bin/zxdb/client/symbols/dwarf_symbol_factory.h | 42053ed383bc69ebb22f78859c4055bc1dbc65c5 | [
"BSD-3-Clause"
] | permissive | return/garnet | 5034ae8b8083455aa66da10040098c908f3de532 | f14e7e50a1b6b55eaa8013755201a25fc83bd389 | refs/heads/master | 2020-03-23T16:13:28.763852 | 2018-07-21T07:24:31 | 2018-07-21T07:24:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 909 | h | dwarf_symbol_factory.h | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/bin/zxdb/client/symbols/symbol_factory.h"
#include "lib/fxl/memory/weak_ptr.h"
namespace zxdb {
class ModuleSymbolsImpl;
// Implementat... |
8ee24646304e2e80aace0930bd5329480f46f90c | 6c4469e0350fc0befa5b91c859cb024758fd3c0d | /Jam/Jam/Cat.cpp | 7e8f4063f983764053bd904da732dd1bb5975d1e | [] | no_license | zsebastian/Skultorp-GameJam | d5a70303fcbc91f5f6f046d70c2af9f1ee3686c4 | 5f88434899bbd2985f8f337004f313335a657107 | refs/heads/master | 2021-01-22T10:07:17.118435 | 2013-04-07T17:47:47 | 2013-04-07T17:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,105 | cpp | Cat.cpp | #include "Cat.h"
#include "Display.h"
#include "Ball.h"
#include "Utility.h"
#include <string>
#include "LooseEnd.h"
#include <iostream>
Cat::Cat(const sf::Vector2f& position, float mass, float radius)
:mMass(mass)
,mGravityVector(0.f, 0.f)
,mPosition(position)
,mMoveSpeed(0,0)
,mWalkSpeed(3)
,mCanJump(false)
,... |
b4b4108b26c46de8d7dfff8b9bad7a316449fa74 | 21ef7fd535d85dda08dcfe1fef3aa5688ebc8603 | /GameProj/Zombirun/NNGameFramework/NNGameFramework/NNEffectManager.cpp | 6a38be50310071f85a792cd9f444a0e485f1b20c | [
"MIT"
] | permissive | LeeInJae/Portfolio | f007986d3c734c8606655a6f769c94fefd97a534 | 63d6dc5dd7e1f4bf66b334727dcc5fb0f84a117f | refs/heads/master | 2021-01-13T07:39:47.111906 | 2016-10-20T18:38:25 | 2016-10-20T18:38:25 | 71,458,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,700 | cpp | NNEffectManager.cpp | #include "NNEffectManager.h"
#include "NNPlainEffect.h"
#include "PRE_DEFINE.h"
#include "NNCrashEffect.h"
NNEffectManager* NNEffectManager::m_pInstance = nullptr;
NNEffectManager::NNEffectManager(void)
{
}
NNEffectManager::~NNEffectManager(void)
{
}
NNEffectManager* NNEffectManager::GetInstance()
{
if( m_pInstan... |
79bea3b6ccc89de0bc626b962edf4e529793bca1 | 63c637fc2773ef46cd22e08e3334121512c31074 | /3wkSeries/Day1/ELBOW_CASES/elbow_quad_refined/31/p | b1c5b4a02cc2e1b9181c06c085725fa492ca7ae3 | [] | no_license | asvogel/OpenFOAMEducation | 438f811ad47631a414f6016e643dd12792613828 | a1cf886fb6f9759eada7ecc34e62f97037ffd0e5 | refs/heads/main | 2023-09-03T17:26:24.525385 | 2021-11-05T18:08:49 | 2021-11-05T18:08:49 | 425,034,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 75,554 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*-------... | |
de3848b60538ca1fc0abb2ae38808c6791df5656 | 0dafa415cc7d10703b09a3ecd5ca4753abdaad93 | /concat/cpp/concat.cc | d64ee6ea3f5810d85876012acfa8520a8cdeaf43 | [] | no_license | abo-abo/simple-benchmark | f30db5bc815bedac2731b6bbd3d6ec53346014cc | 6eee363a6b920f62c6dab647b618046f5c9b7e4f | refs/heads/master | 2021-05-13T12:31:29.737905 | 2018-01-08T17:10:06 | 2018-01-08T17:10:06 | 116,675,788 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | cc | concat.cc | #include <iostream>
#include <vector>
#include <chrono>
#include <numeric>
#include <cstdint>
#include "printers.h"
using std::chrono::high_resolution_clock;
using std::chrono::duration_cast;
template <typename T>
std::vector<T> operator += (std::vector<T>& a, const std::vector<T>& b) {
a.insert(a.end(), b.begin(), ... |
ccdaab56aee1d13d5b4a10148688c683369d8e06 | 5e1c85bf4ad9795b61866b77a1d35423a2300c6b | /Lab C++/struct_not_of_me.cpp | ddd0deb62109f494387e3f6f3f222096ffaf5e51 | [] | no_license | locvx1234/Programming | fc2ef908cc556a96c00d5ce9f09acceea0d7ffe9 | 6c3ded82d76db34d83011a81ab2c37828592bdf2 | refs/heads/master | 2021-03-24T14:03:22.453709 | 2017-06-23T09:45:48 | 2017-06-23T09:45:48 | 36,355,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,466 | cpp | struct_not_of_me.cpp | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
struct hocsinh
{
char ho[5];
char ten[5];
char eamil[20];
int mshs, toan, ly, hoa, sdt;
};
int n;
void nhap(hocsinh hs[],int n)
{
cout<<"\tNhap vao so luong hocsinh:";
cin>>n;
for(int i=0;i<n;i++)
{
cout... |
163cde7455003a70945fbfde98961d85b493b4b4 | 8c5b5b9ee05b6c9363d3f6308ebdd75965357cba | /src/glow.h | a5002a97eac17eacbaa598e1abcda796999b60c3 | [] | no_license | wangscript007/Glow | 8f9ebe723e05a109cb66517dc93fc7bceea2d147 | 3fc37f5d1fef6bb63a2ed3d7b868d254db484573 | refs/heads/master | 2021-05-30T13:18:06.339203 | 2015-10-10T09:12:20 | 2015-10-10T09:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | h | glow.h | #pragma once
#include "presets.h"
#include "eventqueue.h"
#include "graphics/displaymanager.h"
#include "utils/time.h"
namespace Glow {
class Engine {
private:
bool quit = false;
public:
graphics::DisplayManager *displayManager;
EventQueue *eventQueue;
public:
Engine... |
bd991a44548865bea89716b93c80b619cfafbdf3 | e9b587d2a1f629beb61461726b9f55cabf95a9cd | /2_mux_INPROGRESS.ino | 4fe414e1fe3be1582601a4aa9d16f557e54789ce | [] | no_license | Normanras/Surge_Midi_Controller | ae166c1b366c78cca4e89d4803d2b17230c6a7d2 | 74f57dacad189446aaba60e6606a35cb58527018 | refs/heads/main | 2023-03-13T02:48:55.567213 | 2021-03-03T01:29:21 | 2021-03-03T01:29:21 | 343,915,670 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,053 | ino | 2_mux_INPROGRESS.ino | #include <Control_Surface.h> // Include the library
USBMIDI_Interface midi; // Instantiate a MIDI Interface to use
// Three Banks to change the channel of the pot
Bank<3> bank(7); // 1st number is # of banks, 2nd is # of tracks per bank
// Selector to change banks
IncrementDecrementSelectorLEDs<3> bankSelector = ... |
7c220a4504d77b53c43d212157c0845911cf4abe | 50d3745fb24ba47208056c92510002afd3eef636 | /test/test.cpp | 10009c50e6ebb9925110e5769778e8050cab14c3 | [
"MIT"
] | permissive | hogliux/farbot | 86e67e378457a84120bb118d94532e052da3a2ed | 0416705394720c12f0d02e55c144e4f69bb06912 | refs/heads/master | 2023-03-24T15:16:19.234926 | 2023-03-03T17:27:31 | 2023-03-03T17:27:31 | 191,143,823 | 272 | 26 | MIT | 2020-04-04T15:32:07 | 2019-06-10T10:07:25 | C++ | UTF-8 | C++ | false | false | 9,764 | cpp | test.cpp | #include <gtest/gtest.h>
#include <atomic>
#include <random>
#include <array>
#include <unordered_set>
#include <mutex>
#include <condition_variable>
#include "farbot/RealtimeTraits.hpp"
#include "farbot/fifo.hpp"
#include "farbot/AsyncCaller.hpp"
#include "farbot/RealtimeObject.hpp"
using TestData = std::array<long... |
deb7e4a4e32ec20d8969254723b8ca74be5f0796 | fbf8e794ddfb6d73faa1d95d01fcacd33f50bc4a | /THOMAS/src/object/component/RigidBodyComponent.cpp | e12f81ba8a033c1c2f482497ca4e9488b7015c59 | [] | no_license | sojunator/LSP | e1063a5b7bde728c7390800b845879151f0368a3 | 6dfc0a0c5369450ea6c4b8c5dea08c696af38e0e | refs/heads/master | 2021-06-14T04:04:10.084685 | 2017-03-14T17:58:31 | 2017-03-14T17:58:31 | 79,337,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,495 | cpp | RigidBodyComponent.cpp | #include "RigidBodyComponent.h"
#include "../GameObject.h"
#include "../../utils/Math.h"
namespace thomas
{
namespace object
{
namespace component
{
void RigidBodyComponent::UpdateRigidbodyMass(float mass)
{
btVector3 inertia;
getCollisionShape()->calculateLocalInertia(mass, inertia);
setMassP... |
21b347a836e127610f5af55a460d5c3096aa8dfd | c78c31473a3bf0cb181e166472670b1f30c55f24 | /GAME1017_Template_W01/Rock.h | c805f020d6b34c1139b9f4163a6caf246c3ffe91 | [] | no_license | julaxe/IndianaJones | 6cef2ec6e3fe17f11cda2d65a1877f3526481209 | 8b55833bf627d6019d9055aaad722207dbc4e517 | refs/heads/master | 2022-11-27T19:11:25.923297 | 2020-08-04T23:45:08 | 2020-08-04T23:45:08 | 273,011,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | h | Rock.h | #pragma once
#include "Sprite.h"
class Rock : public Sprite {
public:
Rock(SDL_Rect s, SDL_FRect d, const char* path, std::string key) : Sprite(s, d, path, key)
{
m_type = ENEMY2;
}
void Update();
private:
int timer = 0;
int respawnTimer = rand() % 30 + 20;
}; |
156f822e6c6c04f619956c08d655f65d51345bbf | 9b8eeeca76c728cc3db78317f72f5e51219983b8 | /自写/Algorithm/Sort/Sort/QuickSort.cpp | d3d5dd35dce7bc2df7ab5fa968efb8f03e5835d5 | [] | no_license | lYcHeeM/Demo | e3b8c59a489533e2bab2546b8d0f92bfb11e14cb | 6d8ffc542e41389844e2d902385a48ce75c91f51 | refs/heads/master | 2021-07-15T20:37:15.628923 | 2021-02-22T02:45:03 | 2021-02-22T02:45:03 | 98,294,658 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,934 | cpp | QuickSort.cpp | //
// QuickSort.cpp
// Sort
//
// Created by luozhijun on 16/9/17.
// Copyright © 2016年 luozhijun. All rights reserved.
//
#include "QuickSort.hpp"
#include <time.h>
#include <iostream>
void quick_sort(int *data, size_t length)
{
if (data == NULL || length <= 1) {
return;
}
int partition_... |
f832802da070691517ac4266bd8d25338deae1b4 | a03ac198f274f17549fdb9cdb76c25e1d11fffe9 | /122A.cpp | 0010eae8b0bc6eb9bd30804c18078712ebc4cee1 | [] | no_license | milonsheikhcse/Codeforces_Coding | a9cbccfd651bad667e90c2c008efa98b3e018142 | fedf0b76307571dd87c9db9307c7ad7ed2b1bbbe | refs/heads/master | 2020-07-27T21:57:17.592465 | 2019-09-18T05:47:59 | 2019-09-18T05:47:59 | 209,227,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | 122A.cpp | ///AC
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
/// 47 74 777 774 747
if((n%4==0) || (n%7==0) || (n%47==0) || (n%774==0) || (n%744==0) || (n%447==0)|| n%474==0 || n%447==0 || n%477==0) {
cout << "YES" << endl;
} else
cout << "NO" << ... |
117b2ead8d50bb964c00f67d65772043862a05af | 9c2c71361e56a383241b99ab197ddbccd69d5acd | /src/Wing.h | 75a593b861cb5c032c94353cb9e742a8657f1c49 | [] | no_license | KoenigEva/miniMICADO | f24884c354a6c7573834863017f1a06651a9d828 | a22d53ffcb1642abc42375fa6ac3bc7b51a22f8b | refs/heads/master | 2021-06-23T21:01:49.318410 | 2017-09-04T08:13:10 | 2017-09-04T08:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | h | Wing.h | #ifndef WING_H
#define WING_H
#include <math.h>
#include <vector>
//#include <stdlib.h>
#include "node.h"
#include "functions.h"
#include "Fuselage.h"
class Wing
{
public:
Wing(node& configXML, Fuselage &myFuselage);
virtual ~Wing();
double WingArea;
string Wing... |
65c3c2232fcba143e87a84202113c67c4e497eda | 03b340271058d3aa8e1ec04e16686a79b9acb3bd | /libs/ContourTree/HeightField_Construction.cpp | c0e6ce4d75aee864c767b3f440100e67ae9274ed | [] | no_license | wesleygriffin/SPLIT_VIS2 | bad9b7d252922b8e4d2cfa2f0244cb48daaae70f | d81d74e708c88d04c9433ce07036a0c6a18af8ef | refs/heads/master | 2021-01-09T20:05:17.033582 | 2018-07-21T18:30:00 | 2018-07-21T18:30:00 | 81,224,112 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 79,564 | cpp | HeightField_Construction.cpp | // IsoSurface II
// Hamish Carr, 2000
// HeightField: class representing the height field
// HeightField_Creation: routines dealing with construction, and computation of contour tree
// Palatino-12; 10 m-spaces/tab
#include "HeightField.h" // include the header for the definitions
#include <math... |
4c52e7da8fe792f135f4d3928e28a16b6b8eba6e | a7914b450aeae015a24ba90e5ce60d41d5c592a9 | /SummerTraining/课上小练/冒泡排序.cpp | 247faf3f95387fb789605de9f8098667346a6f56 | [] | no_license | packbacker-s/CCode | 07eb157e0be7eade9d72807a508f4a9dee6eed90 | 4a2ac77352989f38c372671ac4e562aea7a25d96 | refs/heads/master | 2023-08-11T07:20:49.297388 | 2021-10-01T08:51:53 | 2021-10-01T08:51:53 | 412,320,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cpp | 冒泡排序.cpp | #include <cstdio>
long long q_pow(long long a, long long b, long long mod) {
long long sum = 1;
int n = 0;
while (b) {
if (b & 1)
sum = sum * a % mod;
a = a * a % mod;
b >>= 1;
n++;
}
printf("%d\n", n);
return sum;
}
int main(){
int i,j,k;
// int n;
// for(i=0;i<10;i++)
// sca... |
bc01b45994edccbd2ea4e8bc121e78145e3ad546 | 6c247c545e4bedb38c6ccdbbceffe1210f3b241d | /DynamicStringVector.cpp | 28ee293881997df47027555c66b15920666028a5 | [] | no_license | AzizOKAY/simple-CPU-with-OOP-and-Dynamic-memory-in-c- | 1fb76c3f552f5bbe231ac14d0d2429f6879ea935 | 2362ab70d6a6f88f85540f5baa507eaac9a11d3b | refs/heads/master | 2021-01-09T06:12:05.315310 | 2017-02-04T14:08:44 | 2017-02-04T14:08:44 | 80,922,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,830 | cpp | DynamicStringVector.cpp | /*
* File: DynamicStringVector.cpp
* Author: Aziz OKAY
*
* Created on December 1, 2016, 3:25 PM
*/
#include <iostream>
#include "GPUString.h"
#include "GPUStringVector.h"
using namespace std;
/*
GPUStringVector::~GPUStringVector() {
delete [] allLine;
}*/
int GPUStringVector::push_back(const GPUString &o... |
18747774dfb7d5e6bd5487e7a131fcfe19ad8f9c | 6dfb80e0fb037a6dbe46f5cdca863afa552de363 | /d3.cpp | c5e08b4e7ceda6b6138c1272f5007b79d05cc0ed | [] | no_license | macharlavaibhavi/Apriori_Implementation | 7ae92090625c46b17242602bf1199a9a13978935 | 74a0dffbf617aba9abcb357d709fd1e10a0132be | refs/heads/master | 2020-03-27T09:47:53.089772 | 2018-08-28T01:29:07 | 2018-08-28T01:29:07 | 146,373,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,779 | cpp | d3.cpp | #include<iostream>
using namespace std;
#include<bits/stdc++.h>
#define structure map<vector<int> ,int>
#define for_map(ii,T) for(structure::iterator(ii)=(T).begin();(ii)!=(T).end();ii++)
#define for_next(jj,ii,T) for(structure::iterator(jj)=ii;(jj)!=T.end();jj++)
#define Vec vector<int>
const int min_sup=2;
st... |
b16b15be5d3db55664e9ddecfd122d2f8fe3e4a9 | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni-build/jni/include/tensorflow/core/framework/reader_op_kernel.cc | 44df86b479c26c9b78dda11c552918651ed1f1cd | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | C++ | false | false | 2,071 | cc | reader_op_kernel.cc | /* Copyright 2015 The TensorFlow Authors. 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
Unless required by applicable law or a... |
d81d5ee53c461506a4545c5d0ebd35a5cced69ae | e0c8be9e85366b49a5b713f847e593f01a9e0f29 | /D3/samsung SW 6692 다솔이의 월급 상자/samsung SW 6692 다솔이의 월급 상자/main.cpp | 663ae83be183931a190b2a02625c987140d12e6d | [] | no_license | mak3bread/samsung-SW-expertacademy | 0f85c4c774237a491969e1a360fe70d2ea864b41 | d80c71fac27c6d72eaa1b2a0753359c15826877c | refs/heads/master | 2022-04-19T13:50:56.446723 | 2020-04-20T13:27:14 | 2020-04-20T13:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | main.cpp | #include <cstdio>
int main(){
int T;scanf("%d",&T);
for(int t=1;t<=T;t++){
int N;scanf("%d",&N);
double money=0;
for(int i=0;i<N;i++){
double p;int x;
scanf("%lf %d",&p,&x);
money+=p*x;
}
printf("#%d %6lf\n",t,money);
}
return 0... |
c94efcd5bef3beda9fb008da2aec9b94b64d7c04 | d220641796d2ba46e1b275f09e9713bcce51f906 | /NG661DesignerSimulator/projets/ap2i_core/include/eventcomponent.h | e1ddd968c9ea88f9f4b29686fa3e77c07f900b43 | [] | no_license | AxelRICHARD/ng661designer | c0f98ed76dc77a2dac55d2caa424bba911de4960 | 410b70ab38035e528b7a40ac5e86e5fb0fbc58f7 | refs/heads/master | 2021-05-05T14:30:18.103534 | 2018-02-21T16:21:35 | 2018-02-21T16:21:35 | 118,460,308 | 0 | 0 | null | 2018-01-22T13:24:32 | 2018-01-22T13:24:32 | null | UTF-8 | C++ | false | false | 1,162 | h | eventcomponent.h | /*******************************************************************************
* Copyright (c) 2015, 2016 Thales.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*... |
1b9902336a8c7408a3ec44178f2c8da6cc655dc1 | 28cfaa54142e22845f65a49a431913369692e692 | /SerialClass.cpp | 024232cf2c31d3a530c1dd69f60a0a18afa00260 | [
"Apache-2.0"
] | permissive | sbatykov/servo_robot_module | 62e0c3aa3e8e572ef6ac79a4048b1b0533b26bbe | f6223938b53c4f012aef1512d8fcd4bd35f75701 | refs/heads/master | 2021-05-03T16:52:57.285232 | 2016-07-29T07:56:55 | 2016-07-29T07:56:55 | 70,069,648 | 0 | 0 | null | 2016-10-05T14:44:32 | 2016-10-05T14:44:32 | null | UTF-8 | C++ | false | false | 4,796 | cpp | SerialClass.cpp |
//#define __STRICT_ANSI__
#define ERROR_VALUE -1
#include "SerialClass.h"
#include "stdio.h"
#include <string>
#include "string.h"
#include <errno.h>
#include "error.h"
Serial::Serial(char *portName) {
// We're not yet connected
this->connected = false;
#ifdef _WIN32
// Try to connect to the given port throuh... |
71b187335479582ca1d71f82c009aeadc27bdc4c | 244b4eb938d3757469c4795dab375558cd915ad7 | /src/client/main.cpp | 298ed237ce6a27b5037777d1687658842f6838ed | [] | no_license | nao23/ramp-with-rdma | b5fef0fdcce33efff29e22ec130df760c761a7b7 | 6e2ca73063466887c97bb21953d6711273ec39b3 | refs/heads/master | 2021-01-01T03:46:59.067131 | 2016-12-12T03:36:37 | 2016-12-12T03:36:37 | 58,362,122 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,146 | cpp | main.cpp | #include "spdlog/spdlog.h"
#include "Client.h"
#include "cmdline.h"
int main(int argc, char *argv[]) {
// Create a multithreaded color logger
std::shared_ptr<spdlog::logger> logger = spdlog::stdout_logger_mt("main", true);
// Set global log level to info
spdlog::set_level(spdlog::level::info); // TOD... |
9409b9b6d44f84e80f50f80321fcf98981ac369d | 4aff5a49d635ecfab5cac986b1ddc1809189e8f8 | /Codechef/Chef and way/chef and way.cpp | 021a5068b18c4a6da98ba537c793d3119122a731 | [] | no_license | shreyrai99/CP-DSA-Questions | 1221f595391643f5967a77efeb790352536ab9ff | 5a5bfdaee6bf0253661259cae7780b8859108dbd | refs/heads/main | 2023-09-04T06:38:59.114238 | 2021-10-22T09:46:59 | 2021-10-22T09:46:59 | 413,551,990 | 1 | 0 | null | 2021-10-04T19:10:04 | 2021-10-04T19:10:04 | null | UTF-8 | C++ | false | false | 752 | cpp | chef and way.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL); //for fast input & output
const long long int mod = 1000000007;
int n,k;
cin>>n>>k;
long long int a[n], d[n];
for (int i = 0; i < n; ++i)
{
cin>>a[i];
}
priority_queue... |
43b32c22b1994d230d1551472d1302cb2ca1e9e1 | 888b8f657b27712fcbd2d6df295c1d4aed4e4307 | /PAT/A1017 Queueing at Bank.cpp | bfcf086ad8f879b71908169e223f2a6d9236fbc8 | [] | no_license | zzwblog/AlgorithmCode | 9a0b1fb0b459dad1c6d127cf1f1d996a97c2bac2 | 0e9c2f0b096298eaedf442674416d01afceac7a3 | refs/heads/master | 2022-12-15T16:09:04.009443 | 2020-09-03T10:48:53 | 2020-09-03T10:48:53 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,677 | cpp | A1017 Queueing at Bank.cpp | //#include <iostream>
//#include <vector>
//#include <algorithm>
//
//using namespace std;
//
//struct Person
//{
// int arriveTime, serverTime, popTime;
//};
//
//int N, K;
//
//int main()
//{
// cin >> N >> K;
// vector<Person*>window(K);//就排一个人办业务,不需要用队列
// vector<Person*>data;
// double waitTime = 0.0;
// for (int ... |
bd05a8920e58e1703f570a075f4ddb39086882b6 | 8e63e4fd669ced86bf07b20be364da5a06bce70d | /CodeForces/798A. Mike and palindrome.cpp | dea8a0993c7c7dcaf875a3457e409d488a1201c3 | [] | no_license | AliOsm/CompetitiveProgramming | 00a1e75a2635532651fcdfb0e478c009adf84032 | af25b7f806e9c22a2176bfd05a1406ce5f1492c3 | refs/heads/master | 2023-03-07T01:17:25.555911 | 2023-02-10T09:09:17 | 2023-02-10T09:09:17 | 70,904,119 | 125 | 58 | null | 2021-02-27T13:13:18 | 2016-10-14T11:29:55 | C++ | UTF-8 | C++ | false | false | 462 | cpp | 798A. Mike and palindrome.cpp | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string s, rev;
cin >> s;
for(int i = 0; i < s.length(); i++) {
char tmp = s[i];
for(char ch = 'a'; ch <= 'z'; ch++) {
s[i] = ch;
rev = s;
reverse(rev.begin(), rev.end());
if(ch != tmp ... |
2d5023c242bc9914bd3e732ecfd866f872e9871f | a7cd54d2fda1019668eb398040e63b02729ef4d9 | /Circular Linked List/DeletionCircular.cpp | 243cf5c66a456f26cbd16e7308a077675186cf64 | [] | no_license | Udbhavsingh99/LinkedList | 1c280f3b0ff6bdf1f3dcd158b582008a7a265fe8 | 20a05ed80dc9e8f92016be08bb69a6be7df2ad4f | refs/heads/main | 2023-08-28T02:16:15.700566 | 2021-11-03T12:58:22 | 2021-11-03T12:58:22 | 417,816,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,244 | cpp | DeletionCircular.cpp | #include<iostream>
using namespace std;
class Node
{
public:
int data;
Node* next;
};
/*Algorithm
Case 1 - List is empty
We simply return
Case 2 - List is not empty
If the list is not empty then we define two pointers curr and prev and initialize the pointer curr with the head node.
T... |
7cf0deedef4c548ae9a9aee9c5a9b9b041a4e3fa | 796f67e47b9fe575471129d18161677efcb975dd | /2193.cpp | 455fd1df518523018f7e90dbdfdb148122232d1c | [] | no_license | sung9600/daily | ae129092119e479defcbcc149e1de87c1318c03f | ac7ea823c15772a4e201693aeccfb68e66e8e5c0 | refs/heads/master | 2022-12-08T13:15:08.895236 | 2020-09-05T20:58:48 | 2020-09-05T20:58:48 | 275,787,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | 2193.cpp | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
using namespace std;
long long arr[91];
long long execute(int n){
if(n==0||n==1||n==2)return arr[n];
else {
for(int i=3;i<=n;i++){
arr[i]=arr[i-1]+arr[i-2];
}
}
return arr[n];
}
int main(){
int n;
... |
eb713cb7d898536f228eb8f535af8ea755c051e9 | 176725d76064bbe970b70a13faad61e3bf8de847 | /server/s_socket_connect.cpp | 8f2a6267800dd05f626864a8e35243903adc37dd | [] | no_license | Sniperer/filetrans | 907f678a4a779593d62d83dc8cd4c0adff4390c3 | 0db80b46aaae97aa37727a8b452481b7f45d9578 | refs/heads/master | 2022-11-16T01:41:49.031118 | 2020-07-17T05:52:37 | 2020-07-17T05:52:37 | 273,910,214 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,044 | cpp | s_socket_connect.cpp | #include "s_socket_connect.h"
#include <cstring>
//#define socklen_t int
#ifdef DEBUG
#define pr_data(str) printf("%s\n",str.c_str());
#define pr_c_data(str) printf("%s\n",str);
#define pr_int(len) printf("%d\n",len);
#else
#define pr_c_data(str)
#define pr_data(str)
#define pr_int(len)
#endif
static int str_fro... |
0d5603248a37a7a2dfb07487dad02aeb209f0b6f | 4eafc3b25f8b7d5749409318122a680068665613 | /helloLeet/0516.cpp | e5281a76669e546444dc08c77f97ee768720d75f | [] | no_license | ctyVegetableDog/leetcode | 6f663ab230fb9dbaec4453828e2bd0b274b83a18 | 2b956412ddfa6b58f5c245da46f96665a8ec276d | refs/heads/master | 2023-07-15T06:48:30.869786 | 2023-07-10T08:13:51 | 2023-07-10T08:13:51 | 216,207,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | 0516.cpp | //longest palindromic subsequence
class Solution {
public:
int longestPalindromeSubseq(string s) {
int l = s.size();
int dp[l][l] = {0};
for (int i = l - 1; i >= 0; i --) {
dp[i][i] = 1;
for (int j = i + 1; j < l; j ++) dp[i][j] = s[i] == s[j] ? dp[i + 1][j - 1] + 2 ... |
86c96c469d5a53b14270e728612632e2ecfdda7d | 678ee396be8b4cc72fbe6d19c248c34dd09f5c7f | /AlgorithmHW3/AlgorithmHW3/AlgorithmHW3.cpp | 7604e7281850a5ab4951f601f4758ddb327b9373 | [] | no_license | Chung-god/PNUHomework | 7a1439f488530d2e668c907efeff347acf4e6c08 | a178e17711caf9e3ceb09fffe20819c34dd5386b | refs/heads/master | 2022-11-07T21:29:49.140070 | 2020-07-02T13:37:03 | 2020-07-02T13:37:03 | 266,472,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,472 | cpp | AlgorithmHW3.cpp | // AlgorithmHW3.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
//
#include <iostream>
#define MAX 8
#define LEN 50
using namespace std;
char route[LEN];//이동경로를 담을 배열
char DRT[5] = { '?','U','D','R','L' }; //방향을 기록하는 배열
int DRTN[4] = { 0,0,0,0 };
bool visited[MAX][MAX];
int result = 0; //최종출력, 경로 갯수
//범위를 벗... |
e486f82a5a716fbb08e8d29a157c7ecd17c5908f | 92708c3e7a7d7dfde67246e97b49ed036b2a65fa | /src/image.cpp | 54110afa89927a0482b9ad489cbdc88b28cf2343 | [] | no_license | PeterZhouSZ/seamless-compression | 5165448367692231ede0584ff74ec5565e31a003 | 5a07c5ceccff61012a45d4ffdf71b4ef25a9f0fa | refs/heads/main | 2023-01-02T01:12:38.824347 | 2020-11-01T14:54:50 | 2020-11-01T14:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,091 | cpp | image.cpp | #include "image.h"
#include "mesh.h"
#include "sampling.h"
#include <cmath>
#include <cassert>
#include <iostream>
#include <numeric>
#include <glm/common.hpp>
#include <glm/geometric.hpp>
void Image::resize(int rx, int ry)
{
resx = rx;
resy = ry;
data.resize(resx * resy, vec3(0));
clearMask();
}
vo... |
01cc130cca1af219c429accd1a1f45ccb30b320e | 5355f2c499fd7d4dbff5cfe153aec8d21776d46b | /Database/tester/MessageObjectBase.h | 40cf79b862322cc1655e99e43f7197798d948c59 | [] | no_license | ssicard/systems-project | 4d2224034f82ccfab4491968d29cc3a339596c65 | 48b69547e1376d90b73b6a1a8c04678de7786bac | refs/heads/master | 2020-03-28T04:23:04.062082 | 2018-11-28T20:09:26 | 2018-11-28T20:09:26 | 147,711,567 | 5 | 0 | null | 2018-10-17T16:58:59 | 2018-09-06T17:48:13 | C++ | UTF-8 | C++ | false | false | 1,264 | h | MessageObjectBase.h | #include <string>
#pragma once
#include "cppclasses/SqlBase.h"
using namespace std;
#include "cppclasses/AssignmentInformation.h"
#include "cppclasses/AssignmentInstructions.h"
#include "cppclasses/ContactInformationType.h"
#include "cppclasses/ContactRoleLookup.h"
#include "cppclasses/Funding.h"
#include "cppclasses/I... |
3f7816b8bd0ae6f201ecde5d83942d9e73eb5b12 | 1954c351980f8f1829beaf8f2d2f88032dc81849 | /apps/calc/CalcActivity.hh | 2349c1d183b10ce65dc6df845d4b2c3a0a6ab313 | [
"Apache-2.0"
] | permissive | VincentWei/cell-phone-ux-demo | e219913d9032b20b4b2f221ddf8c55f05701191c | 1085ba798dafe4c32ca4cf8eb65f348c762c224e | refs/heads/master | 2023-01-09T16:56:42.756418 | 2022-09-15T03:17:54 | 2022-09-15T03:17:54 | 112,908,546 | 14 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 3,830 | hh | CalcActivity.hh | ///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... |
f890d5080c87d0f89708e354f72714f4511ca321 | fee34e5dc60112bb1c1e4847f2c3f3260ce639d3 | /Dungeon Plunderers/SlimeEnemy.h | ce63d00b8f5c6befc2812e4e0a1d5ff7be6933a1 | [] | no_license | Patryk-Trojak/Dungeon-Plunderers | 292c1547c18db7822854bc2aceb4f5bc0baeb2f9 | a4c70724bc273c2472c001bb0e44a1cc6d2b7759 | refs/heads/main | 2023-06-24T07:14:26.413671 | 2021-07-27T10:40:11 | 2021-07-27T10:40:11 | 372,948,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 528 | h | SlimeEnemy.h | #pragma once
#include "RangedEnemy.h"
#include "SlimeProjectile.h"
class SlimeEnemy
:public RangedEnemy
{
public:
SlimeEnemy(const sf::Vector2f& Position, const sf::Vector2f ChangeDirectionDistance, const Resources& resources, const sf::Vector2f& initialScale = sf::Vector2f(1.f, 1.f));
virtual ~SlimeEnemy();
virtu... |
7e959c231dbca08db577740ace5b554e9bff6189 | 2c85ecc5079da4dc286ee3e8440e7e59efe4ef78 | /cp.cpp | 8b540ff8fd96f783499cfd6e3501a4fd818148c6 | [] | no_license | deerishi/algorithms | 7f744644e47203d792216f3287d73167baeae858 | 8f113bb50cb0313a81835320edd5c9ef523dd7af | refs/heads/master | 2021-07-18T23:29:35.088631 | 2017-10-26T23:32:54 | 2017-10-26T23:32:54 | 29,521,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | cpp | cp.cpp | #include "bits/stdc++.h"
using namespace std;
#define blank putc_unlocked('\n',stdout);
char current[1<<10],ch;
unordered_map<char,int> map1;
class Order
{
public:
bool operator()(char a,char b)
{
return a>b;
}
};
priority_queue<char,vector<char>,Order> queue1;
int main()
{
... |
5c27bc60d26a81364e484f0a73cd29fe6741f429 | 2277375bd4a554d23da334dddd091a36138f5cae | /ThirdParty/Havok/Source/Physics/Physics/Collide/Shape/Composite/hknpSparseCompactMap.inl | ddcd5cae6231f35c8bc0a86582d6f4b4c2f42466 | [] | no_license | kevinmore/Project-Nebula | 9a0553ccf8bdc1b4bb5e2588fc94516d9e3532bc | f6d284d4879ae1ea1bd30c5775ef8733cfafa71d | refs/heads/master | 2022-10-22T03:55:42.596618 | 2020-06-19T09:07:07 | 2020-06-19T09:07:07 | 25,372,691 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 4,039 | inl | hknpSparseCompactMap.inl | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... |
bb574ebed2d4478da9058a3413aa3d43329d8831 | a27780abcc0f1eccff0da0f997852f298b347581 | /Source.h | 4c07e5eddb8925d6032c912698b024ee1f85bb52 | [] | no_license | lcarvalhodev/CG-2018-2 | 96288b7f7b5a656b761389e6ef360f93da5c4f32 | 045a77a5dbf6603d54a3de9c75e230f08207996b | refs/heads/master | 2020-03-26T14:32:07.830552 | 2018-12-11T02:51:00 | 2018-12-11T02:51:00 | 144,992,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | h | Source.h | /*
Graphics Computer 2018.2
Federal University of Ceará
Team: Leandro Almeida de Carvalho (Leader)
Letícia Fernandes
Levi Tavares
Karen Raiany
Kayron Melo
Professor: Creto Vidal
Work: Build a RayTracer to render a snowman with a image background.
*/
#ifndef _SOURCE_H
#define _SOURCE_H
class... |
e86bc22a5a68b5636c48b95ad5afac490a0dfe74 | dcc7cd122af348f090ffacb28c0a8de0c22f79b5 | /hello/main_hello2.cpp | 7444bcd0ec8f737891e84c9441a2bbcc9232f97b | [
"Unlicense"
] | permissive | alexbernardino/scdtr1718 | 0ba8191d10a54b831d9ce19d71fc40a3d1da91e5 | 9fa86f2f2f7b5ada1f978d46a4ce6699ce67f705 | refs/heads/master | 2021-08-28T05:29:15.687735 | 2017-12-11T09:09:49 | 2017-12-11T09:09:49 | 104,222,261 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 138 | cpp | main_hello2.cpp | //main_hello2.cpp
#include "hello2.h"
#include <stdio.h>
int main()
{
Hello2 obj;
obj.set_id(2);
obj.run(2,3);
getchar();
}
|
05ee12c061ad4deab39e3bd4dcd4f88465f21952 | 6eb8886beefcd6fa0e48293acc19d6b80511d6d9 | /Code/CFeatureExtraction.cpp | 479234fe5b239fc64abdeebf38ac68c1393bd538 | [] | no_license | TBeeren/ShapeDetection | 9dbe8025a600500a8475039d3243ac8a29a6dba1 | a58b21e95b291030b87576ff5b64e29d038f266b | refs/heads/master | 2023-04-11T06:07:02.090489 | 2021-04-25T10:38:54 | 2021-04-25T10:38:54 | 361,393,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,933 | cpp | CFeatureExtraction.cpp | #include "CFeatureExtraction.h"
#include "CCalibration.h"
#include <iostream>
#include "stdint.h"
namespace
{
constexpr const int8_t BILATERFILTER_ITERATIONS = 3;
constexpr const int8_t BILATERFILTER_KERNEL = 9;
constexpr const int16_t BILATERFILTER_SIGMA_COLOUR = 50;
constexpr const int16_t BILATERFI... |
c7450e660e06124efdf21e2a96a3df907ce96f17 | 20716fa9f6d2b4d91ccf5c45267b1c86ed64f757 | /player.cpp | 1286cb3966117e7e8036de68d44dfd57457ee05e | [] | no_license | leodlplq/othello | 7b73e7ff6f5e9578b47816085db6b4cd49cee413 | 1442d0ce0101e16fe4d425e23e171e8c49a510e1 | refs/heads/main | 2023-02-19T18:20:17.599569 | 2021-01-22T17:10:02 | 2021-01-22T17:10:02 | 322,866,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,415 | cpp | player.cpp | //C++ file about the player.
#include "game.h"
void createPlayer(Joueur *joueur, int n){
char name[20];
Jeton *jetonJoueur = new Jeton;
int nbJetons = 2;
if(n == 1){
joueur->color = 'x';
int array[2] = {4,4};
int array2[2] = {5,5};
jetonJoueur->color = 'x';
... |
b7b7cb8d11f745c18cc2b46f638e8c42628b5697 | 948479e1809e7bc8054c7318cbf8f89b86084fb7 | /part_data.hpp | b225084cf04ce073cff21f3a7c63a961e4ac00d1 | [
"MIT"
] | permissive | sbird/S-GenIC | 6d643ba2a6c55664e15b81b55dd8e253794e739d | d48b6ed02b3d98476258ae1f0a89cbb8949575ff | refs/heads/master | 2020-12-15T20:29:34.690564 | 2018-06-16T23:13:31 | 2018-06-16T23:13:31 | 4,801,073 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,126 | hpp | part_data.hpp | #ifndef __PART_DATA_HPP
#define __PART_DATA_HPP
#include <valarray>
#define FLOAT_TYPE float
#define N_TYPES 6
//Class to generate a regular grid of particle positions on demand.
class part_grid
{
public:
/* Construct the particle grid parameters.
* NumPart should be the number of particles per ... |
a65de297dbb8dc619a8100f13c1bd7f4120e4300 | 0d6560bb341dca5ab9a5c0f4c9fb3970e2fdb035 | /POSCAT/upload/code/acmicpc/2033.cpp | 0d25861b6b303dcd83e2a70734bf9b0c88b00917 | [] | no_license | yougatup/yougatup.github.io | 7737d70baceab147fed645d40cd63f66f2be22bd | 194626540a90b15d9b9279e185886c701385bb7f | refs/heads/master | 2020-04-12T05:39:11.078724 | 2016-10-14T01:28:23 | 2016-10-14T01:28:23 | 65,126,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | 2033.cpp | #include <cstdio>
using namespace std;
int find(int n,int b)
{
if(b>4)
n++;
if(n/10==0)
return n;
else
return find(n/10,n%10)*10;
}
int main()
{
int n;
scanf("%d",&n);
if(n<10)
printf("%d\n",n);
else
printf("%d\n",find(n,0));
return 0;
}
|
a014bff36e3457f60759f39fd00e2f7b2c4c7188 | 36e12292ea03f8407e39a9d51ac8be1f9f124618 | /PI_2021_II_P2_PROYECTO2_GRUPO1/EmpleadoTemporal.cpp | 06d9a1112b7b13f9544f33e11ff19de730b63cb5 | [] | no_license | RicoyPagoaga/PI_2021_II_P2_PROYECTO2_GRUPO1 | 3fedd1c76e5fb3aa176fda230b59a4a91e73af94 | 8d6d0f9ad156b083502206983068e97dbfeabc16 | refs/heads/master | 2023-07-06T15:01:05.002174 | 2021-08-04T23:21:15 | 2021-08-04T23:21:15 | 388,623,493 | 0 | 0 | null | 2021-08-04T22:08:20 | 2021-07-22T23:25:14 | C++ | UTF-8 | C++ | false | false | 1,590 | cpp | EmpleadoTemporal.cpp | #include <string>
#include <stdexcept>
#include <iostream>
#include "EmpleadoTemporal.h"
using namespace std;
EmpleadoTemporal::EmpleadoTemporal() {
establecerNumeroSeguroSocial(" ");
}
EmpleadoTemporal::EmpleadoTemporal(string nombre, string apellido, string _direccion, string _identificacion,
int _edad, string s... |
4752820d039e72ae508f454429797cda3b166fca | e30d8e1c98a40273392efbe9a9eee6daf02df107 | /码库/P5025 [SNOI2017]炸弹.cpp | 82d68e924f49fce1a8e2480a9cfb6f7d66ca7e8e | [] | no_license | zzctommy/public-source-code | c11099de0e1bac21a9db26ab6d83d8e15ffdf460 | bf2cf1ea607f097952ccd059fb8fbbcce7b08466 | refs/heads/master | 2023-03-21T06:24:19.206752 | 2021-03-05T01:18:35 | 2021-03-05T01:18:35 | 277,446,660 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,458 | cpp | P5025 [SNOI2017]炸弹.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned int uint;
#define rint register int
#define pb push_back
//#define getchar() (p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<21,stdin),p1==p2)?EOF:*p1++)
//char buf[1<<21],*p1=buf,*p2=buf;
#define int long long
inline int rd() {
int x=0,f=1;char ... |
044aeb9731b83b980ed841a7f05864d37f400b97 | fcd17fa8b71094eb8f33773a0bbba2e19ae9b5b6 | /src/mesh/DICe_Mesh.cpp | 975831b667f8bffceda57ac266c5ebbece4a3239 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | fangliang11/dice | 40a1f3af0841458e994c510cc38c392cd714e860 | a3b6a0e53f3c4ba3a7f1a6268e99bd36f8a6382f | refs/heads/master | 2022-11-29T21:12:05.532870 | 2020-08-14T18:54:01 | 2020-08-14T18:54:01 | 293,441,209 | 1 | 0 | NOASSERTION | 2020-09-07T06:27:38 | 2020-09-07T06:27:37 | null | UTF-8 | C++ | false | false | 128,037 | cpp | DICe_Mesh.cpp | // @HEADER
// ************************************************************************
//
// Digital Image Correlation Engine (DICe)
// Copyright 2015 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. ... |
26aaa8c10206054ccfca890651cca4866f31b58e | 0a40dba1c8de8ca33b9b1a22b6287f8e0800c2fd | /include/lsag.h | 4eecbef654f88a81b17c31ef88a605c37efc2bb7 | [] | no_license | levduc/DLSAG-prototype-number | 383bb4118e0f341547e4537d2d6ce1ed494eaad3 | 95f849d724e6fe7ac7c15a278c6a81cb97e15020 | refs/heads/master | 2021-01-04T12:38:50.586410 | 2020-02-14T17:30:52 | 2020-02-14T17:30:52 | 240,554,085 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 980 | h | lsag.h | //
// Created by dduck on 2/3/20.
//
#include <cstdint>
#include <stdio.h>
#include <sodium.h>
#include <iostream>
#include <string.h>
#ifndef DLSAG_LSAG_H
#define DLSAG_LSAG_H
struct lsag_keyPair{
uint8_t lsag_sk[crypto_core_ed25519_SCALARBYTES];
uint8_t lsag_pk[crypto_core_ed25519_BYTES];
};
struct lsag_s... |
e99741d6560e54fabf310c453322e322534f17cf | 43034f1ac5a203f83224b30a92672aab03821cca | /Cliente.h | d14786de9ba3d0f936a297d94d5a3bb5f85f8e4f | [] | no_license | danielmmf/cpp_tests | 66376833e112cf7a15f472bc8edf08050d51c57f | 9f5182c71c3c198f697662fc34261e427fcf27c9 | refs/heads/master | 2021-06-28T05:38:06.186317 | 2017-09-11T03:54:08 | 2017-09-11T03:54:08 | 103,068,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | h | Cliente.h | #pragma once
#include<iostream>
#include<string>
#include <locale>
#ifndef CLIENTE_H__
#define CLIENTE_H__
using namespace std;
class Cliente{
public:
Cliente();
~Cliente();
int codigo;
int getCodigo();
bool setCodigo(int cod);
bool setNome(string nome);
bool setCpf(string cpf);
string getNome()... |
8c26a2903933324547b5a3c5fb591588a85230fc | dcca86d376f43f8e921dd8c88b136390a6186eca | /1042/main.cpp | 575cfd9786bad035285bad82b5f8d99814f0d9b8 | [] | no_license | wxy3265/NOIP | 66768430d7523ff9f62ddcc8031488d85db57848 | 6bcf0857791248194671aa64b7416c7a3efdc063 | refs/heads/master | 2021-01-19T17:31:53.334821 | 2018-01-13T02:44:18 | 2018-01-13T02:44:18 | 100,245,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,638 | cpp | main.cpp | #include <iostream>
using namespace std;
void change(int* a, int* b);
int main()
{
int n;
cin >> n;
int id[n], chinese[n], math[n], english[n], score[n];
int i;
for (i = 0; i < n; i++) {
id[i] = i + 1;
cin >> chinese[i] >> math[i] >> english[i];
score[i] = chinese[i] + m... |
df9003907aebbebf9e2b43adfcaa08731937abe5 | ede27af111a24fb36550c4e943e8ca4324ae9a64 | /Client/clientMain.cpp | 281375b8f2918809cccd882d9059f9bad8a751be | [
"MIT"
] | permissive | shawnvision7264/tcp-protocol | e959c0d22a55afa1c55cb21706db824b7943d7eb | 7011195b529dbcb0761d2b1d0131bdb209c1365d | refs/heads/master | 2021-03-17T08:52:43.740455 | 2019-01-25T06:59:04 | 2019-01-25T06:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | clientMain.cpp | #include <iostream>
#include "Client/Client.h"
using namespace std;
int main() {
Client client("client.txt");
int stopAndWait = 0;
int selective_repeat = 1;
int GBN = 2;
client.connect_to_server();
client.receive_file(selective_repeat);
return 0;
} |
894807ced6ae67b7d2e44dfe723a46fc428a1dab | 412490586f58cd690eea9bb0fdc30bb1fafa79e1 | /gdb/kernel/core/src/geometry/vertex2f.cpp | fe4a52906b21e1f5bbaadad08f9ae737ffb5ea1b | [] | no_license | xyfigo/gtl | a93e236557fc3eee73fe8025775cef22977be125 | 2468d858dec43d664e7aafa252e1d2b79623fba1 | refs/heads/master | 2020-04-15T15:55:41.025404 | 2017-03-29T04:09:30 | 2017-03-29T04:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | cpp | vertex2f.cpp | #include "vertex2f.h"
begin_gtl_namespace
begin_gdb_namespace
Vertex2f::Vertex2f() :x(0), y(0){ }
Vertex2f::Vertex2f(float xx, float yy) : x(xx), y(yy){ }
Vertex2f::Vertex2f(const Vertex2f & vt) {
x = vt.x; y = vt.y;
}
void Vertex2f::operator*=(float rhd){
x *= rhd;
y *= rhd;
}
Vertex2f Vertex2f::operator ... |
e46a945a7ae70ba2cbc6b4c6d07329041fbfa48c | 13c31f17496ece324b6f4ed8a332a145d7509d62 | /demo/glyphy-demo.cc | 2ecd3e533183ae248609cd7e5a1ded64c6c768e2 | [
"Apache-2.0"
] | permissive | behdad/glyphy | 020690d6ed9c3528684599d6a0bbc4a01beb4d7d | 68a5f8d8ae64e0158d776b21581d0ecb70ec8304 | refs/heads/master | 2023-08-31T05:26:57.222215 | 2023-07-04T18:36:52 | 2023-07-07T14:53:10 | 5,050,513 | 638 | 79 | NOASSERTION | 2023-07-07T14:53:11 | 2012-07-14T19:49:03 | C++ | UTF-8 | C++ | false | false | 6,451 | cc | glyphy-demo.cc | /*
* Copyright 2012 Google, Inc. 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
*
* Unless required by applic... |
29706748d74ad93facea00846b83bb147f221a80 | fdcae9bcce8ee53d572a351a6811047edbbd3b3e | /code/Singularity_Engine/include/common/DelegateHandler.h | 1cd7d66ccb3eec29d9370e063b952bba1b79e459 | [] | no_license | jobelobes/Ultragon.Games.TriggerHappy | d4378e34946759e4f19db14fc09120e4086dc3b8 | f438b5d3af4ff2173f9b02a489a8c907c48a9bf5 | refs/heads/master | 2021-03-24T12:44:34.589323 | 2012-06-28T22:37:04 | 2012-06-28T22:37:04 | 4,823,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | h | DelegateHandler.h | #include "common\Singularity.Common.h"
namespace Singularity
{
class DelegateHandler
{
private:
#pragma region Variables
DynamicList<IDelegate*> m_pDelegates;
#pragma endregion
public:
#pragma region Constructors and Finalizers
DelegateHandler();
~DelegateHandler();
#pragma e... |
35a86b472462d4102a57a26f1ce0d1dcfcd161ec | 06a85cf0123dd2a27f75e145d4c233fb25eb393b | /hdu/2042.cpp | 0e2827465a53589299b83ee6d3c3ede82448e39b | [] | no_license | nosyndicate/onlinejudge | 6db7f50382751310a9b0ce48cf56bb2a258a1800 | 2a7b775e182eafdb7ca349f5c56d694f40072f58 | refs/heads/master | 2021-01-19T08:16:57.045164 | 2014-04-07T06:24:16 | 2014-04-07T06:24:16 | 1,598,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | 2042.cpp | //http://acm.hdu.edu.cn/showproblem.php?pid=2042
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
while(n--)
{
int t,ret = 3;
scanf("%d",&t);
for(int i = 0;i<t;++i)
{
ret = (ret-1)*2;
}
printf("%d\n",ret);
}
return 0;
} |
db8a889b0aa288817af9bfe8fc690a3740305557 | 7579d827cb7b50b438dfd9ef6fa80ba2797848c9 | /sources/plug_osg/src/luna/bind_osgUtil_AddRangeOperator.cpp | 114fcecb1781adc02eae86ceb949859750ab5087 | [] | no_license | roche-emmanuel/sgt | 809d00b056e36b7799bbb438b8099e3036377377 | ee3a550f6172c7d14179d9d171e0124306495e45 | refs/heads/master | 2021-05-01T12:51:39.983104 | 2014-09-08T03:35:15 | 2014-09-08T03:35:15 | 79,538,908 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,034 | cpp | bind_osgUtil_AddRangeOperator.cpp | #include <plug_common.h>
class luna_wrapper_osgUtil_AddRangeOperator {
public:
typedef Luna< osgUtil::AddRangeOperator > luna_t;
inline static bool _lg_typecheck___eq(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( !Luna<void>::has_uniqueid(L,1,12139482) ) return false;
return true;
}
... |
470c01cee0fd6a2c6a12735cc2fb87b56b79c6f8 | f9997ffeffa371b83f31419327932944e3622964 | /openGL_00/src/SphericalHarmonicsLighting.h | 4b324f60d7882321a4f3f29673f1660d9ce623df | [] | no_license | joaodafonseca/OPENGL_studies | d984b7a14795c5f8eb1d10d5d924953436d0dbba | 608700d61a96103b7021257388fa871a082e9ee9 | refs/heads/master | 2018-12-28T07:56:22.719550 | 2015-09-19T09:20:24 | 2015-09-19T09:20:24 | 42,767,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | SphericalHarmonicsLighting.h | //
// SphericalHarmonisLighting.h
// openGL_00
//
// Created by João Fonseca on 28/06/15.
//
//
#pragma once
#include "Scene.h"
#include "ofMain.h"
#include "ofxGui.h"
#include "ofxAssimpModelLoader.h"
class SphericalHarmonicsLighting : public Scene {
public:
SphericalHarmonicsLighting();
v... |
23631f22ae6903e6326d1cfb21e19aef6577eced | 5d7afd39f8dc6660b5c7486b37f8f1f6117eeb30 | /medium/519_random_flip_matrix.cpp | 14b88b8cc092fb86a1277557c9123774ac88dcd9 | [] | no_license | JackieCkc/leetcode | 4bdf02ca731358e1d7c81cf1af736703ba860508 | 49136647219abb17573a4b9cbe9579c9a47702c0 | refs/heads/master | 2020-06-05T07:44:01.522927 | 2020-01-18T06:40:15 | 2020-01-18T06:40:15 | 192,363,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,225 | cpp | 519_random_flip_matrix.cpp | #include <iostream>
#include <map>
#include <vector>
#include <tuple>
#include <array>
#include <stack>
#include <math.h>
#include <string>
#include <sstream>
#include <algorithm>
#include <iterator>
using namespace std;
#define f(x, n) for (int x = 0; x < n; x++)
#define f1(x, s, n) for (int x = s; x < n; x++)
type... |
65f5547846e910cf2e8103b9721a4739bacb2b68 | 111c3ebecfa9eac954bde34b38450b0519c45b86 | /SDK_Perso/include/WeaponBlocks/Include/constraint_base.h | 4a9d702fef5ce0c6b521a12726253be9d4e84f86 | [] | no_license | 1059444127/NH90 | 25db189bb4f3b7129a3c6d97acb415265339dab7 | a97da9d49b4d520ad169845603fd47c5ed870797 | refs/heads/master | 2021-05-29T14:14:33.309737 | 2015-10-05T17:06:10 | 2015-10-05T17:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,232 | h | constraint_base.h | #ifndef __CONSTRAINT_BASE_H__
#define __CONSTRAINT_BASE_H__
#include "WeaponBlocks.h"
#include "Math/Vector.h"
#include "Math/Rotation3.h"
enum eConstraintType
{
CONSTRAINT_FIXED,
CONSTRAINT_RAIL,
CONSTRAINT_ROTATION
};
class wAmmunition;
// Для запроса положения и скорости связи, а также для различных операций... |
18513c781900925f826bc7ff17abc30595970876 | 46a2d51a6a25a54c5821c978bc0d8af80ad46ba1 | /2D_횡스크롤_슈팅/TeamProjects/TeamProject/Player.cpp | 83ded0e3cb005a3b7422826f098b7fbea099b212 | [] | no_license | charles6919/StudyStorage | b0421fc885e356cc02fe7a4e2b4db96cb524af32 | 619dcfe332fd5755680324ad6503c6b0ebb8313e | refs/heads/master | 2021-08-28T06:39:54.010103 | 2021-08-17T07:55:26 | 2021-08-17T07:55:26 | 221,620,060 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 6,942 | cpp | Player.cpp | #include "stdafx.h"
#include "Player.h"
Player::Player()
{
m_pAniCharacter = NULL;
m_pAniGun = NULL;
m_pHitCollider = NULL;
m_pFootCollider = NULL;
{
g_pTextureManager->AddTexture(L"Player", L"CupHead_Sprites.png");
g_pTextureManager->AddTexture(L"Player_Gun_R", L"CupHead_HandGun_Idle_R.png");
g_p... |
3261c3193ea411eb7e6e75578ffe92902e1e03e7 | dcd70031041dabecc6abfa5f2847c299fc7fef70 | /프로그래머스/2019 카카오 개발자 겨울 인턴십/튜플.cpp | b9a851ef2ca72e334db3f208c554efc8dc8ac4ae | [] | no_license | JJJoonngg/Algorithm | cab395760ef604a1764391847473c838e3beac9f | 32d574558c1747008e7ac3dfe4f9d4f07c58a58b | refs/heads/master | 2021-06-21T01:01:36.302243 | 2021-03-24T14:01:06 | 2021-03-24T14:01:06 | 196,032,101 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,420 | cpp | 튜플.cpp | //
// Created by 김종신 on 2020/05/05.
//
#include <iostream>
#include <vector>
#include <set>
#include <string>
#include <algorithm>
using namespace std;
bool comp(vector<int> a, vector<int> b) {
return a.size() < b.size();
}
vector<int> solution(string s) {
vector<int> answer, tmp;
vector<vector<int>> v;
... |
704bb982ed27f4dac479d0e04268b66ce7b7995b | 67ccc9efd94f4fb90b52ee0b73e1485d47845bca | /parciales/parcial02b/bateries/workingBateries.cpp | 046bf880b18bc2531ec083638878909d8e571f3a | [] | no_license | mzabala1/244smzabala1 | ffbc8562c526ca4cfb50739da343089ef4d801c9 | 22af4f84ec0c15219c5c5fc697b87a1d7b5fee3c | refs/heads/master | 2020-03-11T12:42:31.889408 | 2018-04-18T05:58:04 | 2018-04-18T05:58:04 | 130,004,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 911 | cpp | workingBateries.cpp | #include "bateries.h"
#include <iostream>
using namespace std;
int
main() {
int nBateries;
cin >> nBateries;
Batery *bateries[nBateries];
for (int i = 0; i < nBateries; ++i) {
float charge[2];
cin >> charge[0] >> charge[1];
bateries[i] = new B2Batery(charge);
}
float amount;
cin >>... |
74a46aaf96de80807b59d99b284761b114553c5b | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /third_party/WebKit/Source/modules/media_controls/elements/MediaControlOverlayEnclosureElement.cpp | d0b974a6a41685b86de134a451019c89d4f16ebf | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | C++ | false | false | 1,420 | cpp | MediaControlOverlayEnclosureElement.cpp | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/media_controls/elements/MediaControlOverlayEnclosureElement.h"
#include "core/dom/events/Event.h"
#include "modules/media_controls/Medi... |
9f39f2c4a773c351bd3a52dc179430dc4cb237a3 | b2139a7f5e04114c39faea797f0f619e69b8b4ae | /src/piSquare/include/iCub/piSquare/policyLibrary/dmpPolicy.h | 2bf7b413b6c1fc05ab5f901f55c40def465c1d3d | [] | no_license | hychyc07/contrib_bk | 6b82391a965587603813f1553084a777fb54d9d7 | 6f3df0079b7ea52d5093042112f55a921c9ed14e | refs/heads/master | 2020-05-29T14:01:20.368837 | 2015-04-02T21:00:31 | 2015-04-02T21:00:31 | 33,312,790 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,465 | h | dmpPolicy.h | /*********************************************************************
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistribut... |
5be3fd64906454144e4bc44f7b5b887093f859ca | db7379aa0723bcf4cb303f5e5ed8c07ff72d1f67 | /POO_TPII_DavidsonDias_MateusAlves/2.6/include/InterSet.h | 0c47c455848e9f7c3eddf736d0ace2c0549a3736 | [] | no_license | MatLopes23/POO | 8e5e0336c0df46bcfd0030520218c54a98eaa8f8 | c5f93c802a5c28973a4161eac12bd2dd50ee04e9 | refs/heads/master | 2020-04-07T20:58:06.816632 | 2018-11-23T12:18:14 | 2018-11-23T12:18:14 | 158,709,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | h | InterSet.h | #ifndef INTERSET_H
#define INTERSET_H
#include<array>
class InterSet
{
std::array<bool,101> a;
public:
InterSet();
virtual ~InterSet();
int InsereElemento(const int k);
int RemoveElemento(const int k);
void Uniao(const InterSet x,const InterSet y);
... |
f32d28c436d264415b071299b6d4b2bae06e1628 | 8994954408db862f36fedc6a9346dcf5f405478f | /PCA_Downsample/voxel_grid_downsampling.cpp | 7ae09a3d950779e2c7bbad622abf113774f9c32a | [] | no_license | zhangsongdmk/analyze_pointcloud | f26855264e921ad3709fb2b19e4e23d8032a9007 | 4c5ed82614995bb9b9a5d5f177e8b9a332bc99d4 | refs/heads/master | 2022-10-17T15:36:22.860498 | 2020-06-13T08:01:40 | 2020-06-13T08:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,727 | cpp | voxel_grid_downsampling.cpp | #include "PCA_Downsample/voxel_grid_downsampling.h"
#include <cmath>
#include <algorithm>
#include <fstream>
#include <cstdlib>
#include <cmath>
bool VoxelGridDownsampling::set_data(const std::string& pts_file) {
_pcd = Utils::read_pointcloud_from_file(pts_file);
std::cout << "point cloud size: " << _pcd.cols... |
a6a6faa3f81662c9c1e4bfd182696beb2ebbaa33 | b3e525a3c48800303019adac8f9079109c88004e | /nic/metaswitch/stubs/test/hals/ipsfeeder/vrf_ips_feeder.cc | 82bdb71d23983e3b7aa2bc89210398d833bb0994 | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cc | vrf_ips_feeder.cc | //------------------------------------------------------------------------------
// {C} Copyright 2019 Pensando Systems Inc. All rights reserved
//------------------------------------------------------------------------------
#include "nic/metaswitch/stubs/test/hals/ipsfeeder/vrf_ips_feeder.hpp"
namespace pds_ms_test... |
19f8b6b47190cdc739c7694b791524ffe6482b4d | 7f6d2df4f97ee88d8614881b5fa0e30d51617e61 | /王朝国/homework/chapt_3_demo/Date1.h | f446d86cee419123c6fcf090261ae54369bb7c72 | [] | no_license | tsingke/Homework_Turing | 79d36b18692ec48b1b65cfb83fc21abf87fd53b0 | aa077a2ca830cdf14f4a0fd55e61822a4f99f01d | refs/heads/master | 2021-10-10T02:03:53.951212 | 2019-01-06T07:44:20 | 2019-01-06T07:44:20 | 148,451,853 | 15 | 25 | null | 2018-10-17T15:20:24 | 2018-09-12T09:01:50 | C++ | GB18030 | C++ | false | false | 995 | h | Date1.h | //Date1.h:完整的Date类定义,成员函数的定义放在类体外
#include<iostream>
using namespace std;
class Date
{private:
int year;
int month;
int day;
public:
void SetDate(int ,int ,int ); //对数据成员初始化的公有成员函数
void Display( ); //执行显示功能的公有成员函数
int GetYear( ); //公有成员函数,... |
56753d21fb3183943816d4ad1d17f913d000ba3e | 0c86b4e2ff65ee96fce989c66652e7145ff06d9d | /src/rt_light_dir.cpp | 894b32304329fcea3356909070aced76f0222445 | [] | no_license | shinhugh/raytracer | 209542d62b3aeb02fe92a9c5e74ab5b2cd434ff2 | 560673ff0757f312c3f7dff89047ad3afa6f025d | refs/heads/master | 2020-12-02T09:35:44.137925 | 2020-05-10T18:41:36 | 2020-05-10T18:41:36 | 181,390,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83 | cpp | rt_light_dir.cpp | /*
* Refer to rt_light_dir.h for details.
*/
#include "rt_light_dir.h"
// TODO
|
18629155cce04696e1c6b0dba4a37c1436bb763b | f1a387ca07a6252bb70daa5ece8b5901e3c9faa4 | /simpleVitisKernel/src/types.hpp | b2af15d8a90ce6dcc3014e4c941bc8e7880c8faa | [] | no_license | shahzadXilinx/hlsVectorTests | 30ee675f768d6ae1c457cddbc58df15fadd25f87 | 55dbc464954575fbdaa251cff72b12192bf2a159 | refs/heads/main | 2022-12-29T16:20:28.024278 | 2020-10-19T23:13:36 | 2020-10-19T23:13:36 | 305,170,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | hpp | types.hpp | #include <hls_vector.h>
using element_type= unsigned int;
constexpr auto elemSize = sizeof(element_type);
constexpr auto memWidth = 512/8;
constexpr auto elementsPerVec = memWidth / elemSize;
using uintVec = hls::vector<element_type,elementsPerVec>;
|
146ee3b72f09ac99beb30002eeefb0dad9f9a3dc | 9de0cec678bc4a3bec2b4adabef9f39ff5b4afac | /PWGDQ/dielectron/core/AliDielectronCutQA.h | eae0783e83d013a3bccbd400fd8e688252a7689e | [] | permissive | alisw/AliPhysics | 91bf1bd01ab2af656a25ff10b25e618a63667d3e | 5df28b2b415e78e81273b0d9bf5c1b99feda3348 | refs/heads/master | 2023-08-31T20:41:44.927176 | 2023-08-31T14:51:12 | 2023-08-31T14:51:12 | 61,661,378 | 129 | 1,150 | BSD-3-Clause | 2023-09-14T18:48:45 | 2016-06-21T19:31:29 | C++ | UTF-8 | C++ | false | false | 2,279 | h | AliDielectronCutQA.h | #ifndef ALIDIELECTRONCUTQA_H
#define ALIDIELECTRONCUTQA_H
/* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
//#################################################################
//# ... |
44ac3a0fe99fa37e915c31886cf48a514c726563 | f318dd18a187f5c931741ec6e5947dd54600942e | /include/QueueNode.hpp | 2dada3770e4d59fb407afef3318b924d5fc80d2c | [] | no_license | GeomartBrenthPAbong/InfixExpressionCalculator | d583ebf511ac0dcef5a5694bd5500a7f9d97a8b6 | 2d6bec90118d8f3d150de4ca6d6fc6bcfa75c12c | refs/heads/master | 2021-01-11T23:53:44.046397 | 2017-01-11T13:31:36 | 2017-01-23T15:58:33 | 78,641,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | hpp | QueueNode.hpp | #ifndef QUEUE_NODE_H
#define QUEUE_NODE_H
namespace gba
{
template<typename T>
class QueueNode
{
public:
QueueNode();
QueueNode(T p_data);
~QueueNode();
void setData(T p_data);
void setNextNode(QueueNode<T> *p_node);
T getDa... |
e44cc084ba5834bf832b3c55bf7fed77cfbcb85a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TrigT1/TrigT1EventTPCnv/TrigT1EventTPCnv/JEMHitsCollection_p1.h | 4620b8fb910eae80fd5fb996b4b40bcc33de4876 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | JEMHitsCollection_p1.h | /*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TRIGT1EVENTTPCNV_JEMHitsCOLLECTION_P1_H
#define TRIGT1EVENTTPCNV_JEMHitsCOLLECTION_P1_H
#include "AthenaPoolUtilities/TPObjRef.h"
#include <vector>
class JEMHitsCollection_p1 : public std::vector<TPObjRef>
{
public:
JEMHitsCo... |
9e7600ae0ec595a329c062ebf5f020070594fce1 | 99f08f10f02219f00f257c87d159d589f2bbe31a | /PRACTICA4/mochila.hpp | 80450c845abbc5681a494dbeac80d1d6158a7d10 | [] | no_license | aluquerivas-dev/Algoritmica | 1c3111a50c77630edc7d7c50500acff3986ce7de | 2f9d7100e2233a140a54afbff052919ac535583c | refs/heads/master | 2021-10-08T23:56:17.240083 | 2018-12-19T00:39:20 | 2018-12-19T00:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,230 | hpp | mochila.hpp | #ifndef _MOCHILA_HPP
#define _MOCHILA_HPP
#include <vector>
#include <string>
#include "material.hpp"
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <algorithm>
class Mochila
{
private:
std::vector<Material> Vmats;
int volumen_;
public:
Mochila(int v)
{
setVolumen(v);
};
inline void start(... |
474229f1ae4aac5b67390ace297f9cd6e31f2643 | f31558c867590e22bab50ec661d105c282ee1146 | /src/Application.cpp | b089c13dac1dbc516fd920baaa2e8e91c670347e | [
"MIT"
] | permissive | EleDe01/Arkanoid-Returns | 56b23ffaa13f273977de0b97a5a8d52e504effeb | 478ae8df92f978dce95fd227a9047e83dea9a855 | refs/heads/master | 2022-05-09T08:42:38.462501 | 2019-08-25T17:51:30 | 2019-08-25T17:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,685 | cpp | Application.cpp | #include "Application.hpp"
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_acodec.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_physfs.h>
#include <physfs.h>
#include <iostream>
using namespace std;
#include ... |
ebfe11c7507cf2818e0f99950994f2bf7c4c5e28 | 3da52a12f80fc6d4a58ba5578a6bfa7794930a15 | /source/WorldGenerator/Main.h | 95f261a2251a9ecffcc0878411bdeb2a030d7d1e | [] | no_license | Epiphane/NCW | db11a5130bc0f07458905e898b26d957dd4ce4f5 | 531a88e03e42450152d91f82925a420ef0b9ee2c | refs/heads/master | 2021-06-06T21:05:28.739882 | 2021-06-05T06:14:22 | 2021-06-05T06:14:22 | 136,872,412 | 2 | 0 | null | 2020-02-02T05:03:13 | 2018-06-11T03:57:13 | C++ | UTF-8 | C++ | false | false | 1,095 | h | Main.h | //
// main.h
// FinalProject
//
// Created by Thomas Steinke on 3/3/15.
// Copyright (c) 2015 Thomas Steinke. All rights reserved.
//
#pragma once
#include <vector>
#pragma warning(disable : 4201)
#include <glm/glm.hpp>
#pragma warning(default : 4201)
#include "../GLSL.h"
#ifndef M_PI
#define M_PI 3.14159265358... |
84688bd9885dea196ed78a09e5a2d70d8efb0f3a | 032312022846042162ef1d423cb4c478b205d41f | /LFR_new/LFR_new.ino | d9c2da7464c0086318a242b18bb716f35dec369d | [] | no_license | hamza-smh/project- | d528e994cc67dadb39727605c2d5eb95b916dbf9 | 6ea4f7f927f664cf8084328f2a1111601177309b | refs/heads/main | 2023-08-17T10:52:47.667706 | 2021-09-28T18:05:15 | 2021-09-28T18:05:15 | 345,573,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,966 | ino | LFR_new.ino | #define L_S A0 // left sensor
#define M_S A1 // right sensor
#define R_S A4 //middle sensor
#define L_M_F 6 // left motor fwd
#define L_M_R 5 // left motor rvrs
#define R_M_F 2 // right motor fwd
#define R_M_R 3 // right motor rvrs
void setup() {
pinMode(L_S, INPUT);
pinMode(R_S,... |
cbab7c54ec9013f7e6a9a9c5a92a8943e06cd816 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium/chrome/browser/chromeos/login/login_html_dialog.cc | b5187366eb54a7514f1c2ddcb43c86a0a0da0f9c | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 4,272 | cc | login_html_dialog.cc | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/login_html_dialog.h"
#include "chrome/browser/chromeos/frame/bubble_frame_view.h"
#include "chrome/browser/ch... |
d63f4d71e6975d82cccaf4f0a7b598e2a68b2239 | 84be2fd2200f577e7dc54e94ad3947e6bb7002ad | /Parkour/Classes/BankRaiseLayer.cpp | a89ca4b38389b014fe5ba425d53eb0b4b1d5d04e | [] | no_license | joyfish/cocos2d | 1f0f9e8aad282b95690c19e5f4fe375d175d76bb | 6745cfff22ae61e4ad70c49c0cf4c30a68485549 | refs/heads/master | 2021-01-18T00:53:54.661212 | 2015-10-25T13:09:06 | 2015-10-25T13:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,942 | cpp | BankRaiseLayer.cpp | #include "BankRaiseLayer.h"
#include "GAMEDATA.h"
#include "PlayerRank.h"
bool BankRaiseLayer::init()
{
if (!Layer::init())
{
return false;
}
animeTime = 0;
Size visibleSize = Director::getInstance()->getVisibleSize();
Sprite* background = Sprite::create("black_bg.png");
background->setScaleX(800);
backgroun... |
e3cdea35ecc5e3a549a40f05e15b809201d3c549 | 4d33c090428407d599a4c0a586e0341353bcf8d7 | /trunk/math/RootFinding.cpp | e43583a4ea14bebda96e582bd4ce0387b7fae4aa | [] | no_license | yty/bud | f2c46d689be5dfca74e239f90570617b3471ea81 | a37348b77fb2722c73d972a77827056b0b2344f6 | refs/heads/master | 2020-12-11T06:07:55.915476 | 2012-07-22T21:48:05 | 2012-07-22T21:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49 | cpp | RootFinding.cpp | #include "RootFinding.h"
namespace Zen
{
}
|
342b8ffc697eb9fe1bf939ce25b3157dc5d95851 | c2b708c6b9341c3976b0fd50b2fcd038083f4b5f | /hw2-templates-functions/structS.cpp | 23d852fe5da5abd3462b5a30e582d65a19a127d9 | [] | no_license | KristinaJelyazkova/OOP-Object-Oriented-Programming | 9fc7956d0f03d9d90e39d1014eaf4ea06575d705 | 61e55f3796a3514de5c0d439a38dc1cf0ec7dcd2 | refs/heads/master | 2022-04-14T23:45:06.646208 | 2020-04-15T18:57:43 | 2020-04-15T18:57:43 | 114,671,793 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | structS.cpp | #include<iostream>
#include<fstream>
using namespace std;
struct S {
int a;
int b;
int c;
};
void swap(S &s1, S &s2) {
S buf = s2;
s2 = s1;
s1 = buf;
}
int compareByA(S s1, S s2) {
if (s1.a > s2.a) return 1;
if (s1.a == s2.a) return 0;
return -1;
}
int compareByB(S s1, S s2) {
if ... |
0e036b3863b78d198fc0dd9f14c207fddaa1f124 | 2b6c5b7ba1a7cdb3bfc26f30c9b2d275b336f97c | /old/Welcome.cpp | 0575fe908df2fb9bddc4216d5a60d2336f9de156 | [
"MIT"
] | permissive | DistinctWind/OI | cbbc81429ae5daada9d6c13b21cb52f65e438e4e | da0aa104731b30958d4fdc87fb76205ff4a481ea | refs/heads/master | 2021-04-08T02:18:43.410471 | 2020-03-24T14:29:06 | 2020-03-24T14:29:06 | 248,726,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,661 | cpp | Welcome.cpp | #include <cstdio>
#include <vector>
#include <stack>
using namespace std;
const int MAXN=10010;
const int MAXM=50010;
int n,m;
int head[MAXN],cnt_edge;
int bhead[MAXN],cnt_bedge;
int dfn[MAXN],b[MAXN],low[MAXN],t,ans=-1;
int out[MAXN];
int cnt_block;
stack <int> s;
vector <int> block[MAXN];
bool is[MAXN];
struct Edge{
... |
49cfd356f497f3229b37d6c13e0cb2c8aad1aa19 | e17546794b54bb4e7f65320fda8a046ce28c7915 | /DeviceCode/Drivers/BatteryMeasurement/stubs/fastcompile_BatteryMeasurement_stubs.cpp | f31185706f12c7996debba92bf5ca22762337e95 | [
"BSD-3-Clause",
"OpenSSL",
"MIT",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"Apache-2.0"
] | permissive | smaillet-ms/netmf-interpreter | 693e5dc8c9463ff0824c515e9240270c948c706f | 53574a439396cc98e37b82f296920c7e83a567bf | refs/heads/dev | 2021-01-17T22:21:36.617467 | 2016-09-05T06:29:07 | 2016-09-05T06:29:07 | 32,760,598 | 2 | 1 | null | 2016-04-26T02:49:52 | 2015-03-23T21:44:01 | C# | UTF-8 | C++ | false | false | 92 | cpp | fastcompile_BatteryMeasurement_stubs.cpp | #include "BatteryMeas_stubs_functions.cpp"
#include "BatteryMeasurement_stubs_config.cpp"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.