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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a1570776a5705182e83efb6ab5ae57c542475913 | 2b008c1cd9528147577c11302405e407f2f61913 | /tests/src/testiniparser.cpp | 0c84ffc748b94ae684b45f1646ae11c0329b1b1a | [
"BSD-2-Clause"
] | permissive | merelabs/mere-config-lite | a87c8a9270fc2a7468055c9947f826dd954ac56e | 9f64538eba0f4e9b50f540f59a7be99b6653d252 | refs/heads/master | 2023-07-11T06:23:34.162145 | 2021-08-14T04:34:01 | 2021-08-14T04:34:01 | 344,203,431 | 0 | 0 | BSD-2-Clause | 2021-08-14T04:34:02 | 2021-03-03T17:12:12 | C++ | UTF-8 | C++ | false | false | 4,587 | cpp | testiniparser.cpp | #include "testiniparser.h"
#include "../src/spec/document.h"
#include "../src/parser/iniparser.h"
#include <fstream>
void TestIniParser::initTestCase()
{
m_file1 = std::tmpnam(nullptr);
std::ofstream file1(m_file1);
file1 << "\n";
file1 << "#this is a commnet" << "\n";
file1 << "nameparser" << "... |
e7029c9dec77c5fe8ff81bcbc593956dd86f1886 | e9012bfccb8ca863b92cc58798d8b59d6794a078 | /RLPrecompiler/RLPrecompiler.h | 8805cba42289829ea0f1496b4d29ef1844320d6b | [] | no_license | preyko/talw2 | e63314b26f9e7e8e0cfe8b4493db29320a97dd7b | c4063b289e98b82ce9035d816d02e84e75a611df | refs/heads/master | 2021-01-20T21:00:38.829514 | 2013-05-03T12:25:43 | 2013-05-03T12:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | h | RLPrecompiler.h | #pragma once
namespace RLPrecompiler {
int Precompiler(char** token_input) {
yyin = fopen(token_input,"r");
do {
yyparse();
} while(!feof(yyin));
return 0;
}
}
|
a2238a8156523f10d93df0742232f1324372f510 | 47463a2cde01ea385e0bee6dbbacc5d303e1bda0 | /pthread_slave/pthread_slave.cpp | c3da018ededbffd491ec8c1cde0466953fddb846 | [] | no_license | uzumushi/chabashira | dffc90b49c58d56faae5e037e359d33810939d45 | 8410be5bd36abcb703abe7c15d12ae1ccde3bc6e | refs/heads/master | 2020-03-17T21:29:49.701785 | 2018-06-06T09:15:24 | 2018-06-06T09:15:24 | 133,961,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,357 | cpp | pthread_slave.cpp | #include <iostream>
#include <iomanip>
#include <string.h>
#include <sstream>
#include <random>
#include <limits.h>
#include <pthread.h>
#include "./PicoSHA2/picosha2.h"
#include "client_socket.h"
using namespace std;
const int PORTNUM = 50500;
const char SERVER_IP[] = "160.12.172.211";
const int DEFAULT_CAPACITY = ... |
213f1171b7db66eca5c213aadda73a3a67ae0b1a | a0c60bd23fbdc7a89786d1f775455057aeb32701 | /aten/src/ATen/native/mkldnn/Conv.cpp | 7f285e2cfcb8bdac4cb4ec6f1b626d88537868f7 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | cpuhrsch/pytorch | 474dd74a729c11970af0a010d3f076e8ef31b74f | be327ec08f320e256d444693dde65fe55831bc46 | refs/heads/master | 2023-06-23T04:33:16.514572 | 2022-09-30T18:51:43 | 2022-09-30T18:51:43 | 118,517,346 | 2 | 2 | NOASSERTION | 2022-05-24T00:58:21 | 2018-01-22T21:26:11 | C++ | UTF-8 | C++ | false | false | 13,882 | cpp | Conv.cpp | #include <ATen/ATen.h>
#include <ATen/native/ConvUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/Config.h>
#if !AT_MKLDNN_ENABLED()
namespace at { namespace native {
Tensor mkldnn_convolution(
const Tensor& input, const Tensor& weight, const c10::optional<Tensor>& bias_opt,
IntArrayRef padding, Int... |
fd4faf45a619000025ee7f7fbe2b0ff40aab784a | 6e5aca8a2d93092dbb8ad130d4bc904b49b938f9 | /algorithm/leetcode/word-ladder2.cc | a4551d553a6d495337778a0f58faeeeb0ef8746e | [] | no_license | ljshou/workspace | 6a1b79f0b222cefee8d751fe5c32c726466fa38e | 7cc1067f22cca9e56511f89be7e24420fe894090 | refs/heads/master | 2016-09-05T13:30:42.402922 | 2016-02-28T15:35:40 | 2016-02-28T15:35:40 | 26,074,693 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,999 | cc | word-ladder2.cc | class Solution {
public:
vector<vector<string>> findLadders(string start, string end, unordered_set<string> &dict) {
vector<vector<string>> res;
unordered_map<string, vector<string> > father;
unordered_set<string> cur, next, visited;
bool found(false);
cur.insert(sta... |
09058fda13ab6eb3401b3727a0deb4f8a062eef3 | 8c314a99c6429a4f31099380394b0daa8b07e898 | /src/pro/Juego/ej_modulos/Menus/Controles.h | 995c1604627223576ee7de3dacecbb6ff1f9d30a | [] | no_license | raquelgg00/TheFirstForm | 40479e83483eb6915429ad5ac064d88e6e02b8f4 | d09f264414e882c5f81e210a5e814468ea0e2690 | refs/heads/main | 2023-07-01T06:39:24.774878 | 2021-07-19T18:53:28 | 2021-07-19T18:53:28 | 384,072,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | h | Controles.h | #ifndef CONTROLES_H
#define CONTROLES_H
#pragma once
#include "JuegoState.h"
#include "Motor.h"
#include "Texto.h"
#include "Sprite.h"
#include "Partida.h"
#include <iostream>
class Controles : public JuegoState {
private:
static Controles* pinstance;
Controles();
~Controles();
Cont... |
4cc928c73e182677d96ec3012ea58902df892fcd | 76b6f4ec18777627c37e670504cab87fca8d37fe | /AwesomePang/AwesomePang/ModeApp.h | 092b7f250ae207a48fc6461b74a897274eaf51ed | [] | no_license | artu30/ArquitecturaDelSoftware | 9db767a6786788787e1393109c5770da7f283d5c | 15022fbf4f8c0c527f09ac0e94960d770dcdff61 | refs/heads/master | 2020-03-16T03:48:49.390063 | 2018-05-07T17:55:17 | 2018-05-07T17:55:17 | 132,496,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | ModeApp.h | enum Mode {
NullMode,
MenuMode,
GameMode
};
class CModeApp {
public:
virtual void input () = 0;
virtual void run () = 0;
virtual void render() = 0;
virtual void NotifyActivation () = 0;
virtual void NotifyDeactivation() = 0;
virtual Mode getId() const = 0;
}; |
a7f8752977c3ebaed0ba4e5d1eeac2eddca0318e | 4815c1ee85399c3c0858130e39109ca1a990c283 | /modsBootstrap/Source/Rendering/Textures/TextureUtility.cpp | 82c3de9b3321ef35226b54d89d9d3e60a1a55ac7 | [] | no_license | MODriscoll/modsBootstrap | 1914bc1921867585febd38c7bddd957be0f742aa | ced870b14a94f4101231fc13915ecac3c49d33fe | refs/heads/master | 2021-07-11T23:32:30.840149 | 2018-11-10T08:44:47 | 2018-11-10T08:44:47 | 133,298,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,765 | cpp | TextureUtility.cpp | #include "Rendering\Textures\TextureUtility.h"
#include "IncludeGLFW.h"
#include <stb\stb_image.h>
#include <iostream>
namespace mods
{
namespace detail
{
bool LoadTextureFromSource(
const std::string& path,
TextureData& data,
eTextureChannels channels,
bool sRGB)
{
int32 width, height, format;... |
66aec46155948513371c4ae19c0be3f52accb8c3 | 13bf1e1fbef1828f41f78f563de1471be497fe9a | /code/LeetCode/492_ConstructTheRectangle.cpp | efcc96678740c4b4725b6a9bcd585a6e2c1b8d66 | [] | no_license | kyeokabe/crackingCodingInterview | 2ef4c1a1d6ea48337870d5def59e9e66f4a25c90 | 0550b0e99c40021f5461194570a4b5a0042e409a | refs/heads/master | 2020-04-25T18:02:41.323506 | 2020-02-04T01:37:38 | 2020-02-04T01:37:38 | 172,970,833 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 386 | cpp | 492_ConstructTheRectangle.cpp | class Solution {
public:
vector<int> constructRectangle(int area) {
//https://leetcode.com/problems/construct-the-rectangle/discuss/97244/3-line-C%2B%2B-clean-solution-with-Explanation
//best solution adapted from beckswu
for(int i=sqrt(area);i>0;i--){
if(area%i==0)
... |
19fb704b73ea119be8db6678854be7b4f0342ffa | 36f533088d1c5a93e058bc72a6d643ee262e4401 | /CodeAdapter/Line.cpp | 574f51b007b593b773e2dbe19e027e1ff7e9d0d7 | [
"MIT"
] | permissive | NeuroWhAI/CodeAdapter | 3fd16b3538d76f0c9d835ea370e94f6d8c1bd027 | b07815b9a610f74bcd50ae198a02b5131389cab7 | refs/heads/master | 2021-04-15T09:40:52.092641 | 2017-04-07T13:26:50 | 2017-04-07T13:26:50 | 55,895,368 | 7 | 3 | null | 2016-09-04T04:42:01 | 2016-04-10T11:34:11 | C++ | UTF-8 | C++ | false | false | 19 | cpp | Line.cpp | #include "Line.h"
|
fa34520a2d4df5d41330f651714ae14f7ad621eb | 2295081e6dc21b95d00a400e9e50cbda2ca3cee0 | /Node.cpp | a68fa6de1219078e7c9d8ea4323f823388e29c45 | [] | no_license | vortex314/Common | d39b56aa9cf41e9f558ea35f535b3eaa949fcae3 | d08afec3850fb6fa615667d0b0725c70da7a6947 | refs/heads/master | 2021-07-08T16:30:21.287637 | 2021-05-12T10:48:06 | 2021-05-12T10:48:06 | 42,076,838 | 0 | 1 | null | 2021-05-12T10:49:38 | 2015-09-07T22:12:25 | C++ | UTF-8 | C++ | false | false | 2,066 | cpp | Node.cpp | /*
* Node.cpp
*
* Created on: 28-aug.-2013
* Author: lieven2
*/
#include "Node.h"
#include <Log.h>
Node::Node() {
_next = _prev = _child = _parent = (Node*) 0;
}
Node::~Node() {
// ASSERT(true);
while (1);
}
Erc Node::addChild(Node* child) {
if (_child == NodeNull) {
_child = child;
... |
22877f5c3df2522e5accfe0d2f2d1310ff9b4bea | 2638561cdf30e6aafdd4e7cd41c2808874ea9395 | /freeBot/RotaryServoMotor.cpp | bc72bb1b78ff4ec1077c785915ff9d5d716819db | [] | no_license | Lv101Magikarp/Kvasir | b5b3200f360fb1a10d2bb6f50b1cb32149cd99b7 | fc9c7d238cd7fa08dac6d298cf500f057c6233eb | refs/heads/master | 2021-01-18T13:15:42.241090 | 2019-05-03T12:39:12 | 2019-05-03T12:39:12 | 100,372,369 | 0 | 1 | null | 2017-12-20T15:26:33 | 2017-08-15T11:52:21 | C++ | UTF-8 | C++ | false | false | 888 | cpp | RotaryServoMotor.cpp | #include "RotaryServoMotor.hpp"
RotaryServoMotor::RotaryServoMotor(int _pwm_pin, float _max_speed, int _adjust_speed)
{
pwm_pin = _pwm_pin;
max_speed = _max_speed;
adjust_speed = _adjust_speed;
servo = new VarSpeedServo();
servo->attach(pwm_pin);
servo->write(adjust_speed);//--Manda iniciar com... |
170192fc516a54ed550c2215c1d72198dadb624a | 2fc0f354c4247009cc69b3012efd30798e6131eb | /src/calctop15/engtop.cpp | 5a8735b66fdd19d2b8d42a386a7b3ff18f622d1e | [] | no_license | aerojz/top15 | 81da85132d7ead1c2729bde071d4df6f7cf1ae0c | 98a4d09e2309e6288b87b867a1dc558746bcff0d | refs/heads/master | 2023-06-14T12:54:40.765968 | 2021-07-07T11:55:30 | 2021-07-07T11:55:30 | 383,778,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,354 | cpp | engtop.cpp | #include <QDebug>
#include <QThread>
#include "engtop.h"
EngTop::EngTop(QObject *parent)
: QObject(parent)
{
}
EngTop::~EngTop()
{
thread.quit();
thread.wait();
}
bool EngTop::start(const QString &nameFile)
{
session = new (std::nothrow) Session;
if (nullptr == session) {
... |
66e16b28312c0f5f3f9e33b9c8f058f4dfec54ee | 60a59b529fe66dfcc9f2c24b045b0458b0969609 | /QuarticApproximation/QuarticApproximation.cpp | 5adf12a8ba3a3e1ddce155581c6f44e6a17cef74 | [] | no_license | RiceReallyGood/Quartic | 5b17b5247855600a9c9dc0a92f8edf5190a4793b | f824ea6b56cfa5105f09381a2552436ce1efc0c5 | refs/heads/master | 2021-03-25T23:45:06.098478 | 2021-02-05T03:15:24 | 2021-02-05T03:15:24 | 247,655,880 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,366 | cpp | QuarticApproximation.cpp | #include "QuarticApproximation.h"
const QuarticApproximation::Complex QuarticApproximation::I(0, 1);
const double QuarticApproximation::pi = 3.1415926535897932385;
QuarticApproximation::QuarticApproximation(int Nt_half, int Ns_, double T_, double t_, double U_, double delmu_)
: Nt(Nt_half * 2), Ns(Ns_), Nts(Nt * ... |
4bfcfec3e7a4e88bad5be51259aa823108b6c6e5 | 165be8367f5753b03fae11430b1c3ebf48aa834a | /source/backend/cpu/CPUPoolInt8.cpp | 9ed1f866b3bbd5fd0557c804af8b4713d9ad6e7f | [
"Apache-2.0"
] | permissive | alibaba/MNN | f21b31e3c62d9ba1070c2e4e931fd9220611307c | c442ff39ec9a6a99c28bddd465d8074a7b5c1cca | refs/heads/master | 2023-09-01T18:26:42.533902 | 2023-08-22T11:16:44 | 2023-08-22T11:16:44 | 181,436,799 | 8,383 | 1,789 | null | 2023-09-07T02:01:43 | 2019-04-15T07:40:18 | C++ | UTF-8 | C++ | false | false | 12,047 | cpp | CPUPoolInt8.cpp | //
// CPUPoolInt8.cpp
// MNN
//
// Created by MNN on 2019/06/10.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "backend/cpu/CPUPoolInt8.hpp"
#include "core/Macro.h"
#include <math.h>
#ifdef MNN_USE_NEON
#include <arm_neon.h>
#endif
#include "compute/Int8FunctionsOpt.h"
#include "core/Concurrency.h... |
274cdf869a89958725ce80ccdd2feb8ed8d5a828 | d515c0a2d6452d8844b04cc99278a0ad7a703880 | /Contest.cpp | 30a148d9d490af60bc4c51765d22e69c617c1fb0 | [] | no_license | Labonno120/code_part2 | 6b419a7de3b4c7365238ffe3e5141028314a9c44 | e360897b43abc960a3e3ab8d1073ced93ff3a8e7 | refs/heads/main | 2023-04-01T22:49:18.919548 | 2021-04-05T17:06:25 | 2021-04-05T17:06:25 | 354,904,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | cpp | Contest.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int a,b,c,d,tm,tn;
cin>>a>>b>>c>>d;
tm=max((3*a)/10,a-(a/250*c));
tn=max((3*b)/10,b-(b/250*d));
if(tm>tn)
cout<<"Misha"<<endl;
else if(tm<tn)
cout<<"Vasya" <<endl;
else
... |
e383cfc3d9180032dc128fc82cd59fd3b52de309 | 21a82b2f23cd9da4c410d2d71bbd52a20779cf3e | /Practice/06/C++/C++.cpp | 37f0e7bdf6cee34a52a3c4d0264343daacee19a4 | [] | no_license | AndreyKoshlan/Programming | 58ff35c24c95d24035599fed1243646966d32803 | 6d9f9523f9548d9f050291b5ea3e7f6c72ef84cd | refs/heads/master | 2023-04-14T09:02:53.161454 | 2021-04-23T19:00:37 | 2021-04-23T19:00:37 | 298,025,379 | 0 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,331 | cpp | C++.cpp | #include <iostream>
#include <Windows.h>
double Div(double x, double y) {
if (y == 0)
throw "Отсутствуют действительные корни";
return x / y;
}
void CalculateLinearEq(double a, double b) {
if ((a == 0) && (b == 0)) {
std::cout << "Результат не определен" << "\n";
} else {
std::cout << "x = " << Div(-b, a) ... |
5ca854c400bafa706c45fc20396a881c6d9bb344 | b7314ea2524854b7527e43215ccd6731117e6686 | /cdmi-stub/imp.h | b8b9f123960ad20c4337ea59e7f4a406742e8052 | [
"MIT"
] | permissive | calais007/open-content-decryption-module-cdmi | e0b73f39fbcff7efd299d678e83561e40a7296c4 | df36e07b68db2511d2e1c4819108a5b4fd73db13 | refs/heads/master | 2021-05-14T07:48:30.281642 | 2017-08-04T15:19:38 | 2017-08-04T15:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,241 | h | imp.h | /*
* Copyright (c) 2017 Fraunhofer FOKUS
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WA... |
02886e5878c9911a0c608a9666c78dd10db89d91 | c3cd57219e46b44fe8eb076a0d55b5546b8fef53 | /Debugging Exercise/Marine.h | 284c0745dd10aab666845c392c7d042d8f4cdf71 | [] | no_license | Mondotrasho/Debugging-Exercise | ef01c7ff2c3ccca0aa86ccadf0dfe74530d4c437 | 9ac27f65c02b039480cf3bbbbe05802f0cd70746 | refs/heads/master | 2020-03-19T07:58:29.558413 | 2018-06-05T11:58:43 | 2018-06-05T11:58:43 | 136,165,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | h | Marine.h | #pragma once
#include "Entity.h"
class Marine : public Entity
{
public:
Marine();
~Marine();
//int attack();
void takeDamage(int damage) override;
private:
//friend class Entity;
};
|
68f7a0baf6fe7fc8dc98107db1e96918dd318f47 | a15f5703d633be5b39597b7c0bd842595b670b04 | /include/Module/mbed_6.2.0/LPSWrapper/LPS331_I2C/LPS331_I2C.h | 2a33cb8ff7befb58ae4c2ebbc17fa8d12bf490ba | [] | no_license | FROM-THE-EARTH/FTE09_chinchirorin | 48003ff07ad1411c4d03acdb02e592883296b6f7 | 13b62944812eecfec5a36bb63f0c3b936edfa9a0 | refs/heads/master | 2023-01-28T13:20:31.691928 | 2020-11-22T06:56:24 | 2020-11-22T06:56:24 | 298,694,111 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,851 | h | LPS331_I2C.h | /*
* I2C/SPI digital pressure sensor "LPS331AP" library for I2C mode.
*
* http://www.st.com/web/en/resource/technical/document/datasheet/DM00036196.pdf
*
* Copyright(c) -2013 unos@NYAMFG,
* Released under the MIT License: http://mbed.org/license/mit
*
* revision 1.1 22-Oct-2013 Add multibyte read, ... |
e0657153b71008a6c04016bbe4f56a77a846840f | 033ada39d5a6212a9c4d0d5282c53c551d0e9c20 | /src/manager/service/access-control.cpp | a3cecb47cd95b88aacfd9b28167146ae694c5716 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | angelmaster6/ckm | 50db8765755837aa173bfd4e58ee7cce85429152 | a61e9ce01fa45323b381e6456d07117516d2e55d | refs/heads/master | 2020-07-19T09:12:32.128657 | 2016-01-08T12:32:28 | 2016-01-14T08:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,535 | cpp | access-control.cpp | /*
* Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd 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
... |
b533e3d5ef51bfc2292fa749c9b75af0f24b4b40 | 8c771231cef9ea5d2248dca805980c625eead179 | /test_14_5/test_14_5.cpp | 71b25ec8baf7332f85614dbc3437d2af96d9db53 | [] | no_license | bobokong/C_study | 1fec8b32a617b7e37a5e0509db8676d2ecfa3045 | 709abc0ab07eaeeaf07432a4f06d64ccec9ad049 | refs/heads/master | 2022-06-11T08:14:32.909339 | 2022-06-01T16:09:34 | 2022-06-01T16:09:34 | 156,514,731 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | test_14_5.cpp | #include<stdio.h>
double fac( int n);
void main( )
{
int n;
printf("Enter number:");
scanf("%d",&n);
printf("%.1f\n", fac(n));
}
double fac( int n)
{
if(n==1)
return 1;
else
return n*fac(n-1);
}
|
065c29da7d096a37a3feecc51b5041e7e277eaa4 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /CodesNew/957.cpp | 4450534f1a19f358303c33d57d4e2de907f39a2b | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | 957.cpp | /**********************************************
*Author* :TRDD
*reated Time* : 2017/8/11 16:45:20
*********************************************/
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include ... |
4d5941fdee4a4f3b6b4604639840daddf66213d7 | 4f4d53c963607f644e8b2b1763302cb0c192a2a6 | /4.cpp | b6a5516968a54f034bb184fdad5cb9485f867445 | [] | no_license | kmjayadeep/oslab | 3d8e7e9884091f864f1a5ba802f7c389e12a531c | f49289e68a53c56614600f87720cc6ef666bd1af | refs/heads/master | 2020-06-14T10:29:58.232502 | 2016-11-30T15:03:35 | 2016-11-30T15:03:35 | 75,197,968 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | cpp | 4.cpp | /*
Exp no 4
Program to implement chat using message queue
S1330-R-jayadeep
23-07-2016
*/
#include<iostream>
#include<sys/msg.h>
#include<sys/ipc.h>
#include<unistd.h>
struct msgBuff{
long mtype;
char mBuff[20];
};
using namespace std;
int main(){
int msgId = msgget(1999,IPC_CREAT|0666);
if(... |
3244c6545b404c78946d57ec81be24250b852ebd | a2743f989c6e33810bdc6d7b196789ced823ae3f | /src/External/ExprEval/node.h | d2ef25af41a8ae2161011898ba394051feb37ebb | [
"BSD-3-Clause",
"NCSA",
"BSD-2-Clause"
] | permissive | jameslarrue/enzo-e | 879a40751a20b41d3c727dfa44ea8e2ddad812e6 | 96b620ce776bd3804b490fe001a1b76037322b14 | refs/heads/main | 2023-05-04T06:52:55.296079 | 2021-05-21T19:18:55 | 2021-05-21T19:18:55 | 369,139,858 | 0 | 0 | NOASSERTION | 2021-05-20T08:41:06 | 2021-05-20T08:41:06 | null | UTF-8 | C++ | false | false | 7,010 | h | node.h | // File: node.h
// Author: Brian Vanderburg II
// Purpose: Expression node
//------------------------------------------------------------------------------
#ifndef __EXPREVAL_NODE_H
#define __EXPREVAL_NODE_H
// Includes
#include <vector>
#include "parser.h"
// Part of expreval namespace
namespac... |
201d310dd8af8b4530a2de4906dd42312bbe4045 | 57d94f132621e4eba2bc87de99516e1e17f27973 | /WIN32/windows/code/tempCodeRunnerFile.cpp | 5bab47b3863e5bdc6ffef58a18a02cc5966134ee | [] | no_license | xjuun/Note | 4cbb6de2ab1dbafc00ef35c6a7d0d5c30dff9f99 | a55e852f4391bb71b76fb750552afe7feee959a7 | refs/heads/main | 2023-07-12T09:27:15.316378 | 2021-08-15T14:02:00 | 2021-08-15T14:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20 | cpp | tempCodeRunnerFile.cpp | -L MinGW\lib -lgdi32 |
54ad7f47846608644ca8e827773a6b425e36e126 | cdf8d1262d7a9f256b881ef44d8ee644945c3c3b | /自学/最长回文字符串.cpp | 2a6b5dc1356e933621d705310eeb1342c9ed5659 | [] | no_license | liam-lian/C-Cpp | f9784a0e2868b3d249b5aa068cf71c6e4904ceea | 0fd67a6280702254fea4fea7daf6bfd6ab9f5a0d | refs/heads/master | 2022-02-24T13:49:32.310135 | 2017-11-14T11:23:48 | 2017-11-14T11:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | 最长回文字符串.cpp | #include <cstdlib>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <string.h>
#define MAX 1000
using namespace std;
int p(char*m,int p,int q)
{
for(int i=p;i<=(p+q)/2;i++)
if(m[i]!=m[q-i+p]) return 0;
return 1;
}
int main(int argc, char *argv[])
{
char a[MAX],b[MAX];
int c[MAX];
gets(a);
for(... |
5da3ddf671e81e8f3898842f628de7411c978157 | cdb2b78b87aea310d724846b50b6163d6855796c | /1171.cpp | 0196cde89d9c7179a95c8ab270ac6455e1e1a91c | [] | no_license | Chenghaoxiang/tzoj | af25ae4fb212d30efc0a9d7590c9dcc15903dcf9 | b0e70538da07a964d3ac9d80c277e626425a205b | refs/heads/main | 2023-03-01T14:01:05.319574 | 2021-02-06T13:32:18 | 2021-02-06T13:32:18 | 336,543,225 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cpp | 1171.cpp | #include<iostream>
#include<stdio.h>
#include<cmath>
#include<string.h>
using namespace std;
int main()
{ char a[100];
gets(a);
strrev(a);
puts(a);
}
|
e7ecfc9a2823cd9cd8a74738dfa259421f45a4b5 | 6100b20e0a95c0e91846e1e8193633ff424051fc | /mylabel.h | ebeab57f7cbeb0a9ccc6fd8af8d297679dbfc715 | [] | no_license | wang443/QT_Puzzle | 7425c1811b4394c30d98697226805d12b658ee95 | 9cf40c1d0e0527d06f718c0dd1b173a4730f0f4f | refs/heads/main | 2023-04-24T13:13:00.405977 | 2021-05-16T02:32:43 | 2021-05-16T02:32:43 | 367,768,669 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 424 | h | mylabel.h | #ifndef MYLABEL_H
#define MYLABEL_H
#include <QWidget>
#include <QLabel>
//添加鼠标事件头文件
#include <QMouseEvent>
class MyLabel : public QLabel
{
Q_OBJECT
public:
explicit MyLabel(QWidget *parent = nullptr);
protected:
//实现鼠标释放函数
void mouseReleaseEvent(QMouseEvent *ev);
signals:
//自定义一个点击... |
45c5ce491a391b8e4064be0c06e580fcd1e13ce4 | 2c2eac8ddebf840bbd31be42ec270159ecbd72c5 | /source/graphics/Renderer.hpp | 62f0bdc273cae7b056959cb28bb0550b6bb64194 | [] | no_license | Steback/Little-Engine | fc25a2539769c0c8bcf5d9ba94cc0025e7d25891 | a28746b01ba6ee559f4b05acce469c618c71722f | refs/heads/master | 2023-07-10T21:27:56.128595 | 2021-08-20T18:18:48 | 2021-08-20T18:18:48 | 376,998,278 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,690 | hpp | Renderer.hpp | #ifndef LITTLEVULKANENGINE_RENDERER_HPP
#define LITTLEVULKANENGINE_RENDERER_HPP
#include <memory>
#include <vector>
#include "vulkan/vulkan.h"
#include "utils/NonCopyable.hpp"
namespace lve {
class Window;
class Config;
class Instance;
class Device;
class SwapChain;
class Renderer : NonC... |
5f258c30c921bc9722abd5043727eab796acb20a | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bbas/bsta/algo/bsta_truth_updater.hxx | d45d92df1a45279835d9fcfb811d0b69acf7f730 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 284 | hxx | bsta_truth_updater.hxx | // This is brl/bbas/bsta/algo/bsta_truth_updater.hxx
#ifndef bsta_truth_updater_hxx_
#define bsta_truth_updater_hxx_
//:
// \file
#include "bsta_truth_updater.h"
#define BSTA_TRUTH_UPDATER_INSTANTIATE(D,U) \
template class bsta_truth_updater<D,U >
#endif // bsta_truth_updater_hxx_
|
19027044c6e79129508af05f56d39d02a7d3dddb | 42ac9e8ad82dccd8b173e1bbc16865e2c1b59592 | /stl c++/tut10.cpp | 1a8066bd5eac9b2c47372a9c1a47cf9059ec9fb0 | [] | no_license | aryan2621/c-plus-plus | 34f95808c5bd4cab9bc1f2f4c0b2d837f7ce36ba | aa6be5ecf5b09c7674b7828f74f799fea4b4e8fb | refs/heads/main | 2023-07-29T01:37:57.571658 | 2021-09-30T17:15:51 | 2021-09-30T17:15:51 | 363,371,655 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | cpp | tut10.cpp | // stacks and queues
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
// stack-> last in first out.
// first in last out.
// top element and size we can access
// push /pop/ accces the top.
// queue -> fifo-> first in first out.
// push / pop /front... |
05292a11653e3cc0379adefa881c33f704c0c116 | 012cb90d1fe9db585e90a98907b5634a4dd10ca4 | /src/plugins/mi_core/mi_core_global.h | 1b1fc553f791488a285a9e7895ef73653db54ea9 | [] | no_license | andy-fillebrown/audiocarver | 6d9fed1a05400efc6b2b2464a10dce8f5d490bba | 3a5d79c82d350193f28df86c2cb0fe9b114d79bd | refs/heads/master | 2020-05-22T10:21:28.696699 | 2015-04-26T11:08:43 | 2015-04-26T11:08:43 | 186,297,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,354 | h | mi_core_global.h | /**************************************************************************
**
** This file is part of AudioCarver
**
** Copyright (c) 2013 Andrew Fillebrown.
**
** Contact: Andy Fillebrown (andy.fillebrown@gmail.com)
**
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as... |
2014520bcfe0f12f62ebedcb49e409026734cc63 | 2759db883e305a7ff10c7273cb2abed99022ea97 | /viewer_dir/includes/Mutex.hpp | 9579d3af1cd2b77e3e314a1312b4ec5d7b75ca85 | [] | no_license | vbott/zappy | 1e6f6bb1cf6e70122e0d23fdeb258acc99d20c2b | e75f00c6bf33775c1969c5d9e4b354e8d7145f2e | refs/heads/master | 2022-04-23T15:26:04.117617 | 2020-04-29T04:55:50 | 2020-04-29T04:55:50 | 259,827,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 607 | hpp | Mutex.hpp | #ifndef _MUTEX_
#define _MUTEX_
#include <pthread.h>
#include <time.h>
#include <stdlib.h>
typedef pthread_mutex_t mutex_t;
typedef pthread_mutexattr_t mutexattr_t;
class Mutex
{
public:
Mutex(mutexattr_t *attr = NULL);
virtual ~Mutex();
virtual bool lock(void);
virtual bool unlock(void);
virtual bool ... |
6c68263f9435209d80780fdc9d3b294629c36a04 | b789bd41cff2e0f1b987dc4738f05ca6a924728c | /diagonal_difference.cpp | 959f7f7f8d1534b8920cf68d044166c6f5b228a7 | [] | no_license | lnrsoft/hrank_challenges | a9d44732782752e1c609f8157f2b5d9cc67c18ed | 937875ab14757ee0c5df4f1a0ead75adc8672569 | refs/heads/master | 2021-01-19T18:14:50.729430 | 2017-08-23T22:52:12 | 2017-08-23T22:52:12 | 101,118,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,612 | cpp | diagonal_difference.cpp | #include <iostream>
#include <sstream>
#include <vector>
//function prototypes
void firstdiagonal();
void seconddiagonal();
void result();
std::vector<int> firstdiag_result;
std::vector<int> seconddiag_result;
void firstdiagonal(std::vector<int> vec)
{
std::vector<int> vec1 = vec;
int i = 0;
for(auto a =... |
3f4e8bc3c108f2f51d54e553947fe33f3c8ce07d | a3c51c4d53cf20183bd231cd64d0dbb6ccf18832 | /model/DNA.h | 460dc9f22379b3f6a5d16a3bd0497001f7bd8c68 | [] | no_license | Elishva/DNA-sequences- | 87ed9986bf61f5f54ee8ef1460a49a614d42f37f | 9cba8db582b2ac7be8d621c6c9b255ec658ac704 | refs/heads/master | 2020-04-25T12:35:08.013789 | 2019-01-15T06:02:18 | 2019-01-15T06:02:18 | 172,782,740 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | h | DNA.h |
#ifndef DNASEQ_DNA_H
#define DNASEQ_DNA_H
#include <iostream>
#include "IDNA.h"
class DNA: public IDNA {
public:
explicit DNA(const char* seq);
explicit DNA(const std::string& seq);
DNA(const DNA& other);
~DNA();
DNA& operator=(const DNA& data);
Nucleotide operator[](size_t index)cons... |
d777f41421087c83268be7949f1ea5bd975c585d | 4ddd6efcf40f70dd8041bf7b65a92cc9f4ac7c3c | /52inheretance.cpp | d502d42dc301dd8fbbc0eec3626b452ced55c16e | [] | no_license | Brian123456789/C-plus-plus-Homework-lessons-From-Roberts | 673322aae3b69497b38724593dbff372802449f3 | 6f54380ae1976e5e5c571673b2ad8ddcac6eca4a | refs/heads/master | 2021-01-09T06:06:05.072147 | 2017-02-05T09:44:37 | 2017-02-05T09:44:37 | 80,900,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | 52inheretance.cpp | //This is main.cpp file
#include <iostream>
#include "Mother.h"
#include "Daughter.h"
using namespace std;
int main(){
Daughter tina;
tina.sayName();
}
|
82855482f38ff1aa2f3174a5196bf66e7497329c | d6eb4fe19d7c98c5037d778d467fb58c5c488208 | /cpp/lib/queue - Copy.hpp | e9f25234326df8f0e41ad39cc07efe8336de9e5c | [] | no_license | Kartikvk1996/SE | 05b92196fb7d1739e45323c9898b5679dd02d913 | ee2e85ef9de5090304fdc42cb98a0b4362c1902b | refs/heads/master | 2018-07-07T19:22:28.344882 | 2018-06-01T01:33:45 | 2018-06-01T01:33:45 | 103,102,106 | 2 | 1 | null | 2018-05-31T14:00:02 | 2017-09-11T07:11:17 | C++ | UTF-8 | C++ | false | false | 6,817 | hpp | queue - Copy.hpp |
using json = nlohmann::json;
class data
{
public:
unsigned long urlId;
string url;
unsigned short depth;
unsigned int pageSize;
};
struct compare : public std::binary_function<data, data, bool> {
bool operator()(const data *lhs, const data *rhs) const
{
return !(lhs... |
86758bb8d60ba78a4f3c9263d4f90d8318a324b8 | c339751630656b8267a4ebb107ee4366ea1b35ab | /1_Programmieraufgabe/Primzahlen.cpp | f49e9aef36132d9652c1cc9a624b256c2b22f9cf | [] | no_license | fl0wm0ti0n/UdemyCpp_Uebung | 408cc92236dbbb436b284839f5ed049842e8db28 | 9783eacfc7dbcb47207b1e79e66332c72ee02fab | refs/heads/main | 2023-06-27T15:58:15.845128 | 2021-08-01T11:33:13 | 2021-08-01T11:33:13 | 391,593,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,428 | cpp | Primzahlen.cpp | //#include <iostream>
//
//using namespace std;
//
//int main()
//{
// // Lest eine positive ganze zahl vom User ein
// // Ueberprueft, ob diese Zahl eine Primzahl ist,
// // Primzahlen: Nur durch sich selbst und 1 (ohen Rest) teilbar.
//
// unsigned int value1 = 0;
//
// cout << "Ueberpruefung auf Primzahlen!" << en... |
4a960408823e4239e989c82bb4c65f88b5e2d0e8 | 4729c5376a0d15dae92fe5c35c18c4923aa66e9e | /Acheron/src/effects/Text.cpp | ec9b2c166db8e8ee8705da736af26e25a3e0b386 | [] | no_license | Metalab/CGSG | 314743ebacf095e05d61c680a2a916ba90064a4b | 08d5898c57e8d181855e5024b88a1be3e2d8ee36 | refs/heads/master | 2020-04-02T03:11:27.607540 | 2014-01-02T17:50:48 | 2014-01-02T17:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,110 | cpp | Text.cpp | /*
* Text.cpp
*
* Created on: Apr 25, 2009
* Author: meta, cygen
*/
#include "Text.h"
#include <GL/glew.h>
//Text::~Text() {
// // TODO Auto-generated destructor stub
//}
Text::Text(Font &theFont, const char *text, float *startPos, float *endPos, int startTick, int duration)
:LinearInterpolatedAnimateab... |
7608d1f703037f60bfbd69b40de8ca7e68a0ef9c | 29d32bb6c30cab62d6593e0ae2989522a3075e90 | /xlive/H2MOD_MapManager.cpp | 041549fa3f894a07d085982caa10a11e0df29bc9 | [] | no_license | YG-LostShadow/cartographer | c41573c0836fd9da3f975537e7a3e4a0ac5fad3d | 25444a69c73894bc376daa216702dbfcde6def03 | refs/heads/development | 2021-06-22T10:17:26.303027 | 2017-09-04T18:23:20 | 2017-09-04T18:23:20 | 104,465,935 | 1 | 0 | null | 2017-09-22T11:13:12 | 2017-09-22T11:13:12 | null | UTF-8 | C++ | false | false | 19,523 | cpp | H2MOD_MapManager.cpp | #include "Globals.h"
#include <h2mod.pb.h>
#include <fstream>
#include <Mswsock.h>
#include <WS2tcpip.h>
#pragma comment (lib, "mswsock.lib")
#define DEFAULT_BUFLEN 65536
extern UINT g_port;
extern UINT g_debug;
/* String constants below for client/server messages */
std::string DOWNLOADING_MAP("Downloading Map");
... |
7a4e75c248543e9aa16ae3fb050b1359134399d1 | c8c992de8fcce8a74f4cf50e7f1244cbc1fb70c4 | /torch/csrc/jit/codegen/cuda/arith.cpp | a721072b3f43109f059199532bea26dcfb70834c | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | logicbai/pytorch | 405c655b26adc8ff5cb205981f077ad58ddd5f37 | 4570ee690acb37642e91a45fc481bee922104d26 | refs/heads/master | 2021-07-20T05:45:58.195599 | 2020-05-18T21:14:04 | 2020-05-18T21:14:04 | 163,182,924 | 1 | 0 | NOASSERTION | 2020-05-18T21:14:05 | 2018-12-26T13:27:18 | C++ | UTF-8 | C++ | false | false | 6,848 | cpp | arith.cpp | #include <torch/csrc/jit/codegen/cuda/arith.h>
#include <c10/util/Exception.h>
#include <torch/csrc/jit/codegen/cuda/ir_internal_nodes.h>
namespace torch {
namespace jit {
namespace fuser {
// Will return a new value of type val with the DataType dtype, if it's a
// tensorview it will propagate the shape information ... |
f39f026d7538819923cecd34b5688cf7d88f3869 | 6354df306af0a89ac6394c6e60140a14484ce944 | /line_ros_utility/src/histogram_line_lengths_node.cc | 9d8884b4668b80a1dd24ed8cde68075a95c77a10 | [] | no_license | xixi0226/lcd | b06cfae24d4136d87e618d3d10508f68a6efb8d5 | 73dfd9fa66c9d7032fce18869712a5ad45d7bd2a | refs/heads/master | 2023-01-31T04:54:11.889488 | 2020-12-16T11:03:57 | 2020-12-16T11:03:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,130 | cc | histogram_line_lengths_node.cc | #include "histogram_line_lengths_builder/histogram_line_lengths_builder.h"
#include <line_detection/line_detection.h>
#include <sstream>
#include <ros/ros.h>
int main(int argc, char** argv) {
unsigned int detector_type_num;
line_detection::DetectorType detector_type;
std::unique_ptr<line_ros_utility::Histogra... |
63cbd769f7c5262fb80c698d329e85b413c5a9cb | 3657bb42387d76fd041d37bf2d69bad7f916f16a | /Boost/Boost/functionObject/Function.cpp | ce7f56a638e554178f128adc3f6c1705a4e19d33 | [
"MIT"
] | permissive | goodspeed24e/Programming | 61d8652482b3246f1c65f2051f812b2c6d2d40ce | ae73fad022396ea03105aad83293facaeea561ae | refs/heads/master | 2016-08-04T02:58:01.477832 | 2015-03-16T15:12:27 | 2015-03-16T15:13:33 | 32,333,164 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,948 | cpp | Function.cpp | /*
For encapsulating function pointers, Boost.Function provides a class named
boost::function. It is defined in boost/function.hpp and is used as follows:
*/
//#include <boost/function.hpp>
//#include <iostream>
//#include <cstdlib>
//#include <cstring>
//
//int main()
//{
// boost::function<int (const char*)>... |
c938da08effa02fc6eea9df36d0f87bf089ded4d | a9909288c7259610b935360cdf5ee9407d17521e | /v0_6/v0_6/src/transfor.cc | d343e9b45e8b8af279453f8939e16f31f6b1db6e | [] | no_license | BackupTheBerlios/axcrawl | 03753e81d06b19e4a238899ea6a6a1e89405f159 | 671e2ad4f28ba8ae3f111c1b3631c6d3a59fbda6 | refs/heads/master | 2021-01-21T11:45:46.898773 | 2002-04-10T08:22:26 | 2002-04-10T08:22:26 | 40,072,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,466 | cc | transfor.cc | /*
* File: transfor.cc
* Summary: Misc function related to player transformations.
* Written by: Linley Henzell
*
* Change History (most recent first):
*
* <2> 5/26/99 JDJ transform() and untransform() set you.wield_change so
* the weapon line updates.
* <1> -/--/-- LRH Cr... |
d5b9b579c2ca8d7866d0603c58a95d23f4ed89fb | e74c933cb74d667a89f2ed3f10535a01656d0ebf | /Sort/MergeSort.h | 0bcfa17ca01348c21cfb1f4c54d9d6ee78f12d41 | [] | no_license | dasubermanmind/Sigint | 0d362a1c5e400cf42102a2b09302c39eaea763f2 | db1fce479f0a2208fa96debb923c822cfaff706e | refs/heads/master | 2023-01-02T14:21:26.932393 | 2020-10-30T23:24:37 | 2020-10-30T23:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | MergeSort.h | // This class is a generic implementation of merge sort
#ifndef UNTITLED_MERGESORT_H
#define UNTITLED_MERGESORT_H
class MergeSort {
public:
void sort(int *array,int head, int tail);
void MergeS(int *arr[], int size,int head, int tail);
};
#endif
|
13eafc7f169319474a8c54b770d932d87bc2eb8c | 8a699a5dc0bb0245dbc177606533e496621cc884 | /CPP_05/ex02/RobotomyRequestForm.cpp | 7ca113d1e5ba75013af351e9f7e548d8c202976b | [] | no_license | lelsweyr17/CPP | 4c1d5764e1dad7f27e6a49a247b492426ca4377b | 78345cb772574e8ee13e130853b06c78e85c6ea6 | refs/heads/master | 2023-05-15T11:17:36.910568 | 2021-06-07T19:31:55 | 2021-06-07T19:31:55 | 368,963,766 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 922 | cpp | RobotomyRequestForm.cpp | #include "RobotomyRequestForm.hpp"
RobotomyRequestForm::RobotomyRequestForm() {
}
RobotomyRequestForm::~RobotomyRequestForm() {
}
RobotomyRequestForm::RobotomyRequestForm(std::string target) : Form("RobotomyRequestForm", 72, 45) {
this->target = target;
}
void RobotomyRequestForm::execute(Bureaucrat const &executo... |
6d46d74eb0f33e46cc78e32a1d6dc7b9714a2fc0 | a9ea1d68a856dd802bb6ce783a23c218ecc3545b | /DailyPractice/883_projection_area_of_3d.cpp | 827ad93dc0554f705f7017f474fe53641fbeb204 | [] | no_license | kiraclf/leetCodePractice | a5c2a9a9bdaed2d6b00805e7e91824cd76634d3b | 61f791bd49c8ce8573c630bb86492e4993d8ad13 | refs/heads/master | 2022-12-12T22:43:34.956744 | 2022-11-28T01:32:47 | 2022-11-28T01:32:47 | 249,493,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 788 | cpp | 883_projection_area_of_3d.cpp | #include <unordered_map>
#include <vector>
using namespace std;
class Solution {
public:
int projectionArea(vector<vector<int>>& grid) {
unordered_map<int, int> xMap;
unordered_map<int, int> yMap;
int zArea = 0;
for (int x = 0; x < grid.size(); x++) {
for (int y = 0; y < grid[x].size(); y++) {
... |
ead980af81da68042db3cf0eb7c466f420db9868 | 42ed8c8d435a2b8f8bc2345da0dd535681e55f20 | /kuka_push/plugin/pushobject.cpp | 40aec76c5695e0dcaf5fbca0ec831bc34b3df232 | [] | no_license | ROSNovice/ROS_KUKA_env | 28983e435b902a1955e0d425eedf3e269829baa5 | 06265822c009635713a9b1972575fc7d364c406e | refs/heads/master | 2022-11-29T20:43:02.815139 | 2020-08-09T12:04:27 | 2020-08-09T12:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,151 | cpp | pushobject.cpp | #include "pushobject.h"
using namespace gazebo;
PushObject::PushObject()
: mt(rd()),
x_cord(650, 900),
y_cord(-140, 140)
{
nh = new ros::NodeHandle;
// service for reseting
service_reset = nh->advertiseService("object_server", &PushObject::ObjectReset, this);
// publisher for object's velocity a... |
9bca220ccc5334832279d541daed7f671400a4a9 | 6d289d0e4f913017877a02bb0130c7b7802337b9 | /base.h | bf9052a41737b1058b05a8aa2b6911113e156e00 | [] | no_license | imakashsingh/Command_line_excel | 0e9db3fe521c3f5304db12fc44fbb43851c60329 | 08a6bc093cc89148089f99542ced517a0c2a41d2 | refs/heads/master | 2020-06-09T01:05:53.706329 | 2019-06-23T11:34:19 | 2019-06-23T11:34:19 | 193,338,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | h | base.h | #include <iostream>
#include <stdlib.h>
#include <string.h>
typedef struct cell
{
int data;
bool form;
bool dependency;
char *formulae;
}cell;
char* parse_input(char *input_command);
bool validate_command_and_process(char *input_command,cell **matrix);
bool check_if_present_in_string(char **arr, int arr_len,c... |
cf5905374d0cc990ef1a3f025513cec9f0ea03da | 2c24c4772004b348f869c97239e4c8ad737ba967 | /src/TaskRasultsMessage.hpp | 378e68b28b1ed28d015cb5037974a79d5c188d3d | [] | no_license | stryku/jarvis | 6cb0b7b22c4241a3aefe770b4653d9f320335fb2 | da2282d42589febe0d752600224caefb1f51bfb9 | refs/heads/master | 2021-01-19T07:52:39.433728 | 2015-08-27T19:52:02 | 2015-08-27T19:52:02 | 87,582,325 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | hpp | TaskRasultsMessage.hpp | #pragma once
#include "XmlNeedReplyMessage.hpp"
#include "WorkerResult.hpp"
class TaskResultsMessage : public XmlNeedReplyMessage
{
protected:
void createDataNode( void *dataPtr )
{
auto task = reinterpret_cast<Task*>( dataPtr );
auto &workerResult = task->result;
auto &i... |
c3c86fa22b88fe9b8abce8c46cd4528b981e1158 | 40b1026d4d2266ab8796190479fb348c1ed0ad61 | /test.cpp | 5de3e58dbb6c5b619f7d69ee3794a7d9c43bde60 | [] | no_license | asLong72/trygl | ccc66bc61e36d88192126575201fe6417a6f6f40 | aa8b3b41bc1f18d7e73af1c9ea19353ee61463ef | refs/heads/master | 2022-12-16T13:35:46.686035 | 2020-09-13T03:29:56 | 2020-09-13T03:29:56 | 292,820,334 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 13,836 | cpp | test.cpp | //#include "glad/glad.h"
//#include "GLFW/glfw3.h"
//#include "iostream"
//#include "fstream"
//#include "strstream"
//#define STB_IMAGE_IMPLEMENTATION
///*
//预处理器会修改头文件,让其只包含相关的函数定义源码
//等于是将这个头文件变为一个 .cpp 文件了
//现在只需要在你的程序中包含stb_image.h并编译就可以了
//*/
//#include "stb-master/stb_image.h"
//#include "glm/glm.hpp"
//#include... |
7407bd6e8ec4dcbd7e5920779984ca226fd38328 | 2fd569f19193f220e061f8404c9360b9da0fa82f | /dataStructure/heapSort.cpp | 1660808cd920583dc62f79c9675ef5dd83654227 | [] | no_license | gayoungyeom/algorithm | c0aee93e52203461aba16fa65dab09a37fa3bf9d | 0c4a13a432d6cca1af9528d18661a9dbba582cf8 | refs/heads/master | 2023-08-14T05:54:51.125532 | 2023-08-03T04:14:13 | 2023-08-03T04:14:13 | 212,285,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | cpp | heapSort.cpp | #include <iostream>
using namespace std;
void HeapSort(int a[], int size); //MaxHeap
void rebuildHeap(int a[], int root, int size);
int main(){
int a[] = {6, 5, 2, 4, 1};
int size = 5;
HeapSort(a,size);
for(int i=0; i<size; i++)
cout<<a[i]<<" ";
return 0;
}
void HeapSort(int a[], int n){
//배열을 힙으로 만든다
fo... |
180001b00c38e7da6e35908eee6fd64b148de9e9 | e985dc956df5965b2ba2230a4f06489ac7cf2937 | /conetrace/simple/main.cpp | 8653dcb3d987459d569dfae38ab1c9119d3c1d7e | [] | no_license | olawlor/directcompression | 883cca902bf0e6f5310612c3789ee145273f83cd | 97ba4e71115130e017b803bbf217e4d1208848e8 | refs/heads/master | 2020-03-26T07:28:27.711206 | 2018-08-10T22:06:40 | 2018-08-10T22:06:40 | 144,656,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,580 | cpp | main.cpp | /**
Load GLSL raytracer, and draw proxy geometry to run the raytracer.
Dr. Orion Sky Lawlor, olawlor@acm.org, 2012-01-30 (Public Domain)
*/
#include "physics/world.h" /* physics::library and physics::object */
#include "ogl/glsl.h"
/* Just include library bodies here, for easy linking */
#include "physics/world... |
bf0b4c5c4184482aaa28415fca16f830f04bc45b | 93c44a30e10cd3d8d3785b869cca4ed1f9974ff7 | /Project1/Code/RTS/AI/LuaScript/Commands/FindPlanet.cpp | 7c2477edf10ca14821d8f278647e18072f5ebd8d | [] | no_license | AlamoEngine-Tools/GlyphX-Reference | f321c2e74ddac848b20fd7f9d1ef01f9b5537e62 | 9541b8c183e540d05bbcf199921f6d71c33181e9 | refs/heads/master | 2023-02-11T12:14:15.582026 | 2021-01-13T19:20:38 | 2021-01-13T19:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,212 | cpp | FindPlanet.cpp | // $Id: //depot/Projects/StarWars_Steam/FOC/Code/RTS/AI/LuaScript/Commands/FindPlanet.cpp#2 $
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// (C) Petroglyph Games, Inc.
//
//
// ***** ** * *
// * ** ... |
85f085bbd3af47d0a0100ec2a1f5fb381c85c3b8 | 3304c26efbe62bbed328687d26cb19a67578dfe2 | /pellets/data_box/value_data_string.cpp | b572a2f2974c1defc1770c80c1255d33b9ca33fc | [] | no_license | a82703855/zpublic | 64be7f08fe8e4eaf52c235ad0bb8cf1ca9663f83 | ef9115a10e1aaf0d1494930701969c43fdf0235f | refs/heads/master | 2021-01-15T22:15:20.571011 | 2013-01-24T10:05:18 | 2013-01-24T10:05:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | cpp | value_data_string.cpp | #include "value_data_string.h"
namespace zl
{
namespace DataBox
{
void StringData::SetValue(IN const std::string& Value)
{
m_Value = Value;
}
bool StringData::ToStr(OUT std::string& Value)
{
Value = m_Value;
return true;
}
StringData::StringData( const std::string& Value )
{
SetValue(Value);
}
Stri... |
81c3e02ecd0462b5bf6472f471325c41a98d84b2 | 4a36849188747a1e3cc4b052eb6bc3a21e3e53bb | /算法与数据结构之美/DataStructure/Stack/stlStack.cpp | 665122740340c2b4dec2e8a4108ebf753fe5b2d0 | [] | no_license | koking0/Algorithm | 88f69a26f424d1b60a8440c09dd51c8563a86309 | 2828811ae2f905865b4f391672693375c124c185 | refs/heads/master | 2022-07-06T17:10:07.440930 | 2022-06-24T14:59:40 | 2022-06-24T14:59:40 | 216,952,717 | 35 | 48 | null | 2020-07-21T02:46:26 | 2019-10-23T02:41:09 | Java | UTF-8 | C++ | false | false | 486 | cpp | stlStack.cpp | #include <iostream>
#include <stack>
using namespace std;
int main() {
stack<int> intStack;
stack<float> floatStack;
stack<string> stringStack;
intStack.push(1);
intStack.push(2);
intStack.push(3);
while (!intStack.empty()) {
cout << intStack.top() << " ";
intStack.pop();
}
cout << endl;
for (int i... |
b510de07a8523b0a366f477526ac079cf5341ae8 | 07a93bc9448c3f6004edfe3c2f35d1a76fadbb34 | /oop_lab/lab6/q3.cpp | 7a4eb33c003de60b3a9fe94c9e0aace3254e4c5f | [] | no_license | biswaroop1547/CS_work_codes | dbdd6c67f42a6c62542a3683cc4b4139c28d0d10 | 1ce249b0026cf82d8c056003d12749ef2b4a024a | refs/heads/master | 2023-03-28T23:54:26.599672 | 2021-03-25T00:45:38 | 2021-03-25T00:45:38 | 293,131,198 | 0 | 3 | null | 2020-10-16T00:12:32 | 2020-09-05T18:19:36 | C | UTF-8 | C++ | false | false | 713 | cpp | q3.cpp | #include<iostream>
using namespace std;
class Circle{
private:
int radius;
public:
Circle(){
radius=0;
}
void get_radius(){
cout<<("enter the radius: ");
cin>>radius;
}
float calculate_area(){
float area;
... |
c4053a4f54ac2357f4a854fecc96f70b3b640c61 | bf251e7e13a814124856ceaf11f9abced343cdea | /21st.cpp | fc9e73da32c92334617d3ab9ab1b2da8a809f753 | [] | no_license | aryankush25/Cpp-Programs | 9ed20785b88e525f3a4c497720396bea6f9d15a3 | 77f2cf041656f1714a5591d4a835c595b6e3d217 | refs/heads/master | 2020-03-28T20:05:59.207017 | 2018-09-16T21:44:10 | 2018-09-16T21:44:10 | 149,038,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | 21st.cpp | #include<iostream>
using namespace std;
class book
{
int bookno;
char booktitle[20];
float price;
inline float totalcost(int copy);
public:
void input();
void purchase();
};
void book::input()
{
cout<<"Enter Book Number "<<endl;
cin>>bookno;
cout<<"Enter Book Title "<<endl;
cin>>book... |
3cce28a022a2d837b11a1cce9b6a823b5bdead35 | 6972989b99fdccc77c30e29c8e75aebc154e4522 | /Source/event.h | 1760fac40a85a9e397fa664f81e65d0f929666c6 | [] | no_license | CRosenauer/CR-Engine | 37e18a005c8ffee7cd313bffb4ac4848611dfef7 | 134ac8f4155c63ba0911b1592f5fccf787729986 | refs/heads/master | 2020-11-26T06:02:22.357657 | 2020-04-23T07:31:29 | 2020-04-23T07:31:29 | 228,985,190 | 0 | 0 | null | 2020-04-23T07:31:31 | 2019-12-19T05:55:41 | C++ | UTF-8 | C++ | false | false | 6,346 | h | event.h | #ifndef EVENT_HPP
#define EVENT_HPP
#include <SDL_events.h>
#include <queue>
#include <vector>
#include "config.h"
#include "video.h"
#include "audio.h"
#include "entity.h"
#include "entityHandler.h"
//CRE Events are altered versions of SDL's internal event strucuts.
//This change was made to have an easier to use ... |
ac57ba6845e65bdc578ba4d585c5b9dee251d9fd | 6bee5904d06539beb8860e40f73cf8f3de0545cb | /render/texturesampler.cpp | 5355bb91c3d0d2c4102605f32c19d5a293cae4a4 | [
"MIT"
] | permissive | revivalizer/64klibs | 740c7500c7d865408f8345e28d820c43e9f3aab5 | 2354d0e65babf1ca370dbb1f482c5978b881482b | refs/heads/master | 2020-04-16T11:34:11.527387 | 2015-04-22T21:00:56 | 2015-04-22T21:00:56 | 29,012,934 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | cpp | texturesampler.cpp | #include "pch.h"
#include "texturesampler.h"
ZTextureSampler::ZTextureSampler(void)
: id(0)
{
glGenSamplers(1, &id);
SetFiltering(kLinear, kLinear);
SetClamping(kClampToEgde, kClampToEgde);
}
ZTextureSampler::~ZTextureSampler(void)
{
glDeleteSamplers(1, &id);
}
void ZTextureSampler::SetFil... |
a0cd087da42c14cd9896197e59c0e010077e035f | 30ca93723de920cdf1de7ee7e56989dd501684f2 | /new tic tac toe.cpp | 975c318ac51114bc3bf5f87259efd51db37146d6 | [] | no_license | Abhishek183/Tic-Tac-Toe | 3b750f9261aafcf82d806c2ea4ed5319b209d4f0 | 5dee9127db6f7071de4c370a9dc2f182b789e6db | refs/heads/master | 2022-11-08T07:46:53.107011 | 2020-06-26T11:15:28 | 2020-06-26T11:15:28 | 275,137,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | cpp | new tic tac toe.cpp | #include<bits/stdc++.h>
using namespace std;
char player1='X',player2='O',choice;
bool winner=false;
bool win(char s[], int n)
{
if (s[1] == s[2] && s[2] == s[0])
return true;
else if (s[4] == s[5] && s[5] == s[3])
return true;
else if (s[7] == s[8] && s[8] == s[6])
return true;
... |
f49e0d467ded480ae09db7e44628f8c0d1ce93c5 | 51c1c5e9b8489ef8afa029b162aaf4c8f8bda7fc | /template/src/easytemplate/main.cpp | 738c8cca1e6e9b84b028fdcc315af6689015c4ef | [
"MIT"
] | permissive | aimoonchen/easyeditor | 3e5c77f0173a40a802fd73d7b741c064095d83e6 | 9dabdbfb8ad7b00c992d997d6662752130d5a02d | refs/heads/master | 2021-04-26T23:06:27.016240 | 2018-02-12T02:28:50 | 2018-02-12T02:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | cpp | main.cpp | #include "main.h"
#include "Task.h"
#include <ee/Frame.h>
#include <ee/SymbolFile.h>
#include <sprite2/SymType.h>
#include <easytemplate.h>
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
ee::Frame* frame = new ee::Frame("EasyTemplate", ee::SymbolFile::Instance()->Tag(s2::SYM_DUMMY));
etemplate::Task* task = new ete... |
7aa5406ad54e582fb86c686dab87244bf42d38d3 | 135392cba4780a5d7da726b56e871ab6edc5c01b | /abstracttgfile.cpp | 0ebecbd27e883f2f9d1f3459842b6074693a5fe7 | [] | no_license | johnsonliu999/TG_Video_Player | 1d550372d906713d08aa96e7d4ca27c58ac5e84b | df7789accdbf9719ecbb69a742f8a98942ef33c0 | refs/heads/master | 2021-01-20T20:24:35.228487 | 2016-08-10T08:36:17 | 2016-08-10T08:36:17 | 65,304,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67 | cpp | abstracttgfile.cpp | #include "abstracttgfile.h"
AbstractTGFile::AbstractTGFile()
{
}
|
e1171633af3ceaf18ce4f9bf61396309ec96d4f8 | b25406dbbc44ac4febd447cefe7279fadf2b5756 | /Unity/ShoesAppUnity/Classes/Native/Il2CppGenericMethodTable.cpp | ba6da7c97609e2a49e01225b12e02a1bca166202 | [] | no_license | sunrisemoment/unity-ios-demo | e8c805f94ce8d0b5b4d00c676a9c25d4c1dc2997 | 0db4dbbdd79a73854c674c2bf9c615af1aecd5e1 | refs/heads/master | 2021-01-15T19:52:19.327510 | 2017-08-09T20:33:24 | 2017-08-09T20:33:24 | 99,830,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530,769 | cpp | Il2CppGenericMethodTable.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
extern const Il2CppGenericMethodFunc... |
66871a59257f09e2e8456e21e84e975c657396d7 | d742d51a52c8225fadad9ecffc4c0fc81adb0e1f | /lab7_3.cpp | cae93d16a3ac32562859620d538347ef2f33c2ea | [] | no_license | cpe102/lab7-2562-2-arclxngth | e247518cacc7dff0d1284038609abf629102408a | 4337d702ad45451447fbc6082d83da75c20fbd71 | refs/heads/master | 2022-03-30T04:35:24.906109 | 2020-01-21T08:43:42 | 2020-01-21T08:43:42 | 235,280,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 956 | cpp | lab7_3.cpp | #include <iostream>
using namespace std;
int main(){
int age,height,asset;
cout<<"Please enter age : ";
cin>>age;
if(age < 20){
cout<<"Please in put height : ";
cin>>height;
if(height < 160)
cout<<"status = UNFRIEND";
else if(height <170)
... |
af0c51475ae4cdbdba5539a41c9252fab34d8ed7 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir7942/dir8062/dir8063/dir12766/dir12767/dir13029/dir13714/dir14099/file14457.cpp | e5b423fcb8c5e097cccd4bc0a341a6ae18f1c76a | [] | 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 | file14457.cpp | #ifndef file14457
#error "macro file14457 must be defined"
#endif
static const char* file14457String = "file14457"; |
f258f4f62bac90aeeaa9ec242dcb8d1f147583be | 84db4fc9e22d28cd532abd04682a28c1833f0590 | /src/measurements.h | 2c37ab054850f1e8f4e0e3f4c249c8abf823f0da | [] | no_license | scttnlsn/pack-monitor | 58c70cc4c9a0691225735704a44d25de144b2252 | c5dddb4dfc1c2dd240d0f0fbe601d459857a216b | refs/heads/master | 2023-03-03T12:30:53.785413 | 2018-10-10T21:53:16 | 2018-10-10T21:53:16 | 134,485,428 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 949 | h | measurements.h | #ifndef __MEASUREMENTS_H__
#define __MEASUREMENTS_H__
#include <stdint.h>
#include "adc.h"
#include "cell_monitors.h"
#include "config.h"
class Measurements {
public:
Measurements(CellMonitors *cell_monitors, Adc *adc);
bool update();
void zero_current();
uint16_t cell_voltage(uint8_t index);
uint16_t pack... |
8b0306b26ea2977b72263ef4691892675f4c53c3 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/old_hunk_3557.cpp | 51a196518f5ee651390d069feae106d773844437 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | old_hunk_3557.cpp | return 1;
}
int main(int argc, char **argv)
{
if (argc == 3 && !strcmp(argv[1], "normalize_path_copy")) {
|
cf72e40d4cb794cc903c8edd0410c76b149cb84a | a83bdb9c18a6f2ce64f51ff1d8e93fc68738ae3f | /Riddhi Dutta DP sheet/1D/34-C_Jon_Snow_and_his_Favourite_Number.cpp | 18038f7b15b525ac616406e057f887d5dabd4c16 | [] | no_license | ariesha-1702/DSA-450 | 386674ea67823974667bd935b296a3b4779aac90 | fd1e01b5f24acc61e759f04cdfbf13034b60c21d | refs/heads/master | 2023-08-19T10:31:44.446132 | 2021-10-05T16:12:34 | 2021-10-05T16:12:34 | 326,902,934 | 3 | 0 | null | 2021-10-05T16:12:35 | 2021-01-05T06:04:49 | C++ | UTF-8 | C++ | false | false | 817 | cpp | 34-C_Jon_Snow_and_his_Favourite_Number.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define sync ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define CASE ll int t; cin>>t; while(t--)
int main() {
sync
ll int n,k,x,a,f=1; cin>>n>>k>>x;
multiset<ll int> m,m1;
for(ll... |
f5aa222191e4ea2d31b80ca3fed867b87598f42b | cf44763d6ca652223c26bae9140f894f2c81e8b0 | /src/geo/Scene.cpp | 0bd626f1e08af301a95062698bdeb1fc95a6ca1c | [] | no_license | pontifechs/SpikeFX | 4ebed005fde33b1906a51707f43e3698520717e2 | 38f6471f9fd450b86831e29648bc369f80a81306 | refs/heads/master | 2020-05-12T16:42:50.957305 | 2012-10-10T02:42:43 | 2012-10-10T02:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,757 | cpp | Scene.cpp |
#ifdef __APPLE__
#include <GLUT/glut.h>
#include <GLUI/glui.h>
#else
#include <GL/glut.h>
#include <GL/glui.h>
#endif
#include "geo/Scene.hpp"
#include "geo/Sphere.hpp"
#include "geo/Quad.hpp"
Scene::Scene()
: m_shadow_mode(NONE)
{
}
Scene::Scene(Vector eye, Vector look, Vector up)
: m_eye(eye), m_lo... |
279bf62c08ebbcf2e6d401586f7f65e2bae2e24c | 58d966594cc26eea62375ca3e1a93df39765babc | /Tests/Vector3Test.cpp | bb76f8d0a9dcf05b73e2d9264cd97a8f48dec33c | [] | no_license | phruncy/GraphicsUtilities | 60e0fff18c4fa743b82e88505860b9ee2795e211 | c56708a8894a4a31787aa87fadf7fa23c49a5178 | refs/heads/main | 2023-06-13T07:20:39.563367 | 2021-07-05T18:51:06 | 2021-07-05T18:51:06 | 382,865,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,517 | cpp | Vector3Test.cpp | // I could get this to work with the help of the official guide:
// https://google.github.io/googletest/advanced.html, section 'Typed tests'
//
#include <gtest/gtest.h>
#include <Vector3.h>
#include <list>
const static double DELTA = 0.00001;
template <typename T>
class Vector3Test : public ::testing::Test
{
pub... |
afdcf628b471259ca2e2f6241ab946198bd6517d | 72d90e528c748d5b684eae74bf0e3aa4284f8d17 | /MathModel/src/Player.cpp | 665a105400f185e6446abceaa35f50c37934c2fc | [] | no_license | Jinouwen/FAL | 43d99a761600705e02104018c82a043bdf89d9cf | e7b6edfcf0e4ea657b978b45d3f4d81512153ef4 | refs/heads/master | 2020-03-28T06:33:50.501102 | 2018-10-30T15:53:10 | 2018-10-30T15:53:10 | 147,844,338 | 2 | 2 | null | null | null | null | WINDOWS-1258 | C++ | false | false | 7,865 | cpp | Player.cpp | #include "Player.h"
Player::Player()
{
cardsNum = 0;
//ctor
}
Player::~Player()
{
//dtor
}
std::string Player::to_string(int x)
{
std::stringstream ss;
ss<<x;
std::string ans;
ans=ss.str();
return ans;
}
bool Player::addCard(unsigned int id)
{
Card temp(id);
if(cards.find(tem... |
778b2bb99f565212b554cc102148f2741da75cdf | 164435576ed3e2e9a77a7e8afc3c3359b8ff8801 | /URI/1024 Encryption.cpp | dccaeefac7a7d24eadd86ac93edfd5bb5fb3e694 | [] | no_license | mostasimbillah/Programming-Contest | 3debd5ef4075b5f77713e35c48a096fffcecbd9c | 7cdcd516ae5e032c89d42967d8d62370cd7b1b69 | refs/heads/master | 2020-04-16T02:25:54.803337 | 2017-03-24T17:31:59 | 2017-03-24T17:31:59 | 56,076,731 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 888 | cpp | 1024 Encryption.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
getchar();
while(t--)
{
string s;
getline(cin,s);
//---1st Part--
int l=s.length();
for(int i=0;i<l;i++)
{
if((s[i]>=65 && s[i]<=90)||s[i]>=97 && s[i]<=122)
... |
93e743e7ec34f5e53590e95650d91bfecd09c6a9 | eef5b8050802ea8fc2d8717379eac9e72637e202 | /PanaEngine/fm_render/nv_images.cpp | e25e91e7dd5fc908ca504261dcfbef3f80cf0d1c | [] | no_license | abcdls0905/PanaEngine | 0b06e649979559a59c84997ae79403a36c22c08e | 12eb3081aab93271e6de62ddde499c5a7328a7f2 | refs/heads/master | 2020-07-16T23:00:31.163752 | 2019-09-26T15:56:40 | 2019-09-26T15:56:40 | 205,886,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,620 | cpp | nv_images.cpp |
#include "nv_hhdds.h"
#ifdef RENDER_ES_3_0
#include <GLES3/gl3.h>
#else
#include <GLES2/gl2.h>
#endif
static int LoadTextureFromDDSData(GLenum target, NvS32 startLevel, const NVHHDDSImage *pImage, NvBool useMipmaps )
{
NvS32 w, h, level, m;
NvS32 powerOfTwo, mipLevelsToLoad, maxLevel;
GLenum baseTarget =... |
33923f12dc8614c4b4ea0a5736a111fb4c5f313a | 0a1a049c4d34ffe035604e1a4bcbb359f6f5421a | /Advanced_Computer_Architecture/Simulator_V2/src/fetch.hpp | fbf17f05a189df0a048bf4d9796bdae8f6a7e2d8 | [] | no_license | cm16161/Fourth_Year | 7cbec1ff1b906680f26e93a219750fef1e242efd | 30821fdf77edf8d434ca2f176665e87eeb60f3fe | refs/heads/master | 2022-04-02T01:06:58.562514 | 2020-02-03T14:19:15 | 2020-02-03T14:19:15 | 211,876,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | hpp | fetch.hpp | #include <algorithm>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
class Fetch
{
//Fetch(){};
public:
static Fetch &getInstance();
Fetch(){};
vector<string> getInstruction(string line);... |
0b7d32650d5e0fa168a1aec04f892d86e9af4f75 | dd14056c9d31e543cab0599b7142cefad618f551 | /frmcontactos.cpp | 7f510951c9b2e64ba26bd2bb790b87b65941159c | [] | no_license | lincolningaroca/block_notas | df268d9f67899d64ee47d22b8d0b0329067eebae | 0b2247ece2589506f262ffa6c73bc947f18cf2ab | refs/heads/master | 2022-07-27T07:23:01.532433 | 2020-05-21T20:17:37 | 2020-05-21T20:17:37 | 265,775,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,172 | cpp | frmcontactos.cpp | #include "frmcontactos.h"
#include "ui_frmcontactos.h"
#include <QMessageBox>
#include <QIntValidator>
#include <QDebug>
frmContactos::frmContactos(QWidget *parent) :
QMainWindow(parent), ui(new Ui::frmContactos){
ui->setupUi(this);
db=new database();
mwindows=qobject_cast<MainWindow *>(parent);
nuevaCate... |
9e6f08dd3c42b508114fd87baf6e27db8afd4f36 | de30192cbec5a6579d0f383d8c6f252cbbc07f71 | /Assignment2.2/audiobook.cpp | 8dcd1bdc5a8aa95150ba63ebf92e7a6ec7ad538b | [] | no_license | aybrahbrah/Comp-Sci-162---CPP | c139dfad8a48e474e0d2a3facd628970e319574d | 49d1924e6e01582ccdf502681ae611debcbcbbed | refs/heads/master | 2021-01-18T12:28:42.576974 | 2015-08-29T21:27:21 | 2015-08-29T21:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,913 | cpp | audiobook.cpp | /*********************************************************************
** Program Filename: audiobook.cpp
** Author: Andrew M. Calhoun
** Date: 7/8/2015
** Description: Audiobook Source File, informs class members and data.
Sub-class of item class.
** Input: Book Header File.
** Outut: N/A
***********************... |
bd44a1a3b4b25d2b12dd7c18a73de013d2579067 | 18abe58b8685c7e45f73fa20cd5cbb52b2b7a698 | /Applications/Legacy/gcolon/bvolume.cc | 419d5ca58f1d6245203f03fa60a5b174bda13931 | [
"BSD-3-Clause"
] | permissive | clwyatt/CTC | 011fd56eeb7a9744505324a8d78cfab93aad8867 | 284d52dc888bcd997214804715fe690149e33f85 | refs/heads/master | 2021-01-23T07:21:21.294533 | 2009-04-07T10:11:48 | 2009-04-07T10:11:48 | 8,322,828 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,924 | cc | bvolume.cc | // File: bvolume.cc
// Created: 7/10/96 by: Chris L. Wyatt
// Modified: 07/28/98 from imageclass.cc to use only binary class
//
//
#include "bvolume.h"
#include "itkImage.h"
#include "itkImportImageFilter.h"
#include "itkImageFileWriter.h"
using namespace std;
//*********************... |
5716808084eadfab21efc923e42b70a96ff6f97c | 93f635bbef282f8dcfbbfa682aec2c206e68f7b7 | /beginner_level_and_uva/isalpha.cpp | 65c09ed7ffa804b8138b962be4c5e72f5d3fd973 | [] | no_license | Alimurrazi/Programming | 6ba828ea15e640f70311fab33cce1a6e9190db45 | cd4354616596d6c7865f4ccd835b1c0712f41c45 | refs/heads/master | 2023-08-01T14:23:31.342302 | 2021-09-14T03:53:50 | 2021-09-14T03:53:50 | 107,748,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | isalpha.cpp | #include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
char c='a';
if(isalpha(c))
printf("k");
}
|
353c056aa8fe1c31bd9aa89dafb43af73ba30803 | b5e9583f4c8ab189f0e95a11afd0829d8aaf1b5a | /Graph Algos - BCCs (block-cut tree).cpp | d1a716728f3362976ec59cc4839ea64cfc32ecc5 | [] | no_license | verngutz/cp-library | 1cf9a49d827b6224f1838630f538aad5f5974010 | 69986ef2741b15cea7e023f5e3cbc696c9827385 | refs/heads/master | 2022-09-14T13:02:59.296297 | 2022-07-22T23:52:55 | 2022-07-22T23:52:55 | 158,913,144 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | Graph Algos - BCCs (block-cut tree).cpp | #include <bits/stdc++.h>
#include "Graph Algos - BCCs.cpp"
using namespace std;
template <bool Index> tuple<vector<int>, vector<int>, graph<0, edge, Index>> build_block_cut_tree(graph<0, edge, Index>& g,
const vector<int>& cut_node, const vector<vector<int>>& bccs) {
int n_cut_nodes = count(cut_node.begin(), cut_no... |
3da43813c48fa990b7769a6e363ea77c90e9c73f | e05493d032b04fda54d9eccaa10be169524fe7d6 | /DrawPixel.cpp | 43e336b3fc9b8b7341a3d4aa1e31d65e3c3a9614 | [] | no_license | mtytheone/Learning-DXLiblary-Standard | c9a1fdb0de27f18457c31f737cf5823a26c277ba | e32ac4d34d9656eb0fb8fa6fb6ef1ea7f84fb6bf | refs/heads/master | 2022-05-24T09:16:40.660838 | 2020-04-30T12:58:12 | 2020-04-30T12:58:12 | 260,211,437 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 10,865 | cpp | DrawPixel.cpp | #include <DxLib.h>
#include <stdio.h>
//画像を表示する
/*
int handle; //ハンドル用変数
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
#pragma region Initialize
ChangeWindowMode(true); //非全画面に設定
SetGraphMode(640, 480, 32); //画面サイズ指定(x, y, ColorDepth, Frame=60)
SetOutApplicat... |
b10eb3dec6dad8201ef63563e86a81b0b78208c3 | 516b78edbad95d6fb76b6a51c5353eaeb81b56d6 | /engine/src/modules/mesh/meshrenderer/meshRenderer.h | fdf1e24f397498e44cf121fab7d4a6a83fc5b945 | [] | no_license | BackupTheBerlios/lutaprakct | 73d9fb2898e0a1a019d8ea7870774dd68778793e | fee62fa093fa560e51a26598619b97926ea9cb6b | refs/heads/master | 2021-01-18T14:05:20.313781 | 2008-06-16T21:51:13 | 2008-06-16T21:51:13 | 40,252,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | h | meshRenderer.h | #ifndef MESHRENDERER_H_
#define MESHRENDERER_H_
#include "../meshData.h"
/*mesh renderer ? uma interface pro tipo de renderer, que pode variar
* de acordo com o tipo de modelo e como ele vai ser desenhado
* pelo opengl
* */
enum {
MD2RENDERER = 1,
OBJRENDERER = 2
};
class MeshRenderer{
public:
MeshRendere... |
8a7956e8cdf2ec772bfea405c88635131484e186 | cfb2b0e790ef985ead71f926bc6753be52c7f4e0 | /T3Dlg.h | 318ce7a93128f9be08bcdf3d4358a3b0b7ec1d6d | [] | no_license | donghoone/janggiai | e580ba4238ef384348085efeeaa31014451e7f48 | cee0e3f9a23e1c99a83d5953f59d4013a04b0033 | refs/heads/master | 2020-05-24T20:04:03.704904 | 2019-05-19T08:01:18 | 2019-05-19T08:01:18 | 187,448,662 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,355 | h | T3Dlg.h | #pragma once
#include "janggiai.h"
#define MAX_COUNT 15
#define MAX_X_COUNT 9
#define MAX_Y_COUNT 10
extern int janggi[MAX_Y_COUNT][MAX_X_COUNT] ;
// CT3Dlg 대화 상자
class CT3Dlg : public CDialogEx
{
// 생성입니다.
private:
CImage unit[MAX_COUNT];
char unit_value[MAX_COUNT];
char attack = 1;
int used = 0;
CImage m_png... |
93d1164370aeed3e2fc8085c118c3e1bf45bb8c6 | fc640bd56041c1167999d9324c266b7fe4f3f4b5 | /chatevent.cpp | d292b06f80e0910762c228f58b3f0af333c19426 | [] | no_license | wouterlanduit/deskShare | 4fe481ff4927d014beffcb6dbfdbb50e18133c9b | 8a6fd17d7e11735b39ff9edc07153e6c927f9810 | refs/heads/master | 2020-07-07T02:21:52.936670 | 2016-12-04T09:34:07 | 2016-12-04T09:34:07 | 66,778,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | chatevent.cpp | #include "chatevent.h"
#include "event.h"
#include <QDebug>
QDataStream& ChatEvent::doprint(QDataStream& out) const{
qint32 type = (qint32) this->type;
out << type << this->mess;
qDebug("LOG:\tdoPrint() (ChatEvent)");
return out;
}
QDataStream& ChatEvent::getInput(QDataStream& in){
/*qint32 typ... |
adcb96b324747d5c2139f6941589efbd0241da02 | 348435b79c74d45b9bcb477d62ed6148e5c833d7 | /server/network_connection_server.h | fc6a8c261466a3e3ca98e095e3e85553aa0e2ca2 | [] | no_license | dmbldr/infotecs | d2c324c09dd0bdd3dbe37e3de6413f93478fe9da | e1086bd26673430a18e75645fb615c10883faf6d | refs/heads/master | 2023-03-03T17:22:54.309889 | 2021-02-16T06:39:44 | 2021-02-16T06:39:44 | 335,987,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 722 | h | network_connection_server.h | #pragma once
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string>
class network_exception : public std::exception {
public:
explicit network_exception(std::string error) : _error(std::move(error)) {}
const char* what() const noex... |
1f188f8f2e28c72736eae499c131eae30532b1a8 | e6c8458ff4ee116ea8361fd565f0a3ac053eca6c | /CS-object-oriented-programming/C++HomeWorks/weekTwo/AssignmentTwo/Worker.h | 4c37320a484bbd455b2ceba7cece9ac0541afae0 | [] | no_license | Chris0Cy/CppFiles | 6f93474c6ff2f4b10f9870ede3029a0692013bc9 | 74d21fbccd7d3ced90938bb40e4f54cb924927d7 | refs/heads/master | 2021-05-03T22:26:40.028795 | 2019-04-22T02:49:28 | 2019-04-22T02:49:28 | 120,391,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | h | Worker.h | //includes library
#include <string>
//use standard namespace
using namespace std;
#pragma once
//class worker
class Worker
{
//all public variable
public:
//class constructor
Worker();
//class prototype
void setTitle(string a);
void setSalary(double a);
void printOut();
//class deestructor(not used)
~Work... |
301a6f67d959715362d5583121a332ff6182a199 | 00bc11b60e1088f22b11bafdd9b1e755aa004c12 | /SRC/H/TOOFF.H | e4e66017560455635a1d2bd22601aeac885c80bb | [] | no_license | Almahmudrony/BattleOfBritain | 7a29c28eccfad7c9fb5c4082a6a988bcfe9a3d7a | ab87c6c9490c48912f1f6bf65cc5da97d5e0515b | refs/heads/master | 2022-01-11T16:19:14.153102 | 2015-08-11T22:39:41 | 2015-08-11T22:47:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,785 | h | TOOFF.H | /*
//{{AFX_INCLUDES()
#include "rstatic.h"
#include "rbutton.h"
//}}AFX_INCLUDES
*/
#if !defined(AFX_TOOFF_H__37005B82_9D93_11D3_8ADC_00A0D21BD395__INCLUDED_)
#define AFX_TOOFF_H__37005B82_9D93_11D3_8ADC_00A0D21BD395__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TOOff.h : header file
//
///... |
c823d306d9be9db4de9a49fbd97ae75e9ab8ca2f | 80a1aa8a528667fd75a7c93a1211e5f030370c9b | /YFVMprj/src/TypeSys/InstGnrc.h | 8377ca41c43f13a45af31731a43f29aec88c53b0 | [] | no_license | nklofy/YFVM | 7102e3f9698a1e75651d67780644cf56c37dbff1 | 5f236f015b5005da9c2075d21dfd3c52a2dc1384 | refs/heads/master | 2020-07-15T00:19:35.416941 | 2017-03-10T15:42:17 | 2017-03-10T15:42:17 | 73,872,602 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | h | InstGnrc.h | /*
* RGnrc.h
*
* Created on: Feb 1, 2017
* Author: luyunfei
*/
#ifndef SRC_TYPESYS_INSTGNRC_H_
#define SRC_TYPESYS_INSTGNRC_H_
#include "InstVar.h"
class InstGnrc: public InstVar {
public:
InstGnrc();
virtual ~InstGnrc();
};
#endif /* SRC_TYPESYS_INSTGNRC_H_ */
|
b492761720eaadbb564bd3a01985a27a76b2595f | 16548f6e0928ab4c6f830e22108ab543f3ae2389 | /inf/inf.cpp | 3934e9e90ebe59d0ea6fd414d2fe3fc8397e67b5 | [
"MIT"
] | permissive | borislavkalaydjiev/inf | 56d7ff84be0ec96dc8511bd5581db1effce14575 | 7ff41282950aa45038f3b5f21a7808cc07285a6b | refs/heads/main | 2023-03-05T11:44:36.846113 | 2021-02-23T18:40:57 | 2021-02-23T18:40:57 | 341,541,026 | 0 | 0 | MIT | 2021-02-23T18:38:48 | 2021-02-23T12:03:05 | C++ | UTF-8 | C++ | false | false | 2,431 | cpp | inf.cpp | // inf.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <iostream>
#include <vector>
#include <algorithm> // std::sort
#include <tuple>
#include <iomanip> // std:setprecision
#include ... |
3b1ac1257c41177df68a4ac63b289ae3c832a01b | 333eb2174377678ec03537349893ca47eeea5893 | /made_algo_hw6_task12/made_algo_hw6_task12.cpp | 22a7c8abb172ddfd675790ed5b00dffb424abdb7 | [] | no_license | Antimortine/made_2019_algo | 2f48a0ff4f27fa269c1bd1bc9a2d106e04e4bd7a | e17f4d855b024dc7955a4783090789b293426861 | refs/heads/master | 2022-04-01T07:08:08.242928 | 2022-03-09T11:49:38 | 2022-03-09T11:49:38 | 222,093,606 | 0 | 0 | null | 2022-03-09T11:49:39 | 2019-11-16T12:06:59 | C++ | UTF-8 | C++ | false | false | 5,349 | cpp | made_algo_hw6_task12.cpp | // Мосты.
// Ребро неориентированного графа называется мостом, если удаление этого ребра из графа увеличивает число компонент связности.
// Дан неориентированный граф, требуется найти в нем все мосты.
#include <fstream>
#include <vector>
#include <unordered_set>
#include <algorithm>
#include <stack>
struct edge_hash... |
93d2a3ab00e43eea3f04bae1985e3ecdaf231cd8 | 9f50469bc78c5cb99c2b44e8e13cd4def5b73766 | /piscine/piscine_cpp_d09/ex00/Character.hh | bfd52e92f57d9666c3d227913190aef08fbcdd37 | [] | no_license | Bishopx/Epitech-tek2 | a724e2043c487b1338ed2328d9219ac169d33a75 | c28199f008b0f570eff08fed6bde190728686432 | refs/heads/master | 2020-03-18T09:23:26.301519 | 2017-01-28T00:00:49 | 2017-01-28T00:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | hh | Character.hh | #ifndef _CHARACTER_H_
#define _CHARACTER_H_
#include <iostream>
#include <string>
class Character {
protected:
std::string name;
int level;
int pv;
int power;
int Strength;
int Stamina;
int Agility;
int Intelligence;
int Spirit;
public:
enum AttackRange {
CLOSE,
RANGE
};
... |
da52e1cb2255da8e2efb54946346aceeb699daa0 | 0bb9f249a68de41865cd7e6e4cdd9fcebbd881f4 | /configuracionHC_05.ino | bfb157c7aee3cb6cade71598618990e049b5b415 | [] | no_license | luissancar/configuracionHC_05 | d60f0aa679f78bc89c1e3848487dd6bc7f72fc63 | 37b4b6499c6812169001feb6ac483c6bad5f1e35 | refs/heads/master | 2021-01-13T04:45:48.565360 | 2017-02-14T11:24:05 | 2017-02-14T11:24:05 | 79,049,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,932 | ino | configuracionHC_05.ino | // configuracion bluetoothHC-05, (con pulsador)
const int LED=13;
const int BTPWR=12;
char nombreBT[10]="Ardu01";
char pin[5]="1234";
char velocidad='4'; //9600
char modo='0';// 0 escl. 1 maest
void setup() {
pinMode(LED,OUTPUT);
pinMode(BTPWR,OUTPUT);
Serial.begin(38400); // Velocidad configuración
... |
53a6188a3d4b521132ab32556b9071575d4edd31 | d639f845dcbaaa37018c37d4aba24010d1a0e86e | /showwidgetui.cpp | 574a03acde297eb33b79b746c53a867224eeebe5 | [] | no_license | liufeng5460/GuiCrptoSoftware | 4b0fc8cd268b3de9e10a62f61338ea8af404f0ff | c182a110097201caa9e265f4a2833a57aaded7f7 | refs/heads/master | 2021-01-23T04:33:47.406265 | 2017-03-26T05:50:19 | 2017-03-26T05:50:19 | 86,209,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,160 | cpp | showwidgetui.cpp | #include "showwidgetui.h"
#include "fileoperation.h"
#include "myrsa.h"
#include <QFile>
#include <QFileDialog>
#include <QHBoxLayout>
#include <QStack>
#include <QString>
#include <QStringList>
#include <QCoreApplication>
#include <QMessageBox>
#include <QLabel>
#include <QTextCodec>
#include <QTextStream>
#include <s... |
15f4be8d3e3d6a7b4e988efe7799708c10f66067 | 31ac07ecd9225639bee0d08d00f037bd511e9552 | /externals/OCCTLib/inc/Aspect_TypeOfTriedronPosition.hxx | eec3d14d8a3aa9a4ce5980fb2aa6d25632e4b676 | [] | 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 | 1,230 | hxx | Aspect_TypeOfTriedronPosition.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 _Aspect_TypeOfTriedronPosition_HeaderFile
#... |
7f98611ba3e31fe1a481f0b9d08c388fe17b9fdc | 629dfa2c2226c5d4a3f0886db9e52191bdab5df5 | /ywm/final_lab/3/mylist.h | b7bf0dfcbe3ade2409411ecf247e1da25873dd0d | [] | no_license | cheng33c/Algorithm-Past | e370551a2fc5213e97ab04eff3f6a45d775a64d1 | 9c1e247d9500b58578ee2b67776960e15220e124 | refs/heads/master | 2021-06-23T20:41:00.083950 | 2017-08-03T17:23:09 | 2017-08-03T17:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,021 | h | mylist.h | namespace __mylist__ {
template <typename Object>
class MyList
{
private:
struct Node
{
Object data;
Node *prev;
Node *next;
Node( const Object & d = Object(), Node *p = nullptr, Node *n = nullptr )
: data( d ), prev( p... |
480ebe41a3440f9d8df51690def069153f9c4da7 | 7f18180685eb683cc46edd9ad73306a365e501cd | /Romulus/Source/Math/Intersections.cpp | ea9f3b4bb80d6358199bb58afba1eb80fa10ff54 | [] | no_license | jfhamlin/perry | fab62ace7d80cb4d661c26b901263d4ad56b0ac2 | 2ff74d5c71c254b8857f1d7fac8499eee56ea5ab | refs/heads/master | 2021-09-05T04:15:57.545952 | 2018-01-24T04:35:29 | 2018-01-24T04:35:29 | 118,711,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | cpp | Intersections.cpp | #include "Math/Intersections.h"
#include <cmath>
namespace romulus
{
namespace math
{
bool Intersects(const AxisAlignedBox& aab,
const Vector3& v0, const Vector3& v1, const Vector3& v2)
{
if (aab.Contains(v0) || aab.Contains(v1) || aab.Contains(v2))
return true;
real_t t;
Ray r(v0... |
82c171a033bac568926febf3e13958bb4c018557 | 24b8aef808a1722b29ee22dc26b2dec0447db427 | /PAT-Advanced/并查集/1107 Social Clusters (30 分)/1107.cpp | f2023a36a92f7d2a9082b5a019b416131ff6efde | [] | no_license | drincs/100-day-plan | 63f080a5328a58cb6f1fe1e97677a13f05d50c45 | ff06270f5d8d53fea3d34d990bb3ff336bb77557 | refs/heads/main | 2023-07-25T10:10:52.797163 | 2021-09-09T10:25:31 | 2021-09-09T10:25:31 | 359,845,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,492 | cpp | 1107.cpp | #include <iostream>
#include <algorithm>
using namespace std;
const int N = 1001;
int father[N];
int hobby[1001] = {0};
int root[1001] = {0};
int findFather(int v)
{
if (v == father[v])
{
return v;
}
else
{
int F = findFather(father[v]);
father[v] = F;
return F;
}... |
1e8d9dd7b9ce3042ac4d9f0c0377d4d4527fb9cc | 6b964321fd16a00b0f79fc8bb222165acd49a43f | /cs165/CS165-A1-Klein-David/problem1/MatrixHelper.h | 8461013e9133805f8d0aafa27145b03407968044 | [] | no_license | dkwired/coursework | f447659485fded8e33a826a35867c01246860175 | 014e5b8f39b84e20d85cd1655c5a5b2267da6433 | refs/heads/master | 2020-03-29T19:52:09.596267 | 2014-04-08T21:12:23 | 2014-04-08T21:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,840 | h | MatrixHelper.h | #ifndef __MATRIXHELPER_H__
#define __MATRIXHELPER_H__
#include <iostream>
#include <fstream>
using namespace std;
class MatrixHelper
{
int m, n;
string **matrix;
string **result;
public:
MatrixHelper(int&, int&);
void Init(int&, int&);
void Fill(string&);
void Transpose();
void Print();
void MapMatri... |
2433b8cef4c73ecce35469fe65e09c74d102e347 | 78790a4b694b6e259e3909a1924728c5699b7324 | /include/neolib/core/intrusive_sort.hpp | ce97414ed3b46aaf4b51725c72a84b641d5637d2 | [] | permissive | i42output/neolib | 32bd38e9e3fe2176f6199c29ef482ad40f9d5370 | 43d73540d6264959c69b2ec107cd54825f2a78c8 | refs/heads/master | 2023-05-26T13:17:56.566343 | 2023-05-21T14:46:20 | 2023-05-21T14:46:20 | 49,837,457 | 41 | 11 | BSD-3-Clause | 2023-09-07T00:02:29 | 2016-01-17T21:55:45 | C++ | UTF-8 | C++ | false | false | 6,228 | hpp | intrusive_sort.hpp | // intrusive_sort.hpp
/*
* Copyright (c) 2018, 2020 Leigh Johnston.
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.