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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ec0b4c791141f4bf717fd2109484a0058ae29c8 | 1708ae0065594deb61ce54e74e08782caa1e5352 | /SnakeClient/network/jsnakesocket.h | 1d4f6e6b3b923e0061d3650c83e7c446ad259008 | [] | no_license | stareven/Dlut-Game-Platform | e9933214bb3984416414b19bf220390c7322182b | 0bbe52420ec337c1c77bda70d4d84cc865915cbb | refs/heads/master | 2021-01-18T04:53:10.054947 | 2011-08-28T23:23:28 | 2011-08-28T23:23:28 | 2,854,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,383 | h | jsnakesocket.h | #ifndef JSNAKESOCKET_H
#define JSNAKESOCKET_H
#include "network/jsocketbase.h"
namespace Snake
{
class JRoom;
}
class QPoint;
class JSnakeSocket : public JSocketBase
{
Q_OBJECT
explicit JSnakeSocket(QObject *parent = 0);
static JSnakeSocket s_socket;
public:
static JSnakeSocket& getInstance();
void sendHell... |
afe6ff5ab903b593c0ad7dc1f6a439ce1dad9da1 | a05e9799a7dbb11bf1ef93a7100a5bccdc2e0680 | /include/Algo.h | 97224c84648534412067e199b9b313bda28c3be9 | [] | no_license | Pudums/TTR | 67606429ad3c18d132df877c0132914e4e2fff36 | ac52a512f37cae96fc93edea1cf8690bb4e722c7 | refs/heads/main | 2023-05-04T11:00:30.779706 | 2021-05-28T17:36:49 | 2021-05-28T17:36:49 | 339,153,835 | 4 | 0 | null | 2021-02-25T15:14:52 | 2021-02-15T17:26:16 | C++ | UTF-8 | C++ | false | false | 771 | h | Algo.h | //
// Created by timofey on 24.02.2021.
//
#ifndef TTR_ALGO_H
#define TTR_ALGO_H
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "Path.h"
struct Algo {
std::map<std::string, std::vector<std::string>> g;
static int find_best_way(
const std::string &start,
... |
592948363f9d89c412300349147ce0351e230c2c | 510cfe880a475f0c572cc34c1b544e41911c3e6c | /nknumfre.cpp | 10e2157f6c914847ced05455a5a10f2c39047803 | [] | no_license | ptkhai1203/cf-problems | aa40a1233b490c0daa977f978bed5b517bc47190 | 421c8e43401aa409363d6653540d8d6238b0e1d3 | refs/heads/main | 2023-04-14T14:03:45.795965 | 2021-04-12T13:35:05 | 2021-04-12T13:35:05 | 340,100,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | cpp | nknumfre.cpp | #include <bits/stdc++.h>
using namespace std;
#define send {ios_base::sync_with_stdio(0);}
#define help {cin.tie(0);};
int gcd(int a, int b){
if(a == 0)
return b;
return gcd(b % a, a);
}
int rev(int x){
int res = 0;
while(x != 0){
res = res * 10 + (x % 10);
x /= 10;
}
r... |
af1a2808cbf4ae339ce9574858657ef63a3df08b | 5db0a97a2419a5d5e77ed2aa9c940f41e95f71de | /HACKRNDM.cpp | e3e5544d3ee5997e989957be1e7cd20d13a756b2 | [] | no_license | dieuninh1997/spoj-2017 | 6599d839074389b07242c2884a51a123bdde45af | fba7af738f3050feb731acd96ffd5f5e5795ccdf | refs/heads/master | 2021-05-12T11:58:07.199952 | 2018-01-14T05:05:52 | 2018-01-14T05:05:52 | 117,400,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cpp | HACKRNDM.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll ;
#define FOR(i,a,b) for(int i=a;i<b;++i)
#define FORI(i,b,a) for(int i=b;i>=a;--i)
void solve()
{
int n,k;
cin>>n>>k;
map<int, int> m;
for(int i=0; i<n;i++)
{
int x;
cin>>x;
m[x]++;
}
int res=0;
map<int,int>::iterator it,a;
for(it=m.begin... |
5f7152f305dadc6252013e6619f05331f1fdc15e | b9bdb782d585153a8cff6b17f7d3368d5c9a7081 | /linear_list/link_cycle_list.h | a253f6f3ab3c33946be80071dbcf3ffa576affe2 | [] | no_license | schwarzeni/kaoyan_data_structure | 904caa7c5a0c6d79e9173d39170a5b9c6a2a8e4c | a6c89ba148e2e1b326c13aac5a6bb3c23f4c2ff3 | refs/heads/master | 2020-03-25T06:30:28.937160 | 2018-08-27T08:00:15 | 2018-08-27T08:00:15 | 143,506,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,288 | h | link_cycle_list.h | //
// Created by schwarzeni on 2018/7/23.
//
#ifndef KAOYAN_DATA_STRUCTURE_LINK_CYCLE_LIST_H
#define KAOYAN_DATA_STRUCTURE_LINK_CYCLE_LIST_H
/**
* 2018/7/23
* 单向循环链表
*/
#include <iostream>
namespace linkCycleList {
int length = 5;
typedef int Elemtype;
Elemtype *data = new Elemtype[length]{1, 2, 3, 4, 5};
typedef... |
4cfabc9c33c6b9bb67322cd78e330bff280acab9 | cb9e1cbd351ebef1e5cffb386f9b0bb558273d80 | /listFuncs.h | 7c633421f0aceb55804be335a26e4cb67b3358d7 | [] | no_license | xzhang603/Hash-Table-with-LinkedList | 1626919f1483087207aff2f381294fc69715e19a | 9c0ec67cb7599604d34711911cbc103f3f6cb9de | refs/heads/main | 2023-04-17T08:44:54.890058 | 2021-05-11T18:10:35 | 2021-05-11T18:10:35 | 366,472,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | h | listFuncs.h | // Name: Xin Zhang
// USC NetID: xzhang55 USCID:4998-6225-16
// CSCI 455 PA5
// Spring 2021
//*************************************************************************
// Node class definition
// and declarations for functions on ListType
// Note: we don't need Node in Table.h
// because it's used by the Table cla... |
f3e81db787937e8f3857bea2c1126a7e0557743b | 2a573891e893ef0c985945dea8fd9e7ff5fea927 | /VoxFab/Dlg_FEAInfo.cpp | 1ba3ce289f931b6d6abcd2a09150a336a7ceb962 | [] | no_license | atsmsmr/VoxFab | e46fa18a11d85da9c408200484a9a1194c71e10f | 02f0b6384cf5961a692aa93cac4c5a693388dd01 | refs/heads/master | 2021-01-09T20:09:29.579248 | 2016-07-11T17:38:58 | 2016-07-11T17:38:58 | 63,086,828 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,833 | cpp | Dlg_FEAInfo.cpp | /*******************************************************************************
Copyright (c) 2016, Atsushi Masumori
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of sourc... |
b4b816d311c469b38d225d520898c86cfb2f440f | 7926b330515aa573a810ed9cb298c3de93b007f9 | /陈磊贡献/强连通分量2.cpp | d51b24c1216df7ca48385b563488066db081076e | [] | no_license | laijirong/NOIP-C-files | 6f1dceae364e41625f3a4ef0e3897ef1c731d0fe | 951af9aa0b287a8c169b6ba03d618ba8ba2e0ae2 | refs/heads/master | 2020-04-20T11:38:00.485181 | 2019-06-16T03:00:55 | 2019-06-16T03:00:55 | 168,822,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,305 | cpp | 强连通分量2.cpp | #include<iostream>
#include<cstdio>
using namespace std;
int n,m,sum,p,q,red;
int head[10010],tail[10010],used[10010],d[10010],len[10010];
int seat[10010],l[10010];
struct ss
{
int last,val;
} mapz[500010];
struct sss
{
int last,start;
} mapf[500010];
void read1(int a,int b,int c)
{
mapz[c].last=head... |
606117b9a4b108f231b452ddfbfe2e05bbda07c6 | 604c3a16454625d5589fb768b0ea032ed234035c | /Aula07_13/Funcionario.h | bf48272ba85362084be0a8d18573149445e8afde | [] | no_license | marcosmn/LP1_2020.5 | 035ffa14c2d3f44735f1066d193289f1bf344af8 | 61b102495c0215161ddf63527e0e477b496c2fc9 | refs/heads/master | 2022-11-15T06:12:29.322254 | 2020-07-20T18:27:55 | 2020-07-20T18:27:55 | 274,411,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | h | Funcionario.h | #include <string>
#include "Empresa.h"
using namespace std;
class Funcionario
{
public:
Funcionario();
~Funcionario();
void setEmpresa(Empresa novaEmpresa);
Empresa getEmpresa();
void setNome(string novoNome);
string getNome();
void setSalario(int novoSalario);
double getSalario();
void set... |
05fa7c5bcd2d20e03b7a9929b8867fcf7f70d6dd | 4c642de2d9cf0f002a6c927e0c35e1ff8129378d | /examples/db_client/src/main.cpp | b0f8636c70a08b63163d96f1e5ca9b5720dd17eb | [
"MIT"
] | permissive | paceholder/mif | 93ca6818577d670e90829ad4e7a6fb87fe5ed84a | ff3c18f577048c94887220bb92477ce102f01599 | refs/heads/master | 2020-12-02T06:37:44.150255 | 2017-07-11T18:23:30 | 2017-07-11T18:23:30 | 96,864,887 | 4 | 1 | null | 2017-07-11T18:23:31 | 2017-07-11T07:37:15 | C++ | UTF-8 | C++ | false | false | 9,536 | cpp | main.cpp | //-------------------------------------------------------------------
// MetaInfo Framework (MIF)
// https://github.com/tdv/mif
// Created: 03.2017
// Copyright (C) 2016-2017 tdv
//-------------------------------------------------------------------
// STD
#include <cstdint>
#include <sstream>
#include <stdexce... |
cff0ec2d82bc2ca0f4c4f0949525df2580febb19 | 5a7c2a825728acdc41ba1c883e64def2aa0d8970 | /tfs2/src/master/ChunkHelper.hpp | 8858109bba201ac851f038eec5714cf5cd202107 | [] | no_license | kyhhdm/TPlatform | 6f4df42b3e628f116ae4f8efb91a5a363e2e82ed | 77020007648d609e074959b7cb29ee246e0cd400 | refs/heads/master | 2021-01-22T23:16:35.491597 | 2012-08-30T04:07:30 | 2012-08-30T04:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,455 | hpp | ChunkHelper.hpp | /**
* @file ChunkHelper.hpp
* Helper functions of Chunk related class.
*
* @author Zhifeng YANG
* @date 2007-07-11
*/
#ifndef _CHUNKHELPER_HPP
#define _CHUNKHELPER_HPP 1
#include <iostream>
#include <ext/hash_set>
#include <ext/hash_map>
#include "common/IceGenerated.hpp"
#include "master/AddressHelper.hpp"
n... |
6f4bac4ac4e6e5f68d428d95f93eb3b0470c6768 | c102d77e7e363d043e017360d329c93b9285a6be | /Sources/Engine/Core/ValueType.inl | cc3a11692f9545c7da64b0d1d439165a0d66c8a9 | [
"MIT"
] | permissive | jdelezenne/Sonata | b7b1faee54ea9dbd273eab53a7dedbf106373110 | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | refs/heads/master | 2020-07-15T22:32:47.094973 | 2019-09-01T11:07:03 | 2019-09-01T11:07:03 | 205,662,360 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | inl | ValueType.inl | /*=============================================================================
ValueType.inl
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
/*
SE_INLINE int32 ValueType::GetHashCode(int8 value)
{
return ((int32)(value));
}
SE_INLINE int... |
d312caa97f1a62adc3146afd2a1629dcc44e25e0 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/filename_generation/filename_generation.cc | 5c304ea53b5a2acd0de571e54f122f303ec72233 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 7,252 | cc | filename_generation.cc | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/filename_generation/filename_generation.h"
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/i18n... |
854e8ae837bc64141802d6bc8ddf3aa80ea621c3 | 2eb6a1f3af503535e21d4ad03e42636b92d54466 | /Programas de Comp 2/Rectangle/Project2/Rectangle.cpp | 9e89b6cd55f46a590a59e7dac6c5d0743e8ed77d | [] | no_license | JMAvillan/Cpp-Projects | 1f62c742710dfb3de835ec33c7e79ce82392a60b | 512cbb1005dffb4320dd6a67b4d78210c8a4f79d | refs/heads/main | 2023-06-20T12:20:12.005058 | 2021-07-07T23:38:06 | 2021-07-07T23:38:06 | 383,950,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,888 | cpp | Rectangle.cpp | #include "Rectangle.h"
#include <iostream>
Rectangle::Rectangle() {
width = 1.0;
length = 1.0;
}
Rectangle::Rectangle(double aWidth, double aLenght) {
setWidth(aWidth);
setLength(aLenght);
}
Rectangle::Rectangle(const Rectangle&anRectangle)
{
setWidth(anRectangle.getWidth());
setLength(anRectangle.getLength... |
b6addbfb4c655c43d48025f29fbd7a060c6b6b99 | 08ed38b70ccde334ddf6abbf6d740df559731e2b | /TRC2PMBUSTool/BaseWritePage.cpp | 1c7bd72125a59714f8f8ad51805190dd36822fa4 | [] | no_license | bingshiue/wxPSU | 32ac806cdbada9c934b18ddd00c152d0eb433c3b | 33d0bf9e3c324b69e2c9f22db8c5c9d9fb6ebd13 | refs/heads/master | 2021-01-23T21:37:41.981082 | 2018-02-05T03:42:46 | 2018-02-05T03:42:46 | 57,594,833 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,087 | cpp | BaseWritePage.cpp | /**
* @file BaseWritePage.cpp
*/
#include "BaseWritePage.h"
BaseWritePage::BaseWritePage(wxWindow* parent, wxString& label) : wxPanel(parent) {
// Set Parent
this->m_parent = parent;
// Set Label
this->m_Label = label;
// Data Format
this->m_dataFormat = cmd_data_format_LinearData_Format;
// Base LayOut
... |
168f52acac90d74b0aeb6e583699e2ead9570d2d | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_15852.cpp | 281866b3a161d00e426e4e401790737762cb71be | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | cpp | Kitware_CMake_repos_basic_block_block_15852.cpp | {
if (wb_write_to_temp(a, buff, ws) != ARCHIVE_OK)
return (ARCHIVE_FATAL);
iso9660->cur_file->cur_content->size += ws;
} |
f28d031e69751e8f735c6868d87c6d9b004f015d | f95341dd85222aa39eaa225262234353f38f6f97 | /DesktopX/Plugins/DXSysStats/SysStatsODCOM/Dummy.cpp | f0fa6ab72deec27450cba866ea9090c8f6725cae | [] | no_license | Templier/threeoaks | 367b1a0a45596b8fe3607be747b0d0e475fa1df2 | 5091c0f54bd0a1b160ddca65a5e88286981c8794 | refs/heads/master | 2020-06-03T11:08:23.458450 | 2011-10-31T04:33:20 | 2011-10-31T04:33:20 | 32,111,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | cpp | Dummy.cpp | // Dummy.cpp : Implementation of CDummy
#include "stdafx.h"
#include "SysStatsODCOM.h"
#include "Dummy.h"
/////////////////////////////////////////////////////////////////////////////
// CDummy
|
d15a5720778cc6006896b5aef140ed314165fef9 | 0f8a33cd80c1c619eca85b256c184a155308e99d | /src/point_cloud_cleaner.cpp | 49b168bef573715b4afdf9d487a37c080d5faca1 | [] | no_license | Moult/stone-drone-robots | ad7da7de21a99e8232b10c26e557b0cbf0c3a532 | 83735e29343971a329f709f467efb95354deb034 | refs/heads/master | 2021-01-10T16:24:35.860115 | 2015-12-14T00:02:56 | 2015-12-14T00:02:56 | 47,295,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,504 | cpp | point_cloud_cleaner.cpp | #include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <MathGeoLib.h>
#include <tr1/functional>
#include <ply.hpp>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
// Disclaimer: I don't know C++
using namespace std::tr1::placeholders;
class Repository
{
public:
static ... |
80836c80b7c6c2905c2eb7537921bbba1577fa4c | f4cf5d8fcc7b59f32e2e92dd445ee0894b19743a | /Code/header/lightsensor.h | 8ac52cfcdd16df07b14bf57b4999e6bef56a1b43 | [] | no_license | laodengtou6/SpaceMaster-FloatSat-2017 | 37f0f0a6241f728a4ff8c09b4066011d351612bf | b4e5ea6d8e0bbf73c4c098a4fce4f96188c66bd3 | refs/heads/master | 2023-04-28T13:52:19.951321 | 2017-12-07T00:46:24 | 2017-12-07T00:46:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | h | lightsensor.h | /*
* lightsensor.h
*
* Created on: 13.12.2016
* Author: Oliver Struckmeier
*
* Old lightsensor h-file for the non thread lightsensor class
*/
#ifndef HEADER_LIGHTSENSOR_H_
#define HEADER_LIGHTSENSOR_H_
#include <rodos.h>
#include "stdint.h"
#include <string>
class LIGHT {
public:... |
525434fc23fb5e581da7fae303d99ad8361be226 | aaca8264af3d742a2e2a88042c51cb38ccc1db0c | /chrono_example.cpp | 830d13cc2474530c14eb5c701c1e89aa60336670 | [] | no_license | sid1980/otus-cpp-basics-hw05 | c40679b84d209b519e3e8cd067fde3ace31bd6da | 69b3909d632e80c6d3eb20956265e962e25b18fa | refs/heads/main | 2023-07-09T15:58:39.350514 | 2021-08-22T00:10:32 | 2021-08-22T00:10:32 | 398,673,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,871 | cpp | chrono_example.cpp | #include <chrono>
#include <iostream>
#include <vector>
#include <algorithm> // std::shuffle
#include <random> // std::default_random_engine
void fill_vector(std::vector<int> &values, size_t count) {
values.resize(count);
for (size_t i = 0; i < count; ++i) {
values[i] = static_cast<int>(i);
}
}
template <typen... |
1b459364d88b5959c63e1de9dab2115fb285dcdf | 11e9fdc832e174c35ee9f678890b319526e506c6 | /PowerPaint/tlswin.cpp | 4d32cda89bbc0ea4b4522451cbed55d98763c052 | [] | no_license | wangdi190/ChengGong | 96a5c9073f8b269cebbdf02e09df2687a40d5cce | ae03dc97c98f5dc7fbdd75a8ba5869f423b83a48 | refs/heads/master | 2020-05-29T09:16:20.922613 | 2016-09-28T08:13:13 | 2016-09-28T08:13:13 | 69,441,767 | 4 | 2 | null | null | null | null | GB18030 | C++ | false | false | 5,597 | cpp | tlswin.cpp | // tlswin.cpp : implementation file
//
#include "stdafx.h"
#include "PowerPaint.h"
#include "tlswin.h"
#include "gdata.h"
#include "comobj.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern gdata dbm;
extern comobj cobj;
extern char *tlstr[];
int hg[]={120,120,1... |
48cd966e140e9ed8a754591a3f17bc5d9b791376 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/rsync/gumtree/rsync_old_log_499.cpp | 0ed3793a9f3918f6c5ce5fa25f5fa73d04f42c47 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80 | cpp | rsync_old_log_499.cpp | fprintf(f,"-T --temp-dir DIR create temporary files in directory DIR\n"); |
306a0172a71da0967a1976db4e1dbee9c86d1cd0 | a4b9122cc3151a73a46d243a3e69af7834309ad9 | /src/Cpp/RessourceManager.cpp | 17214d6cdb43d67403a75d164853916327b8705a | [] | no_license | OdenOfTheNorth/AsteroidsGameFiles | 6e3b1dee32387cfe247914c7ef8ff64dc394d078 | 8399bbb8cc66f9f5a0e34d5a9fd91dbf3c9f1711 | refs/heads/main | 2023-03-18T06:12:48.621632 | 2021-03-14T12:43:25 | 2021-03-14T12:43:25 | 347,617,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | RessourceManager.cpp | #include "RessourceManager.h"
void RessourceManager::RessourceInit(SDL_Renderer* renderer)
{
PlayerTexture = RenderingUtilities::LoadTexture(playerTexturePath, renderer);
AsteroidTexture = RenderingUtilities::LoadTexture(asteroidTexturePath, renderer);
RocketTexture = RenderingUtilities::LoadTexture(rocketTexturePa... |
0face75a519b2dbe6bcbac65468a3eebd114ade8 | f87d9f0d61a21e5207a2b842f01b0e26098b4bda | /Gadgets/Socket_Replay/Socket_Replay/SocketParser.h | 2999a49784a5823890b98ffbcb7014433e81cc35 | [] | no_license | githu86/MTConnectToolbox | 8c982dc477feeb1847531ef59a9638d1d7b6fa7e | 2b5b55d1776dc84f2f4bb103a1875da0ca6bbcec | refs/heads/master | 2023-04-01T18:49:08.072328 | 2020-04-03T16:16:16 | 2020-04-03T16:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,596 | h | SocketParser.h | //
// SocketParser.h
//
/*
* DISCLAIMER:
* This software was produced by the National Institute of Standards
* and Technology (NIST), an agency of the U.S. government, and by statute is
* not subject to copyright in the United States. Recipients of this software
* assume all responsibility associated wi... |
ac71f8915b414a55fd760b789b27fbbd90d71b8e | 9540d166e89b3b8319e913d362de261079f420f5 | /EXERCICIO 1/exercicio 10.cpp | 859f659385db5413549cab1de0e6af94cb3f8d12 | [] | no_license | patrickallan5/Estrutura_De_Dados | 4ffb907372e9cb53e3a2ddb2faf44803ba8660c3 | 8cc5176a2bb6ba1b26ef71d43d7f539c755d41ae | refs/heads/master | 2022-12-31T11:05:53.290584 | 2020-10-21T23:17:09 | 2020-10-21T23:17:09 | 288,864,249 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,235 | cpp | exercicio 10.cpp | /*Em um cinema, certo dia, cada espectador respondeu a um questionário,
que perguntava a sua idade (ID) e a opinião em relação ao filme (OP),
seguindo os seguintes critérios:
OP : 1 otimo, 2 bom, 3 regular, 4ruim
Ao final da pesquisa será indicado quando a idade do usuário for informada
como negativa (idade inexis... |
e93aa8b3443e78bf13b81ca18e5a049eefc41aa4 | 8b4532590d2b643296f0b05c81fcbb3bf8271117 | /1-Coding_Interviews/07-QueueWithTwoStacks/cpp/cqueue.h | a371a8f83f68492fbd97a63f06b0b5902953dcc8 | [] | no_license | Alexkun/to-programming | e0617776e52cff1a004303dae45fb247469800b4 | b4ab572940d6544740cfe7ba26dcd66044d8686e | refs/heads/master | 2020-06-20T00:22:41.893371 | 2017-09-27T03:03:43 | 2017-09-27T03:03:43 | 94,189,152 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | h | cqueue.h | #include <iostream>
#include <stack>
#include <exception>
using namespace std;
template <typename T>
class CQueue
{
public:
void appendTail(const T & element)
{
while(!stack2.empty())
{
T& data = stack2.top();
stack2.pop();
stack1.push(data);
}
stack1.push(element);
}
T deleteHead() throw(std... |
087269598f959276171df387b331ba43cc4e48d1 | 2b7c153b602325204c4906ad1b974091522760a3 | /BankingSystem/SavingsAccount.cpp | a1142c70cc4107ae204a5f5922a5186d89f1378f | [] | no_license | bradbow/inb305 | 947482e7170a6a34023f9c7372de1b1d7344e835 | 242ff38973df11128fe403a6b9bb46430ee85186 | refs/heads/master | 2021-01-20T12:04:58.218179 | 2011-10-15T23:46:22 | 2011-10-15T23:46:22 | 2,553,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,457 | cpp | SavingsAccount.cpp | // SavingsAccount.cpp
// Models a customer credit account and contains
// accessors and mutators for credit account
// information. These include the ability to increment
// and decrement the account balance which may never fall
// below zero
#include "SavingsAccount.h"
#include <boost/lexical_cast.hpp>
// construc... |
285fbdc156685981492be98b44f2f250e2db75e3 | 9594f8af13c7fcacfb2dad07ead7add41a0ba59d | /binary-tree/Leetcode_109.cpp | 89ddd798b54fdb417d6c5a9a4622d7acb91a2382 | [] | no_license | BossChengZhe/Practice-Leetcode | 7a4f11ce78081a088748144145bfdf3636f7cd28 | 22c1cec34d4b706222a2bf0446fba57bedc1f698 | refs/heads/master | 2023-07-25T11:15:13.232001 | 2021-09-05T10:17:41 | 2021-09-05T10:17:41 | 267,491,589 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,799 | cpp | Leetcode_109.cpp | #include "iostream"
#include "vector"
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(next) {}
};
struct TreeNode {
int val;
TreeNode ... |
f88f913e15375868e150595acb4f67a69bb97af6 | 61834cd79b8b314a9d6de3a0425f8dea7ee021b7 | /TestCodes/AtomicSpeedMeasurement.cpp | 5edc300876f1e791c984b72c3731f1b8c76de584 | [] | no_license | brandnewdata/PerformanceNCodeTest | 10be8c4c56ac414b565db82af5cec40d4901c12d | b3773b5a4a8a7dd66982db1945ca989a22b682ec | refs/heads/main | 2023-08-31T12:15:22.119820 | 2021-10-08T09:38:43 | 2021-10-08T09:38:43 | 414,719,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | cpp | AtomicSpeedMeasurement.cpp | #include <atomic>
#include <Windows.h>
#include <iostream>
// 테스트 내용 : atomic과 non atomic의 성능차이 측정
// 테스트 결과 : atomic이 약 50배정도 느리다.
using namespace std;
#define BENCHMARK( name, func, its ) {\
int st = GetTickCount(); \
func( its ); \
printf(" [%s] - %dms\n", name, GetTickCount() - st ); \
}
void testbed_n... |
a1c3fd11ec84253ac050593414fbd1bdb5b450f1 | f1bd4d38d8a279163f472784c1ead12920b70be2 | /xr_3da/xrGame/ActorInput.cpp | 71f38cce4e250cb542fd3030cc1ec3055e0ca4f7 | [] | no_license | YURSHAT/stk_2005 | 49613f4e4a9488ae5e3fd99d2b60fd9c6aca2c83 | b68bbf136688d57740fd9779423459ef5cbfbdbb | refs/heads/master | 2023-04-05T16:08:44.658227 | 2021-04-18T09:08:18 | 2021-04-18T18:35:59 | 361,129,668 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 12,645 | cpp | ActorInput.cpp | #include "stdafx.h"
#include <dinput.h>
#include "Actor.h"
#include "Torch.h"
#include "trade.h"
#include "../CameraBase.h"
#ifdef DEBUG
#include "PHDebug.h"
#endif
#include "hit.h"
#include "PHDestroyable.h"
#include "Car.h"
#include "HudManager.h"
#include "UIGameSP.h"
#include "inventory.h"
#include "level.h"
#inclu... |
56439ecb56c179e1137d2a72f666da8ffe8f5796 | a5e05718b6f8b402141e6cfd963b340c613200bc | /Submodules/mxml/src/mxml/EventSequence.cpp | 4565737b6dbc5ecda798ec102aaf14fb62a62d5a | [
"MIT"
] | permissive | yk81708090/musitkit | 8617699d49da9ddea0dc28897c0f6a0895fac9de | 7d57e4dd3a21df2dc82f6725accdd89a8560d7d2 | refs/heads/master | 2022-04-07T08:23:46.894850 | 2019-12-20T19:25:29 | 2019-12-20T19:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,149 | cpp | EventSequence.cpp | // Copyright © 2016 Venture Media Labs.
//
// This file is part of mxml. The full mxml copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "EventSequence.h"
#include <algorithm>
namespace... |
bbf9e44c818a54864c4466fa48ebb472be6d3ebb | f7e6e53476341f82c5c01c71bba0fcd0e5a1decd | /server.cpp | 5a5ff4126e9e107ea8154d0d5c16d6e73a20ca6d | [] | no_license | pegnovi/COMP3203 | d05396a44b3b602cd6f9004e3968cd922d2ace5d | e279140135cf1cf9e85c4b6f9c3706492d18b317 | refs/heads/master | 2021-01-10T19:05:34.145874 | 2015-08-17T04:04:57 | 2015-08-17T04:04:57 | 24,702,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,411 | cpp | server.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <string.h>
#include <cstdlib>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/types.h>
#include <unistd.h>
using namespace std;
#define SERVER_PORT 5432
#define MAX_PENDING 5
#define MAX_LINE 1... |
a5c3cd90b0deb6900ec340cfc5a22a963400dc50 | 5e19823e200be4e23acca3e4b63c2a9ea52fa4cb | /Firmware/aire_apollo/src/ApolloEncoder.h | 02fd59a2a4807419d12a418480341ff95eb154ba | [] | no_license | balrog-kun/ApolloVentilator | 96e235e044fe9f3414c5b82f3285fbaec74fc97e | 7eecf6ccd98fcf35a0bba1635121ccae2c483a29 | refs/heads/master | 2021-05-19T11:16:33.881912 | 2020-03-31T12:06:31 | 2020-03-31T16:52:08 | 251,669,288 | 0 | 0 | null | 2020-03-31T16:49:04 | 2020-03-31T16:49:04 | null | UTF-8 | C++ | false | false | 635 | h | ApolloEncoder.h | #ifndef ENCODER_H
#define ENCODER_H
#define LATCHSTATE 3
#include "../lib/Encoder-1.4.1/Encoder.h"
class ApolloEncoder : public Encoder
{
public:
ApolloEncoder(uint8_t pinDT, uint8_t pinCLK, uint8_t pinSW) : Encoder(pinDT, pinCLK)
{
_pulsador = pinSW;
};
bool readButton();
bool swapValue(in... |
2a6b38654a07c68b5d2c0c54acd597e7c0b49260 | 38bf4953d979b301efa8dbad62feac9d4768e543 | /primes/sieve.cpp | 19a19a80fd504b284ef9ca140e90c7285a6665f4 | [] | no_license | Jaxan/parallel-algorithms | 69855fb5ac3f0807334718080e417b5beb10076e | 3bda4e13640649c3d3a0ff33f16b94e94dc4456e | refs/heads/master | 2020-12-30T10:12:35.386245 | 2014-01-20T19:36:48 | 2014-01-20T19:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,263 | cpp | sieve.cpp | #include <cstdlib>
#include <cstdio>
#include <iostream>
#include <vector>
#include <cassert>
#include <cmath>
#include <time.h>
struct options_t {
int n;
bool use_twins;
bool output_list;
bool test_goldbach;
} options;
int main(int argc, char **argv){
options.n = (argc > 1) ? std::atoi(argv[1]) : 1000;
option... |
4acc15ead960c7034bf6bdfc825c0fd67b187c32 | b750a42b4085bff7ab66322cd7f50750a98a2cd7 | /trajectory.h | 4dfecb48f0a2a9da6604dbda7a4ac860db76dc54 | [] | no_license | agungmini/swarmGUI | d542e2e12e22aeb448f9540035b227cc3e39fee3 | 2e8ba06c7bd9a21ef5fa8df53f1c2a1e58c9841f | refs/heads/master | 2022-07-05T22:45:46.642670 | 2020-05-14T13:54:23 | 2020-05-14T13:54:23 | 260,999,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | h | trajectory.h | #ifndef TRAJECTORY_H
#define TRAJECTORY_H
#include <QWidget>
#include <qcustomplot.h>
#include <QFile>
#include <QTextStream>
#include <QDir>
#include <iostream>
namespace Ui {
class trajectory;
}
class trajectory : public QWidget
{
Q_OBJECT
public:
explicit trajectory(QWidget *parent = nullptr);
~traje... |
3cd49b77e12e1a95aa5ebb14f0c60f1aa64670e2 | 6bc82e4e6433ffad07e2f70e6c4c0c94c673e48a | /src/CameraSample/rc_genicam_api/imagelist.cc | 3f517dd3c4cbbec576ac71cc2054b8f4ef279d27 | [
"BSD-2-Clause"
] | permissive | fastvideo/gpu-camera-sample | 643673c221c70767a4628e4c458c005317531924 | e0f6fd1f1c9d281be8bae78391bbde631294b6d4 | refs/heads/master | 2023-08-14T06:42:00.663407 | 2023-07-25T10:11:39 | 2023-07-25T10:11:39 | 224,174,376 | 285 | 55 | NOASSERTION | 2021-05-23T19:57:54 | 2019-11-26T11:20:18 | C++ | UTF-8 | C++ | false | false | 3,256 | cc | imagelist.cc | /*
* This file is part of the rc_genicam_api package.
*
* Copyright (c) 2017 Roboception GmbH
* All rights reserved
*
* Author: Heiko Hirschmueller
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redis... |
769f3013958e3e82425a350f5b458dd544c4024a | f6ef1f50a476c3ed58b4f268feb6fb438996f06a | /有OJ/刷题指南(包含leetcode, POJ, PAT等)/POJ-2/problems/1130AlienSecurity.cpp | be33f09be1559479f66ff9602039f2de4a7bb0d9 | [] | no_license | February13/OJ_Guide | f9d6c72fc2863f5b6f3ad80b0d6c68b51f9a07db | a190942fae29a0dbee306adc81ee245be7fda44a | refs/heads/master | 2020-04-25T09:01:48.458939 | 2018-01-18T08:31:30 | 2018-01-18T08:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,138 | cpp | 1130AlienSecurity.cpp | #include<queue>
#include<iostream>
#include<vector>
#include<string.h>
using namespace std;
int n,e;
vector<vector<int> > g;
vector<vector<int> > rg;
vector<int> dist;
vector<int> vis;
void dfs(int u){
if(vis[u]) return;
vis[u] = 1;
for(int i=0;i<g[u].size();i++)
dfs(g[u][i]);
}
bool check(int i){
... |
46534220eb1ca8ba3406dcba71eebf4909871da6 | 5d31e16d91827369634ee2478d06e514a2c15f1c | /scratchpad/CopernicusTSIP/CopernicusTSIP.ino | 8ae14933421c916a147d53efec06e6d1acae2b8b | [
"MIT"
] | permissive | AdlerFarHorizons/GpsDevices | 07f4981b2213e575e03e0bcf9735cec62c1c6760 | 7eadcc9ebd4bfab87d9d40db4a821cf40f55a1b9 | refs/heads/master | 2021-01-18T14:02:43.333384 | 2018-04-08T17:42:49 | 2018-04-08T17:42:49 | 20,674,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,396 | ino | CopernicusTSIP.ino | /*
TTY TSIP I/O for Trimble's Copernicus II GPS module.
Connected to Arduino per the schematic
"CopernicusBasicTestCircuit".
Far Horizons Lab
June 2014
*/
/*
NOTES:
Serial baud rate change is limited to 38400 for sake of AltSoftwareSerial on Arduino UNO.
It can't handle anything faster. Not tested on... |
2c56c577421ad0009a910a6062dd7a1730e25d6c | 109f316138b6e359fcb9c60bd376fb0f3f42bd5d | /aaaa.cpp | e3cca3e99677937b0668632b38361356b5cc1492 | [] | no_license | DominikZawadzkii/da | 3fb945fc99bb182f53d46c06c32f4c2989f7d4a9 | be44b5eacc5fcbded8c574651e39462373efeca2 | refs/heads/master | 2022-08-02T19:58:45.979170 | 2020-05-20T08:56:15 | 2020-05-20T08:56:15 | 265,506,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | aaaa.cpp | #include <iostream>
#include <fstream>
using namespace std;
int t[1000] ;
for ( int i = 0; i <1000 i++) {
if (zmienna == t[i] )
return false;
else return true;
}
int main ()
{
ifstream wej;
ofstream wyj;
wej.open("wej.txt");
wyj.open("wyj.txt");
int licznik = 0;
if (wejscie.good()){
whi... |
3652531d9b0725f1953daca11ec878692191a0fa | 9af742eed28e85cf25affae8c0de5a58bf681df8 | /Client/Client/PlaySound1.h | 709ef60f3586c65a44c04d1d2e5c6c4fe23cbb2b | [] | no_license | Erls-Corporation/VoiceChatWindows | 8d9e77cdfb0741c14ba34c27c8666253b7202c39 | 818d5f7a5fe24e029797c7cc0e85c0024af4f7ff | refs/heads/master | 2016-09-10T17:26:28.942282 | 2014-03-04T11:24:34 | 2014-03-04T11:24:34 | 17,399,722 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,570 | h | PlaySound1.h | /// PlaySound1.h: interface for the PlaySound1 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PlaySound1_H__EA26EF42_4169_11D6_8886_F00753C10001__INCLUDED_)
#define AFX_PlaySound1_H__EA26EF42_4169_11D6_8886_F00753C10001__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#en... |
fe86ea52060a4c420da249247c0f084b2e97021f | 7bce8fa45a4ff17ef1f7a5b5bda9fd54e4c0d2f2 | /PhysicsEngine/source/Physics/Object.cpp | 98a138160c101fd8a0193494fd1036158107151e | [
"MIT"
] | permissive | Kaizen5000/PhysicsEngine | ecc19a51002d80aa9a9cf700c6706c2d72a3fa1e | 11125ffbee7c497a00727b068be7ecaff67ba031 | refs/heads/master | 2020-03-16T13:06:11.003645 | 2018-05-24T13:11:47 | 2018-05-24T13:11:47 | 132,681,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,919 | cpp | Object.cpp | #include "Physics/Object.h"
#include "Physics/Sphere.h"
#include "Physics/Plane.h"
#include "Physics/AABB.h"
#include "Gizmos.h"
#include <glm/geometric.hpp>
using namespace Physics;
using glm::vec3;
// Constructor
Physics::Object::Object(ShapeType shape, vec3 pos, float mass, vec4 color, bool isStatic) :
m_shape (sh... |
36e52486d8750c254be50ba4dcdb5d2afc0c59de | 04b886bcb4eae8b4cd656b2917a82a13067ca2b7 | /src/cpp/oclint/oclint-rules/rules/custom2/FunctionReceivesAnOddArgumentRule.cpp | 6e106a47c4a361cf37c6295cd89c299e5f547b6b | [
"BSD-3-Clause"
] | permissive | terryhu08/MachingLearning | 4d01ba9c72e931a82db0992ea58ad1bd425f1544 | 45ccc79ee906e072bb40552c211579e2c677f459 | refs/heads/master | 2021-09-16T01:38:10.364942 | 2018-06-14T13:45:39 | 2018-06-14T13:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,732 | cpp | FunctionReceivesAnOddArgumentRule.cpp | #include "oclint/AbstractASTVisitorRule.h"
#include "oclint/RuleSet.h"
using namespace std;
using namespace clang;
using namespace oclint;
class FunctionReceivesAnOddArgumentRule : public AbstractASTVisitorRule<FunctionReceivesAnOddArgumentRule>
{
public:
virtual const string name() const override
{
r... |
8c4ca5507e1d9dbc76e04e26e1b73fa2cffa05e6 | 49ba7d71174e9a3843c63f2d8cddb5288afa73d1 | /libraries/Hellschreiber/Hellschreiber.h | e98f5bfdab6d3cfc79617635cc74ddb316ded2c5 | [] | no_license | martinw89/SSDC-HAB | 630352e6b96cf33f7116e7bfeb7b9275bb609fc5 | ab944b27a4766898dc954e68f7a6a1fc62add886 | refs/heads/master | 2020-05-19T11:56:56.050581 | 2013-03-19T22:14:23 | 2013-03-19T22:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,831 | h | Hellschreiber.h | #ifndef Hellschreiber_h
#define Hellschreiber_h
#include "Arduino.h"
#define A 0b0111111010011111
#define B 0b0010101010111111
#define C 0b0100011000101110
#define D 0b0011101000111111
#define E 0b0100011010111111
#define FF 0b0100001010011111
#define G 0b0100111000101110
#def... |
598a141da112ae5763767201bb4c01bdcad528bd | 8e31b21b19f39613751d27598be31a1cde318777 | /TexasHoldem/Administrador.h | d872c55fc94963cbddf039c25135f4221ac0ce00 | [] | no_license | julianx2rl/Poker | 90247b6a31dfd1204bb7ee7a4b752e6f6492838e | b85c6c95fe0c7a2dea40a22092811e9bb046a986 | refs/heads/master | 2021-01-21T13:53:17.842356 | 2016-05-26T00:34:39 | 2016-05-26T00:34:39 | 55,553,652 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,938 | h | Administrador.h |
/**
* @file Administrador.h
* @version 1.0
* @date 07/05/2016
* @author GrupoProgra: Julian Arguedas Torres B50587 - Milton Delgado Fernandez B12188 - Kenneth Walker Fernandez B37663
* @title Clase Administrador
* @brief Controla la simulacion del poker
*/
#pragma once
#include "Jugador.h"
#include "Carta.h"
#include... |
f864a6555bdadcf430a472d34675fffbfab57767 | 8e59ba2835b0a81c20541643e82b3fc77998ac6e | /PointGroupOld/GroupPointsEM.cpp | 9330946395d1ef266b92e9458d5e4c72acbf7bb2 | [] | no_license | toshirokubota/straight_polygon_grouping_V2 | aa33a52a528ca73d04b99c7273ea0bec1fd4b2e4 | 948065188aa3ef12940bb5539f9498ef85f98f05 | refs/heads/master | 2021-01-10T01:57:13.976860 | 2016-03-10T12:21:39 | 2016-03-10T12:21:39 | 36,931,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,093 | cpp | GroupPointsEM.cpp | /*
This routine implements grouping of moving points.
*/
#include <iostream>
#include <fstream>
using namespace std;
#include <mytype.h>
#include <ImageProc.h>
#include <Feature.h>
#include <Convolve.h>
#include <Gradient.h>
#include <Misc.h>
#include <Draw.h>
#include <stdlib.h>
#include <math.h>
... |
1673f14948e8bedfedecc85e9652bbfa2361fc6e | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2018 autumn/NOIP/NOIP2018提高组Day1程序包/GD-Senior/answers/GD-0047/track/track.cpp | 2441748cb23515f4a37e30daa1b9f7bc55706583 | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 483 | cpp | track.cpp | #include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<vector>
#include<queue>
#include<set>
using namespace std;
struct pic{int tonl,w;}treee[50005];
int n,m;
vector<pic> q[50005];
int main()
{
freopen("track.in","r",stdin);
freopen("track.out","w",stdout);
cin>>n>>m;int ... |
acdec3f107672aad9e862650d83fd1e35d28e868 | baf873c32d8c86b71cf50d59721e8cc3db345942 | /Game/Enemy.cpp | 289decd959bf1db8c6602340c52454596278ee12 | [] | no_license | mrDIMAS/src | 6f1e0a4176e281c22d03e6766cc2719363f59e78 | cd4d0f7070359086993d544b8bea7c764f2f6d6f | refs/heads/master | 2020-04-12T01:36:42.369525 | 2016-12-17T20:20:24 | 2016-12-17T20:20:24 | 25,090,851 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,130 | cpp | Enemy.cpp | #include "Precompiled.h"
#include "Gate.h"
#include "Enemy.h"
#include "Menu.h"
#include "Door.h"
#include "Level.h"
Enemy::Enemy(unique_ptr<Game> & game, const vector<shared_ptr<GraphVertex>> & path, const vector<shared_ptr<GraphVertex>> & patrol) :
Actor(game, 0.5f, 0.25f),
mHitDistance(1.3),
mCurrentPatrolPoint(... |
ea8c02af7b4cb7070841adf3233c38334f8ec495 | d7e7ce7d4550b94f830df968e3c9ddbc347529c3 | /UVA10222.cpp | 1e8e273cb9c518735003905fc0faf10d7b396ac6 | [] | no_license | k840304/UVa | 0d9e87e3dd27fd1cb67093b7339b0cd7efde5a30 | e9c98772126b91b7ef8f6b03debe3d39938572d5 | refs/heads/master | 2021-07-19T19:05:08.399739 | 2017-10-24T08:49:18 | 2017-10-24T08:49:18 | 108,100,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | cpp | UVA10222.cpp | #include<stdio.h>
main(){
int i;
char c,keyboard[48] = "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";
while((c=getchar())>0){
if(c==' '||c=='\n'){
putchar(c);
continue;
}
for(i=0;c!=keyboard[i];i++);
printf("%c",keyboard[i-2]);
}
return 0;
}
|
7f999d3007f5cb27e924ea2483033fd5e2ff6bfd | 2c1125daddf54322ecb286e84fd7542f5715690c | /stcp_socket_tcp.h | eb0b6a20ba955b921098319bf43b6a530a96d6ad | [] | no_license | after1990s/stcp | d7c405fb2ff76d2b7ab38d4ad3ccf62f32b57c26 | 37819e1f9fcd07d97a69b56c4fa6fe21198c349f | refs/heads/master | 2021-01-10T14:55:04.512130 | 2016-03-14T07:28:02 | 2016-03-14T07:28:02 | 51,048,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | h | stcp_socket_tcp.h | #ifndef __STCP_SOCKET_TCP_H
#define __STCP_SOCKET_TCP_H
#include "stcp_socket_base.h"
class stcp_socket_tcp: public stcp_socket_base
{
public:
stcp_socket_tcp ();
virtual ~stcp_socket_tcp();
virtual int bind(const struct sockaddr * addr, int addrlen) override;
virtual int listen(int backlog) override;
virtu... |
21913400473b479d2c4cf54ffe0fd17147acd6a2 | 583318dcc75237d74ed25b0394d37299d303c0df | /LQAnalysis/80X/Analyzers/ApprovedAnalyses/include/HNDiMuonOptimisation.h | a203190510b9355f3129c7f752cf9553b3261851 | [] | no_license | jalmond/LQanalyzer | 7457096ad8a90cb6e7a14e28170338c1de06cdec | 06292f3a4b46e8a00d72025ff968df1b61bc990e | refs/heads/CatAnalyzer_13TeV | 2020-04-04T07:16:53.746743 | 2018-12-07T00:08:37 | 2018-12-07T00:08:37 | 13,470,313 | 1 | 14 | null | 2018-11-12T09:55:34 | 2013-10-10T12:14:06 | C++ | UTF-8 | C++ | false | false | 1,925 | h | HNDiMuonOptimisation.h | #ifndef HNDiMuonOptimisation_h
#define HNDiMuonOptimisation_h
#include "AnalyzerCore.h"
class HNDiMuonOptimisation : public AnalyzerCore {
public:
//// constructors ... |
6e3bc58f285842bcbab11053f2533e3ce300964f | 5e225be17a94110d5f9fe69d7b8ffe4f783e43b5 | /Qt5.9C++/QT5.9Samp/chap06Forms/samp6_4MDI/release/qrc_res.cpp | 348cbb75602412b58e03c462d01e95a74a7fdb19 | [] | no_license | zlocker/QtBookCode | e872bc7c3aba2948f5b7da095741d224d1cddf6c | 3df1964556fbbe890d112c646dcb48e4e8dbff66 | refs/heads/master | 2020-11-27T12:07:49.161414 | 2019-12-23T12:18:00 | 2019-12-23T12:18:00 | 229,431,716 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,689 | cpp | qrc_res.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.9.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
2ee709749c038f6b8271b912cc23b4c51e1e795d | 97e0a4bba7bea5689a20d019f5523d5407bc606a | /CompCoding/HackerRank/search/sherlockAndArray.cpp | cd2a127a9b1eee3ef8b84ddb5a91d1223241d737 | [] | no_license | rathore-rahul/Coding-Practice | a5fef06edaf500f337073b930b973c03ca5b5228 | 168320bb089304fb377e94053214b1aeaa80cef9 | refs/heads/master | 2020-11-24T19:00:40.241253 | 2019-12-16T04:20:09 | 2019-12-16T04:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | sherlockAndArray.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define rep(i,n) for(int i = 0; i < n ;i++)
int main() {
int t,n;
cin>>t;
while(t--){
cin>>n;
vector<int> val(n);
rep(i,n){
cin>>val[i];
if(i !... |
efd704edc332c8aef29e5065d21127b63bce83d0 | 49fbb855094bd1fc93ec7fddaec0296858474c15 | /KinectPictureSynthesis/MFC类/picture10/picture8/picture8Dlg.h | 82a10899192bc4f8a1c5a6244e73aae70d3b7060 | [] | no_license | TastSong/KinectPictureSynthesis | 714c8fe81b7507349c0eba8977c15871f22a53dd | 56a5fb2350fac4fcc7873ae45928d02c51eedc6f | refs/heads/master | 2021-08-22T23:12:45.339762 | 2017-12-01T15:22:23 | 2017-12-01T15:22:23 | 112,754,723 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,048 | h | picture8Dlg.h |
// picture8Dlg.h : 头文件
//
#pragma once
#include "Dlg2.h" //将二级窗口的头文件包括进来
#include <Kinect.h>
#include "MouseControl.h"
#include "include.h"
// Cpicture8Dlg 对话框
class Cpicture8Dlg : public CDialogEx
{
// 构造
public:
Cpicture8Dlg(CWnd* pParent = NULL); // 标准构造函数
int isPrint; //标记是否进入打印模式
//Dlg2 *myDlg; //创建二级窗口的... |
09504fd64cbf849ccca1e2d0604c9114d0d8f5ad | 9b21d5b495a5318f349eab3c7c8c6e979fc5b77a | /Hackerrank/ll_binary.cpp | bc8d621ea0996d0a1064f3ae7c3fa83b29229673 | [] | no_license | raokartikkumar24/CodingCompetition | 95c52f916e624ec553ed6b7666f1478269c89cb1 | 3b77f72b81d833ed56f304e5cbac70fed27da5b3 | refs/heads/master | 2021-06-03T15:35:24.314843 | 2020-09-29T07:33:39 | 2020-09-29T07:33:39 | 23,706,876 | 1 | 1 | null | 2015-07-06T11:33:39 | 2014-09-05T14:55:44 | C++ | UTF-8 | C++ | false | false | 796 | cpp | ll_binary.cpp | long long getNumber(Node *head) {
int count = 0;
long long number = 0;
Node *temp = head;
while( head )
{
count++;
head = head->next;
}
if( count == 1 ) {
if( temp->data == 0)
return 0;
else
return 2;
}... |
196696a5557a72083b0449c31df10ed0cfcccbda | fb8178de6cc8ff4245842e1cd4edbe4ce52b557b | /pessoa_e_cadastro/src/main.cpp | 59f0125307c340e6101600d972da088547418529 | [] | no_license | Renato-GS/LP1-2021.2-Lista2 | 523bb02a126ab138b85ef1cc42aea8a6c151a054 | f472fe85794134cea45df956a5d6b778a5cf930d | refs/heads/main | 2023-09-03T01:57:19.112243 | 2021-11-08T23:51:32 | 2021-11-08T23:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | main.cpp |
#include "Pessoa.hpp"
#include "Cadastro.hpp"
int main(){
//TODO: seu programa
return EXIT_SUCCESS;
} |
26bc1b68bce6286ee093a487af38b62f6a6ca596 | 0532e09d56b586ab10fbb623c0386994e40ab87d | /Professional C++, 5th Edition/Code/c01_code/28_References/03_ReferenceParameters.cpp | 2cce5775c34f9bc0ced0de11c2864eaf1171cf12 | [] | no_license | chosungmann/book-examples | fae7245e8071f1326033971d0c108b61c7739f2f | 368597886374131856aff3ea819dd5432a8de27b | refs/heads/main | 2023-07-19T18:58:21.009598 | 2023-07-17T07:24:52 | 2023-07-17T07:24:52 | 115,195,777 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | 03_ReferenceParameters.cpp | void addOneA(int i)
{
i++; // Has no real effect because this is a copy of the original
}
void addOneB(int& i)
{
i++; // Actually changes the original variable
}
void swap(int& first, int& second)
{
int temp{ first };
first = second;
second = temp;
}
int main()
{
int myInt{ 7 };
addOneA(myInt);
addOneB(myI... |
71aa22be998cf34d060c389f90f6c2aa6bb824f4 | 8a0811f7aa3a71f9d6aaa4bfd601a575aa9858d6 | /infomaintaindlg.cpp | 8d18c596df171f1fb4a9fd5706c4fa0334b1b687 | [] | no_license | mkw18/Crowdsourcing-translation-platform | cef05ecdc58fa750eb78a90d256cdf34a2c1790b | e5d142871982dcdef45a2485fb11c2b836ef821a | refs/heads/master | 2022-11-18T22:55:45.784856 | 2020-07-22T13:37:26 | 2020-07-22T13:37:26 | 281,687,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,780 | cpp | infomaintaindlg.cpp | /**********************************************************************************************************************
【文件名】 infomaintaindlg.cpp
【功能模块和目的】 InfoMaintaindlg类中成员函数的实现, 包括槽函数、接口函数
【开发者及日期】 门恺文2019.7.24
【更改记录】
**********... |
02413736f83bfa606ebd1ab21625a86c2e07e252 | be62ca7d0fc62cd8d1b8a54ffe7050b2d80ba16c | /UnitTest7.1ab/UnitTest7.1ab.cpp | 3ff485d440f6277b34bb8f78c0f9057706a384b6 | [] | no_license | Senichkaa/laboratorna-7.2 | b7485f945611ad15574fee5843b7eecb79872d0f | 9419defabd1051d36a8ec2bb5c770567e863b103 | refs/heads/main | 2023-08-29T17:30:13.208278 | 2021-11-16T14:48:24 | 2021-11-16T14:48:24 | 428,676,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | UnitTest7.1ab.cpp | #include "pch.h"
#include "CppUnitTest.h"
#include "..\pr.7.1ab\Source.cpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest71ab
{
TEST_CLASS(UnitTest71ab)
{
public:
TEST_METHOD(TestMethod1)
{
int** tArr = new int* [2];
for (int i = 0; i < 2;) tArr[i++] ... |
02ed1cbdd921d6ba582d7730ff7841bd7e261bb9 | 55fd6d3a6a53f9e9a124a9d3a16eb6a9e412c705 | /warshipsBoard.h | 6e1f93711bf20e2f8abde8e340d598d4ddcf9133 | [] | no_license | is108/Warships | 031210c2420632c771f8df8bfa73f03dc72dcd26 | ad65c442c733cd698408ccb2cbfcaec5ea9fdafe | refs/heads/master | 2020-03-25T19:45:58.368535 | 2018-08-09T04:25:27 | 2018-08-09T04:25:27 | 144,099,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | h | warshipsBoard.h | #pragma once
#include "player.h"
class warshipsBoard
{
int axisx[10];
int axisy[10];
Player index;
public:
char tab[10][10];
warshipsBoard();
void initAxis();
void addElements();
void printGame();
};
|
d537c9c1aa4b4f8b7aa54edb5ea69b5103edadb7 | f9e55f7fc2db89721e442856ba115b18d812a9e8 | /src/Scene/CubeMap.h | d3255bc15a61648f7706e52a663adf547b6b0671 | [
"MIT"
] | permissive | Jannled/J3ngine | 09932bea41bd6e3671c0d8bba2580118aff01a86 | b0a0484aa42baedc057082718e54b61b52ea1fb8 | refs/heads/master | 2021-07-14T12:50:04.940535 | 2020-07-12T17:21:38 | 2020-07-12T17:21:38 | 231,934,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | h | CubeMap.h | #ifndef CUBEMAP_H
#define CUBEMAP_H
#include "lib/Galogen46.h"
#include "Scene/Camera/Camera.h"
#include "Shader/ShaderProgram.h"
class CubeMap
{
public:
CubeMap(const char* path);
virtual ~CubeMap();
void renderCube();
void renderQuad();
void renderSkybox(Camera& camera);
static ShaderProgram* equirec... |
419196d4ee17cc0fac414235715df780e6b3cf61 | 2106025cd4b5242f7ef40882beae94215c6ae6f6 | /drafts/initcpp.cpp | 6a2eca05ede26b4c5544bd33512c3862d9bc801f | [] | no_license | avinash625/CodingProblems | 9ce70ec05ff69acfa66b1405928bb34094248f44 | ea2ee37be5e7f0d780b1b384af187eadfe14c982 | refs/heads/master | 2020-12-03T11:03:14.649009 | 2020-08-30T17:46:49 | 2020-08-30T17:46:49 | 66,480,637 | 2 | 1 | null | 2017-02-22T14:43:15 | 2016-08-24T16:27:34 | C++ | UTF-8 | C++ | false | false | 2,223 | cpp | initcpp.cpp | /*
"author" : "avinash bondalapati"
"date" : "26-08-2017"
"language" : "c++"
*/
#include<iostream>
#include<stdlib.h>
#include<memory.h>
#include<math.h>
#include<limits.h>
#include<cstdint>
#include<string>
#include<map>
#include<unordered_map>
#include<set>
#include<unordered_set>
#include<vector>
#include<stack>
#... |
c58f31fb491400e4b92d4ac58c0983e48e767e80 | f55e86402f710d854a7520554a653a64ffcea387 | /cpp/linked_list.h | 7dc7f6d0df00f4ea4f3ad1b9327bf6fedf69c238 | [] | no_license | sinclairtarget/algorithms | 5aea8dda33960aa0159ac2b3069e7070a04fa62e | 1cd9fb56ed284d83d58ed48ba6edfc721a6a8c03 | refs/heads/master | 2021-01-23T06:45:23.742815 | 2017-06-02T18:58:11 | 2017-06-02T18:58:11 | 86,398,258 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | h | linked_list.h | #ifndef LINKED_LIST_H
#define LINKED_LIST_H
#include <string>
using std::string;
template <typename T>
class ListNode
{
public:
explicit ListNode(T val) :
mStoredValue(val),
mNext(nullptr) {}
explicit ListNode(T val, ListNode* next) :
mStoredValue(val),
mNext(next) {}
... |
fd2cd674929c0d1cbba5823d9357d1b393619be5 | ba7da205636d14fdb4bf2743083ba298c2c1e523 | /src/storage/istorage.h | 21b5749c05e591a485b540bea6559e5e2e3c1fd6 | [] | no_license | abbat/avalon | 732cf54090b2705026dfae2866fad907c377fc01 | b8bff997d9de6a5187177b4afd44bcd182aef5ec | refs/heads/master | 2023-02-02T20:26:44.855279 | 2023-01-08T08:11:06 | 2023-01-08T08:11:06 | 31,868,126 | 3 | 1 | null | 2023-01-08T07:21:12 | 2015-03-08T22:22:13 | C++ | UTF-8 | C++ | false | false | 20,158 | h | istorage.h | /*!
* \file
* \brief Интерфейс для работы с хранилищем данных
*/
#ifndef _avalon_istorage_h_
#define _avalon_istorage_h_
#include "model/all.h"
#include "iprogress.h"
#include "database_error.h"
/*!
* \brief Типы множеств для групповой обработки (см. IAStorage::setIDsAsRead и IAStorage::unsubscribe).
*/
typedef... |
0e7259ebacf63454128fce67b9e37822c8f07d28 | c68f791005359cfec81af712aae0276c70b512b0 | /September Challenge 2016/longseq.cpp | 528f5e05f51b32b622c824d729bd0bd31e58f501 | [] | no_license | luqmanarifin/cp | 83b3435ba2fdd7e4a9db33ab47c409adb088eb90 | 08c2d6b6dd8c4eb80278ec34dc64fd4db5878f9f | refs/heads/master | 2022-10-16T14:30:09.683632 | 2022-10-08T20:35:42 | 2022-10-08T20:35:42 | 51,346,488 | 106 | 46 | null | 2017-04-16T11:06:18 | 2016-02-09T04:26:58 | C++ | UTF-8 | C++ | false | false | 443 | cpp | longseq.cpp | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
char s[N];
int main() {
int t;
scanf("%d", &t);
while (t--) {
scanf("%s", s);
int n = strlen(s);
int nol = 0, one = 0;
for (int i = 0; i < n; i++) {
if (s[i] == '0') {
nol++;
} else {
one++;
... |
4c75ebac3264d62c796800018f70155c4a78e414 | b3e525a3c48800303019adac8f9079109c88004e | /storage/offload/src/drv/test/gtests/pnso_global_ut.hpp | 09acc608b6cf0879b085e439c6772cda37a340d2 | [
"BSD-3-Clause"
] | permissive | 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 | 822 | hpp | pnso_global_ut.hpp | /*
* {C} Copyright 2018 Pensando Systems Inc.
* All rights reserved.
*
*/
#ifndef __PNSO_GLOBAL_UT_H__
#define __PNSO_GLOBAL_UT_H__
/*
* NOTE:
* Some or most of the UTs may appear to be repeatitive with minor changes
* and thereby the functions may be long, and this is deliberate for the
* following reasons... |
0f80be28a741e618e3e07499d30b7600b6ee90c3 | ce6a345839b568440c35dcd30c5a78f3af146896 | /topic08/A/main.cpp | fd29a6abdeeeb4f4eb441378564522fa67d34cca | [] | no_license | Luzhiled/ALDS | 69a25b53f483880828fac93e0b46416d7b3a6679 | 0443dbb4c35248a2872835c289d9b6ee1a454aa7 | refs/heads/master | 2023-03-05T04:02:15.496805 | 2021-02-02T10:14:02 | 2021-02-02T10:14:02 | 335,242,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,099 | cpp | main.cpp | #include <iostream>
#include <array>
#include <vector>
#include <string>
struct NodeBase {
NodeBase *l, *r, *p;
int key;
NodeBase() { l = r = p = nullptr; }
NodeBase(int key) : key(key) { l = r = p = nullptr; }
void set_key(int k) {
key = k;
}
};
template< typename Node, std::size_t ... |
676a3cd4a961a030ffb5f39358ce423fd3a4964c | c8fcc1acf73585045a5c7213cfb9f90e4c1e809e | /HDU/3047.cpp | 38b07bceb5b8d00596587ca8fc8d1c71321cba28 | [] | no_license | Jonariguez/ACM_Code | 6db4396b20d0b0aeef30e4d47b51fb5e3ec48e03 | 465a11746d577197772f64aa11209eebd5bfcdd3 | refs/heads/master | 2020-03-24T07:09:53.482953 | 2018-11-19T09:21:33 | 2018-11-19T09:21:33 | 142,554,816 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 973 | cpp | 3047.cpp | /****************
*PID:hdu3047
*Auth:Jonariguez
*****************
和座位是环状的没有关系,没有影响
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long LL;
const int maxn=50000+10;
LL par[maxn],rel[maxn],n,m;
void Init(){
for(LL i=0;i<=n;i++){
... |
6a1d4d3535c61e387664d0ed6d58e0dadfc7f70b | a2153a949214de1fa3009972a74b09ed0b80bda0 | /heapSort.cpp | 6c4154f646796ee1fefc04f2dbfc1411151d5beb | [] | no_license | msk4862/Algos | 0d93c42b874eaad3d03888939ed47ee155c68440 | 6a931ec5c0513cd16fa92b296850c8ed01de760c | refs/heads/master | 2020-03-18T23:35:59.915292 | 2018-05-30T08:36:31 | 2018-05-30T08:36:31 | 135,413,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,604 | cpp | heapSort.cpp | #include<iostream>
using namespace std;
void maxHeapify(int a[], int i, int s) {
int temp, largeI, left, right;
largeI = i;
if(i >= (s/2)) {
return;
}
left = 2*i+1;
right = 2*i+2;
if(right < s) {
if(a[left] > a[right]) {
... |
a5a8af2df7f47584238b31bf7108134760e6f76e | ed84417478eb8e58eef53b6cf8f28976fa8d4d7a | /camera.h | a61ade44046d008905d40c1f8ea1493190e9ee84 | [] | no_license | Foxclip/GLFWTest | 7904e3eb40619fa470b557ec5cee7cf7f0bb4710 | d01bd7c7f2f62960f387b9e5c46366fb925b7706 | refs/heads/master | 2021-05-05T16:37:09.399882 | 2018-02-07T10:50:38 | 2018-02-07T10:50:38 | 117,361,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,522 | h | camera.h | #pragma once
#include <glad/glad.h>
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
const float D_YAW = -90.0f;
const float D_PITCH = 0.0f;
const float D_SLOW_SPEED = 4.0f;
const float D_FAST_SPEED = D_SLOW_SPEED * 4.0f;
const float D_SENSITIVITY = 0.1f;
const float D_FOV = 60.0f;
enum Direction {
... |
87c9dcc7fa7945ea64aa3d6c56666cabf763c895 | 2e25a9b165490a525697cc2139d5808cff6f3b06 | /vehinh/tron.h | 993f53b52722c5b0c1e709794ba2f5fc541687a7 | [] | no_license | truongthihuonggiang/mfc_paint_nhom1CNTTK17 | 2b1c59b06e7a9f3c85e8ad1b059ace7b999bcbf1 | 64d2a930e40c40cee6cfd7ea49f82fed278f7335 | refs/heads/master | 2020-08-02T07:50:53.479412 | 2019-09-27T09:24:04 | 2019-09-27T09:24:04 | 211,280,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | h | tron.h | #pragma once
#include "hinh.h"
class tron :
public hinh
{
private:
int x,y;
int S,P;
int r;
public:
tron(CPoint p1, CPoint p2);
//float chuvi();
//float dientich();
void draw(CClientDC *pdc);
tron(void);
~tron(void);
};
|
21aeb307dd3e4d627c48edd5fdc7242025ea3db3 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_repos_function_6140_git-2.8.2.cpp | 9aa10dde10e89cfe40409769165166234e24298f | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 147 | cpp | git_repos_function_6140_git-2.8.2.cpp | char *strdup(const char *s1)
{
char *s2 = 0;
if (s1) {
size_t len = strlen(s1) + 1;
s2 = malloc(len);
memcpy(s2, s1, len);
}
return s2;
} |
1341893612425d7b324e17225ae99b1f0ec59d10 | ab32cbf7be3dca3421015057f35c365ec763bb9e | /lib/ProjGaia/Tools/Observer.h | 56f89d99ff2a947f13826531492ff5fcd166296d | [] | no_license | ebonywolf/AgentesCataLixo | 39eeae91214a99be9e4b85ece597defeaf178717 | 602ee3067c2ffbdb7fa8808c53928dda5afa7c77 | refs/heads/master | 2021-01-21T13:57:00.560903 | 2015-05-18T01:35:37 | 2015-05-18T01:35:37 | 35,678,361 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,166 | h | Observer.h |
#ifndef OBSERVER_H
#define OBSERVER_H
#include "Listener.h"
#include <list>
namespace pg
{
template<class Tipo>
class Observer
{
public:
virtual void addListener ( Listener<Tipo>* listener );
virtual void removeListener ( Listener<Tipo>* listener );
virtual void clearListener ( );
virtual bool hasL... |
ce08dc3aee1aec7955d6d4ea2e3e3bc27343c310 | c13f3cb4300f453c0c8d194e9ecea645354e180e | /RayImpact/include/PlasticMaterial.hpp | 4525b82a87adf9f089539eb5806b42805ee6099f | [] | no_license | lars-frogner/RayImpact | 3d36ca1c74d866fdd4a9d663a0b3569c78c1cc4a | a7313a66ed32dc0ff7aadf604a6251f9d9de1912 | refs/heads/master | 2021-09-15T00:48:22.362863 | 2018-05-23T07:14:25 | 2018-05-23T07:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,434 | hpp | PlasticMaterial.hpp | #pragma once
#include "Material.hpp"
#include "Spectrum.hpp"
#include "Texture.hpp"
#include "ParameterSet.hpp"
#include <memory>
namespace Impact {
namespace RayImpact {
// PlasticMaterial declarations
class PlasticMaterial : public Material {
private:
std::shared_ptr< Texture<ReflectionSpectrum> > diffuse_re... |
38799c2e81cac0ef8baf0554ea588f818687316f | 59af8ef7c0e71b404484aa74c0a7385c5ae87a11 | /include/LL.h | 3e3217b32b25916a7008cbd97d1b10440ad8763e | [] | no_license | SilverLining1837/LinkedListPractice | bb44c11a845b7c337723b19cf30523190d94dee9 | 34f04d58eed7a6b7ab5a9f026359205e81be00e3 | refs/heads/master | 2021-07-06T17:03:32.636238 | 2017-10-03T20:34:07 | 2017-10-03T20:34:07 | 105,700,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | h | LL.h | #ifndef LL_H
#define LL_H
#include <iostream>
using namespace std;
class LL
{
public:
LL();
virtual ~LL();
bool isEmpty() ;
int getLength() ;
bool insert(string &newCoauthorFirstName, string &newCoauthorLastName, string &newCoauthorInstitution, string &newPaperTitle, int &ne... |
34bd83cfe30ccfc31530a67b3dff36f80295a1f7 | 1e341b74dd9ff680fc1347c1d33e2ac5fade025f | /src/include/errors.h | cece52d205f64978759906f12e99581e9ebb5b9d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | italiangrid/voms | 908ff25b3ff5abc5442b3d1f1abc5c72229e5d65 | 92cbea9144546789d90705f160b01d116ace16d2 | refs/heads/master | 2023-07-09T02:25:51.262940 | 2021-04-01T15:56:11 | 2021-04-01T15:56:11 | 2,971,378 | 7 | 10 | Apache-2.0 | 2023-09-07T21:16:46 | 2011-12-13T10:09:43 | C | UTF-8 | C++ | false | false | 1,732 | h | errors.h | /*********************************************************************
*
* Authors: Vincenzo Ciaschini - Vincenzo.Ciaschini@cnaf.infn.it
*
* Copyright (c) Members of the EGEE Collaboration. 2004-2010.
* See http://www.eu-egee.org/partners/ for details on the copyright holders.
*
* Licensed under the Apache Lice... |
013e5aed2db9736dba9415b0d8fdbe96761fc9ab | 9fb2139bf41e2301f9ee9069d649c5afe8e7735c | /folders/LeetCode C++ Solutions/partition-equal-subset-sum.cpp | 592fdf6ec349e494596b56a5952eb5941f32ef6c | [] | no_license | codewithgauri/HacktoberFest | 9bc23289b4d93f7832271644a2ded2a83aa22c87 | 8ce8f687a4fb7c3953d1e0a5b314e21e4553366e | refs/heads/master | 2023-01-02T07:20:51.634263 | 2020-10-26T07:02:34 | 2020-10-26T07:02:34 | 307,285,210 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 958 | cpp | partition-equal-subset-sum.cpp | /**
* Author: Siddhant Pandya
* Problem: 416. Partition Equal Subset Sum
*/
class Solution {
public:
int oor(int i, int j)
{
if(i==1 || j==1)
{
return 1;
}
return 0;
}
bool canPartition(vector<int>& arr) {
int n=arr.size();
sort(arr.begin(),ar... |
13a07f82ec33478cfd206cc7e34801352d9e1637 | 7645c1224abf4465be86595e1ae76c94a6c37e40 | /14/main.cpp | 9b45ac44a0858369eb1580bc3248dc28d9000b26 | [] | no_license | Sofon/15Variant | 265d833bfb21640720d910a2459f0959fef47233 | c59450246e0306da8f4e9df5a8546f4e335785f6 | refs/heads/master | 2016-09-08T01:37:32.478462 | 2013-06-08T14:47:59 | 2013-06-08T14:47:59 | null | 0 | 0 | null | null | null | null | MacCyrillic | C++ | false | false | 1,232 | cpp | main.cpp | /*
если сумма элементов последнего столбца матрицы положительна,
присвоить каждому из элементов х1,х2,..хn
значение среднего арифметического соответсвующей стороки матрицы
*/
//---------------------------------------------------------------------------
#include <stdio.h>
#include <conio.h>
#pragma hd... |
40835889d323b0be50e8d3b11103feefca0086b6 | 70441dcb7a8917a5574dd74c5afdeeaed3672a7a | /AtCoder Beginner Contest 097/D - Equals/main.cpp | 0739b97779a8a68a0b90298ca8c41b2e3b12def6 | [] | no_license | tmyksj/atcoder | f12ecf6255b668792d83621369194195f06c10f6 | 419165e85d8a9a0614e5544232da371d8a2f2f85 | refs/heads/master | 2023-03-05T12:14:14.945257 | 2023-02-26T10:10:20 | 2023-02-26T10:10:20 | 195,034,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
class union_find {
vector<int> parent;
vector<int> rank;
public:
union_find(int n) {
parent = vector<int>(n);
rank = vector<int>(n);
for (int i = 0; i < n; i++) {
parent[i] = i;
rank[i] = 0;
... |
2b50e0dbf3721829d01ab9d70faa94b18e86458f | 7bdb0610be5f518822ff9be66ee83107cea9c34d | /Innopolis 2017/Day 9/a.cpp | 09f8e6bc895960c66dc4b2a145470674fe8e9005 | [] | no_license | nikitonsky/olymptasks | 6024932f3479a670c9d06fb1d9a490ebfe3b9b0e | 2442efba39085a82aa197c3351a845b753502d84 | refs/heads/master | 2021-03-27T20:20:46.358261 | 2017-11-20T12:41:48 | 2017-11-20T12:41:48 | 96,989,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,422 | cpp | a.cpp | #include<iostream>
#include<vector>
#include<cmath>
#include<set>
#include<map>
#include<algorithm>
#include<deque>
#include<queue>
#include<string>
#include<stack>
#include<iomanip>
#include<fstream>
#include<ctime>
#define lli long long int
using namespace std;
int main() {
#ifdef _DEBUG
freopen("input.txt", "... |
8f10f77997d0d2014fd9d299d4a6c39298dfb8a4 | 8292e1f6f3ff4fa0afd8aafe9aaaa5135d82d077 | /OOP Homework/Thuc hanh/Week7/Exercise 1/Worker.cpp | b6936504188313fbf90ab4b169e80a430edc4f75 | [] | no_license | lkdn3t/First-Year-In-UIT | b03abcd18506d5916bac609d536bb333e7a4f03d | ca7a5f4c1ca81bd7898176d24fb027891303321e | refs/heads/master | 2021-04-06T04:02:07.216858 | 2018-07-03T14:17:10 | 2018-07-03T14:17:10 | 123,702,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,239 | cpp | Worker.cpp | #include "Worker.h"
using namespace std;
//----------------- FOR WORKER-------------------- -
Worker::Worker() { }
void Worker::setName(string name) { Name = name; }
void Worker::setBirth(int d, int m, int y) {
Birth.day = d;
Birth.month = m;
Birth.year = y;
}
void Worker::setSalary(long long salary) { Salar... |
2d2e1fb302108d8c1d88ae165bd3d515ec5e537b | fe75ab418adfd723f48b8eafc80515c9fd913395 | /LeetCode/!0448. Find All Numbers Disappeared in an Array.cpp | 1457b4ea280a97009dda1e46319d5abf8ec3ea8e | [] | no_license | AshkenSC/Programming-Practice | d029e9d901f51ef750ed4089f10c1f16783d2695 | 98e20c63ce1590deda6761ff2f9c8c37f3fb3c4a | refs/heads/master | 2021-07-20T06:41:12.673248 | 2021-06-25T15:44:06 | 2021-06-25T15:44:06 | 127,313,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | cpp | !0448. Find All Numbers Disappeared in an Array.cpp | /*
0448. Find All Numbers Disappeared in an Array
给定一个整数数组,1 ≤ a[i] ≤ n(n是数组大小)。有些元素出现两次,有些只出现一次。
找到所有一次都没出现过的数。你能否在O(n)时间内,不用额外空间实现它?
思路:
遍历数组a的元素,根据元素的取值,将其作为索引找到的数组的值+n。比如遍历到a[i]=3,则将a[3]的值加n。
这样要注意的是,再往后会遇到加n以后的数组值,所以每次取数组值的时候,需要a[i] % a.size()。这样,最后哪个位置的值小于等于n,哪个位置就是没出现的数。
*/
class Solution {
public:
vector... |
8fc3868af3d72ffe16c6f25846ad0abf8ce6defc | a411d09be03ca3644eda3bb0e6f27a952f7c734a | /lc/mainwindow (another copy).cpp | 32906948f61b822be08cbfcc406a0b3f500f670b | [] | no_license | VasilyevGeorgy/LaunchCreator | 7bb412078aee2e8f4c55bbb42a57ed96bcfc461b | a6324279537509ce35e58512d518a19e8e662e08 | refs/heads/master | 2020-03-28T14:50:55.732486 | 2018-09-20T23:57:03 | 2018-09-20T23:57:03 | 148,528,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,041 | cpp | mainwindow (another copy).cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <qfiledialog.h>
#include <qmessagebox.h>
#include <QProcess>
#include <QFile>
#include <QTextStream>
#include <QColor>
#include <QColorDialog>
#include <QDir>
#include <QList>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::M... |
933dcf694f25a337e37a34c7e481a47a2e8f4af8 | cf5d980e9b37daebc95d088b3ad3d3ba34c65249 | /pkg-config-0.28/pixman-0.30.0/cairo-1.12.18/test/extend-reflect.c | 16b08c1550ff3582aae60e0fbaa5b8bfe0ae4ebd | [
"MIT",
"FSFUL",
"LicenseRef-scancode-public-domain",
"MPL-1.1",
"MPL-1.0",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-permissive",
"GPL-2.0-only"
] | permissive | hbzhang/inventorymanagement | 6bd800c26e39763364f0cd919caeacf731cb2f1f | 93cb8608545fd2bae71ac8632368594ffa3ab040 | refs/heads/master | 2023-01-28T18:03:06.185315 | 2019-09-25T14:51:44 | 2019-09-25T14:51:44 | 210,862,224 | 0 | 0 | MIT | 2023-01-11T05:53:53 | 2019-09-25T14:13:42 | null | UTF-8 | C++ | false | false | 766 | c | extend-reflect.c | #include <math.h>
#include "cairo-test.h"
#include <stdio.h>
static const char *png_filename = "romedalen.png";
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
const cairo_test_context_t *ctx = cairo_test_get_context (cr);
cairo_surface_t *surface;
surface = cairo_test_create_surfa... |
48ae4f3f91178a423bc12dd149211e893c12b99e | e0beee526a664c376597bca5320b40d8b698770b | /Homeworks/HW-1/Task-4/task-4.cpp | 712819e4b257b7174d0a5c92fc54fe0a5ce5679a | [
"MIT"
] | permissive | kgolov/uni-data-structures | c74ea00d36c1139c0e02ca94219fd7249645d4ac | 8d8b2ff75ffa0ceed3ebe7bbc294680134b7d1c1 | refs/heads/master | 2021-03-10T00:41:00.619457 | 2020-04-18T21:41:55 | 2020-04-18T21:41:55 | 246,399,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | cpp | task-4.cpp | #include <iostream>
#include <vector>
bool cloningSocks(int normalTarget, int copiesTarget) {
int normal = 1;
int copies = 0;
while (normal < normalTarget) {
// Run normal copying
normal++;
copies++;
}
// We now get the exact number of normal socks
// See if we can get... |
a0d154c959bb3f2dc1428b9b924ea3158c0be99f | 8e3b4c1c6c4d5eeefd0bcbb9f7d5c8439c84677f | /第三章作业/shan/Cpp1.cpp | 006035665625e9bf9c43fa0c1fc11402bd7b2015 | [] | no_license | DomainMiller/c- | 358af1ce0976c150d089be0ec442abcb730ba5f2 | 2f06d321444a171ca20069c19112add62cf72bd0 | refs/heads/main | 2023-07-26T10:36:38.904065 | 2021-09-03T14:14:05 | 2021-09-03T14:14:05 | 402,793,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | Cpp1.cpp | #include <stdio.h>
int main()
{
int a[8];
while (1) {
for (int i = 0; i < 8; i++) {
int mountain_h;
scanf("%d", &mountain_h);
a[i]=mountain_h;
}
int max=0;
for(int j=0;j<=7;j++)
{
for(int k=0;k<=7;k++)
{
... |
6682def1fd0a9f58eb8acaff3c2da0af4d3038ad | 4d8c1f32ba90390b8be3cc872453de02ab164246 | /krypton/jni/krypton_notification.h | 2171ce2c0a4fc58629948342b6fbbee52346d631 | [
"Apache-2.0"
] | permissive | torebal/vpn-libraries | 5b9c2cf50a4b1b1b3fdc10f46e5067ac26f2de82 | aa741f31c98f25e81e76fb5306c30233dd872598 | refs/heads/main | 2023-06-29T02:57:15.493717 | 2021-07-30T18:37:21 | 2021-07-30T18:37:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,975 | h | krypton_notification.h | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the );
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, ... |
e95ea75de76dd7f3fccee37a17c7205c29a8f021 | d812f329fe15093e621cb34b76bb0ff0f886c394 | /shooter_version1/bipyramid/bipyramid.cpp | b0cf41d80b0ce8d557113aec6087c166b49fd883 | [] | no_license | Anastasia-98Moiseeva/shooter | 3bc8b457d0ea8b67219aaa281c635f41ae020c6c | 8c433380c67e9228f4b6b5b34407877a5dbfd543 | refs/heads/master | 2022-04-23T02:01:57.188219 | 2020-04-15T18:34:56 | 2020-04-15T18:34:56 | 255,323,127 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,352 | cpp | bipyramid.cpp | #include "shooter_version1/tools/tools.cpp"
GLuint getBipyramidVertex(float k, glm::vec3 offset) {
GLfloat g_vertex_buffer_data[] = {
0, 2, 0,
0, 0, -1,
1, 0, 0,
0, 2, 0,
0, 0, 1,
1, 0, 0,
0, 2, 0,
0, 0, 1,
... |
eeeb70afad47fc0de695246ff5bb38574d9481ab | 170ab6daedec4a8f107203b6eb5cd8bed1f4ed81 | /OJ-SPOJ/SPOJ DETER3 Find The Determinant III.cpp | 5017a048c3a0f20a9473904988c7b8f3a0a5c248 | [] | no_license | sfailsthy/ACM-ICPC | 4a15930c06c5ba35ca54a5ecb0acd7de63ebe7f7 | 7e32bfc49010c55d24b68c074c800a2d492abbfd | refs/heads/master | 2021-01-11T06:07:58.598819 | 2017-01-18T13:04:23 | 2017-01-18T13:04:23 | 71,685,224 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | cpp | SPOJ DETER3 Find The Determinant III.cpp | //created by sfailsthy 2016/12/22 13:06
#include <cstdio>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
const int maxn =200+10;
typedef long long LL;
LL C[maxn][maxn];
int n;
LL Mod;
LL det(LL a[][maxn],int n){
LL ret=1;
for(int i=0;i<n;i++){
for(int... |
e0db25e62dbaa14bac08bb3c2f67e383b19d0816 | 2e315c77a6dff56a9efe2d5903b15219685b62ce | /Parser.cpp | 78a664ecca02d2823e07ffd26b437eb9c0a9e44f | [] | no_license | alohashc/avm | ef3124631a9d8f2c59f92ead8a1df510089d45d9 | 83d2f4593b264471ca99998ffdefa733091ea983 | refs/heads/master | 2020-03-21T16:16:27.579458 | 2018-08-30T18:04:00 | 2018-08-30T18:04:00 | 132,354,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,829 | cpp | Parser.cpp | //
// Created by aloha on 6/14/18.
//
#include "Parser.hpp"
#include <regex>
Parser::Parser(std::list<Token> &tokens) : _tokens(tokens){
_instr[PUSH] = &Parser::push;
_instr[POP] = &Parser::pop;
_instr[ASSERT] = &Parser::assert;
_instr[ADD] = &Parser::add;
_instr[SUB] = &Parser::sub;
_instr[MU... |
e7157642f8a1ee1b3627e348c8aed38501664233 | 00da6f58fff4964f18fea36e29849220ceffe545 | /TC3CPP-OC-FourierSignals/TC3CPP-OC-FourierSignals/CPPVP1/CPPVP1Main.cpp | 2a90eb0e47e1ca90c257c182de10d186cf7dd84c | [
"MIT"
] | permissive | 0w8States/TwinCAT-CPP---Fourier-Series-Online-Changeable | fd77b5458bed632fb4a529d0eeafe9c5a3933997 | d3837f39d256d0c5a6ca7e82a207009c77dd2722 | refs/heads/master | 2023-03-04T01:00:36.663581 | 2020-04-24T17:39:11 | 2020-04-24T17:39:11 | 338,688,308 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | cpp | CPPVP1Main.cpp | // dllmain.cpp : Defines the entry point for the DLL application.
#include "TcPch.h"
#pragma hdrstop
#include "TcBase.h"
#include "CPPVP1ClassFactory.h"
#include "TcOCFCtrlImpl.h"
#include "CrtInit.h"
class CCPPVP1Ctrl : public ITcOCFCtrlImpl<CCPPVP1Ctrl, CCPPVP1ClassFactory>
{
public:
CCPPVP1Ctrl() {};
... |
c9520061114b1e1e1a335c59527a25a008569379 | 8030bae5b1e6d29492c933ebfc622f8a831d32cc | /rush00/incl/Enemy.hpp | db90e97029a9a77867669f46cd5d0231a85ea3cb | [] | no_license | rhohls/CPP_Bootcamp | 6bb9e007deda8661f159b259db11cbecece9939d | 4daf970110f837259a8cb5dabfa12ac854e49f91 | refs/heads/master | 2020-05-31T06:39:56.719160 | 2019-06-13T05:25:37 | 2019-06-13T05:25:37 | 190,146,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,077 | hpp | Enemy.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Enemy.hpp :+: :+: :+: ... |
c6531b840b945d2279e2ad27f280d8536dfa0319 | 0b9178ff7d3db16e6d28106f33c52298d8c04f81 | /source/problem/Green-Naghdi/discretization_EHDG/kernels_processor/ehdg_gn_proc_derivatives_ompi.hpp | 620cb32d96d55f36e27979cd5af5cb532a09282c | [
"Apache-2.0",
"MIT"
] | permissive | bremerm31/dgswemv2 | 440d3999fd76632e2631d0993509a0adde090762 | 5ddddfdf1b5f51e9dbc348f2e69f187546649957 | refs/heads/master | 2021-07-13T05:59:42.005455 | 2020-04-06T13:45:34 | 2020-04-06T13:45:34 | 132,520,141 | 0 | 0 | MIT | 2018-06-27T13:53:49 | 2018-05-07T21:50:47 | C++ | UTF-8 | C++ | false | false | 631 | hpp | ehdg_gn_proc_derivatives_ompi.hpp | #ifndef EHDG_GN_PROC_DERIVATIVES_OMPI_HPP
#define EHDG_GN_PROC_DERIVATIVES_OMPI_HPP
#ifdef D_RECON_INT
#include "grad_methods/recon_int_derivatives.hpp"
#endif
#ifdef D_RECON_LS
#include "grad_methods/recon_ls_derivatives.hpp"
#endif
#ifdef D_RECON_AVG
#include "grad_methods/recon_avg_derivatives.hpp"
#include "grad... |
89200be392a1ea92c4adedb848767331da82dbdb | ebcb68cfe233f45d0126c2ebfd353acfbe8ac358 | /asteroids/src/model.cpp | ddace94d5d262fdc41e02a5bc4cd311b79d1ffdf | [] | no_license | Small-Embedded-Systems/assignment-2-asteroids-abdul-uk | ca13b7720dbbd076386c3e52ad90bba12cba7041 | 9c31b2c45aaad737a274a4e3d0e8ef7185b48e28 | refs/heads/master | 2021-01-18T15:42:38.548932 | 2017-05-14T16:40:55 | 2017-05-14T16:40:55 | 86,674,766 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,101 | cpp | model.cpp | /* Asteroids model */
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include "model.h"
#include "view.h"
#include "utils.h"
#include "asteroids.h"
static const size_t MAXSize = 10;
static missile missile_data[MAXSize];
static missile *freeMissileNodes;
void new_missile(struct missile... |
e818beb7d3770130cc094b7d8eed26fde391aae2 | ac140a854c180f0c6c0ff0f35518c18e32a43758 | /BoostLibrary/example_9_1.cpp | 2559b31fc59392fac2bf08484aef7402be6f1492 | [] | no_license | klasing/MnistExample | 53bd4e6316b513889acd77a5549082863c643435 | 720479f6768c15fa6e63fafd415b5a2bcff3dfa9 | refs/heads/master | 2020-04-22T00:29:18.102857 | 2019-06-30T18:41:17 | 2019-06-30T18:41:17 | 169,981,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 73 | cpp | example_9_1.cpp | // Example 9.1
// Comparing strings with boost::xpressive::regex_match()
|
0f9a77d1f07be65a8170eadeef158e3e10859ee9 | c60bc44b3cb7620c87af0a49e7b907b5c553f9a5 | /ular/fibonaci.cpp | a4b123d14683569bdcd0c5c0b77125ab028d77d3 | [] | no_license | jasonchan117/ularProject | c7117de399377704d5171d2097b96a8510836f01 | 1bf53a2c7ef56b3dd11156ab2f431787f298c593 | refs/heads/master | 2021-06-21T01:44:35.218327 | 2020-12-11T19:37:51 | 2020-12-11T19:37:51 | 141,500,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | cpp | fibonaci.cpp | #include<stdio.h>
int main(){
long long a[3];
a[0]=1;
a[1]=1;
a[2]=2;
int i=0;
int count =3;
long long sum=0;
while(1){
a[i%3]=a[(i+1)%3]+a[(i+2)%3];
sum=a[i%3];
i++;
count++;
if(count==58) break;
}
printf("%lld",sum);
return 0;
}
|
aee0dc7c17f347222c6549604cf2e84f0a1b25ad | b77b470762df293be67877b484bb53b9d87b346a | /game/MaterialManager.h | e3531c90651f0235dca54779a73770b27a183787 | [
"BSD-3-Clause"
] | permissive | Sheph/af3d | 9b8b8ea41f4e439623116d70d14ce5f1ee1fae25 | 4697fbc5f9a5cfb5d54b06738de9dc44b9f7755f | refs/heads/master | 2023-08-28T16:41:43.989585 | 2021-09-11T19:09:45 | 2021-09-11T19:09:45 | 238,231,399 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,143 | h | MaterialManager.h | /*
* Copyright (c) 2020, Stanislav Vorobiov
* 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 ... |
fa1163bc01ecf26b52e37e1c20fc84ca1292df30 | bb2edea55ac82eca75ea1e23ada87d66c146c2a1 | /src/problems/parabola_test_problem_5d.h | db19aeff2f3bd6d572a5dfdfd7f6f4aabe8c9938 | [] | no_license | mjoseland/particle_swarm_optimisation_parallel | 7a922cb47b0a85f94c4bb92b4b34049dd79771a5 | c9332b2653990f302af06dc2f7959b9339dac579 | refs/heads/master | 2022-12-08T21:47:18.912151 | 2022-11-22T09:32:59 | 2022-11-22T09:32:59 | 68,461,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | parabola_test_problem_5d.h | //
// Created by Malcolm Joseland on 4/08/2016.
//
#ifndef PARTICLE_SWARM_OPTIMISATION_SPHERE_TEST_PROBLEM_H
#define PARTICLE_SWARM_OPTIMISATION_SPHERE_TEST_PROBLEM_H
#include <cmath>
#include "../problem.h"
using namespace std;
// Finds the minimal point in a 5-dimensional parabola
class ParabolaTestProblem5d : p... |
94477b61b67a25dc5041a47ad2d5f9ea24e63667 | e94559835dec204537927865800f95b81a191b7f | /Tympan/models/business/TYPointControl.h | f89b52f61aa357c17960b720ff20879731c81a97 | [] | no_license | FDiot/code_tympan3 | 64530a3fc8a392cdbe26f478a9ea9ce03abab051 | cf4383c4a162962b68df470e2bf757ad534880b9 | refs/heads/master | 2022-04-07T10:54:05.711913 | 2019-10-24T13:27:42 | 2019-10-24T13:27:42 | 239,812,326 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,158 | h | TYPointControl.h | /*
* Copyright (C) <2012> <EDF-R&D> <FRANCE>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is dis... |
d881be7e6ca8d85554fc0d532e85370248648577 | 5bf67a8e12a670f4fdb52d043dec84e04a1cb67c | /sequence_alignment/sequence_alignment/assignment_write.hpp | 20311e0e5b96c74a49e985da3ac3eb015ac71240 | [] | no_license | mfileman/DNA-Pairwise-Alignment | 57b991407e15513385799224d985e5417202d28f | 547692b8206e66713f9475f5d4d888e672934efb | refs/heads/main | 2023-01-14T17:27:41.402113 | 2020-11-24T05:46:18 | 2020-11-24T05:57:15 | 315,532,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | hpp | assignment_write.hpp | //
// assignment_write.hpp
// sequence_alignment
//
// Created by madison on 10/13/20.
//
#ifndef assignment_write_hpp
#define assignment_write_hpp
class Assignment {
public:
static void assignment_write(const char* file_path, const char* text);
};
#endif /* assignment_write_hpp */
|
c0c6bec56bc77d3e8f162b10bc667a886a46e89f | b8211e577353e4658b8ab1848774665e6fc7974f | /webdev.cpp | de915a5a980996c4435bad631def472f0bcc1fa9 | [] | no_license | srflorea/Webdev-CPlusPlus | c99b0f56f94add0ffe10ed2f3a1d9f1cd1f9136a | d86fc83df24b9f4220e4a1a9344f0a7175484904 | refs/heads/master | 2021-01-16T07:08:43.821446 | 2013-10-06T20:49:01 | 2013-10-06T20:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,925 | cpp | webdev.cpp | /* Florea Stefan - Razvan
* 341C3
* This file contains the main function and some additional functions.
* The program take
*/
#include <iostream>
#include "examples.hpp"
using namespace std;
vector<string> example;
map<string, func_type> functions_map;
/*Function that populates the dictionary with all the ava... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.