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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8046dbcd0fda3829bbfb4f90975c164bc4c926c5 | b3cf660dc6b38d59fdfe82f8d9dca2eecdbe31cb | /WindowsAudioOutput/WindowsAudioOutput.h | e8ad7d750a936f504e8ac3cc4469372d8c29756c | [] | no_license | f1nality/WindowsAudioOutput | 0dc0fb3833f7b98527e4b1a99a57341d8a18db36 | 7dece5c45e0635090a0dc4c2cd3e4a75e61e02a7 | refs/heads/master | 2020-04-09T10:12:23.105759 | 2014-08-03T13:42:48 | 2014-08-03T13:42:48 | 21,322,568 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 706 | h | WindowsAudioOutput.h | #include <stdio.h>
#include <wchar.h>
#include <tchar.h>
#include <vector>
#include "windows.h"
#include "Mmdeviceapi.h"
#include "PolicyConfig.h"
#include "Propidl.h"
#include "Functiondiscoverykeys_devpkey.h"
#include "WindowsAudioPlaybackDevice.h"
typedef void (*ProcessAudioPlaybackDeviceCallback)(LPWSTR, LPWSTR, B... |
7bbca030a902fea4e297d16eea99b47fa0e152d7 | 4c0e2864361dcd5f73e4ad890e8170f44a5ffa74 | /curlingsim/main.cpp | e654e3fbf8f8189132f0b22bcc8553a3939662e5 | [] | no_license | gregstarr/poolgame | cb7df72de7106d24c9366e55cafcaba8f4dfcd87 | 813d11a3e8887b1dd0b77619a7c6a649960937cc | refs/heads/master | 2021-01-18T13:47:32.046576 | 2015-08-04T20:12:18 | 2015-08-04T20:12:18 | 39,852,279 | 0 | 1 | null | 2015-08-04T18:12:25 | 2015-07-28T18:56:30 | C++ | UTF-8 | C++ | false | false | 5,032 | cpp | main.cpp | #include <SFML/Graphics.hpp>
#include <string>
#include <cmath>
#include <iostream>
#include <random>
#define PI 3.1415
using namespace std;
default_random_engine generator;
void randomize(vector<float> & param,int length,float high,float low,float spacing)
{
uniform_real_distribution<float> dist(low,high);
... |
cddb6e73c77c2c7261e8ec83e5db15b978de9acf | 5e5f49e07ba502ccceb5360f6f0dd1c29ca98186 | /LittleMath.h | c45ec15ffa88cd0a2b8a4877c04db7e2575567a5 | [] | no_license | JeckyllIsHyde/LCP | baf3da8a030d78913f69d02e4881f46d566163d3 | 7f7110496f90bd32b79c4d5bf7b1003eb15ac57f | refs/heads/master | 2021-08-31T13:19:51.982515 | 2017-12-21T12:43:47 | 2017-12-21T12:43:47 | 114,026,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,973 | h | LittleMath.h | #ifndef LITTLEMATH_H
#define LITTLEMATH_H
#include <iostream>
#include <array>
#include <cassert>
#include <cmath>
template <typename T, size_t N>
struct VectorT {
std::array<T,N> _data;
VectorT() {
for (int i=0; i<N; i++)
(*this)(i)=T(0);
}
VectorT(const VectorT& v) {
for (int i=0; i<N; i++)
... |
87ab7b00e0d84d974262e5c169043ce275476e4e | 59bfd57fc640f236c26adf713005c438308ab75a | /include/wls-dense-lapack.hpp | b5bc808a8e19e86885bcc36a81d910aa472d9e17 | [] | no_license | YvanMokwinski/WLS | 361a0b306cd8846d244f4f1c5a823b67bb4214ba | 703f7ac0703eadff3655534c1e032a88bd0334e2 | refs/heads/master | 2022-12-08T12:25:07.927198 | 2020-09-01T14:46:44 | 2020-09-01T14:46:44 | 229,385,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | hpp | wls-dense-lapack.hpp | #pragma once
#pragma once
#include "wls-types.h"
#include "wls-mkl.hpp"
namespace WLS
{
namespace dense
{
//!
//! @brief BLAS MKL wrapper.
//!
struct lapack_t
{
using int_t = wls_int_t;
using int_p = wls_int_p;
using const_int_p = const_wls_int_p;
template <typen... |
6f0c37a6406f813d5aa595b4e35e435bb2575767 | 688a4d5070271111232acff9c5899211b18d6064 | /framework/utilities/Utilities.h | 9fd43d66f0ce08b80acd7f102c8dea7a5bfa4750 | [
"BSL-1.0"
] | permissive | weiliew/viscous | 1e41dfeb4d3526354d7651898dbc688196dba43c | c1041945c62fd9c6d4d7cb3808646b219f7b0802 | refs/heads/master | 2016-09-05T17:35:55.375085 | 2014-12-14T19:08:50 | 2014-12-14T19:08:50 | 18,191,530 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,101 | h | Utilities.h | /*
* Utilities.h
*
* Created on: 1 Jan 2013
* Author: Wei Liew [wei@onesixeightsolutions.com]
*
* Copyright Wei Liew 2012 - 2013.
* Distributed under the Boost Software License, Version 1.0.
* (See http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef UTILITIES_H_
#define UTILITIES_H_
namespace vf_co... |
c84962166718a961453557be6662289361c56eb2 | e305f7f61554cb80bb1665e888401a7a12019cb1 | /src/pid2.cpp | fa5f7815a79190a48de0bcbf2193327269f97062 | [] | no_license | SebastianHurtado98/new_robot | bd231521dcc8e8fe90669137c2d718e0bd75f605 | 28ad9ad484a77bd14608b813871741d04d674f44 | refs/heads/main | 2023-08-13T04:23:49.942098 | 2021-10-10T15:03:51 | 2021-10-10T15:03:51 | 415,617,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cpp | pid2.cpp | #include "ros/ros.h"
#include "geometry_msgs/Twist.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "talker");
ros::NodeHandle n;
ros::Publisher cmd_vel_pub = n.advertise<geometry_msgs::Twist>("cmd_vel", 1);
ros::Rate loop_rate(10);
int count = 0;
while (ros::ok()) {
geometry_msgs::Twist vel... |
4814f2e189ff02257cb73169bbc565c09b78feaf | 54a60046303a99aa0581b7ff2d2f09e17a519da8 | /Cli-Serv TD Slobodskoy/TD Slobodskoy Client/Classes/Enemy.h | 56e30108afab2bf7fe47ea4e94da8273e00fcedf | [] | no_license | EgorEast/CFU_Project | f7984bdd67fad97c687d57b392c3019221353542 | 6ad093c8bd014b5f9d6438ebfdec2d995a6c490c | refs/heads/master | 2022-12-03T01:49:43.172526 | 2020-08-20T11:16:31 | 2020-08-20T11:16:31 | 265,323,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | h | Enemy.h | #pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include "Entity.h"
#include <nlohmann/json.hpp>
////////////////////////////////////////////////////КЛАСС ВГРАГОВ////////////////////////
class Enemy :public Entity {
public:
//Конструктор класса врага
Enemy(sf::Image& image, sf::String Name, sf::V... |
5d581def8bf0ab26629eb725ee92820d71244c35 | 0d0bb86839bcf6662d91aa180719ff04aee6c0dc | /Compiler_hw3/src/include/visitor/visitor.hpp | 842d6c0ba4d654d32d58bd4f64ee949e99ba0838 | [] | no_license | samuelyutt/Intro-Compiler-course | 7f8ba03948c4e631ab33091f11f606ec0410a9ba | f4ac3515fff97d2438f6478a776687bb0962bf0c | refs/heads/master | 2022-08-03T17:45:25.498189 | 2020-05-26T16:27:55 | 2020-05-26T16:27:55 | 267,092,211 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,831 | hpp | visitor.hpp | #pragma once
#include "AST/ast.hpp"
#include "AST/program.hpp"
#include "AST/declaration.hpp"
#include "AST/constantvalue.hpp"
#include "AST/variable.hpp"
#include "AST/programbody.hpp"
#include "AST/expression.hpp"
#include "AST/variablereference.hpp"
#include "AST/binaryoperator.hpp"
#include "AST/unaryoperator.hpp"
... |
979ecb8f0809ab97161f5d5e48654913c9064599 | 978b0c7d4bb8ea32c78f771810e39ad765136b99 | /EIP/eips_usersys.cpp | fee75e95e002c9e47fc0112c75392f7e64c946fa | [] | no_license | mmk-tsm/NBB_WIDTH_Ep_0 | 0dde91dc99dbec277f3a9a0d8eb24abc90ac1d0f | e7c0eda5ac0dc52175e1bb07c4b75358a3674bdc | refs/heads/master | 2022-11-11T12:08:39.273994 | 2020-07-07T13:16:00 | 2020-07-07T13:16:00 | 277,529,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,592 | cpp | eips_usersys.cpp | /*
* Copyright (c) 2002-2009 by Real Time Automation, Inc.
*
* This software is copyrighted by and is the sole property of
* Real Time Automation, Inc. (RTA). All rights, title, ownership,
* or other interests in the software remain the property of RTA.
* This software may only be used in accordan... |
b6b677f102b3a9eeaabf404dcceb09b20fb2e54b | 7b2456c98c94ff1c9a0334b24797a85ecc5cff21 | /cses/sorting-and-searching/playlist.cpp | c770728d092a27cfc2bc22683c12b03ff0119930 | [] | no_license | bkorecic/competitive-programming-solutions | fe694b485f10d5b90903552efd3e740e90891c94 | f7edecc7bfb318992ea4e49cae11942e1e1e6879 | refs/heads/master | 2021-12-15T04:43:23.722769 | 2021-12-12T05:59:50 | 2021-12-12T05:59:50 | 211,429,503 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | playlist.cpp | #include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
int n; cin >> n;
map <int, int> pos; // last seen pos
int ans = 1;
int l = 0;
for(int r=0; r<n; r++){
in... |
fcb4e3981cd1b4304920b0de77b75acf0ae1af0f | cd52e1882e29bac90d77593699a1111380256fc5 | /editor/HomeScreen.h | c481f8f1b9fafed52dfc3fc1d4aeca99ab2f50cc | [] | no_license | chortas/TDP1-Portal | 5af5edf40d878939391877e72a944b116c60e40f | 70872b61ef882a9078e8b9c9cd6524f04d343371 | refs/heads/master | 2020-06-10T20:20:12.815077 | 2019-06-25T07:46:48 | 2019-06-25T07:46:48 | 193,735,074 | 2 | 1 | null | 2019-06-25T15:29:34 | 2019-06-25T15:29:33 | null | UTF-8 | C++ | false | false | 620 | h | HomeScreen.h | //
// Created by camix on 20/06/19.
//
#ifndef PORTAL_HOMESCREEN_H
#define PORTAL_HOMESCREEN_H
#define CLOSED_EXC "The user want to close the process\n"
#include "../common/Window.h"
#include "../common/InputText.h"
class HomeScreen {
InputText input;
Window &window;
std::string& yamlPath;
public:
... |
cb8fff199bb8593f2badaf6c9037184da67ac86c | c085d357389bccf709b742785b7333ddc7a25190 | /CS1010301HW06/TS0605/Diary.ixx | 2be52c05b8483fe273eac21befb4bff3a0638b1c | [] | no_license | jimmy1010ww/NTUST_109-2_ODD | d990a01a8e5618a2c33816c3e207b05b728b5d3b | 7358a95d9d6b4be211f703de71372dd7d86a7cd7 | refs/heads/main | 2023-04-05T21:44:33.044702 | 2021-04-20T17:19:07 | 2021-04-20T17:19:07 | 350,739,673 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43 | ixx | Diary.ixx | export module Diary;
export void MyFunc(); |
6dd7da5fc57260402912dc0d00ce4a661d278da7 | a4e25ab73d3f04d5368ccb754092c6ab597ba056 | /src/Framework/EntityManager.cpp | 1653d3f5957d9a8af8a8397a40d5f93ec62196f2 | [] | no_license | eoma/gm-engine | 1fccf0a09aabe9edd65116b75e06e843067d4e26 | 49c306094c8e255fd17f88ddb292e4b4d6d66ec4 | refs/heads/master | 2020-05-19T13:40:09.901589 | 2015-03-13T10:46:09 | 2015-03-13T10:46:09 | 20,478,330 | 2 | 1 | null | 2014-11-03T17:29:41 | 2014-06-04T09:59:21 | C++ | UTF-8 | C++ | false | false | 3,562 | cpp | EntityManager.cpp | #include "GM/Framework/EntityManager.h"
#include "GM/Framework/Templates/EntityTemplateManager.h"
#include "GM/Framework/Entity.h"
#include "GM/Framework/Utilities/ComponentSerializer.h"
#include <algorithm>
#include <iostream>
using namespace GM::Framework;
EntityManager::EntityManager()
: entities()
, pending_dele... |
f7a7be67e1a230e860e97cc12a4112abf11d5e0d | 02039931ac3ec97d98a28afdb2077b4e30fbd944 | /src/Compatibility/F4EE.h | b66d83d174f11adfb11b19f8e438ff16fa6eab2a | [
"MIT"
] | permissive | DiReis/Buffout4 | c902716083b7eb2bf4f57c41d401e92ec8053d94 | 225e5307f41700f420b048523a43bef14bfd67d6 | refs/heads/master | 2023-01-23T21:36:30.499198 | 2020-12-01T06:56:34 | 2020-12-01T06:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,011 | h | F4EE.h | #pragma once
namespace Compatibility
{
class F4EE
{
public:
static void Install()
{
const auto validate = []() {
// 1.6.20
constexpr auto precalc = "D5467FEA7D6A722E0ED87B5FB857B5E0C9FDBE57B060ADB711013ED27565688D3D4514F99E4DF02109273ED69330E5272AD76822EB15717FEBC11AF409BA60F1"sv;
const auto sha... |
81f4b65965a60186b48331c67c1fdbf82d7b2b3b | faf52f759ea38fdfeb9e4a06327bdb677fe53931 | /repos_2_bzzzuka_Minimizator/src/mnbrak.cpp | 9a491bc2bf139a057fd1f0d13204d21724a767f1 | [] | no_license | Redrum34/mix | 010866ba0f5c105b49da17ec897f054d59a6e8ca | ed538d7bcfe8c955dd34d1643760e11e869fee13 | refs/heads/master | 2020-09-01T21:31:13.084997 | 2019-11-01T20:43:59 | 2019-11-01T20:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cpp | mnbrak.cpp |
#include <cmath>
#include "Powell.h"
using namespace std;
namespace {
inline void shft3(DP &a, DP &b, DP &c, const DP d)
{
a=b;
b=c;
c=d;
}
}
|
1d3da2e859f5ccdc74b3ca6cc6236ef3280ccef5 | 7e1a07b790b2ce0d1647d57ab72c5bf7eda31503 | /ServerInputControler/ReceiveSocket.cpp | f7f83a9a7452f97a394d4bd75522076720ac1718 | [] | no_license | stoneami/ServerInputControler-UDP | fb00115a6d67badeb22a9f977af0450c2c0108ce | 8f9a58c32ab3debe83ca7bcb4f195ec6665ae8bf | refs/heads/master | 2016-09-06T21:51:22.182460 | 2013-11-06T13:13:02 | 2013-11-06T13:13:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,451 | cpp | ReceiveSocket.cpp | #include "StdAfx.h"
#include "ReceiveSocket.h"
CReceiveSocket::CReceiveSocket(void)
{
}
CReceiveSocket::~CReceiveSocket(void)
{
}
void CReceiveSocket::OnSend(int nErrorCode){}
void CReceiveSocket::OnOutOfBandData(int nErrorCode){}
void CReceiveSocket::OnAccept(int nErrorCode){}
void CReceiveSocket::OnConnect(int ... |
e2c7523e3c51f1d6230a01c0637db9e5803da85b | 5d467d69b9c57b9978c48a1bccdf807de5a205df | /Sources/Couleur.h | 4e242c87e93b889f1d9157b1d6145c8b8244d167 | [] | no_license | kevin-plumyoen/Projet_UdeS_DX11 | dc0152c4060efd8a22e993c3935da620b35994b7 | 257c87019e60f86e88f7c99d01fa1f227b784b4c | refs/heads/master | 2021-01-02T21:57:08.700262 | 2020-02-11T17:37:48 | 2020-02-11T17:37:48 | 239,815,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | h | Couleur.h | #ifndef COULEUR_H
#define COULEUR_H
#pragma warning(push, 0)
#include <iostream>
#include <DirectXMath.h>
#include <assimp/types.h>
#pragma warning(pop)
struct Couleur {
using vector_type = DirectX::XMVECTOR;
using value_type = float;
using value_ref = value_type & ;
vector_type values;
Couleur() : values... |
864235ab93882354f8aca303b8ce2166ae07afab | 687b44eabc9b401aeb219910eaf3a82b565bac4f | /MavLinkCom/src/serial_com/TcpClientPort.cpp | d5a5bc53c42267d552400d7f93a4a794f3e3e502 | [
"MIT"
] | permissive | mitchellspryn/UrdfSim | ec284e572f1e0a4377f1ab7a49fd8a03691e56e1 | a8a46c2b317811ad83bcb46fd12ea75a2862a68e | refs/heads/master | 2022-07-19T06:31:39.349835 | 2021-03-17T00:45:00 | 2021-03-17T00:45:00 | 166,617,310 | 100 | 27 | NOASSERTION | 2022-06-22T20:39:10 | 2019-01-20T03:01:06 | C++ | UTF-8 | C++ | false | false | 6,999 | cpp | TcpClientPort.cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "Utils.hpp"
#include "TcpClientPort.hpp"
#include <stdio.h>
#include <string.h>
#include "SocketInit.hpp"
#include "wifi.h"
using namespace mavlink_utils;
#ifdef _WIN32
// windows
#ifndef WIN32_LEAN_AND_MEAN
#def... |
38f7283f11fbd626976b245a2e97555d85651a92 | 9028d5e85e3321869e94c3accf24bf67e0e07ee0 | /Prata-Capture_15-18/Capture_15/Listing_15.13/newexcp.cpp | 07fdb8a80cb8543ea23ee8525c41b333cc575ec9 | [] | no_license | pukala2/old_stuff | 525dc8b3601df9141cbcfe215c2e9971e6fef3ed | 2e45b8465b900b00c3781e716686c5df665f06d2 | refs/heads/master | 2020-03-24T08:11:37.674093 | 2018-07-27T14:50:55 | 2018-07-27T14:50:55 | 142,587,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | newexcp.cpp | //wyjatek bad_alloc
#include <iostream>
#include <new>
#include <cstdlib>
struct Big{
double stuff[200000];
};
int main(){
Big *pb;
try{
std::cout<<"Proba przydzialu wielkiego bloku pamieci:\n";
pb = new Big[1000000]; //16 00 000 000 bajtow
std::cout<<"Udalo sie przebrnac przez instrukcje new:\n";
}
c... |
ba321dfdcb5609d33339e627cf7e1ac2e1f5cbfc | 383b176f168c763f20e9b50c09b9ce3c1a538c8d | /501.cpp | 0bb6809454ab558f47c74ef4d925d7651592bfcc | [] | no_license | mosthandsomeman/LeetCode | dab7e25037736cd993f657179f8ccbbf55940586 | 99f2b6dc1fed2829298996a432773bb28a42615e | refs/heads/master | 2023-01-21T02:11:50.872572 | 2020-11-30T13:35:32 | 2020-11-30T13:35:32 | 280,103,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 888 | cpp | 501.cpp | #include<vector>
#include<queue>
#include<map>
using namespace std;
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution
{
public:
vector<int> findMode(TreeNode *root)
{
vector<int> vec;
map<int, int> m... |
966ad3a751dcad298cba1ac685ca7948f51f01d0 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/Hosting2/CleanupSecurityPrincipalRequest.h | d6baab47d0f991652782137f4b47793cfb364d51 | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 1,453 | h | CleanupSecurityPrincipalRequest.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Hostin... |
25bc44407fe131fa8fc40f43585659ed1fbc7014 | 45b32ffcdc7ac3864c0b810b61deeee136616554 | /3dMaxExport_KOK/Current/ExportXml/MSkeleton.cpp | 637069a809b9ec034877a3c2d3907261efbbcb71 | [] | no_license | atom-chen/Tools-2 | 812071cf6ab3e5a22fb13e4ffdc896ac03de1c68 | 0c41e12bd7526d2e7bd3328b82f11ea1b4a93938 | refs/heads/master | 2020-11-29T10:05:24.253448 | 2017-07-12T06:05:17 | 2017-07-12T06:05:17 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,044 | cpp | MSkeleton.cpp | #include "name.h"
#include "MSkeleton.h"
#include "skeleton.h"
#include "glm/gtx/quaternion.hpp"
MSkeletonJoint::MSkeletonJoint(AWDSkeletonJoint* pAWDSkeletonJoint, MSkeletonJoint* pParent)
{
m_pParentMSkeletonJoint = pParent;
m_pAWDSkeletonJoint = pAWDSkeletonJoint;
}
void MSkeletonJoint::buildJointChildList()
{
... |
85f2e56035d49c858e84dbcf7a732f1f34fde123 | 0f30d43960d46961688497af9004c2f154d71877 | /hxmath/bin/cpp/include/haxe/macro/TypedExprDef.h | 06f4c9569ca6ac903a3796f6d309f2fdd5433d87 | [] | no_license | mboussaa/haxe-testing | 77d2c44596f92d3b509ad2e450f61d2e640eb9a3 | 930bd6e63c8cb91a4df323d01ae518d048c089ba | refs/heads/master | 2021-01-17T10:20:07.126520 | 2016-06-02T10:00:49 | 2016-06-02T10:00:49 | 59,005,172 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 4,145 | h | TypedExprDef.h | // Generated by Haxe 3.3.0
#ifndef INCLUDED_haxe_macro_TypedExprDef
#define INCLUDED_haxe_macro_TypedExprDef
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(haxe,macro,Binop)
HX_DECLARE_CLASS2(haxe,macro,FieldAccess)
HX_DECLARE_CLASS2(haxe,macro,ModuleType)
HX_DECLARE_CLASS2(haxe,macro,TConstant)
HX_DECLA... |
3bcde22873800eeedf64ee22b3c8b3789599cc4d | 615e70f40aefca4a8994e835241dc6ce0a5db3ed | /lib/ios8/coretext/CTDefines.inc | a3d457e2fe98714e7701ae7cf57f3f2a61413175 | [
"MIT"
] | permissive | genericptr/GLPT | f6c16f35a86ec127ad549d9d1f97dbbc43365574 | 852dc244eb00f1727fc8edc3ec11ae16d011eb73 | refs/heads/trunk | 2022-11-28T07:31:25.225130 | 2022-11-12T01:26:44 | 2022-11-12T01:26:44 | 151,209,923 | 3 | 2 | MIT | 2022-05-18T00:17:24 | 2018-10-02T06:28:42 | Pascal | UTF-8 | C++ | false | false | 101 | inc | CTDefines.inc | { Parsed from CoreText.framework (iPhoneOS8.2) CTDefines.h }
{ Created on Fri Mar 20 2:11:07 2015 }
|
c4f76d388d2f4f054151b9a01ba65ab0d48d353e | ede8447af3a013f09b1298ca962dceaff062292a | /constin.cpp | dc073624c2aff31cc5cb7c3933c56dc8eeaaf60f | [] | no_license | Ajax07/Some-Useful-Coding-Problem-GoldmanSachs-using-Cpp | 0d692788df96ca3af6f5a8bfd07ef1e00a0f6ac9 | 6ea8045d6c9386264720b52fb5a947abef14c6fd | refs/heads/main | 2023-06-14T14:04:30.579185 | 2021-07-16T14:00:40 | 2021-07-16T14:00:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | constin.cpp | #include <iostream>
#include <string>
using namespace std;
class Player{
string name;
int health;
int xp;
public:
Player();
Player(std::string name_val);
Player(std::string name_val, int health_val, int xp_val);
};
Player::Player()
: name{"none"},health{0},xp{0}{
}
Player::Player(std::s... |
a40b854d34dfc7b7540fcf3b40580aa8f6289238 | b2a263fc5fb54e623eaf3a8e3d63209cbd08ead4 | /tests/io-device_notifier_pool/test_standard_streams.hpp | 9e1d19032dd254f8986c95dd3667fa3b3d43097f | [] | no_license | semenovf/pfs | 3679961bc7d3e5514fe4aafe18bea7be4d238c2f | 682c9d42a1ccb63e1d8117014877e7d96254f672 | refs/heads/master | 2021-07-19T06:08:10.048568 | 2019-04-02T06:03:30 | 2019-04-02T06:03:30 | 80,082,005 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,847 | hpp | test_standard_streams.hpp | #pragma once
#include "pfs/io/file.hpp"
namespace test_standard_streams {
static int can_write_counter = 0;
struct event_handler
{
void accepted (device_ptr d, server_ptr) { std::cout << "connected: " << d->url().utf8() << std::endl; }
void disconnected (device_ptr d) { std::cout << "disconnected: " << d->ur... |
f1598d546c23c0a7be1d736db02765ceda57572b | 397a4559b44b07b08df50e309bbb5d86b1d60459 | /TextInputManager.h | e01f7ac6438735b18e857c493dbef2617f498438 | [] | no_license | toshikurauchi/eyeswipe | c456145e0d154b9d65c04b876e3746fed212474a | 9465862d525264027d0c91a60180909c1f626976 | refs/heads/master | 2022-04-26T22:24:11.524885 | 2020-04-28T17:43:31 | 2020-04-28T17:43:31 | 259,454,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | TextInputManager.h | #ifndef TEXTINPUTMANAGER_H
#define TEXTINPUTMANAGER_H
#include <QObject>
#include <QStringList>
class TextInputManager : public QObject
{
Q_OBJECT
public:
TextInputManager(QObject *root);
public slots:
void addSingleLetter(QChar letter);
void addWordCandidates(QStringList words, int idx);
private:
... |
7ae2abc45f15b63ac61b4edf9aa36d1ffae0bca8 | a6cb68035cfcb597888b3e5e7e2dd2ec86bea2c6 | /stringTests.cpp | 2d5335129b12c544c902f3c616fbca6dde8f7971 | [] | no_license | SeeMorton1/autoindex | d1ef2839730e029d08e634a78ad69e0c204cf115 | 0f1cd63fa59dfd31fe12935de0f317637c23d62b | refs/heads/main | 2022-12-22T09:15:55.720824 | 2020-10-05T02:11:31 | 2020-10-05T02:11:31 | 301,270,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 943 | cpp | stringTests.cpp | //
// Created by Conner Morton on 9/23/2020.
//
#include "catch.hpp"
#include "DSString.h"
TEST_CASE("DSString tests","[DSString]"){
DSString s[10];
s[0] = DSString("test");
s[1] = DSString("");
s[2] = DSString("A really good. string class!");
s[3] = DSString("UPPERCASE");
s[4] = DSString("upp... |
679f5eb0942748f7d66568e61df4f7e53a6502c2 | b0893dbcad94f7677871bd77a1f7f9abfc40cc46 | /src/math/topology/sico/simplex/baseA.hpp | 554b0a2d12c78e1baa345533bc817f7c3cf10b21 | [
"Apache-2.0"
] | permissive | dmilos/math | 71124fc3e750eae5bf5fb787ff371573bb9e2464 | 41131d481d8112eda4f71a86a0effe7c3154a17e | refs/heads/master | 2023-04-28T05:48:20.038227 | 2023-04-22T17:43:09 | 2023-04-22T20:26:09 | 140,083,004 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,368 | hpp | baseA.hpp | #ifndef math_topology_sico_simplex_baseA
#define math_topology_sico_simplex_baseA
// ::math::topology::sico::simplex::baseA<dimension_size>
#include <vector>
namespace math
{
namespace topology
{
namespace sico
{
namespace simplexxx
{
template
<
... |
9aa10da0d82e98cf2819463b119356d2ab5859ef | 4b023194fe3e48d23fdc87d62cb4b1ef6df92480 | /engine/src/app.cpp | 22031f60ac94ddfee869414c50d262f4e5b4ee42 | [] | no_license | Ace17/eelusion | 648840b6c5755f35ce35c9e3b4c97b1e1e85527b | c8777651014583319d3dc3b8409047d549f77aab | refs/heads/master | 2020-08-06T23:34:54.224371 | 2019-10-10T07:07:39 | 2019-10-10T07:07:39 | 213,200,977 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,128 | cpp | app.cpp | // Copyright (C) 2018 - Sebastien Alaiwan
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
// Main loop timin... |
3c1e8ae9642096254ffb130672ed7b5d81add3a6 | 97e4c9f84f8900c533480356ac20cd42894e8e38 | /Proyecto Datos 2/main.cpp | 1a295ab49ceec2a76ae1e3abcfeb20be9576610e | [] | no_license | jfhr1999/Datos-progra-2 | 215b6dd5548163ec97973dd2c5a414b924f33faa | afa9d13b4c57062d40f24d93afc320a1477e797c | refs/heads/master | 2020-03-19T07:01:13.518552 | 2018-06-11T18:03:18 | 2018-06-11T18:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,719 | cpp | main.cpp | #include<iostream>
#include<string>
#include<fstream>
#include "DLinkedList.h"
#include "Turing.h"
#include "Grafo.h"
using namespace std;
int main(){
while(true){
Turing turing;
string opcion ="";
cout << "bienvenido, por favor elija entre una se las siguientes opciones: " <<
"s p... |
d6fd7cacbfc2235daf573dea071049af39404771 | 65e3391b6afbef10ec9429ca4b43a26b5cf480af | /STARLIGHT/starlight/src/nucleus.cpp | b587a84d3a5bcb2758e57b720bea81b33bc1246a | [] | permissive | alisw/AliRoot | c0976f7105ae1e3d107dfe93578f819473b2b83f | d3f86386afbaac9f8b8658da6710eed2bdee977f | refs/heads/master | 2023-08-03T11:15:54.211198 | 2023-07-28T12:39:57 | 2023-07-28T12:39:57 | 53,312,169 | 61 | 299 | BSD-3-Clause | 2023-07-28T13:19:50 | 2016-03-07T09:20:12 | C++ | UTF-8 | C++ | false | false | 6,440 | cpp | nucleus.cpp | ///////////////////////////////////////////////////////////////////////////
//
// Copyright 2010
//
// This file is part of starlight.
//
// starlight 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 Found... |
0296ccc6c942e1269dd7e026f0fbb126f0bdb027 | e9f297eed1aedb4e2b3fbb6762201a79b4c1162a | /code/raygun_blue_spin_final.ino | 32c89b3f890039e109ca87527028155f6b90270f | [] | no_license | Make3DPrintingProjects/Raygun-Pen | e997a316b172e5ba1a4c79b30eda038079c93780 | 42876700efdff763598a6e5786e34ab1cf0a4aa4 | refs/heads/master | 2016-08-05T21:32:24.691026 | 2015-10-28T14:33:39 | 2015-10-28T14:33:39 | 38,721,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | ino | raygun_blue_spin_final.ino | // Raygun Pen program
// Modified the original version from Adafruit Goggles project
#include <Adafruit_NeoPixel.h>
#ifdef __AVR_ATtiny85__ // Trinket, Gemma, etc.
#include <avr/power.h>
#endif
#define PIN 0
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(32, PIN);
uint8_t mode = 0, // Current animation effect
... |
738434fc32e93d1fe246316d3e24e967fb672e8e | e3587c7dce8512f9b83cc884054a2b5dc442d80e | /SmartProxy/src/main.cpp | 848981f65eba2b68e95b13389bff4e769512fc5d | [] | no_license | love-xunmeng/SmartPlatform | 1a79283e7d294e5155ae8ee490197154b743fef9 | cf311d9d414be50c0691c73dd2d4945ccaa532c6 | refs/heads/master | 2021-01-02T22:33:57.254300 | 2017-09-13T02:31:32 | 2017-09-13T02:31:32 | 99,339,644 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,427 | cpp | main.cpp | //#include "MySqlRunnable.h"
//#include "MySqlConnectionPool.h"
//#include "mysql_connect.h"
#include "RequestHandler.h"
#include "ServiceUpdater.h"
#include "crow.h"
#include "boost/asio.hpp"
#include "boost/make_shared.hpp"
#include "boost/shared_ptr.hpp"
#include "boost/thread.hpp"
#include <iostream>
using namespac... |
a3bbea17dd89d5b309750fd3d512b3e2c15ed95e | 210f4988362a9cfbce10d542797109e7b66a37e5 | /source/sim/resources.h | 785ccd4902d3834cb29d1d74ce6e3ac3e77e5a5a | [] | no_license | dmdware/sf2 | 1ab8215c93d3ea7231d28771cede45c7bc2df3d2 | 4068d511a82d0a293b7e9571d58f5fb7cb4c2730 | refs/heads/master | 2020-06-20T11:25:39.986160 | 2016-12-10T03:42:59 | 2016-12-10T03:42:59 | 76,088,530 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,423 | h | resources.h |
#ifndef RESOURCES_H
#define RESOURCES_H
#include "../platform.h"
//TODO MAX_ICONS 256 mod
struct Resource
{
public:
char icon;
ecbool physical;
ecbool capacity;
ecbool global;
std::string name; //TODO change to char[]?
float rgba[4];
std::string depositn; //TODO change to char[]?
int conduit;
std... |
1d8e8879c2ed8ce076d2cf4e2e88b7e8b691b37a | 8fd97c8310d59bf1ce9487e42dbf5395d4412345 | /source/utils/color/ccolor.h | 7674654c67b529013ef4dc5192d78653f35e7af4 | [
"Zlib"
] | permissive | gummikana/poro | 37c5dba0c11412e8ccdde5b4f5e949864c1e6e74 | 70162aca06ca5a1d4f92b8d01728e1764e4c6873 | refs/heads/master | 2023-06-22T17:48:43.103700 | 2019-09-17T15:32:31 | 2019-09-17T15:32:31 | 1,170,509 | 9 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 17,457 | h | ccolor.h | /***************************************************************************
*
* Copyright (c) 2003 - 2011 Petri Purho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permissi... |
dbd0eb3ec30de752ee9c5f1d1c67c322f612055a | 667a1619cf903f7274bb8df1e197f11e9d73a30b | /ui/src/monitor/2d/monitorgraphicsview.cpp | 8f970547204934f7c021d783601910a28ae59910 | [
"Apache-2.0"
] | permissive | bekiS/qlcplus | 0a8a205d8910e08da62b513bdd4ee8486c966e0e | cb927a87351782a59d8a46529d1a73f76ecca261 | refs/heads/master | 2021-01-24T20:25:57.445957 | 2015-05-03T21:22:16 | 2015-05-06T20:58:17 | 15,012,815 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,676 | cpp | monitorgraphicsview.cpp | /*
Q Light Controller Plus
monitorgraphicsview.cpp
Copyright (C) Massimo Callegari
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.txt
... |
9895c7076a1437f508f90b49b59bf5b8b2a0f56d | d9b5fc0de6efc5331b409740457bdca087a85509 | /ior/include/morbid/ior/grammar/generic_tagged_profile.hpp | ecbda7c7b81bfe341319cc863acc265fa2ed942f | [
"BSL-1.0"
] | permissive | expertisesolutions/mORBid | e3ffbd90d6fad4e9f69342dafb2a2eecb3580ffa | 3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b | refs/heads/master | 2020-05-23T11:19:00.547650 | 2013-04-17T23:20:17 | 2013-04-17T23:20:17 | 19,280,894 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 907 | hpp | generic_tagged_profile.hpp | /* (c) Copyright 2012 Felipe Magno de Almeida
*
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MORBID_IOR_GRAMMAR_GENERIC_TAGGED_PROFILE_HPP
#define MORBID_IOR_GRAMMAR_GENERIC_TAGGED_PROFILE_HPP
#... |
d70de9e002c1d66276422318e5aa0ed442a92d32 | 416263d4e0a89084e196eec1daa58aaf215e6efd | /Slider.h | 0bcbb44c52d6d1fc5f074937fd091a217f7f62be | [] | no_license | TheRealYoussef/SFML-Classes | 9e4e8f0577f74752ec3dbb8835b720bb71d72f16 | ebf9395c961ebe9eae12b03bab478f093b633307 | refs/heads/master | 2021-01-10T15:16:03.786275 | 2015-05-24T10:07:40 | 2015-05-24T10:07:40 | 36,149,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | h | Slider.h | #ifndef SLIDER_H
#define SLIDER_H
#include "Globals.h"
class Slider
{
private:
sf::RenderWindow *window;
sf::Texture socketTexture, sliderTexture;
sf::Sprite socketSprite, sliderSprite;
int amount;
float ratio;
bool pressed;
bool active;
public:
Slider();
void init(const std::string & socketFilePath, const s... |
c0c086d42757c3c3556dc5b84e88bc383acfad82 | 79f5a0941af83fe5f07219523f612a68ea489b9b | /1005.cpp | 70f80194a1aecb21254ad95c1b6cedfd03137363 | [] | no_license | luoshaochuan/PAT | d94e9a65c0e5ed34bb220af6fc8f54c4c256201b | 7ec3cedfd6938b36446d06550ee67d2d52852ddf | refs/heads/master | 2021-01-23T12:32:51.008313 | 2017-07-10T13:54:31 | 2017-07-10T13:54:31 | 93,169,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | 1005.cpp | #include<iostream>
#include<string>
using namespace std;
string map[10] = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };
void print_sum(int sum)
{
if (sum == 0)
return;
print_sum(sum / 10);
cout << map[sum % 10] << " ";
}
int main()
{
string input;
cin >> input;
int sum ... |
795433782f47b8ebc7f50a49bd07198b1cd078a8 | c6f8134410addbbbd94963e9ec5e7e03af0134a1 | /DungeonOfMadness/src/Executable/HelpExecutable.h | d22cd42b520fdb569214be1a06646c2d781a174a | [] | no_license | RunningFlip/DungeonOfMadness | 37d53efea6e65ff796b4b086fb7ce607b3bf5ec6 | aa7a97a0b9c13426d319c2e1b6cc121fe85e3e7e | refs/heads/master | 2022-12-13T20:54:25.527860 | 2020-09-08T17:16:46 | 2020-09-08T17:16:46 | 293,872,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | h | HelpExecutable.h | #pragma once
#include "Executable.h"
#include "../IO/Parser.h"
class HelpExecutable : public Executable
{
private:
Parser& parser;
public:
HelpExecutable(const std::string _keyword, const std::string _description, const StateContainer _stateContainer, Parser& _parser);
void OnExecute(const StateMachine& _stateMa... |
e8cc0482c4c1425e01b85f8f6423ebedf2005a57 | e3d5534ebe55eae7a9aaeb58c038bf20b705ce87 | /level1.cpp | e6794978fd14cc20405e31c3c9a6d61039c2d81c | [] | no_license | kankaicho/faked-kingdom-rush- | 19403daaee3a184ce90140082931fa87e3175f9c | 95f217f4b04d0f1202cf3951ea183f25ec313634 | refs/heads/master | 2023-04-07T13:24:31.200389 | 2023-03-20T06:28:07 | 2023-03-20T06:28:07 | 270,343,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,764 | cpp | level1.cpp | #include "level1.h"
Level1::Level1(QWidget *parent) : QWidget(parent)
{
this->setFixedSize(1280, 960);
this->setWindowIcon(QPixmap(":/Saved Pictures/AKKO.jpg"));
this->setWindowTitle("level1");
initialLocBtnAndTower();
//返回按钮实现
connect(backBtn, &MyPushbutton::clicked, [=](){
q... |
d82984da4998da148041bba0db8886d2f91fb8e2 | 2dd3cb3544f1e1fd307c12b6f476bd87668b4776 | /amplitude_calculations/src/main.cpp | b20fdadcf68af2b5da8c5df5b4564746c1607508 | [] | no_license | miklbjorn/KS-CP-violation-in-GGSZ | f38c3c7f8846c6b813b4427cbbefc25d9a569ffd | b2413ddbc152786ef4515233ddd288c120083b64 | refs/heads/master | 2020-05-16T05:42:25.932930 | 2019-04-22T17:46:37 | 2019-04-22T17:46:37 | 182,823,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,819 | cpp | main.cpp | #include <iostream>
#include "DtoKpipiAmplitude.h"
#include "EvtGenAmplitude.h"
#include "OutputMaker.h"
#include "tclap/CmdLine.h"
int main(int argc , char* argv[] ){
int seed, numpoints;
double r_value;
std::string kaon_type, output_dir, model;
//////////////////////////////////////////////////////... |
cdd68b708401a062bd1a96397f83dd501c4966b1 | b5f7b52677988562473629862e51b94b43eff90c | /tp5/sources/Joueur.h | 83dc4ee5cc55f3ffa8053f4d42aba10c0cc575ce | [] | no_license | PaulClas/Log1000 | 866efc33ce1de23d4c7a4ce270415921542e70cd | 8466fad9bb3a21f235bf38a51b69816717f393f9 | refs/heads/master | 2020-07-28T09:30:05.489731 | 2019-09-18T21:42:11 | 2019-09-18T21:42:11 | 209,380,711 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 968 | h | Joueur.h | #ifndef Joueur_H
#define Joueur_H
#include <string>
#include "Equipe.h"
using namespace std;
// Cette classe represente un Joueur
class Joueur {
public:
// Constructeurs
Joueur () {}
Joueur(string, string, int, string, string);
// Setters
void setNom(string nom);
... |
82ce99f5276b97cdf44a6663d9fa369d10b0517f | b0387e1717bef2ccd39371791191b35f99b9b6bf | /TFInstancing/src/TFInstancingApp.cpp | f983146d3d193691d29f3ba8c12926625f061cd1 | [] | no_license | rystylee/Cinder-Experiments | 1744049e50b21f7c211b51c495e50ea7eb4a9ee9 | ff8ce68c092874183d4f5faa1f45c3e62ac7f6ea | refs/heads/master | 2018-12-12T06:09:46.225774 | 2017-11-04T15:11:11 | 2018-09-13T04:45:34 | 108,731,736 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,167 | cpp | TFInstancingApp.cpp | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/CameraUi.h"
#include "cinder/params/Params.h"
#include "TFInstancing.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class TFInstancingApp : public App {
public:
void setup() override;
... |
edcc6a8108aadcaa7936940d469bad0f9a78fc79 | 3e74450bf09cbbe7018c9465bcca8d457e91e1b2 | /proyectoTwo/testLib/robologs.h | 1c2489f4ccbf6961b84b554fff94bdd64164fc5b | [] | no_license | rajila/raspberry-iot | 41e85e5135b6cd81f8623d696bfbcd068fca5893 | 76ba5de4a1b1871b2b524c49f8327d5bd34dbcdf | refs/heads/master | 2020-03-30T23:46:46.298278 | 2019-04-21T13:56:40 | 2019-04-21T13:56:40 | 151,713,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,563 | h | robologs.h | #ifndef ROBOLOGS_H
#define ROBOLOGS_H
#include <Arduino.h> //Permite utilizar los comandos de Arduino
#include <stdio.h>
#define _WATERLEVEL_PIN A0
#define _FORSESENSITIVER_PIN A0
#define _PINLED 2
#define _TIMESLEEP 250
class robologs //Definicion de la clase
{
public:
//Constructor de la clase
ro... |
7f1ab1d7dc3269aa3f8754b9f5d9db1402a8f53c | 69ce0ea02982df693bb9e7d0f5969bafe1c2c4d5 | /psp/ActiveList/ActiveList.h | 98c98f4e75de567aba104f7649efe6c41b10998f | [] | no_license | leonovvalentin/psp | c78a8e2e2d4bc01cd9466b1ac066ba7aa853eea9 | cf34bdaba21f843dc9debb0689eb7c77fcad45b3 | refs/heads/master | 2021-01-18T14:11:36.937748 | 2015-03-31T14:27:31 | 2015-03-31T14:27:31 | 17,769,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,138 | h | ActiveList.h | //
// ActiveList.h
// psp2
//
// Created by Valentin on 10/8/13.
// Copyright (c) 2013 Valentin. All rights reserved.
//
#ifndef __psp2__ActiveList__
#define __psp2__ActiveList__
#include "Job.h"
#include "utils.h"
#include <iostream>
#include <vector>
using namespace std;
class ActiveList
{
private:
... |
bd688b9146411224d31039d45e313c6ccbc39a3a | b0af22c12f1500936267c0f4ebd9c3a6a19b6de8 | /assemBase.h | e8073569953d6426c8b938a870ad1ccd32e74571 | [] | no_license | WJM96/ASMInterp | c8a543ace2dea518c53d38fc6f572f12f1a60e01 | 1be3d79b4f75d3088814663f791878fcd562fa52 | refs/heads/master | 2020-05-17T11:13:17.949212 | 2014-06-14T22:46:17 | 2014-06-14T22:46:17 | 20,838,861 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,711 | h | assemBase.h | /**************************************/
// Wesley McClintock
// Assembler & interpreter
// Desc: This was a school project.
// Some of the helper functions, like convertToNumber were
// provided by the teacher. I either didn't modify them,
// or only made minor changes.
//
// I'm aware that h... |
31671fa8a8df00b2e394d2e9bc3395c0e8df590e | 967e3d42f1bca15baf82ae7351a73b776e2e4310 | /UVAONLINEJUDGE/10991.cpp | 90a6b9bc9b967d23690f40146b3e873c76ed1952 | [] | no_license | kangli-bionic/competitive_prog | 857d735b9ab909063d643a9c30dd39b297c4fe5a | 3b5fd9b395ea7355e8d52f8d03dcf375ee567549 | refs/heads/master | 2023-03-07T00:01:40.993832 | 2021-02-21T15:29:22 | 2021-02-21T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | cpp | 10991.cpp | #include <bits/stdc++.h>
#define ff first
#define ss second
#define mp make_pair
using namespace std;
typedef long long ll;
const double PI = acos(-1);
pair<double,double> p[4];
int main(){
int t;
double r1,r2,r3,A,B,C;
scanf("%d", &t);
while(t--){
scanf("%lf%lf%lf", &r1, &r2, &r3);
A = r1+r2;
B = r... |
a66845c688e9cefd0dbf334f7642651881f5383a | 1db7b0d1abbd860e1ef081e61b5f72dd8079449f | /src/server/gaga_room.cpp | e662d46d8c5433fdef38d0e907b11d56610f7186 | [] | no_license | denkisdeng/gaga | 4386348acd85add6d350deab4827799df494503a | 1177fea7ccadb2e5fb5b7f67ad8143b28623fac8 | refs/heads/master | 2020-03-23T20:01:28.426889 | 2017-03-01T01:40:27 | 2017-03-01T01:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,538 | cpp | gaga_room.cpp | #include "gaga_room.h"
#include "gaga_server.h"
#include "gaga_client_agent.h"
#include "gaga_timer.h"
int Room::Join(const RakNet::RakNetGUID& guid, Player& playerInfo) {
if (m_playerList.size() > m_maxPlayer) {
return -1;
}
Player *player = nullptr;
ClientAgent *clientAgent = GagaServer::GetInstance()->FindCli... |
52a30622366d28bfbd47ce2c89a94a9315861315 | 0ca1bb89e877b3c9d3ae6f5baceb7ecb8e0120d4 | /Plugins/BugReport/BugReportPlugin.cpp | b96c4221e79e1f8a54546b4b82d6166cb7726530 | [] | no_license | MazingR/stormancer-sdk-cpp | 10451899e563d76407c6995306abaeaffc70752a | e90ab82d50c4e829eac2bf98326fe6efabea8d5f | refs/heads/master | 2020-03-20T21:35:33.262788 | 2018-06-15T09:16:07 | 2018-06-15T09:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | BugReportPlugin.cpp | #include "stormancer/headers.h"
#include "BugReportPlugin.h"
#include "BugReportService.h"
namespace Stormancer
{
void BugReportPlugin::sceneCreated(Scene* scene)
{
if (scene)
{
auto name = scene->getHostMetadata("stormancer.bugReporting");
if (name.length() > 0)
{
auto service = std::make_shared<Bu... |
dc177570dbaf005c4b0160cb33910873beb5a22c | e459d2c25a612f78529edcc66c8e110bf002e996 | /galaxrendering/renderingtest/src/Rendering.h | c17e4237c4e495b32c539eae0aa39fc6c1d970df | [] | no_license | srpeiter/ICCP | 3ae94371a90681d569adf7f92bceb66c144d1427 | e53bbeee6c9498cad09aa9496a1b1f388f44eb7e | refs/heads/master | 2021-01-10T00:54:07.203053 | 2015-05-15T14:36:18 | 2015-05-15T14:36:18 | 30,299,619 | 0 | 2 | null | 2015-02-23T23:53:11 | 2015-02-04T13:18:29 | C++ | UTF-8 | C++ | false | false | 1,099 | h | Rendering.h | /*
* Rendering.h
*
* Created on: May 14, 2015
* Author: sarwan
*/
#ifndef RENDERING_H_
#define RENDERING_H_
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/glu.h>
#include <SDL/SDL.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <stdlib.h>
#include <random>
#include <stdex... |
17a918956189e57367a88802a803a30184092f86 | 599f770a1aaaf61f17b51844ae93d1fabce3f434 | /logger.cpp | c3d2edb5cc534c7915f2d556549f7da38bfd58d4 | [] | no_license | zeroch/AirLogger | cae0589398dfacecdcb3654e270622ccbcc70083 | 22f24595f23cb1d5e5130802f2ce3a5ee8de0e22 | refs/heads/master | 2021-01-10T01:46:16.202162 | 2015-11-30T19:37:02 | 2015-11-30T19:37:02 | 45,637,008 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,487 | cpp | logger.cpp | #include "logger.h"
Logger::Logger()
{
}
Logger::~Logger()
{
if(m_log.is_open())
{
m_log << std::endl;
m_log << getCurrentTime() << '\t' << "Mission Complete. Close the log" << std::endl;
m_log.close();
}
}
Logger& Logger::getInstance()
{
static Logger m_Instance;
return m_Instance;
}
bool Logger::logS... |
074b59a354dd4792423afdc96e3cf39bc5f73a0e | c65e36bffd5a1f24205254a8879a5fc6685672dc | /src/cpp_pubsub/src/reviser.cpp | b209c32254e4770d053a290ca11467353fd695f0 | [] | no_license | mayanks888/Gtest_ros2 | f3445d978e1a9f938147ded0897445396b196b37 | eed20bda81ecc796f10e1e89745aa7e430daa17b | refs/heads/master | 2022-11-13T12:40:47.314436 | 2020-06-10T12:45:05 | 2020-06-10T12:45:05 | 266,098,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,583 | cpp | reviser.cpp | #include "cpp_pubsub/Reviser.hpp"
Reviser::Reviser() : Node("reviser")
{
rev_subscription_ = this->create_subscription<traffic_light_msgs::msg::TrafficLightStruct>("/snowball/perception/traffic_light/recogniser_output", 10, std::bind(&Reviser::topic_callback, this, _1));
reviser_pub = this->create_publisher<... |
7c29528e415c00d0ee8fadb632bb3f812fcf4e6f | 8c1390baf5549bafdd86d516ff61619dda88b349 | /include/omp_raii/omp_raii.hh | 15bb29def8687867376732e9309bc3a1f96612ae | [
"MIT"
] | permissive | Falkgaard/omp_raii | 136db304eb6ef89f0118ec02e27a4c4d8b44cda7 | 3bb46cfafda6d028bdac91e089e618e2df84730f | refs/heads/main | 2023-08-27T01:20:16.381470 | 2021-11-08T17:26:23 | 2021-11-08T17:26:23 | 425,491,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,050 | hh | omp_raii.hh | #pragma once
#ifndef OMP_RAII_HH_1A5VSVG6
#define OMP_RAII_HH_1A5VSVG6
#include <omp.h>
class omp_raii_lock_t final {
private:
omp_lock_t m_lock;
public:
// RAII scoped access to an omp_lock
class omp_raii_lock_pass_t final {
private:
friend class omp_raii_lock_t;
omp_lock_t *m_lock_ptr;
... |
50061d10a90bebb8e04151bbfc4cc7061e867ce7 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /MuonAnalysis/MomentumScaleCalibration/test/Macros/RooFit/CompareBias.cc | a086fccc4c8a350640abf21fef3d1ba3be3e6729 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 7,451 | cc | CompareBias.cc | #include "TCanvas.h"
#include "TFile.h"
#include "TH1.h"
#include "TString.h"
#include "TROOT.h"
#include "TLegend.h"
#include "FitMassSlices.cc"
#include "Legend.h"
class CompareBias
{
public:
CompareBias() : file1_(0), file2_(0)
{
gROOT->SetStyle("Plain");
doFit_ = false;
TString fileNum1("0");
... |
ad93d05fd8da72f225f308eb88aeca0c000174eb | c66e921b5a2a06cb965f4951b24597a088e4209b | /src/animation_frame.h | 73499eeed03f56f1c012a69ae92e2ac6356677fc | [] | no_license | s9w/terminal_moo | 17ab757aeea97729cb72569c1b18d0a853056a2c | 7688d6d40db9f79eb3c2d2c53f5cf290a4c52df4 | refs/heads/master | 2022-12-30T07:14:22.467127 | 2020-10-19T14:40:08 | 2020-10-19T14:40:08 | 304,576,742 | 24 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 924 | h | animation_frame.h | #pragma once
#include "helpers.h"
#include <algorithm>
namespace moo {
struct AnimationFrame {
constexpr AnimationFrame(const size_t frame_count, const Seconds period, const double initial_progress)
: m_frame_count(frame_count)
, m_period(period)
, m_time_state(initia... |
6e67e224e238099b7be18ebf6c334873ae40931b | db364b3e3eb572b618fdde7f49c0c9d0371ceb50 | /undergraduateStudent.cpp | d74e685e744e6bfff7c7e1749cd5fefbdd79bd8c | [] | no_license | GabrielCE/universityDatabase | f5a649a91b906cb3e8b216a8356873b8e8270626 | 99f8a9d86ffad3c55f987181c1edf58dd56e7a8e | refs/heads/master | 2020-05-23T07:49:02.523683 | 2017-01-30T18:28:46 | 2017-01-30T18:28:46 | 80,447,581 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,064 | cpp | undergraduateStudent.cpp | // CPP file for UndergraduateStudent class
#include <iostream>
#include "undergraduateStudent.h"
using namespace std;
// constructor
UndergraduateStudent::UndergraduateStudent() : Student() {}
// end constructor
// setGradeClassification function
void UndergraduateStudent::setGradeClassification(string ... |
c43d5fd73a7c8914fec76b3afec6f52706b37bba | d2f0a9a335c38134e1d669227f6e4c05e9f0c06a | /SD semester projects mostly/Double linked list/ElemDLList.h | a495278c3a3b0f1680d96e6fbeaab6daf600a32e | [] | no_license | Anton94/OOP-Cplusplus | 37e9cb9ab9a383b893f36a56fe69862c61a16607 | 7fe21e8cf103bcbb43591f17b5cb095f3ffb6f8f | refs/heads/master | 2021-01-10T21:45:50.652354 | 2017-02-01T15:06:04 | 2017-02-01T15:06:04 | 25,372,476 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,311 | h | ElemDLList.h | #pragma once
/*
Boxes which will contain the information of the list.
One parametar for the data.
Two pointers to the next box and the prev box.
Cascade destructor- deletes every cells untill 'next' points NULL.
*/
template <class T>
struct ElemDLList
{
public:
ElemDLList();
ElemDLList(const T& x, ElemDLList<T... |
e668acbde619f3789c6461af6e5788b20a6c3cdb | 3efc07fc7056d4f7c31cc820ed580d6348f9f94c | /RecursiveRaytracer/src/graphics/scene.h | c04c82e8df7655ba59b92a1397a31272cacc9f99 | [] | no_license | artpark/WhittedRayTracer | 0ed833d4c297f9efa315e6f5ec8bddf220d46e98 | 609e785d7a9a4a0b2e69a87f865369f0305154fa | refs/heads/master | 2020-08-06T16:40:35.770369 | 2019-10-17T22:39:38 | 2019-10-17T22:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,341 | h | scene.h | #ifndef Scene_h
#define Scene_h
#include "../vect.h"
#include "geometry/meshTriangle.h"
#include "geometry/sphere.h"
#include "lightSource.h"
#include <iostream>
#include <list>
using namespace std;
void fresnel(const Vec3 &I, const Vec3 &N, const float &ior, float &kr)
{
float cosi = clamp(-1, 1, I.dot(N));
fl... |
8dd99f082691de272fa8c1b13baa60599b8f5bc2 | e411243364f278b90a573369bc14d8a237e6b82d | /Engine/Rect.h | b5d33fc3dbde738330f0efae3d5a0dadfc8471dc | [] | no_license | outincrimson/Pong | 6d073734795d2da7219a2f9303fdd76dd1ff6d42 | 2efc62f29e4f14f7207ad452289f793a7f37aba0 | refs/heads/master | 2020-03-24T06:44:56.807968 | 2018-07-27T12:13:32 | 2018-07-27T12:13:32 | 142,539,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,562 | h | Rect.h | #pragma once
#include "Vector2.h"
template<typename T>
class Rectangle_
{
public:
Rectangle_() = default;
constexpr Rectangle_(T in_left, T in_right, T in_top, T in_bottom)
:
left(in_left),
right(in_right),
top(in_top),
bottom(in_bottom)
{ }
constexpr Rectangle_(const Vector2<T>& in_top_left, const Vecto... |
f434a7a54f0f30a3822abacafbcc58f62fbea28f | 8c9f6b358b693cbb6ced1eef4d3922a59d4aedc9 | /generators/src/structured_models/generalized_gn.cpp | 900227cfbd84f145c3036f350d1b9ef215e7259f | [
"MIT"
] | permissive | jg-you/network-archaeology | a72fec2d50e992ba152616ed10316ee1f0e3ef68 | 0cd4758d18414c3226bd6dc1e0bd8f92b4ac4214 | refs/heads/master | 2021-07-06T08:14:00.501974 | 2020-07-15T21:33:00 | 2020-07-15T21:33:00 | 137,176,458 | 5 | 2 | MIT | 2020-07-15T21:33:01 | 2018-06-13T07:07:37 | Python | UTF-8 | C++ | false | false | 3,023 | cpp | generalized_gn.cpp | #include "gn.h"
generalized_gn_model::generalized_gn_model(double a,
double alpha,
double b,
unsigned int m1,
unsigned int m2,
double gamma,
... |
9c0fd6be6176e1c9b5eb7ce2276cd853ec3f1046 | 6d00129928082010a2156e9416f74ba6ab8d162d | /modules/cadac/vehicle.hh | 6c07fd18e59c76360d02d84cfc137373b53d50fb | [
"BSD-3-Clause"
] | permissive | mlouielu/mazu-sim | 095dda66190c5783b3db38b5bbdd58c29ff220e7 | fd2da3a9f7ca3ca30d3d3f4bbd6966cb68623225 | refs/heads/master | 2020-09-24T14:04:13.981499 | 2019-11-17T15:18:38 | 2019-11-17T15:18:38 | 225,775,896 | 1 | 0 | BSD-3-Clause | 2019-12-04T04:03:24 | 2019-12-04T04:03:23 | null | UTF-8 | C++ | false | false | 3,128 | hh | vehicle.hh | #ifndef __VEHICLE_HH__
#define __VEHICLE_HH__
#include <armadillo>
#include <cstdio>
#include <cstdlib>
#include <map>
#include <string>
#include <vector>
#include "aux.hh"
#include "cadac_constants.hh"
#include "component.hh"
#include "vehicle_var.hh"
/********************************* TRICK HEADER *******************... |
8f4db0f335bf8343a021caf5385b38eab6178d74 | e549fa7f97f979bbdfadd7a030a3f5191065d5b2 | /SATIP-Client/scanwidget.h | 43072621ee3b4dbbe6a8f2dc99dcf227ffbeebf5 | [] | no_license | mgandi/SAT-IP-Tools | 6cec86148bfb379125b8cc19e2f01ec32e18536c | 748c94527037374dc504f90c9f1f71199397de37 | refs/heads/master | 2021-01-25T06:36:53.282165 | 2014-03-21T16:31:08 | 2014-03-21T16:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 942 | h | scanwidget.h | #ifndef SCANWIDGET_H
#define SCANWIDGET_H
#include <QWidget>
namespace Ui {
class ScanWidget;
}
class GatewayDevice;
class ScanWidgetPrivate;
class ScanWidget : public QWidget
{
Q_OBJECT
public:
explicit ScanWidget(GatewayDevice *device, QWidget *parent = 0);
~ScanWidget();
private slots:
void on_c... |
a6e000d6f67dc3741f4dba5eec7ad4c58756a891 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-lex/include/aws/lex/LexRuntimeServiceClient.h | f5b0e73c276f7962d0ff82a94d9708df451d9c5e | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 19,146 | h | LexRuntimeServiceClient.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lex/LexRuntimeService_EXPORTS.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/client/AWSClientAsyncCRTP.h>
#inc... |
56375a47732c108c225871b85872aa637b9684cc | 56ba70566a4c63168b3cbee943c7b90d68a1126c | /MIDI_synth_test_assembler/MIDI_synth_test_assembler.ino | dad78a0914fb645d50972debc8142cae093afdc7 | [] | no_license | theawsomeavr/arduino-midi-synth | 70ab1f6685c3b847effa1f526031e2f0b122a698 | 8395a4e782f9a671d46d28c5507033fd7544c899 | refs/heads/master | 2021-05-12T10:59:27.234450 | 2018-01-13T20:27:22 | 2018-01-13T20:27:22 | 117,374,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,522 | ino | MIDI_synth_test_assembler.ino | /*
Pin mappings
0 \__ serial, used for MIDI
1 /
2
3
4
5 button board slave select - HIGH to transfer data
6 matrix enable pin - LOW for matrix is on
7 matrix slave select pin - LOW to transfer data
8
9 \_ audio output pins - only 9 is wired up for now
10 /
11 SPI \__ MOSI and MISO, can't re... |
306aa499514015a70aef1099fc1eb9b8ea13d54a | 52b62a8f8987d19a2261d965a24dca525bec9fae | /include/webgl_object.h | 2c71a42981a017216e75628d5a4698947c9a94ee | [
"MIT"
] | permissive | blockspacer/libhtml5 | 1266b626cc935b6359b051662a42800ae235d824 | 46e18a9122097b4d681c91f0747aa78a20611cab | refs/heads/master | 2020-08-27T18:26:46.528499 | 2019-09-10T03:36:48 | 2019-09-10T03:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | h | webgl_object.h | #pragma once
#include "html5.h"
NAMESPACE_HTML5_BEGIN;
class WebGLObject : public Object {
public:
WebGLObject(emscripten::val v);
virtual ~WebGLObject();
};
NAMESPACE_HTML5_END;
|
5bc52e96ba1ecd7b37b8ca2f903654794d7c3829 | 9ae5edf1371569f182ba3dd87bd2414ec98f523c | /uva/graph_connectivity.cpp | 467caa716365996a3f0bd575bb801951fea82d33 | [] | no_license | Manan007224/street-coding | 19000ed422563ca776053ec33adcd4e0b2734a8d | d3337805e0406684bcb3392898df163d315db624 | refs/heads/master | 2020-03-08T02:01:33.063948 | 2019-09-16T04:33:22 | 2019-09-16T04:33:22 | 127,847,522 | 1 | 0 | null | 2019-07-06T13:06:05 | 2018-04-03T03:47:59 | C++ | UTF-8 | C++ | false | false | 795 | cpp | graph_connectivity.cpp | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef pair<int,int> pii;
typedef long long i64;
#define pb push_back
#define fi first
#define se second
int find(vector<int> &arr, int x) {
if(arr[x] == x)
return x;
arr[x] = find(arr, arr[x]);
return arr[x];
}
void j... |
f8b26b7f468ac52d5c73ce1587238c95b6c14c2e | 9de1a0e29ff7c9dc2933368440aff6f6d62e9eba | /20/puzzle20.cpp | 77a29d8a9b66a258c1ef14744cce3f59810f7f6d | [] | no_license | oatflake/aquaq_challenges | 250584181425e3b80b745626179298c1f99afc6d | 2eb5222f57e7360b280e6adc1ff222a210a6c3a5 | refs/heads/main | 2023-05-24T00:52:00.604844 | 2021-06-19T05:05:50 | 2021-06-19T05:05:50 | 376,616,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | cpp | puzzle20.cpp | #include <iostream>
#include <string>
#include "../helper.h"
auto readInput() {
std::vector<std::vector<int>> result;
auto lambda = [&](const std::string& line){
auto parts = split(line, " ");
std::vector<int> cards;
for (const auto& part : parts) {
if (part == "J" || part =... |
2670a528bf4843147cfff288b2f678f50e32a5e7 | c9737f2433be94df20ce6a78605e3168d761391e | /Training/bfs.cpp | a7bdde42f18133f6f8aa32a737400e0e0928ad60 | [] | no_license | leehosu/coding-test-cpp | b8d0e3f5830e3cf1bd21d7780b8a4ce40ba96a2b | 3946ac32d913354119a137f60dbdd89cad7bd852 | refs/heads/master | 2020-12-02T04:52:09.277796 | 2020-02-19T11:24:52 | 2020-02-19T11:24:52 | 230,893,844 | 0 | 0 | null | 2020-02-19T11:24:53 | 2019-12-30T10:14:18 | C++ | UTF-8 | C++ | false | false | 778 | cpp | bfs.cpp | #include<iostream>
#include <queue>
#include <vector>
using namespace std;
int num = 7;
int visited[7];
vector<int> a[8];
void bfs(int start){
queue<int> q;
q.push(start);
visited[start] = true;
while(!q.empty()){
int x = q.front();
q.pop();
cout << x<< "\n";
for(int i=0;i<a[x].size();i++){
int y ... |
1309b088d0cfce1c0ff3413f8fb7dc82840eeeef | a8eecd61118a0d67c447eb2e83682196530fb445 | /src/Magma/Serializable.hpp | 4d1dc75c5898c7bb29af7c0936671cf0de0ff627 | [
"BSD-3-Clause",
"Zlib"
] | permissive | RiscadoA/Magma-Engine-2 | 226d838d569836edfd6bcc03e11a73dc47dd50f5 | 8a1471f7dcdf597dea3ba0bdb03ae31b10f86294 | refs/heads/master | 2021-09-04T17:21:14.684829 | 2018-01-20T08:37:33 | 2018-01-20T08:37:33 | 115,653,338 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,156 | hpp | Serializable.hpp | #pragma once
#include "Exception.hpp"
#include <fstream>
#include <string>
namespace Magma
{
/// <summary>
/// Thrown when an object's serialization fails
/// </summary>
class FailedToSerializeException : public Exception
{
public:
inline FailedToSerializeException(const char* msg) : Exception(msg) {}
};
... |
1658029bf3097e60c96f6c1d77e331bdd493e21f | 6027629419f1885c98dd5be07bc4c2719a667a17 | /TimeFutebol/TimeFutebol/Empresa.cpp | 395ac2fc6efe66a0d213e0615b026b2c2d293515 | [] | no_license | luizaq/prog2cpp | b164d780746019a3d44f7f1de1b0eb1c23948eab | dd8c637ad2be9344b528d23ca0f7327a3be5e192 | refs/heads/main | 2023-06-02T00:27:17.878787 | 2021-06-19T23:58:01 | 2021-06-19T23:58:01 | 364,073,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21 | cpp | Empresa.cpp | #include "Empresa.h"
|
fdea77b50de8d08076e8ef9236c22bd80dafade5 | 325850abbaf25c4392d1742a47a55e00209b0bfa | /Lesson 11/Project1/Project1/Person.cpp | 09318c2de6504c18060cfb9bedadf667c2761205 | [] | no_license | ushockit/CPlusPlus | 3c88c8b494632def73a28eeab78b14486524b67c | c0142f12ed5c1216fdb457b3b5fa55903bc71ee8 | refs/heads/master | 2023-03-09T17:55:46.382556 | 2021-02-27T10:04:27 | 2021-02-27T10:04:27 | 322,824,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | cpp | Person.cpp | #include "Person.h"
Person::Person()
{
firstName = lastName = "";
age = 0;
}
Person::Person(string firstName, string lastName, int age)
: firstName(firstName), lastName(lastName), age(age) {}
int Person::getAge() const
{
return age;
}
string Person::getFirstName() const
{
return firstName;
}
string Person::ge... |
142281bb984f6d1e759a00af5983ed665fe46bc2 | bbe104f353922f315373538d707748f4dacf2f1a | /OpenGL/NetBeans/OpenGLTuto/Material.cpp | f6bc9e79544dbdec4d14f369d82bc404ae2637de | [] | no_license | ZAO29/3D-2D | 4ed4bf103e24f04f7ef2c80b0987a7c52fe00298 | a73b91b48aaf4ee23f650ba84f739235444429bc | refs/heads/master | 2023-04-30T06:21:43.716570 | 2023-04-20T09:27:40 | 2023-04-20T09:27:40 | 163,847,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | cpp | Material.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Material.cpp
* Author: nicolas
*
* Created on October 1, 2019, 3:35 PM
*/
#include "Material.h"
Material::Materi... |
201dc98426fdca91bd82d24f3c5ad2a06458900c | af5e823352405d0fec2528733e90f90112862d83 | /codechef/SNCKQL19/chef-and-operations.cpp | def4ae9b8b276d15b78ddb37f39dd99d33c2f7fc | [] | no_license | sahilbajaj82/my-code-repo | 3705fb9c04eeb579c9f3bc299cd16bf144573e45 | bffc72d7bc87d6682aa225139a28cc770e53f1e4 | refs/heads/master | 2022-12-04T07:02:50.286754 | 2020-08-18T07:30:37 | 2020-08-18T07:30:37 | 225,840,339 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | chef-and-operations.cpp | #include<bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t--) {
int n;
cin>>n;
int *a=new int[n];
int *b=new int[n];
for(int i=0;i<n;i++)
cin>>a[i];
int flag=1;
for(int i=0;i<n;i++){
cin>>b[i];
b[i]=b[i]-a[i];
if(b[i]<0)
flag=0;
}
for(int i=0;i<n-2;i++) {
i... |
ac4e326311899bf69693c5c23569d5c70ce2d863 | 05a8a544e70d3f1ddd633137fee423fa7a453c6e | /include/Strat/stratlaymodgen.h | 5287b91cc9127b1fcfcb79a66f498c6e35d82bdb | [] | no_license | whztt1989/OpendTect | c55de13e802b14dfd30b6d74ce03999c0bf39e1a | 602a5516e4d801edaa981e9943c6da17e3e56672 | refs/heads/master | 2021-01-12T17:37:49.093038 | 2016-10-20T13:16:04 | 2016-10-20T13:16:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | h | stratlaymodgen.h | #pragma once
/*+
________________________________________________________________________
(C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
Author: Bert
Date: Oct 2010
________________________________________________________________________
-*/
#include "stratmod.h"
#include "executor.h... |
5b804f3affe4bdc337a819b6cff870150690aa2f | cec0178fdd48c945d8e64502f458ba3a8463e5b4 | /Classes/Addons/Addon.cpp | 04dca4a0539930b1660a8590d9c0926e5a00b915 | [] | no_license | Stals/TilesFight | 6ecc8ac670c9bf43c661144d3dd7ec395147ef60 | 1f1829ae396e5a1abc2b38e570a1b049286888b8 | refs/heads/master | 2020-12-30T19:45:10.880504 | 2014-06-01T14:58:36 | 2014-06-01T14:58:36 | 15,360,061 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | cpp | Addon.cpp | //
// Addon.cpp
// SampleGame
//
// Created by Stanislav Korotaev on 1/26/14.
// Copyright (c) 2014 Bullets in a Burning Box, Inc. All rights reserved.
//
#include "Addon.h"
Addon::Addon(Hexagon* hex, Addon::Type type): hex(hex), addonType(type)
{
CCNode::init();
}
Addon::Type Addon::getType() const
{
retur... |
a6d7793429be5faca41fb179a517b69f492a00ec | 21a23e713a7121f1553d45a9bcf9c320f6e5a235 | /src/src/ExecuteVictimInteraction.h | f794c9e26e127a64ac5ae35cd53c594ae5cdca18 | [] | no_license | Shtivi/RDR2-Bounties-Expansion | 0615941076dd0b5c331a0c76a1ec7070f6d9345c | cfe60086beb08e053d206db4bc352ce451b69ebd | refs/heads/master | 2021-07-18T13:41:06.739209 | 2021-05-15T13:58:12 | 2021-05-15T13:58:12 | 248,749,278 | 4 | 5 | null | 2020-10-20T17:06:11 | 2020-03-20T12:24:57 | C++ | UTF-8 | C++ | false | false | 659 | h | ExecuteVictimInteraction.h | #include "Main.h";
class ExecuteVictimInteraction : public SyncPlayable
{
private:
Ped victim;
Ped killer;
public:
ExecuteVictimInteraction(Ped victim, Ped killer)
{
this->victim = victim;
this->killer = killer;
}
void play()
{
Vector3 position = ENTITY::GET_ENTITY_COORDS(killer, 1, 1);
Object seq;
... |
db9cac13ab330822b9e0dbed1315f60f2f9fe9bc | 842adb07f7901f2f9cf2d006eff6c4d5dc5d337b | /PA3/Scheduler.h | b2deb7e4ff0de0e0f43e5decba0bd83c96166308 | [] | no_license | acckaufman/Doc-Office-Scheduler-AADS | 0034bdd3d88510cf3118be63224a56dd08ae16ba | f14c45ba9b9d6040e2a634658ee714f9fa7669ef | refs/heads/master | 2021-01-11T13:38:31.399930 | 2017-06-21T21:26:28 | 2017-06-21T21:26:28 | 95,047,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,762 | h | Scheduler.h | //Amanda Kaufman
//CISS 350A
//Programming Assignment 3
//This is a scheduler data structure that holds a list of exam rooms in a doctor's office
//and has functions to check doctors and patients in and out of the clinic.
#pragma once
#include <iomanip>
#include <string>
#include <fstream>
#include <cstddef> //For NU... |
e4bf41a9a40ed4cad0a7983e7e5bcc05672afe9a | b88c23a80df02c5214bf62c968a0479d7f2b74f9 | /test/test-600-others/sources/tools/synch/test-synch-cpp98.cpp | a12dbb273ba409fc2506a1d1af8740b78740fb95 | [
"MIT"
] | permissive | Kartonagnick/tools | 6458cab1754a9d521755781f4301428189780fad | 5e4027d9e734adff375b6d56092ffb80364a0389 | refs/heads/master | 2023-04-28T15:15:42.141295 | 2021-05-16T20:39:09 | 2021-05-16T20:39:15 | 340,688,558 | 0 | 0 | MIT | 2021-03-17T20:34:52 | 2021-02-20T15:35:50 | C++ | UTF-8 | C++ | false | false | 2,823 | cpp | test-synch-cpp98.cpp | // [2021y-02m-21d][23:57:05] Idrisov Denis R.
#include <mygtest/modern.hpp>
//==============================================================================
//==============================================================================
#ifdef TEST_TOOLS_SYNCH
#ifdef _MSC_VER
#define dTEST_COMPONENT tools
#define dT... |
1c483d52e33c645668cae07c1053846784a7749b | 03666e5f961946fc1a0ac67781ac1425562ef0d7 | /src/avt/Pipeline/Pipeline/avtContract.h | ed64fcce257838596b1ed75332cd9eeae1ee779d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | visit-dav/visit | e9f81b4d4b9b9930a0db9d5282cd1bcabf465e2e | 601ae46e0bef2e18425b482a755d03490ade0493 | refs/heads/develop | 2023-09-06T08:19:38.397058 | 2023-09-05T21:29:32 | 2023-09-05T21:29:32 | 165,565,988 | 335 | 120 | BSD-3-Clause | 2023-09-14T00:53:37 | 2019-01-13T23:27:26 | C | UTF-8 | C++ | false | false | 7,953 | h | avtContract.h | // Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
// ************************************************************************* //
// ... |
bc6db65f4dc4242f629e41339241114ef096745f | 7096a8051fb3836e85c694de1e7cfb4d651139ba | /insert_operation.h | defc65c169e28d4c3d72a708d1d739d91d75378a | [] | no_license | imjch/jcSQL | b5832181a5ab7ba11dd870619955db62781ef3c5 | e437b81a33ae2c121b0df47271cbc93733fe329f | refs/heads/master | 2020-05-29T16:26:34.152158 | 2014-08-25T15:20:51 | 2014-08-25T15:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | h | insert_operation.h | #pragma once
#include "operation.h"
#include <list>
#include "attr_val_table.h"
class insert_operation:public operation
{
public:
insert_operation(const std::string&,attr_val_table&);
insert_operation();
~insert_operation();
void set_attr_val_table(attr_val_table&);
void add_attr_val_pair(attr_val_p... |
c055bbe88621618e7c5b923ed3c26e4c0556957e | 1217df68d508d3dc927e951a81b8ffbaf8832549 | /acmicpc.net/2167.cpp | e1241159069b6758da1b64cb5a9dfb891facd708 | [
"MIT"
] | permissive | kbu1564/SimpleAlgorithm | 200ae0dbaa76d127881699a229a2258b358e696c | 7e5b0d2fe19461417d88de0addd2235da55787d3 | refs/heads/master | 2021-01-16T23:57:10.112064 | 2017-04-23T03:44:12 | 2017-04-23T03:44:12 | 56,262,760 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | 2167.cpp | #include <iostream>
using namespace std;
int A[301][301],n,m,k,sx,sy,ex,ey;
int main() {
cin >> n >> m;
for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) cin >> A[i][j];
cin >> k;
for (int i = 0; i < k; i++) {
cin >> sx >> sy >> ex >> ey;
int s = 0;
for (int si = sy-1; si < ey; si++) for (int ... |
77fec327d75e8fc50d17bc5e2cb57284d4c450e7 | f82e503ba23799c1c55a5fe8cd06aa2e7f15b667 | /source-code-c/06_15_soma_elementos.cpp | 4c0db819629e805adf620ad97afd50dd19f470cf | [] | no_license | jknery/projetos-gerais-cpp | ac837dc4c6d0540099638ca7346ec7ab00307245 | e496905b49478b144ebb8299beb5c7dbaafc95b0 | refs/heads/master | 2022-11-23T17:26:08.682887 | 2020-07-23T22:35:31 | 2020-07-23T22:35:31 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,267 | cpp | 06_15_soma_elementos.cpp | /********************************************************************
* Programa que lê, implime uma matriz e a manipula como um array *
* para somar seus elementos *
********************************************************************/
#include <stdio.h>
#include <stdlib... |
bfa19c93431946516f30def62a12ad9bea1f482c | e1fa70fbd8ba7b61689794856f35389c517fdd94 | /UI/App/inc/Te2Settings.h | b07e02d956e000d2bfd496902844b693d49fda39 | [
"MIT"
] | permissive | sunjinbo/Tetris2 | e589ffbfebb8a7d0402dc603ee0f73c32dbf2b19 | 28b4d4c842b74fe1afc5874b16d0bd39b68f3b1c | refs/heads/master | 2021-07-21T13:18:54.502342 | 2017-10-30T12:16:13 | 2017-10-30T12:16:13 | 108,845,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | h | Te2Settings.h | /* ====================================================================
* File: Te2Settings.h
* Created: 09/17/10
* Modifed: 09/17/10
* Author: Sun Jinbo
* Copyright (c): Tieto, All rights reserved
* ==================================================================== */
#ifndef T_TE2SETTINGS_H
#define T_TE2SETT... |
f78ebc65cf783cddbfc6fa654a3e5a1cdbfb44b4 | 1850fe58a070c6fcf64ac3644a0982ec93bd1b74 | /renderer/base/decoderobj.h | 84c83ddee5a1a49e90cf58344f83d551897170bd | [
"MIT"
] | permissive | TheExceptionist/software-renderer | 37ed80cc17675ef74756b32f306b22670d470de3 | dfeb24eb4ac6f90552e65cc7e0cf97d7d693ad7b | refs/heads/master | 2021-04-28T01:10:38.344736 | 2013-02-24T11:06:17 | 2013-02-24T11:06:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 867 | h | decoderobj.h | /*
* decoderobj.h
*
* Author: flamingo
* E-mail: epiforce57@gmail.com
*/
#ifndef DECODEROBJ_H
#define DECODEROBJ_H
#include "resourcedecoder.h"
#include "math/vertex.h"
namespace base
{
class DecoderOBJ : public ResourceDecoder
{
void appendVertex(std::string &line);
void appendFace(std::stri... |
7c28bf08541e429d3f3549a1dd1feb22d63de562 | be8b9231c92e6c184f0692c92df9667be3770cb1 | /Musical_Instruments_2017_2018/Musical_Glove/OLD CODE/gloves/Gloves_R/teensy/avr/libraries/Wire/Wire.h | 86a15fbf4339545d6ab1cc9b4dfe0affba31f016 | [
"MIT"
] | permissive | Pocketart/typhoonclawvex | def0f4a607c90b1bafb180466dfa12ddd8a480c1 | eb4b523c13541b2b9136d32259bd0399b46a289e | refs/heads/master | 2021-09-15T07:26:07.218099 | 2018-05-07T02:20:15 | 2018-05-07T02:20:15 | 105,268,399 | 4 | 3 | MIT | 2018-05-04T17:30:49 | 2017-09-29T12:12:32 | C++ | UTF-8 | C++ | false | false | 3,222 | h | Wire.h | /*
TwoWire.h - TWI/I2C library for Arduino & Wiring
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of... |
0a7f2006ee95dcab8925ba9e13bf473134adf7e0 | f6ab96101246c8764dc16073cbea72a188a0dc1a | /volume103/10311 - Goldbach and Euler.cpp | aa0a2d2fc121724c30701ebde86eb0d3f50dc8ea | [] | no_license | nealwu/UVa | c87ddc8a0bf07a9bd9cadbf88b7389790bc321cb | 10ddd83a00271b0c9c259506aa17d03075850f60 | refs/heads/master | 2020-09-07T18:52:19.352699 | 2019-05-01T09:41:55 | 2019-05-01T09:41:55 | 220,883,015 | 3 | 2 | null | 2019-11-11T02:14:54 | 2019-11-11T02:14:54 | null | UTF-8 | C++ | false | false | 1,322 | cpp | 10311 - Goldbach and Euler.cpp | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define maxL (10000>>5)+1
#define GET(x) (mark[x>>5]>>(x&31)&1)
#define SET(x) (mark[x>>5] |= 1<<(x&31))
int mark[maxL], p[5000], pt = 0;
void sieve() {
register int i, j, k;
SET(1);
int n = 10000;
for(i = 2; i <= n; i++) {
if(!GET(i)) {
... |
1a77f66df31b078b1a93e7857cf37ca179a812e1 | fb6245383e7e7d53ab94b6eb2bb09469db466c58 | /mcast_lib/ldm7/SendNotifier.h | 39172e991728390b494f243e1cf9a5a035322853 | [
"BSD-2-Clause"
] | permissive | Unidata/LDM | 99122b6e1fef032af263972be3b56eb83d3074fd | 293344411b1a4fe35bd0e9c1eda8614a6d201d51 | refs/heads/main | 2023-09-03T01:06:51.376173 | 2023-02-16T18:40:06 | 2023-02-16T18:40:06 | 2,667,699 | 33 | 28 | NOASSERTION | 2022-12-28T22:03:54 | 2011-10-28T20:21:39 | C | UTF-8 | C++ | false | false | 1,599 | h | SendNotifier.h | /**
* Copyright 2014 University Corporation for Atmospheric Research. All rights
* reserved. See the the file COPYRIGHT in the top-level source-directory for
* licensing conditions.
*
* @file PerProdNotifier.h
*
* This file declares the API for a class that notifies the receiving
* application of events on a pe... |
12c4e1a5bbf9261643c2dee604c6d4fbd1a12cc7 | 61c1b56f814f9cbdd7f8427cfdd10639017ad167 | /Friends/Friends/ClassRemote.cpp | f9afe238dd59333d50f6749349cfeccc10fbfe25 | [] | no_license | Wisnia144/Ch15_TVRemote | f12e23da510d1a6b8ef71c5da6481dfffb8e49f2 | b8bddf3f796afb7990826bfbe7f86c745b427fc1 | refs/heads/master | 2021-01-20T06:17:06.656475 | 2017-04-30T15:53:30 | 2017-04-30T15:53:30 | 89,859,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | cpp | ClassRemote.cpp | #include <iostream>
#include "ClassRemote.h"
#include "ClassTV.h"
/*
Remote():mode(1) {};
void OnOff(void);
void volUp(void);
void volDown(void);
void chUp(void);
void chDown(void);
*/
void RemoteX::OnOff(Tv & t)
{
std::cout << t.onoff();
}
void RemoteX::volUp(Tv & t)
{
t.volume++;
std::cout << "vol... |
2f05addaf84a1d1fe2e0964b0821a461929ffac8 | e48ef962341d355b80d7f9eb2a74ab61e645d9e7 | /src/lib/handler.cpp | 832c2413fda451a5836e6a94690a8d94b09f1a8a | [
"Apache-2.0"
] | permissive | kinglee1982/FaceRecognitionTerminalDemo | a400c4145c8cbe2ee1eaacd63f079102a23187cf | 5e197011a87403d2433f691b8390ec340432b2be | refs/heads/master | 2022-07-19T12:27:51.286164 | 2020-05-15T03:04:33 | 2020-05-15T03:04:33 | 264,863,863 | 2 | 1 | Apache-2.0 | 2020-05-18T07:37:16 | 2020-05-18T07:37:16 | null | UTF-8 | C++ | false | false | 848 | cpp | handler.cpp | #include "handler.h"
#include "app/face_detector.h"
#include "app/face_extractor.h"
using namespace suanzi;
template <typename T>
T MessageStack<T>::get() {
std::unique_lock<std::mutex> lock(mutex_);
while (stack_.empty()) cv_.wait_for(lock, std::chrono::milliseconds(10));
T ret = stack_.back();
stack_.pop_b... |
bb046079d578e33b724b2dada5e8c70007928224 | ece0cca97baaf9251482167873981ed0509ad531 | /CSfundamental1/PointerExercise/puzzle1.cpp | 48079cb0db177558788baef21d355faad7cb112a | [] | no_license | sabrinalokman/CSFundamentalSpecialization | 7e0a4222f70f07d16b13b2e6ad061949aa2d7ac1 | 5f0ad1cb1703d463aba68b20d3d82e065c1ac8b9 | refs/heads/master | 2023-01-13T13:53:22.548298 | 2020-11-14T04:59:48 | 2020-11-14T04:59:48 | 299,151,159 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | puzzle1.cpp | // heap memory Puzzle 1
#include <iostream>
using namespace std;
int main() {
int i = 2; int *p = &i;
int j = 4; int *q = &j;
int k = 8; int *r = &k;
k = i;
cout << i << j << k << *p << *q << *r << endl;
// 242242
p = q;
cout << i << j << k << *p << *q << *r << endl;
//242442
*q = *r;
cout << i << j <<... |
9fa0b733ac292e4f61922291cc96889deb6ed22c | ed444c4a0ed1fe679da64b81ec6aa1ddf885a185 | /Foundation/Math/Geometry/2d/Rect.cpp | e62ab47cc41b0f02f9cbe230d47898e896d81cbe | [] | no_license | swaphack/CodeLib | 54e07db129d38be0fd55504ef917bbe522338aa6 | fff8ed54afc334e1ff5e3dd34ec5cfcf6ce7bdc9 | refs/heads/master | 2022-05-16T20:31:45.123321 | 2022-05-12T03:38:45 | 2022-05-12T03:38:45 | 58,099,874 | 1 | 0 | null | 2016-05-11T09:46:07 | 2016-05-05T02:57:24 | C++ | UTF-8 | C++ | false | false | 4,456 | cpp | Rect.cpp | #include "Rect.h"
using namespace math;
Rect::Rect()
{
}
Rect::Rect(float x, float y)
{
_origin.setX(x);
_origin.setY(y);
}
Rect::Rect(float x, float y, float w, float h)
{
_origin.setX(x);
_origin.setY(y);
_size.setWidth(w);
_size.setHeight(h);
}
Rect::Rect(const Vector2& orgin, const Size& size)
{
_orig... |
ebf6256428ccf666e31e6eb0164b3e4525f61180 | ff4261edbce415345a676937d5b710e1fa9fb30c | /Sources/Parallel/ThreadManager.cpp | 1ff5bb544b4aa2528d4776f122748f9eab26875b | [] | no_license | tiagosombrra/apMeshCenapad | 93d9320b2203ed5680dbc57cefeb0bfaef6944fb | 3263ad21059784e39c50319f387758b53a5cd466 | refs/heads/main | 2023-07-01T04:56:44.945203 | 2021-04-25T21:24:36 | 2021-04-25T21:24:36 | 361,541,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | ThreadManager.cpp | #include "../../Headers/Parallel/ThreadManager.h"
Parallel::ThreadManager::ThreadManager(bool sharedParallelismEnabled)
{
this->setSharedParallelismEnabled(sharedParallelismEnabled);
}
Parallel::ThreadManager::~ThreadManager()
{
}
void Parallel::ThreadManager::setSharedParallelismEnabled(bool sharedParallelismEnab... |
c2ecf52697519227d20f1c5baa670e6b41cda28c | 89a410af9c2a2a3fc895e7b19062e07d02b9d03f | /Image.h | 0015327ad8a1aad412381162b0676c03032a97ab | [] | no_license | makler322/cpp_game | e522c7e84b54dad7c02ed50acc7866a66ae0ac71 | 25b2baefabdc52e38ef4063a063785fcf219b1fb | refs/heads/master | 2023-04-11T18:53:42.462843 | 2021-04-23T16:15:15 | 2021-04-23T16:15:15 | 357,995,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,511 | h | Image.h | #ifndef MAIN_IMAGE_H
#define MAIN_IMAGE_H
#include <string>
#include <iostream>
#include <map>
#include <algorithm>
#include <glad/glad.h>
#include "stb_image.h"
#define GLFW_DLL
#include <GLFW/glfw3.h>
constexpr int tileSize = 16;
constexpr GLsizei WINDOW_WIDTH = 60*tileSize, WINDOW_HEIGHT = 60*tileSize;
struct P... |
51cb3c188a0f2bac19cfd6d69dfc934cb2a58d28 | 7511ee6cc1721745cb3ccee35ce2b994363fdd89 | /llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp | 79e4331f74d847b2120e361d9b9947b4dd70ce0d | [
"NCSA",
"MIT"
] | permissive | sslab-gatech/apisan | a308fa7a707c6b870900895c9b33c24c6a383a66 | 9ff3d3bc04c8e119f4d659f03b38747395e58c3e | refs/heads/master | 2021-11-06T05:06:35.221153 | 2021-11-05T04:57:33 | 2021-11-05T04:57:33 | 66,595,888 | 64 | 27 | null | 2019-12-20T16:57:29 | 2016-08-25T21:53:26 | null | UTF-8 | C++ | false | false | 7,830 | cpp | X86IntelInstPrinter.cpp | //===-- X86IntelInstPrinter.cpp - Intel assembly instruction printing -----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
62939ec8099bb6d850d1cb7a9b3c7c57bb809b63 | 9692c1602d113c9f58705d4c8e1c098d129d9fb2 | /implementation/examples/GAMSA/MsaGenotypeCrsOnePoint.cpp | a0a6356e0d1f89d05d31f16c8b990798a3b03e2f | [] | no_license | PatrikOkanovic/Bachelor-Thesis | acbafd0b8cf7628e648cd13e1027f8245961c0fb | 444d3efb2282522ee47bc35a02bfd856f7d439f4 | refs/heads/master | 2022-11-16T10:59:35.622214 | 2020-07-12T10:25:29 | 2020-07-12T10:25:29 | 278,910,084 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,626 | cpp | MsaGenotypeCrsOnePoint.cpp | #include "ECF/ECF_base.h"
#include "MsaGenotype.h"
#include "FastaParser.h"
namespace MsaGenotype
{
void MsaGenotypeCrsOnePoint::registerParameters(StateP state)
{
myGenotype_->registerParameter(state, "crx.onepoint", (voidP) new double(0), ECF::DOUBLE);
}
bool MsaGenotypeCrsOnePoint::initial... |
e9247e89230a385dfb01b03028dcb81700968b0e | db74a54e34ae0b915a7a6f72a5fe30d100e6b3ff | /manager.cpp | 86b2e52d44d22643a07b9bea91a46330625368ab | [] | no_license | BoyZel/lab3 | 0e5cdae9424fb462407f6dba857d156c933f646a | d9ad7f438092a7f9a8d4ce6c172ae523affca9b5 | refs/heads/master | 2020-04-14T23:28:44.053732 | 2019-04-07T09:21:12 | 2019-04-07T09:21:12 | 164,203,611 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | cpp | manager.cpp | #include "manager.hpp"
using namespace std;
void Manager :: CreateInvoice( Product p, Date d, Client *c, int i){
Invoice actual;
actual.SetDate(d);
actual.SetBuyer(c);
actual.SetNumber(i);
list.push_back(actual);
sort(list.begin(), list.end() );
}
void Manager :: Add( Product p, int n){
list[n].Add(p);
}
voi... |
4c75bea2426a2cb095474b5814d28ef43f3e5993 | c51796fb45639b37c005aae67dfa00c16760fada | /HLS_Proj/Synth_IP/solution1/syn/systemc/FM_Synth_notes.h | 6f78f92632b6edb8c52f0a0087608b08d88cf050 | [] | no_license | liolliaustin/FMSYNTH | 25e652ff58104c4e9cf350eeb075dae34232b8bd | 46f57bd344ac3cb0e50179a0c60dcf86542a04e5 | refs/heads/master | 2020-05-03T05:54:54.128650 | 2019-04-24T20:58:53 | 2019-04-24T20:58:53 | 178,461,166 | 0 | 0 | null | 2019-04-24T18:35:40 | 2019-03-29T18:58:29 | VHDL | UTF-8 | C++ | false | false | 227,971 | h | FM_Synth_notes.h | // ==============================================================
// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2017.2
// Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved.
//
// ==============================================================
#ifndef __FM_Synth_n... |
e86d67d484b89ddaf0e521249ea0e0fa10c8794d | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /cpdp/src/v20190820/model/QueryOpenBankExternalSubMerchantBankAccountData.cpp | 2d320953689482998ff6c43ed3998c1685a27248 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 7,374 | cpp | QueryOpenBankExternalSubMerchantBankAccountData.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.