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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d53c437a0d56334f5d3bbb94acd7ec0a9eca33d | 07729282f238a41aa101e4fa0ab6bb2cda766faa | /3d-scanner-arduino-mega2560/control.cpp | c451e5daf52d82c66be397460e611385091877dd | [
"MIT"
] | permissive | robert204174/3d-scanner | 4d9213dedcf7a0c4326443006668534650116c29 | 863d60f13c993d05fb5153f5e30261fe9d5f12f3 | refs/heads/master | 2022-11-07T02:57:38.549388 | 2020-06-24T23:41:44 | 2020-06-24T23:41:44 | 272,868,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,339 | cpp | control.cpp | /*
MIT License
Copyright (c) 2020 Robert T. Adams
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... |
281735f013dee31b9f78d45fb08e5c76c4404975 | 2c7bbc527afde84d317594e61b6a74e2c4ae9b42 | /src/Mission.hpp | b2a0c8c2eafb0da44be394d10fc0cadbfb0142a8 | [
"MIT"
] | permissive | sdrobotics101/raspberry-pi | 684f565796743363cb4a89e4865e82d45d6f98e4 | 5f12538f9164590094e4710aace2d019ba6f7c98 | refs/heads/master | 2020-05-31T17:50:15.973438 | 2015-06-26T02:33:25 | 2015-06-26T02:33:25 | 20,842,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | hpp | Mission.hpp | #ifndef Mission_hpp
#define Mission_hpp
#include <string>
#include "Robot.hpp"
class Mission {
public:
virtual void run() = 0;
protected:
Mission(Robot * robot_ptr);
std::string mission_name;
Robot *robot;
};
#endif // Mission_hpp
|
9e0256fbf9126a709c2a68c05ab3c96352729d3a | 7f77751ee82b519e3bbc4de73c9e9c25282ba9fc | /charger_gui/cpp/channel_view_model.h | e412bfc0af277cf002530a6ff2fea501751dbe98 | [] | no_license | fiveangle/charger | 55c96e5acacbf88bf0b76030218a0def5c7737c0 | a44607eda5ff4fb7df29c05a04f4c347981a0353 | refs/heads/master | 2021-04-18T20:33:05.000538 | 2016-12-27T00:37:03 | 2016-12-27T00:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | channel_view_model.h | #ifndef CHANNEL_VIEWMODEL_H
#define CHANNEL_VIEWMODEL_H
#include <QObject>
class ChannelViewModel : public QObject
{
Q_OBJECT
public:
explicit ChannelViewModel(QObject *parent = 0);
enum CellViewState {
CELLS,
RESISTANCE,
INFO
};
Q_ENUMS(CellViewState)
Q_PROP... |
ab50e26e25d80862903ae63242523e2b23f5aa39 | e88a44a5799ff2f951b7d62280aaf7ed03c0eb26 | /Arrays/sorting/min_swaps_to_sort.cpp | 946ab803d949299c7daf3a8c2d90489002cfa832 | [] | no_license | shivanshu1086/DSA | b947271325704179875a56f14c60ef7e590f2060 | 8a2ca0a640b8e68fe17e9cecccb891f37d26d1b2 | refs/heads/master | 2023-01-11T04:23:35.256346 | 2020-11-09T14:36:04 | 2020-11-09T14:36:04 | 259,922,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | cpp | min_swaps_to_sort.cpp | #include <iostream>
#include<vector>
#include <cmath>
#include <climits>
using namespace std;
void min_swaps_to_sort(int *a, int n){
pair<int,int> temp[n];
for(int i=0;i<n;i++){
temp[i].first=a[i];
temp[i].second=i;
}
sort(temp,temp+n);
vector<bool> visited(n,false);
int ans=0;... |
74fb00db9b50b707630ec6a95f473bd70720b0c4 | 401fd964f300627516e3ea566ad2a5cc75052453 | /Plugins/EasyXMLParser/Source/EasyXMLParser/Public/EasyXMLObject.h | f1196515f455d8c1c04b71ed003ce298e40320c9 | [
"MIT"
] | permissive | moosehugs/EasyXMLParser | 902c2a92b0ca82d46aaf6d156b2f35824eb8ccd5 | fed7a1adbbb5bdcd2d65cc5fd949dbf60650c3de | refs/heads/master | 2022-06-13T06:26:26.888009 | 2020-05-07T15:04:16 | 2020-05-07T15:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | h | EasyXMLObject.h | // Copyright 2019 ayumax. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "EasyXMLObject.generated.h"
UCLASS(BlueprintType, Blueprintable)
class EASYXMLPARSER_API UEasyXMLObject : public UObject
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintPure, Category = ... |
4dfd8858c598609862f0ab6088154f7fa8c1df5d | 801f7ed77fb05b1a19df738ad7903c3e3b302692 | /refactoringOptimisation/differentiatedCAD/occt-min-topo-src/src/StepAP242/StepAP242_ItemIdentifiedRepresentationUsage.cxx | 36d06357241e8cc81e3236f9bca4fa8b1a1b60bd | [] | no_license | salvAuri/optimisationRefactoring | 9507bdb837cabe10099d9481bb10a7e65331aa9d | e39e19da548cb5b9c0885753fe2e3a306632d2ba | refs/heads/master | 2021-01-20T03:47:54.825311 | 2017-04-27T11:31:24 | 2017-04-27T11:31:24 | 89,588,404 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,951 | cxx | StepAP242_ItemIdentifiedRepresentationUsage.cxx | // Created on: 2015-07-10
// Created by: Irina KRYLOVA
// Copyright (c) 2015 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as publ... |
305d5ca869f254924464d869c1aa4ab6b85ee291 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/Reliability/Failover/fm/LockedFailoverUnitPtr.cpp | 1489f6c69292d987c4ffd6d171751fb18c96c2c7 | [
"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 | 3,533 | cpp | LockedFailoverUnitPtr.cpp | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... |
319219c3cd062756645612fa956aa5c8893e8ae8 | 8c5fd6d091a13637959939e880149c0927a27645 | /Engine/MathLib/VectorUtils.inl | 8bed7f0285d26d57de465d2bf7d46561b47716ad | [
"MIT"
] | permissive | hulcyp/GuildhallProjects | f1223f0f83a947b256fbfad02c3591083c93bdaa | 2c5c558992daa505867c4b37b73cec61e1c8d2d0 | refs/heads/master | 2021-01-17T17:06:31.480272 | 2014-03-13T16:00:21 | 2014-03-13T16:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | inl | VectorUtils.inl |
namespace Monky
{
template< typename T >
Vector3<T> randVec3InRange( T min, T max )
{
T x = randInRange( min, max );
T y = randInRange( min, max );
T z = randInRange( min, max );
return Vector3<T>( x, y, z );
}
template< typename T >
Vector2<T> randVec2InRange( T min, T max )
{
T x = randInRange( min... |
011e6f4bc422a97836f0d931dde3480a75869eac | 31ac07ecd9225639bee0d08d00f037bd511e9552 | /externals/OCCTLib/inc/gp_Quaternion.hxx | 85c235c700506894c1cf39b7972c6ac59b256337 | [] | no_license | litao1009/SimpleRoom | 4520e0034e4f90b81b922657b27f201842e68e8e | 287de738c10b86ff8f61b15e3b8afdfedbcb2211 | refs/heads/master | 2021-01-20T19:56:39.507899 | 2016-07-29T08:01:57 | 2016-07-29T08:01:57 | 64,462,604 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,757 | hxx | gp_Quaternion.hxx | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _gp_Quaternion_HeaderFile
#define _gp_Quate... |
07fdb4fc0f00e1153bd6225caf6d86530a3a7484 | 75b4a211ba5aeeb34d5ffe5809f8824e9bee59c7 | /src/global_context.hpp | 08ead0e2514c41e533645f08760bb4338253be31 | [
"MIT"
] | permissive | lscialom/VulkanRenderer | bd1caad0a0d43185319b75902c1cfa534493b918 | bd590da4da88e36dd212ded94d25334384a9c9f7 | refs/heads/master | 2021-06-02T06:26:45.458882 | 2020-07-25T17:17:02 | 2020-07-25T17:17:02 | 145,118,211 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 728 | hpp | global_context.hpp | #pragma once
#include <vulkan/vulkan.hpp>
namespace Renderer {
// TODO Move this somewhere else
struct Queue {
int index = -1;
vk::Queue handle = nullptr;
bool isValid() { return index != -1 && handle; }
};
extern vk::Instance g_instance;
extern vk::PhysicalDevice g_physicalDevice;
// TODO Make a Device cla... |
9ad7288f235fbfbdf984e7d72fbbccaa2e7b5006 | 3457448b8bc708993b466c2ce9eae32ffd815255 | /moc_ProcessingSettingsDialog.cpp | 5473e16d27b8edd8f1b2daf98d8bd8be887d1be7 | [] | no_license | zodiac1111/qt-opencv | dc62784dab1f434455b9f05749c9c5197e6b5371 | bfe6756d9c4350e019dce8f767475ca86f30152f | refs/heads/master | 2021-01-24T00:31:54.897145 | 2012-06-30T03:26:09 | 2012-06-30T03:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,969 | cpp | moc_ProcessingSettingsDialog.cpp | /****************************************************************************
** Meta object code from reading C++ file 'ProcessingSettingsDialog.h'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
**
** WARNING! All changes made in this file will be lost!
********************************************... |
ffa2f41fb73035af31a8820d1eec6ee8a64c4a39 | 60683bffb5b3df07d303af45f0ad0eb4961228bd | /DC/sol1074.cpp | bb0fa9c38d8fa8aea60dcf243285b5fe0d06e44f | [] | no_license | david4u/AlgoICPC | 7f59fc83afffee0184c49a64c32a1933c740fa83 | 9175027f48f0a6788a9a085a7aef0f42b980ef35 | refs/heads/master | 2022-12-28T23:55:27.619170 | 2020-10-08T13:01:15 | 2020-10-08T13:01:15 | 275,681,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | sol1074.cpp | #include <iostream>
using namespace std;
int N;
int r, c;
int answer = 0;
int cal(int a, int b) {
int ret = a;
b--;
while (b--) {
ret *= a;
}
return ret;
}
void start(int x, int y, int length) {
if (length == 2) {
if (y == r && x == c) {
cout << answer << '\n';
return ;
}
answer++;
if (y == r ... |
031973d2c3af8bf6fb2ce468ac8b8f0818abf8d2 | 5f8215c92e4758dda4fede649c1e758c628d91f2 | /src/FadeBackgroundUtil.h | fe2967ebdec7f1c9ecbfb93eb1650f6367b2e06e | [] | no_license | Hiroki11x/ofxAnimationUtility | 6c5b4ea0b5a6191a9137d3c54908af35fd3a33b4 | 82c3ff9111366df0db7c506021142f348a1bf03c | refs/heads/master | 2021-01-20T18:20:11.895432 | 2015-12-30T08:08:42 | 2015-12-30T08:08:42 | 42,593,060 | 2 | 0 | null | 2015-12-30T08:07:56 | 2015-09-16T14:40:26 | C | UTF-8 | C++ | false | false | 633 | h | FadeBackgroundUtil.h | //
// AnimationUtility.h
// oF_Fade_Sample
//
// Created by HirokiNaganuma on 2015/09/16.
//
//
#ifndef __oF_Fade_Sample__AnimationUtility__
#define __oF_Fade_Sample__AnimationUtility__
#include <stdio.h>
#include "ofMain.h"
#endif /* defined(__oF_Fade_Sample__AnimationUtility__) */
class FadeBackgroundUtil{
priv... |
69975f4cdc9ec495f271a76edbadc8f69cbae1c2 | ae48ec38147d4a41a8bfb6fe1d15d18715f60a1c | /14-4OrnekProje/4proje.cpp | e5d60ffb2586e87911e027b4640611a3fa059c6f | [] | no_license | akboga/Cnotes | fef2804b057484340f7ebf6a8305860ffa16de4c | e26103329eb9aea0c059a01fdb72d538f63c5066 | refs/heads/master | 2021-01-16T11:26:28.648320 | 2020-03-01T08:41:06 | 2020-03-01T08:41:06 | 243,101,806 | 0 | 0 | null | null | null | null | ISO-8859-9 | C++ | false | false | 2,117 | cpp | 4proje.cpp | #include <stdio.h>
#include <stdlib.h>
int main(){
/*
1) Bir bakteri türü her saat başı kendini ikiye bölerek çoğaltmaktadır. Kullanıcı başlangıçta
kaç bakteri olduğunu ve kaç saat laboratuvarda kaldığını girmeli. Sonucu hesaplayınız.
2) Kaç sayı girilecegi ve klavyeden alınan sayıların toplamı.
3) Klavyed... |
61b613e4928f4c7d4cae59acf869f83dc6bbc9de | f42f6295eddf7b122a1946ae9e665b413b61a655 | /inc/epoll.h | ec3fe5a5aa90341bff230cac55db0a7265b90259 | [] | no_license | rocwangp/ftp | 66fda60772e4f1939837a1e1340f397c533dbb75 | bfd51af027c68b1a41ff8a4f0ca6ba448bff5647 | refs/heads/master | 2021-05-16T00:24:10.645690 | 2017-10-20T09:41:33 | 2017-10-20T09:41:33 | 106,997,328 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | h | epoll.h | #pragma once
#include "constant.h"
#include <unistd.h>
#include <sys/epoll.h>
#include <sys/types.h>
class CEpoll
{
public:
CEpoll();
~CEpoll();
bool add_event(int fd, unsigned int events);
bool modify_event(int fd, unsigned int events);
bool delete_event(int fd, unsigned int events);
int... |
d420eda5223e631c905811dd5818ef14e35aca5b | c91fd5b8b315b455f1e998bb0a00e90b7c81456b | /Chess/src/ChessServerConnection.h | fe2a309397db5d593192b0e94d3ab01b37a7d3c9 | [] | no_license | Totomosic/Chess | b9a4e5409612d83436dce80864c8c18557fa8461 | 86682b4be536f7dca496b6973ed1c8595a1981d3 | refs/heads/master | 2023-03-05T15:30:10.094034 | 2021-02-24T01:20:25 | 2021-02-24T01:20:25 | 286,621,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 818 | h | ChessServerConnection.h | #pragma once
#include "Bolt.h"
namespace Chess
{
struct JoinableGame
{
public:
int GameId;
std::string HostUsername;
};
class ChessServerConnection
{
private:
mutable TCPsocket m_Socket;
std::string m_Username;
bool m_IsConnected;
public:
ChessServerConnection(const SocketAddress& serverAddress,... |
1c1c7d20e42d99d7d0e6b1fdc6bcd6d3fe48fcfe | 34b3623dbd185b9d8e6bc5af787ff656ebb8f837 | /finalProject/results/realisticVelo (FINAL SIMS)/box1/8/U | b761bed2dc08b8b08b7c88e5632cc9391d26eb4d | [] | no_license | kenneth-meyer/COE347 | 6426252133cdb94582b49337d44bdc5759d96cda | a4f1e5f3322031690a180d0815cc8272b6f89726 | refs/heads/master | 2023-04-25T04:03:37.617189 | 2021-05-16T02:40:23 | 2021-05-16T02:40:23 | 339,565,109 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010,548 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
084e8856eae19259f6fe1a787bf7ac622f70f218 | 0335a5fb8a553f243e29e5aee704238612c6dd11 | /src/ElectroMagn/ElectroMagnAM.cpp | cea34dddd64a6c811b99810bf26c3455dfe87dd8 | [] | no_license | ALaDyn/Smilei | a91b093da10ae4953e5a8d3397846952029a9979 | 81d858dd97ecbceb71dac804ee009763d50eb836 | refs/heads/master | 2023-07-20T16:56:01.085438 | 2023-07-05T10:13:57 | 2023-07-05T10:13:57 | 62,309,652 | 5 | 0 | null | 2016-06-30T12:41:29 | 2016-06-30T12:41:28 | null | UTF-8 | C++ | false | false | 87,301 | cpp | ElectroMagnAM.cpp | #include "ElectroMagnAM.h"
#include <cmath>
#include <iostream>
#include <sstream>
#include <complex>
#include "dcomplex.h"
#include "Params.h"
#include "Field2D.h"
#include "cField2D.h"
#include "FieldFactory.h"
#include "Patch.h"
#include "PatchAM.h"
#include <cstring>
#include "Profile.h"
#include "ElectroMagnB... |
71e96c8e4170ac072da73881540be4f43ad96ca4 | 650043ce21b1b474237c280bd29fbc672b187960 | /main/lsp/DefLocSaver.cc | 3ab33bbdf6e1e0be1ccd3ec571035295e6e8ca09 | [
"Apache-2.0"
] | permissive | rmosolgo/sorbet | 98a7aedf96eedd2b3dccd19b032e383412c74289 | 7ab2564aaca51c990aec7b3958b61455c1567283 | refs/heads/master | 2023-08-30T09:54:09.694611 | 2019-06-20T19:41:30 | 2019-06-20T19:41:30 | 192,978,123 | 3 | 0 | Apache-2.0 | 2019-06-20T19:41:58 | 2019-06-20T19:41:57 | null | UTF-8 | C++ | false | false | 2,236 | cc | DefLocSaver.cc | #include "DefLocSaver.h"
#include "ast/Helpers.h"
#include "core/lsp/Query.h"
#include "core/lsp/QueryResponse.h"
using namespace std;
namespace sorbet::realmain::lsp {
unique_ptr<ast::MethodDef> DefLocSaver::postTransformMethodDef(core::Context ctx,
uniq... |
075b6fa2aba0010c39396bdda3eb6f243eef3066 | 63f716dc2fa63150d0c876192c7bacb45369b22f | /LeetCode/387. First Unique Character in a String .cpp | 25d377a86ff65497beeb7883986985d11cd32149 | [
"MIT"
] | permissive | shamiul94/Problem-Solving-Online-Judges | 622f6e0fbf9be61535d91474c1e8a8ac7931d768 | 2f6138b496d75cb77b647013a1f8a28f467819aa | refs/heads/master | 2022-08-31T23:47:37.642073 | 2022-08-07T12:57:40 | 2022-08-07T12:57:40 | 178,793,427 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 399 | cpp | 387. First Unique Character in a String .cpp | class Solution {
public:
int firstUniqChar(string s) {
vector<int> found(26, 0);
for(int i = 0 ; i < s.length(); i++){
int fdx = s[i] - 'a';
found[fdx]++;
}
for(int i = 0 ; i < s.length(); i++){
int fdx = s[i] - 'a';
if(found[fdx] == 1)... |
675153a73ab0fa44094e22944e734c406f017ad2 | 680b82bbf36612799a02978df9d900dfbba9afcf | /Charpter7/hxx/Screen.h | 10f947c2c80dde5e679e626c60ba8e4ef6d39129 | [] | no_license | xiaoliuzi/cpp-primer-practise | 66cffdd3c41248ca062aa9c31ef9db61c9f2f2b8 | c1335879ff36079b0d9156137f38f0adbf9c33d3 | refs/heads/master | 2021-01-10T01:18:49.856842 | 2015-11-16T07:47:34 | 2015-11-16T07:47:34 | 45,827,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 794 | h | Screen.h |
#ifndef __SALES_ITEM_H__
#define __SALES_ITEM_H__
#include <string>
using namespace std;
class Screen {
public:
typedef string::size_type pos;
Screen() = default;
Screen(pos ht, pos wd, char c) : height(ht), width(wd),
contents(ht * wd, c) {}
char get() const
{
return contents[cursor];
}
inline char g... |
b6dd577adff6fcb0d3ec28ab331b9a5c0415c49e | d7984bf335f6d35d937dee895c92d5698960d710 | /source/code/Engine/phCWindow.h | fc6a9e55080afaa64dc7b4b20400e85f1d4f6a10 | [] | no_license | GavinGuy/PhyscisEngine | 39e91b8768abfebea1e9d6c499b810e37eb33ede | 0cead08203937d25c20d08a79cd415600fdc4a3c | refs/heads/master | 2023-05-27T03:37:47.371510 | 2017-07-19T00:04:11 | 2017-07-19T00:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | h | phCWindow.h | #pragma once
// graphics
#include "phGL.h"
#include "phSystem.h"
#include "Systems/phServiceLocators.h"
// All interaction with the GLFW window goes through this class.
class phCWindow
{
public:
phCWindow();
~phCWindow();
// Creates the window
bool CreateWindow( const char* title, uint16 width, uint16 height, ... |
0d7dd3c008036e7c1d05c09c803c212e6884a937 | 25363648c902c58f51b4f421100786ff94a89947 | /CSE153/Program5/Program5.cpp | 914800e950186972874cd34dbe4d6ac283199970 | [] | no_license | MiamiOH-CSE609-Fall2014/Maschino | 3d74ed6cdd4708da62f196352c545208ec0e5f6e | 81de80d26919942f7099a9928a1f07eeb133dda6 | refs/heads/master | 2020-04-06T07:00:53.606233 | 2015-03-19T17:54:05 | 2015-03-19T17:54:05 | 24,053,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,994 | cpp | Program5.cpp | /*Program 5: Develop a program that takes in user input for widths of coins.
* The input is analyzed and, using decisions, computed the total sum of all
* coins entered. In the event that a coin is not a valid width, the system
* does not consider it in the final total. A '0' is used to tell the system
* to stop loopin... |
73554b18da09aa5e810196104f21b5806a20f626 | 582f2cc0cdbff7240741e2a5c3ece1f1dcee282c | /NPC/Warmup/F.cpp | 6f80b3747a4391b5dc67f10bba4f79aacaef0b52 | [] | no_license | moondemon68/cp | 7593057a124cdef51341bf75fb780a9b03b8ea12 | 3b5ebd39783253348763ea58f7e84608679c17c3 | refs/heads/master | 2022-02-23T21:04:30.962383 | 2022-02-04T16:31:41 | 2022-02-04T16:31:41 | 149,121,917 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 134 | cpp | F.cpp | #include <bits/stdc++.h>
using namespace std;
int main () {
string s="pues ijaq : ueqemer";
cout << "pasir" << endl;
return 0;
}
|
f517149111a8e525f51a2dab40c063f9fcfbf7d4 | b94babde3452e8b28eb513d5b5a3fe899cc8f982 | /Basic Algorithm/question_4.cpp | a54138295e3446c67fc0092822473c0e618019a6 | [] | no_license | iamsourav37/C_plus_plus_program_practice | 7cd37ffb9e92dad2d3ba1a4e6bd2bd28c7c1ad3c | e16d5058e96fc70c50b704a605e295e0d3f91fbc | refs/heads/main | 2023-03-11T14:24:37.199765 | 2021-02-25T06:07:14 | 2021-02-25T06:07:14 | 322,986,625 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | question_4.cpp | // Write a C++ program to check a given integer and return true if it is within 10 of 100 or 200
#include <iostream>
using namespace std;
bool test(int a) // my code
{
if ((a <= 110 && a >= 90) || (a <= 210 && a >= 190))
return true;
return false;
}
bool test2(int a) // Solution Code
{
if (abs(... |
b6e73c8cd19f7b077d6674caa566716b5dc98a7f | a590bae1d6d0f2a5f14b4ca1d463aecdc553455f | /main.cpp | 7486b0745ab2eb025230200c25e8b1d656086c3d | [] | no_license | mrdaemon/FinalHopes | 6f6daff5786842761e8f1730f31cf4362f6ac65a | b1f1aab3df909d4a81559cd1830f5e3be08f8d53 | refs/heads/master | 2020-04-07T11:29:59.019280 | 2011-01-30T17:20:09 | 2011-01-30T18:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,078 | cpp | main.cpp | #include "main.hpp"
int main(int argc, char** argv){
Screen::Get().Init();
move(0, 0);
addstr("By: Vargeux");
if(!has_colors()){
mvprintw(
Screen::Get().getH() / 2,
Screen::Get().getW() / 2 - strlen("No color!") / 2,
"No color!");
return -1;
}
start_color(); //Start col... |
926e91d7ac3ddf6132caaf91481af0ec6b415e7b | 9ff089c49ac30009f9e72e43f88bb1b32d0ab32a | /cpp/src/flovv/Engine.hpp | 9234763bf7e31cce2cc0df7e706976f67937a84f | [] | no_license | mirek/flovv | 1933cfc46290f6ba077ce8de29459904bf280f2b | 70ed4b758154e81cdbf1b21cdf61808ca2a4a20a | refs/heads/master | 2021-01-01T20:48:20.419803 | 2013-09-20T21:39:17 | 2013-09-20T21:39:17 | 9,410,872 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,495 | hpp | Engine.hpp | //
// Released under the MIT License.
//
// Copyright (c) 2012 - 2013, Mirek Rusin <mirek [at] me [dot] com>
// http://flovv.org
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permissio... |
b1e726c8e47d3dfe2d6afffbabbdd423ab341f60 | 4c445a6cbe82b626755999e4dcad424d7057a42e | /WrapperClasses/LTimer/LTimer.cpp | bc883ada6adb18073f11904c5d85a8284f348656 | [] | no_license | ShiniDev/SDL2_Lazy_Foo | 421f3803b84da1043e753d0e18f5c45fb5652e29 | 99543f05b5f2ad7a0e03a6ea04a4dc53015fbacd | refs/heads/main | 2023-06-22T22:06:07.786822 | 2021-03-15T03:28:14 | 2021-03-15T03:28:14 | 342,863,179 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | LTimer.cpp | #include "LTimer.hpp"
LTimer::LTimer()
:startTicks{0},pausedTicks{0},started{false},paused{false}
{
}
void LTimer::start()
{
started = true;
paused = false;
startTicks = SDL_GetTicks();
pausedTicks = 0;
}
void LTimer::pause()
{
if(started && !paused)
{
paused = true;
... |
16b23178055fe60faf09b8dfedd0384a652a4e00 | 31475b58b676a174d89b3130f869656366dc3078 | /fm_lsgame/formlogic/form_login.cpp | 0ae588f33432a6898e418c3671598b2311c36e05 | [] | no_license | cooper-zhzhang/engine | ed694d15b5d065d990828e43e499de9fa141fc47 | b19b45316220fae2a1d00052297957268c415045 | refs/heads/master | 2021-06-21T07:09:37.355174 | 2017-07-18T14:51:45 | 2017-07-18T14:51:45 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,703 | cpp | form_login.cpp |
#include "form_login.h"
#include "../fm_gui/gui.h"
#include "../fm_gui/designer.h"
#include "../fm_gui/form.h"
#include "../fm_gui/edit.h"
#include "../fm_gui/text.h"
#include "../fm_gui/group_box.h"
#include "../fm_gui/check_button.h"
#include "../visual/i_event_manager.h"
#include "../visual/i_scene.h"
#include "... |
0daa165de39654b554ee026d1d67df495cfa4b4b | 8797e56c668d758d85e97d4961a69f0db848297e | /select1/Source.cpp | 78ad863327ff5c72b7156787dd390f104c5e8153 | [
"MIT"
] | permissive | eukaryo/pdep-senpai | 0e13c60a83cbdd1ecea5af1dc392e5ec17468a06 | 3e86fbdd861bd5e9201fc436415658248970e244 | refs/heads/master | 2021-10-26T05:43:53.930349 | 2021-10-17T03:58:58 | 2021-10-17T03:58:58 | 251,227,109 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,604 | cpp | Source.cpp | #include<iostream>
#include<cstdint>
#include<cassert>
#include<random>
#include<string>
#include<chrono>
#include <mmintrin.h>
#include <xmmintrin.h>
#include <emmintrin.h>
#include <pmmintrin.h>
#include <tmmintrin.h>
#include <smmintrin.h>
#include <nmmintrin.h>
#include <wmmintrin.h>
#include <immin... |
818353c5a3a967dfbc7fe61c248486461fba078d | 93aebc3ab31facf5fb3f465d3768cb166266011c | /Codeforces/Codeforces Round #442 (Div. 2)/A.cpp | 39d617e218c9e3fba89cd3a31b3a57318f1ae184 | [] | no_license | deSigntheClutch/competitive-programming-code-repository | 901b77a2f07c91e56ae432c678dfa2fec4d26e62 | ee9c49e594c00bad8321a0554ce5d9b0b2257be0 | refs/heads/master | 2023-04-06T03:56:55.236256 | 2021-04-10T07:23:32 | 2021-04-10T07:23:32 | 257,667,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,637 | cpp | A.cpp | #include <bits/stdc++.h>
#define DB(x) cerr << #x << " = " << (x) << " "
#define ENDL cerr << "\n"
#define FOR(it, a) for (__typeof((a).begin()) it = (a).begin(); it != (a).end(); it++)
#define DBA(x, a, b) { cerr << #x << " = "; for (int _ = (a); _ <= (b); _++) cerr << x[_] << ' '; ENDL }
#define DBS(x) { cerr ... |
4694c8f7f69702d4ea33a0ffab21be6c75808723 | 2df0168169fe285425bd7ad41816b20842b400cc | /ns-3-allinone/bake/source/pygccxml-1.9.1/unittests/data/test_elaborated_types.hpp | fbeae2ed05384545c82563e8e45f8aaceae1a7f1 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | Westbrookl/detnet | a9e18566bb3ab21fce55a99579af38787f65c916 | ed1d7202d140bdd4204710f3d9cb1016af3b7d9c | refs/heads/master | 2020-05-09T08:28:40.597423 | 2019-02-20T02:53:45 | 2019-02-20T02:53:45 | 180,994,792 | 8 | 4 | null | 2019-04-12T11:30:18 | 2019-04-12T11:30:18 | null | UTF-8 | C++ | false | false | 11,310 | hpp | test_elaborated_types.hpp | // Copyright 2014-2017 Insight Software Consortium.
// Copyright 2004-2009 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
namespace elaborated_t {
class FooClass {};
struct FooStruct {};
enum FooEnum {e1};
union FooUnion {};
... |
7dd6d03985471207ade4cd2b03f6f8606c7ecbe3 | 1760db2bb7ae385a456911113ba6647e282f97f0 | /motor_control/brushless/H_bridge.ino | 7595385f41642be190e2d8610904f93b9a3e3e60 | [] | no_license | IChocked/EV | d147d5251e9aa1ed68a7104844d409328ea43bcc | 663c1b59df62e2bf9ece7c17e6d9aadc2fdc33fd | refs/heads/master | 2023-05-25T00:27:01.841339 | 2021-06-01T07:29:00 | 2021-06-01T07:29:00 | 369,924,510 | 0 | 0 | null | 2021-06-01T07:29:41 | 2021-05-22T23:29:10 | C++ | UTF-8 | C++ | false | false | 1,653 | ino | H_bridge.ino | #include "GLOBAL.h"
#include "ramping.h"
void changeState_1();
void changeState_2();
void changeState_3();
void (*stateChange[])() = {changeState_1, changeState_2, changeState_3};
MotorControl Motor;
Ramping *ramp;
void setup() {
pinMode(Motor.throttlePin, INPUT);
for (int i = 0; i < NUM_PINS; i++) {
pinMod... |
7a2d5423390462c43801574e84fa1a7f9e50a9d9 | 72a0a45915c2893b9a47676cd6b7743ff147b6c5 | /VBFInvAnalysis/VBFInvAnalysis/outTau.h | 50d5d2d7f424aeeac2c7b169517006045b74d666 | [] | no_license | othrif/vbfmet-ntuplemaking | 95bdf84387b7c2813172465058a3b334a2998d2e | cecb1f50ca6610a61d281fa1792032daf4a04cb4 | refs/heads/master | 2021-05-22T20:40:53.147376 | 2020-06-02T09:16:21 | 2020-06-02T09:16:21 | 253,085,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | h | outTau.h | #ifndef __Analysis_outTau__
#define __Analysis_outTau__
// EDM's include(s):
#include <xAODTau/TauJet.h>
// Local include(s):
#include <VBFInvAnalysis/outObject.h>
namespace Analysis {
class outTau : public outObject {
private:
std::vector<Float_t> pt;
std::vector<Float_t> eta;
std::vector<Float_t> phi;
... |
933a7e120b13bf85dac4b798fcdb8036fa7766df | b28305dab0be0e03765c62b97bcd7f49a4f8073d | /chrome/browser/ui/webui/welcome/nux/email_providers_list.cc | 76a01b65c11965fe2e9c547f61f330e153d9149b | [
"BSD-3-Clause"
] | permissive | svarvel/browser-android-tabs | 9e5e27e0a6e302a12fe784ca06123e5ce090ced5 | bd198b4c7a1aca2f3e91f33005d881f42a8d0c3f | refs/heads/base-72.0.3626.105 | 2020-04-24T12:16:31.442851 | 2019-08-02T19:15:36 | 2019-08-02T19:15:36 | 171,950,555 | 1 | 2 | NOASSERTION | 2019-08-02T19:15:37 | 2019-02-21T21:47:44 | null | UTF-8 | C++ | false | false | 2,168 | cc | email_providers_list.cc | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/welcome/nux/email_providers_list.h"
#include "chrome/browser/ui/webui/welcome/nux/bookmark_item.h"
#include "chrome/gri... |
f4220a17e1507a8017a01543619ad14761c17c2a | a4e00597431213c2cee3a9aa45e62541d4fe4caa | /skyline/skyline.h | 7d8de4a456d0392090cffc57f60b3a589e450b30 | [] | no_license | vritzenthaler/heat_equation | ceaff53f31a578b542f786565fe8a6cd5ba8e0f4 | 2ebb758b149e7df7d6a95ccf044e805ed9bd3042 | refs/heads/master | 2023-02-13T20:36:54.085841 | 2021-01-10T09:04:46 | 2021-01-10T09:04:46 | 288,406,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | h | skyline.h | #ifndef SKYLINE_H_INCLUDED
#define SKYLINE_H_INCLUDED
class Skyline
{
public:
Skyline(int);
void set_coeff(int, int, double const &);
void set_upper_coeff(int, int, double const &);
void set_lower_coeff(int, int, double const &);
double get_coeff(int, int);
void factoLU(void);
void solve(d... |
5916c8fe1cb35a2d36b248703ce8d7b7b4bfab61 | 93999e152f03f79eefbb36039de851a2ad161ceb | /Mt.Sinai/STEP1/STEP1MIP.cpp | 4994cd91c67fd2217cfac1300bfcfd2d0e2e3ab5 | [] | no_license | vineetasingh/CCHMC_codes | cc6f0091d04a8364f81f0a77e0dd7937130632fb | d24c88c23ad8c4bed26c793c0f819f95e6d0af66 | refs/heads/master | 2021-07-13T12:10:49.173151 | 2018-01-09T14:59:52 | 2018-01-09T14:59:52 | 93,447,259 | 0 | 2 | null | 2017-06-26T17:10:21 | 2017-06-05T21:10:09 | C++ | UTF-8 | C++ | false | false | 34,610 | cpp | STEP1MIP.cpp |
#include <iostream> // std::cout
#include <algorithm> // std::min_element, std::max_element
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <string>
//#include<conio.h>
#include <opencv/cv.h>
#include "opencv2/highgui/highgui.hpp"
... |
6bc6f80348106ba097e9dddb2acd18f31d37c5ff | bd8f2371663b9e90d305da555293614c0c1805ec | /rest_rpc/rest_rpc/server/context.hpp | a13b65e0b73424e56661a41c04ebff9b81ab2a75 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | hzqst/CGAssistant | 992a455b9a3af28efb257d8198b4e53ab9617f13 | 7e6035b5184e12c6169b29834237c8911618c018 | refs/heads/master | 2023-08-08T03:23:25.174276 | 2023-08-03T03:53:39 | 2023-08-03T03:53:39 | 177,739,393 | 62 | 47 | MIT | 2022-12-13T04:33:22 | 2019-03-26T07:50:41 | C++ | UTF-8 | C++ | false | false | 2,056 | hpp | context.hpp | #pragma once
namespace timax { namespace rpc
{
struct context_t
{
using post_func_t = std::function<void()>;
using message_t = std::vector<char>;
context_t() = default;
template <typename Message>
context_t(rep_header const& h, Message&& msg, post_func_t postf)
: context_t(h, std::move(message_t{ msg... |
95b82fce3ecb6530a09e1a2da868f0f70a4fb87c | e166d489960097aabdf072d77aefc0d17c833e56 | /codeforces/1385c.cpp | 75966ddb09d995efe14bf58d2eb3fceea0a7d394 | [] | no_license | yash0patni/cp | 17f289c680368ad1f5c20ecb29d5e6c6e4a1c40c | 9f55980e093d66fb3518c6c5ddef2d966049c89d | refs/heads/master | 2023-02-02T14:01:56.971462 | 2020-12-17T15:54:52 | 2020-12-17T15:54:52 | 299,001,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 970 | cpp | 1385c.cpp | #include <bits/stdc++.h>
#define testcase() int t; cin>>t; while(t--)
#define fo(n) for (int i = 0; i < n; i++)
#define deb(x) cout << #x << " = " << x << endl;
#define ll long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define mod 1000000007
using namespace std;
void solve()
{
int n;
cin >> n;
... |
fb1383fde455587882370875e713e796fd1c06e9 | d956e1eac80a0b739e650eac4eaded3d06027b26 | /menubar/MenuBarXP.cpp | 292e447a7463c082357bf7e9f2b4cb3d7cb5bf28 | [] | no_license | Justliangzhu/gitskills | b42457126a945986bad62b84bc9cb21382efb10d | 957e796bcf5cffa1c6171a1acb1393d38930711f | refs/heads/master | 2023-05-30T22:57:30.523134 | 2021-06-22T02:12:50 | 2021-06-22T02:12:50 | 377,092,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,268 | cpp | MenuBarXP.cpp | // MenuBarXP.cpp : implementation file
//
#include "stdafx.h"
#include "MenuBarXP.h"
#include "MenuXP.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMenuBarXP
CMenuBarXP::CMenuBarXP(... |
a4bed499c2050749710412da8d06757246f5ddd7 | c7d5d4669f0aa992cfa9a1ab2c4764c6d88119c6 | /construct_braced2.hpp | df26f6b1afc94fd7ef360703c7ebfca626c7f731 | [
"LicenseRef-scancode-nysl-0.9982"
] | permissive | iorate/Egg | 7fbffdd7cd9f887b281dadcb97a3c64eafbe920d | 35ac6674dddc568ebd521cf535bf8c162d93d155 | refs/heads/master | 2018-12-31T11:57:39.998026 | 2012-01-29T09:42:30 | 2012-01-29T09:42:30 | 2,836,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 472 | hpp | construct_braced2.hpp | #ifndef IORATE_EGG_CONSTRUCT_BRACED2_HPP
#define IORATE_EGG_CONSTRUCT_BRACED2_HPP
#include <boost/mpl/placeholders.hpp>
#include "./detail/move.hpp"
namespace iorate { namespace egg {
template <class T = boost::mpl::_1>
struct X_construct_braced2
{
template <class ...Args>
constexpr T ... |
102728d28fd2aa053e976a0107b439a014d68e48 | bc77dd3023cb8655d82af3ad4320d2f9e5f9532a | /SourceCode/Chapter16/AvxCpuid/AvxCpuid/AvxCpuid.cpp | fd8eb5b2f605b40230dc525fc565792f229b22e6 | [] | no_license | timothyshull/modern_x86_assembly | de28cbbc877a12c5f6f493b9ced5c1883f682bfa | ead24367c106143b90934812a4a781ba46683ad5 | refs/heads/master | 2021-01-19T14:48:45.405342 | 2017-04-09T16:26:37 | 2017-04-09T16:26:37 | 86,637,835 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,687 | cpp | AvxCpuid.cpp | #include <cstdlib>
#include <cstdio>
#include "MiscDefs.h"
#include <memory.h>
// This structure is used to save cpuid instruction results. It must
// match the structure that's defined in AvxCpuid_.asm.
typedef struct {
Uint32 EAX;
Uint32 EBX;
Uint32 ECX;
Uint32 EDX;
} CpuidRegs;
// This structure co... |
14c300669d3580434933c72854295d037baeeb3d | f40c7eca7cbe6e87e3ddd0d79d827fbbd1bf351a | /NetKet/GroundState/ground_state.hpp | 6240faf3c9b3d8c140c0bb9c9b427a51da0f0b98 | [
"Apache-2.0"
] | permissive | briantimar/netket | e692b9e0ad4f68cadfa602cdfef9cbe0657e7105 | 4e805a82cad602616223eec5e0364787c52976f0 | refs/heads/master | 2020-03-28T07:33:10.052179 | 2018-09-06T07:23:11 | 2018-09-06T07:23:11 | 147,909,226 | 0 | 0 | null | 2018-09-08T06:48:19 | 2018-09-08T06:48:19 | null | UTF-8 | C++ | false | false | 3,620 | hpp | ground_state.hpp | // Copyright 2018 The Simons Foundation, Inc. - All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... |
c93dead9e2497b5cefb4fc97deaa3a2e1da946c0 | 19ee7b5cd251ef88b52dc0bb8c5f49a57e7c7f2c | /3DTracker/gui/DataDisplayer.cpp | a37062c986d3a0f38d3bdf661cbf37cecdbafc66 | [] | no_license | V170SC/ParrotTracking | 097b7555169fde783293d52a1d70c869da671b9d | 8ba9655c8b58f2eb0b4d1e14b774bc64e324a310 | refs/heads/master | 2021-01-23T12:04:58.882555 | 2017-09-10T07:39:09 | 2017-09-10T07:39:09 | 102,644,890 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,407 | cpp | DataDisplayer.cpp | #include "gui/DataDisplayer.h"
#include "gui/MainWindow.h"
#include "gui/DataDisplayerWindow.h"
#include "common/TrackingCommon.h"
DataDisplayer::DataDisplayer()
{
firstTimeLaunched = true;
}
void DataDisplayer::initDataDisplayerWindow()
{
if (!TrackingCommon::dataDisplayerWindow->isVisible())
{
T... |
e139fdb0940de7353efdd669c637afa8214bbc92 | a06515f4697a3dbcbae4e3c05de2f8632f8d5f46 | /corpus/taken_from_cppcheck_tests/stolen_8451.cpp | d9d3bc9d1f1ddb6eb6d6e2b4ed4c580a53d44eb6 | [] | no_license | pauldreik/fuzzcppcheck | 12d9c11bcc182cc1f1bb4893e0925dc05fcaf711 | 794ba352af45971ff1f76d665b52adeb42dcab5f | refs/heads/master | 2020-05-01T01:55:04.280076 | 2019-03-22T21:05:28 | 2019-03-22T21:05:28 | 177,206,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43 | cpp | stolen_8451.cpp | void f(std::uintptr_t x){printf("%tu", x);} |
d28e01469a5d65d119f97653a0900e8630466184 | 90001e69772eb6137944b6587bf5442dd23b38b0 | /E7/E7.cpp | 98f95cc87f1c11b7f5fbb10a25af22bf676455ec | [
"MIT"
] | permissive | tomhickey888/CS2014-CS1 | 99ce7bfda0226449053216db04c4699e9b88b1bd | 61ad3a54e5dd4c591049fb0916d459f06beee578 | refs/heads/main | 2023-05-30T04:47:11.372162 | 2021-06-18T01:01:50 | 2021-06-18T01:01:50 | 377,362,808 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 851 | cpp | E7.cpp | //Hickey, Thomas Matzen Fall 2013 Exercise 7
//Overview: Gets three numbers from the user and then determines if any of them are the same
//Compiler Used: G++ with TextPad editor
//Status: Compiles and meets the requirements
//Help: No help
#include <iostream>
using namespace std;
int main()
{
int num1, ... |
aecdad9a69e0cb0a7dd5587dcb465f6642f72f74 | 2cba91dbfb4eedab402e195b6723da73194fd33c | /jni/lzma/un7z.cpp | 543251569643cb27b084a6c2a7e638ea7659be62 | [
"MIT",
"Apache-2.0",
"LGPL-2.0-only"
] | permissive | koreader/android-luajit-launcher | 9bb47af8ed7277871c10e0fbb6d028d3b59498cb | ee231f2825614c8b268930f3b8ffea6be37c9df1 | refs/heads/master | 2023-07-26T21:57:58.264429 | 2023-07-22T10:50:47 | 2023-07-23T11:37:33 | 15,648,711 | 115 | 75 | MIT | 2023-09-10T16:24:36 | 2014-01-05T09:37:08 | Kotlin | UTF-8 | C++ | false | false | 594 | cpp | un7z.cpp | #ifdef __cplusplus
extern "C" {
#endif
#include <jni.h>
#include "7zExtractor.h"
JNIEXPORT jint JNICALL
Java_org_koreader_launcher_Assets_extract(JNIEnv *env, __unused jobject obj,
jobject assetManager, jstring payload, jstring output)
{
const char *name = env->GetStringUTFChars(payload, nullptr);
con... |
58ee8ba9874137a71116de6925a4431812e0b8ab | 708022294f209dabc99b297763523aa31d1deddd | /examples/simple/main.cpp | e9be4c1c8ef39fddd4d78b1518ce3e8a8331ed13 | [
"MIT"
] | permissive | zfzackfrost/ViewBlaster | 1218b739e37b83495aff443e13b7ae4c8670534d | 2b2b237a95b7578cc8164a1cea3e0a5312934384 | refs/heads/master | 2022-12-19T04:36:47.200475 | 2020-09-26T18:56:40 | 2020-09-26T18:56:40 | 298,622,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | main.cpp | #include <viewblaster/viewblaster.hpp>
using namespace viewblaster;
class SimpleApp : public App
{
public:
utils::Result<utils::Void> EarlyInitialize() override
{
auto R = App::EarlyInitialize();
if (R.HasMessage())
return R;
utils::AssertResult(SetAppTitle("Simple App"));
... |
765344e8c914e373c4f0a3b51225d04ff322deb8 | 1fc8f3ad84f27df094a6a8e340c5a1f7f8744272 | /array/012sort/main.cpp | ccf6572ade9401c8e034d09ad88ac4478ce129cb | [] | no_license | vaibhavarora14/Ace-The-Code | 528501d7a76b9e36791de54d99c9cecebafb7fa8 | 9c325845c66daab9d286a2709b91d1e2f8e82c74 | refs/heads/master | 2023-06-26T10:12:13.772611 | 2021-07-24T12:01:07 | 2021-07-24T12:01:07 | 389,092,773 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int arr[] = {0 ,1 ,0};
int n =5;
int count0=0,count1=0,count2=0;
for(auto a:arr){
switch(a){
case 0:{
count0++;
break;
}
case 1:{
count1++;
... |
07ac8e274cf0f257b01764a4b21d7fae6b439594 | a5a95b15a6acf72046a416f9f06f61ab6328fbaf | /Day6.cpp | 7e17bcdadd894720a7f0116efbcb3effee735539 | [] | no_license | 3montyjack/AdventOfCode | e0f07f8e7afe4c52b0788c1b68b380a89f911942 | 9ea6f0456ac2a8cfefdeba8a4c022068d7cdaf59 | refs/heads/master | 2020-11-26T15:34:06.357613 | 2019-12-19T19:19:37 | 2019-12-19T19:19:37 | 229,123,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,606 | cpp | Day6.cpp |
#include <string>
#include <fstream>
#include <iostream>
using namespace std;
struct OrbitsT {
string body,
orbiter;
};
#define numberOfLines 1651
struct namesOfCelestiaBodies {
OrbitsT orbits[numberOfLines];
};
class SpaceObject {
public:
string id;
SpaceObject * child,
... |
ebe07344d6131f37a8dbf33f16278a2cb1da3e34 | 35613a63c2dcf790adc2dcd025a9021a95f9762d | /resources/texture_desc.h | 79456c924fea76b49bbc41c46913bbd9e8c9bc47 | [] | no_license | fromasmtodisasm/xrRenderPC_VK | 37bda9ff60c98a4de82999af0f2775d508dd094d | 07ef9bbc0a0ab21605423189b4e2952ae8d9c400 | refs/heads/master | 2022-03-24T11:42:53.270351 | 2019-12-21T08:06:03 | 2019-12-21T08:06:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | h | texture_desc.h | #ifndef RESOURCES_TEXTURE_DESC_H_
#define RESOURCES_TEXTURE_DESC_H_
#include <functional>
#include <string>
class TextureDescription
{
public:
TextureDescription() = default;
~TextureDescription() = default;
void Load();
void Unload();
/*!
* \brief Checks if the texture can be detailed
... |
017f71accbfb9e8a99c6f36a41188d85d8362543 | 2cb1b4eda4bfba812991c456090e98cf3d849c52 | /code/manager/update.cpp | 756da509969805ff95ef8cc7b80b5d20469d390c | [] | no_license | fcocontrerascuevas/catsfarm | ebbd3cf625a07a1ba777bd4a6f04c613b48440cb | 58069dad0514e05ec7191af3020d7ce1dc5e2fb4 | refs/heads/master | 2020-03-20T08:26:15.667567 | 2018-06-14T05:28:02 | 2018-06-14T05:28:02 | 137,308,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,811 | cpp | update.cpp | #include "manager.h"
void manager::update_all(){
while(1){
update_jobs();
container_save();
update_server();
update_group();
sleep(1);
}
}
void manager::container_save(){
static int sec;
sec++;
// guarda informacion a json cada 10 seg
if ( sec > 10 ){
jwrite( "../../etc/info.json", struct... |
b163446f62538abb70fd9c41529c2b3a76885e70 | a512639afea96386f5cc905a14b55875aa687d49 | /libft/ft_strdel.cpp | c253fe4c5c1187f444e514deed985ed90236340b | [] | no_license | ttshivhula/expert-system-cpp | 9a6093afd47945baf74db10e6840313d4fb314ae | 802cb10e257c588695360f494ce055b14768c4f9 | refs/heads/master | 2021-07-22T13:20:43.124650 | 2017-11-01T08:16:24 | 2017-11-01T08:16:24 | 109,100,411 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | ft_strdel.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strdel.cpp :+: :+: :+: ... |
812c4a10220158ae3c72c82bc0e5a90b456c9699 | 75bf8637d18d2f0b7331cd7417fa3f0b1f3fd32a | /ue4view/TurnBasedGame/Source/TurnBasedGame/AGameViewController.h | 7f0bbd96ff1e590ddf236d8860a62cf60d67501c | [] | no_license | thisisdoable/ue4-cmake-boost-integration | 73dc02308d7773168276865e1864b35f5f8f7b10 | 012f41e4167e308e49105b908b62a7b0836bd445 | refs/heads/master | 2023-03-17T04:54:46.309426 | 2020-04-07T10:35:55 | 2020-04-07T10:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | h | AGameViewController.h | #pragma once
#include <memory>
THIRD_PARTY_INCLUDES_START
#include <GameController.h>
#include <OfflineGameModel.h>
THIRD_PARTY_INCLUDES_END
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "AGameViewController.generated.h"
UCLASS()
class TURNBASEDGAME_API AAGameViewController : public AActor
{
... |
66753ca5a7f9b92364e7bc53bb86a91a193b696d | 59418b5794f251391650d8593704190606fa2b41 | /plugin_api/em5/em5/freeplay/FreeplayEventGenerator.h | db147b3719a130a49c6cda3e760f811bae77f6b1 | [] | no_license | JeveruBerry/emergency5_sdk | 8e5726f28123962541f7e9e4d70b2d8d5cc76cff | e5b23d905c356aab6f8b26432c72d18e5838ccf6 | refs/heads/master | 2023-08-25T12:25:19.117165 | 2018-12-18T16:55:16 | 2018-12-18T17:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,322 | h | FreeplayEventGenerator.h | // Copyright (C) 2012-2018 Promotion Software GmbH
//[-------------------------------------------------------]
//[ Header guard ]
//[-------------------------------------------------------]
#pragma once
//[-------------------------------------------------------]
//[ Includes... |
cc5f16b772b76e5f83f2db20d6d78e8b6988ef43 | ff1656d53c42f7df8708d88002ed43b25a3f14e6 | /BOJ/CPP/boj_2606.cpp | 0e2e41cdd7dc97b3484fbbb041b3ca51e275bcf2 | [] | no_license | Kor-coconut/BOJ | 20572a3fb666c5fd79f3b1ce966a5c99d4a6dff0 | b586fdecfbb8611cc3bb7275511a394837e5f731 | refs/heads/master | 2023-01-23T15:18:59.071850 | 2020-11-28T04:52:07 | 2020-11-28T04:52:07 | 280,478,773 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | boj_2606.cpp | //BOJ 2606
//바이러스
#include <iostream>
#define MAX_COMPUTER 101
using namespace std;
int arr[MAX_COMPUTER][MAX_COMPUTER] = { 0 };
int eadg, computer;
int floyed() {
int answer = 0;
for (int k = 1; k <= computer; k++) {
for (int i = 1; i <= computer; i++) {
for (int j = 1; j <= computer; j++) ... |
8905019771b2d1fd9087072aa2fef95b1c739747 | 1fb146e7098b41a8a533e0153be795556f8546c8 | /trunk/src/ezArguments.h | 8c4b8443a66d7c3628b9b9762de3c64d7e649b31 | [] | no_license | BGCX067/ezwince-svn-to-git | 1c2aa0348c1a02f7dd1db1bce90479b0477f65b5 | 76cc471474efd2bba3bf0306024f179697b2d0e3 | refs/heads/master | 2021-01-13T12:55:16.379531 | 2015-12-28T14:48:52 | 2015-12-28T14:48:52 | 48,833,412 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,147 | h | ezArguments.h | //////////////////////////////////////////////////////////////////////////
// 文件名称: ezArguments.h
// 文件表示: 处理系统消息的参数定义
// 摘 要: 该文件定义了处理所有Windows消息时的参数
// License: GNU Lesser General Public License V 2.1
// http://www.opensource.org/licenses/lgpl-2.1.php
//
// 当前版本: 0.1
// 作 者: 尹曙光( kevdmx@sina.com )... |
02afcc22905a7c7505502a10e5354f0f4b1149c4 | bc38eff56d5b77dad9aba2c5529c9fd576407e0c | /02.Data Types/02-10.float_read.cpp | 1364d402d7d91f8d90c121bd45b32b06010946c6 | [] | no_license | AllisonLee0507/CPlusPlus_Language_Tutorial | fd58f3c3b53e92f9dcdda258865e4c0f3f4ebc07 | 84f9b757d80cd5604bb16ebe6585c2fd785cac45 | refs/heads/main | 2023-07-14T02:59:18.685798 | 2021-08-22T04:21:13 | 2021-08-22T04:21:13 | 398,712,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | cpp | 02-10.float_read.cpp | #if 0
#include <iostream>
float Convert(float);
int main(void)
{
float TempFer;
float TempCel;
std::cout << "Please enter the temperature in Fahrenheit: ";
std::cin >> TempFer;
TempCel = Convert(TempFer);
std::cout << "\nHere's the temperature in Celsius: ";
std::cout << TempCel << std::endl;
return 0;
}
... |
4d2b1cd7225ed48a2b6b89caefc440af36a85dcd | fc6de9af2c9b30d6432333f48bf9d2fdc51b80a5 | /BinarySearch.cpp | 0affeb6adb77ed7f1f872324a21d758c2ce75fe0 | [] | no_license | O-oBigFace/algorithm_leetcode | 047cff56a5e7859da9ff8be373764eb2a03f376e | 05a1ca84adc53ad54118434446e786dc684d0186 | refs/heads/master | 2020-03-31T04:20:21.389496 | 2018-10-07T03:03:37 | 2018-10-07T03:03:37 | 151,901,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | BinarySearch.cpp | #include <iostream>
#include <vector>
using namespace std;
/**
** 二分查找算法,并不简单
** 边界条件,值的更新
**/
int binarySearch(std::vector<int> nums, int target)
{
int low(0);
int high(nums.size() - 1);
int mid;
while (low <= high) // 符号
{
mid = (low + high) / 2;
if (nums[mid] == target)
{
return mid;
... |
1b42acb16ca42e7bfa35a7e4f1a3f0aeabce5c0b | 5d7ed2a09046717adcdcc35ec699542345533557 | /Time.cpp | 4d38aa569c376f211c225558932c5096fe790f74 | [] | no_license | w-A-L-L-e/classgen | e91fbc9685480f61b1d7368e06c665e1e236b4de | 9c47f5fcedcb16f2075461c6f4a5e6cbcc93469e | refs/heads/master | 2021-01-01T19:21:00.176882 | 2013-09-11T15:00:14 | 2013-09-11T15:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,647 | cpp | Time.cpp | /*=============================================================================
author :Walter Schreppers
filename :Time.cpp
created :/
modified :14/01/1998
version :13
copyright :Walter Schreppers
bugreport(log):/
========================================================================... |
c46d7898cd6ca514e2b869e640b63b6c628e7419 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_57_squid-3.3.14.cpp | 9d835f7f1f9f3b37ef0eb4381d1770a7acb55e8e | [] | 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 | 238 | cpp | squid_repos_function_57_squid-3.3.14.cpp | void
SquidMetaList::append( SquidMetaType type, size_t size, void* data )
{
SquidTLV* temp = new SquidTLV( type, size, data );
if ( head == 0 ) head = tail = temp;
else {
tail->next = temp;
tail = temp;
}
} |
9ea3adbacce04d84b895cf6505fc6f864bb69d02 | f6761a181b8b90ed4b072d1222d62b836db47dc5 | /tsdl/scenario/scenario_result_collector.h | ad6e8ef081f0d0d37482e5e50062d629241394f9 | [] | no_license | yohe/TSDL | ce75354c7f912d66199d699455bc46c67dcb1bb8 | f8f188012c47d4d3f936248fd13b7237d4e23663 | refs/heads/master | 2021-01-01T06:34:10.499015 | 2014-10-20T12:10:10 | 2014-10-20T12:10:10 | 4,041,508 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | h | scenario_result_collector.h |
#ifndef TSDL_SCENARIO_SCENARIO_RESULT_COLLECTOR_H
#define TSDL_SCENARIO_SCENARIO_RESULT_COLLECTOR_H
#include <string>
#include <map>
class FormatOutputter;
class ScenarioEntry;
class ScenarioGroup;
class ScenarioResult;
class ScenarioResultCollector {
typedef std::map<std::string, ScenarioResult*> ResultMap;
pu... |
1cee63556551cef3468c3257a3bcbc145017f666 | 84be7829b24b3286431040ac570728a79ff0dc1a | /SwapNodesInPairs/swapNodesInPairs.cpp | 3119f7e1c93637c6a1792e4dbae934ad734257db | [] | no_license | cfy-github/LeetCode | 2d65df19da5bc34d0658d5b5e5bbd525a82d16cf | e1172fc5c94e5ce0cc2d358ccdd02a79b2bd4ab2 | refs/heads/master | 2021-01-20T21:20:40.275064 | 2014-07-08T02:30:39 | 2014-07-08T02:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | cpp | swapNodesInPairs.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *swapPairs(ListNode *head) {
ListNode dummy(-1);
dummy.next=head;
ListNode *pre=&dummy;
Lis... |
b6067ea812cfd2e1d2f7b8be7bae4cb71009b196 | 693da42fd5c8199b95c054d69f65872bb263b27e | /hangmanTester.cpp | 68a915822c2512362db45e710cad03279dfb6eb7 | [] | no_license | williambaar/Hangman | 599f46355753a9b2b696fc39d46479607c0392cf | 7c3eac3b8e7bf912f468208526d29d64c9bdcafb | refs/heads/master | 2022-11-26T19:11:27.072910 | 2020-08-03T02:10:46 | 2020-08-03T02:10:46 | 284,578,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,161 | cpp | hangmanTester.cpp | /*
* Author: William L. Baar
* Date: 3/13/2020
* Sources used: None
* Known bugs: None
*/
#include "Words.h"
#include "Player.h"
#include<iostream>
#include<vector>
#include<stdlib.h>
using namespace std;
int main(){
//display menu
cout << "1. Play" << endl;
cout << "2. Score" << endl;
cout <<... |
32a7b8cf7a9ac07d3e802218b7585f281513b2ed | 417f056f1ec8951489970e7271b09deefe4dafe9 | /sms2/SMS2/xPublic/TCPClient.h | 099bbb1167998e3f37596d75057cfa1e999dd41f | [] | no_license | radtek/SMS | aa6af019a7f580ad087c5eb153761b8f3ffe7bb8 | a32991dd4c97aef974a35af4307822ef49231376 | refs/heads/master | 2020-06-08T11:39:26.583660 | 2017-05-28T07:56:45 | 2017-05-28T07:56:45 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,173 | h | TCPClient.h | #pragma once
#include "..\\stdafx.h"
#include <afxtempl.h>
#include <afxmt.h>
#include <map>
using namespace std;
namespace xPublic{
;/////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
extern DWORD ip2dword(const char *ip); //字符数组... |
4f306111891cdfec99a630e739ee52f6fe7dafe2 | e5091c3a8477fa12e1adfdb1f3d826eb6e9bb2be | /Codeforces/circle_of_monsters.cpp | fab19d33dc341cfe209d994b97ecdecac7b76ff6 | [] | no_license | leonardoAnjos16/Competitive-Programming | 1db3793bfaa7b16fc9a2854c502b788a47f1bbe1 | 4c9390da44b2fa3c9ec4298783bfb3258b34574d | refs/heads/master | 2023-08-14T02:25:31.178582 | 2023-08-06T06:54:52 | 2023-08-06T06:54:52 | 230,381,501 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | circle_of_monsters.cpp | #include <bits/stdc++.h>
using namespace std;
#define long long long int
const int MAX = 3e5 + 5;
int main() {
int T; scanf("%d", &T);
while (T--) {
int n; scanf("%d", &n);
long a[MAX], b[MAX];
for (int i = 0; i < n; i++)
scanf("%lld %lld", &a[i], &b[i]);
... |
87cd8b44b047c1a29d5252946bec24f0900a4f48 | 6fa3a62e51a14613a0a2e5f7b9aa74d909be4be7 | /list/_4.cpp | 006eb011efd03baca1b0f4c03b834b73c2215ebf | [] | no_license | ve2102388688/leetcode | b11b116f7992741f5c835f69940b7fa0eefe6e10 | 030e311aa9bfd51c8ede931cb0090c80f846fd27 | refs/heads/master | 2023-04-01T11:05:15.437717 | 2021-04-12T12:25:31 | 2021-04-12T12:25:31 | 326,671,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,585 | cpp | _4.cpp | #include <bits/stdc++.h>
#include "mycommon.hpp"
using namespace std;
/** \brief mergeTwoLists 合并两个有序链表
* \author wzk
* \copyright GNU Public License
* \version 1.0
* \date 2020-1-13
*
* \param[in] s 输入字符串
* \return 返回最长回文子串
*/
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2... |
251740dce2089405094963590f36be08ca34d602 | e03634c3379e9225b9044d02cc9d88a0ba7cca13 | /05.- test CrossCompiler/main.cpp | fa4fa620fbd97ee2500a34801e9f2b979630bd58 | [] | no_license | qeyup/Example_BuildCrossCompiler_arm-linux-gnueabihf | b328d43cdf700ca7d8e14c9e903643174fb708a8 | 138392bd9ef72863db2c1bb54be8acc525f2aec3 | refs/heads/master | 2023-02-03T16:40:51.088682 | 2020-12-17T21:36:55 | 2020-12-17T21:36:55 | 260,527,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | cpp | main.cpp | // Your First C++ Program
#include <iostream>
#include <limits.h>
int main()
{
std::cout << "test compiler. Max ulong value: " << ULONG_MAX << std::endl;
return 0;
} |
feca33c60a233736bcf510aa0a9746351f3aca73 | 6a476ae1b8e7a059b7cf7ea54f776bd0e9536a4f | /smo/smo/Request.h | e3640f8a8741d53ab5f5ad27a89a377b75bd511a | [] | no_license | grih9/SMO21 | 969a51b1b8fc125a7b3d3181cf750f493f8b1999 | 45abf56782e045322def4d6059a85b3bdae8a9bb | refs/heads/master | 2023-01-31T20:29:47.477977 | 2020-12-13T21:00:21 | 2020-12-13T21:00:21 | 309,811,357 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | Request.h |
#ifndef SMO_REQUEST_H
#define SMO_REQUEST_H
class Request {
public:
Request();
Request(double, int, int);
double getGenerationTime() const;
const int * getRequestNumber() const;
private:
double generationTime_;
int requestNumber_[2];
};
#endif
|
c4a509eb61df9d3479716d832706860479ff3b63 | 9e1e374a6a497563eaad4e7e8947885c61ecb0b2 | /src/transformations.hpp | 589f381dd4054ea13b4ddd402824f625d6d6815a | [] | no_license | matthieubulte/georges | 2ca92e8d3f8fb10dc59a94d4da6c028dd9e49458 | c1a107a8d4853dd346d7147a81f4bf51fd089bcb | refs/heads/master | 2023-02-07T23:43:29.291976 | 2020-12-31T16:22:11 | 2020-12-31T16:22:11 | 325,816,680 | 0 | 1 | null | 2020-12-31T16:07:09 | 2020-12-31T14:31:36 | C++ | UTF-8 | C++ | false | false | 1,553 | hpp | transformations.hpp | #ifndef TRANSFORMATIONS_H
#define TRANSFORMATIONS_H
#include "linalg/vec.hpp"
float smin(float a, float b, float k) {
float h = fmax(k-abs(a-b), 0.0f)/k;
return fmin(a, b) - h*h*k*(1.0/6.0);
}
template<size_t N>
vec<N> smin(const vec<N>& a, const vec<N>& b, float k) {
vec<N> h = max(k-abs(a-b), 0.0f)/k;
... |
b356c21384eb3000227d6ee62bebbbcb234b99eb | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/Basic-Dynamic-Mesh-Tutorial-OpenFoam/TUT16rotating/2.26/nut | d7ac66ad6566db13ba76cbe6d6cbd5e65286f156 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51,447 | nut | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
8a66a6bc2a0f5f2521c35003a6e42a3a0c2a696f | 838915b14c91acb69061b97b5a03d8a985973d13 | /TestGame/Game/Game/Route/RouteJudge.h | 028fa261cea08e1945074eca09edaeee93f10a04 | [] | no_license | kanikan201/kanikan | eb4f54a7c8072399518f3aeedb77b141821745e2 | c180e9c80a21c9c3733825c83722b83c59a27f99 | refs/heads/master | 2021-01-22T18:15:44.370954 | 2017-09-06T07:25:15 | 2017-09-06T07:25:15 | 85,036,138 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,881 | h | RouteJudge.h | /*
ルート判定クラス
*/
#pragma once
#include "Map/MapData.h"
class RouteJudge :public IGameObject
{
public:
RouteJudge();
~RouteJudge();
bool Start();
void Update();
void Init(int set_x, int set_y);
void Reset(int set_x, int set_y); //リセット
void Warp();
void Change();
//ルートオブジェクトをリセットするか
bool isDelete()
{
retu... |
138d72d894231f289e82178bafb32ac492696bb2 | 989b34c46586ce2b769afc334e53ad310ccf4ed7 | /Hubris/HCommon/HCommonMemory.cpp | 9a487ed8784e3c8111850de555579690fb0756ff | [
"Unlicense"
] | permissive | DavidCoenFish/ancient-code-1 | ed51ae1cc75cea7ed77db111d46846d36aac7975 | 8d76c810209b737bfc1ce996611807f62122fb41 | refs/heads/master | 2020-03-21T10:18:51.234695 | 2018-06-24T01:24:48 | 2018-06-24T01:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | cpp | HCommonMemory.cpp | //file: Hubris/HCommon/HCommonMemory.cpp
#include "Hubris/HubrisPreCompileHeader.h"
#include "Hubris/HCommon/HCommonMemory.h"
#include "Hubris/HCommon/HCommonAssert.h"
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
///////////////////////////////////////////////////////////
// using
/**/
using namespac... |
06f9ea58d69fce09850fb778843c73c1eb798c40 | 42eba1e2fd6e2eba25a93b398eb773744705e3a3 | /load_pcx.h | dcefef493fe6395c303600a854245f9db21f1446 | [] | no_license | meupauteama1/zero-tier-one-help | 5a9ac9c9952a696e0519d5b340c78e71d261f69c | 4eed2508dbb765891ddcde787a7f6be3aeb29c96 | refs/heads/master | 2021-07-25T06:19:56.501186 | 2017-11-04T21:31:42 | 2017-11-04T21:31:42 | 109,530,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,769 | h | load_pcx.h |
// This module implements the PCX loading routines.
#ifndef __LOAD_PCX_H__
#define __LOAD_PCX_H__
#ifndef __ILTSTREAM_H__
#include "iltstream.h"
#endif
#ifndef __PIXELFORMAT_H__
#include "pixelformat.h"
#endif
// PCX header structures.
struct REZ_PCXRGB
{
uint8 r, g, b;... |
967412c760a7056d970c28c4fd88ddbf72760fe5 | cd027e9faa90eb82300678732f483faedf4f69ac | /CopyConstructor.cpp | eb03318a3674e5d8b49fdc1c3c820a864c32ad88 | [] | no_license | edsonma/cplusplus_training | a7ae2050e3876db1466dcfd78d3d43bf534dd0a7 | e193aa87df85d38dc388731967ab165e7410db5a | refs/heads/master | 2021-06-06T16:49:32.033199 | 2017-10-24T00:28:50 | 2017-10-24T00:28:50 | 56,023,369 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,321 | cpp | CopyConstructor.cpp | #include <iostream>
using namespace std;
class CAT{
public:
CAT();
CAT(const CAT &theCat);
~CAT();
int getAge() const { return *itsAge; };
int getWeight() const { return *itsWeight; };
void setAge(int age) { *itsAge = age; };
void setWeight(int weight) { *... |
34c0c2fa2a21974779e0c6a8c7145d938100fd97 | 1eee1c3d2d376b39884012ca99e8c002a410fa92 | /Code/2600-2699/2678.cpp | 5e3b9afb9fa3ad9e24ea1d824f3dbfd2abe4ab9d | [] | no_license | Ienu/ExerciseEveryday | 7ceb85d69f6ce4518ea7da75868585acab755650 | 458a39561594a4504a806199ff5c43adcbcdb7ee | refs/heads/master | 2020-03-15T18:50:48.158822 | 2018-09-30T08:14:21 | 2018-09-30T08:14:21 | 132,293,599 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | cpp | 2678.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
int N, i, j, k;
cin >> N;
for(i = 0; i < N; ++i) {
string s1, s2;
cin >> s1 >> s2;
int max = 0;
for(j = 0; j < s1.length() - max; ++j) {
for(k = 0; k < s2.length() - max; ++k) {
if(s1[j] == s2[k]) {
int index = 1;
while(... |
cb7260e52ab6a23444a17fbacf06a582c4c5fdef | 8894e11e8ad3e948c5ef9f0b39c76b7bd6573abe | /technology-basics/LearnCpp/workspace_C/C2FINALEXAM/second.cpp | 611865e2f4aa3783f3c7031a1fce246a00e71305 | [] | no_license | YX577/elks | ccb423e166e4c072f3f9a0416299ed5c4a1056f8 | a372182abcf5b66334d8071bdaea0570a5f93791 | refs/heads/master | 2023-02-07T15:06:47.314800 | 2020-12-25T03:57:01 | 2020-12-25T03:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,653 | cpp | second.cpp | /*
* second.cpp
*
* Created on: 2017年1月19日
* Author: asus
*/
#include <iostream>
using namespace std;
int main2() {
char str[1000];
cin.getline(str, 1000);
//首先,把大小写统一了,小写变大写,因为大写的ASCII值小一些,直接改变ASCII码值
for (int i = 0; str[i] != '\0'; i++) {
if (str[i] >= 97 && str[i] <= 122)
str[i]... |
10df747030e31dff0b746e3cdfe27203bd6900f7 | dcb1df4fec95647c286b9fb50f9b37fe318db300 | /Monster.cpp | 0b8a81e0aee6a549261f05e146ff300c46d5c3bf | [] | no_license | shadowpa0327/dungeon | 97a0a084305595e0727cdbf5cccb84beb0ed0b15 | 116cada73c05fde7565320a89cc4c1b5f53ab135 | refs/heads/main | 2023-06-10T00:53:11.928782 | 2021-06-27T09:56:55 | 2021-06-27T09:56:55 | 316,531,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,891 | cpp | Monster.cpp | #include <iostream>
#include <string>
#include <vector>
#include <iomanip>
#include "GameCharacter.h"
#include "Player.h"
#include "Monster.h"
#include "Item.h"
#include "time.h"
using namespace std;
Monster::Monster(){};
Monster::Monster(string name ,int health ,int attack ,int defense):GameChar... |
cb9a56915d3c5300dd9ba0f270a0ca883b6d169e | a523380bc47012b0df53e0699744a95fb0cea92b | /src/sorting/x86/SortDegN.hpp | 48d509914501b5f2806df1928431abb16b154e33 | [] | no_license | gaobingaobingaobin/ADMM_decoder_layered | 05d4e143d4a14156054c798a23dccc4c23818cda | 31b8d0c97c6cccf928f836e92042ab024dcb6e03 | refs/heads/master | 2021-01-19T17:37:48.251476 | 2016-02-15T13:02:12 | 2016-02-15T13:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,684 | hpp | SortDegN.hpp | template <int vecLength=6>
void function_sort(float llr[vecLength], int pos[vecLength]){
int i, j;
#pragma unroll
for (i = 1; i < vecLength; i++) // template de classe
{
const float value = llr[i];
const int position = pos[i];
for (j = i; (j >= 1) && (value > llr[j - 1]); j--)
{
llr[j] = llr[j - 1];... |
c1b3c8ffb97b4ea00e04cc72824ae889df7a36c9 | 6f5804e7324f0642f8a0a1f7cfffa3770de7fb10 | /childA.cpp | fd76af903d84c7a872589ea04f5a0f2c6d7fbab2 | [] | no_license | StackDaniels/multiprocess-exercise | 9ba26e5c75c5fb563d9c651aaf8cab457a349b18 | f794f5bed970fe89e59feaadbe8bef4576e6c7dc | refs/heads/master | 2021-07-25T06:33:58.342514 | 2017-11-03T09:02:15 | 2017-11-03T09:02:15 | 109,374,308 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,577 | cpp | childA.cpp | #include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include <sstream>
#include <algorithm>
#define TAG "[childA] "
#include "common.h"
#include "computations.h"
const char* pipe_name = "/tmp/pipeToChildA";
inline int str_to_int(const string& str);
double calculate_median(vector<int>& number_buffer);
int... |
72becc5693a63fdcabaab0eeccf9fdbb09277d61 | 43d6538607ac900625b95bdcb30c8c86b32267eb | /poj/2871.cpp | 143bfae1dd9d05fa39f4c3f84d6bbd9ef3fa4dc0 | [] | no_license | pingany/GoogleJam | 440bbaf6b1fab3115a45dabcde628acd8f4e9e92 | a2daf1f790f77724cae96af912aca198d8f7fd92 | refs/heads/master | 2020-09-22T03:31:13.267056 | 2015-04-13T02:34:06 | 2015-04-13T02:39:54 | 5,203,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,013 | cpp | 2871.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
#include <algorithm>
using namespace std;
#define INLINE inline
#ifdef LOCAL
#define ASSERT(x) do{if(!(x)) __asm{int 3};}while(0)
#else
#define ASSERT(x)
#endif
#define forn(i, a, b) for(int i = (a); i < (b); i++)
int common1(con... |
797426ce5426e4812cc087a2c3b9decbe8b54202 | 7d80391a044057ce444d1db5cc4f1a02184f5e6d | /author_sol.cpp | 5afc5f20dc258039d97c54634ad5d218ce3ee42b | [] | no_license | mgalang229/Codechef-Chef-and-Party | 2ea2fdcf711fa55802637d5c8a90d3d291fc1d74 | 6708431caa6f7a63bac9bf202efcf689f1195981 | refs/heads/main | 2023-05-09T12:29:29.029325 | 2021-05-30T03:14:32 | 2021-05-30T03:14:32 | 372,096,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 967 | cpp | author_sol.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int tt;
cin >> tt;
while (tt--) {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
// sort the array in non-decreasing order
sort(a.begin(), a.end());
int sol = 0;... |
d6592bb0d241b66d71f0104032ef8d24d749c7e7 | a91adc39591e67ea168156989201de4b3ab9ac79 | /tree/MergeSortLL.cpp | ccd505bb49650d02d4ef3b5d79808bc2e5fd40f7 | [] | no_license | Nami2012/LeetCode | 36fa57ad2ecb0866a2399a579cc355beccbb7578 | eeddabc29537785c4d2e1b50fa73a7e1da38c90e | refs/heads/master | 2022-04-08T11:50:39.018036 | 2020-03-18T10:16:55 | 2020-03-18T10:16:55 | 179,913,791 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | cpp | MergeSortLL.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* sortList(ListNode* head) {
return MergeSort(head);
}
ListNode* MergeSort(ListNode* head)... |
e7cc354ac0a14e586bd369b9fd2da2fac49c62d0 | 9952d6fd024282ee393109ee54bda216355c7a9e | /AELD_2016/assgn3AELD/tlm/main.cpp | 44880de98d9c65db756aa94ceb8b7e2561cbbc0f | [] | no_license | ricktam1469/AELD_Codes | e1377a84372b157e1e3bfbc6f70e37e2aaf949b1 | 5e1e95b95b11d39c19911690894a119cb3de5d76 | refs/heads/master | 2021-01-10T05:07:47.976731 | 2020-04-02T07:02:30 | 2020-04-02T07:02:30 | 55,715,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | cpp | main.cpp | #include <systemc.h>
#include "ALU.h"
#include "Combiner.hpp"
using namespace std;
SC_MODULE(SYSTEM){
ALU *alu1;
Combiner *combine;
sc_clock clksig;
sc_signal < bool > inp_vldsig;
sc_signal < bool > inp_rdysig;
sc_signal < Operation > inp1_sig;
sc_signal < int* > inp2_sig;
sc_signal < int* > inp3_sig;
SC_CTOR(... |
b25716ce1c4cd53cc3220b3315c5515f143a9c86 | 1b5a0c6e9e6e620e19655e15d1c6b21dfc26bfda | /g4-ejercicio5.cpp | 6032194b9d0daf17eaf02e4485b5f237cb90e0a5 | [] | no_license | Gustage/Guia-4- | 877ee9d38f3ac4c7d5d2a437535e6f020a928e19 | d11d66cc9855f1f3caa6afeb13b699c70ba040db | refs/heads/master | 2022-08-27T19:32:30.021054 | 2020-05-26T02:40:40 | 2020-05-26T02:40:40 | 266,927,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | g4-ejercicio5.cpp | #include <iostream>
#include <string.h>
using namespace std;
int main(){
char cadena [256];
char init, fin;
int longitud;
cout<<"Digite la palabra";
cin>>cadena;
longitud=strlen(cadena);
init=cadena [0];
for(int i=0;i<longitud;i++)
{
fin=cadena [i];
}
i... |
b67aa4dd3d65d9255876a2e49444c5075aefe1af | 3879d1ca43c573c209f962182cd1e7f7fe978fbf | /leetcode/125. Valid Palindrome/125.cpp | 03ff84259c1e9678115e46f67e61182952935f05 | [] | no_license | DoctorLai/ACM | 34a5600a5adf22660c5d81b2d8b7a358be537ecf | aefa170f74c55c1230eb6f352770512b1e3f469e | refs/heads/master | 2023-09-01T02:13:01.604508 | 2023-08-31T15:42:07 | 2023-08-31T15:42:07 | 146,173,024 | 62 | 18 | null | 2020-10-11T13:19:57 | 2018-08-26T11:00:36 | C++ | UTF-8 | C++ | false | false | 539 | cpp | 125.cpp | // https://helloacm.com/coding-exercise-valid-palindrome-c-online-judge/
// https://leetcode.com/problems/valid-palindrome/
class Solution {
public:
bool isPalindrome(string s) {
if (s.size() == 0) return true;
int i = 0, j = s.size() - 1;
while (i < j) {
while ((i < j) && (!isa... |
798afd2e081232d860420888a5fbc75e9a1aae9d | e1f8e7caf5454bd6c1a559b0ef01fc6ab945eec4 | /code/tuple/test.cpp | 91fe6a3205473f9b16c3eb8a75b8d258a75b2ccc | [] | no_license | siri3us/siri3us.github.io | da4a2bac657aa672b5173c937a613e01e7a37b79 | b74eaea9405a9de84b3792c2f44ec91477dc2b7d | refs/heads/master | 2021-07-16T15:42:14.547975 | 2020-05-18T03:07:42 | 2020-05-18T03:07:42 | 156,371,328 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,206 | cpp | test.cpp | #include <gtest/gtest.h>
#include "tuple.h"
double FindSum(double a, double b, double c) {
return a + b + c;
}
TEST(TestSum, TestTupleSum) {
auto t = Tuple<int, int, int>{1, 2, 3};
EXPECT_EQ(Call(FindSum, t), 6);
std::cout << Call(FindSum, t) << std::endl;
}
TEST(TestTuple, TestTupleSize) {
auto t = Tuple<... |
cdf2c0cedb72fd43e1b77fd1fb8dc4c293e587de | 1cd17a5e9df7732bb71ded0e287caf2da9ced9fc | /Project/logic/Define/MemberDef.h | 8a900efc5854709396fa41dcce457854a9086a48 | [] | no_license | q871980431/NetGrid | 3951a6310f123f04708b5ca5d9f027f1f2032f42 | 1414bb44f8ce3bca49cb5c27b09abcf8b47a8f1e | refs/heads/master | 2021-01-06T20:49:15.533019 | 2020-03-12T13:26:07 | 2020-03-12T13:26:07 | 78,807,691 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,172 | h | MemberDef.h | /*
* File: MemberDef.h
* Author: xuping
*
* Created On 2019/3/27 17:12:44
*/
#ifndef __MemberDefine_h__
#define __MemberDefine_h__
#ifdef WIN32
#ifdef MEMBER_EXPORT
#define MEMBER_API __declspec(dllexport)
#else
#define MEMBER_API __declspec(dllimport)
#endif
#else
#defin... |
8252b0edb3825d79524c801dca73c8059c233428 | f47401cf0b15bb8e620f825424c2fa7a4de8be31 | /src/main.cpp | 8c207998f462c6a081ac12e2268f9c66e9a89c3f | [] | no_license | j23414/writeacompiler | 777e8ad4990248017dd404a1cc1c21eec9a710d5 | 5b20dc8222e5c56de60c7c7ee1772654299b7cf3 | refs/heads/master | 2020-07-16T23:17:16.455084 | 2016-12-30T14:34:25 | 2016-12-30T14:34:25 | 73,939,381 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154 | cpp | main.cpp | #include "global.h"
#include "init.h"
#include "parser.h"
#include <stdlib.h>
int main(){
init();
parse();
exit(0); /* successful termination */
}
|
8eed96853de6c1f34548f01a6d86d6a5d4b39309 | f8aa061aff7e3478a779b53f9b1a554d7bf5bc14 | /L1Trigger/L1TNtuples/test/L1MacroExample.h | eefbf7c3b77e12ab60f2fa78de5550aaf9c9acf1 | [] | no_license | tj710/TTEmulator | 95761115397f16b96a955987b20d94e6b32aae5e | 22f4005cdacbef75d14ec18264fef85f13ed6caa | refs/heads/master | 2020-04-05T02:29:30.185879 | 2015-07-25T21:33:27 | 2015-07-25T21:33:27 | 38,894,556 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 56,598 | h | L1MacroExample.h | //////////////////////////////////////
// Example root macro for l1 ntuples
//////////////////////////////////////
#ifndef l1macroexample_h
#define l1macroexample_h
#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
#include <TTree.h>
#include <TFriendElement.h>
#include <iostream>
#include <TList.h>
const... |
89e17b727e14c30171bcb190f2154e79c368c3a3 | 57f24846a3fa3670c8519af87e658eca120f6d23 | /B2_CoarseMesh2_monkey/18/p | 52bbec22086224e1f79c50e825218eb399de867f | [] | no_license | bshambaugh/openfoam-experiments | 82adb4b7d7eb0ec454d6f98eba274b279a6597d8 | a1dd4012cb9791836da2f9298247ceba8701211c | refs/heads/master | 2021-07-14T05:53:07.275777 | 2019-02-15T19:37:28 | 2019-02-15T19:37:28 | 153,547,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221,456 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
... | |
9a4e542567ff1f6a82d7a7cf67be3e910eac0e44 | 30d9062c5fc7b63cfba2e783aba5ca4347591dbd | /BOGLGP2/VC++Projects/ch13_ogro_invasion/ogro_invasion/node.h | 08bbecbe44652698dac0d47280db6f3ad0c551e5 | [] | no_license | MatrixPeckham/cse381game | 30e085a66ed89f619e14b353f598dafa4d5bd196 | 596e0c7b8f2e7c4b4b14622a5f9f1180a990e8cb | refs/heads/master | 2021-01-17T06:27:06.091888 | 2012-05-23T23:07:57 | 2012-05-23T23:07:57 | 32,118,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | h | node.h | #ifndef NODE_H_INCLUDED
#define NODE_H_INCLUDED
#include "entity.h"
#include <vector>
class Node
{
private:
Node* myParent; //because recusrion sucks
Node* myChildren[4];
std::vector<Entity*> *myListOfEntitys;
bool myListInit;
bool myChildrenInit;
int myID;
float myNodeWidth;
Vector3 myCente... |
d030d92c8ff9eef0baebbeabf048c90f5f915613 | a39050792442e7b8dd77600654ca0eabd26f2150 | /animationdata.cpp | 1e8b3a05dc0a20e383659f9d2f714b2b850330e3 | [] | no_license | kap256/happy_and_birthday | 3202e6cdf6b9886603bb650b35c06f0f42cb42e1 | 1422aff9d51046f7270792b8abb5ffd669f781c6 | refs/heads/master | 2020-12-02T15:29:32.167588 | 2019-12-31T07:52:14 | 2019-12-31T07:52:14 | 231,048,093 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 22,633 | cpp | animationdata.cpp |
#include "animationdata.h"
CAnimationData::CAnimationData()
{
mView=false;
}
CAnimationData::CAnimationData(int x,int y,int deg,bool top,bool turn)
{
mX=x%64;
mY=y%64;
mRad=deg*3.141592/180.0;
mTop=top;
mView=true;
mTurn=turn;
}
typedef CAnimationData CAni;
const CAnimationData AnimationDa... |
e53056852fddc61448f815349ed9209d5452d3fb | 63c3ad6d728332d178691a5604d50d50a4e1bd67 | /CXX/src/euler001.cpp | 689517558ce510ec65423ea585247aac9c1a8dff | [
"BSD-3-Clause"
] | permissive | troberson/exercises-euler | aeca276ae694e210fab470a1a989cb1ddefc4c9d | 03ffafb1016d252ca297f2ab6f02552df1377496 | refs/heads/master | 2020-04-02T22:09:18.276793 | 2019-09-11T05:16:38 | 2019-09-11T05:16:38 | 154,823,280 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | cpp | euler001.cpp | /*
* Project Euler - 001 - Multiples of 3 and 5
* Tamara Roberson <tamara.roberson@gmail.com>
* Copyright (c) 2019 Tamara Roberson
*
* If we list all the natural numbers below 10 that are multiples of 3 or 5, we
* get 3, 5, 6 and 9. The sum of these multiples is 23.
*
* Find the sum of all the multiples of 3 or... |
bf4b359878b522dd177db3610febf89418f20b9c | 209d3e0888cceada3948b1290dbf14f2588a3a3c | /partition-labels.cpp | f208a1d829d2b17f9b8a331a075926ce7a9dc4b3 | [] | no_license | kameshkotwani/september-leetcode-challenge | 09ea2ff4867aa6e2393bcd95a7b282f172eb9153 | 1b14fe1989d8ded0465a33558a95502c566892e9 | refs/heads/master | 2022-12-16T09:49:10.589949 | 2020-09-11T08:11:50 | 2020-09-11T08:11:50 | 290,674,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | cpp | partition-labels.cpp | class Solution {
public:
vector<int> partitionLabels(string S) {
vector<int> output;
string &s=S;
int n=s.length();
if(s.length()==0) return output;
vector<int> last_indices(26);
for(int i=0;i<n;i++){
last_indices.at(s[i]-'a')=i;
}
int star... |
185e4792a7b32f2d5d06983ddc86e9ee52b6f617 | 1c0f4d6f20270af9cf40633246d8aa741f1c575c | /Source/Roguelike3D/Roguelike3DGameInstance.cpp | 53ce4d878e86ab200f8428d5f4a62c57fe1d88b1 | [] | no_license | shield1203/Roguelike3D | c39e8e53d852bc68dbc5ee1dbf65d790e47b50d9 | 023ae0cb4da6abd305d66cb78f32e7d1c760be0a | refs/heads/master | 2023-03-10T15:36:44.898672 | 2021-02-28T17:46:26 | 2021-02-28T17:46:26 | 327,898,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38 | cpp | Roguelike3DGameInstance.cpp | #include "Roguelike3DGameInstance.h"
|
23863fd38b0743ac31083dcbcda4dcb5ae68906d | 225347aa211a9a805d99a383a8fac7b44b9b3858 | /Stacks and Queues/two_stacks.cpp | f9e9effc1a04b00f7ea03f11a6237d1f2d0839eb | [] | no_license | Pratik038/Pepcoding-Level-1-beginner | f16f1349a37f23d6b04953e0192edb5627593cd7 | dbea2afb4abd284cd27f85d80785ab21e97ed0f8 | refs/heads/main | 2023-06-19T21:19:34.541447 | 2021-07-13T16:05:13 | 2021-07-13T16:05:13 | 359,524,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,063 | cpp | two_stacks.cpp | #include<bits/stdc++.h>
using namespace std;
#define SIZE 10000
class TwoStack{
int data[SIZE];
int tos1;
int tos2;
int cap;
public:
TwoStack(int cap){
this->cap = cap;
tos1 = -1;
tos2 = cap;
}
void push1(int val);
int pop1();
int top1();
int size1();
void push2(int val);
int pop2()... |
6f4a3cfc768bc3da7c34816efe4c667651b2ce04 | f88cdcf0a186104d11ce2ee20b51df0458110281 | /Practice6/7/7.cpp | dd55a4683e01cbfb513dd653c7222d493e447370 | [] | no_license | sobol-mo/KHPI_Progr_Fundamentals | d452a6e6f9242a7a599e9e3c978bd80b9aead800 | bc0f527ab82a2874f02384ad2c87e41b2cac708d | refs/heads/master | 2023-07-31T02:51:01.238400 | 2021-09-27T14:02:03 | 2021-09-27T14:02:03 | 282,931,371 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | cpp | 7.cpp | /*
Приклад 7.
Див. Практична робота 6.docx
*/
// Пошук мінімального з непарних та його порядкового номеру
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include "windows.h"
using namespace std;
#define SZ 5
int main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
int a[SZ]; // вхідний масив
int min, i... |
438e710779257b6c2e3b5b3208bc68707332492e | d6277591f92c4d021bee86f4532d87556922783c | /codes/codeforces/1278A.cpp | cc1fa3ec23b2313d06284ea745c5a4cb53fb2966 | [] | no_license | masterchef2209/coding-solutions | 83a1e8083f7db7f99ca16c9a8a584684f2ad8726 | 48c7aa127e2f2353cc18cf064fbd5b57875c1efa | refs/heads/master | 2021-05-26T06:02:53.579607 | 2020-04-25T21:23:56 | 2020-04-25T21:23:56 | 127,779,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,474 | cpp | 1278A.cpp | /*Read the problem carefully before starting to work on it*/
#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
//using namespace boost::multiprecision;
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
//using namespace __gnu_pbds;
typedef lo... |
8616425050c82e19beb007616eb9e473b22237c0 | 4b079e58941be01982b59f92b02a63dc59439aa3 | /ghkm/xrs-extract/c++-src/State.h | 6c67bf390415d255dc33d3a05f0443cf1311271c | [] | no_license | isi-nlp/sbmt | 143b784540e79cdbeaed3655588e8f4e38157284 | 56b2a2651b7741219657d095db3ebd7875ed4963 | refs/heads/master | 2020-04-06T13:56:13.370832 | 2018-11-21T18:59:31 | 2018-11-21T18:59:31 | 47,573,153 | 6 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 12,243 | h | State.h | #ifndef __STATE_H__
#define __STATE_H__
/***************************************************************************
* Author: Michel Galley (galley@cs.columbia.edu)
* $Id: State.h,v 1.15 2009/11/09 21:38:56 pust Exp $
***************************************************************************/
#include <iostream>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.