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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb5ef8047c133755c4afe491af344a333bbc69a6 | 7797740f06f9e6d6729fd49697d8917e28c172d1 | /lite/kernels/mlu/bridges/tensor.h | 22268f69ba39926dbbfb1bbb18e3a86331097f90 | [
"Apache-2.0"
] | permissive | AnBaolei1984/Paddle-Lite | 508f567f27403dabd097c69f3cc4cc239d3fe933 | db4bd998d5fdabddbcf0eb28951787eb008eeb19 | refs/heads/develop | 2021-11-21T12:18:38.346264 | 2021-01-28T02:57:01 | 2021-01-28T02:57:01 | 333,635,248 | 2 | 1 | Apache-2.0 | 2021-07-27T02:52:39 | 2021-01-28T03:33:20 | null | UTF-8 | C++ | false | false | 2,267 | h | tensor.h | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
a32e12e41dc8217da261438cc5ce611834ea5b4e | fa6265903f99b667265bd8889b0ee71358a17b12 | /src/gl/stereo3d/gl_quadstereo.h | 377d846b336e687c82bc83a1a6820dfad46d7608 | [] | no_license | cmbruns/gz3doom | 1a12beec7d6dbd3003608c45676158306ee6cd6f | 0ef1d8d3cf2c301088ca7690d58957803c9d00b0 | refs/heads/openvr | 2022-12-23T19:18:03.611477 | 2017-06-27T16:41:26 | 2017-06-27T16:41:26 | 13,457,931 | 100 | 20 | null | 2018-07-29T16:40:18 | 2013-10-10T00:15:27 | C++ | UTF-8 | C++ | false | false | 2,167 | h | gl_quadstereo.h | //
//---------------------------------------------------------------------------
//
// Copyright(C) 2015 Christopher Bruns
// All rights reserved.
//
// This program 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 Softwa... |
cc1b1366b7c56df65bdbd7e96737ead353b42b0f | f205e66e8e1a6b0459438565e90d6704d9f499f7 | /CHIP-8_Emulator/Cpu.h | 1528a2210221e7c472f3861dff01730c6463218f | [] | no_license | boris-ns/Chip8 | e413ce8d1da2234148aa573044f274071c867e41 | 5e45875ab47627e2824c1f4d27f2e284ec11403d | refs/heads/master | 2020-03-07T15:31:50.847974 | 2018-04-20T13:15:58 | 2018-04-20T13:15:58 | 127,557,251 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,525 | h | Cpu.h | #pragma once
#include <string>
#include "SFML/Graphics.hpp"
#define MEMORY_SIZE 4096
#define NUM_REGISTERS 16
#define SCREEN_WIDTH 64
#define SCREEN_HEIGHT 32
#define MULTIPLIER 10
#define STACK_SIZE 16
#define NUM_KEYS 16
#define FONTSET_SIZE 80
#define NUM_PIXELS SCREEN_WIDTH * SCREEN_HEIGHT
clas... |
a1a5f759fbb5074456ed105901e11b065471ccbf | d160bb839227b14bb25e6b1b70c8dffb8d270274 | /MCMS/Main/Processes/ConfParty/ConfPartyLib/PartyMonitor.cpp | 66139faf984859f003267bf50ca5069252154c2e | [] | no_license | somesh-ballia/mcms | 62a58baffee123a2af427b21fa7979beb1e39dd3 | 41aaa87d5f3b38bc186749861140fef464ddadd4 | refs/heads/master | 2020-12-02T22:04:46.442309 | 2017-07-03T06:02:21 | 2017-07-03T06:02:21 | 96,075,113 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87,572 | cpp | PartyMonitor.cpp | //+========================================================================+
// PartyMonitor.CPP |
// Copyright 1995 Pictel Technologies Ltd. |
// All Rights Reserved. |
//----... |
58e48441d41394c69dbc1256f51a89df2bdbd83c | 8d952a06e3809a06825a3be7b067201f3652f16a | /debug/atomics/ATLAS-TDAQ/HltsvStrategies/DcmMeasuredStatistics.h | 4a58b208398e730742f8299722cd5a9ccfb11d4b | [
"MIT",
"GPL-3.0-only"
] | permissive | andyLaurito92/haikunet | b771eaf6bd91292485f0a49698ce123b9308d676 | db44623b248c56735c28a5f589c3239dc7e9855e | refs/heads/master | 2021-06-14T12:38:38.996450 | 2021-05-05T18:26:02 | 2021-05-05T18:26:02 | 75,564,849 | 2 | 1 | MIT | 2021-05-05T18:26:26 | 2016-12-04T21:12:31 | C++ | UTF-8 | C++ | false | false | 1,237 | h | DcmMeasuredStatistics.h | #ifndef ATOMICS_ATLAS_TDAQ_HltsvStrategies_DcmMeasuredStatistics_H_
#define ATOMICS_ATLAS_TDAQ_HltsvStrategies_DcmMeasuredStatistics_H_
#include "simulator.h"
#include "sinks/Loggers/IPowerDEVSLogger.h"
#include "ATLAS-TDAQ/globals.h"
#include <algorithm>
#include <vector>
#include <queue>
#include <list>
class DcmM... |
d4ce31680c844405867f4daff06cece84af5d64a | de11818671ff03bf6bade1fcd490ab7b83386d05 | /test/cpp/profiling/endoscope_service_test.cc | c61aaae3946500f4ec307470576748d3c4571069 | [
"BSD-3-Clause"
] | permissive | zayoo/grpc | 1a6a6a3c3823fac2480ded97e94f315c5e6a4258 | 693cb54854be0701acf98b76042ace7d2f5419bf | refs/heads/master | 2021-01-24T14:18:33.049867 | 2015-08-08T00:57:20 | 2015-08-08T00:57:20 | 36,533,967 | 0 | 0 | null | 2015-07-27T20:14:59 | 2015-05-29T23:16:10 | C | UTF-8 | C++ | false | false | 6,027 | cc | endoscope_service_test.cc | /*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
cb11d2e5ec210b2d51391f8433654805b7d2c73f | 083a89f79cf82819847f4028ece2cf0d217b2b70 | /src/kpserver/authenticate/LoginManager.cpp | 2aab818cfa867f6d1d64647c3ca22b691755c4df | [] | no_license | pyotr777/kportal | 5e535cb08e6fd069ef88eaceafe4becbd71d0fc4 | c0a6ff5b73234d5ff71d9a886a8ab5e81648018e | refs/heads/master | 2020-04-03T22:07:00.453636 | 2017-02-16T05:28:19 | 2017-02-16T05:28:19 | 58,171,266 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,505 | cpp | LoginManager.cpp | #include "LoginManager.hpp"
LoginManager::LoginManager()
{
}
LoginManager::~LoginManager()
{
m_users.clear();
}
/*
* Add UserInfoObject by loginId
*/
void LoginManager::addLoginInfo(const std::string loginId, const UserInfoObject userInfo){
boost::unique_lock<boost::mutex> lock(m_lock);
m_users.insert(... |
49a5bf1ca793c07fab01c413112c38aff10a5a92 | 7e503d7a83ac710ed3acbfca8c2048c1e80be0a8 | /Tables/include/TStack.h | 8c1b4ba31c27e3042f5e424af799bb0d6358a7b6 | [] | no_license | pavelkumbrasev/Tables | 4aca3eee25d692c397b16bc122dad4bac4410d1c | 20827893859eec8d8a70533eb2f738693858a1dc | refs/heads/master | 2021-09-14T23:01:28.114839 | 2018-05-21T18:10:58 | 2018-05-21T18:10:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 695 | h | TStack.h | #pragma once
template<class T>
class TStack{
private:
int size,MaxSize;
T *mas;
public :
TStack(int _MaxSize=100){
if (_MaxSize < 0) throw _MaxSize;
size=0;
MaxSize=_MaxSize;
mas=new T[MaxSize];
}
~TStack(){delete [] mas;}
TStack(const TStack &st){
size=st.size;
MaxSize=st.MaxSize;
mas=new T[M... |
6f475fe7c9343d07ef796a4c67c3e04471f127c1 | 283984e15f18712a46ae1457a319fbdf6fe037f8 | /coin_change.cpp | 76071befd94c33ae4d48208f3f8de1f54e99bf3c | [] | no_license | iamfahim/Algorithm-Implementation | ceecb231bcf8b7f79af39d426c64d3aac829e497 | 90b954bcc14801451bfd3ebbf806228360fdc89e | refs/heads/master | 2021-01-25T14:16:57.271155 | 2019-12-26T17:39:24 | 2019-12-26T17:39:24 | 123,679,742 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | coin_change.cpp | #include<bits/stdc++.h>
using namespace std;
int coin[]={5,8,11,15,18};
int make;
int dp[6][100];
int call(int i,int amount)
{
if(i>=5)
{
if(amount==0) return 1;
else return 0;
}
if(dp[i][amount]!=-1)return dp[i][amount];
int ret1=0,ret2=0;
if(amount-coin[i]>=0)... |
a75b1d3f7b4cc077dd0cc85ed582b3f93af7f74b | c0d9e29c76c6a3c066853a39617409527b71a841 | /source/ControlSystem.cpp | 4d69643a8412019091706016f59751db0a7de870 | [
"MIT"
] | permissive | fneiva2006/rpi-facerec | 6c6cf5203398e5a1709c4eb79ee54660b740ae4a | b081f0dea2bf97547e76a490d86db5b70d2e1ba9 | refs/heads/master | 2022-09-06T11:02:47.407154 | 2020-05-31T14:37:48 | 2020-05-31T14:37:48 | 268,298,359 | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 14,984 | cpp | ControlSystem.cpp | /*
File Name: ControlSystem.cpp
Author(s): Felipe Neiva Montalv„o Melo and Dennis Hadjivelichkov
July 2016
This file corresponds to the "Controller" on the Face Detection & Recognition System.
It was developed in an undergraduate academic project at The University of Manchester
during the month... |
875967eddbc4a9e9c538d586e688f25793e8d7c8 | 3457bdff33ab6c5c892c23fb9bbb40fe990001a8 | /Metal Gear/Rock.h | 1d6918225e0c8569d3a093686d68be423e7a0015 | [] | no_license | bennettl/Metal-Gear | 83c46f0b4775feb03f74fbbc8e254923737fb7f5 | 2296265a510a35b471a9fb84eac0bd000a67e625 | refs/heads/master | 2020-05-17T16:40:38.647597 | 2014-08-07T18:08:16 | 2014-08-07T18:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | h | Rock.h |
#ifndef Rock_h
#define Rock_h
#include "Object.h"
class Rock : public Object{
public:
//Constructor
Rock(QWidget *parent = 0, Coordinate pos = defaultCoordinate);
// Moves the bomb item to its current position (static)
virtual void moveObject();
};
#endif
|
e8db74527e22dbf6c1c972e8eb9c2bfb405bf625 | a4464526a36b3aa50144588dbffe3b053bd1dd07 | /plugin/src/icu4unity/unity_interface.h | de398cf212aa4b3a176da9d5da9e33a751bce82c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | chanon/icu4unity | 8022702ab2b269c116e1d1b001d842f126478976 | 7a904f4862b75d794a3b20b7a2f0fcdb00bff795 | refs/heads/master | 2020-04-01T13:58:40.582937 | 2018-10-21T08:44:45 | 2018-10-21T08:44:45 | 153,275,168 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,769 | h | unity_interface.h | #pragma once
// Code in this file is From Unity Technologies NativeRenderingPlugin demo
/*
The MIT License (MIT)
Copyright (c) 2016, Unity Technologies
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... |
fcbb694f9cf4262fafeb59fd5cba7d2770433852 | fbe2cbeb947664ba278ba30ce713810676a2c412 | /iptv_root/iptv_media3/IMediaStreaming.h | 1d888ecf54b4598a6ce8a8fc8ba633c111ff4fbd | [] | no_license | abhipr1/multitv | 0b3b863bfb61b83c30053b15688b070d4149ca0b | 6a93bf9122ddbcc1971dead3ab3be8faea5e53d8 | refs/heads/master | 2020-12-24T15:13:44.511555 | 2009-06-04T17:11:02 | 2009-06-04T17:11:02 | 41,107,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,259 | h | IMediaStreaming.h | #ifndef IMEDIA_H
#define IMEDIA_H
#include "CBufferMedia.h"
#include "Media_const.h"
#include "Data_reg.h"
#include "ithread.h"
#include "CThreadSafeDeque.h"
class IMediaApi
{
protected:
BOOL m_bInit;
public:
IMediaApi() {m_bInit = FALSE; }
virtual ~IMediaApi() {}
};
class IMe... |
fc4c2a8a9c42acac4bb41675da2093393ddbc15b | fcd588e6f24a0578b82da8d59a760a6b25e9403f | /libSLR/Core/medium_object.cpp | 46e29eec26c3a26e0185f9e75477693ddae6cf06 | [] | no_license | PeterZs/SLR | 6337b8213aaa946728877ffdb7ff8c883a7cc9de | 53ca7a57d52f74d26b897eec8a6d646feff513a8 | refs/heads/master | 2020-04-19T14:53:51.896447 | 2018-12-23T07:48:49 | 2018-12-23T07:48:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,448 | cpp | medium_object.cpp | //
// medium_object.cpp
//
// Created by 渡部 心 on 2016/09/19.
// Copyright (c) 2016年 渡部 心. All rights reserved.
//
#include "medium_object.h"
#include "../MemoryAllocators/ArenaAllocator.h"
#include "distributions.h"
#include "surface_object.h"
#include "light_path_sampler.h"
#include "textures.h"
#i... |
e97254129b20c53e5b28cfccdfc181cf8ce33bfe | 482ec3480e8418dda62f85a5359e70c89256f1a8 | /cpp/CPP_NEW/helper_classes/CStrLen.hpp | eca1f15475ebbec0249f29c507e29635426c2141 | [] | no_license | rajatgirotra/study | 84d319968f31f78798a56362546f21d22abd7ae7 | acbb6d21a8182feabcb3329e17c76ac3af375255 | refs/heads/master | 2023-09-01T20:48:31.137541 | 2023-08-29T01:41:17 | 2023-08-29T01:41:17 | 85,041,241 | 6 | 1 | null | 2023-05-01T19:25:38 | 2017-03-15T07:17:24 | C++ | UTF-8 | C++ | false | false | 1,137 | hpp | CStrLen.hpp | #pragma once
#include <cstdint>
#include <fstream>
#include <string>
#include <type_traits>
namespace util {
#define STRLEN(s) ( ( (sizeof ( s ) ) / ( sizeof ( char ) ) ) - 1)
#define CSL(s) (s), (static_cast<int>(STRLEN(s)))
#define CSLO(s) CStrLen(CSL(s))
class CStrLen
{
private:
const char... |
d2b74da3ba34711732a9e5eaff82239361f49979 | 93a89acb8dfc02de05837556132b27628abde83c | /vpu-hal2/dl/inference-engine/src/vpu/graph_transformer/stages/detection_output.cpp | 41b0e0891bb83c4d706499ec14419d737d6221f6 | [
"Intel",
"Apache-2.0"
] | permissive | leon1205/nn-hal | ef1b8c3fd5b2e0cbc96df44cb6206b7917c59d53 | f6c23e001c690cb32ce8392825e000ae631cf5fc | refs/heads/master | 2020-03-24T10:03:32.377936 | 2018-07-06T15:45:19 | 2018-07-06T15:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,913 | cpp | detection_output.cpp | //
// INTEL CONFIDENTIAL
// Copyright 2017-2018 Intel Corporation.
//
// The source code contained or described herein and all documents
// related to the source code ("Material") are owned by Intel Corporation
// or its suppliers or licensors. Title to the Material remains with
// Intel Corporation or its suppliers an... |
0d764077ff62871690b319371eb9e278266b9b7d | aba765c5993b8d1074622441089a55a1610ce18e | /src/trident/iterators/arrayitr.cpp | 6e2bf88c980b3d4821cd04cca959f9f536b0082a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | karmaresearch/trident | cbf3dfa7d81c93ac40c76782564d0e453f605fa3 | 621ed49c648c811d5f69617833539f419766d3be | refs/heads/master | 2023-08-03T23:09:38.295697 | 2023-07-19T07:21:15 | 2023-07-19T07:21:15 | 97,223,343 | 23 | 9 | Apache-2.0 | 2021-09-30T09:04:25 | 2017-07-14T10:40:40 | C++ | UTF-8 | C++ | false | false | 6,035 | cpp | arrayitr.cpp | /*
* Copyright 2017 Jacopo Urbani
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, V... |
8fc750e42a08b088de32a8951d23f21b5ab7619e | 9868954eba83b4e277d30e1146290b0e9cbf77cc | /src/ROL.h | 9e9a5d1e3fe4f1d890d02f46cfe7c5e1016a3d1a | [
"FSFAP",
"MIT"
] | permissive | domahony/6502Emulator | 25f741a0e9fefc6a1a0ec5ef87d0093b4689ad30 | dbc1088998966ce4d59b9a38e5fe08dfcb1bfcf9 | refs/heads/master | 2016-09-06T12:47:56.204414 | 2015-04-29T23:24:04 | 2015-04-29T23:24:04 | 30,092,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | h | ROL.h | /*
* ROL.h
*
* Created on: Feb 17, 2015
* Author: domahony
*/
#ifndef ROL_H_
#define ROL_H_
#include "CPU.h"
void initROL(std::function<int (domahony::emu::CPU&)> *fn);
#endif /* ROL_H_ */
|
67f2c4efeee9f68a43344772f6d49dda299fb129 | 1c5b605bc9c9047fa598a045924963fe00f102c3 | /src/serverSubject.cpp | e27564859496253dad23340ae95e9cf3da049fec | [] | no_license | rozanecm/siu-guaramini | 6f276e4399b524ade36803e9c49b6145e535d74a | 067942c3b3ad33b80059a58a474f065ee84d22d0 | refs/heads/master | 2021-01-20T01:17:32.216444 | 2017-10-07T18:48:32 | 2017-10-07T18:48:32 | 89,251,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | cpp | serverSubject.cpp | #include "serverSubject.h"
#include <string>
Subject::Subject(int subjectID, int courseID, int teacherID, int vacantes,
std::string description) : subjectID(subjectID),
courseID(courseID),
teacherID(teacherID),
... |
bc4a4736fadb15e3c90d05738c9ce6334bb27148 | e10bfac72612860ecf2f39c7769c0d0ffe703bff | /DeviceStateForm.h | fdd2cebaa5a2ad6e2971ed0da5a5ae62b0f5d24d | [] | no_license | qqsskk/AgvCtrlSys | 0e03bf1a7b6e841cce963817d8e9bf26c7e5aac9 | bea53eb0e5a6b186ddecfd6118a9c1e71ee77f8f | refs/heads/master | 2020-12-12T23:47:58.649928 | 2019-12-02T03:05:39 | 2019-12-02T03:05:39 | 234,260,672 | 2 | 1 | null | 2020-01-16T07:27:40 | 2020-01-16T07:27:40 | null | UTF-8 | C++ | false | false | 774 | h | DeviceStateForm.h | #ifndef DEVICESTATEFORM_H
#define DEVICESTATEFORM_H
#include <QWidget>
#include <QHBoxLayout>
#include <QTimer>
#include <QSqlQueryModel>
#include <QSqlTableModel>
#include <QSqlDatabase>
#include <QSqlQueryModel>
#include <QDebug>
#include <QJsonParseError>
#include <QJsonArray>
#include <QVariantMap>
#include <memo... |
f9bbd353ed332beca2de451a83cb6fc5c222993e | 83ea4112a19c193dcc8a3d36f2ea7f9b70294d53 | /4/Guess The Number.cpp | 4633cbef16f654395d60e396310e2c67364b2b6f | [] | no_license | s-bond/Miscellaneous-Codes | a8240eb8d2ab59528be59a1a60ad9fcd1722e9b2 | 51fa3242230a7c820a58999e3449a755e9fda6f4 | refs/heads/master | 2021-01-02T22:58:50.156483 | 2013-08-12T17:53:36 | 2013-08-12T17:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | cpp | Guess The Number.cpp | /* @
* Siddharth Maloo
*/
#include <iostream>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <string.h>
#include <string>
#include <math.h>
#include <algorithm>
#include <cstring>
#include <time.h>
#include <fstream>
/////////////////
#define ULL unsigned long long int
#define GI ({int t;s... |
a7db6cbd733bf5a2a6fac98f6f2ddddc8ab4805f | 50f566db9a9f3c6a80f5edc8b1d278caf64b4758 | /HW Chapter 4/Testingcode/testingcode1/name.h | c55844a9ec017f34ac25bd72aa679b31c4768a1b | [] | no_license | trippy/c-plus-plus | cd06eb27cdb6986af5e85e60382d35193adad96f | 8df49eb84aa6da56221bf25ae26cfba0489ef1de | refs/heads/master | 2022-11-22T23:33:37.597377 | 2020-07-27T20:26:34 | 2020-07-27T20:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | name.h | //CPSC 230 RAVI PATEL CH 4 HW Q1
//name.h
#include <iostream>
using namespace std;
double max1(double a, double b){
if (a > b)
cout<<"Maximum value: "<<a<<endl;
else
cout<<"Maximum value: "<<b<<endl;
return 0;
}
bool islower1(char a){
if (islower(a))
cout<< true<<" - Character is lower case!"<<endl;
else
... |
669964e7ad2b82967b3fc73a8099baa095462b40 | 1d1fa41f8c25074a571d9d530bce7301b8f4e9df | /MarioProject/constants.h | 01b44f417fc88d863f6c5a78754bb37ee1fa606b | [] | no_license | SamYallop/MarioProject | cf5dfa0bf3d64db4fc60530013132ff44386db82 | f81f76aad13fb0eb563389082effbe18672591be | refs/heads/main | 2023-04-09T06:48:33.769578 | 2021-01-29T13:02:43 | 2021-01-29T13:02:43 | 331,949,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 127 | h | constants.h | #pragma once
// Screen Dimensions
#define SCREEN_WIDTH 512
#define SCREEN_HEIGHT 416
#include <iostream>
using namespace std;
|
9824de2a2fe3738e845ea98e6920839254ee43cb | 5bbc1726914d849a9edfa3662bc6139e5459548c | /hld/corelib/output.h | 2f1b75adbb1131eccfaadd889937118294830831 | [] | no_license | swcho/TVBAgentV2 | 8fe99ddf33647985a9906d69b495d682b176a176 | 3d64a438f9bcf8a25da4aded6bc9e2d595a1f7c1 | refs/heads/master | 2016-09-05T11:04:09.288471 | 2014-12-02T13:31:09 | 2014-12-02T13:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,316 | h | output.h | //=================================================================
//
// Copyright (C) 2011
// Teleview Corporation
//
// Author :
// HuyLe, huy@teleview.com
//=================================================================
#ifndef _TLV_OUTPUT_
#define _TLV_OUTPUT_
#include "corelib.h"
#define BANK_SIZE_4 0x... |
efa42cf35be88b7220e481ac515cac2b8f4ae3c2 | 25238ac14341c3f18e070dd1270795b612d86b91 | /vector.cpp | dd76f84ece519488efcbb2bd22d5c2a5f96b3d62 | [] | no_license | hervatteshreyu/cpp-cheat-sheet | 2f9db02add15a94827c7844928797d1010fb69f0 | a721d3f2d8f29c9f7bc6e377c6b289c6a14028ee | refs/heads/master | 2023-05-15T05:54:57.711775 | 2021-06-06T15:06:04 | 2021-06-06T15:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | vector.cpp | #include <iostream>
#include <vector>
class MyClass
{
private:
int a, b;
public:
MyClass(int a, int b)
{
this->a = a;
this->b = b;
}
void print()
{
std::cout<<a<<","<<b<<std::endl;
}
};
int main()
{
std::vector<int> numbers;
numbers.push_back(1);
int temp = 2;
numbers.push_back(temp);
int*... |
994b6716919993ce62363da810be07c668a5c006 | 41738b4abc7f7ba222053f13031924739f8e0a5b | /archive/Arduino/power_2ch_12v.ino | 3cb9b9f6cbf3c91f26a76ded595ca500c99b02fc | [] | no_license | fatlard1993/Medeina | 76a7f56a3c5aa51aed2d210c5c05ba3679af4132 | 4f3390afc8c2988d78d6c5f496b1a22e8b27652d | refs/heads/master | 2021-01-23T08:24:28.192911 | 2020-03-16T05:29:38 | 2020-03-16T05:29:38 | 31,342,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,448 | ino | power_2ch_12v.ino | #include <Wire.h>
#define SLAVE_ADDRESS 4 // Slave address used for I2c
#define NUM_OUTLETS 8 // Total number of outlets
#define FIRST_OUTLET_PIN 2 // The first(lowest number) pin of NUM_OUTLETS, designed to be used with consecutive pins eg. 2-9
int data = 9; // Data to be writen back to I2c master. 9 = no data ready... |
0f94ae0e29420d91c1925da5b5bd31199abad171 | d2a8fb2e87e8853e7d762e94264c93a34b83d5c3 | /HW04/11_9/11_9/Source.cpp | b1587e89643c739fac5b0718ef5c512662625294 | [] | no_license | michaelzeng96/HW04 | 7188743db5dd6a3ec6a57932ea9be5ca5d4bf8e9 | 34a6c9c89438d65ee3148c34975efb2dec1931fc | refs/heads/master | 2021-01-10T06:37:21.203497 | 2015-06-05T05:18:07 | 2015-06-05T05:18:07 | 36,913,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,925 | cpp | Source.cpp | #include <iostream>
using namespace std;
class Rectangle2D
{
private:
double dX;
double dY;
double dWidth;
double dHeight;
public:
Rectangle2D();
Rectangle2D(double setX, double setY, double setWidth, double setHeight);
double getX(void) const;
double getY(void) const;
double getWidth(void) const;
void setW... |
1bda040e7aafb7403281d47d49fe853171c36662 | 44a992e6a8d8cef4f0c42d00eb3e07a75e3bbdc0 | /LongestIncreasingContinuoussubsequence.cpp | eddf6f97aa7458eec60868a27c3bed3f9a543637 | [] | no_license | legendtkl/lintcode | f750ce1ca09af74061400d3470dd8bc50500aabe | 320d2d4db3649c7c264e0dd6668e20f066b8b333 | refs/heads/master | 2016-09-11T02:19:47.628349 | 2015-09-01T13:48:13 | 2015-09-01T13:48:13 | 40,899,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 912 | cpp | LongestIncreasingContinuoussubsequence.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
int longestSubsequence(vector<int>& A){
int pos=0, n=A.size(), ret=1;
while(pos<n){
int i=pos+1;
while(A[i]>A[i-1)
}
}
void reverseVector(vector<int>& A){
int left=0, right=A.size()-1;
while(l... |
da6f6a49e9cc60781d3a9b952134a60c0b77a79d | 30646591b9e70441473889dc6bd438859980e388 | /src/ofApp.cpp | fee28fe4b943f88af77eaaa7fa8eb7434879bf74 | [] | no_license | jmarsico/CLP_Knoxville_Wall | 0dc684368674203deff0b548315dcd776b74aec9 | 718766f4440b8d217a58ac76e2212386786e20bc | refs/heads/master | 2021-01-22T12:26:01.980197 | 2016-07-21T13:54:50 | 2016-07-21T13:54:50 | 55,097,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,161 | cpp | ofApp.cpp | // =============================================================================
//
// Copyright (C) 2016 Jakob Marsico <http://ultralowres.com>
#include "ofApp.h"
void ofApp::setup()
{
//keep framerate to 44 because this is framerate of LED drivers
ofSetFrameRate(44);
//set up the scene, pass it refe... |
91b6e03e5b976fdd320094dc152ba640fd9e8e4b | 40d5485760211f848a325ec5491c4f4e83eccda5 | /Prática XII/geraCodigo.cpp | dd6ca09576e3348def19ff6c5af11297047be18b | [
"MIT"
] | permissive | EhODavi/INF213 | 1699953ec46bbca98c577289497ef7b8374da980 | 2099354f1e8f9eda9a92531e5dc45a736ef3882e | refs/heads/main | 2023-02-02T14:50:44.367104 | 2020-12-19T19:23:37 | 2020-12-19T19:23:37 | 322,921,942 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | cpp | geraCodigo.cpp | #include <iostream>
#include "MyMap.h"
int main() {
MyMap<string,int> mapa;
string palavra;
int n = 0;
while(cin >> palavra) {
pair<MyMapIterator<string,int>,bool> resultado = mapa.insert(make_pair(palavra,n));
if(resultado.second) n++;
cout << (*(resultado.first)).first << ... |
e6d8f1b984a98d49a2371eb62f672a0a786f429e | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/libwebrtc/modules/audio_coding/audio_network_adaptor/dtx_controller.cc | dc64c3fd561ecdea6cdeb6a216fd8efacaf25731 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 1,311 | cc | dtx_controller.cc |
#include "modules/audio_coding/audio_network_adaptor/dtx_controller.h"
#include "rtc_base/checks.h"
namespace webrtc {
DtxController::Config::Config(bool initial_dtx_enabled,
int dtx_enabling_bandwidth_bps,
int dtx_disabling_bandwidth_bps)
: i... |
7a91579729689effe0de7f13bf13b5aff1d3f159 | fe56d3e6ab520394295197331b6186b8a0c721b2 | /qll/qll/Source.cpp | 47ca128dca422e2fe0b0eae7408725ea36bb8e81 | [] | no_license | fatmaf/ec100_projects | cc3f319ef55642efc5620401be7c7fe4b50d2a14 | fb2e9f0275bcf3955afcb3761487c62d36da727b | refs/heads/master | 2022-09-03T20:45:42.573616 | 2019-03-12T19:50:12 | 2019-03-12T19:50:12 | 51,710,069 | 0 | 0 | null | 2022-08-31T19:50:31 | 2016-02-14T19:40:16 | JavaScript | UTF-8 | C++ | false | false | 2,411 | cpp | Source.cpp | #include <iostream>
#include <string>
using namespace std;
template <class T>
struct node {
T data;
node* next;
node* prev;
};
template <class Litem>
class linkedList {
node<Litem>* head;
node<Litem>* tail;
public:
linkedList()
{
head = NULL;
tail = NULL;
}
bool isEmpty()
{
return (head == tail) ... |
8547af8da1f7b9d992e19e94b6a38549e2c9d8bf | 88746bb15e1bc9034aaf26367738f278e137aba1 | /src/Category.h | 04f60a805b503c8ce9ab4d93fbb44d471c3d03b6 | [] | no_license | SDaggula/Cpp-Scribble | 91759307c2bd1ec11b3250f24dbf87315be0b08a | fd4dc0a9c843e44e9d5680ce3a12656b6d606824 | refs/heads/master | 2020-03-27T09:41:05.261622 | 2018-08-27T22:57:04 | 2018-08-27T22:57:04 | 146,363,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | h | Category.h | #ifndef CATEGORY_H
#define CATEGORY_H
#include <iostream>
#include <stdbool.h>
#include <string.h>
#include <vector>
#include "MultiStroke.h"
using namespace std;
class Category{
private:
string _name;
vector<MultiStroke> _prototypes;
public:
Category();
Category(string name);
Category(string name, Mu... |
b0d4d35fd29e02d334c38dd485d836850eceee8b | e1b07de1253fccf61994d794bba7dcff55466f22 | /src/NetworkOptionsMode.cpp | becdbc1fe9cfa9a3be2b6bce74701217ac7140ed | [] | no_license | ausomely/w2-multiplayer-support | 320eec638f2243907731ce75348ebadece4e0928 | 759385ab9f5e04dd94cd95b6e2a9ba72da40a561 | refs/heads/main | 2023-03-29T17:20:54.140338 | 2019-03-12T20:34:11 | 2019-03-12T20:34:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,303 | cpp | NetworkOptionsMode.cpp | /*
Copyright (c) 2015, Christopher Nitta
All rights reserved.
All source material (source code, images, sounds, etc.) have been provided
to University of California, Davis students of course ECS 160 for educational
purposes. It may not be distributed beyond those enrolled in the course
without ... |
37488766f06065c9127be2ba3702ac91b44858c1 | eb8c7a2102b1c91fa9d5d43dbed58a7a1854142a | /src/db/db_add.cpp | 1fbe3e5fe6cff0c13095169d2fae324ab28435c6 | [
"BSD-3-Clause"
] | permissive | cuhk-eda/split-extract | 00e3610564a5ccb362a773e935c3f0bf44e08415 | 1841214919a87277596395d33d363a7048fecb54 | refs/heads/main | 2023-03-01T00:00:52.710162 | 2021-01-30T23:12:56 | 2021-01-30T23:12:56 | 312,288,253 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,668 | cpp | db_add.cpp | #include "db.h"
using namespace db;
#include "../ut/utils.h"
Layer* Database::addLayer(const string& name, const char type) {
Layer* newlayer = new Layer(name, type);
if (layers.size() > 0) {
Layer* oldlayer = layers[layers.size() - 1];
oldlayer->_above = newlayer;
newlayer->_below = o... |
dda4713270e3e6cc8585f5aabc33e70d3657722e | 76261aae39cfc15a2b3444665ebcb23a657db361 | /Production/Source/Ripley/ManageLinksBuilder.h | 716813538198496476d085522f4ed7f1fed6a2ca | [] | no_license | rocketeerbkw/DNA | d208c72690ccfae261beb531fb52d1c2647783e3 | de5993d6d0f8dd735085ebca4c86f4363c498615 | refs/heads/master | 2021-01-21T13:29:52.930616 | 2015-10-01T17:05:40 | 2015-10-01T17:05:40 | 43,528,993 | 1 | 0 | null | 2015-10-02T00:43:08 | 2015-10-02T00:43:08 | null | UTF-8 | C++ | false | false | 706 | h | ManageLinksBuilder.h | // ManageLinksBuilder.h: interface for the CManageLinksBuilder class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MANAGELINKSBUILDER_H__B76FE8C9_F3A0_483D_8894_3B36669BA163__INCLUDED_)
#define AFX_MANAGELINKSBUILDER_H__B76FE8C9_F3A0_483D_8894_3B36669BA163__INCLUDED_
... |
cc0549ebc374bdb9dbdd75301469a5a6d64fa8fe | 99466d9132f7cf3ee53f54f1c3fe5a2848f1942e | /567.cpp | 86186c20ab7c9bc607cc5a7325bf29b47f39c6bd | [] | no_license | Hyukli/leetcode | e71604126712ad801dd27c387099999085f055d3 | 3444f0a92ee4edc7607ee8afab760c756a89df7f | refs/heads/master | 2021-06-05T14:14:58.792020 | 2020-03-31T13:40:58 | 2020-03-31T13:40:58 | 93,115,710 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | cpp | 567.cpp | #include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
bool checkInclusion(string s1, string s2) {
int n1=s1.size();
int n2=s2.size();
vector<int> v1(26,0);
vector<int> v2(26,0);
if(n1>n2)
{
return false;
}
for(i... |
0386d84548fb5e99bc6b6551a91fb04b4cb09050 | 1574422519bb0cc2ce6e076f1632f8e9abb1beb1 | /src/beunit.h | 7b8ce88213d3ed34abd3697104ac3495c37d9161 | [] | no_license | JaatSoft/BeBattle | cea96c00d7b3f3bf4d9d5a9200b5fe7a3e2a118c | 2dc7fba2265971a963ec0d6c72cc5d5e896a41ba | refs/heads/master | 2021-09-27T08:41:34.024558 | 2017-12-31T22:52:34 | 2018-09-21T06:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,037 | h | beunit.h | #ifndef BEUNIT_H
#define BEUNIT_H
#include <View.h>
#include <Bitmap.h>
#include <Rect.h>
#include "effect.h"
#include <stdlib.h>
#include "convert.h"
//---------------------------------------------------------------------
class DView; //temp
//---------------------------------------------------------------------
class... |
63e174b975f20f13cce66f1ade5bfda8ea6b8cbb | 98b941d492aee02d3c69ef13e43daeba17bbdc5a | /CompetitiveProgramming/SVENGY/SVENGY.cpp | 4a4c4aa453c225880cb5133147e1983845f58891 | [] | no_license | suresh-yetukuri/CJ-Competitive-Programming | f992d86f1591ffff15fefb64bd44cca83aed1546 | 9444c32bd60b4ee6f930a024453ba0899eb3848a | refs/heads/main | 2023-01-27T13:08:51.807657 | 2020-12-10T03:16:04 | 2020-12-10T03:16:04 | 306,341,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,750 | cpp | SVENGY.cpp | // SVENGY.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
long long nTownCount = 0;
cin >> nTownCount;
vector<long long> pInput(nTownCount, 0);
for (int iCounter = 0; ... |
91d45552b1030d2e4c88ed79914d08e480f82911 | c0d8930b9cfecf8790937a67c32d14e35b716b8e | /baekjoon_5532/main.cpp | d0e99f026890f35a9dbf7660658a6f9fa2a90ae1 | [] | no_license | imWhS/ProblemSolving | 4309af97b3760f7a0fbc01a73551f0bd778ebc30 | 1ca342d6d244c2ff3c6b571f028e0a7d1f8f6b98 | refs/heads/master | 2021-08-20T04:53:16.972633 | 2021-06-29T14:26:36 | 2021-06-29T14:26:36 | 231,716,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,756 | cpp | main.cpp | /*
5532 방학 숙제
방학 숙제는 수학 B 페이지, 국어 A 페이지 풀기다.
방학은 총 L 일이다.
하루에 국어는 최대 C 페이지, 수학은 최대 D 페이지 풀 수 있다.
input
L (2 <= L <= 40)
A (1 <= A, B <= 1000)
B
C (1 <= C, D <= 100)
D
output
겨울 방학동안 숙제를 하지 않고 놀 수 있는 최대 날의 수
*/
#include <iostream>
using namespace std;
int L, A, B, C, D;
void solution() {
//방학 일수 ... |
bf2637afe4316285fcf2f2106bd393c5fae45b95 | 423007aec031f2b67117528912bd06c93ba4932f | /CPPExercises/Algorithms.h | b8b4e860176655ddf2232a3763f3d50fff081d27 | [] | no_license | AlexanderMalyshev/CPPExercises | 5391b6b18e4a806c1b31114ac85689304a82fd0c | 7c542097b09233afd2a6dc41592d9d22cd04f693 | refs/heads/master | 2021-08-23T16:27:02.596941 | 2017-12-05T17:20:45 | 2017-12-05T17:20:45 | 104,525,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | h | Algorithms.h | #pragma once
#include <iostream>
#include <vector>
#include <algorithm>
template <typename Type>
std::ostream& operator << (std::ostream& o, const std::vector<Type>& v) {
o << "Array: ";
std::for_each(v.cbegin(), v.cend(), [&o](const Type& n) { o << n << " "; });
return o;
}
void GenerateVector(std::vector<int>&... |
60e91ab956b5b31d4bc8ec53299d74a6d30b0bcf | 60a15a584b00895e47628c5a485bd1f14cfeebbe | /comps/misc/input/DrvCommon2/VT5Profile.cpp | 7d7f948478b8d8d21021a0ed764c2b7f0dba94eb | [] | no_license | fcccode/vt5 | ce4c1d8fe819715f2580586c8113cfedf2ab44ac | c88049949ebb999304f0fc7648f3d03f6501c65b | refs/heads/master | 2020-09-27T22:56:55.348501 | 2019-06-17T20:39:46 | 2019-06-17T20:39:46 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 8,639 | cpp | VT5Profile.cpp | #include "StdAfx.h"
//#include "Common.h"
#include "Input.h"
#include "VT5Profile.h"
#if !defined(COMMON1)
#include <ComDef.h>
#include "misc_utils.h"
#include "data5.h"
#endif
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
CVT5ProfileManager::CVT5ProfileManager(LPCTSTR... |
ba3646357ef0d0c6481b7779153412f7dfc883eb | 4ac6eb27481a672b5a2d06c319a449c5bb5dbda6 | /C++/QT/tp5/mainwindow.cpp | 133105624ef644fe4c7027265eb4558dfe1f8e45 | [] | no_license | quentinDERORY/ENSICAEN | 164af8281821e676f7b419e843f4d1620d46adc2 | 0e50c0d7470d991cbbca7d1d1309099b0fec6dec | refs/heads/master | 2020-09-14T04:58:46.091625 | 2016-08-28T00:10:44 | 2016-08-28T00:10:44 | 66,688,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,410 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
model = new InvoiceModel();
ui->setupUi(this);
ui->vue->setModel(model);
//Connect
connect(ui->first_name,SIGNAL(textEdited(QString)),model,SLOT(setFir... |
f0bad673979a5ea68e43b3425b64122450f05dfc | 96dbd470db1da75cfbe0f6971a44e0e3611cb0f1 | /Timus_1022/main.cpp | 85c2677c72f366583bc057721d2933b6993ca7d5 | [] | no_license | MatrixDeity/Problems | 1d3c0ce1075f425f8ac4d39c32a0c87d94fc4061 | f7899cebbb8c09b1cd526dfe6ee9d649e0071327 | refs/heads/master | 2023-07-09T08:01:05.575383 | 2023-06-24T21:32:07 | 2023-06-24T21:32:07 | 102,288,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | main.cpp | /**
Timus_1022
http://acm.timus.ru/problem.aspx?space=1&num=1022
MatrixDeity, 2017.
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
using Graph = vector<vector<int>>;
void dfs(Graph& graph, int from, vector<bool>& used, vector<int>& anses) {
if (used[from])
... |
8a094d8ec4c26155e45d23291ac1c877b548260f | 52046a76984ffc81e588babaaaab906b2fb154ed | /SPOJ/String/Pattern Find.cpp | 9885e4bf3a9be1b143c248877637af38ef3d500b | [] | no_license | amoghj8/Cpp-Refresher | 141d46537f0ed1d2216f5b54510f4ee52ecd4aac | 239a7a08c6e4f60a5ea3a1aedefad6a0dd188181 | refs/heads/master | 2023-02-15T16:49:15.214837 | 2021-01-03T18:37:38 | 2021-01-03T18:37:38 | 281,087,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,592 | cpp | Pattern Find.cpp | #include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define mod 1000000007
lli dp[1000001], inv[1000001];
string text, pattern;
lli computeHash(string input) {
int p = 31;
lli p_power = 1;
lli result = 0;
for(auto ch: input) {
result = (result + (ch-'a'+1)*p_power) % mod... |
e288b33cd86ca6941a22b26b27013ea05242fe19 | 8f02939917edda1e714ffc26f305ac6778986e2d | /BOJ/8286/main.cc | b8505f0a036b99918d227d0695cd548a422fb9c2 | [] | no_license | queuedq/ps | fd6ee880d67484d666970e7ef85459683fa5b106 | d45bd3037a389495d9937afa47cf0f74cd3f09cf | refs/heads/master | 2023-08-18T16:45:18.970261 | 2023-08-17T17:04:19 | 2023-08-17T17:04:19 | 134,966,734 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,007 | cc | main.cc | #include <bits/stdc++.h>
#define endl "\n"
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
using namespace std;
using lld = long long;
using pii = pair<int, int>;
using pll = pair<lld, lld>;
////////////////////////////////////////////////////////////////
const int MN = 2e6+5;
int N, deg[MN];
vecto... |
b1d8ab444154e95eddd1bb2f57476b6ecde96af4 | 067f91c6c3c241f4c51f6c4f34fce96b34245294 | /00_pkg_src/GWmodel/src-i386/GWmodelCUDA/CGWmodelCUDA.cpp | c5a6feb39ff35536d5cd22098beb72eccf1a4e5f | [] | no_license | lbb220/GWmodel.Rcheck | 93a1bf9d93078f7c17fb5ec109e6176ec1d65180 | f45d7bce59e75ac5ebe0f19a47e73c10ab11e505 | refs/heads/master | 2021-07-15T14:29:31.424417 | 2021-02-07T10:31:18 | 2021-02-07T10:31:18 | 234,888,376 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 26,502 | cpp | CGWmodelCUDA.cpp | #include <armadillo>
#include <cuda_runtime.h>
#include <cublas_v2.h>
#include <stdio.h>
#include <time.h>
#include "helper.h"
#include "CGWmodelCUDA.h"
#include "GWmodelKernel.h"
#ifdef ENABLE_PREVIEW
#include "preview.h"
#endif // ENABLE_PREVIEW
using namespace arma;
#define RESERVE_GPU_MEM ((long long int)2*10... |
a5748d6c1fcf52693582a2db26e9b71c02cf6d02 | 920617f8a53204ed24798fdd17edabf6524f9647 | /Chapter09/practice/9.27.cpp | e8b46f34737d2593b9e009c3f6be223a90b304aa | [] | no_license | primerX/CppPrime_Code | 57771295c0940fc25a69cde999cd10962b61344d | b0512aafe3fb0d571698908af3f37408871ee2d3 | refs/heads/master | 2020-04-07T01:24:52.000261 | 2018-12-01T06:26:48 | 2018-12-01T06:26:48 | 157,940,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | cpp | 9.27.cpp | #include <iostream>
#include <forward_list>
using namespace std;
int main(int argc, char const *argv[])
{
forward_list<int> iflst = {1, 2, 3, 4, 5, 6, 7, 8};
auto prev = iflst.before_begin(); // 前驱元素
auto curr = iflst.begin(); // 当前元素
while(curr != iflst.end()){
if(*curr & 1){ // 奇数
curr = iflst.erase_af... |
e1419c84132f7af69a311d6bf788e13782268eea | a2267e976899b579694be30ff64ceeaad75924aa | /Chapter6/Section3/Section3_recursive/源.cpp | 6c355decd20b0df0294923e79ea0b1942a80ad6d | [] | no_license | Anosy/C-Primer5 | ba8123f9ba3eb0e188189ce6f8ae102c814bbcc8 | accce069df0c3abadfc255c8fe96ed3ff752a1ea | refs/heads/master | 2020-03-30T23:00:29.435819 | 2018-12-03T08:46:12 | 2018-12-03T08:46:12 | 151,687,218 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | 源.cpp | #include<iostream>
using namespace std;
int factorial(int val)
{
if (val > 1)
{
return factorial(val - 1)*val;
}
return 1;
}
int main()
{
int a = 5;
int results = factorial(5);
cout << results << endl;
system("pause");
return 0;
} |
02b04271521cc52f74ad659e14ed79bf7a61c7b3 | fd6992af5014def5066047f0792cbabf9320212b | /src/PhysicsObject.cpp | 7754f90a5f6c8030194939f431c52b80a4baa220 | [] | no_license | Sunlight4/Sethtroid | c573beb3b5c81ecc10ac68f75a1691fb6ac007ed | 270424c9af0b473993b90af5abfd43b3ef59795a | refs/heads/master | 2022-01-13T04:56:24.310641 | 2019-06-20T19:38:36 | 2019-06-20T19:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | cpp | PhysicsObject.cpp | /*
* PhysicsObject.cpp
*
* Created on: Jun 14, 2019
* Author: triforce
*/
#include "PhysicsObject.h"
#include "Game.h"
PhysicsObject::PhysicsObject(Game* game, LoadingData data) : GameObject(game, data){
}
PhysicsObject::~PhysicsObject() {
}
void PhysicsObject::InitialUpdate() {
pos+=velocity;
}
void ... |
699b4b3e6086c640eeffbb1669623722a46e24c6 | a82a25373aac822d68be709f33cd82770db5aae9 | /source/b2m_app.cpp | ed5d0c21fd0a1a6c90b32a5e6c87abfe4e677559 | [] | no_license | becker929/b2m | 4e90bf01d091f3befcc7cb44b94ecca296fc4e8c | 7e9c1a001e0376c2f76aa630506dbf18964e4198 | refs/heads/main | 2023-06-10T07:55:51.034211 | 2021-07-02T03:17:52 | 2021-07-02T03:17:52 | 382,208,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,063 | cpp | b2m_app.cpp | /*
PortAudio code adapted from official examples
http://www.portaudio.com/docs/v19-doxydocs/group__examples__src.html
MIDI code adapted from libremidi tests
https://github.com/jcelerier/libremidi
*/
#include "midiout.h"
#include "portaudio.h"
#include "stft_nn.h"
#include <chrono>
#include <fstream>
#include <iost... |
8241cd705e5383bb0c71d34b7ec94f49963da0c5 | a02cdae2f280c97c1b86ef3a1b72c613bd683b22 | /17.Letter Combinations of a Phone Number.h | e337460113668e910a613f8cc861383a44a82a0d | [] | no_license | wenxiao/LeetcodeCode | 6ec1bbb2e2a625adfe8daaaed95a2a2795184e99 | 385a93f459366e90df294d005b83b631da1f8c3f | refs/heads/master | 2021-01-01T17:27:41.120927 | 2015-10-05T12:33:21 | 2015-10-05T12:33:21 | 33,222,964 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,152 | h | 17.Letter Combinations of a Phone Number.h | class Solution {
//在VS上不能通过编译,因为不能这样初始化mp,可以将其作为dfs函数的一个static变量初始化即可。
public:
//对应每个数字对应的字母表
map<char,vector<char>> mp={
{'1',{}},
{'2',{'a','b','c'}},
{'3',{'d','e','f'}},
{'4',{'g','h','i'}},
{'5',{'j','k','l'}},
{'6',{'m','n','o'}},
{'7',{'p','q','... |
0c4f82e90e5fcbc67b4c6c2f31e8fe74710ba3bc | 868e8628acaa0bf276134f9cc3ced379679eab10 | /squareDrop/0.14/alpha.water | d5f59ff360c63b51b9e9547d27d0582aca08b13c | [] | no_license | stigmn/droplet | 921af6851f88c0acf8b1cd84f5e2903f1d0cb87a | 1649ceb0a9ce5abb243fb77569211558c2f0dc96 | refs/heads/master | 2020-04-04T20:08:37.912624 | 2015-11-25T11:20:32 | 2015-11-25T11:20:32 | 45,102,907 | 0 | 0 | null | 2015-10-28T09:46:30 | 2015-10-28T09:46:29 | null | UTF-8 | C++ | false | false | 114,672 | water | alpha.water | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... |
f14bc85bb31c8dbc67d243d519c2380650bc7cae | 90996ecd8493eaafd10360ae4e840861ca103282 | /src/imagefilters/ImageProcessingBusiness.cpp | a9f26e499df0a03d958577bfd53926a21823db55 | [] | no_license | jarey/cuda-border-processor | e5bfd0428af0fc0b631652f7f94129cffa89bb07 | 9e32a61035760abef20ecb0fe66ebbcc093dc432 | refs/heads/master | 2020-12-24T19:27:51.023174 | 2020-07-28T14:48:33 | 2020-07-28T14:48:33 | 30,494,286 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,984 | cpp | ImageProcessingBusiness.cpp | /*
* ImageProcessingBusiness.cpp
*
* Creado: 24/03/2012
* Autor: jose
* Descripciñon: clase encargada de orquestrar la ejecución de los algoritmos de forma automática.
* Se hace uso del filtro concreto instanciado por pantalla y se asigna el evaluador de filtro
* concreto, según el filtro haciendo uso de la fact... |
83ed5b38be675915370d6bcc08970f741180f0f5 | ecea23de8a09bb9c88aa6835bc2e2e87cbd0633f | /UEDanalysis/studies/transientSignalPercentage.cpp | 0fb99db0b7e565372d2e0b3c408bf8fb8e5c6092 | [] | no_license | khegazy/UED_analysis | 6451aab7aef67e04a4492617467da723e217e5d8 | 1327bb1b3bca31f583ed1dcd48685b3e2fd8780b | refs/heads/master | 2021-04-15T04:27:09.212877 | 2021-02-19T00:14:38 | 2021-02-19T00:14:38 | 126,543,975 | 0 | 0 | null | 2019-06-15T18:50:37 | 2018-03-23T22:16:32 | C++ | UTF-8 | C++ | false | false | 3,900 | cpp | transientSignalPercentage.cpp | #include "../analysis.h"
#include "/reg/neh/home/khegazy/baseTools/tools/parameters.h"
int main(int argc, char* argv[]) {
string runName(argv[1]);
cout<<"RunName: "<<runName<<endl;
/// Get Parameters ///
parameterClass params(runName);
int fitIndBegin = (int)(params.NradAzmBins*params.fitQbegin/params.... |
495e4ffcc631d6d68d6fa470cdcfb0e48a55a6e2 | ebf724b41d086d4a63cf712ad38cdd1b85531b8f | /obj_subject.h | 54f2b9af98685090d6c0d409c362561d6e705823 | [] | no_license | viaduct/telim_tmsd | 361d7affe0f4bfb96dc8c68df4f44384b0cb75bf | d2618ecbdcbd7d94f70559a24761572497fbb54f | refs/heads/master | 2020-04-26T15:53:28.259881 | 2019-03-04T02:31:59 | 2019-03-04T02:31:59 | 173,660,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | h | obj_subject.h | #pragma once
#include <functional>
#include "member_id.h"
#include "item_subject.h"
namespace telimtmsd {
class Obj;
class ContEvent;
class ObjSubject final : public ItemSubject
{
public:
ObjSubject(Obj* obj);
Item* item() const override;
Obj* obj() const { return m_obj; }
void listenCont(MemberId id, std::fu... |
759e7830d398e0a9f61329678b3f8d3c6dbccb8d | dcafc53ed795fb295fe41dfbe426497ac1eee076 | /archive/basics/code_struct_05_variables/exec.cpp | 525b9b81ea7a244fdeb819cef5b066769cb03330 | [] | no_license | hoodielive/cplusplus | 18b68537c26bb12388075262e2db3e5654301dea | 8592ed7190ca335fdf13739d4682be253a88a8b8 | refs/heads/master | 2020-03-21T18:07:03.423697 | 2020-01-29T03:48:24 | 2020-01-29T03:48:24 | 138,873,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | cpp | exec.cpp | #include <iostream>
// main (code section)
/** stack [a,b,c] and heap [] */
using namespace std;
int main()
{
int x;
int x1;
int _x;
int X;
int RollNo;
int roll_no;
int a = {10};
char A = 'A';
float f = 12.5f;
cout << a << endl;
cout << A << endl;
cout << f << endl;
return ... |
baf24b14379ff50e6607d796ea67322eb6970c61 | c90a56e7d7752b041fc5eb38257c5573cef346c6 | /src-macOS/GC_tmpl.hxx | 3afe3733da46ac2a0d3a2523a3e0c37eb2152db4 | [] | no_license | random-builder/design_cadquery_ocp | a4c572a72699bad52ca5f43f30bb7c15d89072ff | 2af799a9f1b2d81fd39e519b2f73e12b34a14c0a | refs/heads/master | 2021-05-21T23:10:23.833461 | 2020-03-29T15:34:46 | 2020-03-29T15:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,094 | hxx | GC_tmpl.hxx | #pragma once
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <StdFail_NotDone.hxx>
#include <gp_Pnt.hxx>
#include <StdFail_NotDone.hxx>
#include <gp_... |
6e9a74eb7d14fdcad2fe113b3a017aa128b9af48 | 5f44a9f45305522370b1fa1a970c1905415c5053 | /SpiritTower/src/Criaturas.cpp | f2b2a9ca93a79d9698ce32d89b4273003928d87c | [] | no_license | MatRJ08/Spirit_Tower | ac094831e1613f19b7632190559c631c91cf0fb6 | 07ca46ae45b3b8e76f625db76409999c9bd90cfc | refs/heads/master | 2022-11-26T03:29:40.549297 | 2020-07-29T01:04:46 | 2020-07-29T01:04:46 | 273,105,180 | 0 | 0 | null | 2020-07-29T01:04:47 | 2020-06-18T00:26:49 | null | UTF-8 | C++ | false | false | 276 | cpp | Criaturas.cpp | //
// Created by ashley on 14/7/20.
//
#include "Criaturas.h"
Criaturas::Criaturas(Espectros est){
estud=est;
cout << " Velocidad de ruta " <<estud.get_vel_ruta() << " Velocidad de pers " <<estud.get_vel_persecucion() << " Vision " <<estud.get_vision() << endl;
} |
f30fd077e636ce352a7f1212961b6469f830ded7 | 1c731129aabaf6b04fb40a3d3387e7a3f2de1fa4 | /src/loaders/textureloader.hpp | d22d30f3b0960b2a5d3e6e91db7c474095af089a | [] | no_license | grz0zrg/Mammoth3D | 1c757fac253fa402d9f57d4d488ffaacfa1daa88 | 3a5d952c866c09b4c5dc42b41f240ce0186f6d31 | refs/heads/master | 2021-01-10T20:00:48.396852 | 2015-08-22T21:55:37 | 2015-08-22T21:55:37 | 5,990,394 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,433 | hpp | textureloader.hpp | #ifndef MAMMOTH3D_TEXTURELOADER_HPP
#define MAMMOTH3D_TEXTURELOADER_HPP
#include <fstream>
#include <iostream>
#include <vector>
#include <map>
#include <GL/glew.h>
#include "../core/math.hpp"
#include "../core/texture.hpp"
#include "../core/image.hpp"
namespace loader {
class TextureLoa... |
97c29c1ef344d4fb14f0e2c6fabeed06ddf36b2c | 78da2c3fc16fb25587576c406b101a7e07e35c6a | /src/upload_command.cc | a2280638358afefec9c79fd1d5681da3ad8e38d5 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | amoe/figshare-uploader | a0ff57710a2c4fce9efa46705b7aed01781e2118 | 6a2c32c8521891e7f5e37670e7adb37dafbda3da | refs/heads/master | 2023-06-23T02:32:02.736670 | 2023-06-13T07:04:08 | 2023-06-13T07:04:08 | 113,032,906 | 7 | 1 | Apache-2.0 | 2022-09-23T16:24:49 | 2017-12-04T11:13:08 | C++ | UTF-8 | C++ | false | false | 263 | cc | upload_command.cc | #include <string>
#include <vector>
#include <cstddef>
#include "upload_command.hh"
// Vector allocates all memory on the heap.
std::string UploadCommand::getUrl() {
return this->url;
}
std::vector<char> UploadCommand::getData() {
return this->data;
}
|
8a809b66d67b141a25d4c6a04c2c78ce75ee2008 | 91ae7276bca18a05ebeb0506e075e9a331bb5a33 | /tcpserver/myserver.h | 6522bbe3a1055575866256243c07c106e3ae04df | [] | no_license | love996/qt_discard | 81dd7cdab32363f58a25162613e6f0c0401b50c9 | 603d8f7c62d6aa98291f9196e26514261bf3ae65 | refs/heads/master | 2022-11-08T19:53:05.241100 | 2020-06-29T08:05:24 | 2020-06-29T08:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | h | myserver.h | #ifndef MYSERVER_H
#define MYSERVER_H
#include <QTcpServer>
#include <QMap>
#include <QTcpSocket>
// #include <QObject>
class MyServer //: public QObject
{
//Q_OBJECT
public:
MyServer(QHostAddress address, quint16 port);
~MyServer();
private:
QTcpServer _server;
QMap<QTcpSocket*, QMetaObject::Conne... |
fe8207e6883ce6ca02c4d6ff56a4ca462bce39ce | f13fc9a720573afdcb84ea9ef684df046a459086 | /src/apex/utils.hpp | 3bc038cfba0770e71c32f260f120773bf99834f5 | [
"LicenseRef-scancode-other-permissive"
] | permissive | jgphpc/xpress-apex | 33b8ab1ca70409826ab23505759ba280eb368334 | f73a18173bd7f34163b79d3963b057283f2c7aa4 | refs/heads/master | 2021-01-13T09:18:15.833712 | 2016-05-13T17:07:30 | 2016-05-13T17:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,211 | hpp | utils.hpp | // Copyright (c) 2014 University of Oregon
//
// 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)
#pragma once
#include <string>
#include <chrono>
#include <thread>
#include <unistd.h>
#include <algorithm>
#include... |
b2631abdcb927e881eb4d39bdd26b5e21728719d | c08a689127ab0d0c8a09fc1629526d1f92017c78 | /[FINAL] Code windows + rapport projet/pyMarmoteMDP/header/Distribution/bernoulliDistribution.h | c2ddc640df40d9854beb13d5b8fad4826e7319f0 | [] | no_license | alexandredupontbouillard/projet_androide | 2fb120f04f063e259407b24ae8a06a677685b529 | bfcbb9da7d506ca85728045c243cbad4b0a07359 | refs/heads/master | 2020-04-19T19:45:50.449343 | 2019-05-23T07:24:53 | 2019-05-23T07:24:53 | 168,397,270 | 1 | 0 | null | 2019-05-22T00:53:20 | 2019-01-30T18:56:38 | C++ | UTF-8 | C++ | false | false | 3,147 | h | bernoulliDistribution.h | /* Marmote is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Marmote is distributed in the hope that it will be useful,
but WITHOUT ANY WARRAN... |
dd1305487dfe43129f2455e0dc7ec15ef4afcb31 | 16543458dfab649947f253db343fe57717ab0b86 | /af_prepare.cxx | 5868a126a7cc748f43ad0372d1738f9cba2b241a | [] | no_license | hnagata/af-performance | e2f9b922ed54a6c7137114207c6378f1930324b9 | cd1c4c0a0be997d1066ee2191dad5d063477b483 | refs/heads/master | 2016-09-07T19:04:23.001269 | 2015-02-05T10:48:06 | 2015-02-05T10:48:06 | 30,145,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97 | cxx | af_prepare.cxx | #include <arrayfire.h>
#include "perform.h"
bool prepare() {
af::deviceset(0);
return true;
}
|
2d33e52c03c3d33c9195f9e51093d446e09b6693 | bc683439667bf9daa87fe45faf79dd136a0d3247 | /ch0105/ch0105_24.cpp | c23124c8a54bb45dceeb490a6c3ad8c72dec08b4 | [
"MIT"
] | permissive | sun1218/openjudge | d5d0f5284f31f5c4799517fd88a3c1137e50df74 | 07e44235fc6ac68bf8e8125577dcd008b08d59ec | refs/heads/master | 2020-03-31T03:05:33.254992 | 2018-12-31T05:26:50 | 2018-12-31T05:26:50 | 151,852,089 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 248 | cpp | ch0105_24.cpp | #include<iostream>
using namespace std;
int main(){
int n, a , b, s = 0, max = 0;
cin >> n;
for(int i = 0; i < n; i ++){
cin >> a >> b;
if(a >= 90 && a <= 140 && b >= 60 && b <= 90){
s ++;
if(s > max){
max = s;
}
}else{
s = 0;
}
}
cout << max;
}
|
af45f0edb099555ec9cbcdc4892ed74c02dec15a | 28dba754ddf8211d754dd4a6b0704bbedb2bd373 | /CodeTemplate/DataStucture/Two-dimensional-BIT.cpp | 20ab9366a79b4de914844d9c92b6738503699797 | [] | no_license | zjsxzy/algo | 599354679bd72ef20c724bb50b42fce65ceab76f | a84494969952f981bfdc38003f7269e5c80a142e | refs/heads/master | 2023-08-31T17:00:53.393421 | 2023-08-19T14:20:31 | 2023-08-19T14:20:31 | 10,140,040 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,416 | cpp | Two-dimensional-BIT.cpp | //更新区间查询区间
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
typedef long long ll;
const int N = 1001;
int n,q;
ll a[N][N],b[N][N],c[N][N],d[N][N];
inline int lowbit(int x) {
return x&(-x);
}
void update(ll arr[N][N],int x,int y,ll v) {
int yy;
for(int i = x; i <= n; i += lowbit(... |
d1f861cb4ce49a556278ad6ae146263d24ffa603 | 00593968dc871bdee2132ef612e387134992a363 | /EventKeyboard.cpp | f54c74eedceca0f0949733290889c6be36c56d63 | [] | no_license | Mistymush/The_Rock_Lives | 7b5e0baa90a9b5536fd5e863c467532b7a9c000c | 19d6377d21f253f1988de1089bf9adfa5adf6e37 | refs/heads/master | 2021-01-10T16:26:50.772278 | 2015-10-14T02:58:10 | 2015-10-14T02:58:10 | 43,724,039 | 1 | 0 | null | 2015-10-06T03:40:46 | 2015-10-06T01:32:19 | HTML | UTF-8 | C++ | false | false | 810 | cpp | EventKeyboard.cpp | /*
File which defines the eventKeyboard methods
*/
#include "EventKeyboard.h"
using namespace df;
//public constructor
EventKeyboard::EventKeyboard(){
//our defined set of keys
key_val = Keyboard::UNDEFINED_KEY;
//catagory of keyboard event
keyboard_action = UNDEFINED_KEYBOARD_ACTION;
Event::setType(df::_KEY... |
9929cfee722ef2c9c6f4dba33bba950231554560 | 9d942d8776ddba6c0d227ddb3dbce1167d81ea66 | /native/src/common.cpp | 13e971b376667d463ff2d52e99e86db3831de9fb | [] | no_license | magasol/OsmAnd-core-legacy | e56ab2fcaae36c8b879c6a5830ef09226a6774ea | 551a4e10d193fe281e0c74f76fec5c388245f268 | refs/heads/master | 2023-04-03T19:01:12.811754 | 2021-04-01T11:46:09 | 2021-04-01T11:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,554 | cpp | common.cpp | #include "CommonCollections.h"
#include "Logging.h"
#include "commonOsmAndCore.h"
#if defined(_WIN32)
//# include <windows.h>
//# include <mmsystem.h>
#define isnan _isnan
#define isinf !_finite
#elif defined(__APPLE__)
#include <mach/mach_time.h>
#else
#include <time.h>
#endif
void deleteObjects(std::vector<FoundMap... |
6815b3dec4ee13c34ea58a9c8142f2341ffee883 | c3591569e50db8d754cd719201bc0a314ec6a6b1 | /src/ModelTreeStructure.h | 201c7150a8792370922a5aef25d52d5e18e6d464 | [] | no_license | yilunsun/IndividualDosing | fa340f73737ff04bf7091e16d089e4322b9acbe1 | 836e0aa86fb3ce584301a104fbf08d4486d8a53b | refs/heads/master | 2022-09-18T11:16:14.714497 | 2020-06-03T16:48:14 | 2020-06-03T16:48:14 | 266,648,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 753 | h | ModelTreeStructure.h | #ifndef MODELTREESTRUCTURE_H
#define MODELTREESTRUCTURE_H
#ifndef _DIAGRAMS_MODELTREESTRUCTURE_H
#define _DIAGRAMS_MODELTREESTRUCTURE_H
#include "Model.h"
class ModelTreeStructure : public Model
{
public:
ModelTreeStructure(void);
virtual ~ModelTreeStructure(void);
virtual double Potential(const NodeTree &tre... |
b4d7d308ee4ba32de5ae4d56ed2b94b40643becc | 19ed4c1bb2c4386eb98201e1b50ffc91549174dc | /Source/Core/GHI/GHIMemory.cpp | 5cb2f9ee60db0073de62363703b618a570efed98 | [] | no_license | mRooky/Rooky | 81742fffd72700b3423802702ffc9e5658151f75 | 401bd515e42873b268395c1bc96fbb4982c83875 | refs/heads/master | 2020-04-19T11:43:43.985899 | 2019-08-27T06:27:46 | 2019-08-27T06:27:46 | 168,174,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | cpp | GHIMemory.cpp | /*
* RenderMemory.cpp
*
* Created on: Feb 26, 2019
* Author: rookyma
*/
#include "GHIMemory.h"
namespace GHI
{
Memory::Memory(Device* device):
Resource(device)
{
}
Memory::~Memory(void)
{
}
} /* namespace Render */
|
b2248fc392e96ed73083e11c888f22d50f30c2c0 | 605aef3c742fe6cb41795b38c73bdd1c99f5bfe3 | /programmers/level1/두개뽑아서더하기/solution2.cpp | 4ac5cdd98189e8b4ca801e64bab16dd2b309bff4 | [] | no_license | janehub/Algorithm | c1c73537af68ead083fb043468104a5be66d3ee7 | 0781b902ec09ebe41b1b39e6d5d5cb0d4550f1c9 | refs/heads/main | 2023-04-09T17:00:06.362559 | 2021-04-20T13:23:22 | 2021-04-20T13:23:22 | 320,283,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 614 | cpp | solution2.cpp | /*
*****set
: 노드 기반 컨테이너, 균형이진트리
key(원소)집합
중복허용하지않음
삽입시 원소 자동정렬 (default : 오름차순)
*/
#include <string>
#include <vector>
#include <algorithm>
#include <set>
using namespace std;
vector<int> solution(vector<int> numbers) {
vector<int> answer;
int sum=0;
set<int> memo;
for(int i=0;i<numbers.size()-1... |
504acb6b1deedb29f4c074d4c406f19b6e23c5aa | faacd0003e0c749daea18398b064e16363ea8340 | /3rdparty/phonon/mediaobject.cpp | cc47a00e32aeeab342eb41293f94e1cd95fde860 | [] | no_license | yjfcool/lyxcar | 355f7a4df7e4f19fea733d2cd4fee968ffdf65af | 750be6c984de694d7c60b5a515c4eb02c3e8c723 | refs/heads/master | 2016-09-10T10:18:56.638922 | 2009-09-29T06:03:19 | 2009-09-29T06:03:19 | 42,575,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,775 | cpp | mediaobject.cpp | /* This file is part of the KDE project
Copyright (C) 2005-2007 Matthias Kretz <kretz@kde.org>
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 ... |
2bb7d23f35fe556f845a34adb51394496ff44616 | 95003b1ef6dc0dd5d86bf6304a285d1092bf8eb5 | /project1_heising/DNAanalyzer.cpp | 45112a180ca2801640627654e6ed49dc6d7641b7 | [] | no_license | erhe1689/CSCI1300 | 4e659f86321d458fa4e8a5f653978952d7ee6f48 | b432a86112372007984a83008a7d880a2dd9722e | refs/heads/master | 2023-01-04T21:35:31.447080 | 2020-11-03T04:56:16 | 2020-11-03T04:56:16 | 290,676,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,535 | cpp | DNAanalyzer.cpp | //CSCI1300 Fall 2020
//Author: Eric Heising
//Recitation: 507-Chakraborty
//Project 1 - Problem 7
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
double calcSimScore(string sequence1, string sequence2){
double similarityScore;
int hammingDistance = 0;
if(sequence1.length() !=... |
260dab049671a0158e1a0c750f53e8c056d1aa23 | c504f1c7b8cec66eb784afc3be048a5316dd2c14 | /SourceCode/Windows/System/SystemTime.cpp | 9c40b8e72d38d902397c19b1bbf5f2b867142be5 | [] | no_license | ButlerZhang/Qing | 9479235d660e3cb7cd6213f739234458c5bd6e0f | 95e5549f5f8f83290ed76bf3981c90c1a679c12d | refs/heads/master | 2023-06-22T20:48:58.039627 | 2022-11-23T15:01:04 | 2022-11-23T15:01:04 | 115,318,601 | 0 | 1 | null | 2023-06-14T22:43:38 | 2017-12-25T07:52:14 | C++ | GB18030 | C++ | false | false | 2,779 | cpp | SystemTime.cpp | #include "SystemTime.h"
unsigned long TestTimeGetTime()
{
return timeGetTime();
}
__int64 TimeGetTime()
{
//MSDN:
//Note that the value returned by the timeGetTime function is a DWORD value.
//The return value wraps around to 0 every 2 ^ 32 milliseconds, which is
//about 49.71 days.This can ca... |
504ff5bc3432fc484634dff5d650d74fae12ab38 | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/protocols/jumping/PairingLibrary.hh | 8d63b9aa6e8385623ec38d11b9e09a7f752cc317 | [] | no_license | MedicaicloudLink/Rosetta | 3ee2d79d48b31bd8ca898036ad32fe910c9a7a28 | 01affdf77abb773ed375b83cdbbf58439edd8719 | refs/heads/master | 2020-12-07T17:52:01.350906 | 2020-01-10T08:24:09 | 2020-01-10T08:24:09 | 232,757,729 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 5,273 | hh | PairingLibrary.hh | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... |
2e355e7bfb762507debe38d18a65b7970f9b38a4 | 2a3067bc1f9baa295aa4905647c06569e5b0dc01 | /IChannelCallBack.h | 4d8f9b89b6d9b50c25e5e4b15b23fbc08dba3963 | [] | no_license | shijiajia/TinyMudo | 6934a49f5c3271a5f225a82dca5b9b53e5ee5c77 | 8c8c0ccfd91489f3eaf9eab6d2a2a7c9569cd22b | refs/heads/master | 2021-01-21T12:53:11.979591 | 2016-07-23T00:00:03 | 2016-07-23T00:00:03 | 57,367,901 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 156 | h | IChannelCallBack.h | #ifndef ICHANNELCALLBACK_H
#define ICHANNELCALLBACK_H
namespace TinyMuduo
{
class IChannelCallBack
{
public:
virtual void HandleEvent()=0;
};
}
#endif
|
2d1278fc5f7b1e41077ad7a987c70614b9caf90a | bcf138c82fcba9acc7d7ce4d3a92618b06ebe7c7 | /gta5/0xE41CA53051197A27.cpp | dd1e07cec1d0809407cd1245f4d9a0a6a60c200e | [] | no_license | DeepWolf413/additional-native-data | aded47e042f0feb30057e753910e0884c44121a0 | e015b2500b52065252ffbe3c53865fe3cdd3e06c | refs/heads/main | 2023-07-10T00:19:54.416083 | 2021-08-12T16:00:12 | 2021-08-12T16:00:12 | 395,340,507 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | 0xE41CA53051197A27.cpp | // code_controller.ysc @ L36651
int func_410(int iParam0)
{
int iVar0;
iVar0 = iParam0;
if ((iVar0 < 0 || iVar0 >= 263) || iParam0 == 263)
{
return 0;
}
if (HUD::DOES_BLIP_EXIST(Global_31724[iVar0 /*23*/].f_19))
{
if (HUD::IS_BLIP_ON_MINIMAP(Global_31724[iVar0 /*23*/].f_19))
{
return ... |
9770c42b6de96c3424047bbbcb5a70aa450fddfa | 3bf94fd91a50b0c194fee4567c0f7e7c2acc765c | /autotests/server/notificationmanagertest.cpp | c244793d262b848e886e2115d131e6734ea3c73a | [
"BSD-3-Clause",
"CC0-1.0"
] | permissive | KDE/akonadi | a1f29a137f6f35516a0ff1b41f85ffd77f695449 | 064b9f38dbfaf1127d12794cf295eb545c593978 | refs/heads/master | 2023-08-31T21:18:57.904918 | 2023-08-28T21:06:36 | 2023-08-28T21:06:36 | 42,715,907 | 25 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 6,864 | cpp | notificationmanagertest.cpp | /*
SPDX-FileCopyrightText: 2019 David Faure <faure@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include <aktest.h>
#include "aggregatedfetchscope.h"
#include "entities.h"
#include "notificationmanager.h"
#include "notificationsubscriber.h"
#include <QObject>
#include <QTest>
using namespace Akon... |
45b496a273997115fd0448461ebc9e50e1a414fd | 83450868c0facabaec66c1fc897fc35f0c576426 | /BOJ/Baekjoon/구현 (Implementation)/12778. CTP공국으로 이민 가자.cpp | 8d3f772a3f50e8e15c515e62bff56620c997f381 | [] | no_license | CPFrog/Problem_Solve | db84840d132a5986386847ae405cf6968f14a197 | 83adcc5a3e1deed85568f4b735e68cebdcf5c7b3 | refs/heads/main | 2023-03-07T06:12:58.654251 | 2021-02-19T02:58:47 | 2021-02-19T02:58:47 | 301,348,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 364 | cpp | 12778. CTP공국으로 이민 가자.cpp | #include <iostream>
using namespace std;
int main() {
cin.tie(NULL);
ios_base::sync_with_stdio(0);
int t, m, d;
char cmd, c;
cin >> t;
while (t--) {
cin >> m >> cmd;
while (m--) {
if (cmd == 'C') {
cin >> c;
cout << (int)c - 64 << " ";
}
else {
cin >> d;
cout << (char)(d + 64) << "... |
4dc56ec84223d534dafab73ee750d932b8bce812 | 6018e30ff90a8c65c5d6982a6b6bd6097c53288f | /madlib/madlib.cpp | 07a752a32696e6f4f3a2b64243bccd6cc51a458a | [] | no_license | KnowsCount/restarting-cpp | 7f57b1daf722064c762ba2ab615ab7710173114c | 50c6d6fd927d39491c26c2fd6535bb6bb8d073c5 | refs/heads/master | 2023-09-03T13:09:55.848884 | 2021-11-02T05:51:26 | 2021-11-02T05:51:26 | 421,082,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | madlib.cpp | #include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
string color, noun, adjective;
cout << "enter a color: ";
getline(cin, color);
cout << "enter a noun: ";
getline(cin, noun);
cout << "enter an adjective: ";
getline(cin, adjective);
cout << "Rose... |
a302e2c1596a9a2778252396f25726e62e734e80 | 785ef143c9f5aaa77456fdbe180d11f5eabf995a | /1.剑指offer/ZJ54_二叉搜索树的第k大节点.cpp | e1c1c507982d30e3f39fc2211585ba41f52801e4 | [] | no_license | Ronnie-Git/LeetCode | 0fdd5c580e250c281cdf5a79d79bfe4bbfc51e7a | bf34b287f978ac4ba8d14a8e8087d71534bb9aa1 | refs/heads/master | 2022-12-18T03:47:07.259565 | 2020-09-24T05:44:05 | 2020-09-24T05:44:05 | 278,781,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | ZJ54_二叉搜索树的第k大节点.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
bool inorder(TreeNode *root, int &k, int &res) {
if (!root) return false;
i... |
a5f134df0330480b1e683ce2f3649034718084c9 | 5bb05305968cb041848932199b8f6649db4920e7 | /workspace/TESTAT1/main.cpp | d287db60d9e869b3331296326e03c12cbb543846 | [] | no_license | cemildo/cplusplus | 81dcf8185ff7268bcd9125a8d605ec02f6ea646d | 3f3da37412ab364df97b74a322339bc193ec5f7c | refs/heads/master | 2021-01-10T13:26:21.103234 | 2015-10-07T15:13:39 | 2015-10-07T15:13:39 | 43,824,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | main.cpp | #include "pocketcalculator.h"
#include <iostream>
int main(){
pocketCalculator(std::cin,std::cout);
}
|
3e05b0c4d6247234162f9f238a6e123f2b1aff1e | 3d3c3e8b55052d016cd9cb8bd744ac279f3224a0 | /Game/Client/src/mapData.cpp | 8ee29f1c2df5b2c335f57018d7a6b51009d27032 | [] | no_license | TrieBr/GrandTale | 15dcef11a5811d7978f812881dba543673017e82 | 4ca6bd1335f6bc005f632a930719e038f71f828e | refs/heads/master | 2020-04-05T23:23:38.737982 | 2018-11-04T07:06:14 | 2018-11-04T07:06:14 | 27,987,084 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,761 | cpp | mapData.cpp | #include "mapData.h"
#include "collisionCheck.h"
mapData::mapData() : mapCollisionData() {
}
mapData::~mapData(){ //Clean up tiles..
for (unsigned int i=0; i<this->tileLayers.size(); i++) { //For each layer
for (unsigned int j=0; j<this->tileLayers[i]->layouts.size(); j++) { //For each layout
for (unsigned ... |
822457158bf430a9f1cd9148e78671ac5ee1ad8b | 524430158ceb8f59e4c02697a66e807115d0d8fc | /Graphics Engine v0.1/Graphics Engine v0.1/main.cpp | 679c5d31d59fd3a42df8745f608858763a9113d0 | [] | no_license | SingularityTechnologies/OpenGL_Scheisse | b550cd92a1fd3cf667524098d0edc70495ac740c | 5e79e2d9593c9a31b4afb09685528f7de5fce0cf | refs/heads/master | 2020-06-04T10:27:56.625236 | 2015-04-04T00:47:40 | 2015-04-04T00:47:40 | 30,864,181 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cpp | main.cpp | #define GLFW_DLL
#include <GL\glew.h>
#include <GLFW\glfw3.h>
#include <stdio.h>
#include "AdditionalFunctions.h"
//Closes GLFWwindow upon press of ESC
static void KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) {
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
glfwSetWindowShouldCl... |
1a0d46afb83ddbbe71a2197b0fe1ada999607ce3 | 9735397c4f86a14694dece008024fceb81186d07 | /ff/include/para/wait_impl.h | 8855445f8ab59280e43970728b5a724bf98a9814 | [
"MIT"
] | permissive | SkySlayer/functionflow | f36cfb33e63c327310ca33b1d943932ae20cd9a1 | f15f78b30fa5dd2462ce76ce68cc63854eb165f4 | refs/heads/master | 2021-01-23T06:49:26.757259 | 2015-01-30T07:00:31 | 2015-01-30T07:00:31 | 30,061,023 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,369 | h | wait_impl.h | /***********************************************
The MIT License (MIT)
Copyright (c) 2012 Athrun Arthur <athrunarthur@gmail.com>
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 restrictio... |
ab494d61f5ebe59d36fcc113b17da7912cbaefc4 | 95364e84a88f899ca316509f77e08855df6b2a02 | /OGL Engine/Engine/Core/Headers/GfxFramework.h | 39a82b4998f3d755c41b5e6770ca1dfeb266e227 | [] | no_license | DimaPetrinko/OGL-Engine | 3f4d0fb92d9a9c64b1916dc8148734a3a76e091a | e55d3952921f14bc4a08d710a66c1ce88210a21f | refs/heads/master | 2021-01-10T18:04:01.591385 | 2016-04-03T19:07:16 | 2016-04-03T19:07:16 | 50,105,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | h | GfxFramework.h | #pragma once
#include "Transform.h"
static class GfxFramework
{
public:
GfxFramework();
~GfxFramework();
static int InitWindow(const char *_title, Maths::Vector2 _resolution, bool _fullscreen);
static void DrawGizmos(Maths::Vector3 position, Maths::Quaternion rotation, Maths::Vector3 scale);
static void DrawCub... |
d4c05a25887be246d78b7db879cb95d45fe988ab | 09cf13de96d0323235d62111eced8ab51904c5f6 | /leetcode832/leetcode832.cpp | 1181c30dd35916a3af4badd06dd01799ebf04e83 | [] | no_license | lovesunmoonlight/leetcode-solutions | 4c8e6ce83c9282d2298ed14582c59572af6e224a | 9e490fd6b5215ed6bb02e481020ee2056db3705c | refs/heads/master | 2021-01-21T18:28:10.461560 | 2018-07-16T04:31:19 | 2018-07-16T04:31:19 | 92,048,152 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,039 | cpp | leetcode832.cpp | // leetcode832.cpp : 定义控制台应用程序的入口点。
// 给定一个二进制矩阵
// 反转每一行,再将整个矩阵取反
#include "stdafx.h"
#include <iostream>
#include <vector>
#include <algorithm>
using std::cin;
using std::cout;
using std::endl;
using std::cerr;
using std::vector;
class Solution {
public:
vector<vector<int>> flipAndInvertImage(vector<vector<int>>&... |
11543a346e6147a492332255b05bd1054d10f757 | f5357857b93554f3cb6a5d578a942b2a31fa4f56 | /4.27/ExampleProject/Plugins/PlayFab/Source/PlayFabCpp/Public/PlayFab.h | 78630a9579920ec77c8053c0332536062e458f98 | [
"Apache-2.0"
] | permissive | PlayFab/UnrealMarketplacePlugin | 41d029f408f21b27f896b60dbbc4f206d6d0b217 | 0463de84670e78d230593ba4650f6c0273a4d5b9 | refs/heads/master | 2023-08-31T05:17:24.090241 | 2023-08-21T19:29:57 | 2023-08-21T19:29:57 | 144,331,377 | 128 | 62 | Apache-2.0 | 2023-07-03T18:49:42 | 2018-08-10T20:55:29 | C++ | UTF-8 | C++ | false | false | 4,308 | h | PlayFab.h | //////////////////////////////////////////////////////
// Copyright (C) Microsoft. 2018. All rights reserved.
//////////////////////////////////////////////////////
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"
#include "UObject/StrongObjectPtr.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPlayFabCpp... |
e84eeab193eb6c82d913e4ac6170c2eaa4fb10f7 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir35435/dir35536/dir35859/dir36113/dir36589/file36656.cpp | 9f39979885800c5b44dbdb7ee96d93ce8b0e4900 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file36656.cpp | #ifndef file36656
#error "macro file36656 must be defined"
#endif
static const char* file36656String = "file36656"; |
9d7929da266a3ab0d1f3b9442150881254c5115c | afb4cf30e328c78efc7adad573a4e4a1870754b6 | /College/Matthew C++ Classes/Matthew Project/Cs 2/Lab 3/RAFile_Backup.h | 1286732a6417de819abd70b916ecf6e0129d1f5f | [
"Apache-2.0"
] | permissive | mmcclain117/School-Code | 5c404aaa9b95df136ba382dff79cb7d44e56b4bc | aa9c501d42fc51fa9a66f53c65b875408a40ea0c | refs/heads/main | 2023-01-21T00:27:18.669866 | 2020-11-29T21:32:52 | 2020-11-29T21:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,263 | h | RAFile_Backup.h | #ifndef RA_FILE_H
#define RA_FILE_H
#include <fstream>
using namespace std;
#include "WCS_Pointer.h"
#include "WCS_UB_Array.h"
typedef unsigned long UINT;
class RAFile
{
private:
struct RecInfo
{
streamoff Offset;
UINT Length;
};
RAFile(const RAFile &);
RAFile & operator = (const RAFile &);
UINT ... |
1d602ea5c55bddc80379873b8485ea5aeaeebbd3 | 6e9c9734d5deca4aa7022c310e9cd0226ab8e7ee | /DeleteMeSFML/Input.h | a805c822bbeb9463095837b612ec1604e1c64b87 | [] | no_license | Gerahn/DeleteMeSFML_Iter | aba56e3f174292d434ae0acbdfd5d01592b6cc16 | 335394fece80509528cac52ebd8f05fc8b2bb449 | refs/heads/master | 2020-12-25T05:07:56.993387 | 2016-05-05T07:35:35 | 2016-05-05T07:35:35 | 58,102,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | h | Input.h | #ifndef _INPUT_H_
#define _INPUT_H_
// forward declarations
// Hint to compiler that this is defined elsewhere
class Tank;
class Input
{
public:
Input();
~Input();
void Update(float dt);
void AttachTank(Tank* tank);
private:
Tank* m_attachTank;
};
#endif |
9558f2e7417db9749c566bb7e287307399609d13 | 8d031bca7874cba7d4211dd5206c9f813e4f6b36 | /Code/WorkspaceB/C++_Files/CF/479_V/C.cpp | 946db18263b195f0b7af595ee8456258d286c0bd | [] | no_license | tushitgarg/algorithmic-programming | 529a3d6679b5e5e8e906f61298630efc583d4ff5 | a5482cca93f79ec8495256fa1a08525e61bfb899 | refs/heads/master | 2021-09-27T12:31:47.378541 | 2018-11-08T13:41:31 | 2018-11-08T13:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,022 | cpp | C.cpp | /*input
3
6 1
5 2
4 3
*/
#include <bits/stdc++.h>
using namespace std;
#define readFile freopen("E:/Shreyans/Documents/Coding Workspace/STDINPUT.txt","r",stdin);
#define boostIO ios_base::sync_with_stdio(false)
#define ld long double
#define ll long long int
#define CLR(s) memset(&s, 0, sizeof(s))
#define ... |
511e3579d3c8b28a0d2b8b96b5b93eeaee87dcde | ed9af5bc096dcd397996a36aa9efd677a330a31f | /cpp_module/01/ex07/replace.cpp | 14c44697d3b71b945dd8c6ec2266f41c0622c5be | [] | no_license | hypernomadd/42cursus | b4af9b6b7a9f2aa3f8d9aaba4a8ff78efe65847c | 4603ed9b355408d9de1c2277710444cabf162dd9 | refs/heads/master | 2023-04-11T13:27:13.332874 | 2021-04-14T10:47:03 | 2021-04-14T10:47:03 | 260,924,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | replace.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
int cpyAndReplace(std::string filename, std::string str1,
std::string str2)
{
size_t pos;
std::ifstream input(filename);
std::ofstream output;
std::string buffer;
std::ostringstream ss;
if (!input)
{
std::cerr << "Error: ... |
76c2b6bbcfead01d9bf6c1173e7e0f6e5ec4b8bb | 15b612209b47e9588e60e3a1d5a91597eedf20ca | /team_fake/team_fake/AL3後期配布2/DirectXGame/Input.cpp | fd5d0d6d95eb46d2e943526b595350aae11e53bb | [] | no_license | cthugha171/team2 | c3827962790e71b6a3526d88b5738d5decd41437 | 506bb49f974bcddacdf9eb807afdc7e7f2cb25d0 | refs/heads/master | 2023-03-04T21:34:42.717246 | 2021-02-17T05:56:22 | 2021-02-17T05:56:22 | 320,567,923 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,715 | cpp | Input.cpp | #include "Input.h"
Input::Input():
m_pDinput(nullptr),
m_pDevkeyborad(nullptr),
mCurKey(),
mPreKey(),
mResult(NULL)
{
}
Input::~Input()
{
}
void Input::initialize(WinApp* winapp)
{
//DirectInputオブジェクトの生成
mResult = DirectInput8Create(winapp->GetInstance(), DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)&m_pDi... |
8f341ef9c8875916afe16d677abb1a027ac92f21 | eb6742f8ee754c5b280cd0902b5331a91d2c8e92 | /test/unittests/graphics/surface_test.cpp | 384228a273a0b8951fd2e42aa66efdf2afbadabe | [
"MIT"
] | permissive | rodrigosetti/centurion | 5e12a7bdf21df68b456c70230d2f2d300308a771 | cb6960abeb735a1715352f514e8cf91b68ebc431 | refs/heads/main | 2023-03-31T15:33:10.046108 | 2021-03-16T22:55:58 | 2021-03-16T22:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,546 | cpp | surface_test.cpp | #include "surface.hpp"
#include <SDL_image.h>
#include <gtest/gtest.h>
#include <iostream> // cout
#include <memory> // unique_ptr
#include <type_traits>
#include <utility> // move
#include "colors.hpp"
#include "exception.hpp"
#include "log.hpp"
static_assert(std::is_copy_constructible_v<cen::surface>);
stati... |
fdda350ee7e1ae8525596c5e7f85fbcacf13c91c | 9a896df889577375c00e98db293cbb60e3688b2d | /arreglo/src/Arreglo.cpp | 1e4361062f9c2fca7e4b6ea27ae89e22abbd1e9e | [] | no_license | alexa1999/2018-trabajo-1 | 0061a9cbd98a6a26d5ed9a481d79e2e5dea19955 | d10a92e42a841e786f5997762ae3ec1c72856691 | refs/heads/master | 2020-03-08T02:13:55.849270 | 2018-10-02T14:50:02 | 2018-10-02T14:50:02 | 127,853,387 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,967 | cpp | Arreglo.cpp | #include "Arreglo.h"
#include <iostream>
using namespace std;
Arreglo::Arreglo(int tam,int arr[])
{
this->tam=tam;
this->data=new int[tam];
for(int i=0;i<=tam;i++)
{
data[i]=arr[i];
}
}
int Arreglo::imprimir(){
for(int i=0;i<tam;i++){
cout<<data[i]<<" ";
}
}... |
6412fb07abf7722c9517d8dd364a6466cc2ab918 | 1d098de1f31df58cac43bb83c1d5c683aaf4b7a6 | /base64.cpp | 15c4fa4e4b0d7c9dfc7b23bf48834a06a810a291 | [] | no_license | brzeszczot/Neurocalc | d14c25e0600c42c3ceda71ade2ced3a221ba9be5 | 3330d4d1dfaabb41330c7e17c7070d370eee472d | refs/heads/master | 2021-01-01T06:50:38.359605 | 2014-01-04T19:34:05 | 2014-01-04T19:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,693 | cpp | base64.cpp | #include "Base64.hpp"
#include <iostream>
/*! @file
* @brief Describes base64 namespace, which holds some functions for encoding and decoding base64 data
* C_Base64 - a simple base64 encoder and decoder.
*
* Copyright (c) 1999, Bob Withers - bwit@pobox.com
*
* This code may be freely used for any purpose, ei... |
3398170df81580d817d85e2853298b03c22213f4 | 2c371dd63b5d075ef3b7b820955fb9888be02b54 | /background.cpp | 19dc822247a1ebffa16d51a05090959063e2d55d | [] | no_license | Himani-Bhardwaj/POSIX-SHELL | e026a663ab863d2cc5cf9b4a7575cc647cfaddff | 84d20bd7a9c1c4a932d344d4338323b7d1979ed9 | refs/heads/master | 2020-07-16T16:50:19.801980 | 2020-01-10T09:19:06 | 2020-01-10T09:19:06 | 205,827,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,209 | cpp | background.cpp | #include<iostream>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<fcntl.h>
#include<vector>
#include<bits/stdc++.h>
#include<signal.h>
#include "background.h"
#include "commonFunctionalities.h"
#define Max 4096
using namespace std;
bool checkBackground... |
de66f6ebcee620f82fcc841a2bfb0c6e336244f0 | 5aa1bbd6972fc348398c0b5cb79e10d32a2a5af6 | /gfg-leetcode-solutions/Trees/MinimumDepthOfBinaryTree.cpp | 4de8c2910a90c2ee457a119ae84c2ed943a49b71 | [] | no_license | adityakumarsinha03/code-solutions | d7c82e5a33ec0bc771e03349d4e1a2b9a88c6d6b | 0513ed37d4d5439dae687a231a0668e7bc709de7 | refs/heads/master | 2023-08-21T22:28:18.034759 | 2021-10-03T09:04:30 | 2021-10-03T09:04:30 | 413,026,475 | 0 | 0 | null | 2021-10-03T09:04:31 | 2021-10-03T09:01:59 | null | UTF-8 | C++ | false | false | 468 | cpp | MinimumDepthOfBinaryTree.cpp | // https://leetcode.com/problems/minimum-depth-of-binary-tree/
class Solution {
public:
int minDepth(TreeNode* root) {
if(root==NULL){
return 0;
}
else {
int lh=minDepth(root->left);
int rh=minDepth(root->right);
if(rh==0){
ret... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.