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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2de027ce91542cbfec519afb916eafd0e0c2cd8 | 7d3581bfcfa0d58bd9a852ae438f308483fc443b | /ExampleAddFilesToCPPProject/car.h | ce2d80431c145483e85b11fa4542018bb0dc2ecd | [] | no_license | kickinespresso/ExampleAddFilesToCPPProject | a35055ef7d035d5b17b5d9465be97fad9ff27316 | be6329048809bac58bdc47488ea30bae7486b0bf | refs/heads/master | 2021-03-27T09:30:13.187842 | 2017-09-09T22:04:11 | 2017-09-09T22:04:11 | 102,987,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 881 | h | car.h | //
// car.h
// ClassExample
//
// Created by cj on 9/17/14.
// Copyright (c) 2014 KickinEspresso. All rights reserved.
//
#ifndef __ClassExample__car__
#define __ClassExample__car__
#include <iostream>
#include <string>
#include "engine.h"
using namespace std;
class Car {
private:
string manufacturer;
... |
5625ea3c06b50c7f4a0c7093f3612ff841db131e | ba842a2e554ad58beb2dcc4f294f7c8f3da3ad52 | /Arreglos/Algoritmo 1/Untitled1.cpp | 5a9558f8f96556e1e58c2013c584585b0e044d1b | [] | no_license | walter0614/Exercises-C | cb2a124407fd520039172f5581e1a0ea74ebb2ff | eb8ddc29e20ec1fdfc8b1480570878c6613155e6 | refs/heads/master | 2021-05-07T04:18:31.756926 | 2017-11-17T21:38:22 | 2017-11-17T21:38:22 | 111,150,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | cpp | Untitled1.cpp | #include <stdio.h>
#include <conio.h>
#include <windows.h>
int main()
{
short int i;
float nota[9],prom,my,mn;
for(i=0;i<=9;i++){
system("cls");
printf("\n\nIngrese la nota\t[%d]\t\t",i+1);
scanf("%f",¬a[i]);
}
system("cls");
printf("\n\nLas notas ... |
c9dd7435aa6e6ab4eb0df245d1ca8115cc5ac5fa | 1cced54f6e53abbacc4fb23dd3ec09f42aff0476 | /www/chromium/files/patch-ui_events_devices_x11_device__data__manager__x11.cc | 4a784c44b10a83c0740f5bbc1b08698c68f985b3 | [] | no_license | moench-tegeder/freebsd-chromium | 6087d9197496b83acb2a438413fa903e04e5464b | c23d3a57bc9c2798572e1e107754fcfd531bb44b | refs/heads/master | 2020-12-07T05:24:38.771019 | 2017-03-17T12:42:43 | 2017-03-17T12:42:43 | 34,213,018 | 0 | 0 | null | 2015-04-19T15:51:27 | 2015-04-19T15:51:26 | null | UTF-8 | C++ | false | false | 687 | cc | patch-ui_events_devices_x11_device__data__manager__x11.cc | --- ui/events/devices/x11/device_data_manager_x11.cc.orig 2017-03-09 20:04:49 UTC
+++ ui/events/devices/x11/device_data_manager_x11.cc
@@ -834,6 +834,8 @@ void DeviceDataManagerX11::SetDisabledKe
}
void DeviceDataManagerX11::DisableDevice(int deviceid) {
+ NOTIMPLEMENTED();
+#if !defined(OS_BSD)
blocked_devices... |
ea97b19f1ddbf34936773fa552b3d1a27efd51bc | bb5609bff7ae6f346fa2d0df80d196275994dd2a | /aapris/URStest/URStest.ino | 1ca73c4b97412f750276821a7224e8650584cebd | [
"MIT"
] | permissive | VekotinVerstas/UimaRantaSensori | b6f6e928a34faff65f1e5e7c343db1a9e1f15377 | 45dadd2e446346e356f349d26ddc23ef02407a1b | refs/heads/master | 2020-03-10T00:24:50.265946 | 2018-04-12T07:21:56 | 2018-04-12T07:21:56 | 129,080,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,263 | ino | URStest.ino | #include "settings.h"
#include <Sodaq_RN2483.h>
#include <Wire.h>
#include <Sodaq_SHT2x.h>
#include <BH1750.h>
#include "BlueDot_BME280.h"
#include <ArduinoJson.h>
#define debugSerial SerialUSB
#define loraSerial Serial2
#define NIBBLE_TO_HEX_CHAR(i) ((i <= 9) ? ('0' + i) : ('A' - 10 + i))
#define HIGH_NIBBLE(i) ((i ... |
451ae73579972dd99ab154ec4d8565aefa344880 | 775da71d6a07fd60396b6e8ffb6572cba09339d5 | /Innovation.h | 992220f9f8e8d0d8116f50a37e55826bdf6debf2 | [] | no_license | jmkl009/neuroevolution | 953b74fce28925812724bbd9aab807da09a97a2c | 2b28cd865d87f1f9a099de5949932e4a1369d7dd | refs/heads/master | 2020-03-27T13:38:44.057699 | 2018-08-29T15:37:52 | 2018-08-29T15:37:52 | 146,620,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | Innovation.h | //
// Created by WangJingjin on 2018/7/16.
//
#ifndef SRC_INNOVATION_H
#define SRC_INNOVATION_H
#include <unordered_map>
#include <List>
#include <google/dense_hash_map>
struct pairhash {
public:
inline size_t operator()(const std::pair<int, int> &p) const {
size_t a = p.first;
size_t sum = a + ... |
e3ab0942535ee549d25fcf4be423b67612563f55 | 0f30d43960d46961688497af9004c2f154d71877 | /core/target/cpp/ts/include/thx/bigint/DecimalImpl.h | 885b99f391cbebb4aabc072f616bc3a51d9a5c41 | [
"MIT"
] | permissive | mboussaa/haxe-testing | 77d2c44596f92d3b509ad2e450f61d2e640eb9a3 | 930bd6e63c8cb91a4df323d01ae518d048c089ba | refs/heads/master | 2021-01-17T10:20:07.126520 | 2016-06-02T10:00:49 | 2016-06-02T10:00:49 | 59,005,172 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 4,207 | h | DecimalImpl.h | // Generated by Haxe 3.3.0
#ifndef INCLUDED_thx_bigint_DecimalImpl
#define INCLUDED_thx_bigint_DecimalImpl
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(thx,bigint,BigIntImpl)
HX_DECLARE_CLASS2(thx,bigint,DecimalImpl)
namespace thx{
namespace bigint{
class HXCPP_CLASS_ATTRIBUTES DecimalImpl_obj : pub... |
38808242655a3cbfca49ae233c6945655fe3df97 | 888ff1ff4f76c61e0a2cff281f3fae2c9a4dcb7b | /0/0/10/14.hpp | 559323a5f3ce56a4881b2a8a9aba5f4a9d6064cc | [] | no_license | sanjusss/leetcode-cpp | 59e243fa41cd5a1e59fc1f0c6ec13161fae9a85b | 8bdf45a26f343b221caaf5be9d052c9819f29258 | refs/heads/master | 2023-08-18T01:02:47.798498 | 2023-08-15T00:30:51 | 2023-08-15T00:30:51 | 179,413,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,520 | hpp | 14.hpp | #pragma once
#include "leetcode.h"
//class Solution
//{
//public:
// string longestCommonPrefix(vector<string>& strs)
// {
// if (strs.size() == 0)
// {
// return string();
// }
//
// int length = INT_MAX;
// for (auto& s : strs)
// {
// length = ... |
9727cd542882f80898dd91b6461a1baa74bd5ab3 | 39299ee4e29a824ffae27311ce4f7145da61523d | /BestWorstAntSystem.h | 2bc2ad5deb4296b87595bef4960bcd29c875a9fc | [] | no_license | chengjiji/ants5 | a5ff963b944bd46ef3d7b5934ffe83896beccc1f | 210362793eb72a696a608e08c09c462e8815312b | refs/heads/master | 2023-04-06T02:58:04.047096 | 2014-07-12T22:20:50 | 2014-07-12T22:20:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | h | BestWorstAntSystem.h | #pragma once
#include "cantsystem.h"
class CBestWorstAntSystem :
public CAntSystem
{
CAnt RestartBestAnt;
int worstIndex;
int Restart;
public:
CBestWorstAntSystem(int noNodes, int noAnts , MatrixArrayTypeInt *distanceMatrix);
virtual ~CBestWorstAntSystem(void);
public:
virtual void updatePheromones();
void ... |
d18d9f6e0584539d48b4f5f1079c5585cd611270 | d40efadec5724c236f1ec681ac811466fcf848d8 | /branches/antipodes/code/wxfred2/commandbriefingeditor.h | 34b787b896d8a877bc562ce416e48c1e9719f2bb | [] | no_license | svn2github/fs2open | 0fcbe9345fb54d2abbe45e61ef44a41fa7e02e15 | c6d35120e8372c2c74270c85a9e7d88709086278 | refs/heads/master | 2020-05-17T17:37:03.969697 | 2015-01-08T15:24:21 | 2015-01-08T15:24:21 | 14,258,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | h | commandbriefingeditor.h | /*
* Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project.
* You may not sell or otherwise commercially exploit the source or things you
* create based on the source.
*/
#ifndef _COMMAND_BRIEFING_EDITOR_H
#define _COMMAND_BRIEFING_EDITOR_H
class dlgCommandBriefingEditor : public wxDialog... |
e0a5e8d068edbff5f3d5ed85de8764878c594995 | 6c03d27b3b339c5cfba56511203c661f69897a0a | /solutions/2170.cpp | 06f63dda7d70c27740a52516ab3efe2d5cec2fdc | [
"MIT"
] | permissive | JohnataDavi/uri-online-judge | d4fb181caf0afb8b671d9d7fef50859be022d24d | c62772060a113554833622ff579abcdb4d748274 | refs/heads/master | 2021-08-29T14:08:38.781567 | 2021-08-18T00:07:27 | 2021-08-18T00:07:27 | 159,575,904 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 372 | cpp | 2170.cpp | #include<iostream>
#include<cstdio>
using namespace std;
int main(){
int cont=1;
long int n1, n2;
float r=0;
while(cin>>n1>>n2){
r = (float) ((n2-n1)*100)/n1;
cout << "Projeto "<< cont << ":" << endl;
printf("Percentual dos juros da aplicacao: %.2f", r);
cout << " %\n";... |
befa758f32e2b93f7ff45f98a9e43c832cc58f26 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_13041.cpp | 374fe2c4f79a17a23a821092deecb771b56401cb | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 62 | cpp | Kitware_CMake_repos_basic_block_block_13041.cpp | (p = val; p < eol; p++) {
if (isspace(*p))
return res;
} |
662bacac33dbcfd907dfb6585d5ff9392b7c29d0 | b3da036ba8ce88abac8d1fd2aec18ad7947801b5 | /common/protocol/IGTopicMsgManager.h | 187a30fb708f5b505833033c78825d1d20420bbf | [] | no_license | zhangchuhu/serviceframe | 3272f14eb422b64177e35076f87d80cc7a8f2d3b | 98e58a18c1290f2dd5942f27ec2925ffca68b33b | refs/heads/master | 2021-01-10T01:43:08.684121 | 2016-01-29T10:44:15 | 2016-01-29T10:44:15 | 49,189,265 | 0 | 2 | null | null | null | null | GB18030 | C++ | false | false | 2,755 | h | IGTopicMsgManager.h | #ifndef IGTOPICMSG_MANAGER_H
#define IGTOPICMSG_MANAGER_H
//#include <vector>
#include "common/protocol/PGTopicMsg.h"
namespace protocol
{
namespace gmsgcache
{
class IGTopicMsgManagerWatcher
{
public:
// 删除某成员在群或组的所有言论(全部主题和回复)的动作的响应
// rescode : 如果成功,返回 RES_SUCCESS
// 否则为其他 RES_ER... |
221be6677e297e741143a4f14fdf6f621a7f1702 | b972a9f3f59e83d23d3b6c8a1e1d81e9af564c7e | /PROG/TP12/src/ambulance.h | 85f25d50bf131278a1da14230b706e6cbf73c180 | [] | no_license | AmarOk1412/TPS | 7b47c90894de882a9c199d11f968a1b349801bc8 | c50bde184133bf20bafe0ced7feebe8342ffc3c3 | refs/heads/master | 2021-01-01T17:10:55.333202 | 2015-06-05T09:05:05 | 2015-06-05T09:05:05 | 31,963,746 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 545 | h | ambulance.h | #ifndef _AMBULANCE_H
#define _AMBULANCE_H
#include "auto.h"
#include <iostream>
class Ambulance : public Auto
{
public:
/** @param lg : longueur du véhicule
@param nbp : nombre de personnes transportées
*/
Ambulance(unsigned int nbp = 1, bool tT=false);
virtual Vehicule* Clone() const;
/// destructeu... |
c8e3dc2ed35126dea7a8b698bc8b62c52a5f6ff5 | 9eedf6cb11630af246bee83d33c3e3d5415e1c8f | /Disk_Scheduler/inc/Hard_Drive.hpp | 98651a83cf50a0b32e7cdbecd211b78d60df27f6 | [] | no_license | JakubSzwedowicz/Operating-Systems-Algorithms | cdfccb790ff6a614123df1597d59cab36c9f2a2e | b5baef37f9c3cfc72890c6184638d06273e724f6 | refs/heads/main | 2023-04-25T10:29:49.172654 | 2021-05-07T20:32:11 | 2021-05-07T20:32:11 | 356,399,036 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,712 | hpp | Hard_Drive.hpp | //
// Created by jakub on 06.04.2021.
//
#ifndef HARD_DRIVE_ACCESS_ALGORITHMS_HARD_DRIVE_HPP
#define HARD_DRIVE_ACCESS_ALGORITHMS_HARD_DRIVE_HPP
#pragma once
#include "Disk_Plates_Set.hpp"
#include "IAlgorithm.hpp"
#include "Order.hpp"
#include "IHard_Drive.hpp"
#include <memory>
#include <sstream>
#include <tuple... |
68cec8c9c35b8816d9f1346290d5bee8d92366a9 | 1d18bbc37229f905e105a65e295f627f8417823b | /BaconBox/Line.h | 3336a5fbb741cf2dd8c6be237843f03dafbcc90a | [] | no_license | anhero/BaconBox | 57b82a889fe12f5524267a9bb5035973d054706d | afa4b97d86be876f8375f3898667aabb3610c52c | refs/heads/develop | 2021-01-17T09:35:05.986399 | 2017-04-07T04:36:43 | 2017-04-07T04:36:43 | 22,391,368 | 1 | 0 | null | 2015-03-12T19:21:30 | 2014-07-29T18:49:08 | C++ | UTF-8 | C++ | false | false | 482 | h | Line.h | /**
* @file
*/
#ifndef BB_LINE_H
#define BB_LINE_H
#include "BaconBox/MovieClipEntity/MovieClipEntity.h"
#include "BaconBox/Components/LineComponent.h"
namespace BaconBox {
/**
*
*/
class Line : public MovieClipEntity, public LineComponentProxy
{
public:
BB_ID_HEADER;
Line(const std::string & patt... |
0242f11f8d116fd1c4dd0ed033ea38401632bf13 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-storagegateway/source/model/UpdateSMBSecurityStrategyRequest.cpp | 30ac9fb55c68514554e675e479c3b2e9e9a9b46c | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,271 | cpp | UpdateSMBSecurityStrategyRequest.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/storagegateway/model/UpdateSMBSecurityStrategyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::StorageGateway::Model;
using namespace ... |
2fe21f0d608fac546abf537ac3ab497beaa76b68 | 888aa286a0650a69267701053b474301c3e0d481 | /ps3 プログラミング/PS3/consoleid 総当り/サインイン クラン/ソース/np_conf.cpp | 7d28cb32fc83806007f75599bcf83fef9e91213d | [] | no_license | tanakatarou9123o/memo | d890e3f8f022f43d54834b7f078e104de38e9161 | a25871af0da382d2944ff9b4c4785b5313640f97 | refs/heads/master | 2021-01-17T10:33:14.139298 | 2016-10-12T11:32:57 | 2016-10-12T11:32:57 | 59,308,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,377 | cpp | np_conf.cpp | /* SCE CONFIDENTIAL
* PlayStation(R)3 Programmer Tool Runtime Library 400.001
* Copyright (C) 2009 Sony Computer Entertainment Inc.
* All Rights Reserved.
*/
#include "np_conf.h"
static const SceNpCommunicationId s_communication_id = {
{'N','P','X','S','0','0','0','0','2'},
'\0',
0,
0
};
static const SceNp... |
ccfeae464dc72c83898d6db754be2036f815de9e | ea7f49f4bb6c1d5384f2487b6886625b8b279aa4 | /particle_filter.hpp | 983e7b07fa8cdf26f52ecd3b576e136d8d0c9e96 | [] | no_license | Ekleog/TIPE | e121386476e7a4401853f6e453ea756972882772 | c39993b5395962b11db2c33c9123842827209632 | refs/heads/master | 2020-05-24T15:38:44.682064 | 2014-01-04T14:58:49 | 2014-01-04T14:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | hpp | particle_filter.hpp | #ifndef PARTICLE_FILTER_HPP_INCLUDED_
#define PARTICLE_FILTER_HPP_INCLUDED_ 0
#include <cstdint>
#include <functional>
#include <random>
#include <vector>
namespace lg {
using std::uint32_t;
// Documentation for the template parameters is given down, in the
// static assertions
template <typename Particle, typename... |
441d628a8a6bbea9effda537c500d83d18fe2e74 | 98c9087c563688a690dda6d3f06b45edbb6650fc | /sem1/hw7/hw7.2/hw7.2/parseTree.h | ae0a4109e7f87520cadcba06f602d5066dbcec26 | [
"Apache-2.0"
] | permissive | Daria-Donina/spbu1stYear | 0d80bed8ba4597bd65dcec76354a2d37df61c6fe | 8853fb65c7a0ad62556a49d12908098af9caf7ed | refs/heads/master | 2020-03-30T04:37:32.773441 | 2019-04-14T13:29:51 | 2019-04-14T13:29:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | h | parseTree.h | #pragma once
#include <vector>
#include <fstream>
struct Node
{
int data = 0;
Node *leftChild = nullptr;
Node *rightChild = nullptr;
};
struct ParseTree
{
Node *root = nullptr;
};
//Fills the parse tree
void fillParseTree(std::ifstream &inputData, ParseTree *tree);
//Creates new parse tree
ParseTree *createPars... |
9de256b33924a0feb77136eddc7032e2d4952d8a | 99a2e120981f2be236d021d56119bf0258bd4e1a | /Hotel.h | 990fc09cb83f79de52db0502eca465fae8121f47 | [] | no_license | justjuay/222Assignment2 | 8b5bb80c3e0826e706bae9d457bb67293aed1520 | b80db72fa3f819b535dd5dd6a8f8b3981822954c | refs/heads/master | 2020-04-15T15:32:39.988775 | 2015-02-07T04:33:22 | 2015-02-07T04:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | h | Hotel.h | /*
* File: Hotel.h
* Author: desmond
*
* Created on February 6, 2015, 10:11 PM
*/
#ifndef HOTEL_H
#define HOTEL_H
class Hotel {
public:
Hotel();
virtual ~Hotel();
int getID() const;
char* getName() const;
char* getCountry() const;
char* getDistrict() const;
int getStars() cons... |
18a6bb95de8f8d30b71ac0c796491f31f49a22fd | 53882bfbc9bcaa316d445972872ed421e3eb6212 | /src/items/weapon.cpp | 7e82b42515c52a3f7a0926be3b5cfcbd5ef71874 | [] | no_license | benquach16/SnS-TabletopRPG | 4f1e97b489833adbd3f4e724a25b5f98155d1d19 | 1ae5df8142fee61b69d66713b9761ef287bfd45d | refs/heads/master | 2021-06-25T00:51:05.834224 | 2021-03-01T02:03:53 | 2021-03-01T02:03:53 | 191,468,819 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,835 | cpp | weapon.cpp | #include <assert.h>
#include <fstream>
#include <iostream>
#include "3rdparty/json.hpp"
#include "creatures/creature.h"
#include "utils.h"
#include "weapon.h"
WeaponTable* WeaponTable::singleton = nullptr;
using namespace std;
const string filepath = "data/weapons.json";
Weapon::Weapon(const std::string& name, con... |
de6984e24d97337e2a7d213048dadd8e2b9a2eca | 5055fec053570b2e3d29f12ef01f74d6f0e0c1e4 | /C++/delete-columns-to-make-sorted.cpp | e3d8716aafb7cc2a69e77fbd3c1684f48d6e8e9e | [] | no_license | kmather73/LeetCode | 395f7e930a999253949cd1399d160cb808c5549f | a20d2632342a508686a26efe930ee68d6bc4a561 | refs/heads/master | 2021-04-15T09:09:33.809620 | 2020-03-15T22:32:23 | 2020-03-15T22:32:23 | 35,895,372 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 411 | cpp | delete-columns-to-make-sorted.cpp | class Solution {
public:
int minDeletionSize(vector<string>& A) {
int d = 0;
int n = A[0].size();
int m = A.size();
for(int i=0; i < n; ++i)
{
int j=0;
for(j=1; j < m; ++j)
{
if(A[j][i] < A[j-1][i]) break;
... |
9527fd6fad885428b8b9453c85cf6aea2a664462 | e0c3ab98fd1c1afb4f1ffe1ea649c9a0df084c63 | /zephyr.graphics.dx11/RasterizerState.cpp | 5535b00a55de79c18732bd91a9b3ca9e76e6a37c | [] | no_license | s059ff/ZephyrEngine | 6b9e28fb3cb0f8d90e0cba73b758c33ce77a0137 | b484258119ecff0f51a785fa02e9c4d4594ddf2a | refs/heads/master | 2020-03-22T14:20:23.452845 | 2018-07-08T23:44:42 | 2018-07-08T23:44:42 | 110,549,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | cpp | RasterizerState.cpp | #include <d3d11.h>
#include "zephyr.graphics.dx11\GraphicsDevice.h"
#include "zephyr.graphics.dx11\enums.h"
#include "RasterizerState.h"
#define this (*this)
#define device GraphicsDevice::Instance.Device
#define context GraphicsDevice::Instance.DeviceContext
namespace zephyr
{
namespace graphics
{
... |
fb3d4bd340d6c4f0def40b1d915197403027067c | f4f82289d3c3fb7b34da170aeea8a0d05aebf148 | /source/events/EventManager.h | 4cff0ec32b8f89bae952362e74d67451d7dc3fde | [
"MIT"
] | permissive | freneticmonkey/epsilonc | 4b8486ef3a66f9f11dd356d568c4f6833e066150 | 0fb7c6c4c6342a770e2882bfd67ed34719e79066 | refs/heads/master | 2021-01-18T15:16:34.845535 | 2015-02-06T11:57:01 | 2015-02-06T11:57:01 | 21,097,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 716 | h | EventManager.h | #pragma once
#include "EpsilonCore.h"
#include "logging/Logging.h"
#include "events/Event.h"
#include <SFML/System/Clock.hpp>
namespace epsilon
{
typedef std::map<std::size_t, EventBase *> EventMap;
class EventManager
{
public:
static EventManager& GetInstance(void)
{
static EventManager instance;
re... |
c49e7a63c06fc50a3722c671da4f7d951ce50c9e | f5b77cbc260b2269d6c87d6b5f826ac0b6db9990 | /code/arduino/LED.h | c7766d2391c79bea143c8e7071195521b0a97fb2 | [
"MIT"
] | permissive | TheBeachLab/nerd-watch | d7bdcc25953970abf16480e46c8c2a82026138ab | cb072f2800a4e04e5fa16a8cd9e3f28a65176636 | refs/heads/master | 2021-10-11T10:50:17.899355 | 2019-01-24T22:58:25 | 2019-01-24T22:58:25 | 36,804,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | h | LED.h | #ifndef LED_H
#define LED_H
#include "Arduino.h"
class LED {
public:
typedef enum {
OFF,
ON,
SMOOTH_OFF,
SMOOTH_ON,
THROB,
BLINK,
MOMENTARY,
MOMENTARY_DOWN,
} Mode;
LED( uint8_t pinNumber);
LED();
int GetMode() {
retur... |
363a6ddb27948cfb6bc9962e91601a801d7bd783 | 07306d96ba61d744cb54293d75ed2e9a09228916 | /External/NaturalMotion/common/XMD/include/XM2/inl/sse2/Vector2SOA.inl | fe2eb6823e3300bdd1e8539b3168d56980348216 | [] | no_license | D34Dspy/warz-client | e57783a7c8adab1654f347f389c1dace35b81158 | 5262ea65e0baaf3f37ffaede5f41c9b7eafee7c1 | refs/heads/master | 2023-03-17T00:56:46.602407 | 2015-12-20T16:43:00 | 2015-12-20T16:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,915 | inl | Vector2SOA.inl | #ifdef _MSC_VER
# pragma once
#endif
#ifndef XM2_SSE2_VECTOR2SOA__INL__
#define XM2_SSE2_VECTOR2SOA__INL__
#if (XM2_USE_FLOAT)
# error SSE2 double precision routines included when set to build using floats
#endif
#ifndef XM2_USE_SSE
# error SSE2 routines included when set to build with FPU
#endif
namespace XM2
{
//----... |
312762f0e8f5a0abb96f039c60a40a87eb709896 | f5af09559d703e9fac25266b0d86578506af7c65 | /q.cpp | cc3c44d5d69760f45907eb64f186df4430c7b960 | [] | no_license | DrekAZ/Contest | 483e71c6fad7398acd2d71e19d480ef4ca6631c8 | 6e6cbcb18de46646cddd87f7d7bb4332fe3658d9 | refs/heads/master | 2021-06-24T13:54:53.957507 | 2021-02-25T16:47:24 | 2021-02-25T16:47:24 | 207,068,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | q.cpp | #include <iostream>
#include <cstdio>
#include <cmath>
#include <ctime>
#include "MT.h"
using namespace std;
#define N 1000002
int n;
int data[N];
int ascend(int a, int b, int t)
{
if(t==0) return a < b;
else return a <= b;
}
/*****************************/
/* データの比較(降順) */
/* a < bの場合に0以外(真) */
/************... |
6e913b78d98716b1ea2e9d1d9cc2636b0e7ab9e0 | 836c150eb5e1f69db88fe39e1a5764421664e711 | /src/coord.hpp | c3164f54c051f1a655e48e0f3e4f4f028a440606 | [
"MIT"
] | permissive | heavywatal/tumopp | fb8507e19e0712249ba95b10a1845916c2756467 | 6aad3b0a13d4f46d2c9b6fb2873ba3cfd8fff398 | refs/heads/master | 2022-07-19T21:50:13.972976 | 2022-07-11T05:37:16 | 2022-07-11T05:37:16 | 38,355,629 | 20 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,995 | hpp | coord.hpp | /*! @file coord.hpp
@brief Coordinate system
*/
#pragma once
#ifndef TUMOPP_COORD_HPP_
#define TUMOPP_COORD_HPP_
#include <array>
#include <vector>
#include <random>
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////
namespace tumopp {
//! Maximum dimensions
constexpr unsigned MAX_DI... |
8225eb8f47fd6546d1cff88ed28eed9cc940a574 | 379ac4db4a9b5e958bfa462a9bb609ded9b0f6c9 | /ALL_CPP_CODES/at.cpp | ff4e7677792e970ccf9432ba1b026b5b49b693d3 | [] | no_license | GolamRabbani20/CPP | ad395e7afbde89839596944ec1dbfe2323505458 | 24c205131ac2e507fd8195a794b43247abaf9d58 | refs/heads/master | 2023-03-25T12:15:15.325028 | 2021-03-15T18:43:36 | 2021-03-15T18:43:36 | 348,081,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | at.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
vector<char>v1;
vector <char> v2;
char x;
for(int i=0; i<5 ; i++){
cin >> x;
v1.push_back(x);
}
for(int i=0; i<7 ; i++){
cin >> x;
v2.push_back(x);
}
v1.swap(v2);
for(int i=0; i<7 ; i++){
... |
291254944b380aa2895c8759313f3b0b598dc0b4 | 9e6e35551db76955bcb914d9b4ee1ff9f63d7ba1 | /src/btree_internal_fields.h | 7cb4272f04ed86fc43b8da2ce789c17f727b82c1 | [
"Apache-2.0"
] | permissive | romz-pl/cpp-btree | 6e869c7e5dcbb5cb2d7ba6b2b56ce4e5b68d01d2 | 129fc80c78f7b86207bc9f7d371e431fabd2e742 | refs/heads/master | 2020-03-11T04:04:20.765846 | 2018-04-17T19:37:11 | 2018-04-17T19:37:11 | 129,767,508 | 0 | 0 | Apache-2.0 | 2018-04-17T19:37:12 | 2018-04-16T15:43:24 | C++ | UTF-8 | C++ | false | false | 584 | h | btree_internal_fields.h | #ifndef ROMZ_CPP_BTREE_INTERNAL_FIELDS_H
#define ROMZ_CPP_BTREE_INTERNAL_FIELDS_H
#include "btree_leaf_fields.h"
namespace btree
{
template < typename Params >
class btree_node;
template < typename Params >
struct btree_internal_fields : public btree_leaf_fields< Params >
{
// The array of child pointers.
... |
ac1a4ba88c9f3862dbf85eb6a170859dfa013ccf | 0cefa0f7b11e6dcab7982e7b09af8c0dc5f4128e | /trunk/source/Server/Common/Util/FolderManipulationLock.cpp | 31810ba8049bfe614fea620f7cf68708ba36decd | [] | no_license | nberardi/hMailServer | d14dc7070326c231c235ce9ee847d364bcf7c163 | ddf827f765f0e8c1d30d4a7eb1cac2c2f7c4fc88 | refs/heads/master | 2021-01-23T08:56:10.446270 | 2012-01-17T16:44:19 | 2012-01-17T16:44:19 | 2,921,656 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,279 | cpp | FolderManipulationLock.cpp | // Copyright (c) 2010 Martin Knafve / hMailServer.com.
// http://www.hmailserver.com
#include "stdafx.h"
#include "FolderManipulationLock.h"
#ifdef _DEBUG
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#endif
namespace HM
{
std::set<std::pair<int, int> > FolderMani... |
399949d722df82816fdd3ae76f9f55cc801e63cf | 613fa33cba109498a4e7f27d01238c1f7795ce3d | /project/structure/Function.cpp | 239545ec38862107607774109739ee9ac970eb0f | [] | no_license | SiyingJIANG/Compilateur | 5c496904a4575ad8248caebfd8358fa0da648355 | 67d18a9e475d806d568070700619a2b68cabce37 | refs/heads/master | 2020-03-31T19:07:10.337660 | 2018-10-10T20:27:41 | 2018-10-10T20:27:41 | 152,485,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,546 | cpp | Function.cpp | //
// Created by Gheorghe on 15-Mar-18.
//
#include <iostream>
#include "Function.h"
#include "IR/CFG.h"
Function::Function(Type returnType, string name, const vector<Parameter *> &vectorParameter, Bloc * bloc)
:Declaration(returnType,name), vectorParameter(vectorParameter), bloc(bloc), scope(new Scope())
{}
Fun... |
4fa8904ec21c0d35637d4a1991d2f9f3d14c018c | 6fde2629fddfcd117daa44428228efefb67dd275 | /c/pointer_2/pointer_2/pointer_2.cpp | 414b90613e92a82a1e86efa247a5dc061b3979d8 | [] | no_license | i131313/visual-stdio_C | 78fcda401b9bd75d9ab40831b09e1aa8ddcb2c81 | 7b1c62d2d5ea0a5bb263df4ba747cb87e6a4e0b3 | refs/heads/master | 2021-01-09T20:41:35.697240 | 2016-07-17T06:26:18 | 2016-07-17T06:26:18 | 63,517,736 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 136 | cpp | pointer_2.cpp | #include<stdio.h>
int main(void)
{
char c[3] = {'a', 'b', 'c'};
int j;
for(j = 0; j < 3; j++)
printf("&c[%d]: %p \n", j, &c[j]);
} |
ea57cee24a56df43659a97d3a7161eb837c287d3 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/libwebrtc/test/pc/e2e/analyzer/video/multi_reader_queue_test.cc | 6ac6c1391fc367762ef8b9e3ff112ecb288107a7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 5,483 | cc | multi_reader_queue_test.cc |
#include "test/pc/e2e/analyzer/video/multi_reader_queue.h"
#include "absl/types/optional.h"
#include "test/gtest.h"
namespace webrtc {
namespace {
TEST(MultiReaderQueueTest, EmptyQueueEmptyForAllHeads) {
MultiReaderQueue<int> queue = MultiReaderQueue<int>(10);
EXPECT_EQ(queue.size(), 0lu);
for (int i... |
3e865b532259d9e7ad7fbea3313b9111365e1d77 | 9d82b9c6cfb04b2c0aa250ba240ceb2c37e1a115 | /include/cfdVector.h | 4522b47c523e0999169c64456d82861136c0e6d3 | [
"BSD-2-Clause"
] | permissive | nopech/Nalu-Wind_Fork | 741dc7a287d9ebafba6f4af629c5702fb96f7701 | 93ee7c0d41f79388e5b4fc7d29f29d2b53f69466 | refs/heads/master | 2020-08-01T03:58:08.570074 | 2019-09-28T09:16:17 | 2019-09-28T09:19:35 | 210,854,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,169 | h | cfdVector.h | /*
* File: cfdVector.h
* Author: Raphael Lindegger
*
* Created on September 25, 2019, 10:44 AM
*/
#ifndef CFDVECTOR_H
#define CFDVECTOR_H
#include <cstdlib>
#include <iostream>
#include <cmath>
namespace sierra {
namespace nalu {
typedef double scalar;
typedef int label;
/**
* Vector class to make some ni... |
7819537295147363d29afea6fa108d34e7341cff | 186e22066d1648dcb02e81c2e4f6933c9b4187e6 | /Carpet.h | 42dabba455f8531eb6e21da42e1c407aa7da532b | [] | no_license | awthomps/CSE168Final | 64e26ef22777205edd782268309e15a898f4d2d6 | 5d396278838283169b148375d93637ff56c81115 | refs/heads/master | 2021-01-10T20:14:25.234245 | 2014-06-11T09:05:52 | 2014-06-11T09:05:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 651 | h | Carpet.h | #ifndef CSE168_CARPET_H
#define CSE168_CARPET_H
#include "ProceduralTexture.h"
class Carpet : public ProceduralTexture {
public:
Carpet() : ProceduralTexture() {
unsigned int size = 3;
Color colors[3];
colors[0] = Color(.04, .3, .02);
colors[1] = Color(.5, .2, .5);
colors[2] = Color(1.0, 0.2, 0.1);
Set... |
aecebe527f2bf53448af25f2ee6f3ae18f225bff | c8c57a4303dfab48001ad1ec14bd85dfa97a1636 | /recursion_sum.cpp | a0e43df4668df95cd07a70739a21425f755d0e63 | [] | no_license | Al-AminJoy/C-PLUS-PLUS | 4a974e424280cee14a7b8f110a4cacdac3bf999d | d5f64e992b8f87c9c726be3280a74043da870a2c | refs/heads/master | 2023-01-29T15:34:27.794940 | 2020-11-23T16:43:46 | 2020-11-23T16:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | recursion_sum.cpp |
#include<bits/stdc++.h>
using namespace std;
int prac(int Num)
{
if(Num==1)
{
return Num;
}
else
return Num+prac(Num-1);
}
int main()
{
int num=prac(5);
cout<<num;
return 0;
}
|
a29192450221d32d76d0cf241f7df59a1affd3b6 | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/232/pa | 85287c4fb179f6aec7a18bac20586ea5d8bb9506 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104,623 | pa | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
4b5967fab933e5c5f83f1e2e491d0ae659a2dbe3 | 3c65a5f203f2d4b02ff9c1bdd999c9e3b18007e7 | /plugin/gui/text_dialog.cpp | e1956e81698b7e81c33d47bb19a794879e9be0e6 | [
"BSL-1.0"
] | permissive | cristivlas/zerobugs | 07c81ceec27fd1191716e52b29825087baad39e4 | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | refs/heads/master | 2020-03-19T17:20:35.491229 | 2018-06-09T20:17:55 | 2018-06-09T20:17:55 | 136,754,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,574 | cpp | text_dialog.cpp | // -------------------------------------------------------------------------
// This file is part of ZeroBugs, Copyright (c) 2010 Cristian L. Vlasceanu
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// ------... |
847411474f4aaff0b737ce19c2508d0957c606aa | 9a1c649e8023ad8cd0b3c95eee7315445b5f5237 | /src/Game/Object/MoveObject.cpp | db24d37c6ccf57bb6c69d2adb60a23d4ea647526 | [] | no_license | peperontino39/commentgame | b1e218aa616e1a4a8eeb35ed08d3f4ebab853bfa | ce871edbe4c5a33557d5565b7ba67f3e75cfdd55 | refs/heads/master | 2021-01-17T13:00:15.631165 | 2016-07-04T04:53:20 | 2016-07-04T04:53:20 | 56,933,637 | 0 | 29 | null | 2016-07-04T04:53:21 | 2016-04-23T18:08:53 | C++ | UTF-8 | C++ | false | false | 129 | cpp | MoveObject.cpp | #include "MoveObject.h"
void MoveObject::addpos(Vec2f _vec)
{
if (_vec.y() > 0) {
vec_.y() = 0;
}
this->pos += _vec;
}
|
80e3d886997c807ea2f3b2ce0acea83fe4051520 | 059ee9205cfe4ed153b873870d82ebd43ddfea38 | /BOJ10172.cpp | 39879ddc9bf824d5ac494f9eb6c88735ae05cd31 | [] | no_license | muzee99/Baekjoon_cpp | c09befd3f8d2b1a575645cac153d11ada38adf8c | 2d8b4ef234f848f192df37cc04d3443dc5b1f1eb | refs/heads/master | 2023-08-31T02:14:10.921211 | 2021-09-15T08:24:13 | 2021-09-15T08:24:13 | 345,878,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | BOJ10172.cpp | // BOJ10172_개
// 2020KB
// 0ms
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
string s = "|\\_/|\n|q p| /}\n( 0 )\"\"\"\\\n|\"^\"` |\n||_/=\\\\__|";
cout << s;
} |
01b3ad0ce8c4b4b996ee1375e6b6758a69cb7a3f | a80baeb35fe6af3955d7f919670e525159c53682 | /src/game/Tactical/Rotting_Corpses.cc | 730b4d305b1d0f6042b0259e85993d2189358a63 | [] | no_license | hb029/JA-2-Stracciatella | 6a1fcbfa27c20483f1e589569620c3cf863ddebd | 6032a92164807419e2d8f49032bda8f1f67f8799 | refs/heads/master | 2022-12-10T10:01:14.869697 | 2022-12-04T03:36:47 | 2022-12-04T03:36:47 | 4,460,383 | 2 | 0 | null | 2022-06-17T01:32:30 | 2012-05-27T06:58:10 | C++ | UTF-8 | C++ | false | false | 32,750 | cc | Rotting_Corpses.cc | #include "Directories.h"
#include "Font_Control.h"
#include "Lighting.h"
#include "Overhead.h"
#include "Soldier_Find.h"
#include "TileDef.h"
#include "VObject.h"
#include "Debug.h"
#include "Soldier_Control.h"
#include "Weapons.h"
#include "Handle_Items.h"
#include "WorldDef.h"
#include "Rotting_Corpses.h"
#include "T... |
d4f8a299bebb94f79429f4bdbcc019493f05f126 | 7fa7fe52016f436e064faafba840dbd6a1527958 | /workspace-c/mpich/homework/class_17_08_24/page_48_isendirecv.cpp | 4e61a08c200f4f036f1730c9e7d5e018de30eafc | [] | no_license | dunli/awful | 70c9ed6c72420381b09850099006978eac32e10a | c4b5537d57ba375d425b4eb8cc5a7f5c5e6997aa | refs/heads/master | 2021-03-29T23:22:23.047578 | 2017-09-22T13:40:54 | 2017-09-22T13:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | cpp | page_48_isendirecv.cpp | #include "mpi.h"
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int myid ,numprocs ,left ,right ,buf[10] ,buf2[10];
MPI_Request req ,req2;
MPI_Status status ,status2;
MPI_Init(&argc ,&argv);
MPI_Comm_size(MPI_COMM_WORLD ,&numprocs);
MPI_Comm_rank(MPI_COMM_WORLD ,&myid);
right = ... |
04432e8416328c19095489efe10092c019248a5c | 22cc28f5064cb219a09176168bb756413ac320e7 | /hw3/gs2D-omp.cpp | fbbaaed8b87c5c49d83283b84bac74c1ee2dc1e3 | [] | no_license | gyaneshg96/hpc | 3d1341dd75410e14dfb51e77f8c0817b21eafb50 | 80b3aff2054cb9a52c12397ff52ec28cf60e6e12 | refs/heads/master | 2023-04-21T20:41:40.399336 | 2021-05-16T03:22:25 | 2021-05-16T03:22:25 | 344,298,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,439 | cpp | gs2D-omp.cpp |
#include <stdio.h>
#include "utils.h"
#include <math.h>
#include <string>
#include <iostream>
#include <omp.h>
#ifdef _OPENMP
using namespace std;
double parallel_norm(double *x, long N){
return 0;
}
double norm(double *x, long N)
{
double normval = 0;
for (long i = 1; i < N-1; i++){
for (l... |
bd4fda9b05caf6d0f33ab07a59cdd29c6de19fb9 | 0817bf557c194d7776e74033fa8c7777e8680428 | /systray.h | c7ec8670750ebf93658e9d3eda03d9a3f0a1a5eb | [] | no_license | davidedmundson/qtsystemtraypreloadhack | 813c9c102f96e17f5c4f7d53ea01914e8b65706a | 90ae6ad2bddb02d34e73cb7137ce7126ee8c13c8 | refs/heads/master | 2021-01-18T18:32:21.924307 | 2015-04-22T13:21:36 | 2015-04-22T13:21:36 | 34,391,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | h | systray.h | #include <QIcon>
class QSystemTrayIcon
{
public:
QSystemTrayIcon(QObject * parent = 0);
QSystemTrayIcon(const QIcon & icon, QObject * parent = 0);
void setIcon(const QIcon &icon);
}; |
788c1846cbc7fd963d9d01b680f5a43065539a42 | f19a734ebeaa22ae0d8a0d347aea5810f159d9bc | /Bipartite Graph/BZOJ1562.cpp | a94aca8abf41c959bf0461f7abc9ead3a8596ecd | [] | no_license | iiyiyi/solution-book-till-2020 | 2d0b75dc9e1468d846b176551acaa2a930428afb | faf1c04735627df8ee600b55d72df9bec50089b5 | refs/heads/master | 2023-03-07T05:54:48.824987 | 2021-02-20T10:59:55 | 2021-02-20T10:59:55 | 340,558,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,619 | cpp | BZOJ1562.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
using namespace std;
const int MAXN=10000+500;
vector<int> E[MAXN],rE[MAXN];
int n,in[MAXN],visfr[MAXN],visto[MAXN],vis[MAXN],lk[MAXN],ans[MAXN],cnt=0;
void addedge(int u,int v)
{
E[u].push_back(v);
rE[v].push_back(u);
}
int... |
7c41574bd7b96879c6085dc0cb46699782bffe86 | 0984919a97d8f6c2074a6db99d9d2da65af8e7d3 | /Tarih.h | 86215782ab5820c0d94196dac4e1229f104c5e38 | [] | no_license | fulya35/OgrenciTakipSistemi2 | d0874690589e69b10fd4d136e1922b2013b00027 | 1e3f91c6dd6808d4fae4e9b531d5305ae1c1b1a5 | refs/heads/master | 2016-09-06T14:36:01.627620 | 2015-01-30T16:08:16 | 2015-01-30T16:08:16 | 30,079,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | h | Tarih.h |
#ifndef TARIH_H_INCLUDED
#define TARIH_H_INCLUDED
#include <iostream>
using namespace std;
using std::istream;
using std::ostream;
class Tarih
{
private:
int gun;
int ay;
int yil;
public:
Tarih(int=1,int=1,int=1900);
void gunAyarla(int);
void ayAyarla(int);
void yilAyarla(int);
int... |
e8a47302376fa0353268061a7fb5d7866941e09f | 1ccbb3d8cada7f5c4acf6b32f3396b95a91bb6ca | /SonicGame3Dv3/src/collision/QuadTreeNode.cpp | 1c374e0dc9c9327a01d32ae65ea2ecb15741fae4 | [] | no_license | jo9182/Sonic3DGamev3 | 980a59ce07e3848b3e8e462b79fe871923eba7bb | 4f40c27690f89be55701985855dde93be34b5ca8 | refs/heads/master | 2022-09-18T06:43:31.919326 | 2021-05-27T01:21:17 | 2021-05-27T01:21:17 | 308,197,647 | 0 | 0 | null | 2020-10-29T02:37:35 | 2020-10-29T02:37:34 | null | UTF-8 | C++ | false | false | 2,660 | cpp | QuadTreeNode.cpp | #include <list>
#include "quadtreenode.h"
#include "../engineTester/main.h"
#include "triangle3d.h"
QuadTreeNode::QuadTreeNode(float xBoundMin, float xBoundMax, float zBoundMin, float zBoundMax, std::list<Triangle3D*> pool, int depth, int depthMax)
{
topLeft = nullptr;
topRight = nullptr;
botLeft = nullp... |
550a15860e43cca938599c999c29d414d1b65778 | e468bd30c3f0dd99a7e3898bc51da7c48fc6c88d | /LibraryMcH/LibraryMcH/DoublyLinkedListWithoutHead.h | 6f11ebda77e9d4f300c70f26a3e3ff8cee6b8185 | [] | no_license | a75829415/LibraryMcH | 06851fa40a6c6a6c1f930c67d4ebb24fa84babcf | 19a122294622d895e7f270db03142ad44eb0e41f | refs/heads/master | 2021-01-12T12:21:13.738481 | 2016-10-31T17:15:12 | 2016-10-31T17:15:12 | 72,452,084 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,769 | h | DoublyLinkedListWithoutHead.h | /*
Author: McH
Date: 2016/10/27
Content: class template for doubly linked list without a "head node"
*/
#pragma once
#include "DoublyLinkedListBase.h"
namespace LinearList
{
//class for doubly linked list without a "head node"
template <typename T> class DoublyLinkedListWithoutHead : public DoublyLinkedListBase<T>... |
b9addbe2fe34d9605a8f2f3ba82725e55595a96b | 9677b58765daa00dbd4b42607a9ba07dba26a1db | /LintCode/128. 哈希函数.cpp | 1864ad2fb2e9d7b06287e41f775d1f8db68fbc88 | [] | no_license | LINxu233/Algorithm | 4ca9f9eb34093bd867cee73ce7a252d5033c1150 | fde9075da3da18eb2cb67b8c148e5879d0c74a1f | refs/heads/master | 2020-03-19T04:47:29.604845 | 2018-08-06T14:19:22 | 2018-08-06T14:19:22 | 135,866,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cpp | 128. 哈希函数.cpp | class Solution
{
public:
int hashCode(string key,int HASH_SIZE)
{
int n=key.length();
if(n==0)
return 0;
long ji_shu=1;
long result=0;
for(int i=n-1;i>=0;--i)
{
result=(result+(ji_shu*key[i])%HASH_SIZE)%HASH_SIZE;
ji_shu=(ji_s... |
94f83b1332fddd4e6953d087a9ee427b211f5422 | f44d3f85fe47e3214a20b279a624915f69dd770a | /speed_test/node1.cpp | 485e7cf340f3701351d54f1216cf96289d04c0c2 | [] | no_license | mkjaergaard/darc_component | d82d8c9bc0ac17fc0b1bbffe3dd1de551f2fb21c | 0b7d0a4d02a1d8b85a41e0a006ee8fb858057e91 | refs/heads/master | 2021-01-01T19:52:15.393809 | 2013-04-04T20:14:12 | 2013-04-04T20:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | node1.cpp | #include <darc/component_manager.hpp>
#include <iris/glog.hpp>
#include "my_component1.cpp"
int main(int argc, const char** argv)
{
iris::glog<iris::Info>("Node Running");
darc::component_manager mngr;
mngr.accept("zmq+tcp://127.0.0.1:5001");
mngr.connect("zmq+tcp://127.0.0.1:5002");
darc::component_ptr c1... |
cbd82d024f041e8af03845fc7d84bd6cb4169b05 | ddd30393b9abab40d0607db4f6e75123ba6257c0 | /ft_retro/move/IMovIA.class.hpp | cf35bfd4e2066ed1d67e610c856e1866dfad007c | [] | no_license | kuenane/42_Projects | 9db8e49725f791af26c064abed71ad3b2b2407d2 | 52038ee97265d75aaef44e62beb015c77633d0dd | refs/heads/master | 2021-08-26T08:36:58.022274 | 2017-11-22T15:45:42 | 2017-11-22T15:45:42 | 113,833,003 | 0 | 1 | null | 2017-12-11T08:32:17 | 2017-12-11T08:32:16 | null | UTF-8 | C++ | false | false | 1,739 | hpp | IMovIA.class.hpp | // ************************************************************************** //
// //
// ::: :::::::: //
// IMovIA.class.hpp :+: :+: :+: ... |
6bf27e82a1f3210131495b26d2fe7111c793c211 | faf0e20317d1fd0f9b0a0a24b4bd4cd26f3fd95a | /institute_c_programs/Task_2_for_Khutorova/like_db/adding_form.cpp | 75a3185fa4c7e7e9281a7849ed786ab03316916f | [] | no_license | AAYamoldin/TrainingPrograms | e1d048bb10173d37fc00fa9d2f9a60da82ae684c | 4415758eef638c79b5c53631e84966c7621e81b5 | refs/heads/master | 2022-12-23T23:37:43.643924 | 2022-12-09T07:43:26 | 2022-12-09T07:43:26 | 207,342,257 | 3 | 3 | null | 2020-04-05T13:13:31 | 2019-09-09T15:29:48 | HTML | UTF-8 | C++ | false | false | 2,721 | cpp | adding_form.cpp | #include "adding_form.h"
#include "ui_adding_form.h"
#include "mainwindow.h"
#include "createconnection.h"
adding_form::adding_form(QWidget *parent) :
QWidget(parent),
ui(new Ui::adding_form)
{
ui->setupUi(this);
}
adding_form::~adding_form()
{
delete ui;
}
void adding_form::on_finish_cancel_clicked()... |
bea767d69228779129e3dc54f420d9fcae47036a | 046f161cf8966b81bec442315f7e26e25d99c1ac | /PASSWORD.CPP | 0398a2c6e867c9139cd283fa03f1042a02f5e437 | [] | no_license | Balaji4/LetUsCPlusPlus | 759a9e7a73462b90539d7305cabe3d95d77cd7e9 | 4da78b2f20f0575c13e21d7a1d1257da46e75cb8 | refs/heads/main | 2023-01-21T03:06:04.713810 | 2020-11-26T21:15:43 | 2020-11-26T21:15:43 | 316,336,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | PASSWORD.CPP | #include<stdio.h>
#include<conio.h>
void main()
{
int i;
char a[14];
clrscr();
printf("Enter the string\n");
for(i=0;i<5;i++)
{
a[i]=getch();
printf("*");
}
printf("\n");
for(i=0;i<5;i++)
{
printf("%c",a[i]);
}
getch();
}
|
977935ecbc7ffe88bc54a5d4aa1282b0fdcba506 | 3ed697c4f06c970250ae088f359eea45820b356b | /DBezier/DBezier/DBezierView.h | 59e6692dbcd72c06e5ccb64e9af1f76dbb6a66f1 | [] | no_license | CG-AccelWorld/Graphics | 21aa11dfcf5c5c57b44ed21ea703f7876b4d02fe | 4d989a2665cf2bc9209fb27740bc1c42b4d6a127 | refs/heads/master | 2022-02-01T22:32:11.800319 | 2019-06-23T09:08:55 | 2019-06-23T09:08:55 | 179,039,525 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,338 | h | DBezierView.h |
// DBezierView.h : CDBezierView 类的接口
//
#pragma once
class CDBezierView : public CView
{
protected: // 仅从序列化创建
CDBezierView();
DECLARE_DYNCREATE(CDBezierView)
// 特性
public:
CDBezierDoc* GetDocument() const;
// 操作
public:
void DrawPolygon(CDC *);//绘制多边形
void DrawBezier(CDC *);//绘制Bezier函数
void DrawPic(CDC *)... |
2ae172637505db951172880cdc8c6f224613fd34 | 0e4b089b06b686cccae48ae3184d084bcd0e9f26 | /demo_index.cpp | bc8238f8a60b23649446d3051271d7982c2ba4fc | [] | no_license | lilei8630/oj | d132fcbedee77bf630b2403dfcfd5cab5042a847 | b235ea43e112699b56c609bd7440cf8b7281c3e0 | refs/heads/master | 2021-01-10T08:10:15.505093 | 2016-03-13T13:09:15 | 2016-03-13T13:09:15 | 53,147,201 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,245 | cpp | demo_index.cpp | /*线索二叉树(指向结点前驱和后继的指针为线索)*/
#include<stdio.h>
#include<stdlib.h>
#define MAX 100
#define Link 0 //左右孩子
#define Thread 1 //前驱和后继(线索)
typedef struct BiTNode //二叉树每个结点结构
{
char data;
int ltag,rtag;
struct BiTNode *lchild,*rchild; //左右孩子指针
}BiTNode,*BiTree;
BiTNode *s[M... |
efccdf8f63fea79b1cd3dd6e9c1e9b5e6b26842c | 3f7df81cd893fda2aa6e837a5dc0887831d71ee3 | /14/14/ex_11/Binary_tree.cpp | 1bfbdf41c384dee2e8841592fe2117ee41acf27b | [] | no_license | ronengi/BSPPP | 604e7e5dffe383cf9cc4753f0dc8fc1ad3284bdd | 7325439c5be85508e83f79c4b8a59f4ac7c53106 | refs/heads/master | 2021-09-22T11:04:10.499244 | 2018-09-08T23:24:07 | 2018-09-08T23:24:07 | 109,804,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,050 | cpp | Binary_tree.cpp | #include <stdexcept>
//#include <cmath>
#include "Binary_tree.hpp"
Binary_tree::Binary_tree(int levels)
: _levels(levels) {
if (_levels < 0)
throw runtime_error("negative number of levels in tree");
}
void Binary_tree::draw_lines() const {
int width = 1000, height = 800;
if (_levels == 0)
return;... |
9777b3890c25828a2cf20e815364145ebc25ca13 | 07c37f4b2ed9e568d54d8ffb8bb4213c90969001 | /src/harken/harken_size.h | d881988daf09d8674a33f7e497bd844ac5381610 | [] | no_license | keystonerose/harken | be95c5bcc1a92898dfa657b39ee5abc043b68c48 | 9efbea3618c96a985299a3b489fe5e67d6b2b5b0 | refs/heads/master | 2020-12-19T03:32:38.845110 | 2016-06-23T08:49:46 | 2016-06-23T08:49:46 | 59,895,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | h | harken_size.h | #ifndef HARKEN_SIZE_H
#define HARKEN_SIZE_H
#include "harken_global.h"
namespace Harken {
template<typename T>
class Size2 {
public:
Size2()
: m_width{0}, m_height{0} {
}
Size2(const T width, const T height)
: m_width{width}, m_height{height} {
}
... |
f3cf53e530eb234fd7e61b44fb17e0226c7fa1ff | d233d85c47cdb38c4e2ab3819052fcd533d2578f | /tree/tree_sqrt_decomposition.cpp | 15cf0ab4dfff3c57dc8be68e468291e02cfe3f99 | [] | no_license | hos-lyric/libra | 8101bb9fb1e0845e76941b8842c0e5dde060c45b | 1a3bc8c1e45943addc1368f5041271fd7b3c41a1 | refs/heads/master | 2023-08-08T14:07:25.961567 | 2023-08-08T02:38:27 | 2023-08-08T02:38:27 | 166,256,893 | 34 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 28,536 | cpp | tree_sqrt_decomposition.cpp | #include <assert.h>
#include <math.h>
#include <algorithm>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
using std::make_pair;
using std::ostream;
using std::pair;
using std::string;
using std::vector;
struct TreeSqrtDecomp {
// TODO: optimize
// larger COEF ==> larger h
static const... |
b7f8fe5af5d9303a22e4e4885187e484b11b28e4 | fd95f788c2c7e08702a33839a3813eedf58f7195 | /Design/348-DesignTicTacToe.cpp | cdf61b6d26b96a0c7d15eb1ab8e893dbd4f84e40 | [] | no_license | Rennelovessleeping/LeetCode_Adventure | c1eb43dfc172527ff76f28825f19fc79e1c0709e | fe09d76d07d0023176c73882212e0dd5408a3277 | refs/heads/master | 2021-01-12T08:00:17.241326 | 2017-10-30T17:39:20 | 2017-10-30T17:39:20 | 77,083,464 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | cpp | 348-DesignTicTacToe.cpp | /**************************************************************************
* File Name : 348-DesignTicTacToe.cpp
*
* Purpose :
*
* Creation Date : 10-04-2017
*
* Last Modified : Mon Apr 10 22:05:39 2017
*
* Created By : Renne Bai
**************************************************************************/
cla... |
698873a9bab43bc0ccffb395ba69997e61bd5be8 | 924325994363ee2168efd571a0151abe2db15b75 | /routing_common/routing_common_tests/transit_test.cpp | 2aec35460c6ebb6ef3293e0dfeaa86412aec5073 | [
"Apache-2.0"
] | permissive | imanmoghimiq30/omim | 87aab740000812d9966b5774e394bff5ee0f1305 | 16e8a4feeb9a8fa41a2aaf42a1c9c32f77d9d423 | refs/heads/master | 2018-11-02T12:59:45.971845 | 2018-08-25T07:55:35 | 2018-08-25T07:55:35 | 108,965,055 | 0 | 0 | Apache-2.0 | 2018-08-25T11:31:33 | 2017-10-31T08:14:52 | C++ | UTF-8 | C++ | false | false | 4,188 | cpp | transit_test.cpp | #include "testing/testing.hpp"
#include "coding/reader.hpp"
#include "coding/writer.hpp"
#include "routing_common/transit_serdes.hpp"
#include "routing_common/transit_types.hpp"
#include <cstdint>
#include <vector>
using namespace routing;
using namespace routing::transit;
using namespace std;
namespace routing
{
... |
a2810b0946b8ac586062608b3550531f3bdeb4a5 | ede294c975f61a4acab7161296d36e8a4a403788 | /DSA Bootcamp/Patterns/pattern31.cpp | 3364ee7befc7b1b4f5c60ecc301da3ce103b7ed5 | [] | no_license | Arkashish/DSA-Bootcamp | e4435e4c5f7ee4a9e0bdf4fb08b48372befa6e41 | d851b6d1c6d3eefeb65e0cb989abb58a1c19e78e | refs/heads/master | 2023-09-02T04:08:40.598676 | 2021-11-06T03:00:01 | 2021-11-06T03:00:01 | 398,208,976 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | cpp | pattern31.cpp |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int c=n;
n=2*n;
for (int i = 1; i < n; i++)
{
for (int j = 1; j < n; j++)
{
int left,right,up,down;
left = j-1,up=i-1,right=n-j-1,down=n-i-1;
cout<<c-min({left,right,... |
2542ff3aa35ee5bae3820c42a2b917a6ac6ffc6e | b3ea68b79d1af9b618743aaf5339b7f02b2777bb | /mole/http/request.cc | b569d3ca7bbe9017269e311cadbe68eb5ad5991e | [] | no_license | windinsky/windinsky | 80826299b81ec51f3f4cfd8bf057e76deb96631e | 09bd4517674a4cf50bceaa3283d67a86b53cbf61 | refs/heads/master | 2016-08-03T22:11:57.432623 | 2013-12-10T12:37:16 | 2013-12-10T12:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | cc | request.cc | #include "request.h"
#include <iostream>
#include "../lib/string_utils.cc"
using namespace std;
HttpRequest::HttpRequest(string http)
{
string body_delimiters = "\r\n\r\n";
string http_header_delimiter = "\r\n";
string http_line_delimiter = " ";
std::vector<string> arr = split(http,body_delimiters);
string be... |
56d1d2e5f6364dd7307b37484c915416f6875f7e | a06515f4697a3dbcbae4e3c05de2f8632f8d5f46 | /corpus/taken_from_cppcheck_tests/stolen_15598.cpp | d309192c3dde703f2aee9f3e3676d29558d3bbe9 | [] | no_license | pauldreik/fuzzcppcheck | 12d9c11bcc182cc1f1bb4893e0925dc05fcaf711 | 794ba352af45971ff1f76d665b52adeb42dcab5f | refs/heads/master | 2020-05-01T01:55:04.280076 | 2019-03-22T21:05:28 | 2019-03-22T21:05:28 | 177,206,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 57 | cpp | stolen_15598.cpp | void f(int x) {
if (123 > x) {
a = x;
}
} |
8ce927e36da9cb9e9b9dab7460b27f34eacb0ac9 | cdddb70908194ce21d16052b336ebaf5e203b5ab | /src/atlas/trans/detail/TransFactory.h | b13e92dc9f69fc4ecfc2a08d2dff5f7f18803edd | [
"Apache-2.0"
] | permissive | ecmwf/atlas | 4e32fe8c5b70995b5b4df96b13a2741d093c40db | aaf527db8a18fafd4f61e93169676c6834821692 | refs/heads/develop | 2023-08-31T13:25:36.339542 | 2023-08-25T10:03:21 | 2023-08-25T10:03:21 | 122,975,745 | 94 | 39 | Apache-2.0 | 2023-08-30T15:35:53 | 2018-02-26T13:44:07 | C++ | UTF-8 | C++ | false | false | 4,806 | h | TransFactory.h | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... |
a535fdbf2268f3638b3815606924b9bbeab3468e | 5849eb43c42ab5086389c573b8a449195af8d559 | /udemy-bazel/modern_cpp/04-gtest-deepdive/e02/test/InheritedStackTest.cc | 0be8ca3693c813c205bf33526591d25b5e9a25b1 | [] | no_license | macetw/tylerlearning | d64e8b9cf3c114cdef315d1d833b97c79f6dc8b9 | ad8fe1fa7b1e25e7f54fb0ed0252cbe10e977f84 | refs/heads/master | 2023-05-13T04:02:04.008020 | 2021-07-12T14:23:29 | 2021-07-12T14:23:29 | 64,959,485 | 0 | 0 | null | 2023-05-01T22:44:15 | 2016-08-04T18:51:53 | C++ | UTF-8 | C++ | false | false | 1,746 | cc | InheritedStackTest.cc | #include <ctime>
#include "gtest/gtest.h"
#include "Stack.h"
class TimedTest : public testing::Test {
protected:
void SetUp() override
{
start_time = time(nullptr);
}
void TearDown() override
{
time_t end_time = time(nullptr);
EXPECT_LT(end_time - start_time, 1) << "Test not quick enough. Cons... |
3e29e279a310a5fe9662e7dd0d37116b80ff7ad4 | f0daf25e4a727936eae431ef1964e141da4709d0 | /OpenGLPracticeWithPPT/2.GoBoard/main.cpp | 23e52f083c8c308eafeab762534c628babba1b26 | [] | no_license | newmri/ComputerGraphics | 23e5bdea2c835b11335897f81cbaa7288134ca24 | ffb54c9a6b5dde66a266c2c4c3816c33e6cc723b | refs/heads/master | 2021-03-12T19:51:05.110496 | 2018-01-04T09:12:30 | 2018-01-04T09:12:30 | 102,877,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,795 | cpp | main.cpp | #include <gl/glut.h>
#include <time.h>
#include <stdlib.h>
GLvoid Init(GLvoid);
GLvoid DrawScene(GLvoid);
GLvoid Reshape(int w, int h);
const float WINDOW_SIZE_WIDTH = 800.0f;
const float WINDOW_SIZE_HEIGHT = 600.0f;
const float RGB = 255.0f;
const float TOP = WINDOW_SIZE_HEIGHT / 2;
const float BOTTOM = (WINDOW_SIZ... |
aa005ba97481b49b89e40c4df700087f3304268c | 8f2e8a3320f8ab79a106ff7cf9c88eaa59f59257 | /使用C++和Qt完成读文件,写MySQL/interface/dao/scadadao/icontrolsrcdao.h | c9597b4c835b9f617f230e50c8d0453a95454c4a | [] | no_license | KqSMea8/My_C_Project | 1aa9b4793d3ecce6d7ea233b98786b1207a8e1f0 | cb7555737b91707a4785d7392b26e600c4ae742d | refs/heads/master | 2020-05-31T14:46:34.104077 | 2019-06-05T06:10:57 | 2019-06-05T06:10:57 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,451 | h | icontrolsrcdao.h | //icontrolsrcdao.h
#ifndef _ICONTROLSRCDAO_PENGSHIKANG_20180801_H_
#define _ICONTROLSRCDAO_PENGSHIKANG_20180801_H_
#include "../ibasicdao.h" // for IBasicDao
#include "../../icsvalue.h" // for icsvariant
#include "imultsrcobj.h" // for IMultSr... |
fd43f02ea01cf75a4cecd9816c57aed2bc302644 | a13e24b39fab4f5d9bc57d0bd5eb536c38a5eef1 | /include/Core/CastorUtils/Design/ChangeTracked.hpp | 4ed4377d41a3267d1a6b866d7882b609f05266e6 | [
"MIT"
] | permissive | DragonJoker/Castor3D | 2bbd0eeba403a37570bfc959d58a6c8a01429c60 | 32a2e4bc5c6ea0d0a27f3c58f8edb74fbc7e59ce | refs/heads/development | 2023-09-04T15:46:36.438955 | 2023-08-30T05:37:14 | 2023-08-30T12:34:39 | 34,847,313 | 424 | 18 | MIT | 2023-09-14T11:10:10 | 2015-04-30T09:53:00 | C++ | UTF-8 | C++ | false | false | 3,815 | hpp | ChangeTracked.hpp | /*
See LICENSE file in root folder
*/
#ifndef ___CU_ChangeTracked_H___
#define ___CU_ChangeTracked_H___
#include "CastorUtils/Design/DesignModule.hpp"
#include <vector>
namespace castor
{
template< typename ValueT, typename ControlT >
class ChangeTrackedT
{
public:
ChangeTrackedT()noexcept
: m_value{}
, ... |
2ca70e232e0596bb571ec6219c1256159193dbeb | 2ae518c6d3df7ee05073d2b83b584b69b90d0402 | /src/block.cpp | 0a31414563c254b2c55ea9597eec1632978959d9 | [] | no_license | OnikenX/bockchain-test | bfce99c08a692998d751eb94815b17b6cfff8573 | 94387868fe5834faf92d0597bf6002bdf23b10b4 | refs/heads/master | 2023-03-08T23:22:10.442253 | 2021-02-25T21:37:58 | 2021-02-25T21:37:58 | 342,386,427 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | block.cpp | #include "block.h"
Block::Block(int index, TransactionData transactionData, size_t previousHash ): index(index),previousHash(previousHash)
{
data = std::move(transactionData);
blockHash = generateHash();
}
const TransactionData &Block::getData() const {
return data;
}
size_t Block::generateHash() {
s... |
1f85b54adab1350801473be8e710b6fab57f0c25 | cef53b4c1b9bd00afb4384d9a5d960cf068f337a | /src/main/objects/moc_vkbd.cpp | 2562a0f25c4192997bf202c4306f18591424c775 | [] | no_license | toby20130333/VKbd | e4a55f64f302b0db7306c51452b0099eac973cc4 | a2e54abbc83a93d1e8f493c030898e545854ce75 | refs/heads/master | 2021-03-12T19:41:36.561143 | 2014-02-18T02:59:41 | 2014-02-18T02:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,257 | cpp | moc_vkbd.cpp | /****************************************************************************
** Meta object code from reading C++ file 'vkbd.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.1.1)
**
** WARNING! All changes made in this file will be lost!
****************************************************************... |
ee678a3385207a992fd140853068b182d5c32694 | b319a7f32d5c9ab1f8ee3dd6ba43b427f27a41da | /overloading3.cpp | a36cfb7063ebe45b54cf81e2af3b2105266e8ce1 | [] | no_license | menghsun/pd2 | 35b7300a83b3cc59c0fec306a10ef98cc24932fa | 2286519c2d23872e87663ac9a94bae3688047a96 | refs/heads/master | 2021-01-19T20:16:10.974930 | 2020-06-01T04:34:54 | 2020-06-01T04:34:54 | 31,404,587 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | overloading3.cpp | #include <iostream>
using namespace std;
double add(int x, double y) { return x + y; }
double add(double x, int y) { return x + y; }
int main()
{
cout << add(1.3,1.5);
return 0;
}
|
1de6bd44c2da2c304aec5ca32e9d219892f54e22 | 6db027835bdd2694a7bb315ffa03f29b8e071279 | /src/lug/Graphics/Render/Camera/Perspective.cpp | 4b123df815acab0ec0fdde9ac225a0156e4d2978 | [
"MIT"
] | permissive | Lugdunum3D/Lugdunum | e28e0254a29b1234fe0f1415e7f88edb1b81e5de | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | refs/heads/dev | 2021-01-19T12:07:47.314937 | 2018-05-29T12:14:27 | 2018-05-29T12:14:27 | 69,289,273 | 283 | 39 | MIT | 2018-01-10T20:31:51 | 2016-09-26T20:18:40 | C++ | UTF-8 | C++ | false | false | 653 | cpp | Perspective.cpp | #include <lug/Graphics/Render/Camera/Perspective.hpp>
#include <lug/Graphics/Render/View.hpp>
#include <lug/Math/Geometry/Transform.hpp>
namespace lug {
namespace Graphics {
namespace Render {
namespace Camera {
Perspective::Perspective(const std::string& name) : Camera(name) {}
void Perspective::updateProj() {
... |
0a0d3a0011581d975dcb13dc41b6967794eb6089 | 6e2e8592b602ac36de770ad101eed05405c982cc | /modules/perception/camera/common/proto/object_template_meta_schema.pb.cc | 4e6d64c61c6c0a1f5712eb3b99ff813fdcf7027e | [] | no_license | sxhxliang/Apollo-Lite | 6060dc361fd22b90fa2c986ee4dbbb6cf38d50ec | b59e1c6a9a88aa421e72fa709a80c10e868531f8 | refs/heads/main | 2023-04-09T19:04:15.275450 | 2021-04-17T18:25:22 | 2021-04-17T18:25:22 | 356,549,140 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | true | 79,447 | cc | object_template_meta_schema.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: modules/perception/camera/common/proto/object_template_meta_schema.proto
#include "modules/perception/camera/common/proto/object_template_meta_schema.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/i... |
c405e771a70714c3ce6c010ea8650858c68ee54b | 3a53cb65800dfc713a47324fb6b902aa14b95a8a | /includes/ui/LockableObject.hpp | ce890f260905dc098755aab250e2b04c35270e11 | [] | no_license | mrudzik/Asteroids_SDL2 | c8c6747166016db191362192cffc580e3cc6a1bc | f5cf8a9bd2bf49801fc1f709b5be48131513b86c | refs/heads/master | 2022-11-03T22:01:19.719898 | 2020-06-18T20:58:47 | 2020-06-18T20:58:47 | 228,431,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | hpp | LockableObject.hpp |
#ifndef LOCKABLE_OBJECT_HPP
#define LOCKABLE_OBJECT_HPP
#include "PicTexture.hpp"
#include "GameSDL_Window.hpp"
class LockableObject
{
private:
bool _isLocked;
float _angle;
float _rotationSpeed;
PicTexture* _lockPic;
int _id;
public:
LockableObject();
~LockableObject();
void SetLock(bool state);
void... |
59bc1a6b332724ad6d71e632cc79042b7d5904d0 | 552cb9c572570119efc44a0453ac8ab0140eed00 | /saessak/소스.cpp | 65b3237d4cf537bd322f9bd38f7145563bb6c185 | [] | no_license | pula39/2020seassak | fddebbfd5549e97b040ce2ea8664464686d9b998 | 18f9ea0787269acfd65566b93f9fa6dbe3e9fb18 | refs/heads/main | 2023-02-10T03:41:07.838535 | 2020-12-29T14:55:25 | 2020-12-29T14:55:25 | 309,926,613 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,733 | cpp | 소스.cpp | #include <iostream>
#include <cmath>
#include <algorithm>
#include <time.h>
#include <conio.h>
#include <Windows.h>
using namespace std;
typedef enum RSP {
ROCK,
SCISSOR,
PAPER
} RSP;
typedef enum RSP_RESULT {
WIN,
LOSE,
DRAW
} RSP_RESULT;
RSP_RESULT GetPlayerWin(RSP playerRsp, RSP cpuRsp) {
... |
73dde0a03a9a4f6e116a728da0bfc8554e31d535 | 9433cf50af730ee1cef83c66768daf208b6f4c5f | /Super Synthesis Engine/Include/Model/VertexAspect.h | a5ea29e4d50bd8051cfc3f8f89ea4dbac252c198 | [
"MIT"
] | permissive | nstearns96/Super-Synthesis-Engine | 47b43aad5da832f420b29ec0a92967644484d354 | 64824c50557e64decc9710a5b2aa63cd93712122 | refs/heads/master | 2023-06-23T17:52:12.145005 | 2021-07-24T18:38:18 | 2021-07-24T18:38:18 | 258,901,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | VertexAspect.h | #ifndef _SSE_VERTEX_ASPECT_H
#define _SSE_VERTEX_ASPECT_H
#include <map>
#include <glm/glm.hpp>
#include "EngineTypeDefs.h"
namespace SSE
{
enum VertexAspectType
{
VA_NONE,
VA_POS2F,
VA_POS3F,
VA_COL3F,
VA_COL4F,
VA_TEX1F,
VA_TEX2F,
VA_TEX3F
};
const static st aspectPropertyMap[] =
{
0,
2,... |
8a7944c2444a6dc64a28712386f9a205935381a4 | 592c7159f17a7891c03369912317f5b637d9a5e1 | /DAY 5/TEST/lis.cpp | bd2188275986fb353a615f880dc65f0d46d98465 | [] | no_license | seal-7/15-Days-of-code | 2a0d22744a1bed7e51a4dff53aa445a464c55f13 | b6f14916bee55d6f996703ae535ba3b48902f389 | refs/heads/master | 2021-08-23T16:39:28.050473 | 2017-12-05T18:30:35 | 2017-12-05T18:30:35 | 113,218,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | lis.cpp | #include<bits/stdc++.h>
using namespace std;
vector<int> d;
int ans, n;
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++) {
int x;
scanf("%d", &x);
vector<int>::iterator it = upper_bound(d.begin(), d.end(), x);
if (it == d.end()) d.push_back(x);
else *it = x;
... |
cdb20330c4476cc60d474a54555b9dbc0cc41bd6 | 8513e82e8faea4e2b149b163cc035fb61a679a40 | /uva/uva_12342.cpp | 3a68eb46d69ecd656822033ef9091ddfbf9b73f1 | [] | no_license | MostafijurJ/UVA | dbc27b0a0cf609308dc3492adea9603239c3f57c | 187f71758bb0b93c2e1caf454e916d92d12a7a43 | refs/heads/master | 2020-03-24T22:54:47.508938 | 2018-08-01T05:59:59 | 2018-08-01T05:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,280 | cpp | uva_12342.cpp | /*
Mostafijur Rahman KAJOL
CSE'15, JUST
************************
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
int cn,cs=1;
cin >> cn;
while(cn--){
long long tk;
cin >> tk;
float tax=0;
float a1,a2,a3,a4,a5;
if(tk-180000>0){
... |
a1bdb7ad28f6cb4137cc22c43eb632e1b8e11230 | 2ce02cb9aeca62829c71d3e19d64a85c3ad5c085 | /evasion/emil_test.cpp | a8313c5408c63c7f917ca127f7104452eb49e415 | [] | no_license | emilgoldsmith/heuristics-desertfoxes | bc0ac863201e12ff090f0ae4238cc2e784c876a1 | 3c8b0639f8a3b26c886809647a50e1a8159558f0 | refs/heads/master | 2021-08-23T21:59:08.570213 | 2017-12-06T18:48:39 | 2017-12-06T18:48:39 | 103,343,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | emil_test.cpp | #include "game_state.h"
#include "evasion_solve.h"
#include "constants.h"
using namespace std;
int main() {
GameState g(1, 2);
miniMax(&g, INF);
}
|
983a9c4da1e73204513ac834e0a142c9b1b24514 | edb2704b115b88bf30af45244fad68f4f7e4b3cc | /brcm_fmradio/libfmjni/android_fmradio_Receiver.cpp | d1919256ed7aea503b9725f09139ae9d74a97fee | [] | no_license | rcstar6696/device-sony-common | 856f4358a8787390d5797ee13e888edf783f32c8 | 861b79aca8df0819de50bd638f1a79c55e4987e6 | refs/heads/android-7.1 | 2020-12-29T02:46:48.206574 | 2017-05-25T07:46:32 | 2017-05-25T07:46:32 | 77,679,786 | 3 | 0 | null | 2017-05-01T19:51:17 | 2016-12-30T10:33:49 | C | UTF-8 | C++ | false | false | 29,530 | cpp | android_fmradio_Receiver.cpp | /*
* Copyright (C) ST-Ericsson SA 2010
* Copyright 2010, The Android Open Source Project
*
* 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... |
c3a172b6bea062cf9542753fb3619c0e75028e90 | 6b99cf7a43970344d214766fa3de3f18367e7854 | /CarGame/CarGame/Core/GameMode.h | 0b11ab3ec1f23fe5447288c1e72245a910258e3a | [] | no_license | ignorer/hot-pursuit-game | 9ac7e1abbecda06ac18f0607c5147fef030a02f8 | 58e90cda612ace58d48364339fbba017a47fbc70 | refs/heads/master | 2020-12-27T03:07:54.429389 | 2016-11-10T12:56:48 | 2016-11-10T12:56:48 | 44,526,715 | 0 | 2 | null | 2015-11-02T07:40:40 | 2015-10-19T10:12:54 | C | UTF-8 | C++ | false | false | 1,128 | h | GameMode.h | #pragma once
namespace Core {
class CGameMode {
public:
enum MovementMode { CONCURRENT, SEQUENTIAL };
enum DeathPenalty { DESTROY, TO_START, STOP };
enum ObjectRate { NO, FEW, NORMAL, MANY };
enum ObjectChangeModel { NO_CHANGE, STABLE, RANDOM};
CGameMode() = delete;
static void Init( Movem... |
61226d8f23640e9e982a8e6b3cf7b2549ad9be4d | ee33b4ab65c8840cf37c4acb3037ea66dde12d91 | /curvefs/src/mds/chunkid_allocator.h | d9b84003d7629f053b5874bcec42b21af6dba7a2 | [
"Apache-2.0"
] | permissive | opencurve/curve | 36339c6377e7ac45ad2558d5cb67417b488094b4 | 6f5c85b1660aeb55d5c08e3d1eb354949ab7567a | refs/heads/master | 2023-08-31T04:52:54.707665 | 2023-08-05T14:04:44 | 2023-08-15T11:46:46 | 276,365,255 | 2,099 | 540 | Apache-2.0 | 2023-09-14T15:33:46 | 2020-07-01T11:57:25 | C++ | UTF-8 | C++ | false | false | 4,373 | h | chunkid_allocator.h | /*
* Copyright (c) 2021 NetEase Inc.
*
* 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... |
44d666c087a6ec571b752a726d552905e1480782 | 38419b926c92548041b64c26f4f50a9957ade003 | /src/main.cpp | e5ae32a5d7719b0a878f304446c4f426025af86d | [] | no_license | ddacot/ARMv5-ISS | 6a5640e02fcdfb0bb05c29bd48b542960cb26858 | bce040ee0f869ce507fbd73374086140ec2a6b96 | refs/heads/main | 2023-06-16T21:22:00.708546 | 2021-07-17T13:50:55 | 2021-07-17T13:50:55 | 386,949,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,988 | cpp | main.cpp | /*
* @filename main.cpp
* @brief This file sets up the program. Contains the entry point of the program.
*/
#include "loader.h"
#include <QApplication>
#include "options.h"
#include "memory.h"
#include "include/CLI11.hpp"
#include <QCommandLineParser>
#include "log.h"
#include <QtGlobal>
#include <QDebug>
#include <... |
213162649c754c48b31fbe125dabbbf89aadcfde | 37c682029506305085d004fdd2ddfd8f83c17db2 | /CppWithGuiExample/src/main/include/Positioner/SnobotPositioner.h | d8202cb78b0c09a01e9f52d64dcf43740d9c89f5 | [
"MIT"
] | permissive | snobotsim/SnobotSimExamples | 33c20f2cf6dbac2bf005b9547a2cc97bb22857fc | 9c9fa7a82673d6d5aa1c3cdfa51cf9b188595560 | refs/heads/master | 2020-04-07T11:21:11.912763 | 2020-01-03T13:55:14 | 2020-01-03T13:55:14 | 158,322,590 | 0 | 0 | MIT | 2020-01-12T03:12:59 | 2018-11-20T02:58:57 | C++ | UTF-8 | C++ | false | false | 2,454 | h | SnobotPositioner.h | /*
* SnobotPositioner.h
*
* Created on: May 19, 2017
* Author: preiniger
*/
#ifndef SRC_POSITIONER_SNOBOTPOSITIONER_H_
#define SRC_POSITIONER_SNOBOTPOSITIONER_H_
#include <memory>
#include "Positioner/IPositioner.h"
#include "Drivetrain/IDrivetrain.h"
#include "SnobotLib/Logger/ILogger.h"
// WpiLib
#incl... |
6821e8fe5ca6464c65ee8ef4e2f99d491ee4d3f4 | 464c5cd10f07b7f6ed3fd078eed233f35b8859ce | /BallBlocks.cpp | 5a13a60cf568a0884c8ee10a643b3b5c369e3a4e | [] | no_license | ht2k9/OpenGL-Billiard-Table | 7a1e05c82c6c3df11dd3b0cdeb7fd0f7f19ee62a | 39b4368f2d3dc48c9e52544a644e6ccddf2494f6 | refs/heads/master | 2020-03-31T17:19:10.068783 | 2018-10-10T13:22:57 | 2018-10-10T13:22:57 | 152,418,468 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 20,207 | cpp | BallBlocks.cpp | #include<stdlib.h>
#include<GL/glut.h>
#include<math.h>
#include<stdio.h>
#include<string.h>
#include <ctime>
typedef struct {
float x, y, z;
float red, green, blue;
int status;
int onTable;
}Ball;
typedef struct {
float red, green, blue;
float x, y, z;
int score;
}Hole;
typedef struct... |
c6d5d49b8aa640d1512df66d176efe0c4b55ab0c | 1d9e9d4f416607453e7c91c9dc45205bd7cb9e14 | /iqc5/iqc5/UI/InputDataMulti.h | 2b9aa4c8895a08b7fa34791d05e8ea8df35c64f2 | [] | no_license | allan1234569/iqc5 | 5542f2efe3e6eae0a59110ec2863d9beeef8c1cf | 8a026564db0128005f90d3f7ca56787a7bcbbad3 | refs/heads/master | 2020-03-29T09:17:13.715443 | 2018-09-21T10:56:01 | 2018-09-21T10:56:01 | 149,750,494 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | h | InputDataMulti.h | #ifndef INPUTDATAMULTI_H
#define INPUTDATAMULTI_H
#include <QMainWindow>
#include <QTreeWidgetItem>
#include <QEvent>
#include <QCloseEvent>
namespace Ui {
class InputDataMulti;
}
class InputDataMulti : public QMainWindow
{
Q_OBJECT
public:
explicit InputDataMulti(QWidget *parent = 0);
~InputDataMulti(... |
e2f1c9452a65ca1fdc2ef00fbf2337d5637f5429 | e341d8667be9eb6a90c32eda4265cf937be57864 | /rl/engine/common/include/ConfigFile.h | 1a7e124d3cb53bbf843dc394d94fe7b3b1ea3395 | [
"ClArtistic",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | saeugetier/rastullahs-lockenpracht | 61a54aeaf8a69f5afba9a884022f5e1cc906b968 | aa907f3db4b4123f5323d28423de8456f8f416ea | refs/heads/master | 2020-07-09T19:24:07.102044 | 2018-12-30T14:05:53 | 2018-12-30T14:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,875 | h | ConfigFile.h | /* This source file is part of Rastullahs Lockenpracht.
* Copyright (C) 2003-2008 Team Pantheon. http://www.team-pantheon.de
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Clarified Artistic License.
*
* This program is distributed in the hope that it will ... |
1e7a33e7388203e037a7e0fdfd963638ca671271 | 4ca1f85e2c020c14d8d830ccb7ee3fb242ad4398 | /flight_code/quad/src/Timer0.cpp | 591b1e456f5cc2434dff4085634c1645d83b6c9f | [] | no_license | jkleve/quaddrone | 2c40c1de1e9289c96c9e710c46d5c2eb831e366e | 8ebebd5ca7cc3d6587f66f8032a9f916ae0956aa | refs/heads/master | 2020-05-26T13:32:44.626200 | 2017-07-16T22:22:56 | 2017-07-16T22:22:56 | 82,479,384 | 0 | 0 | null | 2017-07-13T03:47:43 | 2017-02-19T18:16:58 | Eagle | UTF-8 | C++ | false | false | 1,141 | cpp | Timer0.cpp | //
// Created by jesse on 2/21/17.
//
extern "C" {
#include <avr/io.h>
}
#include "Timer0.h"
// Main processing should happen at 20Hz. This is 391 ticks when
// using clk/1024. Since we are using a 8 bit timer we need 1
// full count of 255 to get the overflow and 135 more tickets.
// If we miss one cycle we will dr... |
11689cbb510aefbcbd7b4db98b184de74764947e | d9eff58921deaf551d6f16f0643927622e0d59e6 | /suanfabiji/2.c_c++/2.1/const.cpp | 827d9b1af0c9c2e7d0535dd47756dc3b3d915a1a | [] | no_license | xingleigao/study | f29b7624a74867a08e207553927da414a375adaa | b853795275f85e62d2cb2ee17775805ccb3abe10 | refs/heads/master | 2021-11-30T11:48:40.037627 | 2021-09-13T07:46:32 | 2021-09-13T07:46:32 | 153,268,373 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | const.cpp | #include<cstdio>
const double pi=3.14;
int main(){
double r=3;
printf("%.2f",2*pi*r);
return 0;
} |
9aab2e4d15e6705259e05944c4165c146bf3b73d | 655355249831702adeb7a1832acab80cca5dc358 | /November 2020 Contest/Restore[Time Limit Exceeded].cpp | 7eb8224594f547f7b199ba2715c915af83836140 | [] | no_license | Anurag10300/CodeChef | 255b2b8e4dcbbe69d81bbd89fc0d1ec1c277ad4a | 76a7b8cdd806a894cb55cbe42f1f008ab6c4e316 | refs/heads/main | 2023-06-04T16:19:31.955526 | 2021-06-18T19:49:05 | 2021-06-18T19:49:05 | 311,086,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,939 | cpp | Restore[Time Limit Exceeded].cpp |
// This code produces right answers but the time complexity is very high
// cant give answers for large input in time
#include <iostream>
#include <vector>
#include <bits/stdc++.h>
using namespace std;
int main(){
int t;
scanf("%d",&t);
vector<vector<int>> table;
//COLLECTING INPUT
for(int ... |
67a4a2a4c9bc9593785b269f9fdc7f4d780606d4 | 88f244733be35ba4570ae03cbab6bf83872e6449 | /cppcrypto/blake.cpp | 37aa89f2c3c1771d746a450ee9e86a0d214beea1 | [
"MIT",
"ISC",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | crashdemons-external/kerukuro-cppcrypto | 7577d97260a3c6210c3e55194eb0dfa961fb946b | 090d0e97280c0c34267ab50b72a2ffa5b991110b | refs/heads/main | 2023-03-15T01:13:17.793068 | 2021-03-03T00:34:29 | 2021-03-03T00:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,836 | cpp | blake.cpp | /*
This code is written by kerukuro for cppcrypto library (http://cppcrypto.sourceforge.net/)
and released into public domain.
*/
#include "cpuinfo.h"
#include "portability.h"
#include "blake.h"
#include <memory.h>
#include <functional>
//#define CPPCRYPTO_DEBUG
//#define NO_OPTIMIZED_VERSIONS
#ifdef _MSC_VER
#defin... |
5fcec91576a6cd5c0d466d810b684745487fb959 | 0eeb48cc35f828bbeb2034e1aa20dc6ea7527232 | /internal/compiler/inc/syn/nodes/incomplete/array_elements.hpp | 2802ca474c2013264fdf60e1e65af1e5d663215b | [] | no_license | egst/cynth | 739f43eb90778030ae76f23fea324bb7c670635e | 1c251929ca75859ea1dcc62b57198d955291e65a | refs/heads/master | 2022-08-03T08:26:26.881397 | 2022-07-16T21:34:10 | 2022-07-16T21:34:10 | 291,306,890 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | hpp | array_elements.hpp | #pragma once
#include "esl/component.hpp"
#include "context/forward.hpp"
#include "interface/forward.hpp"
// Circular dependencies:
#include "syn/categories/forward.hpp"
namespace cynth::syn::node {
/** a to b */
struct RangeTo {
esl::component<category::Expression> from;
esl::component<cat... |
0301e15f69a3163acee0680d084429dde2503303 | 217fe78736a25c3862aea4bf4fe955602d024077 | /03. Functions, Arrays and Vectors Exercise/Exercise/06. FiterNumbersInVector/06. FiterNumbersInVector.cpp | be2514c9a431b10ea81f8bacf62da5064b271af8 | [
"MIT"
] | permissive | lubomirv999/CPlusPlus-Fundamentals | 819c2e7ad0d925e8c1e7fe4e0bbf9f75a2d099b4 | e370546c819635132478943f658e26bbc4604c8f | refs/heads/master | 2020-04-05T16:11:53.578107 | 2019-01-19T20:57:00 | 2019-01-19T20:57:00 | 157,001,255 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,022 | cpp | 06. FiterNumbersInVector.cpp | #include "stdafx.h"
#include <iostream>
#include <iomanip>
#include <cmath>
#include <math.h>
#include <vector>
#include <string>
using namespace std;
void FilterNumber(vector<int> vec, int numberToFilter)
{
bool exitCycle = false;
while (!exitCycle)
{
for (int i = 0; i < vec.size(); i++)
if (vec.at(i) == nu... |
bf7940939f8ce6c3ba05c6c64e68b1c2735e23c1 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /DP/2879.cpp | 3ea7d0f8e0173fe657beb7672350df491236f502 | [] | 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 | 539 | cpp | 2879.cpp | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv) {
int n, k;
scanf("%d%d", &n, &k);
vector<int> a(n), b(k);
for (int i = 0; i < n; ++i)
scanf("%d", &a[i]);
for (int i = 0; i < k; ++i)
scanf("%d", &b[i]);
sort(b.begin(), b.end());
for (int i = 0; i < n; ++... |
9ed72f01d9bbb7edb88a2c4dbe0a89f60cbc3169 | 0fad34977a5180e29db57495652af995ef484105 | /Console_2_1_52/SerialComm/Settings/LanguageStates.cc | b486453c20d779586485b6e77ba59b653b3cdc1f | [] | no_license | Wenguangliu/Hello | 5759c237c37ffaf7f9d2cdc18ba6f2895557dda9 | 3801697e51eddb4b03c05924cb5e776ec46e18ae | refs/heads/master | 2020-12-11T20:56:05.865805 | 2020-01-30T22:24:33 | 2020-01-30T22:24:33 | 233,956,105 | 0 | 0 | null | 2020-01-14T23:41:25 | 2020-01-14T23:26:41 | null | IBM852 | C++ | false | false | 4,879 | cc | LanguageStates.cc | /*
* FILENAME
* LanguageStates.cc
*
* MODULE DESCRIPTION
* Member function definitions for the Settings state machine set language
* states classes.
*
* AUTHOR
* Greg De Hoogh
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "LanguageStates.h"
#include "Settings... |
b5d0ce88037bc3eba36ae506831fb5690e4a83d5 | f839d86a8c97a68149ea1934c7cf0d656482617f | /Path_Tracing_HJT_V1.0/material.h | 48e271b6d4e583f66ffab4cc6364a387a8beb8f9 | [] | no_license | Huang2077/Path_Tracer | 60e99d1f8e7d97b36d53886c573691191b51f04c | e5d2b18e6686ddcb7b8b422a2ee1abd57a759ea5 | refs/heads/master | 2023-02-07T16:35:43.268306 | 2020-12-29T08:03:40 | 2020-12-29T08:03:40 | 269,899,778 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 752 | h | material.h | #pragma once
#ifndef MATERIAL_H
#define MATERIAL_H
#include "gvector3.h"
#include <cmath>
using namespace std;
#define PI 3.14159
class Material
{
public:
Material();
Material(float _metallic,float _specular,float _roughness,GVector3 _basecolor);//金属属性、菲涅尔F0,粗糙度,本色
~Material();
GVector3 BRDF(GVector3 V, GVector3 L,... |
b99135ded07e67c11b57ddcc7e081113820b4752 | c449c87882e8394f2cb1f5b7f9df4c9e58e47ff3 | /算法/Sort/MergeSort.h | b23ab95d4538de4c09cbd0b1ffb7fad024256319 | [] | no_license | Asichurter/CppOrC | a18fe04928ab244de59b2ca759f1660d0e32a5b1 | e498c9c9fe94a798351c16c39704883dd5d6d76f | refs/heads/master | 2020-04-22T22:25:42.027793 | 2019-02-14T15:04:29 | 2019-02-14T15:04:29 | 170,707,604 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 702 | h | MergeSort.h | template <typename T, typename COMP> void mergeSort(T a[], T b[], int l, int r, bool reverse){
//在长度为1时,直接返回
if (r-l == 0) return;
mergeSort<T, COMP>(a, b, l, (l+r)/2, reverse);
mergeSort<T, COMP>(a, b, (l+r)/2+1, r, reverse);
//拷贝忍者
for (int i = l; i <= (r+l)/2; i++){
b[i] = a[i];
}
/... |
9195d5be971f0da3d37a17471d93417eb50d3887 | 33d274d661a70fdc4e50901c8e1e9b9777dfd6e8 | /Assignments/Assignment7/main.cpp | 9ced968dee058750c41b69d5dd0b30de59aa14f1 | [] | no_license | fmuno003/CS012 | 88a8210066a4f3e146f23ee58a66e3af4b5b7339 | 8d8027bd2070b15be07ea715b089b8a2d5188420 | refs/heads/master | 2021-01-10T11:42:48.292640 | 2016-12-02T02:20:29 | 2016-12-02T02:20:29 | 46,450,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,474 | cpp | main.cpp | // =============== BEGIN ASSESSMENT HEADER ================
/// @file assn3/main.cpp
/// @brief Assignment 7 for CS 12 Summer 2015
///
/// @author Francisco Munoz fmuno003@ucr.edu
/// @date 08/26/2015
///
/// @par Enrollment Notes
/// Lecture Section: 201
/// @par
/// Lab Section: 221
/// @par
/// TA: An... |
858b680cc63fef8a2118b2a33d8f98039c1608d6 | a09465327d66c22d4bda4ffccb8f754228622eb5 | /src/lpqueuelib.cc | a0180927d1afc91c848797632c52e1d068710e0e | [
"MIT"
] | permissive | asciibeats/lua-pqueue | f79fb5890ce5971401428bed2ff682fa43001aed | 7365095332815bbeef7678b66696a8c5ad41bbbf | refs/heads/master | 2020-04-19T00:41:34.685197 | 2019-10-30T05:20:23 | 2019-10-30T05:20:23 | 167,853,356 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,663 | cc | lpqueuelib.cc | #include "lpqueuelib.h"
#include <stdexcept>
#include <lua.hpp>
#include "pqueue.h"
#define PQUEUE_LUAT "pqueue"
#define checkpqueue(L, index) *(struct pqueue<int> **)luaL_checkudata(L, index, PQUEUE_LUAT)
static int pqueue_new(lua_State *L)
{
size_t size;
if (lua_gettop(L) != 0)
{
size = luaL_checkinteger... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.