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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e543eb4661f562d5296585029e326d07685a4017 | 7ed1ec5fa6cb4072ef6136a68ef3dcd098967c76 | /Command.cpp | df24c1b14fdb4ef3298728d1fba9094597c63573 | [] | no_license | hamadmarri/ToyShell | 9be91f6fb6f62789ee0e2c59f22fd71b40253683 | d2fd359eb20cd1c497fa97aabe4381651a94fc37 | refs/heads/master | 2020-03-26T12:51:07.431730 | 2018-08-15T22:51:30 | 2018-08-15T22:51:30 | 144,910,575 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505 | cpp | Command.cpp | /*
* Command.cpp
*
* Created on: 2014-10-08
* Author: hamadmarri
*/
#include "Command.h"
void Command::setCommand(string command) {
if (command.find('$') != string::npos) {
this->commandStr = command.substr(0, command.find('$'));
this->commentStr = command.substr(command.find('$'),
command.length(... |
7d5715617cc6573adccbf4c7db7da5c33e11d2a0 | 88ccc31563769d7a71f4617c6cd010ac55d84fcb | /2018 0103 닝겐찾기 알고리즘/ConsoleApplication1/cVector3.h | 22dc1fb67eef97752fd1fd76e7212cf109a0df24 | [] | no_license | Dongeun1206/SGA | ee718f26eb501498b27bf3f79b9f7bf366fb32bf | 6892f5d30317b8e833c6cb97db63e105b1649832 | refs/heads/master | 2021-09-02T22:33:48.322890 | 2018-01-04T00:11:54 | 2018-01-04T00:11:54 | 115,492,529 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 909 | h | cVector3.h | #pragma once
class cVector3
{
public:
float x, y, z;
public:
cVector3();
cVector3(float _x, float _y, float _z);
~cVector3();
cVector3 operator + (CONST cVector3& vec) const;
cVector3 operator - (CONST cVector3& vec) const;
cVector3 operator * (float f) const; //스칼라 곱
bool operator == (CONST cVector3& vec)... |
c2e5df7357b4f0ff02fb513e7a305f0d810e27b8 | 66e24003d641aaf26d0d6d81b9de129de387cc36 | /include/jit/JITExecutionRuntime.h | 0cdb1795e00ad2b63d523161879e4245412da043 | [] | no_license | Emeralddddd/grizzly-prototype | 883716ff5490917a9eea869d8e4d886807a05474 | 2de9c6ec067273bfae9ba826979398cf4009583d | refs/heads/master | 2022-10-28T17:38:22.608890 | 2020-06-13T22:30:45 | 2020-06-13T22:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | h | JITExecutionRuntime.h | #ifndef RUNTIME_JIT_H
#define RUNTIME_JIT_H
#include "api/Query.h"
#include "condition_variable"
#include "mutex"
#include "runtime/JitRuntime.h"
#include <jit/runtime/Variant.hpp>
enum PipelineState { DEFAULT, INSTRUMENTED, OPTIMIZED };
class JITExecutionRuntime : JitRuntime {
public:
JITExecutionRuntime();
voi... |
04679f1bde756637f97d199129b276288ea69562 | c4596aefe498dc1912615cd9b9c92c1438135ed5 | /src/Level1.cc | 67c9801b15230767c50b24d784a03ed8ad550f11 | [] | no_license | Meem0/a5 | 3feb22b3ed8b19eef3cb01a4f33d9b83cfa5323f | 13859cae6bab509777e2b3b91b30d2db6fcf1a8a | refs/heads/master | 2020-04-18T08:15:33.545312 | 2014-12-01T01:16:33 | 2014-12-01T01:16:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | cc | Level1.cc | #include "Level1.h"
#include "Score.h"
#include "LateralSquare.h"
#include "UprightSquare.h"
#include "UnstableSquare.h"
#include "PsychSquare.h"
#include <cstdlib>
bool Level1::checkLevelUp() const {
return _score->getScore() >= _startScore + 300;
}
Square* Level1::generateSquare() {
Square* result = NULL;
Pos ... |
976a6132221a0c45b0f3cb8577044557649ae19d | cea4644f038bab89ad223b4fa03d3da2e565aede | /Euler3D/Solver.h | 0f1fe3160a7b5c507bf771823e10bbe0cac8b224 | [] | no_license | patrick-palmetshofer/Euler3D | ccc736d1c8f32d1d09f136b52396ef55299a94b0 | 4db3c31ed50db38e60cc4c37ac4787fd25e39231 | refs/heads/master | 2022-10-01T05:38:41.512575 | 2020-06-05T07:20:24 | 2020-06-05T07:20:24 | 267,640,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,070 | h | Solver.h | #pragma once
#include "GlobalTypes.h"
#include "Grid.h"
#include "TimeStepper.h"
#include "Fluid.h"
#include "Solution.h"
#include "Boundary.h"
#include <memory>
class Solver
{
private:
std::unique_ptr<Grid> grid;
std::unique_ptr<TimeStepper> stepper;
std::unique_ptr<Reconstruct> reconstruct;
std::unique_ptr<Flui... |
4c458a48c3dc66088beb8f8bf2ae013b724e65cd | a850ee95044e4178bcbf6fc32b0c4baeb6ab7a59 | /RSA_Server/room.cpp | 88d48245f016506e2fa4b3d16621c230bbb5c904 | [] | no_license | thehugh100/RSA_Server | 1da276fa4465cb2c2d3d0e3f4922128b8a51a63d | 1bd2429fb96d65bb09a4cbdf3372b86ccb037086 | refs/heads/master | 2023-03-01T23:10:12.645152 | 2021-02-09T23:33:24 | 2021-02-09T23:33:24 | 334,467,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,498 | cpp | room.cpp | #include "room.h"
#include "session.h"
#include "Base64.h"
#include <boost/filesystem.hpp>
Room::Room(std::string name)
:name(name)
{
std::cout << "Created Room: " << name << std::endl;
}
std::string Room::getName()
{
return name;
}
std::string Room::getNameB64()
{
return macaron::Base64::Encode(name);
}
void R... |
e175ac708339d3237e092ba255e4395876eee793 | 35f1385993ba248b8dba5efe6509f21d8204ea0f | /src/client/scenes/IScene.hpp | 5cde3fd807e356ad5e6f4115c0d8446129fdc473 | [] | no_license | Fyloup/r-type | 52e4ede73f76a15dde83e39bf6352d1fbb518be3 | 7b9bb364479b4cb6fa360507bd28ac467376cd55 | refs/heads/master | 2020-12-06T05:45:06.752067 | 2020-01-07T16:17:38 | 2020-01-07T16:17:38 | 232,362,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | hpp | IScene.hpp | /*
** EPITECH PROJECT, 2022
** r-type_client
** File description:
** Interface for all scenes,
*/
#ifndef R_TYPE_CLIENT_ISCENE_HPP
#define R_TYPE_CLIENT_ISCENE_HPP
#include "SFML.hpp"
namespace rtype {
class IScene {
public:
virtual ~IScene() = default;
virtual rtype::action getEvent() const... |
2457e911fee736055ad379b875f6298de3e24bf5 | 79e488c00ee8b619b577c997fc3dc5db6c05b7a5 | /comLib/GMRWLockImp.cpp | 4f1e2fa3dcbba237f8a2c08a142f216a15c3ae6b | [] | no_license | wangweichaogit/exc | 6f64aa117f8f57dba827e371dbf899383c5ad9e9 | 9b62ed1a003f10ee7e74caa2bfcfe8fe960420d8 | refs/heads/master | 2021-01-21T13:03:11.018259 | 2016-06-02T12:01:48 | 2016-06-02T12:01:48 | 52,861,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,897 | cpp | GMRWLockImp.cpp | /******************************************************************************
Module: binlock.cpp
Notices: Copyright (c) 2000 Jeffrey Richter
******************************************************************************/
//#include "stdafx.h"
#include "GMRWLockImp.h"
//////////////////////////////////////... |
3c92e4aeaaa026c88a14044e58e930394b3736cb | 31a098c53403638fb69cace30bfc9d321cd58f0b | /Source.cpp | 43fde436e43032c5a627020a89db51959aa8730b | [] | no_license | blumenkratzz/blum | f7ed84e05efaf74d0e4172dca90fb91329cab9b9 | 9bf66ae1c2e0dbe9b2870f5536b205ecdd0cbe6c | refs/heads/master | 2023-02-15T05:43:49.734883 | 2021-01-07T05:47:17 | 2021-01-07T05:47:17 | 272,359,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16 | cpp | Source.cpp | int gpntb = 113; |
2465aa2b7661d33c063a621693c12e2775dee3a1 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /services/service_manager/tests/lifecycle/app_client.cc | fdb00ed5c36319a628f4f97aa885c2b490470d04 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,110 | cc | app_client.cc | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/service_manager/tests/lifecycle/app_client.h"
#include "base/run_loop.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "services/service_m... |
bc07377cb2d72763d3a452ce3f26befdcfb8dc15 | d6fcbdcdbb452adefbe2868f659fb8e84ac25fe6 | /src/check_venue_spread.h | d7ca690ffe0df2527e59f38a29bb0c22ca67ba1d | [
"MIT"
] | permissive | lulumiffy/blackbird | 49fbcb723da17c865062b00fab939fdda81a734c | 3d92dcc9f0d90083640de8d01f5913108aaa2e08 | refs/heads/master | 2021-09-01T00:47:41.939657 | 2017-12-23T23:05:49 | 2017-12-23T23:05:49 | 113,772,025 | 2 | 0 | null | 2017-12-16T16:28:15 | 2017-12-10T18:10:03 | C++ | UTF-8 | C++ | false | false | 361 | h | check_venue_spread.h | #ifndef CHECK_VENUE_SPREAD_H
#define CHECK_VENUE_SPREAD_H
#include <string>
#include <ctime>
class Bitcoin;
struct VenueSpread;
struct Parameters;
// Checks for entry opportunity between two exchanges
// and returns True if an opporunity is found.
void checkVenueSpread(Bitcoin* btcLong, Bitcoin* btcShort, VenueSp... |
5284a0a750c8fc16d02d83f23c5896acdb3c8faf | 3f69ed3b758a241e4d463ba64f7eb668608d6aea | /GameTemplate/Game/Object/Rotation/RotSelf.h | ec14e7cc042f8bac2673bcc77bbfcf7a3ba99a36 | [] | no_license | komura-athushi/kgEngine | 450c061fff6e0eb981a298662a611a23c676a768 | eaab3c7714b1e40963b32df69db5f762075ecc13 | refs/heads/master | 2021-06-25T11:55:14.689944 | 2020-12-14T02:45:22 | 2020-12-14T02:45:22 | 183,392,600 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,098 | h | RotSelf.h | /*****************************************************************//**
* \file RotSelf.h
* \brief RotSelfクラス
*
* \author komura
* \date November 2020
*********************************************************************/
#pragma once
#include "IRot.h"
/**
* \briefオブジェクトを自転させるクラス.
*/
class RotSelf :public ... |
3192ceef99e64a2b295701bb8a965a3ac1b51486 | df05713bb78cf039445e0c5e207a3d32c2f0e1e4 | /undoTest/Test/customundostack.cpp | c0fe0f99f28618a897b73f0fc58e3ca67e78ee23 | [] | no_license | haipengyu1013/undoDemo | 21ed4bd1cb92c6658af446e5e39e2fbb03f9f3bb | 79e250e78a5c129ce752a1e1ede55781848048ba | refs/heads/main | 2023-06-05T16:15:25.467542 | 2021-06-29T03:38:34 | 2021-06-29T03:38:34 | 381,229,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 580 | cpp | customundostack.cpp | #include "customundostack.h"
#include "addcommand.h"
#include "deletecommand.h"
CustomUndoStack::CustomUndoStack() :
mItemsAdded(0)
{
}
void CustomUndoStack::addItem(QQuickItem *itemParent, QQmlComponent *itemComponent)
{
if (!itemParent || !itemComponent)
return;
QQuickItem *item = qobject_cast... |
f9e00a1f0c673dbab2082c21ffadb0b63b02f428 | f8b046abe51be88e9c158de8844f3f1ed383cdfd | /glpp/src/vertex_array.cpp | 118cd7581c9b78b4729d0e7870a4c5623cf6eed7 | [
"MIT"
] | permissive | jasbok/libshimmer | 71f2265b9b212d98101b73a3f23a8aaedbf73445 | 794b0e27ee8492f46202efebd24dab32a7c5c1da | refs/heads/master | 2021-01-01T17:20:30.680369 | 2018-07-23T23:01:11 | 2018-07-23T23:01:11 | 98,054,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,192 | cpp | vertex_array.cpp | #include "vertex_array.h"
#include "program.h"
using namespace glpp;
using namespace std;
vertex_array::vertex_array()
: _handle ( 0 )
{
glGenVertexArrays ( 1, &_handle );
}
vertex_array::vertex_array( vertex_array&& move )
: _handle ( move._handle )
{
move._handle = 0;
}
vertex_array::~vertex_arra... |
bbefcb3d9f3adb0583a9c3ebccf38475897049d3 | 35bd87c9c6cacda05252f93b4e30400aa59a0e2f | /export/release/windows/obj/src/CamZoomOption.cpp | 3cdf776bd889e90434cb8c9f5ab39e2ac8b280fa | [
"Apache-2.0"
] | permissive | RE4L-CODE/vsZero-KE | 53599f2099a17a9553adb25a7c8771db0a6bc6d4 | 44c126687ecd3caf7cc3af892164be8d520ae97a | refs/heads/main | 2023-09-01T09:58:39.012592 | 2021-11-18T10:24:21 | 2021-11-18T10:24:21 | 429,388,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 5,851 | cpp | CamZoomOption.cpp | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_CamZoomOption
#include <CamZoomOption.h>
#endif
#ifndef INCLUDED_Option
#include <Option.h>
#endif
#ifndef INCLUDED_OptionsMenu
#include <OptionsMenu.h>
#endif
#ifndef INCLUDED_flixel_FlxBasic
#include <flixel/FlxBasic.h>
#endif
#ifndef INCLUDED_flixel_Flx... |
bb8692fbd3e57dceb27b2f390ba9409f6a30b0fd | 333b58a211c39f7142959040c2d60b69e6b20b47 | /Odyssey/SSAPI_Server/ManagedObjects/TableStuffRow.h | 33a02a50f5b62a12a1648eccdca0ae2972c7067e | [] | no_license | JoeAltmaier/Odyssey | d6ef505ade8be3adafa3740f81ed8d03fba3dc1a | 121ea748881526b7787f9106133589c7bd4a9b6d | refs/heads/master | 2020-04-11T08:05:34.474250 | 2015-09-09T20:03:29 | 2015-09-09T20:03:29 | 42,187,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,263 | h | TableStuffRow.h | //************************************************************************
// FILE: TableStuffRow.h
//
// PURPOSE: Defines that object whose instances will be used to
// represent PTS table rows.
//************************************************************************
#ifndef __TABLE_STUFF_ROW_H__
#de... |
4d9c85cad1a31542b84e86f2c02398ecf715abcd | 185a2fdb2728e8cb0e6d8398a72e90cc66a9d10a | /sddrservice/src/main/jni/source/EbNDevice.cpp | a8dabfa58ec6dd6774b2fe66a53fad7ae49fe044 | [] | no_license | tslilyai/android-BluetoothLeGatt | 3d46ab3cb7839728df646c3bcdf487afbd81570b | 208b70b1f8baa7ef055e0b437d2a969d9aa7115f | refs/heads/master | 2021-05-11T14:10:52.144951 | 2018-01-29T13:18:49 | 2018-01-29T13:18:49 | 117,690,575 | 0 | 0 | null | 2018-01-16T14:00:17 | 2018-01-16T14:00:17 | null | UTF-8 | C++ | false | false | 2,774 | cpp | EbNDevice.cpp | #include "EbNDevice.h"
#include "Logger.h"
extern uint64_t sddrStartTimestamp;
using namespace std;
EbNDevice::EbNDevice(DeviceID id, const Address &address)
: id_(id),
address_(address),
adverts_(),
adverts_to_report_(),
advertsMutex_(),
rssiToReport_(),
lastReportTime_(0),
sh... |
e503397743615368bcbc11fb66daef8f6ecc8bd0 | fa11fa3d5cc862075f186033807c49e3fffa601f | /src/KrulProgram.cpp | 1fed956435a694fdfc5f65e76c4303692f4ee3b7 | [] | no_license | jessevdp/krul-interpreter | 4959aef4027ebe8c1b70321369196b61a452d77c | c8695097b70d204d02ab38f2bc186a5f83fd1734 | refs/heads/main | 2023-04-25T02:53:48.192961 | 2021-05-08T16:34:29 | 2021-05-08T16:34:29 | 303,754,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,787 | cpp | KrulProgram.cpp | #include "KrulProgram.h"
#include "interpreter/MapVariableRegistry.h"
#include "interpreter/VectorCallStack.h"
#include "interpreter/VectorStack.h"
#include "parser/DefaultParser.h"
#include "parser/Parser.h"
namespace krul {
using namespace parser;
using namespace interpreter;
interpreter::Result KrulProgram:... |
7f0fd7139a5f41bb11027d582cc9bfb8c347f489 | e1c15a8e8ae78184b09894024db98d946ab20de4 | /Code/Keng/WindowSystem/include/Keng/WindowSystem/IWindow.h | 7e2a4fc955e9e7dbb0bcb2778b98768d8a5a86e1 | [] | no_license | Sunday111/D3D_Samples | d33721a36d2557a2aa4807305253be36afa6b06e | 76851283b9f7950d0080deabae829c1751f9a179 | refs/heads/master | 2021-06-04T22:03:36.288475 | 2020-01-12T01:00:27 | 2020-01-12T01:00:27 | 118,942,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | h | IWindow.h | #pragma once
#include <cstdint>
namespace keng::window_system
{
class IWindowListener;
class IWindow
{
public:
virtual void Subscribe(IWindowListener*) = 0;
virtual void Unsubscribe(IWindowListener*) = 0;
virtual void GetClientSize(size_t* w, size_t* h) = 0;
virtual in... |
a3b938352af1d72941ca7865920e0f44c98eff08 | 6f0f90fbfc12d28b6b8d21b2a41e114b38d5c544 | /player/src/Mesh.cpp | 90504c25f1cff972d494a13cc89b066adc17bb58 | [] | no_license | cha63506/pixelnoir | 6725fe372ffad831c7ae14905c363dfb295e3c1a | 376d85f261b5653c72af54c93ac080eb650cf402 | refs/heads/master | 2018-01-15T17:55:40.117149 | 2011-04-12T08:55:55 | 2011-04-12T08:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,519 | cpp | Mesh.cpp | //Copyright (c) 2010 Heinrich Fink <hf (at) hfink (dot) eu>,
// Thomas Weber <weber (dot) t (at) gmx (dot) at>
//
//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 re... |
7f50fc142b9307179253bd6df435c8ca68d40cb2 | d5490fcb0b49cc8d407a9e2d08e75a32fa99a1f2 | /process.h | 2a72d3f756dfbdc1e2bd7732d9d0497f05a1c0b9 | [] | no_license | Fiona/PixelPicsCPP | 1038de3b4ff435f15bd03a92f6d73bef4716109d | 9eaa2afd01253c7103927e65cd40f7915a2b7bc0 | refs/heads/master | 2022-05-03T03:57:28.414422 | 2014-07-26T15:09:46 | 2014-07-26T15:09:46 | 3,016,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,795 | h | process.h | /****************************
PIXEL PICS
2011/2012 STOMPY BLONDIE GAMES
****************************
Processesss
****************************/
#ifndef _PROCESS_H_
#define _PROCESS_H_
using namespace boost;
#include <vector>
#include <SDL/SDL.h>
#define TEXT_ALIGN_TOP_LEFT 0
#define TEXT_ALIGN_TOP 1
#define T... |
c21b4f723ff6de55d3b483acfc33a520ddddd970 | 3f8d40e1dbd9ff02e0cedb5180d9b3f7f52875a0 | /src/main.cpp | 1c69cb79bf59d8954ceed494ffd6726ae1025a99 | [] | no_license | AndrePim/Blink | a956c2c4400c33beac0890a818d768146c99a787 | 4b3da7f7b5d8330b4351c366f48374814060d301 | refs/heads/master | 2020-04-07T05:48:56.275554 | 2018-11-19T04:07:09 | 2018-11-19T04:07:09 | 158,111,267 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | main.cpp | #include <Arduino.h>
#define LED_PIN 13 // Светодиод подключён к 13 пину
#define BLINK_DELAY 1000 // Задержка 1000 мс
void setup() {
pinMode(LED_PIN, OUTPUT); // Установка режима работы на выход
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Включение светодиода
delay(BLINK_DELAY); // Светодиод горит 1с... |
f01be04318a1b0cfaed738057307aa0715ea6a23 | 812125f1d67ab7cb468a06171fb6ef86c8ef1483 | /test/point.cpp | 98e00e40de6a47c9b8f35489b9b90d2762a224c4 | [] | no_license | sxw106106/cpp-learning | 861e8d67ed29ce0ceac78acb900e4756667adad6 | 7cd2817699e816acd6725137e6f7254b9fcbe1a0 | refs/heads/master | 2021-01-21T06:46:47.779675 | 2014-03-24T16:20:28 | 2014-03-24T16:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | point.cpp | #include <stdio.h>
int main(void)
{
int *pint;
if(!pint)
{
printf("pint is null\n");
}
char *pchar;
if(!pchar)
{
printf("pchar is null\n");
}
char *pchar2=NULL;
pchar2 = NULL;
if(!pchar2)
{
printf("pchar2 is null\n");
}
}
|
b52f44a9e60d03e9825bb3214016cc5718532763 | 9536b0d7fb1ad7b8ac8e9fb770a69c68ca28bb3e | /Maleg/src/Boss.cpp | 44d5c23138823121d32dae8edfccb28b4d24883e | [] | no_license | TrabajoInformatica/Juego_Maleg_Trabajo_Informatica | 46b1061c91b5e17e3b1b0d0bcae502f6eb0dd140 | b373f7fde9c5462f89d38bf5122a27e090444a0f | refs/heads/master | 2022-11-16T09:13:07.146652 | 2020-07-05T17:51:57 | 2020-07-05T17:51:57 | 268,117,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | cpp | Boss.cpp | #include "Boss.h"
#include "ObjetoMovil.h"
Boss::Boss():boss("imagenes/minotauro.png", 9, 5) {
altura = 4.0f;
velocidad = 0;
aceleracion = 0;
}
Boss::~Boss() {
}
void Boss::Mueve(float t) {
ObjetoMovil::Mueve(t);
}
void Boss::Dibuja() {
//Dimensiones del sprite
boss.setCenter(5, 5);
boss.setSize(10, 10);
... |
32176ce79615e88cce5b9c4d9586f947dd8f8e80 | b21fcc8cb47ade1997858e4cc6dcb69473dbef53 | /Matrix/Easy/Sort the Matrix Diagonally.cpp | 166a1f2666f9d70c85dcc18b45693a218ef812dc | [] | no_license | manojxk/GFG-DSA-CheatSheet | a72628dea17d0185e01ab38e6386e1e49726024a | 1583761aadba60c093fe14fb3f1b558986aadaad | refs/heads/main | 2023-07-10T03:17:45.024187 | 2021-08-17T10:57:07 | 2021-08-17T10:57:07 | 391,797,866 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | cpp | Sort the Matrix Diagonally.cpp | // Explanation
// A[i][j] on the same diagonal have same value of i - j
// For each diagonal,
// put its elements together, sort, and set them back.
vector<vector<int>> diagonalSort(vector<vector<int>> &mat)
{
int m = mat.size(), n = mat[0].size();
// all elements on same diagonal have same i-j result.
unor... |
b21ec012abc61dbb7692eb0cdf9671916f90f41a | fd0c132f979ecd77168511c6f4d276c480147e57 | /ios/Classes/Native/AssemblyU2DCSharp_Org_BouncyCastle_Crypto_Prng_Cryp405007133.h | 665b9011dc27f245c30378eb72cb69967aa66f08 | [] | no_license | ping203/gb | 9a4ab562cc6e50145660d2499f860e07a0b6e592 | e1f69a097928c367042192619183d7445de90d85 | refs/heads/master | 2020-04-23T02:29:53.957543 | 2017-02-17T10:33:25 | 2017-02-17T10:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,297 | h | AssemblyU2DCSharp_Org_BouncyCastle_Crypto_Prng_Cryp405007133.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// System.Security.Cryptography.RandomNumberGenerator
struct RandomNumberGenerator_t2510243513;
#include "mscorlib_System_Object2689449295.h"
#ifdef __clang__
#pragma clang diagnost... |
e62fc492ae7f61b033db0b3da57098b3f6b45bdf | 9488e43858db0a0a49d4e75e2a9520770dd3aa11 | /TemplateDeepPractice/2-2_templateClass/classtemplate.hpp | 41306546b5b292b4db1f5f1d8ea461c21034fd50 | [] | no_license | quantity123/CppExamples | 32884c20de5c31f7e57bf16a586ae57f2147fead | e1591a974fc38fbd4c3844a45595e5fd3770027f | refs/heads/master | 2022-11-23T18:16:24.773387 | 2020-07-30T18:51:11 | 2020-07-30T18:51:11 | 283,847,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | hpp | classtemplate.hpp | #ifndef CLASSTEMPLATE_H
#define CLASSTEMPLATE_H
template<typename T0>
class ClassTemplate
{
public:
T0 mV;
template<typename T1>
void set(const T1& v)
{
mV = T0(v);
}
template<typename T1>
const T1 get() const;
};
template<typename T0> template<typename T1>
const T1 ClassTemplate<T... |
29b10ec210d1f83a13fd72cd79ca6c30cf25fd81 | e109ba6a36a9ab8422bcc98dfcf225409285fb20 | /ALICE_PLATFORM/src/userSrc/references_alice/sketch_HEMesh_test.cpp | ad92175d7e882628aad489d4a6f5e395238653fd | [] | no_license | Leo-Bieling/Alice | d636ee07628d43acaa8a7e285af8b3437f44b9c3 | a731ef0cf3793c1280b67f66b90a089ae9a93a79 | refs/heads/master | 2022-03-07T20:09:18.804148 | 2019-11-15T18:56:39 | 2019-11-15T18:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,995 | cpp | sketch_HEMesh_test.cpp | #define _MAIN_
#ifdef _MAIN_
#include "main.h"
#include "ALICE_ROBOT_DLL.h"
using namespace ROBOTICS;
#include <array>
#include <memory>
#include<time.h>
//#include<experimental/generator>
//using namespace std;
//using namespace std::experimental;
using namespace std;
class HalfVert;
class HalfEdge;
class HalfFace;... |
e67148645336bf828729062551ae58ab7d160cf2 | 72b94050c7c4ee1231c93099e277ea5f565e1e77 | /Sender.h | 630360d324882118df36a78e26070c23cb871081 | [
"MIT"
] | permissive | JoseTomasTocino/ClipboardFileTransfer | cab737478f45b897d89247511556e6cf15f10bdd | 8ae7876163f82514197dd95a2e1a5a6fcb3b6cf5 | refs/heads/master | 2022-12-15T09:11:23.377827 | 2020-09-19T00:04:36 | 2020-09-19T00:04:36 | 296,751,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | h | Sender.h | #ifndef SENDER_H
#define SENDER_H
#include <QClipboard>
#include <QFile>
#include <QObject>
#include <QWidget>
#include "State.h"
class Sender : public QObject
{
Q_OBJECT
public:
explicit Sender(QWidget * parent = nullptr);
void start(QWidget * parent);
signals:
void status(const QString & message)... |
9e37eeeb6117a936119dd5cc67274ee817d968e3 | 42ca9829beb02b7d3d820df4c8e642aa17379ae6 | /code/TaskingGameEngineAnimation_2012/SampleComponents/DebugGraphics.cpp | fca7e386ed5250711ae8796b5267550093e7c196 | [] | no_license | pzxbc/job-system-learn | 93b7cd3bd5d55f702a026616e4f58cfa8572dd26 | a03f7e9f46b757323115e89f8fecd7d33e8bdade | refs/heads/master | 2022-12-19T16:33:26.626212 | 2020-10-23T12:53:23 | 2020-10-23T12:53:23 | 306,620,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,038 | cpp | DebugGraphics.cpp | //#include "stdafx.h"
// #include "Particle_common.h"
//#include "D3DX11.h"
//#include "D3D11.h"
// use this macro to silence compiler warning C4100 "unreferenced formal parameter"
#define UNREF_PARAM( param_ ) static_cast<void>( param_ )
#include "DXUT.h"
#include "d3dx11effect.h"
#include "DebugGraphics.h"
#include... |
bcba540beb5709e27ee931f55f0db1fcb336d729 | 4f0757f0c1116d8e3fdcdd4e1938a560fbe83eb8 | /src/Core/BomberGame.cpp | 0dc79f97cd254bf180dd847c82e97795bf73e433 | [] | no_license | jlouazel/bomberman | da07602ba5a64ab363e405c0de1fef8bb89b1aea | 4d59ae333570bef1cd1b03a440e0a5ba4e6f71bd | refs/heads/master | 2016-09-05T17:15:30.311236 | 2013-06-09T21:41:13 | 2013-06-09T21:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,778 | cpp | BomberGame.cpp | #include <iostream>
#include <sstream>
#include "BomberOptions.hh"
#include <ctime>
#include <unistd.h>
#include <fmod.h>
#include <fstream>
#include <Input.hpp>
#include <Clock.hpp>
#include <GameClock.hpp>
#include "EndOfBomberMan.hh"
#include "SoundManager.hh"
#include "Texture3d.hpp"
#include "Texture2d.hpp"
#inclu... |
b12d34d1d459ca293669c09aba2f0770b8b1a8f1 | 46c840dc311a833881b9afebfa0a19de40ed4f2d | /658.cpp | 15f97fbaa187c44792e532152753dcfb96d83358 | [] | no_license | zxth93/leetcode | 9d033c7082ab57dc5d292f36f0a05984d1d642a5 | 72562cb303000b9981f129c51a7e5fce8fcb37b4 | refs/heads/master | 2020-04-17T19:32:35.902221 | 2018-08-19T14:21:20 | 2018-08-19T14:21:20 | 67,509,355 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | cpp | 658.cpp | //
// 658.cpp
// leetcode
//
// Created by R Z on 2017/12/8.
// Copyright © 2017年 R Z. All rights reserved.
//
#include <stdio.h>
#include <vector>
#include <stdlib.h>
using namespace std;
class Solution {
public:
vector<int> findClosestElements(vector<int>& arr, int k, int x) {
int len=arr.size();
... |
7c709d9a36ef5c9601b8c54ad5890c4953957cb7 | ba63886c2366679dbd132a1142bd55cf8870b0bf | /lab_03/implementation/objects/model/model_details/point/point.hpp | f0da1d436465c7ecf20eabdcdcd569e7fc8bc5c7 | [] | no_license | ivaaahn/bmstu-oop | 27d2edf96584ba784e112c7b0b69b2eab00f5f6b | bcbf6d289f782d5104860c60eb99f5206bf3f5d9 | refs/heads/main | 2023-05-13T03:19:35.359648 | 2021-06-08T11:40:47 | 2021-06-08T11:40:47 | 345,132,023 | 4 | 1 | null | 2021-03-12T13:39:46 | 2021-03-06T15:51:04 | null | UTF-8 | C++ | false | false | 1,238 | hpp | point.hpp | //
// Created by ivaaahn on 23.05.2021.
//
#ifndef __LAB_03_POINT_HPP__
#define __LAB_03_POINT_HPP__
class Point {
public:
Point() = default;
~Point() = default;
Point(double x, double y, double z);
Point(const Point &other) = default;
Point &operator=(const Point &other) = default;
Poin... |
08d94d10a33e9ede6ca80ceff3f686131985b1ff | 9968d6d8cf66cd33ca37cae9a7051c1b1c8c1ae8 | /example/picket_fence.cpp | c267a9490c9e8641d32da68d0cc7443ab587ae89 | [] | no_license | Cresspresso/opengl-shadowmap-experiment | b75117e127c1cb5400f2d452d841fe37750e4d54 | ccf2078c20121e6387c07e98f2df0fad595253ad | refs/heads/master | 2023-03-25T16:06:41.642260 | 2021-03-26T00:56:58 | 2021-03-26T00:56:58 | 317,020,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,576 | cpp | picket_fence.cpp |
#include "assets.hpp"
#include "picket_fence.hpp"
namespace example
{
PicketFenceShader::PicketFenceShader()
{
char const* const vertexShader = R"__(
#version 330 core
layout(location = 0) in vec3 inPosition;
layout(location = 1) in vec3 inNormal;
layout(location = 2) in vec2 inTexCoords;
out V2F {
vec3 FragPo... |
be6e59ac4d4950e190e45ec8e7da5f0e163aea64 | 8eb7a4590787900509af3268300c6a3a1bf11b25 | /QT/Server/mytcpclient.h | c407fa96d11a28a8ae19a0b8ee7bfe37c1717782 | [] | no_license | Mikycrazy/pb173-project | f862bf1c8dfe81fd3dac2b80b45f598257e49053 | c3885c935d08fbcdd032072d9be9ad535a653cbe | refs/heads/master | 2021-01-01T06:10:09.375924 | 2015-01-23T16:19:00 | 2015-01-23T16:19:00 | 26,128,372 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,538 | h | mytcpclient.h | #ifndef MYTCPCLIENT_H
#define MYTCPCLIENT_H
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <QtNetwork>
#include <QObject>
#include <QString>
#include <QTcpServer>
#include <QTcpSocket>
using namespace std;
class MyTcpClient : public QObject
{
Q_OBJECT
private:
QTcpSocket* mSocket;
... |
d20fa684c9ca7ca2c38e68896d1ceb4c43316fd8 | f499577c0b8f1365608f223aab3b3f85936088b4 | /OpenCVLibs/MouseEvent.h | afc08098a6378bfc73e196b5e794320238204ed3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | laikuaut/MyLibrarys | eb9b66f8b92291c5e63af99cee0f02f6d670a7e4 | 38420b2205ee3ba3e34d87a7cc56c22f56aef970 | refs/heads/master | 2020-12-28T22:12:24.662331 | 2013-10-20T17:19:14 | 2013-10-20T17:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | MouseEvent.h | #pragma once
#include"..\Core\Core.h"
#include"opencv2\core\core.hpp"
#include"opencv2\highgui\highgui.hpp"
namespace pro{
class PRO_EXPORTS MouseEvent
{
public:
int event,x,y,flag;
public:
MouseEvent(void);
~MouseEvent(void);
virtual void onMouse_impl(int event,int x,int y,int flag) = 0;
static void onMous... |
a87107719768e15081f3cbe469ac8524e88c6cbf | a27e939e7d5db9f4bc6ca9afdc1c2b9f8a3e5c2e | /infra/acceptor.h | e963912ea5fcc527d3ea598b2613d6cf22a67491 | [] | no_license | ecilaz/ecila | 116004a5541913d06e86f4c3c38b66a6ffd58115 | 230e1efcec476c9b09e78094fcea1f50b23b4f12 | refs/heads/master | 2021-01-10T20:26:17.114891 | 2019-11-24T02:22:01 | 2019-11-24T02:22:01 | 223,353,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | h | acceptor.h | #pragma once
#include "node.h"
NS_ECILA_START
class IAcceptor;
class IPacketHandler;
class DECL_SPEC_DLL Acceptor
: public Node
{
public:
Acceptor();
virtual ~Acceptor();
CLASSNAME("Acceptor");
void Initialize(Node *root, IPacketHandler *pkt_handler);
IAcceptor* AcceptorImpl();
private:
IAccep... |
b9425f0b7f9fc1d742f7a2c7af8adb2f1d4f085f | f500e51c5190766d476c00d0ebed2508790f1f62 | /Android/h/adWhirl.h | f975f770049dcee93ac7b8dd61c59434c564ce66 | [] | no_license | primap6/CandyMare | 0d65624d79d8b32aa24258761ff7aa5212723170 | cb19707c88c47c0199fc193213d1e660773c9ad4 | refs/heads/master | 2020-05-16T23:50:50.846773 | 2015-04-29T13:52:07 | 2015-04-29T13:52:07 | 183,379,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,131 | h | adWhirl.h | #ifndef ADWHIRL
#define ADWHIRL
#include "util.h"
//#include "s3eAdWhirl.h"
namespace
{
const char* g_LastMessage;
bool displayAd;
bool availableAd;
int adW;
int adH;
float GetAdScale()
{
// the banners are 320x50 but they may be scaled up depending on the screen size
float adScale = s3eSurfaceGetInt(S... |
91c93372c11c169697e6138c78e8d1baca5e9d97 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/test/FabricTest/TestWatchDog.h | 9bc50ddcef4901472b278428122023a283465554 | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 1,536 | h | TestWatchDog.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Fabric... |
a71d8ef82e17406a6dbb1bdbb06d857050615004 | 999023e04644f071c32319959701169c14e149a3 | /level.cpp | fc839c0686ccd047be34ccfbe097a93c3a7b430d | [
"MIT"
] | permissive | ptbw/32blox | 959d61e9f8a1894d376e73969b9b6dcaa2a19e51 | 3dff98cf836afc51c0b9f64a1de2cd53359f07ec | refs/heads/master | 2022-10-05T00:26:10.346273 | 2020-05-31T20:36:41 | 2020-05-31T20:36:41 | 268,119,114 | 0 | 0 | MIT | 2020-05-30T16:35:18 | 2020-05-30T16:35:18 | null | UTF-8 | C++ | false | false | 3,003 | cpp | level.cpp | /*
* level.cpp - part of 32Blox, a breakout game for the 32blit built to
* explore the API.
*
* Defines the game levels, and maintains the current level state as well.
* Levels are grids of up to 20x20 blocks.
*
* Please note that this is a first attempt at understanding a somewhat fluid
* API on a shiny new bi... |
55f222c0d9d39d1d48fae69b40e55417aa34ec60 | f4dd8e3ab9f82445b0394c7f9874788380150ed1 | /src/contract/processing.cpp | 5031b2e84cbd3bd392c4b2856b3fa7be4f500a43 | [
"MIT"
] | permissive | kugwa/ourcoin | 620a5fcedb3b236d69123435cc4987e3ed310697 | 674fa8ca205efc8102bd23945a33e9319b16d482 | refs/heads/master | 2021-04-06T19:36:13.400872 | 2018-02-05T09:46:03 | 2018-02-05T09:46:03 | 98,856,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,891 | cpp | processing.cpp | #include "contract/processing.h"
#include "util.h"
#include <string>
#include <fstream>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
static fs::path contracts_dir;
const static fs::path &GetContractsDir()
{
if(!contracts_dir.empty()) return contracts_dir;
contracts_d... |
96256e6962afce4923fe4e2050f5550cb7921380 | bd2139703c556050403c10857bde66f688cd9ee6 | /panama-foreign/279/webrev.02/src/hotspot/share/code/compiledMethod.cpp | 3c9787df6e7ee7c3f2da6eb56b2622b08effdc7b | [] | no_license | isabella232/cr-archive | d03427e6fbc708403dd5882d36371e1b660ec1ac | 8a3c9ddcfacb32d1a65d7ca084921478362ec2d1 | refs/heads/master | 2023-02-01T17:33:44.383410 | 2020-12-17T13:47:48 | 2020-12-17T13:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,733 | cpp | compiledMethod.cpp | /*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
c90e6df621701ffc6d69944b863c1520cbf65e34 | 30fee353c5a3c219b5f1c20aef313f3fae07d6cf | /r2_sk_mm/src/events.cpp | c33ae34c47124d98068b184f4b371000d3f4ea8a | [] | no_license | edduby/Symulacja_cyfrowa_Port | 65096ad643aba772d2da9011cc8e55de50cd549f | fd5694d1cdb69c3dd05e33ab5a07a59bcad16101 | refs/heads/master | 2020-03-17T22:31:20.511939 | 2018-05-18T22:43:59 | 2018-05-18T22:43:59 | 134,007,047 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 15,450 | cpp | events.cpp | /********************************************//**
* \file events.cpp
* \brief Time events.
* \author Maciej Maciejewski
* \date 2015-04-15
***********************************************/
#include "sc.h"
using namespace symulacja;
/////////////////////////////////////////////////
///////////////////... |
eec9335883f6f5b342839ea6d02afd4e41cbaeef | b32cd23f4a35f9da6c72ad6b36407e4c8f4c1d98 | /dotarg.hpp | b237c762a63950ec717540eda60ca86948dcbab3 | [] | no_license | justanothercoder/Compiler | 0ea2936c679ca7340217ce636fce603c98293144 | 79a44744be646cf8edfeefff44c28f776889ed6e | refs/heads/master | 2021-03-12T19:59:08.085875 | 2015-03-20T04:39:46 | 2015-03-20T04:39:46 | 18,298,874 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | hpp | dotarg.hpp | #ifndef _DOTARG_HPP_
#define _DOTARG_HPP_
#include <memory>
#include "arg.hpp"
class VarSymbol;
class DotArg : public Arg
{
public:
DotArg(Argument expr, int offset, const VarSymbol* member);
std::string toString() const override;
void gen(const Block& block, CodeObject& code_obj) const override;
... |
7aff7dedf455103bc8a7f17606fb9fe5d86a394c | 8146f410595c1cdf9681dc8ead2f05fa31db4bda | /SnowfallEngine/UIComponent.h | 79cf282427d8b743289445b53945990fadc6841d | [] | no_license | flyhex/Snowfall-New | 39eb825239cf09308dd5386c09929aa418ef8b22 | 85d3ac4b52f6c15c3485ce338dff6a58d7264756 | refs/heads/master | 2022-02-27T20:32:59.277773 | 2019-11-10T23:31:09 | 2019-11-10T23:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,458 | h | UIComponent.h | #pragma once
#include <memory>
#include <string>
#include "UIEvent.h"
#include "UIRect.h"
#include "InputManager.h"
#include "export.h"
class UIContext;
class UIComponent;
class UIRenderer;
class MouseMotionEventArgs
{
public:
glm::vec2 OldPosition;
glm::vec2 NewPosition;
};
class MouseButtonEventArgs
{
public:
... |
eebcd68340586a4a1ae607ddf0501e57fcf9ec34 | 942382a44abed5445b113aae35368c4648e3d109 | /main.cpp | 36a41403aab60303a1d56f6f3002082361a6149e | [
"Apache-2.0"
] | permissive | lichang98/raft_demo | b97b7dc325a0e81117c1940e1872fbc50b675bdc | 337bc56d04a4ee24509be7eba02c26ef4e990b55 | refs/heads/master | 2022-09-29T16:45:57.559143 | 2020-06-02T10:41:38 | 2020-06-02T10:41:38 | 268,749,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | cpp | main.cpp | #include "system.hpp"
#include "client.hpp"
int main(int argc, char const *argv[])
{
google::InitGoogleLogging(argv[0]);
google::SetLogDestination(google::INFO,"./log/log_info.txt");
google::SetLogDestination(google::ERROR,"./log/log_error.txt");
my_system::MySys sys;
sys.parse_json_config("./sys_c... |
b0e2b7128873bd1fca595a9ce93907c03042c0f2 | 5ada21656945725ae9cfe1b37fa40907e75510ef | /include/Zygelman.hpp | 54fb0ce122fbdd469d9d6b0f08c61de517421196 | [] | no_license | claudejpschmit/21cmFisher | a2627ea727ccefc5090b146c3b3dff129651128b | 5fd86b2b02317d6b7e6ffd96a89e5b99455c4313 | refs/heads/master | 2021-09-16T07:20:49.423858 | 2018-06-18T12:50:48 | 2018-06-18T12:50:48 | 46,121,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | hpp | Zygelman.hpp | #pragma once
#include "Helper.hpp"
/**
* Class that simplifies access to the kappa_10(Tgas) collision rates
* from Zygelman (2005).
*/
class CollisionRates {
public:
CollisionRates();
~CollisionRates();
double kappa10(double z);
double kappa10_T(double T);
private:
... |
acc3b76067214141648205d5903ae615ef6d1597 | a051877fb2e52b5e10120e1d0556bbaecbe7d044 | /2018-05-09/complex.h | b3001934a16cc4ec8d58ddbda14cf4dcaf5eb8f1 | [] | no_license | kiangelm/Programacion | 93eef763ffee1fa04fd3109b5331f076e73f96d7 | a59553e49d6b63d24ae4075a97443eb13e1fd0f5 | refs/heads/master | 2021-04-15T12:06:27.212840 | 2018-05-25T13:19:37 | 2018-05-25T13:19:37 | 126,487,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | complex.h | #include <iostream>
#include <cmath>
struct complex {
void print(void);
double real, imag;
complex operator+ (complex b);
complex operator- (complex b);
complex operator* (complex b);
complex & operator= (complex b);
double norm(void);
double ang(void);
double sin(void);
double cos(void);
};
|
d30609c43fd30f6da404d8c181f59f5697ab1f41 | 1002e349cffc6b72faaa69d3969c9c93d100d478 | /Greedy/Coprimme/main.cpp | a50d6092b790cb7e64f4ed32076c9bf0ef82a4da | [] | no_license | shreyansh2000rawat/Datastructure-and-Algorithm | ce1ff69df6e41c6e3e435fc3e533570bc1a7c574 | 335ecf722b646beb2d54ca84b57bd247318c86a9 | refs/heads/master | 2023-02-04T10:30:44.182714 | 2020-12-25T07:04:53 | 2020-12-25T07:04:53 | 291,649,799 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | main.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
long long int num = 0;
cin>>num;
for(long long int i = num-2;i>=1;i--){
if(__gcd(num, i)==1)
{
cout<<i<<endl;
break;
}
}
return 0;
}
|
a5855b9dc16068484ac0a08cef50c9ee773e6580 | eac71e4c7f960160887ab5ce675f8b2903ed51bb | /Sesion 3/X68173/Cjt_estudiants.hh | 966fb64271208b34b627dd1acaee6195264adf59 | [
"Apache-2.0"
] | permissive | go3212/FIB-PRO2 | 14947931a37e9f52b154904b2d229785d3a76fbb | 383cc7568583e164d740b87b9e7ad4eb06fee5d9 | refs/heads/main | 2023-06-02T02:34:23.503813 | 2021-06-14T10:20:48 | 2021-06-14T10:20:48 | 341,898,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,726 | hh | Cjt_estudiants.hh | #ifndef CONJ_EST_HH
#define CONJ_EST_HH
#include "Estudiant.hh"
#include <vector>
class Cjt_estudiants {
private:
// Tipus de modul: dades
// Descripcio del tipus: representa un conjunt ordenat per DNI d'estudiants
// Es poden consultar i modificar els seus elements (de tipus Estudiant)
// donat un DNI o pe... |
afa98ff32c6f118fead3ae51806bfc039e7d8bc9 | cc996d677644d7fcc02e306ecf4c15ec7460a211 | /6383/MiheevaEE/main.cpp | 164b6dc76af49cb881ea22e8627899e936d886a3 | [] | no_license | spasartyom/PiAA | 531f24f38a2010537dac83d09c6c67c960c2de0c | 0ae28c99dc1b899d9853a873252e2d99aef90378 | refs/heads/master | 2020-03-16T17:18:56.152302 | 2018-05-03T05:47:40 | 2018-05-03T05:47:40 | 132,826,411 | 1 | 0 | null | 2018-05-10T00:16:24 | 2018-05-10T00:16:23 | null | UTF-8 | C++ | false | false | 1,951 | cpp | main.cpp | #include <iostream>
#include <fstream>
using namespace std;
const int SIZE = 'z' - 'a'+1;
const double MAX =10000000;
double lable[SIZE];
double m[SIZE][SIZE];
bool isVisited[SIZE];
int prevV[SIZE];
int start,finish;
void read(istream& cin){
start=cin.get()-(int)'a';
cin.get();
finish=cin.get()-(int)'a';
... |
f59fb91020ea8dfa324067722b711276d53f8267 | c82d4afeabb5247daf14045effea2dce06b82d54 | /PAT/Blevel/Q1049/Q1049/Q1049.cpp | 29db25f1a60097a233c1b026c0058ab7c061e97c | [] | no_license | lubolib/University_Code | d9bcfefde5c7e5fd5bf50676a9f957f20e049fd3 | 092752985de849385be39a6740befbde2deab4aa | refs/heads/master | 2022-03-22T23:13:27.702527 | 2019-09-26T23:47:06 | 2019-09-26T23:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | Q1049.cpp | // Q1049.cpp: 1049. 数列的片段和
// 找规律
// 注意要用double,double的scanf是"%lf"
#include "stdafx.h"
#include <iostream>
using namespace std;
int main() {
int N;
double k, sum = 0.0;
scanf("%d", &N);
for (int i = 1; i <= N; i++) {
scanf("%lf", &k);
sum += k * i * (N - i + 1);
}
printf("%.2f", sum);
return 0;
}
/*
输入... |
cf46c3c94e946ce23aa48f82c9d90df99fa0759d | cc590bf63865c7634004ddeb479433a4cb104743 | /oommf/app/oxs/ext/scriptatlas.cc | c5d3905af40c622e8711d4d3845ca5ec74bf07b5 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | fangohr/oommf | 3980568c062a4ca32feb21a673bdebd1f4eed800 | 6dfaa8f744574c8e73679a42536d4c6ea3183ec8 | refs/heads/master | 2023-07-20T03:58:15.452974 | 2023-07-14T17:05:04 | 2023-07-14T17:05:04 | 43,062,791 | 23 | 11 | null | 2023-07-14T16:50:26 | 2015-09-24T11:27:36 | C++ | UTF-8 | C++ | false | false | 6,679 | cc | scriptatlas.cc | /* FILE: scriptatlas.cc -*-Mode: c++-*-
*
* Script atlas class, derived from OXS extension class.
*
*/
#include "oc.h"
#include "nb.h"
#include "director.h"
#include "scriptatlas.h"
// Oxs_Ext registration support
OXS_EXT_REGISTER(Oxs_ScriptAtlas);
/* End includes */
// Constructor
Oxs_ScriptA... |
16f78c793a55179820d7d911a36bf9ee501fc42d | 7f159057e9f8eedff3a7b2509b396eb21b3de0a7 | /leifkruger/cpp-code/shape_list/Box.cpp | 17fe2b719d19da8f1e8803c933613014d035c9ae | [] | no_license | tombe691/ec2020 | 640eb023ef29882b665a52b2a927445be8a86d86 | 339d3a5220d9732c4145a31a33b08a3433536b14 | refs/heads/main | 2023-02-01T02:10:54.640015 | 2020-12-16T20:54:18 | 2020-12-16T20:54:18 | 301,317,534 | 2 | 6 | null | 2020-10-21T09:22:47 | 2020-10-05T06:49:25 | C | UTF-8 | C++ | false | false | 1,403 | cpp | Box.cpp | /*
*******************************************************************************
FILENAME Box.cpp
Encoding UTF-8
DESCRIPTION Calculate volume and area of different shapes.
FUNCTIONS
NOTES Menu language - English
Compiler g++ 9.3.0 amd64 running @ Ubuntu 20.04 LTS
Lang dialect ISO C++14 (g++ by default use... |
400b01124e4802031a10125b4cb58ac2100b2a44 | ea8183aaa5d85ee04adedcb59e7e245906bf9d39 | /adc_keyboard.cpp | e5eb8002f3cf0213a8fdec766821df1b4640c84a | [] | no_license | gergespenst/digi_new_year_led | 6b72e1297f365220559f4df02f9af3694bfca07f | 75cc038983abbc178bc668cb4c63c070c03d7289 | refs/heads/master | 2022-09-18T02:00:57.520516 | 2018-12-04T08:36:26 | 2018-12-04T08:36:26 | 111,893,138 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,005 | cpp | adc_keyboard.cpp | /*
* adc_keyboard.cpp
*
* Created: 22.11.2017 15:10:54
* Author: USER
*/
#include "adc_keyboard.h"
static PCALLFUNC g_press_func,g_long_press_func = 0;
void InitAdcKeyboard(PCALLFUNC pressFunc,PCALLFUNC longPressFunc){
InitAdcKeyboard(pressFunc);
g_long_press_func = longPressFunc;
}
void InitAdcKeyboard(PCALLFU... |
c23956a2b2772d4f9cc2c4db1246c14385d67a89 | 7d36c569f0d5d24eede9287fdf3ab91c77f6016c | /DayofYear.hpp | fe21dbce70a9ad0845667fd022342901c8eaad12 | [] | no_license | muse-gabs/Calendar-Conversion-Program | a4de17f69f9768040b39df8ad7e054b3477fcd0a | cbfe3c262bb7a376c4c91e789df475c4a0232d16 | refs/heads/master | 2020-12-23T06:50:15.600734 | 2020-01-29T20:20:44 | 2020-01-29T20:20:44 | 237,073,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,242 | hpp | DayofYear.hpp | /********************************************************************
** Author: Gabrielle Pang
** Date: May 29, 2019
** Description: This is the class for DayOfYear, it initializes
** an array for the days in a normal year, and the
** months in a year.
** There are also 2 blank E... |
2ce02bcbcbdfc8c07870abbc50481775800c50ac | a6b8ad7d4536b10c4694377edf33bd3fcaa47c4f | /Semana 08/Find Pivot Index.cpp | 3e510781ea5eeba33c2163058513138fff9a13c7 | [] | no_license | GabrielSBotelho/Desafios-de-Programacao | 26000d8210afb817d16cbc98c06602f353afa750 | f6b405dbaa20b31f4e1492099a4a99074cc3ff54 | refs/heads/main | 2023-07-20T03:14:38.490245 | 2021-09-03T22:46:00 | 2021-09-03T22:46:00 | 368,923,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | Find Pivot Index.cpp | class Solution {
public:
int pivotIndex(vector<int>& nums) {
int sum = 0;
int start = 0;
for(int x : nums){
sum += x;
}
for(int i = 0; i < nums.size(); i++){
sum -= nums[i];
if(start == sum){
return i;
... |
066f18471f000f1adc81f343767f06ce8b7e916b | 0ca952396ee2f57d6d4a4da01c713a872311bb85 | /MonopolyAssignmentV3 - Sehun Babatunde/MonopolyAssignmentV3 - Sehun Babatunde.cpp | 9090faa90364aa4252b3afc07f72a58cdb9ed2fc | [] | no_license | SehunBaba/Monopoly---Assignment | 61dca2866259b5ac7e10893954df35a5cc12d0dc | dc4579f684609ba11f6330607fa6e5779e84e47c | refs/heads/main | 2023-01-04T11:21:26.185120 | 2020-11-02T18:27:16 | 2020-11-02T18:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,503 | cpp | MonopolyAssignmentV3 - Sehun Babatunde.cpp | // MonopolyAssignmentV3 - Sehun Babatunde.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <ctime>
#include <vector>
using namespace std;
const char POUND = 156;... |
6fd40220e17fa8a96c2d6978dbf996ff5b905498 | ec9fc0233dc167ba397c8d15494faf9b20629a76 | /reachingDef/program.h | 6e265226d04fe0f0043e87589cab71eef4c31b1e | [] | no_license | bhushan23/compiler | 3cd307cbbf5f449a3065a367da52409811039a8e | a0d6e981a91ee29403a610f7966ff6761ac8d5f6 | refs/heads/master | 2021-01-23T14:03:43.257224 | 2014-09-03T12:29:05 | 2014-09-03T12:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | h | program.h | #ifndef PROGRAM_H
#define PROGRAM_H
#include "basicblock.h"
#include "irclass.h"
class Program{
list<BasicBlock*> basicBlock;
map<string,BasicBlock*> mapBB;
public:
list <BasicBlock*>::iterator get_begin();
list <BasicBlock*>::iterator get_end();
void print_program();
void create_dot_file();... |
6cae79e1f17dac1049e4d24bd5c0dc5b82efbd42 | f13ae317b6db8f4ce1e540f98cd35897f334fa5c | /cAssignmentNode.h | ac75ad6f910222697788947cfc2c90545dcbc4d4 | [] | no_license | chadgreene/CST320_ChadGreene | 3579da28e2d0fb1b4c5b28571045049d8a85268c | 1ceb4747592a103eae20c205a6e5d9deea002827 | refs/heads/master | 2021-01-01T18:23:32.660864 | 2015-03-14T18:16:22 | 2015-03-14T18:16:22 | 28,837,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 866 | h | cAssignmentNode.h | /*******************************************************************************
* Author: Chad Greene
* Lab: Lab 7 Generate Code
* Date: 3/14/15
*
* Purpose: Build an abstract syntax tree by using Bison/Lex to parse a source
* file into appropriate nodes
*********************************************************... |
6c43a9bb3b7791453a7583e8cef0d86b7a0e673c | 077ba712c73feb4d1bbe66518338e98d5c1e040d | /cpp/robot/payload.h | ed597febce14cc88d5425960c861aa55ef1540ae | [] | no_license | devmanner/devmanner | eec4a83b1c35bbf67aecbb4860358cab7c823822 | 37f6bd1d0f7301045284cc94e37b8cb4b9005142 | refs/heads/master | 2021-01-10T19:09:19.251055 | 2019-09-20T18:46:22 | 2019-09-20T18:46:22 | 32,351,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | h | payload.h | #ifndef _PAYLOAD_H_
#define _PAYLOAD_H_
typedef int payload_t;
typedef int pos_t;
class Mission {
private:
pos_t m_dest;
public:
pos_t toWhere() { return m_dest; }
};
class Movement : public Mission {
};
class Payload : public Mission {
private:
payload_t m_type;
public:
Payloa... |
78a78d60da90e390fd237a938780d778db76e44f | 815acb61ac2a8566c5e59c9fcc6ac2836d14e0f5 | /programmation/Projet_X/Projet_X/Shaders/GeomPassShader.h | 6ce2de3bbba2312b8885edd513bafa842e1dc573 | [] | no_license | joblo13/projetx | 8211de3066784aec770fe37b01ccb37c0104e347 | 718bd8d3f2d8818159c704564cabc64f5de7f053 | refs/heads/master | 2021-01-13T15:00:49.132697 | 2017-01-18T20:33:32 | 2017-01-18T20:33:32 | 79,375,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | h | GeomPassShader.h | #ifndef GEOM_PASS_SHADER_H
#define GEOM_PASS_SHADER_H
//Includes interne
#include "Shader.h"
class GeomPassShader : public Shader
{
public:
GeomPassShader();
private:
//Fonction permettant de trouver la localisation des variables des shaders
void bindAttribLocation();
void bindUniformLocation();
protected:
//S... |
415450c3f3054904b92b07d4108717e7e64d535a | 86bfae94def1ca36bec20ab0ecadd72c1f97272e | /src/post/irllvm-wpds-xml/tests/ActionTest.cpp | 6f5cadc3a78e2a6b6464e617ca7f687b24f67e46 | [
"BSD-3-Clause"
] | permissive | ucd-plse/mpi-error-prop | 22b947ff5a51c86817b973e55c68e4a2cf19e664 | 4367df88bcdc4d82c9a65b181d0e639d04962503 | refs/heads/master | 2020-09-17T06:24:19.740006 | 2020-01-31T21:48:35 | 2020-01-31T21:48:35 | 224,017,672 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,092 | cpp | ActionTest.cpp | #include "ActionTest.hpp"
#include "../VarName.hpp"
#include "../Traces.hpp"
#include "../TraceVisitors.hpp"
using namespace std;
using namespace ep;
using ::testing::_;
using ::testing::Return;
using ::testing::ContainerEq;
TEST_F(ActionTest, PreActions) {
MockNames names;
MockActionMapper mapper(&names);
//... |
cb71404b782b65a39e5d10e423a4fb3f85c458c1 | 5673f2625023822b749d798da31b9ec2a3401fea | /Filters.cpp | 1a9a1f97fdc5f301bfc00fd188583917105b893f | [] | no_license | andreyV512/mufta | f9c0c915096e86c8fc7236f410b22a65299505bb | 8c11c6f3fa238d5e97e9cd3f6ace44ce1b2c385b | refs/heads/master | 2020-03-21T22:02:44.493619 | 2018-06-29T10:11:52 | 2018-06-29T10:11:52 | 139,100,296 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,382 | cpp | Filters.cpp | // ---------------------------------------------------------------------------
#pragma hdrstop
#ifdef BERLIN_10
#include <VCLTee.Chart.hpp>
#include <VCLTee.Series.hpp>
#else
#include "Series.hpp"
#endif
#include "Filters.h"
#include "TProtocol.h"
#include "unSQLDbModule.h"
#include "unTExtFunction... |
fd6b1532c598f370cca9888822df1f462423297d | 17d36145fd41e8ec3e7f0908dc64cde5bc26e361 | /Motor/Source.cpp | 15b2e77562d56a234a2cfb8be023e17c9b67a6f6 | [] | no_license | Ploxie/CppMotor | 9262595e74253af98d84481c5112545dd151974d | 85f719ebe63d0c7cf2a6e270da91b94fdf6e65dc | refs/heads/master | 2021-09-20T14:22:52.726961 | 2018-08-10T18:52:13 | 2018-08-10T18:52:13 | 140,103,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | cpp | Source.cpp | #pragma once
#include <iostream>
#include "GLFWWindow.h"
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
using namespace Engine;
int main()
{
glfwInit();
Window* window = new GLFWWindow(50, 50 , "ASD", WINDOWED);
window->Create();
system("pause");
return 0;
} |
e1b5e1e644652128e333e155f92e7b12317368cd | 761d2729914160aa8d86a4067a5a85ef7ba8cf78 | /baekjoon/12865.cpp | c961b51ef58222a8d17182be7eb3de55919f327f | [] | no_license | leebohee/problem-solving | 152ec5abb7fcafd3006dbc2ccc7152724658fb53 | 08d77878b09b763c735ba55fc779eb4386b74d33 | refs/heads/master | 2021-07-05T11:56:40.623793 | 2020-09-10T11:21:41 | 2020-09-10T11:21:41 | 170,067,865 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,270 | cpp | 12865.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
#define MAX_K 100000
using namespace std;
struct thing{
int w;
int v;
thing(int w_, int v_): w(w_), v(v_) {};
bool operator<(const thing& th){
if(this->v == th.v) return this->w > th.w;
else return this->v > th.v;
}
};
int measur... |
c713a4c0c49b5dff7639dc931375f97f100894bf | 2a15f38a625871b82906f5f7ccd024aae37c26a6 | /epoch_tracker_main.cc | 6511decea61d74662d9f949d86eecc6e10c0137d | [
"Apache-2.0"
] | permissive | xavigonzalvo/REAPER | 95e4d74e9ffd84b5647b80623f420834ba263043 | 932bf8823eda11bb71df764b7e70d2cb3ea9184c | refs/heads/master | 2021-01-18T11:54:05.614373 | 2015-02-03T06:54:57 | 2015-02-03T06:54:57 | 30,229,125 | 0 | 0 | null | 2015-02-03T06:40:14 | 2015-02-03T06:40:14 | null | UTF-8 | C++ | false | false | 3,919 | cc | epoch_tracker_main.cc | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
209b333f431e26ab146f3c04cef643c7ffcb23c0 | 02df46b70d7755cbb54bf716823941366a03e138 | /src/client/src/CellCounter.cpp | df130f6cacf21f0c3ee4586daee4b496b1aaad21 | [] | no_license | abbyAlbum/reversi | 49eb49d2eba99d16b116c383aefcd06c54a7aec9 | 495896af38594cab24550474b0d89ee7e923a8de | refs/heads/master | 2022-11-10T22:22:21.833685 | 2018-01-21T11:25:24 | 2018-01-21T11:25:24 | 275,802,832 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | CellCounter.cpp | //
// Created by eyal moskowitz 314074303 on 13/11/17.
//
#include "../include/CellCounter.h"
/**
* constructor for CellCounter
* @param board
*/
CellCounter::CellCounter(Board *board) {
board_ = board;
xCounter_ = 0;
oCounter_ = 0;
spaceCounter_ = 0;
}
/**
* counts the num of cells of each type ... |
71f34dbc58acf00f3f1680f448a4b27b9d80cf4a | 048fddf3e02996a50163d014987d2a1e0f852b05 | /20130604/j.cpp | df14300e708d617cee4df5e9913d86d85b081d91 | [] | no_license | muhammadali493/Competitive-coding | 2a226d4214ea2a9c39dcd078d449d8791d80a033 | 0a6bb332fb2d05a4e647360a4c933e912107e581 | refs/heads/master | 2023-07-17T08:40:06.201930 | 2020-06-07T07:41:39 | 2020-06-07T07:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | j.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int mod = 2011;
int a[20010];
int sum[20010];
int cal(int n)
{
int x = n / 2010;
if(n % 2010 == 0) return x * sum[2009] % mod;
int y = n % 2010;
y --;
return (x * sum[2009] + sum[y]) % mod;
}
in... |
6b4927d96478919504f95deaf7545fce28e36dc0 | 4589727948e83fc35a9a84b863fe415362632a77 | /toanroirac/Source1.cpp | 200e1ec35c018cd72e5105952bf6c72a6c5f0274 | [] | no_license | tamnk74/C-CplusplusSamples | 71174264832acc7502b4facb33b6f551414381c8 | ff4031926a5cafc251357afac94df076fbdb163e | refs/heads/master | 2023-02-06T08:08:44.554382 | 2020-12-26T16:55:08 | 2020-12-26T16:55:08 | 324,590,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | cpp | Source1.cpp | ?#?include?<conio.h>
#include<stdio.h>
#include<string.h>
int count=1,n;
void nhap(int *a)
{
int i;
for(i=1;i<=n;i++) a[i]=i;
}
void xuat(int a[])
{
int i;
printf("\n %2d \t",count);
count++;
for(i=1;i<=n;i++)
printf("%d",a[i]);
}
int kt(int a[])
{
int i;
for(i=1;i<=n-1;i++) if(a[i]>a[i+1]) return 0... |
caeca71f8eecafcd4042db4194f40d69b05f0d3c | 84c89092e056d5823ad63c157f4bb00babcc339d | /src/ListWindowBase.hpp | 5260e4a5a403ac65cf36019363c49b6daab2b0e9 | [] | no_license | kamilpe/investigator | f5efc17be05c95e96b8696e7610a460c367a1ae8 | 8ea51369d69f5d7dc1c0fad29db573ac5b1723d2 | refs/heads/master | 2020-03-29T07:12:01.313071 | 2020-02-04T19:11:34 | 2020-02-04T19:11:34 | 149,656,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,549 | hpp | ListWindowBase.hpp | #pragma once
#include "IAppContext.hpp"
#include "Toolkit/Window.hpp"
#include <memory>
template<typename ItemType>
class ListWindowBase : public Window
{
public:
using Items = std::vector<ItemType>;
ListWindowBase(IAppContext &context,
const Items &items,
const typename Items::... |
41ff152cb5e26df697c0cb5ec5fd8d114b8f2d9e | 8da9d3c3e769ead17f5ad4a4cba6fb3e84a9e340 | /src/chila/connectionTools/designer/app/impl/connection/Logger.hpp | 480f3d89db60109a2b778f2b83e9c9b68ca299f4 | [] | no_license | blockspacer/chila | 6884a540fafa73db37f2bf0117410c33044adbcf | b95290725b54696f7cefc1c430582f90542b1dec | refs/heads/master | 2021-06-05T10:22:53.536352 | 2016-08-24T15:07:49 | 2016-08-24T15:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | hpp | Logger.hpp | /* Copyright 2011-2015 Roberto Daniel Gimenez Gamarra (chilabot@gmail.com)
* (C.I.: 1.439.390 - Paraguay)
*/
#ifndef CHILA_CONNECTIONTOOLS_DESIGNER_APP_IMPL_CONNECTION__LOGGER_HPP
#define CHILA_CONNECTIONTOOLS_DESIGNER_APP_IMPL_CONNECTION__LOGGER_HPP
#include "fwd.hpp"
#include "../fwd.hpp"
#include <chila/lib/misc... |
b10331ee3b3b26b68cbd22a9c6b03edc355ff983 | d5d0a7d1da7c63ff3d20f9501a9b32e4678c044b | /test2/Funk.cpp | 0c4efbe37f5774d92839f5da0e607f9b66eb1bf5 | [] | no_license | anastasia94/nastya | 3fc0c8ee4d25e143b23d5fe606608b025228120e | 8d209d0925a4ef60dee301f2ca0c34bb3722322c | refs/heads/master | 2021-01-25T07:28:29.061566 | 2012-11-26T21:04:10 | 2012-11-26T21:04:10 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,520 | cpp | Funk.cpp | //trolo
#include <iostream>
#include <Windows.h>
#include <math.h>
using namespace std;
bool funk_c(float ,float );
bool funk_a(float ,float );
bool funk_b(float ,float );
int input (int&);
int main()
{
float x,y;
int pr;
int k;
SetConsoleOutputCP(1251);
do
{
cout<<"Введите x---> ";
while (input (k));
... |
bc0143c9f0560d26d668a0d0d367b53fc6b32a3f | 7cedb19cd799cb16a201b4390dc1da01d3391a4c | /IAOINode.h | 8a8f89d0ca68894bac6122383a3cbf149c4cf436 | [] | no_license | apheros/AOIService | 1ff9b1305091c0257d86fb416d06ba11cb5fb20c | b152abbf3ab9ccb0a6d0bad22aaf787c759a27ff | refs/heads/master | 2021-01-21T17:10:14.096463 | 2017-05-21T07:38:53 | 2017-05-21T07:38:53 | 91,938,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | h | IAOINode.h | #pragma once
#include <vector>
#include <set>
namespace AOIService
{
class AOIService;
class IAOINode
{
public:
IAOINode() {}
virtual ~IAOINode() {}
public:
virtual void setService(AOIService* service) = 0;
virtual int positionX() = 0;
virtual int positionY() = 0;
virtual IAOIN... |
a445b667a14083b156c2de7272ba8763bee20753 | fb5b25b4fbe66c532672c14dacc520b96ff90a04 | /export/release/macos/obj/src/lime/graphics/opengl/ext/KHR_debug.cpp | 8e1d1910e7f22a21d06129bf03ca7e538a67608e | [
"Apache-2.0"
] | permissive | Tyrcnex/tai-mod | c3849f817fe871004ed171245d63c5e447c4a9c3 | b83152693bb3139ee2ae73002623934f07d35baf | refs/heads/main | 2023-08-15T07:15:43.884068 | 2021-09-29T23:39:23 | 2021-09-29T23:39:23 | 383,313,424 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 21,333 | cpp | KHR_debug.cpp | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_lime_graphics_opengl_ext_KHR_debug
#include <lime/graphics/opengl/ext/KHR_debug.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_e7ead9e1a8712dad_4_new,"lime.graphics.opengl.ext.KHR_debug","new",0xa09f74f9,"lime.graphics.opengl.ext.KHR_debug.new","lime/graphics/op... |
d89c4c921eafc4657484d01d67552f137751d254 | 1dc745955b069813e7cc11ef614dda8acdff4787 | /CodechefMayLong/Covid19.cpp | aff5fd59974dfc1c5fec49c62bcf04ef38568197 | [] | no_license | PiyushRajmsit/Coding-Competitions-Solutions | 7a00b38344d2ef018f72781578cf9a0ba84478fc | ebd61cd90d6f44db6f60cbd701df102fc60705df | refs/heads/master | 2022-09-25T18:50:24.179655 | 2020-06-06T12:46:35 | 2020-06-06T12:46:35 | 269,978,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | cpp | Covid19.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
int n;
int *arr = new int[100];
while(t--)
{
cin>>n;
for(int i=0;i<n;i++)
cin>>arr[i];
sort(arr,arr+n);
int high = 0;
i... |
0673672fe7d7f49492a3bc63225074673a3357ba | 4121fb55110bd4329cf27cfb897f9b7855b8f596 | /src/server/net/net_server.cpp | 04dc1b5e338fbd9e530b4c181a53a7321188ac4b | [] | no_license | starand/notifier | 28c1baf9a98cf8479942bbb76dfc146d0f871348 | e42f1f132d7a2cd0cf65e1305e1979cbf6baecf2 | refs/heads/master | 2021-01-13T16:19:23.306765 | 2017-01-31T11:27:59 | 2017-01-31T11:27:59 | 80,013,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,966 | cpp | net_server.cpp | #include <common/StdAfx.h>
#include <common/config.h>
#include <net/client_handler.h>
#include <net/net_server.h>
#include <common/asserts.h>
#include <net/xsocket.h>
#include <json/value.h>
//--------------------------------------------------------------------------------------------------
net_server_t::net_serv... |
6c8818f149cdb5d5772803d6917965edfe937049 | af6e37f97fb64d1b124a69245d19eb75153ba8f3 | /DirectX11_Starter/Mesh.h | 811da50dda10255a04b62560df1926b5403d059a | [] | no_license | Eniripsa96/EnginesClass | 52ea862722c6c227d62091ff38a4452f4286c62c | 9d47ad943257c7d38581cc7743c68379e1c6243b | refs/heads/master | 2021-01-19T07:47:02.895872 | 2015-05-19T13:35:47 | 2015-05-19T13:35:47 | 31,019,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,852 | h | Mesh.h | #ifndef MESH_H
#define MESH_H
#include <vector>
#include <time.h>
#include "Material.h"
using namespace std;
using namespace DirectX;
enum SHAPE
{
NONE = 0,
TRIANGLE = 1,
QUAD = 2,
PARTICLE = 50
};
// Vertex struct for triangles
struct Vertex
{
XMFLOAT3 Position;
XMFLOAT3 Normal;
XMFLOAT2 UV;
};
// Vertex ... |
0acd9c1aa7337c44e1510472beae2211eb658093 | 39fef4617567a908ac096fa7445c51ec2e72d08c | /Arduino/ArduHaaga/ArduHaaga.ino | 0b4da4eb49d47f730c8b8324f7e40634e7b0c3e4 | [] | no_license | HukoOo/HaagaRobot | db8545f612a4f71ee2b49d619fa35c1b9064e656 | b72f35f24f319cea97d4cf58c0995264a50ccd26 | refs/heads/master | 2020-05-22T04:04:04.853669 | 2017-01-05T16:35:26 | 2017-01-05T16:35:26 | 57,010,865 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 24,471 | ino | ArduHaaga.ino | #include <SoftwareSerial.h>
#include <TinyGPS.h>
#include <Wire.h>
#include <HMC5883L.h>
// ROS
#include <ros.h>
#include <std_msgs/String.h>
#include <rosserial_arduino/Test.h>
//pin settings
#define EN1 4 // ENABLE pin motor1
#define PWM1 5 // PWM pin m... |
9648d842d7c9cb1aedaaab12803ba9919dd89321 | 3009edfc1058865cd3873f6791503137d238dbfc | /结果/第五次在线测评结果/source/1614/circle.cpp | accbb9d72160626179976d6820e8d14705481c8f | [] | no_license | Ynjxsjmh/DataStructureAssignment | 1477faf125aea02f5ac01b504a712127fe0b7bc4 | 92a4964c73fbcadd320d9cbfbd522204a6b32be8 | refs/heads/master | 2020-04-16T23:31:46.021240 | 2019-01-16T09:47:44 | 2019-01-16T09:47:44 | 166,014,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,457 | cpp | circle.cpp | #include <stdio.h>
#include <stdlib.h>
struct queue{
int front, rear, num, el[7000];
queue(){front = 0; rear = 0; num = 0;}
void in(int e){el[front++] = e; num++; return;}
int out(void){num--; return el[rear++];}
};
struct circle{
int x, y, r;
};
struct plane{
int num; circle* ci; int now, *visit;
} p;
void g... |
f3a14539ec2948324a4432f2ccfc45f44c188613 | 8c7ad5ba8506455d817ea63b4f77022d4d41e655 | /lab2/xorcypherbreaker/main.cpp | 41c9a8b00215e1fd65cd93ed69ecb9361589930d | [] | no_license | michaljasica/JiMP-II | b880faeaa0265a3c72d6935d3fbcc850637aeacf | c6d242c1005818d456c295a1c78c88c46ce8e5b7 | refs/heads/master | 2021-01-25T13:36:16.614926 | 2018-06-05T22:13:01 | 2018-06-05T22:13:01 | 123,595,171 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 84 | cpp | main.cpp | //
// Created by malikmontana on 11.03.18.
//
int main(){
return 0;
} |
eebe083fcaa20d07a6d7c29b5cdf8427cafe5091 | 814fd0bea5bc063a4e34ebdd0a5597c9ff67532b | /components/timers/alarm_timer.h | d2f93335d61c518c4516b523b94058df949a1577 | [
"BSD-3-Clause"
] | permissive | rzr/chromium-crosswalk | 1b22208ff556d69c009ad292bc17dca3fe15c493 | d391344809adf7b4f39764ac0e15c378169b805f | refs/heads/master | 2021-01-21T09:11:07.316526 | 2015-02-16T11:52:21 | 2015-02-16T11:52:21 | 38,887,985 | 0 | 0 | NOASSERTION | 2019-08-07T21:59:20 | 2015-07-10T15:35:50 | C++ | UTF-8 | C++ | false | false | 3,626 | h | alarm_timer.h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_TIMER_ALARM_TIMER_H_
#define COMPONENTS_TIMER_ALARM_TIMER_H_
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory... |
cbcc1312c1f9323876eca2d8cf8bb20a762fe414 | ff800ee04c560b2644374c71d8fbda9859b41be0 | /LeetCode/24.swap-nodes-in-pairs.cpp | ddb9a0c11e2bd4f7351cdca99fa810fda1615ab5 | [] | no_license | TWANG006/Programming_Exercise | efc994034f225b95fadcaa056b2982184b34ef25 | 48cf5ff91a26db0ddf6ab67e7d2a7118891f366f | refs/heads/master | 2021-07-06T07:44:04.042132 | 2020-09-14T12:24:38 | 2020-09-14T12:24:38 | 176,791,763 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | cpp | 24.swap-nodes-in-pairs.cpp | /*
* @lc app=leetcode id=24 lang=cpp
*
* [24] Swap Nodes in Pairs
*/
// @lc code=start
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode... |
7ebe3da4bd46b0d02d73b63d7867dcfaa6681191 | 04fc82b422131353a113a567e157ac87962546c9 | /src/Shader.h | 221c30103661fdbaa0f20bd42fae6f7498ecbf5f | [] | no_license | DanyFids/Glade-iators | b369e88a45611fe0566e1c29749219452ca6b99a | fef2a985eb859474877da11aa405e54f7fbea1ae | refs/heads/master | 2020-08-26T17:22:47.823003 | 2020-02-10T21:35:33 | 2020-02-10T21:35:33 | 217,085,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 719 | h | Shader.h | #pragma once
#include<string>
#include<GLM/glm.hpp>
#include<glad/glad.h>
class Shader {
int LoadShaderCode(const char* filename, GLchar** SourceCode);
public:
//typedef std::shared_ptr<Shader> Sptr;
unsigned int ID;
Shader(const char* vertShaderPath, const char* fragShaderPath, const char* geoShaderPath = "")... |
51e44d78c339a097229881a3b4257ca0bcea2ae1 | d347554c4bc24b7e159551007f5683cac8fa97d0 | /aftn/aftnws/src/telegram/atsmessages/NotamMessage.cpp | e1f82bfe9561133978c4be191a17dd0e8e5c5e0d | [] | no_license | ansartnl/ALPHA | 892065b1476ec9c35e834a3158592332cda4c5f5 | 138ddd981ed5bac882c29f28a065171e51d680cf | refs/heads/main | 2022-12-27T16:15:28.721053 | 2020-10-16T08:58:41 | 2020-10-16T08:58:41 | 304,633,537 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | NotamMessage.cpp | #include "NotamMessage.h"
#include "LamMessage.h"
NotamMessage::NotamMessage()
{
mInfo.type = Ats::NOTAM;
}
NotamMessage::NotamMessage(const NotamStruct ¬am)
{
mNotam = notam;
mInfo.type = Ats::NOTAM;
}
QByteArray NotamMessage::toAftn() const
{
QByteArray ret;
return ret;
}
QByteArray NotamM... |
4ec421145d25ae59c722dd9b27e46736b6db91ee | 81ed424b05260a70167c8293f71a00cc1496ee59 | /LIBS/u3dLib/sources/Bsp.cpp | 4062af8e867c59523fa5fe4e21a3e1ac96490986 | [] | no_license | aramadia/android-popsy-vip2 | 0422f8ae1f45bb9a706147724daa46233e3a53c0 | de62b2df311134e664b1457f7860b5159ed4769b | refs/heads/master | 2020-07-04T16:05:42.536084 | 2014-06-12T00:32:23 | 2014-06-12T00:33:29 | 4,014,322 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 22,395 | cpp | Bsp.cpp | /*-----------------------------------------------------+
| BSP.cpp |
| |
| la définition de l'arbre BSP mais ici pour le |
| moteur temps réel! |
| ... |
89671d1641af346af1abd60e6bcfbdad15134c4a | be3ccec1fa1c97839199f0ede09a1f93ae2ac5f0 | /gen/rng_init.cpp | dcbf4a7767099e980b3d502be05a90aa45f44498 | [
"BSD-3-Clause"
] | permissive | bdapi/bdapi | 45829cfc870719be54bd38cca787cb38f72cc2e3 | f3995568925e4d1bdabbe11b7ef1e8c79969da67 | refs/heads/master | 2021-01-02T22:50:52.428487 | 2016-03-14T03:58:15 | 2016-03-14T03:58:15 | 23,017,813 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | cpp | rng_init.cpp |
/* bdapi - brain damage api version 0.6.0 */
#ifndef BDAPI_GEN_RNG_INIT_CPP
#define BDAPI_GEN_RNG_INIT_CPP
#include "gen/rng.hpp"
/* includes */
// standard
#include "ctime"
// bdapi
/* namespaces */
namespace bdapi {
namespace gen {
/* static variable declarations */
static u32 seed_offset = 0;
/* random num... |
713bcc2408056ae75e8b74efc4b1b4b428735697 | c654bdb7ff47f8534d2c7eed1bc878bd6209825d | /src/sdchain/beast/insight/Base.h | b476857a8dbf0c1c6bc94ffa745cae9cffbfc594 | [] | no_license | Gamma-Token/SDChain-Core | 6c2884b65efc2e53a53a10656b101a335a2ec50b | 88dc4cdd7c8f8c04144ffe9acd694958d34703a7 | refs/heads/master | 2020-06-18T06:37:12.570366 | 2019-04-29T05:27:18 | 2019-04-29T05:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | Base.h | //------------------------------------------------------------------------------
/*
This file is part of Beast: https://github.com/vinniefalco/Beast
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
*/
//==============================================================================
#ifndef BEAST_INSIGHT... |
eb68701e461cd95540776fb670e0b4cae7cadd06 | 70421ae87edc8ef612438b8b624cf755996a866e | /c++/fibonacci.cpp | eaa2ec7253308c0b2ac6a07f1ecbd50346e720c8 | [] | no_license | antzdote/school-stuff | 27cf6c62d54faf43a1b82dd9043f907eefa160b3 | 2acaf6743d2c1644529101a93f2717788b14818c | refs/heads/master | 2020-06-23T13:44:00.335191 | 2019-07-24T13:43:02 | 2019-07-24T13:43:02 | 198,641,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | fibonacci.cpp | #include <iostream>
using namespace std;
int fib(int n)
{
if (n<=0)
return 0;
else if (n==1)
return 1;
else
return fib(n-1)+fib(n-2);
}
int main()
{
int n;
cout<<"Enter a fibonacci number of terms to calculate: ";
cin>>n;
for(int i=0; i<n; i++)
{
cout<<fib(i)<<" ";
}
}
|
57ab9ca91b763b47932a08b18bb6975dfdfade9f | 9462d3ca1a80ea81f6a2416254072e1489699e1c | /Dynamic/Flowdown.cpp | 4cbc2554de2bc117cd695a4d73af121ee0a78807 | [] | no_license | muff1nman/Algorithms | 11419558b42d04689b0c9dc910ca311c41a5e1ed | 1bd0b4034451dff8c97be444e2eedf36f3e66164 | refs/heads/master | 2016-09-06T07:24:09.521034 | 2012-12-09T06:06:20 | 2012-12-09T06:06:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,587 | cpp | Flowdown.cpp | #include "Flowdown.h"
Flowdown::Flowdown(std::string palindrome): initdrome(palindrome) {
this->populateTable();
}
std::string Flowdown::getMaximum(){
return actPalindrome;
}
void Flowdown::calcMaximum(){
int index;
int max = 0;
for ( unsigned int i = 0; i < table.size(); ++i ) {
if ( t... |
a5d210c2d30e1e326978fedbf239f92ace8fa6bd | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/13/1455.c | 0f9791997a28829560b985dfc07eeedc24240ac2 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | c | 1455.c | int main()
{
int n,i,j,cal=0,enter=1,num=0;
int a[100001]={0},b[100001]={0};
scanf("%d",&n);
for (i=1;i<=n;i++)
{
scanf("%d",&a[i]);
}
for (i=1;i<=n;i++)
{
for (j=1;j<=num;j++)
{
if (a[i]==b[j])
{
goto next;
break;
}
}
if (enter==1)
{
printf ("%d",a[i]);
... |
f764cc519413a667778b60aa9d029eaa05316508 | 6ccb723686cf42b2ec8a9a080e0aefeb4e24319e | /tablice.cpp | 69f1a76b0bca8999ae57cd905609554b74fe75ba | [] | no_license | michczur/Rozne_drobiazgi | e7a50b6ffb08721e1a0ab36771edfe95fdd59034 | b869a0207a20373fd3eda326d2704a83262a869f | refs/heads/master | 2020-04-16T07:54:21.406667 | 2019-01-12T15:38:40 | 2019-01-12T15:38:40 | 165,403,325 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 766 | cpp | tablice.cpp | #include <iostream>
#include <cstdlib> //rand(), srand()
#include <ctime> //time()
int main()
{
srand(time(0));
//Zadanie:
//wylosuj 100 liczb
//wypisz ile z nich jest parzystych,
//a ile nieparzystych
int tab[2] = {0, 0};
// tab[0] = tab[1] = 0;
// int nieparzyste = 0, parzyste = 0;
for (int i = 0; i < 1... |
f1527e2a4b2204bfac54727a0883fca14661f349 | e372f32ff25ebc35defb390b2df722d5040020f5 | /SharpUnrealTest/Plugins/SharpUnreal/Source/SharpUnreal/Public/SharpFunctionLibrary.h | 88467aee97143501864162699394bf79ea333a08 | [] | no_license | 19900623/SharpUnreal | a1a54e478d06beb48fbe93e0fb5982e13264ad74 | 7150bf04029741d3578b98d57687097a64c6636d | refs/heads/master | 2021-09-01T23:30:26.025862 | 2017-12-29T06:38:00 | 2017-12-29T06:38:00 | 259,869,100 | 1 | 0 | null | 2020-04-29T08:31:56 | 2020-04-29T08:31:55 | null | UTF-8 | C++ | false | false | 1,298 | h | SharpFunctionLibrary.h | #pragma once
#include "Kismet/BlueprintFunctionLibrary.h"
#include "SharpFunctionLibrary.generated.h"
/**
* 主要用于实现C#与蓝图的相互通讯
*/
UCLASS(ClassGroup = (SharpUnreal), meta = (BlueprintSpawnableComponent))
class SHARPUNREAL_API USharpFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFU... |
b4b18899d5e502c7de435147e1093f7b2ebfbba3 | 698a11c977d074f3ab3f7d59883ba5e2e6f41002 | /tools/resourceviewer/model/smkitem.h | 68083dae7d50229bac225b9c2cc39c9daefe576c | [] | no_license | jeffmeese/tiberius | d0d92ebb69cd761baf2d79b75290e55cf21c70ec | 5a058cea86126d0b04b324830d757e7ece0fb497 | refs/heads/master | 2023-02-25T19:01:27.095207 | 2021-01-29T20:08:17 | 2021-01-29T20:08:17 | 306,618,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | h | smkitem.h | #ifndef SMKITEM_H
#define SMKITEM_H
#include "resourceitem.h"
class Video;
class SmkItem
: public ResourceItem
{
public:
SmkItem(const QString & pathName);
public:
QWidget * createView() const override;
QList<Property> getProperties() const override;
private:
std::unique_ptr<Video> mVideo;
};
#endif /... |
7561290cdf77497f53a53b1e94698c1a543a6418 | 03ebbf7128e96abdb3ea146cb1f0825958152d68 | /Assignment 19/tree.cpp | 10bb57febd7fb97ecd8f823cb6d2bbbd85c6cfc8 | [] | no_license | leslieledeboer/CIS-7 | 75151ddebf5789bc36c7ecba28177db7c3f88179 | 391ab4d39b4c9219ddc8cdc7da2db6a67dc822db | refs/heads/master | 2021-01-20T12:10:47.061752 | 2017-12-01T19:53:39 | 2017-12-01T19:53:39 | 101,702,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,192 | cpp | tree.cpp | // Assignment 19
// tree.cpp
// Leslie Ledeboer
#include <iostream>
#include "tree.h"
using namespace std;
Tree::Node::Node(string name, Node * left, Node * right)
{
_name = name;
_left = left;
_right = right;
}
string Tree::Node::getName() const
{
return _name;
}
Tree::Node * Tree::Node::getLeft()... |
c7d826c3e71a374b194c6362829ee1102ccad93c | 6281eaa96b579085f42433c00c4dc5a7c6d3ab42 | /03.03_exercise_set_3/exercise_18/main.cc | aaceaa412ad31ed8b32d8ea01f2307ba7ab28356 | [] | no_license | Keipi/Cpp-Part-I | a6c19c675f6995051e3ec1475fe278f092d55197 | b76edc869f66323283efee38e4abc4549f7325de | refs/heads/main | 2023-08-06T05:21:45.025098 | 2021-10-05T13:39:17 | 2021-10-05T13:39:17 | 406,343,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cc | main.cc | #include "main.ih"
int main(int argc, char *argv[])
{
if (argc == 1)
usage();
bool status = structCall(argc, argv);
if (status)
boundCall(argc, argv);
}
|
dbdd8f9ae6337f5b8b5780fb113cb6e0b3eacecc | b066028fea8c16eb9134bf94024a3962ca14ca97 | /lib/libgsmo/gmb_operate.cc | 2f3e2bafee7ede09825edf079dab75def82450b1 | [
"MIT"
] | permissive | elifesciences-publications/bpps-sipris-code | 9afa7646079f1da44f82539e8b8f472e46286374 | 3c5382489c5e6aeca20c93b7ba2907b19fad3cf7 | refs/heads/master | 2021-05-14T03:59:31.629499 | 2017-10-04T19:12:20 | 2017-10-04T19:12:20 | 116,630,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,327 | cc | gmb_operate.cc | /******************************************************************************************
Copyright (C) 1997-2014 Andrew F. Neuwald, Cold Spring Harbor Laboratory
and the University of Maryland School of Medicine.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this s... |
fb18173ce546f346b64c094d0c2e8d15e7480097 | 03131ac8b44268086b00cd29066667e9d13b4fc0 | /Tyontekija.cpp | 2fa73a4a8af950cde2e161c249caa37769fc5e41 | [
"MIT"
] | permissive | Mlindr/PersonelAndStudentManaging | 9cd4e5cd6eff815e0df2b50f64bb0de597261246 | 0f98e17b8f065279074ee61d7452a65c00505347 | refs/heads/master | 2020-04-17T04:40:17.057912 | 2019-01-17T14:55:06 | 2019-01-17T14:55:06 | 166,240,372 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,058 | cpp | Tyontekija.cpp | #include "Tyontekija.h"
#include <iostream>
#include <string>
#include <sstream>
using std::cin; using std::cout; using std::endl; using std::string; using std::getline;
/*Funktioiden nimet kertovat jo mitä tekevät*/
//oletusrakentaja
Tyontekija::Tyontekija(): Henkilo(),palkka_(),tunnus_()
{
}
//parametrirakentaja
... |
64a239647e897ddd99b07acf6b1d557af2925218 | af1f72ae61b844a03140f3546ffc56ba47fb60df | /src/lib/regurgitate/regurgitate.hpp | ddea009c4bb0d000fe1a46b414c7331b362309ee | [
"Apache-2.0"
] | permissive | Spirent/openperf | 23dac28e2e2e1279de5dc44f98f5b6fbced41a71 | d89da082e00bec781d0c251f72736602a4af9b18 | refs/heads/master | 2023-08-31T23:33:38.177916 | 2023-08-22T03:23:25 | 2023-08-22T07:13:15 | 143,898,378 | 23 | 16 | Apache-2.0 | 2023-08-22T07:13:16 | 2018-08-07T16:13:07 | C++ | UTF-8 | C++ | false | false | 12,946 | hpp | regurgitate.hpp | #ifndef _LIB_REGURGITATE_HPP_
#define _LIB_REGURGITATE_HPP_
#include <algorithm>
#include <array>
#include <atomic>
#include <cassert>
#include <numeric>
#include <iterator>
#include <iostream>
#include "api.h"
namespace ispc {
/*
* Generate a SFINAE wrapper for the specified key, value pairs.
*/
#define ISPC_ME... |
f546a756b9524fbe15ac997a8ea26e6f5391a3b7 | a01b67b20207e2d31404262146763d3839ee833d | /trunk/Projet/tags/Monofin_20090407_0.1a/Ui/parametersdialog.cpp | 4e0b54c95f4b1b8039a4f705483681cf14979c41 | [] | no_license | BackupTheBerlios/qtfin-svn | 49b59747b6753c72a035bf1e2e95601f91f5992c | ee18d9eb4f80a57a9121ba32dade96971196a3a2 | refs/heads/master | 2016-09-05T09:42:14.189410 | 2010-09-21T17:34:43 | 2010-09-21T17:34:43 | 40,801,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,280 | cpp | parametersdialog.cpp | #include "parametersdialog.h"
#include "../Data/stratefile.h"
#include "layerparameters.h"
#include <QFileDialog>
ParametersDialog::ParametersDialog(QWidget *parent) :
QDialog(parent)
{
setupUi(this);
for(int i=0; i<4; ++i)
m_strates.append(new StrateFile);
layerTabWidget->clea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.