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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0dd89be4d5ac0113d2c1baeb4655c2930981abef | 7bf16b0cf877e154585cff41f7792c609ec0d80a | /utility.hpp | cb32cf4232193bf7989d1324a801eca51e21b8bc | [] | no_license | y1015860449/apns_server | 0e24db4d1cdf3318577e096adb3258840cd83fd5 | bc9ec727cf76bd466122fa979d0996926d854cec | refs/heads/master | 2023-07-22T17:10:21.367940 | 2021-09-09T16:20:26 | 2021-09-09T16:20:26 | 398,712,538 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,487 | hpp | utility.hpp | //
// utility.hpp
// APNS_PushServer
//
// Created by lang on 28/06/2017.
// Copyright © 2017 lang. All rights reserved.
//
#ifndef utility_h
#define utility_h
#include <sys/time.h>
#include <stdlib.h>
#include <string>
#include <memory>
#include <stdio.h>
#include <string.h>
#include <string>
#include <memory>
... |
4cdc570cb099a7187f696e0eba54c94b575e40cd | 35e5d6f189855f95ac4f1fbd728dc15e4012136e | /cpp/base/8/Rectangle.cpp | b44e9bca5c1ab4e40e7b70c6a304b7247580ef65 | [] | no_license | dotheright/mylovelycodes | 012517d85240b63c2b1c3f15580f9f314e591024 | 0e585b7d716f9f63a7b79dccbdf189193f4bf0c5 | refs/heads/master | 2020-12-22T20:55:51.965688 | 2018-10-05T10:09:09 | 2018-10-05T10:09:09 | 28,511,833 | 1 | 2 | null | 2016-06-21T20:23:55 | 2014-12-26T13:41:58 | null | UTF-8 | C++ | false | false | 931 | cpp | Rectangle.cpp | /*************************************************************************
> File Name: Rectangle.cpp
> Author: guoqingyao
> Mail: stepbystepto@163.com
> Created Time: 2016年08月09日 星期二 15时43分53秒
************************************************************************/
#include<iostream>
using namespace std;
class... |
e424cce525c3851db94a2bf80969009d036b9ac1 | 033679d90f6a483e7a07c8ac34130affe25dc7a5 | /util/database_util.cpp | 3df75e2a15e217cb3abcc6e0ad3a3610b63cdf35 | [
"BSD-3-Clause",
"BSL-1.0",
"BSD-2-Clause"
] | permissive | kunpengcompute/hyperscan | 199948aa6a40126a44a22bc26aaca2786f84e8fe | ef46fc7c88b667d6a3b1ec54d001b417612c3759 | refs/heads/aarch64 | 2023-08-06T13:57:24.146289 | 2021-03-19T11:08:15 | 2021-03-19T11:08:15 | 233,202,598 | 83 | 28 | NOASSERTION | 2020-11-27T03:23:26 | 2020-01-11T08:49:52 | C++ | UTF-8 | C++ | false | false | 4,338 | cpp | database_util.cpp | /*
* Copyright (c) 2015-2016, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... |
c983a0f0304709f002067643cd6701640ca25d77 | b5964f111956f36ac7e0360c1f9a35b9bb4acc21 | /2_scoped_ptr.cpp | b5a814188642d0b30db29592c5cc124e5a784c26 | [] | no_license | xiaoran-2/Boost-Learning | 382e50e3742f2a8d532150d703cc995a318e9f54 | 38b06c39cd8e4694709b5f69a1163d28a5c7112d | refs/heads/master | 2021-10-28T05:24:55.622453 | 2017-12-11T03:21:21 | 2017-12-11T03:21:21 | 111,882,729 | 1 | 1 | null | 2019-04-22T12:03:20 | 2017-11-24T06:14:08 | C++ | UTF-8 | C++ | false | false | 2,731 | cpp | 2_scoped_ptr.cpp | #include<iostream>
#include<vector>
#include<boost/scoped_ptr.hpp>
#include<boost/scoped_array.hpp>
#include<boost/shared_array.hpp>
//boost C++中的专门的指针容器
#include<boost/ptr_container/ptr_vector.hpp>
/**
*测试智能指针std::auto_ptr,普通指针,只是在析构的时候调用delete操作符
*智能指针是一个常见的习语RAII:资源申请即初始化。
*这只一种思想
*
*一个作用域独占一个动态分配的对象,对应的类是boo... |
b50dc86df20f309519436bf0cc3f8e2dcd3dc710 | a570c939103c41227d4d17e126998dfb2654fb58 | /Code/GUI/lib/QGoCreateMeshDialog.cxx | 2e4ee5ee86739eeedc0c92af4eea531e87d7c8de | [] | no_license | gofigure2/GoFigure2 | 431515d185c6009d5bd29872c42467f02ffa9c4a | 9de3c7a51c9fd32787785eed6697ad911ec18ac6 | refs/heads/master | 2021-01-13T08:01:38.041385 | 2014-03-14T07:26:25 | 2014-03-14T07:26:25 | 1,022,370 | 5 | 2 | null | 2014-08-08T07:49:44 | 2010-10-25T13:48:28 | C++ | UTF-8 | C++ | false | false | 5,801 | cxx | QGoCreateMeshDialog.cxx | /*=========================================================================
Authors: The GoFigure Dev. Team.
at Megason Lab, Systems biology, Harvard Medical school, 2009-11
Copyright (c) 2009-11, President and Fellows of Harvard College.
All rights reserved.
Redistribution and use in source and binary forms, wi... |
5ca91baf4cc91c1ff2624d98d4c5b1c169bdfcd3 | 8e28ecb10641cc4dfda5c2e9021bada28ee8d713 | /dmp/policy_msgs/msg_gen/cpp/include/policy_msgs/SingleParameterPolicy.h | 15cf6814e5407d9736afab840df329627482f316 | [] | no_license | lluissalord/TFG | 9fe40bd161e3581df1c562500dbbdfa9dffc21d3 | b6720b74680ec030a9779ddb1d88bedc6e9a81e7 | refs/heads/master | 2016-09-05T15:59:50.764633 | 2014-06-18T22:26:50 | 2014-06-18T22:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,064 | h | SingleParameterPolicy.h | /* Auto-generated by genmsg_cpp for file /home/lluis/catkin_ws/src/usc-clmc-ros-pkg/dmp/policy_msgs/msg/SingleParameterPolicy.msg */
#ifndef POLICY_MSGS_MESSAGE_SINGLEPARAMETERPOLICY_H
#define POLICY_MSGS_MESSAGE_SINGLEPARAMETERPOLICY_H
#include <string>
#include <vector>
#include <map>
#include <ostream>
#include "ros... |
53f1075f052994e54819b2ab3f62339babded39b | e1700081b3e9fa1c74e6dd903da767a3fdeca7f5 | /libs/geodata/polydatagroup/private/geodatapolydatagrouppolydata_impl.h | 96796e44d3e1d8f56a561efcedbadba743386374 | [
"MIT"
] | permissive | i-RIC/prepost-gui | 2fdd727625751e624245c3b9c88ca5aa496674c0 | 8de8a3ef8366adc7d489edcd500a691a44d6fdad | refs/heads/develop_v4 | 2023-08-31T09:10:21.010343 | 2023-08-31T06:54:26 | 2023-08-31T06:54:26 | 67,224,522 | 8 | 12 | MIT | 2023-08-29T23:04:45 | 2016-09-02T13:24:00 | C++ | UTF-8 | C++ | false | false | 431 | h | geodatapolydatagrouppolydata_impl.h | #ifndef GEODATAPOLYDATAGROUPPOLYDATA_IMPL_H
#define GEODATAPOLYDATAGROUPPOLYDATA_IMPL_H
#include <QVariant>
#include "../geodatapolydatagrouppolydata.h"
class GeoDataPolyDataGroupPolyData::Impl
{
public:
Impl(GeoDataPolyDataGroup* group);
QString m_id;
QString m_name;
QVariant m_value;
unsigned int m_order;
... |
c6164d4aff498049722bcf87ab1a9e055622ebe4 | 1f74553b050b88a3484f6d3d93fa09f8aaa9a826 | /Homework/bai17_sohoanhao.cpp | 715c2910384e72c3c54ebf7138c250195b41f5fa | [] | no_license | dattocngan/THCS2_PTIT | 2e970942ee28a87b0c66d31667185b1c1e58e340 | edbf6b944a0f3cf0065b02c49ed83b7c39c1526a | refs/heads/main | 2023-04-29T06:36:45.770537 | 2021-05-19T16:35:24 | 2021-05-19T16:35:24 | 345,918,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | bai17_sohoanhao.cpp | #include<stdio.h>
#include<math.h>
#include<string.h>
int main(){
int n;
scanf("%d",&n);
int sum = 0 , i;
for( i = 1 ; i <= n/2 ; i++ ){
if( n % i == 0 ){
sum += i;
}
}
if(sum == n) printf("1");
else printf("0");
return 0;
}
|
29378dad6c34ac212972d2a67ccc23f5e89fdfd2 | ffbe784801c32fc386385b2ce4cd0358df269650 | /main.cpp | 1530f9034e69e81ccf32380465b94ae757ce1630 | [] | no_license | r77feed/Algorithms-and-data-structures | 722463fbb50dcb12c4bedd18e555471fcd2e57b8 | 871681319460265235f16dc4d2b0c54d23fdfa66 | refs/heads/master | 2020-04-05T14:11:12.237626 | 2017-08-14T07:46:40 | 2017-08-14T07:46:40 | 94,817,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cpp | main.cpp | #include "Lists/LinkedList.h"
#include "Lists/Stack.h"
int main() {
int array[] = { 4, 1, 3, 2, 1, 7, 9, 0, 4, 2 };
int size = sizeof(array) / sizeof(*array);
AbstractList *abs;
//abs = new LinkedList(size, array);
abs = new Stack(size, array);
//cout << abs->getNth(2) << endl;
abs->printList();
// abs->del... |
206045f749fb41712011a00f3da5997f20c91044 | 5c364c06003ec3d6b9b2a8b91eaab6d0293ff907 | /luogu/luogu1160双向链表/main.cpp | 0e9ed845e0e337759eca50c409c6e349a013be51 | [] | no_license | majiaoliya/acm | aa3d4b9679ac8f7ace28c2f4b5a21dc2d6421b71 | c0aa06b08547e6d75ea5a4b7db3cfe5e7f9bed83 | refs/heads/master | 2020-09-17T01:51:16.950731 | 2020-04-29T15:02:05 | 2020-04-29T15:02:05 | 223,952,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,680 | cpp | main.cpp | #define debug
#ifdef debug
#include <time.h>
#include "/home/majiao/mb.h"
#endif
#include <iostream>
#include <algorithm>
#include <vector>
#include <string.h>
#include <map>
#include <set>
#include <stack>
#include <queue>
#define MAXN ((int)1e6+7)
#define ll long long int
#define QAQ (0)
using namespace std;
int ... |
e14857ea8486c507366bc2dd24a62421bf4f7a61 | 427f48b76d1b312cff7af2d9b535ea333e8d154e | /cpp/utility_variant_variant_alternative.cpp | 875765ae4822c91cc8cc62902862dcdbc2357caa | [
"MIT"
] | permissive | rpuntaie/c-examples | 8925146dd1a59edb137c6240363e2794eccce004 | 385b3c792e5b39f81a187870100ed6401520a404 | refs/heads/main | 2023-05-31T15:29:38.919736 | 2021-06-28T16:53:07 | 2021-06-28T16:53:07 | 381,098,552 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | utility_variant_variant_alternative.cpp | /*
g++ --std=c++20 -pthread -o ../_build/cpp/utility_variant_variant_alternative.exe ./cpp/utility_variant_variant_alternative.cpp && (cd ../_build/cpp/;./utility_variant_variant_alternative.exe)
https://en.cppreference.com/w/cpp/utility/variant/variant_alternative
*/
#include <variant>
#include <iostream>
using my_var... |
1fc38469de79a19aa2f707c68cb5b75a14f8b4a2 | 25ec9458c43fa2a5c0b53419b9daf71cd9df78f7 | /dune/gdt/test/hyperbolic/eocexpectations-fv-transport-2dyaspgrid.cxx | ba4545b6a7c8e9cc2c49941f29984b4971969873 | [
"BSD-2-Clause"
] | permissive | gitter-badger/dune-gdt | e31ecbff8b897956a55df2d8af9b3cba310d88e4 | 2d658a74f6a2f96a3d3b6cdef702f6b69ec63f42 | refs/heads/master | 2021-01-12T16:24:54.755194 | 2016-10-05T09:13:17 | 2016-10-05T09:13:17 | 70,047,474 | 0 | 0 | null | 2016-10-05T09:43:24 | 2016-10-05T09:43:24 | null | UTF-8 | C++ | false | false | 4,866 | cxx | eocexpectations-fv-transport-2dyaspgrid.cxx | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2016 dune-gdt developers and contributors. All rights reserved.
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// Authors:
// Felix Schindler (2016)
// Tobias Leibner (201... |
348eb4f288f4b392125dfd83d3c56f15fbb53fb0 | 63c7c7e07cf23aa82b6a61a516174da63504f095 | /西北大学新生寒假训练(3)——基础题/d.cpp | d86c2b2b29c1a3a28eed5a1b986f1478cab79f69 | [] | no_license | Linfanty/Code-in-Freshman | 3b174b6fab510dc1aa214d760f050ca1618afc8d | b60b99f520c4740c6b8306880680a610f054f403 | refs/heads/master | 2021-01-24T12:37:29.255747 | 2018-02-27T15:10:29 | 2018-02-27T15:10:29 | 123,144,148 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | cpp | d.cpp | #include<string.h>
#include<algorithm>
#include<sstream>
#include<iostream>
#include<math.h>
#include<vector>
#include<stdlib.h>
#include<climits>
typedef long long ll;
const int maxn = 105;
using namespace std;
int main()
{
freopen("in.txt","r",stdin);
freopen("out.txt","w",stdout);
double x1,y1,x2,y2,x3,y3,x4,y4;
... |
d023b3ea9c13293365b403788c80f6502abe1e99 | 1afd8b85cef9ce4cf3790f5c949bd833bfa376d8 | /Object Oriented Programming(C++)/例题及训项目代码/chapter3/ex12.cpp | 5549ebb9c589a3e275b93fcb3099e07de7c2efe7 | [] | no_license | JiangSir857/C-Plus-Plus-1 | 13d59c57944adc66fe08558846f507382cc08ab3 | 35e1e36aff81635a416f26d26f7318fb0526a577 | refs/heads/main | 2023-05-01T05:44:48.828770 | 2021-05-20T07:42:06 | 2021-05-20T07:42:06 | 369,123,318 | 0 | 0 | null | 2021-05-20T07:40:52 | 2021-05-20T07:40:52 | null | WINDOWS-1252 | C++ | false | false | 187 | cpp | ex12.cpp | //¡¾Àý3.12¡¿ ´òÓ¡¾Å¾Å³Ë·¨±í
#include "iostream.h"
void main()
{
int k,i;
for(k=1;k<=9;k++)
{
for(i=1;i<=9;i++)
cout<<k*i<<"\t";
cout<<"\n";
}
}
|
78ab43163e743b0f7e6bf2a852f54db151d590bd | e1e01e6fb9956b543b6ec680a2c0bea72feb1e48 | /projet/src/path.cpp | 704b0e0d64cd7d6cfa1527f072950850424dd206 | [] | no_license | adentinger/INF1995 | d03013285a0fcc2091461feb19768debd9d6b4d1 | 4d61a54d722737c70963c2750683850e6c54eb94 | refs/heads/master | 2023-04-07T21:15:49.526934 | 2016-12-02T22:34:28 | 2016-12-02T22:34:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,939 | cpp | path.cpp | #include "path.h"
const PathState
S_BEGIN = 0x1F, // Etat de début
S_FOR1 = 0x04, // Etat avancement
S_FOR2 = 0x0E,
S_FOR3 = 0x0A,
S_COR_R1 = 0x0C, // Etat correction vers la droite
S_COR_R2 = 0x08,
S_COR_L1 = 0x06, // Etat correction vers la gauche
S_COR_L2 = 0x02,
S... |
e6ea4be4ec0943c7bb5848e4285be0ae7766e157 | b2c5aecfa11760832298ea58f37ea81910ef27b9 | /data/cameraPath/fps.cp | 4cac3b3403093e6edb1d00848ead8dd4061f8bd1 | [] | no_license | paulwratt/dEngine | 2276b984d770bef27f1ecb3e69a028bab5215858 | 7f68c628142e69fa088849103a8b9604b701edbc | refs/heads/master | 2022-01-29T23:01:49.975493 | 2018-04-05T21:37:14 | 2018-04-05T21:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,614 | cp | fps.cp | cp1
num_frames 428
time 20888: (148.2661,80.0000,-294.7611) q (-0.0123,0.1910,-0.0024,0.9815)
time 20922: (148.2661,80.0000,-294.7611) q (-0.0123,0.1910,-0.0024,0.9815)
time 20985: (148.2661,80.0000,-294.7611) q (-0.0123,0.1910,-0.0024,0.9815)
time 21049: (148.2661,80.0000,-294.7611) q (-0.0123,0.1910,-0.0024,0.9815)
t... |
13fdbb45f2cab08d4f9fd2b51376dbbd658fba89 | 673898877733674de995e597acdda526a9104cf3 | /PCBRecheck/FileSyncThread.h | 019bf4e38f296bbb2f65256c3f59225f77c1d5b5 | [] | no_license | wenyuexin/PCBRecheck | a9e8f62a43cc6f38b8e1c9cbcc59a5a85b6b2ef5 | 608eaaa438a31a6616897df6d2820596c46af1c1 | refs/heads/master | 2022-03-26T21:07:31.098216 | 2019-12-16T13:58:35 | 2019-12-16T13:58:35 | 175,177,224 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 578 | h | FileSyncThread.h | #pragma once
#include <QThread>
#include <QDebug>
#include "Configurator.h"
#include "RuntimeParams.h"
#include "FileReceiver.h"
class FileSyncThread : public QThread
{
Q_OBJECT
private:
pcb::UserConfig *userConfig;
pcb::RuntimeParams *runtimeParams;
FileReceiver *fileReceiver;//Îļþ½ÓÊÕÆ÷
public:
FileSyncThr... |
95ef29d7d501e4c666da29c56f65377430f27954 | 6f55d5c76b809f06f9ba6ce446f575ed0059b0e7 | /src/environment.cpp | ac1ffd8c5b9dd6ae4b8332cf57ea833abe1eb22a | [] | no_license | abasired/SFND_Lidar_obstacle_detection | f4660dbb918fa9b41b33cdcfadb246ae87f6dff7 | f6c2e4053112f7b9d68466f1b6a14ef73f00056d | refs/heads/master | 2023-04-09T14:29:24.123994 | 2021-04-09T03:42:17 | 2021-04-09T03:42:17 | 356,124,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,962 | cpp | environment.cpp | /* \author Aaron Brown */
// Create simple 3d highway enviroment using PCL
// for exploring self-driving car sensors
#include "sensors/lidar.h"
#include "render/render.h"
#include "processPointClouds.h"
// using templates for processPointClouds so also include .cpp to help linker
#include "processPointClouds.cpp"
std... |
ecd7c576812bb0c5a62849fdd9691b2499c80a92 | f34a26b7ca4ed085d2525f52daece0f1ac4d32f0 | /src/nodes/geometry/pointset.cpp | a39493286c5e75f102b39e6c7e5a72a0155ccca8 | [
"MIT"
] | permissive | TrueBlocks/vraniml | 86f5cb866431dff80fa9e2b95b5a010894f1c21b | 1ae36d2c1d37555cc39211ed761342b9a35e9d21 | refs/heads/master | 2023-03-14T11:56:20.438808 | 2021-03-05T17:39:21 | 2021-03-05T17:39:21 | 75,577,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,697 | cpp | pointset.cpp | //-------------------------------------------------------------------------
// Copyright (c) 1997-1998 Great Hill Corporation
// All Rights Reserved.
//-------------------------------------------------------------------------
// WARNING: THIS FILE WAS CREATED AUTOMATICALLY
//---------------------------------------... |
6c1b8f30bf568b96aa0b28391bb31327dd14c83f | 0610672bac5671c6707fee65d6563cbd4306ea5a | /Cloud11Gaming-Alpha/VelocityEngine/StructuralCore/LocatableTradableComponent.h | 7e130b467ebf12b092957ce61ba5af01698dff5b | [] | no_license | Manny500/Sample-Code | 1bbaf6ac5314253e0fd04eda159eb1d67f777294 | caf0ffcbf43ad0939c31c069b82dbd2e48323c50 | refs/heads/master | 2021-09-18T22:04:04.899545 | 2018-07-20T03:52:24 | 2018-07-20T03:52:24 | 36,447,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | LocatableTradableComponent.h | #ifndef LOCATABLETRADABLECOMPONENT_H
#define LOCATABLETRADABLECOMPONENT_H
//Project
#include "LocatableComponent.h"
#include "Tradable.h"
/**
* @brief The LocatableTradableComponent class
*/
class LocatableTradableComponent : public LocatableComponent, public Tradable{
public:
LocatableTrada... |
d1bf7950db23cb91a2e04c67e12caf5cce9b58ad | 8301ee832434d1ab45551636c85088d0ecef290c | /PPS practice programmes/pointers_initialization_1.cpp | 48e883ca7b624fd7b3bc61a7448ca07849bf2593 | [] | no_license | KOTHAGADIAKHILA/C-PROGRAM | 688a2ae162a56fbe4ba4da6643bb879c6745b927 | 991e225b1f3728d2c56377e45c1e476a80a17693 | refs/heads/main | 2023-08-03T22:51:52.361716 | 2021-09-10T10:19:27 | 2021-09-10T10:19:27 | 377,129,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | pointers_initialization_1.cpp | #include<stdio.h>
int main()
{
int a,*ptr;
ptr=&a;
printf("enter a number");
scanf("%d",ptr);
printf("%d",*ptr);
}
|
0e35c2a40c8e7d1b77339921838afa4f8eea3eca | e6ab37c80167386920e40ad8cf5231ce9b378c8f | /PS_Study/187.cpp | d2730d9bf6d7158406d874015fb2ef717ab2a931 | [] | no_license | seotosps/ps | cc6da2b5ba8821328193b92901d38da01faf5d16 | 55db7f986fc6cff41790ce1f9c0af9cd398915d1 | refs/heads/master | 2021-01-10T04:16:41.470743 | 2015-11-10T08:18:03 | 2015-11-10T08:18:03 | 45,894,282 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 648 | cpp | 187.cpp | /*
Prob No.187 : 약수의 합 (Small) [CH02.2.Algorithm(Design)]
Time Limit(Test case) : 1000(ms)
Total Submit : 52 Accepted : 33
Background
한 정수 N을 입력받아서
N의 모든 약수의 합을 구하는 프로그램을 작성하시오.
Input
첫 번째 줄에 정수 N이 입력된다.
단, 1 <= N <= 100,000
Output
N의 약수의 합을 출력한다.
IO Example
입력
10
출력
18
입력
10
출력
18
*설명 : 10의 약수는 ... |
13af987e980c29ee46658878878bfc65be0dfb05 | 601739f856e0de4bd50a3d88e7f7e6dadae53a79 | /cpp/combat-simulator/Combat.cpp | befc45cbc57ae2f70e68ac78db32cb42d94d74fb | [] | no_license | sshillyer/my-portfolio | 1735def76e90dfb77eb909e43ff5926513cfef1e | 842960ca7652a6d434fc84ae621fb8f82e73369d | refs/heads/master | 2021-01-01T05:21:36.054848 | 2016-05-02T05:53:54 | 2016-05-02T05:53:54 | 57,867,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,620 | cpp | Combat.cpp | /*********************************************************************
** Program Filename: Combat.cpp [IMPLEMENTATION]
** Author: Shawn Hillyer
** Date: 11/13/2015
** Description: Handles combat between any two Creature subclasses
** Input: Needs two points to creatures to engage... |
3c23ca7dbfe9e88aa536562e253bb125348ac831 | 3f4f1ea417200f75ddb8ba7a82ef2074d616b0fe | /Tree.h | ed813b6f1fa55ccaffa2b361c51d96b342b5b51c | [] | no_license | toyamagaio/AC_HKS_at_ESB | 4531a0402df5eac189ad2ce6c1fb52fb6f687a6e | 05974df48f06bb49f70cd97c10a444cfc029f3e8 | refs/heads/master | 2020-03-26T16:11:46.666919 | 2018-08-20T12:28:02 | 2018-08-20T12:28:02 | 145,087,513 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,396 | h | Tree.h | #ifndef Tree_h
#define Tree_h
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
#include "TApplication.h"
#include "TFile.h"
#include "TTree.h"
#include "TChain.h"
#include "define.h"
class Tree
{
public:
Tree();
~Tree();
public:
double runnum, evnum; ... |
ab99a9398390d0b6cdc849e6f67c80ef56a19bcb | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx | 4e19863ab76e747ad00b8e25c1fd99725f377f51 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 14,542 | cxx | thumbviewer.cxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to yo... |
89410d0779a553a93c14a478134941f706e7ec52 | 2b1b459706bbac83dad951426927b5798e1786fc | /src/storage/factory/factoryfs/runner.cc | ab48c28d96508997423f6882f88ced2c4e790240 | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 2,729 | cc | runner.cc | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/storage/factory/factoryfs/runner.h"
#include <fidl/fuchsia.fs/cpp/wire.h>
#include <lib/syslog/cpp/macros.h>
#include <fbl/auto_lock.h>
#i... |
2039ebfdb9b1d36ce09aa613b12d39fad8b4d648 | 48ca23ef94e263e6c2a27c450ad7b11670f67b71 | /NotificationCenter/extensioninterface.h | dd98992a03dbbe09adaec484b5a7dde74628076d | [
"MIT"
] | permissive | LinuxNotifier/NotificationCenter | f5c51df9a09851a7ed6fd94f2f66b181c74dba45 | 213d54b2a93c403bc2150d857f032915dcb2c102 | refs/heads/master | 2020-04-02T01:39:16.220745 | 2019-02-03T10:34:26 | 2019-02-03T11:16:38 | 153,867,778 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,485 | h | extensioninterface.h | #ifndef EXTENSIONINTERFACE_H
#define EXTENSIONINTERFACE_H
#include <QtCore>
#include "debug.h"
class PluginInfo;
class NotificationCenter;
class QWidget;
#define ExtensionInterface_IID "org.linuxnotifier.NotificationCenter.Extensions"
class ExtensionInterface
{
public:
// enum class ExtensionType {
... |
dba1b14aa2b0ed88c796ebe4c4b82b72451dce53 | fcc175715e9e0b39870b84d1474f6ad015417ea6 | /tests/unit_tests.cpp | 5990e73f876d3526ddf31adb9df0f6f7e1cfcadb | [] | no_license | shikharsrivastava/Matrix | d70abbb649d2a08e2d7e3526a70be111eac75544 | e694051526bfb050f54405a357a61144f32af56e | refs/heads/master | 2021-05-11T04:07:25.240281 | 2018-02-08T19:20:23 | 2018-02-08T19:20:23 | 117,932,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,829 | cpp | unit_tests.cpp | /* Using Boost Test framework.
* Info - http://www.boost.org/doc/libs/1_53_0/libs/test/doc/html/utf.html
*
* Unit Tests for Matrix library
* Author - Shikhar Srivastava
*/
#define BOOST_TEST_MODULE matrix_lib
#define BOOST_TEST_DYN_LINK
#include <boost/test/included/unit_test_framework.hpp>
#include "../includes/... |
274e07a284ba16ca3122c90a7411fbae737ced61 | a77a279063edf30f8c1667bf0b287f9a93660ed9 | /HashBucket/HashBucket/unorderMap.h | 04126dfdfcb764277e34e8ad98a265c8daab779a | [] | no_license | WilliamMunch/DataStructure | 1fec6b50c4187f789a926ac32e622583734e6f3a | 8d724a0bf200602095a4475cab7cdc29fdf53f6c | refs/heads/master | 2020-04-25T23:04:14.124793 | 2019-02-20T17:01:51 | 2019-02-20T17:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 784 | h | unorderMap.h | #pragma once
#include"HashBucket.h"
template<class K, class V, class _HashFunc = HashFunc<K>, class KeyOfValue = PairKeyOfValue<K, pair<K, V> > >
class UnorderMap
{
typedef HashBucket<K, pair<K, V>, _HashFunc, KeyOfValue> HASH;
public:
typedef typename HASH::Iterator Iterator;
pair<Iterator, bool> Insert(const pa... |
365a784937033e6a49c53214fed09cee619e53d2 | 492976adfdf031252c85de91a185bfd625738a0c | /src/KingSystem/World/worldJob.cpp | 7f0cd1fff4a87ed71d7b455e3e21cb4e45d34e33 | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 536 | cpp | worldJob.cpp | #include "KingSystem/World/worldJob.h"
#include "KingSystem/World/worldManager.h"
namespace ksys::world {
Job::Job() = default;
Job::~Job() = default;
void Job::init(sead::Heap* heap) {
init_(heap);
}
void Job::invoke() {
switch (Manager::instance()->getCalcType()) {
case CalcType::_0:
calc_();... |
3bc203d2b72a69490683926496409af85a279da7 | 14ce01a6f9199d39e28d036e066d99cfb3e3f211 | /Cpp/SDK/QuestLogPanel_BP_classes.h | 130c4b61deae09fa286cb5056c3548d6add31da9 | [] | no_license | zH4x-SDK/zManEater-SDK | 73f14dd8f758bb7eac649f0c66ce29f9974189b7 | d040c05a93c0935d8052dd3827c2ef91c128bce7 | refs/heads/main | 2023-07-19T04:54:51.672951 | 2021-08-27T13:47:27 | 2021-08-27T13:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,411 | h | QuestLogPanel_BP_classes.h | #pragma once
// Name: ManEater, Version: 1.0.0
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------... |
741e4beedc1bac2f785eeff3d8216994dfd6e35d | 4be6611431e4ff6d53ad00df164646c7bce1c6b2 | /codeforces/Codeforces Round #467/A. Save Energy!/main.cpp | 292d4b8239d7f64a524b82e9907ea2324cc1b92a | [] | no_license | cheerconi/online-judge | 98d0a8353cf80ade292cf8edfba3d02474a80b67 | 46cc0f35f2f66aac520557c511484393cf16888b | refs/heads/master | 2022-09-22T13:24:38.477277 | 2022-09-18T12:26:53 | 2022-09-18T12:26:53 | 97,737,698 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | main.cpp | #include <iostream>
#include <cmath>
using namespace std;
typedef long long LL;
typedef long double LD;
const LD eps = 1e-9;
LD solve (LL k, LL d, LD t, LD need) {
if (fabs(need) < eps) return 0;
if (k % d == 0) return t*need;
if (k/t >= need) {
return need*t;
}
LL tmp = k % d;
tmp = d ... |
de16a3e83a86d920ca882b37b4ce6b8369c50cf8 | e216c1df4b156d7a0d7b3f62d6b81b27d562211d | /POWER.cpp | eed00f5c946bac4b725cb7010f7c8f6eb6fcecad | [] | no_license | Bonayy/Competitive-Programming | 0888b394c556c90559c66802e40d9ff6fd905780 | 03dc096da4978bc18d9e52704ebaf7bbc59ddca0 | refs/heads/master | 2022-12-19T20:58:40.693221 | 2020-09-30T04:22:19 | 2020-09-30T04:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | cpp | POWER.cpp | #include <bits/stdc++.h>
#define FOR(i, l, r) for (int i=l; i<=r; i++)
#define REP(i, r, l) for (int i=r; i>=l; i--)
#define eps 1e-9
using namespace std;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
long test_cases;
long long l, r, floor;
float lp, rp;
cin >> test_cases;
FO... |
91e90c1a0546cdaa259006875e7cd249dd7178be | 0fa4a394a559fe153a93a607eb3a8a87a1dea093 | /JOI/joi_qual_6/joi_qual_6d.cpp | b1e7ad069e5193ff3fd09a503ba6464e48619591 | [] | no_license | kk-katayama/compro | 2f7dc78128f418bb4f3e7163a07cf01ea0c5c6c8 | fbd91eeae89e8dc2d352849b888e949c42e89ae8 | refs/heads/master | 2021-02-07T00:47:56.333856 | 2020-02-29T14:44:13 | 2020-02-29T14:44:13 | 243,963,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cpp | joi_qual_6d.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<=n;++i)
using namespace std;
void refl(vector<int> &a){
vector<int> tmp((int)a.size());
rep(i,a.size()/2){
tmp[2*i] = a[i];
}
rep(i,a.size()/2){
tmp[2*i+1] = a[i+(int)a.size()... |
dcb6d66d26e62a210fdd9509a99d2e491097622a | 95f54d4022ef40ae1e07da4f444041e85df9bbe6 | /bsaframe/bsaframe.cpp | 47e9b9537766df723440a3e1bfacebc4f6c80d0c | [] | no_license | bdodge/bsa | a5530776e1a371e16240faff517e3e7139725987 | 1337b10160ffc1f2c03a0642d3ff7e5222ad14ab | refs/heads/master | 2022-07-07T16:47:45.395651 | 2022-06-28T13:15:17 | 2022-06-28T13:15:17 | 48,489,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,058 | cpp | bsaframe.cpp | //--------------------------------------------------------------------
//
// File: bsaframe.cpp
// Desc: application framework
// Auth: Brian Dodge
//
// (C)opyright 2003 - 2005 - BSA and Brian Dodge
// ALL RIGHTS RESERVED
//
//--------------------------------------------------------------------
#include "framex.h"
#d... |
7374d9e6481315d3d5d9662dc6c2dad1e104e7d2 | b248a084030584126d73a46454136b07c99a6867 | /include/variantMatch.h | 23b5cc546bfada27d2464dae2d98fb2855b12a20 | [] | no_license | Cycris/GreenTiger | f5fdafd9c406ab084990177291fa6edac35f244c | 10ee423e6b3e67ac52df637d034d9e60782f9505 | refs/heads/master | 2021-07-22T10:50:41.226214 | 2017-10-31T08:59:14 | 2017-10-31T08:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | variantMatch.h | #pragma once
#include "overload_set.h"
#include <boost/variant/apply_visitor.hpp>
namespace helpers {
namespace detail {
// a function object which calls one of the given overloads depending on the
// variants value
template <typename Variant> struct VariantMatcher {
VariantMatcher(Variant &variant) : m_variant(va... |
f941f6df903a0f300be0afc8f2590bbc1b6b8f28 | 183d30ccc4bb09cc89aaacbce9258a73c96d838f | /StandAloneAveDesk/AsyncDownloader.cpp | 455148f8d40677cd0900ab2d9990ebc0de027f25 | [] | no_license | jackiejohn/AveDesk | 6efaa73d6ccd67845eb6f6954a63f412993edbef | 8f201dc1e14f65ddcfd1f9d281379f347ed22469 | refs/heads/master | 2021-05-27T17:50:41.693612 | 2015-02-21T15:35:43 | 2015-02-21T15:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,894 | cpp | AsyncDownloader.cpp | #include "stdafx.h"
#include "AsyncDownloader.h"
#include "AveInstCancelable.h"
#include "AveInstFileFetcher.h"
#include "AveInstaller.h"
CAsyncDownloader::CAsyncDownloader(HWND callbackHwnd, const std::wstring& url) :
callbackHwnd(callbackHwnd),
url(url),
threadHandle(NULL)
{
}
CAsyncDownloader::~CAsyncDownloade... |
7da50028f9d6d044c9143f80f4148e133609acdd | b02704d9ea2658feb238f12c2a67f0eca99c1b1d | /c++/3_markdown/runer.hpp | 830208d5f4336465c2af4e9ba995786d9dce196c | [] | no_license | causelovem/2-course | f1ad73712b4bd363971acaff2033effd0444dea0 | 0f5d8531186aa902b5a8b1c3818b3d7b8e7a8f4f | refs/heads/master | 2020-09-26T08:29:44.459846 | 2016-11-19T11:19:10 | 2016-11-19T11:19:10 | 67,630,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,468 | hpp | runer.hpp | #define FIRST_UNICODE_BYTE1 (char)0xD0
#define FIRST_UNICODE_BYTE2 (char)0xD1
int width = 40, tab = 2, red = 0;
char mlist_marker = '*';
enum text_type
{
TEXT_RAW,
TEXT_MLIST,
TEXT_LIST,
TEXT_HEADER,
TEXT_NULL,
TEXT_CODE
};
int count_digits(int number){ return ( number /= 10 ) ? 1 + count_d... |
7a3d567a42990ecdfa97a71a976fcf348fd7f6a3 | 9fcfe6094276a3ed4b2ac089686cc3554af4ab20 | /hw/main.cpp | 3002c47d59bade0e97862009aeffe1bbb26e17de | [] | no_license | kippesp/design_patterns_class | 5492dcdf7dc9d5f83aecdee8b0e3f472479c707a | 9887e1adf39a02c0e36c3f6999c7912744dd17d7 | refs/heads/master | 2021-05-23T05:22:05.396785 | 2017-07-23T22:00:44 | 2017-07-23T22:00:58 | 95,154,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,938 | cpp | main.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <list>
#include <map>
#include <set>
#include <vector>
#include <iostream>
using namespace std;
#include "macros.h" // there can be only one
namespace homework {
namespace strategy {
#include "problem/strategy.h"
#include "solution/strategy.h"
}
na... |
a74b6cd793fa2ce2816d57ed6dd173442736e375 | f86bd285c6bcc96e68f2c56531b0bac8649b8f84 | /Lab_15/wrapper.hpp | f07988b25135f6801f1b65a50f8e3df676551379 | [] | no_license | Lawtonlegacy/cs202 | c2c40f7df6ea80093e04f5ed72707176141d7d04 | 8b49666e3c38925aefc8d2a84269cf0155dba992 | refs/heads/master | 2020-07-27T14:49:40.095551 | 2019-12-03T12:32:53 | 2019-12-03T12:32:53 | 209,130,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | hpp | wrapper.hpp | #ifndef WRAPPER_HPP
#define WRAPPER_HPP
#include <iostream>
template <typename T>
class Wrapper {
template<typename U>
friend std::ostream& operator<<(std::ostream& os, const Wrapper<U>& type);
public:
Wrapper(const T& obj) :_first(obj) {}
private:
T _first;
};
template<typename U>
std::ostream& operator<<(std::... |
179cc3eb7692bfe282c1b7b314f8dd620fa70f05 | e537ccf5cec931491ab74bec6eda6603cd3db173 | /book/admindialog.h | c67c274e386ed4cce95108a0a262fab263f67cf7 | [] | no_license | H-K-ai/Qt-4.7.4 | 47b8f5e84a96a1448c78f690b63453f296d67561 | b5f857e75799e711e48bda1e29e023c17557cfe6 | refs/heads/master | 2021-05-28T07:22:34.300373 | 2015-03-02T19:10:15 | 2015-03-02T19:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | h | admindialog.h | #ifndef ADMINDIALOG_H
#define ADMINDIALOG_H
#include <QDialog>
#include "mydatabase.h"
#include "adbookdialog.h"
#include "adborrowdialog.h"
#include "adstudialog.h"
#include "adoverdialog.h"
#include "booksearchdialog.h"
namespace Ui {
class adminDialog;
}
class adminDialog : public QDialog
{
Q_OBJECT
publ... |
e02b5e8812837033b830641849b8baebf5ba431b | 88436b4f2df5454bcc8d6b3bc44b766d1594854a | /chap31/NumericTheoretic.cpp | 734c4830fc2f3efc84ba0ad771b15e58adcba9f9 | [] | no_license | seehidre/introduction_to_alogrithms_3rd | 8ae42758bdb8b19a1e0f877c19e2b20f628015be | 8d3f43ff43c4709e01828770a521203bc8ff207b | refs/heads/master | 2021-06-06T01:19:14.710370 | 2016-10-05T09:39:26 | 2016-10-05T09:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,232 | cpp | NumericTheoretic.cpp | //
// Created by yijun on 9/25/16.
//
#include <cmath>
#include <iostream>
#include <bitset>
#include <vector>
#include "NumericTheoretic.h"
int NumericTheoretic::Euclid(int a, int b) {
if (b == 0) {
return a;
} else {
return Euclid(a, b);
}
}
DXY NumericTheoretic::ExtendedEuclid(int a, i... |
c03273370f9f9c013697360db48724f13b9b0cab | 5f1a88d6f40988188a287940f35d4affc4e47d81 | /HypoNetwork/src/Hypo/Network/Socket/SocketImpl.h | 27a35c6137ed9f857037cd728c3b4ef685d76f58 | [
"Apache-2.0"
] | permissive | TheodorLindberg/Hypo | 452878ea0cc057304f6d10113667e883d4f835c1 | 67107bf14671711ab5979e2af8c7ead6ee043805 | refs/heads/master | 2022-11-21T10:17:53.916406 | 2020-07-26T21:27:09 | 2020-07-26T21:27:09 | 228,365,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | h | SocketImpl.h | #pragma once
#include <memory>
#include "Hypo/System/DataTypes/ObjPtr.h"
#include <Hypo/Network/Socket/SocketDefs.h>
#include <Hypo/Network/IpAddress.h>
namespace Hypo
{
class HYPO_NETWORK_API SocketImpl : public RefCountedObject
{
public:
SocketImpl() = default;
SocketImpl(hypo_socket_t impl);
virtual v... |
2e24ba874067b04e1a9b7c523237d15f7e776ca6 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive/1e9ce66f7e6dfaa77ebc5a813003955a-f674c1a6d04c632b71a62362c0ccfc51/main.cpp | 1e5d912bb799a9b7a6efa99bf8ae1f737cd67d9d | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | main.cpp | #include <map>
#include <string>
bool less_ic(std::string const& a, std::string const& b)
{
return a<b; // TODO
}
int main()
{
std::map<std::string, int, decltype(&less_ic)> map(less_ic);
}
|
642e1600f36bf60a75f9b1e8481b60aab32b3703 | 37867f639363ab2f188028dc158b483b6e6b81f3 | /Src/AI/WaveManager.h | 956ab287854e5cb1660d67f02ca4aee470320d9f | [] | no_license | ailuoxz/BadPrincess-Game | 704143bcafe1205a2ccdd7dbd68ed284c6fa1d76 | 47caae1a03fdfe8058260e44add25fd8e89f99c3 | refs/heads/master | 2021-12-14T15:13:50.974644 | 2017-05-04T16:31:22 | 2017-05-04T16:31:22 | null | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 1,822 | h | WaveManager.h | /**
@file WaveManager.h
This class manage all enemy waves
@see WaveManager
@author Guidi Giacomo
@date March 2015
*/
#pragma once
#ifndef __AI_WaveManager_H
#define __AI_WaveManager_H
#include "BaseSubsystems/Math.h"
#include <memory>
#include "Logic\NMessage.h"
namespace AI {
class CWave;
/**
This class ... |
0e8a8d9d832bbcd9f73a9b9473cf9c2a6bd0f116 | c0ddb86f01be39120ce420d3c65a8f3e9cb732bb | /Addons/ares_zeusExtensions/cfgFunctionsBehaviour.hpp | 801620b2b04fba06cd4ab52675f5f1c4b309375a | [] | no_license | ARCOMM/ARC_Ares | 5d07046901e8e9fdd76080f4a37a905a4f455517 | 8d491df989152748de86ee2f61883d5aa0795ab2 | refs/heads/master | 2020-04-06T06:57:45.080182 | 2016-09-29T19:29:57 | 2016-09-29T19:29:57 | 53,206,654 | 2 | 0 | null | 2016-09-26T18:05:10 | 2016-03-05T14:58:44 | C++ | UTF-8 | C++ | false | false | 348 | hpp | cfgFunctionsBehaviour.hpp | class BehaviourModules
{
file = "\ares_zeusExtensions\modules\Behaviours";
class BehaviourArtilleryCreateTarget {};
class BehaviourLandHelicopter {};
class BehaviourPatrol {};
class BehaviourSearchNearbyAndGarrison {};
class BehaviourSearchNearbyBuilding {};
class GarrisonNearest {};
class SurrenderSingleUnit {... |
e3c274e7da715201c9c91e70ac7417a7f5d073c0 | 06bc3152fc036ad8ea24ca783c0be44dcd93c747 | /p-testthread.cc | bb40883800e2d42c4a4af9c3d714e461bed850f4 | [] | no_license | FrankSzn/chickadee | 7b1587a08aae74970340e941a6f5f64d4124dc33 | b2a4eedb70b6a31d6c26d084fd6aaf15007e3f2a | refs/heads/master | 2023-01-04T12:04:46.745582 | 2022-01-26T17:38:29 | 2022-01-26T17:38:29 | 129,485,035 | 0 | 0 | null | 2018-04-14T05:29:19 | 2018-04-14T05:29:19 | null | UTF-8 | C++ | false | false | 4,662 | cc | p-testthread.cc | #include "u-lib.hh"
#include <atomic>
extern uint8_t end[];
std::atomic_flag message_lock;
std::atomic<int> phase = 0;
int pfd[2] = {-1, -1};
const char* shared;
static void message(const char* x) {
while (message_lock.test_and_set()) {
pause();
}
console_printf("T%d (P%d): %s\n", sys_gettid(), s... |
542db82a44aa06840bdd1b71869e27e4927722ab | c9bef9d2ebec967c5307c49e7f66ad1b35adf6cd | /test/test_create_in_thread.cpp | 5ea8b58e98c466a4b5b7adc1c1827a0923ac0bfc | [
"MIT"
] | permissive | Oberon00/luabind | 7e2ff7a070914a92cf48af90ee01bcb27e3ea8c7 | 49814f6b47ed99e273edc5198a6ebd7fa19e813a | refs/heads/master | 2022-03-20T08:07:03.827522 | 2022-02-19T16:30:38 | 2022-02-19T16:30:38 | 5,831,730 | 31 | 16 | NOASSERTION | 2022-02-19T16:31:11 | 2012-09-16T18:11:35 | C++ | UTF-8 | C++ | false | false | 1,182 | cpp | test_create_in_thread.cpp | // Copyright Daniel Wallin 2009. Use, modification and distribution is
// subject to 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)
#include "test.hpp"
#include <luabind/luabind.hpp>
namespace {
int count = 0;
struct X
{
X()
... |
b7a53871e5435848339e59233065cbeac035b256 | f7056b618e1c712eff0c38f59b942a54f2445d95 | /src/functions.cpp | 4d6633b73e781813209b6f6cbd30c6b4bb1ac1d9 | [] | no_license | linnlan/b-plus-tree | db204638c89e4234941b9fa6ea1fc07a0f07184c | d4e9f0f6869c19a8dcaeb6fe1d27c29fb56b7ad7 | refs/heads/master | 2023-03-15T19:19:35.464831 | 2020-06-16T16:02:47 | 2020-06-16T16:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,619 | cpp | functions.cpp | #include <fstream>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
class stringComparator {
public:
int column;
bool operator()(vector<string> x, vector<string> y) {
return x[column] < y[column];
}
... |
77e02ded0cb2efe9f8f6711c649fe1b49e273bd6 | 55332445398a628deb727512a8c16e987679d114 | /libmarch/include/march/gas/derivative.hpp | fc845467f342d8407311cd401c7538feaf80e84f | [
"BSD-3-Clause"
] | permissive | tai271828/solvcon | 35854bea00812b9902565c33ef23f8c0cb978b45 | bd9d3915dfd8b1c639e4fc8f733ecb93cedb80f3 | refs/heads/master | 2022-12-05T06:56:01.129745 | 2022-02-07T15:42:51 | 2022-02-07T15:42:51 | 49,277,804 | 0 | 1 | null | 2016-01-08T14:53:49 | 2016-01-08T14:53:49 | null | UTF-8 | C++ | false | false | 6,609 | hpp | derivative.hpp | #pragma once
/*
* Copyright (c) 2016, Yung-Yu Chen <yyc@solvcon.net>
* BSD 3-Clause License, see COPYING
*/
/**
* @file
*
* This file includes code that implements the derivative calculation that
* makes use of gradient element. Solver<NDIM>::calc_so1n is the solver
* inteface.
*/
#include <cstdint>
#incl... |
ca53d3abbf93f551fd7d1e53c08bf4cb3f94d81f | c5611edba2ae3ec13be239f530450a7a4e4da365 | /tests/src/Messages/MessageWatcherTests.cpp | 61332813c8078231706e6e276918b9b8428943b3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | LAZYzhaoyang/GSAP | 76b7ed38173488f3e52d53ceb8232564d7cd5867 | 4c4e8266fb34ab96d6d0c27419fcaf2bf5972005 | refs/heads/master | 2023-01-01T03:39:39.496741 | 2019-09-25T23:39:55 | 2019-09-25T23:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,858 | cpp | MessageWatcherTests.cpp | // Copyright (c) 2018-2019 United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
#include <thread>
#include <utility>
#include "DynamicArray.h"
#include "Messages/MessageBus.h"
#include "Messages/MessageWatcher.h"
#include "Message... |
52d2dee3c6279007e93c091badcfa081b920983d | 6bdffe79068a4299e17991e36ad0115da0e0777e | /Algorithm_C/Algorithm_C/First/FirstCommonNodesInLists/FirstCommonNodesInLists.hpp | cf4cfdaa79fc06657a66aa0c05014a77761bc73d | [] | no_license | chm994483868/AlgorithmExample | f1f5746a3fe2915d2df6d97f946e2a1e72907bb8 | d44fb7d408abd3a1c7c720670cd827de8e96f2e0 | refs/heads/master | 2023-05-30T17:00:28.902320 | 2021-06-25T22:31:11 | 2021-06-25T22:31:11 | 230,116,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | hpp | FirstCommonNodesInLists.hpp | //
// FirstCommonNodesInLists.hpp
// Algorithm_C
//
// Created by CHM on 2020/7/24.
// Copyright © 2020 CHM. All rights reserved.
//
#ifndef FirstCommonNodesInLists_hpp
#define FirstCommonNodesInLists_hpp
#include <stdio.h>
#include <cstdio>
#endif /* FirstCommonNodesInLists_hpp */
|
da336582ed7c645ca5ec9a46305bef8ba5c9367b | e62c565406a06075891598b173d5fabfb0107335 | /tests/GeometryTest.cpp | b253c02ce3a377f0aa869586719a3720751b4252 | [
"BSD-2-Clause"
] | permissive | Othereum/otm | 2bf35fca82d527d05b51468d957c409f6303544e | 75a800c2c5e3351b8068c6417d176a5943c6af27 | refs/heads/master | 2022-12-25T02:04:40.641582 | 2020-10-08T08:22:20 | 2020-10-08T08:22:20 | 256,718,533 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,243 | cpp | GeometryTest.cpp | #include <gtest/gtest.h>
#include "otm/Transform.hpp"
namespace otm
{
TEST(Geometry, Quat)
{
constexpr Quat q1;
EXPECT_TRUE(IsNearlyEqual(q1.v, Vec3{}));
EXPECT_EQ(q1.s, 1);
constexpr auto q2 = q1 * Quat{};
EXPECT_TRUE(IsNearlyEqual(q1, q2));
const Quat q3{*Vec3{0.369242f, -0.596525f, -0.712614f}.Unit(... |
c52822068a140f772eecb2fbc10e5a5380dd145a | 0b275876d3c0bdf142170ef43eaf422c02ef43a0 | /include/Numeric/COperand.h | 9eafe07688f152e0c85b15dbe6591083b142d1d2 | [] | no_license | lukepierce/SSARI | b41f00a25996c14fe313fc2f687cf1e3c5a0c638 | 0539f3f3d3ed3b1dcf852ef55e5d5f2464a99b31 | refs/heads/master | 2021-01-15T19:18:31.342985 | 2016-01-15T20:03:54 | 2016-01-15T20:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | h | COperand.h | /*
* COperand.h
*
* Created on: Mar 4, 2015
* Author: lukepierc
*/
#ifndef SRC_BOOLLOGIC_COPERAND_H_
#define SRC_BOOLLOGIC_COPERAND_H_
#define DEPRECATED
#include <string>
#include "CValue.h"
using std::string;
namespace SSARI {
// Immutable Class
class COperand : public CValue {
public:
COperand();
virt... |
06b696da69508f6eabed736f18e6cfba64adced1 | f9c2fc81589123d834f146187cf366fcf87f0905 | /Thuc Hanh/Tuan02/hw/Bai_25.cpp | 9cf08d6afd3c34e174e8dbd49b6e20f55a91cf10 | [] | no_license | vinaghost/NMLT_DEADLINE | a95582d671a829e83900e6c960f7516549f8d1dd | a591ed7df053b91baccae18811621bd083d3ecd6 | refs/heads/master | 2020-03-28T14:27:25.311984 | 2018-11-06T03:06:25 | 2018-11-06T03:06:25 | 148,488,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | cpp | Bai_25.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <conio.h>
#include <math.h>
int main()
{
int x, n;
printf("Nhap vao n va x cach nhau dau khoang trang: ");
scanf("%d %d", &n, &x);
long int s = 0;
for (int i = 1; i <= n; i++)
{
s += pow(x, 2 * i);
}
printf("S(%d,%d) = %ld", n, x, s);
printf("... |
b090ca7d8aa96c70f1153c17a795dba77f75785c | 29c75835e3f689ba9329a68528862f27ece2a1c0 | /src/net/tests/InetAddress_test.cc | a07e734c2ddd10019fd78d752c325f271c018598 | [
"MIT"
] | permissive | luckyzahuo/wethands | 0305487aac5a65649f337da05a6a9e0ac104295e | 169b2c4e8758657de10fa5850d1749014338a31d | refs/heads/master | 2022-12-01T14:11:31.009211 | 2020-08-16T16:46:43 | 2020-08-16T17:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cc | InetAddress_test.cc | #include "src/net/InetAddress.h"
#include "src/reactor/EventLoop.h"
#include <endian.h>
#include <cassert>
using namespace wethands;
int main() {
InetAddress addr1("1.2.3.4", 7766);
assert(addr1.Family() == AF_INET);
assert(addr1.PortInNetEndian() == ::htons(7766));
printf("addr1: %x\n", ::be32toh(addr1.IpInNe... |
d050eeaa37226cc91dad6f3e75ef466e324fdcec | d327e106285776f28ef1d6c8a7f561b7f05763a6 | /cocos2dx/Shooting/Classes/BackgroundLayer.h | cce36346d682f2ca606c209fb6bad787c7c3a960 | [] | no_license | sky94520/old-code | a4bb7b6826906ffa02f57151af2dc21471cf2106 | 6b37cc7a9338d283a330b4afae2c7fbd8aa63683 | refs/heads/master | 2020-05-03T12:37:48.443045 | 2019-07-23T00:38:16 | 2019-07-23T00:38:16 | 178,631,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | h | BackgroundLayer.h | #ifndef __BackgroundLayer_H__
#define __BackgroundLayer_H__
#include "cocos2d.h"
USING_NS_CC;
class BackgroundLayer:public Layer
{
private:
Sprite*m_pBackground;
public:
BackgroundLayer();
~BackgroundLayer();
bool init();
CREATE_FUNC(BackgroundLayer);
};
#endif |
52e63fb40621c3fcd0693e8c9341866b9900acae | cb4b59cea78f34aafb6863f8524f15712843db1c | /Olfactometer/Server/rtl_coprocess/Module.cpp | 8122334f5464a456284e75d68c8c4980f068a0e3 | [] | no_license | ruby6117/ccode | 60e8adb335fc936c52b6ba4d2d3edc31c9e2cc23 | f735f395a54feb5813c7a9e84e0b468231bda0a9 | refs/heads/master | 2021-01-10T04:28:35.140946 | 2008-03-13T22:39:29 | 2008-03-13T22:39:29 | 49,640,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,913 | cpp | Module.cpp | #include "Module.h"
#include "SysDep.h"
#include "RTFifo.h"
#include "Cmd.h"
#include "K_PIDFlowController.h"
#include "K_PWMValve.h"
#include "RTShm.h"
#include "Shm.h"
#include "K_DAQTask.h"
#include "Mutex.h"
#include "K_DataLogger.h"
#include "K_DataLogable.h"
class CmdFifo: public RTFifo
{
public:
CmdFifo(const... |
51edc3afd7cbfd17f7e6348aff7d23bdd467b207 | c29b7f215ecff35cc33ee9023845d67db327c7bd | /Assignment4/main.cpp | 7002568b921d70a03ae55ea77a87dc91c8f4daa9 | [] | no_license | Aaron-Day/DataStructures | 1fb5d0a5bcede81c17e6698af26234b1068648ba | b9b07a36a2426b171df83e990abea9062d86a008 | refs/heads/master | 2020-03-28T03:08:24.322698 | 2018-09-06T05:44:37 | 2018-09-06T05:44:37 | 147,622,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | cpp | main.cpp | /*********************************************************************************************************
* Author: Aaron Day
* Date Created: 10/21/2015
* Last Modification Date: 10/21/2015
* Assignment Number: 4
* Filename: main.cpp
*
* Overview: Runs all of ... |
d4043ea1a71d50c8d29e881eb5885b8cb760dc26 | 7af50a88decc5d9504d3473bc86643573b30da72 | /15F/cs3376/Project 3/artist.hpp | eb8e2d81c498459790afd79421ee757f6f527e36 | [] | no_license | hwangh95/School-Projects | 3b6a27423901d29b1a58635123efd86d6837c26d | aa94db2d935fa253ead4759f7f42d7aaeefe8b3d | refs/heads/master | 2020-03-17T17:01:08.628245 | 2018-05-17T07:36:52 | 2018-05-17T10:27:55 | 133,771,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | hpp | artist.hpp | #ifndef _ARTIST_HPP
#define _ARTIST_HPP
#include <string>
using namespace std;
class Artist
{
int id;
string name;
public:
Artist(int i, string str);
void setId(int i);
void setName(string str);
int getId() const;
string getName() const;
};
#endif
|
b133e1fe63a0c4bf1edb14f76764746c6b930790 | 412a0f24d10443cc865a73fc1d9964b0ff23b44c | /code/AzureDeviceManagementClient/Handlers/DeviceSchemasHandler.cpp | 72549dab4177921bac7d14efdf37dbc158686d08 | [
"MIT"
] | permissive | v-jush/azure-client-tools | f0f354f84f1a58d01134b967e7a230305f1606c8 | 9ae17e1c1bc0f164dc7a7023e7568782dda77d6d | refs/heads/master | 2020-05-17T18:00:13.872887 | 2019-04-10T17:56:44 | 2019-04-10T17:56:44 | 172,009,131 | 1 | 0 | NOASSERTION | 2019-02-22T06:44:08 | 2019-02-22T06:44:05 | null | UTF-8 | C++ | false | false | 10,146 | cpp | DeviceSchemasHandler.cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "stdafx.h"
#include "..\DMConstants.h"
#include "..\..\AzureDeviceManagementCommon\DMConstants.h"
#include "..\..\AzureDeviceManagementCommon\Plugins\PluginConstants.h"
#include "DeviceSchemasHandler.h"
using name... |
c7a527f3de893b59e610f6130b78e6f4e391832e | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/VulkanSDK/Third-Party/Include/glm/gtc/quaternion.inl | 0733650d78f7a29569c2d5109c4fad9476233f4c | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | inl | quaternion.inl | version https://git-lfs.github.com/spec/v1
oid sha256:c47e083262968368407fb5405acb13bfd772711003082673218ae1d3aee3762b
size 21660
|
622b7a14a0087dd9ab85b8a2709d5fd2af3d33d8 | e9c4865fc9faf8f64b03aedd7a15fc4563e1148a | /DateTimeInfo.cpp | d44be6c46c418c9dd2f824f33a15f067e218c6b8 | [
"MIT"
] | permissive | nifty-site-manager/nsm | 937fa23d06997928ce4a642731206a1565f8252f | 9497b4f3088a5cfae770b24c220ac4a5cc1e2fc0 | refs/heads/master | 2023-07-09T04:00:35.802486 | 2023-07-08T18:17:44 | 2023-07-08T18:17:44 | 33,808,116 | 265 | 23 | MIT | 2022-09-23T07:21:14 | 2015-04-12T07:50:36 | C | UTF-8 | C++ | false | false | 2,107 | cpp | DateTimeInfo.cpp | #include "DateTimeInfo.h"
DateTimeInfo::DateTimeInfo()
{
cDate = currentDate();
cTime = currentTime();
cTimezone = currentTimezone();
}
//returns current date
std::string DateTimeInfo::currentDate()
{
time_t now = time(0);
struct tm tstruct;
char buf[80];
tstruct = *localtime(&now);
//weekday month day year
... |
d5cbf890e3709d39cc7b75e78fa0ecebfdff0519 | c48b0c35d6eb21ded3c5f169e4485003e75c0f4e | /ex4Server/src/ObstacleNode.cpp | e12e32f653be40db02e9eb4a62c9005e489b2c07 | [] | no_license | nofaredan/advanced-programing | 75f4dbea2df6f77ccddfb9fe02f45395b6bdb690 | 0eb64d62eca332ade884e536a951a16c6edaf1c1 | refs/heads/master | 2021-01-11T11:51:28.730782 | 2017-01-27T12:31:12 | 2017-01-27T12:31:12 | 76,725,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | cpp | ObstacleNode.cpp | //
// Created by rotem on 10/12/16.
//
#include "ObstacleNode.h"
/**
* Get the name of the obstacle node
**/
std::string ObstacleNode::getName(){
return "ObstacleNode";
} |
1c5771ff4d8112f50f10c43df3cc2ed4bb3c2d9d | b9a78610b06b0836b9a2ea796d45587c9c1267d5 | /Aula17/17-01/Lista.cpp | 5b2894454effea4c8b530311adc6b04c8177d701 | [] | no_license | wilsonsf/TI-LP1 | ecaf6d0f4af63d509e0f665fd409db194de8c988 | 805333df924f851ec4d873d753294163c3b99da9 | refs/heads/master | 2021-01-10T02:19:42.888987 | 2015-11-25T13:35:46 | 2015-11-25T13:35:46 | 43,001,208 | 0 | 0 | null | 2015-11-25T13:35:46 | 2015-09-23T13:03:23 | C++ | UTF-8 | C++ | false | false | 1,063 | cpp | Lista.cpp | #include "Lista.h"
Lista::Lista() {
primeiro = NULL;
ultimo = NULL;
}
Lista::~Lista() {
if (primeiro) {
delete primeiro;
primeiro = NULL;
}
if (ultimo) {
delete ultimo;
ultimo = NULL;
}
}
bool Lista::adiciona(int valor) {
try {
if (!primeiro) {
... |
d526d29135203ce9d95f2cea56655b7407cb9ee6 | c30de3ff96b4496e38cfe7fea025d00019227b58 | /src/USER.cpp | ea105b4db2376153a0e56535cb522f7d6f278b54 | [] | no_license | empaidik/Aarohan | 0dfdd6567cd6a8c6fd3e5948e07668e8a1122773 | 3c0c6d3ea94abcd834c5a11af15bea2024f21be6 | refs/heads/master | 2022-12-06T12:25:09.811073 | 2020-08-09T14:02:30 | 2020-08-09T14:02:30 | 286,247,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | cpp | USER.cpp | #include "User.h"
USER::USER()
{
//ctor
}
PAGE* USER::display(){
cout << "\n1) View Schedule";
cout << "\n2) Register for Competitions";
cout << "\n3) View competition list";
cout << "\n4) My account details";
cout << "\n5) Logout";
cout << "\n\n Enter valid choice : ";
cha... |
fbba10850a94ecbc9a7da678f199b2e07c359659 | 400497e798dbb423157341b2a4c1b697b8ee2e9f | /nimplugin.cpp | b05fc45d053880df2e9ccb4d0107f20d70d050dd | [
"MIT"
] | permissive | ttldtor/NimQtCreatorPlugin | da6a3dce5e4f85310e56e7e54e907639b5569ccc | 8755f9b64dd98779731c1457428953e8b94e03b1 | refs/heads/master | 2020-05-29T12:22:06.162616 | 2016-06-14T21:59:52 | 2016-06-14T21:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,007 | cpp | nimplugin.cpp | #include "nimplugin.h"
#include "nimpluginconstants.h"
#include "editor/nimeditor.h"
#include "editor/nimhighlighter.h"
#include "project/nimprojectmanager.h"
#include "project/nimimportprojectwizardfactory.h"
#include "project/nimnewprojectwizardfactory.h"
#include "project/nimnewfilewizardfactory.h"
#include "project... |
584bff3630676346994749617664e51865bf402c | 8e389f896a61cb2abab75616f0f2223aef6eeae7 | /deleteanodewithoutheadpointer.cpp | 0783691fc990758fbfdeab24c534c73e94f4058d | [] | no_license | PrateekRanjanSingh/Algorithms | 92304ebef9eb9835e7af1906adf9fb7cc3d5332b | 0cf2a326da21207e0083fd73e407f412b3910c09 | refs/heads/master | 2020-04-09T03:02:23.247855 | 2019-07-31T07:05:26 | 2019-07-31T07:05:26 | 159,966,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | deleteanodewithoutheadpointer.cpp | /*Please note that it's Function problem i.e.
you need to write your solution in the form of Function(s) only.
Driver Code to call/invoke your function is mentioned above.*/
/* Link list node
struct Node
{
int data;
Node* next;
}*/
// This function should delete node from linked list. The function
... |
085bfccb575b516a0c0b0ad1658f6c1495b6903e | 9f1256e88bacd0fce5092854894eec82de090d79 | /testing/scenario.h | 74527b003601fff4e3c4cea2eb0c96e3398795d4 | [] | no_license | DavidSpenler/Text-based-adventure-game | 23c9e90b18e9155fe665ca4a4601dff6f24b7e5f | 00686b1b14d208b3588966f8196c7517f599decf | refs/heads/master | 2021-09-09T18:52:56.739570 | 2018-03-19T01:13:56 | 2018-03-19T01:13:56 | 104,681,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 528 | h | scenario.h | #include <string>
#include <vector>
#include <iostream>
#include <algorithm>
#include "action.h"
using namespace std;
#ifndef SCENARIO
#define SCENARIO
class scenario {
string desc;
vector<action> valid_actions;
vector<string> segment(string);
bool check_match(const string&,const string&);
string print_invento... |
ac0b15b4ef8f98f58390e10ddaa17473d93d78dc | f3160442a3ad92162262b8cba768c70b69b99a1b | /ServiceLocator/Cache.h | 6acc4457ec6714e5c0d7646b84057bcea24048cb | [] | no_license | zhouzilong2020/Design_Pattern_Class_Design_2020 | 84b155f2c8e7eacd8dc5a131ba5d46f998d20cce | 322e1b4ff0dd5e79446c091e42caed3cd75a17fd | refs/heads/main | 2023-01-19T18:33:15.793420 | 2020-11-25T07:25:32 | 2020-11-25T07:25:32 | 313,009,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | h | Cache.h | //
// Created by 周子龙 on 2020/11/22.
//
#ifndef DESIGNPATTERN_CACHE_H
#define DESIGNPATTERN_CACHE_H
#include <vector>
#include <string>
#include "./Service/IService.h"
namespace network {
class Cache {
private:
std::vector<IService *> _services;
public:
Cache() {};
IService *ge... |
cbd13840bc64f21192d7d24547de0de287e31c04 | 5e0ff7b37b0603fe05150255943d7953f69c774f | /133. Clone Graph.cpp | 9fa5ca56c57aa7ff8294fa5fd6ef569908ccaa67 | [] | no_license | rootkonda/LeetCode | c8dca934802688c7c01d932b157f996457fa400b | 27e91969dc17332eb4b49aa68049147c4c77ec6e | refs/heads/master | 2023-01-04T12:17:48.729121 | 2020-11-04T22:05:58 | 2020-11-04T22:05:58 | 254,853,130 | 2 | 1 | null | 2022-12-29T07:57:27 | 2020-04-11T11:28:57 | C++ | UTF-8 | C++ | false | false | 2,476 | cpp | 133. Clone Graph.cpp | /*
Given a reference of a node in a connected undirected graph.
Return a deep copy (clone) of the graph.
Each node in the graph contains a val (int) and a list (List[Node]) of its neighbors.
class Node {
public int val;
public List<Node> neighbors;
}
Test case format:
For simplicity sake, each node's val... |
06b35eb1c0b7a13ba73061ba8d07648b0ed933ff | 2103f9521297a6bf4f9cdcbebb99d8580df9148a | /Cxx/custom_deleter.cpp | e8b67f25e9be632b2db57979e5ad9332f5439ccd | [] | no_license | DominicJones/snippets | 7ccd8bd4b39facd75232b8eeb14bbea3008d81f8 | 0248893c270532c6b3d66f19c7fa09ff0f49beda | refs/heads/master | 2023-09-03T11:56:09.466157 | 2023-08-16T11:36:26 | 2023-08-16T11:36:26 | 125,386,544 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | custom_deleter.cpp | #include <iostream>
#include <memory>
struct Foo
{
Foo(int &value) : value(value) {}
~Foo() {}
private:
int &value;
};
template<class Deleter>
struct D
{
D(int &value) : value(value) {};
void operator()(Foo * p) const
{
value = 1;
Deleter()(p);
}
private:
int &value;
};
int main()
{
... |
13b5f8d4f74eb43a0096800d52118477269b173c | 33d030bbeceef0a52b6012e2d58a2dc7f9110163 | /src/Server.h | 4968f7d7c0534eba0e499233ace1889a7e691d3b | [] | no_license | DustinKushnereit/Asteroids | 43ab9979ffbd89139554a5511bb759829f685d2f | 4557790a187d2e0d3755de3b43da9da6530b3267 | refs/heads/master | 2020-07-23T10:09:39.349384 | 2016-08-30T05:27:43 | 2016-08-30T05:27:43 | 66,908,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | h | Server.h | #pragma once
#include "RakPeerInterface.h"
#include "MessageIdentifiers.h"
#include "RakPeer.h"
#include "RenderGame.h"
namespace messages {
enum value_type : unsigned char
{
ID_TTT_TURN_AND_BOARD = ID_USER_PACKET_ENUM,
ID_TTT_OTHER_USER_WON,
ID_TTT_MOVE_UNIT,
ID_TTT_DISPLAY_PLAYER,
ID_TTT_INIT_PLAYER,
... |
033c50b1c26d5f7606f4648d0bab43fee67b6619 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-iotevents/source/model/IotSiteWiseInputIdentifier.cpp | b5cc7b20f000357da8beaa27ba5febcb4074f3a3 | [
"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,382 | cpp | IotSiteWiseInputIdentifier.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotevents/model/IotSiteWiseInputIdentifier.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespac... |
48256d5dee9151ed97fc95bf9b715f4cd63694c3 | a332e949c6b513f00349bec2e0e5de726c8049fc | /CSC454HW6/cpphw3Models/CppImpOfHW5/Event.h | 807698fea10f07ca792223d2be9a0d847306d198 | [] | no_license | cking20/SystemSimulation | a14b6df80bd52035bd974a817c6fc4ca4c95fbe4 | 9d591b15daaa4c852657de5aa071dd1201a7a139 | refs/heads/master | 2021-05-12T03:09:28.448105 | 2018-01-16T00:37:21 | 2018-01-16T00:37:21 | 117,609,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,361 | h | Event.h | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Event.h
* Author: chrisrk192
*
* Created on November 16, 2017, 11:40 PM
*/
#ifndef EVENT_H
#define EVENT_H
#inclu... |
4ab8434536a612f14a2903fd6cb5e5a315b4e03a | 156d7b3e35d249377df5923017cc8af52489f97f | /dbsbrly/BrlyAMPersonDetail.h | 84d8c0d94f6a6cae28a7c946a478f2e8ad0f793d | [
"MIT"
] | permissive | mpsitech/brly-BeamRelay | fa11efae1fdd34110505ac10dee9d2e96a5ea8bd | ade30cfa9285360618d9d8c717fe6591da0c8683 | refs/heads/master | 2022-09-30T21:12:35.188234 | 2022-09-12T20:46:24 | 2022-09-12T20:46:24 | 282,705,295 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,852 | h | BrlyAMPersonDetail.h | /**
* \file BrlyAMPersonDetail.h
* database access for table TblBrlyAMPersonDetail (declarations)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#ifndef BRLYAMPERSONDETAIL_H
#define BRLYAMPERSONDETAIL_H
... |
df78d605e6add8457b3aa7188d5af64a516a7b29 | b4477778dab89f6b7c1f469111daf890a7d76832 | /include/opt/detail/node.hpp | 89f5002fe1b3ae2d8ba8f6ac9fa84664ee339a17 | [] | no_license | APokorny/libopt | 2b30ea017d489150168ef5a71fffa17829771b7b | 523703ccbaf03a2ec8a19f363d19982edc777200 | refs/heads/master | 2020-03-17T08:02:03.634679 | 2018-05-21T21:11:44 | 2018-05-21T21:11:44 | 133,421,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | hpp | node.hpp | #ifndef OBJECT_PROPERTY_TREE_OPT_DETAIL_NODE_HH_INCLUDED
#define OBJECT_PROPERTY_TREE_OPT_DETAIL_NODE_HH_INCLUDED
namespace opt {
namespace detail {
template<typename Ts>
struct properties_of
{
};
}}
#endif
|
80afaf92fa9603fd13a34f1a20ff4956c21c90a5 | 16600b1cce3fd5676412960025cebc24f298c226 | /Corrupted Video/corrupted_video.h | 869022c04750a0489f8c8da1ad3db6cd829b2ed7 | [] | no_license | ldkv/CorruptedVideo | 727acfd79878e963d873585037209e69cf9daad4 | 3966adbb95eb0e3bcfb064bb64d941daeecf41b7 | refs/heads/master | 2021-05-08T04:59:38.902949 | 2017-11-02T18:16:08 | 2017-11-02T18:16:08 | 108,478,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,071 | h | corrupted_video.h | #pragma once
#include "opencv2/opencv.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/core.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/xfeatures2d.hpp"
#include <iostream>
#include <string.h>
#include <vector>
#include <math.h>
#include <windows.h>
#include <chrono>
... |
8ef38499862108cc537576083df34c6cb9cc597f | 82dc3cc4c97c05e384812cc9aa07938e2dbfe24b | /tahoe/src/elements/continuum/solid/UpdatedLagrangianAxiT.cpp | 15bf93ef1f0a0f17e5948c297490ecb881503cea | [
"BSD-3-Clause"
] | permissive | samanseifi/Tahoe | ab40da0f8d952491943924034fa73ee5ecb2fecd | 542de50ba43645f19ce4b106ac8118c4333a3f25 | refs/heads/master | 2020-04-05T20:24:36.487197 | 2017-12-02T17:09:11 | 2017-12-02T17:24:23 | 38,074,546 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,511 | cpp | UpdatedLagrangianAxiT.cpp | /* $Id: UpdatedLagrangianAxiT.cpp,v 1.4 2011/12/01 21:11:37 bcyansfn Exp $ */
#include "UpdatedLagrangianAxiT.h"
#include <cmath>
#include <iostream>
#include <iomanip>
#include "SolidMaterialT.h"
#include "ShapeFunctionT.h"
using namespace Tahoe;
const double Pi2 = 2.0*acos(-1.0);
const int kRadialDirection = 0; /... |
c15522242ac63346f648abfec1e0c15c9998c8c7 | 92640ec261e7875a5e65e95d6408be2df3cdd9a3 | /temp/1126.cpp | c0974b65b3a570648fcd185a72c06a9c8d663abd | [] | no_license | gaolichen/contest | c20c79d1a05ea6c015329bc2068a3bbb946de775 | 4ac5112f150210c6345312922dc96494327cbf55 | refs/heads/master | 2021-01-19T04:45:59.100014 | 2017-04-06T06:46:09 | 2017-04-06T06:46:09 | 87,392,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,154 | cpp | 1126.cpp | #include<stdio.h>
#include<string.h>
int n,count,tot[26],gen[10010][10];
char name[100];
void run()
{
int i,j,max;
printf(" %s\n",name);
for(i=0;i<count;i++)
{
memset(tot,0,sizeof(tot));
max=1;
for(j=0;j<n;j++)
{
tot[gen[i][j]]++;
if(tot[gen[i][j]]>=tot[max])
max=gen[i][j];
}
for(j=0;j<n;j... |
aff01affdcd3be1bd8ffbc087536fe556c934407 | 1e912cdedc9c864b624fc132ac64063e0d3ef49d | /Tram.cpp | 789e7210beb692b197229cb3196d49bba79e7b46 | [] | no_license | AkramRickon/100A_CodeForces_OkailsBlog_Solved | 11b6849ad8703d446ee819b7622807288e39de9f | 04439721eee1a67865db36b282825b642e2ca3f8 | refs/heads/main | 2023-07-13T10:40:29.157372 | 2021-08-09T17:14:56 | 2021-08-09T17:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | Tram.cpp |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a,b,i,capacity=0,temp=0;
cin>>n;
for(i=0; i<n ; i++)
{
cin>>a>>b;
temp-=a;
temp+=b;
if(temp>capacity) capacity=temp;
}
cout<<capacity<<endl;
}
|
199d4eae2108b1229f74d1b7cc5cc0311b8ac806 | 03e5831284c515c73a75027303b0b83a40952e69 | /c++/95_UniqueBinarySearchTreesII.cpp | 2ab15c3de262bab6a859bf1d9aa66f108a40e7f1 | [] | no_license | haoboxuxu/leetcode-algorithm | b0b978df73cf425b6e3566ed8f8ac00bf8005ef1 | a4c3609857d23fde7493c7262f0d3c8672124a56 | refs/heads/master | 2023-01-14T14:51:38.854334 | 2023-01-01T18:55:12 | 2023-01-01T18:55:12 | 189,248,085 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | 95_UniqueBinarySearchTreesII.cpp | class Solution {
public:
vector<TreeNode*> generateTrees(int n) {
if (!n) return {};
return dfs(1, n);
}
vector<TreeNode*> dfs(int l, int r) {
if (l > r) return {nullptr};
vector<TreeNode*> res;
for (int i = l; i <= r; i++) {
auto left = dfs(l, i - 1), ri... |
1e824322d0f8a5c69c2b0e0acf266d6200fb6f04 | fe170c7ca25e95896c8fb043ad162b0a46b0eaa9 | /kittyserver/base/key.cpp | b6dac4e03dae3ff454ee862b7becd3e904d4285a | [] | no_license | angramainyu007/kitty | 982f9a5b1826e25cabd8d6ceb09821d0cc00df3f | 25b84aa8050622ff486337aa20f75e5aa73ae6b3 | refs/heads/master | 2020-04-18T06:52:30.840655 | 2016-12-23T08:48:14 | 2016-12-23T08:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | cpp | key.cpp | #include "key.h"
QWORD hashKey(const DWORD key1,const DWORD key2)
{
return (key1 << 8) + key2;
}
bool randKey(const std::set<DWORD>& randSet,DWORD &ret)
{
DWORD randVal = zMisc::randBetween(1,randSet.size());
DWORD num = 1;
for(auto iter = randSet.begin();iter != randSet.end();++iter,++num)
{
... |
ec3164976505eeb5610e6950a49c411385dff0bb | efa27fb176c81f478945c0a5620551bdc8010a9a | /cb_c++/409021.cpp | 66f5a7c60ca0d3a1aea0f6929aae52df01f0d313 | [] | no_license | cbedoy/CojsSolutions | 7d26df2f5e4ae2c0dc06920d1a3d043a80b03a57 | b254e5309a363f98a9e703a935216e2bd72bb85c | refs/heads/master | 2020-06-01T05:30:35.554011 | 2014-03-10T07:31:05 | 2014-03-10T07:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | cpp | 409021.cpp | #include <iostream>
#include <string>
using namespace std;int main(){string linea;int t;cin>>t;while(t--){cin>>linea;if(linea[linea.length()-1] == '5' || linea[linea.length()-1] == '0')cout<<"YES"<<endl;else cout<<"NO"<<endl;}return 0;}
|
21f1073e5cf5267fbd0a6a2fcae76e4e69540679 | d2924692c708bde0716dad0066ed7c93acb1f342 | /branches/daniel/implementation/src/mspsc.cc | a0cc473a5f785835031a7a647f2941fc3294ae88 | [] | no_license | jimmyliu86/pifro | 119bdc8f4d61c65b0e5df73caf7fba422fecf1ed | 7c723322dc0ee16a4836c501a49f3285acaf6436 | refs/heads/master | 2016-09-05T11:56:04.009643 | 2013-02-08T04:06:09 | 2013-02-08T04:06:09 | 33,106,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cc | mspsc.cc | // Copyright 2012 CEFET MG
// Autor: Daniel Morais dos Reis
// Implementacao dos experimentos para PIFRO
#include "mspsc.h"
MSPSC::MSPSC()
{
//ctor
}
float MSPSC::execute(Graph graph, Demand demand, int execution_time) {
time_t t_start = time(NULL);
time_t t_stop = time(NULL);
min_cost_ = FL... |
ef4da8fbaae33d6095e4c51961f815a42ab3e0b7 | 9c451121eaa5e0131110ad0b969d75d9e6630adb | /hdu/1000-1999/1044 Collect More Jewels.cpp | 5746b334d083768bf245d4f77e1daa3d31e5f823 | [] | no_license | tokitsu-kaze/ACM-Solved-Problems | 69e16c562a1c72f2a0d044edd79c0ab949cc76e3 | 77af0182401904f8d2f8570578e13d004576ba9e | refs/heads/master | 2023-09-01T11:25:12.946806 | 2023-08-25T03:26:50 | 2023-08-25T03:26:50 | 138,472,754 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,618 | cpp | 1044 Collect More Jewels.cpp | ////////////////////System Comment////////////////////
////Welcome to Hangzhou Dianzi University Online Judge
////http://acm.hdu.edu.cn
//////////////////////////////////////////////////////
////Username: tokitsukaze
////Nickname: tokitsukaze
////Run ID:
////Submit time: 2017-05-18 19:59:30
////Compiler: GUN C++
/////... |
a9e91e936f95e49b21b2dd6e25d09ced966e4bdc | 285165d49349ebfd5ef91aa37fe69418e62d1b93 | /11758 CCW/11758.cpp | ed42fb62c6c7679c28825cbc951b73b0a85bf3bc | [] | no_license | hipros/BOJ | b81d9e8966f5c28210305393dff59868da782499 | f9bc0a594853d962af2cdc7ee8566af8f7667cf6 | refs/heads/master | 2021-07-10T20:58:55.624611 | 2020-07-09T23:15:12 | 2020-07-09T23:15:12 | 169,560,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | 11758.cpp | #include<cstdio>
#include<iostream>
using namespace std;
int ccw(pair<int, int> a, pair<int, int> b, pair<int, int> c)
{
int t = a.first*b.second + b.first*c.second + c.first*a.second;
t -= a.second*b.first + b.second*c.first + c.second*a.first;
if(t == 0) return 0;
return (t < 0) ? -1:1;
}
int main... |
0d7978998ee8cee436952b1d74cc9403199043eb | 610dfa590d5863e9465cc5a07a2045c9ee0c9385 | /src/ElVis/Gui/ElementFaceRenderingDockWidget.h | feaeda8c09fbfe3f745fa4c43b3ef223df1da855 | [] | no_license | SCI-ElVis/ElVis | f275322dea593ed39c4771b072399573819624c0 | 7978b5898ef7d0a0f7711c77dda0e69167716efa | refs/heads/master | 2021-01-01T06:18:45.390678 | 2015-10-19T09:00:23 | 2015-10-19T09:00:23 | 8,036,991 | 14 | 4 | null | 2020-10-13T00:43:47 | 2013-02-05T20:11:59 | C++ | UTF-8 | C++ | false | false | 3,871 | h | ElementFaceRenderingDockWidget.h | ///////////////////////////////////////////////////////////////////////////////
//
// The MIT License
//
// Copyright (c) 2006 Scientific Computing and Imaging Institute,
// University of Utah (USA)
//
// License for the specific language governing rights and limitations under
// Permission is hereby granted, free of c... |
38d8430fddaf4c7b1c4fbdb902c389e10f7cae7a | ab64c72b421125590a9eb9449d678d7db4f7610a | /Hieroglyph3/Source/Rendering/DomainShaderDX11.cpp | e351e898f69ec26f45c8f487b0ee63eb415d02c9 | [
"MIT"
] | permissive | xzwang2005/DX11_tutorials_with_hieroglyph3 | 03220106c9d762bfccdbf098c42821bf25bb2b46 | 611e273dafe099875e86222e75420920ca2c49bf | refs/heads/master | 2020-05-17T13:44:24.834766 | 2018-03-22T11:03:50 | 2018-03-22T11:03:50 | 28,190,906 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,249 | cpp | DomainShaderDX11.cpp | //--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.ph... |
83bfba9c6a6f6d15f7a51e33750111ebb0ae41cd | e658f3beb7f75137dae461a1bcaffd4980909a80 | /BlackDragon.h | b60c550ad276c92f4f810c654b883ac6635c67d2 | [] | no_license | amitdamri/CPP-HeroesOfMightAndMagic | e74c220ab9534f97ffa69bda400c19fa837bb182 | fa767b150f8bab738c8dd37e4d175bbcecdd350b | refs/heads/master | 2022-11-27T14:05:02.262715 | 2020-08-02T20:38:14 | 2020-08-02T20:38:14 | 284,537,407 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | h | BlackDragon.h |
#ifndef BLACKDRAGON_H_
#define BLACKDRAGON_H_
#include "Creature.h"
class Zombie;
class Archer;
class Wizard;
class Vampire;
class BlackDragon : public Creature {
public:
BlackDragon() : Creature("Black_Dragon",9,10,200) {};
virtual ~BlackDragon() {};
virtual int attack(const int numberOfAttackers, const std::st... |
84bec9dca351aac9732b5f7d4d44e9b715d2ef35 | 6b7718498bd1783324bfbce466a0a1fead934cac | /Timus/Ural Steaks.cpp | 2662f2182cf21599981dc52d20efa57dc8227d1c | [] | no_license | nihalshahria/My-Programming-Practice | 82b682eda0c69251bca833b24c855768a0834fae | ca896a71e737c4978b4f23ef1b8530cad52d852c | refs/heads/master | 2023-08-31T16:33:44.269542 | 2023-08-19T12:16:28 | 2023-08-19T12:16:28 | 218,598,933 | 1 | 0 | null | 2019-10-30T19:21:09 | 2019-10-30T18:45:45 | C++ | UTF-8 | C++ | false | false | 262 | cpp | Ural Steaks.cpp | #include<bits/stdc++.h>
int main()
{
int n ,k, s;
scanf("%d%d", &n, &k);
if(n<=k || n==1)
printf("2");
else
{
s = n*2/k ;
if(n*2%k!=0)
s = s+1;
printf("%d\n", s);
}
}
|
3456085ffa2eec405638b45f99d662e8cc41417a | f19a02a2ead71820652ddf29f0bdd425d497f505 | /Lesson4/lesson4/library.cpp | 2d3bb2cefc512209e14f5ffe67b2863095e4d0e0 | [] | no_license | dimatwl/InterfacesHW | 74deb7d5cc388270d77aafe9b50cea49f4a5ba5a | 18590fd03646e2911c8a76f59dd70269304ea443 | refs/heads/master | 2021-01-15T21:44:15.528981 | 2012-10-30T15:28:03 | 2012-10-30T15:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | library.cpp | #include "library.h"
Library::Library() {
}
Book &Library::getBook(quint32 bookNumber) {
shelveMutex.lock();
shelveMutex.unlock();
}
void Library::putBook(Book &book, bookNumber) {
shelveMutex.lock();
shelveMutex.unlock();
}
|
5cce3d75937763c837b38070b0b47c8f08d4a477 | d22ecab5ebfbf29fdcf824e9087c0be77a2d8e3a | /include/DefQuery/reverse.h | 5f72115347a95bb81fefebb4b4683812736eddf7 | [
"Apache-2.0"
] | permissive | ruszkait/DefQuery | 3b4836e81adf9f5ada57e1f5298a723c82fbdbe7 | bb2269cd7d918a5ce36cb7a1e9fd426c37370f68 | refs/heads/master | 2021-06-01T16:40:10.221024 | 2020-12-27T15:45:12 | 2020-12-27T15:45:12 | 134,132,004 | 0 | 0 | Apache-2.0 | 2020-12-27T15:45:13 | 2018-05-20T08:18:48 | C++ | UTF-8 | C++ | false | false | 3,047 | h | reverse.h | #pragma once
#include <DefQuery/enumerator.h>
#include <functional>
#include <queue>
#include <stack>
#include <utility>
namespace DefQuery
{
template <typename TSourceEnumerator>
class reverse_enumerator : public enumerator<typename TSourceEnumerator::value_type,
reverse_enumerator<TSourceEnumerator>>
{
... |
0b99d0d0fdadcca59286ff5db49cd4e21fad8ac8 | da1500e0d3040497614d5327d2461a22e934b4d8 | /cobalt/browser/device_authentication_test.cc | 4ca1a02ead77666f13856ffee3968b2989ebbddc | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 6,231 | cc | device_authentication_test.cc | // Copyright 2019 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
0b003b019f58af26b8d03923b36c0f046cbc9a29 | 42a93f5548e326d7e4b1539bf6e2b421b42ef376 | /Untitled3.cpp | c32d2177c1d9a861881126736e3fa4f41fb78f44 | [] | no_license | ahmawais/Programs | aba0411666715e3a117dfaa56c1481893811c34e | 0915be1246a666c487695fe827bce7359234ab12 | refs/heads/main | 2023-09-05T15:06:18.226837 | 2021-10-24T13:04:55 | 2021-10-24T13:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159 | cpp | Untitled3.cpp | #include<stdio.h>
#include<math.h>
int main ()
{
int a , b ;
printf ("plz enter two numbers ");
scanf("%d %d", &a , &b );
if (a=sqrt (b))
}
|
17ee4d6d7d1124225bf5d23397619c68c69d3042 | 98f670e7aab434a01a2cd558aadbd8237677acb6 | /Programming Exercises/two.cpp | b61afb24019ab6915c44baec8e9a8fdfffc11efd | [] | no_license | DianaNabil/CSE321-Assignments | 36ff634bb7d8ea34018503044468ee1259748135 | 164c3de04096a0e94940012bd4afd1f347a49577 | refs/heads/master | 2021-01-22T23:49:02.389329 | 2015-12-10T18:28:33 | 2015-12-10T18:28:33 | 44,565,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,760 | cpp | two.cpp | /* 2. Here is a rather simple class definition:
class Person {
private:
static const LIMIT = 25;
string lname; // Person’s last name
char fname[LIMIT]; // Person’s first name
public:
Person() {lname = ""; fname[0] = ‘\0’; } // #1
Person(const string & ln, const char * fn = "Heyyou"); // #2
// the following methods disp... |
104569ca4cd27c8788fe926bf61d4d6fca312b8c | 34aa4568298728f86651e98079853817e46f1305 | /Sum_of_two_digit_and_show_result_in_7SD.ino | bfa66b3ec77a7494bf513827cd9e9d3f0f93652e | [] | no_license | Shuvan-Bhowmik/Arduino | c108598a0d99943d8cced509ef090eaa4483eeda | 73dd4cce32c07262bef830952458a4dcc8a1d08b | refs/heads/main | 2023-03-03T16:49:52.217733 | 2021-02-09T19:11:37 | 2021-02-09T19:11:37 | 337,179,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | ino | Sum_of_two_digit_and_show_result_in_7SD.ino |
byte lupTable[16] = {0x3F, 0x06, 0x5B, 0x4F,0x66, 0x6D,0x7D, 0x07,
0x7F, 0x6F, 0x77, 0x7C, 0x39, 0x5E, 0x79, 0x71};
byte x;
byte sum;
byte digit;
void setup()
{
DDRD = 0xff;
DDRB = 0xff;
DDRC = 0xff;
byte y1 = 0x23;
byte y2 = 0x06;
sum = y1+y2;
}
void loop()
{
digitalWrite(A0, 0);
di... |
1d9da1b26b71ebfe66fb983c27794499db3932ef | e325dfb8cb3be561eabb084e7d2b5204ea6d9879 | /potd-q29/TreeNode.cpp | dc9b691e6fcbd24ef4645512b5e7ef497de4738a | [] | no_license | chenzizhang/Data-Structure-and-Algorithm | c5c949e1454308e252c9899af254cedcfb497a5d | 1239fc9e781c2e33b4a1499b8441fe83e8b743c7 | refs/heads/master | 2020-08-19T07:54:53.787943 | 2020-04-12T20:59:47 | 2020-04-12T20:59:47 | 215,895,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | cpp | TreeNode.cpp | #include "TreeNode.h"
#include <iostream>
TreeNode * deleteNode(TreeNode* root, int key) {
// your code here
if(root == NULL){return NULL;}
if(key < root->val_){ root->left_ = deleteNode(root->left_, key);}
else if(key > root->val_){ root->right_ = deleteNode(root->right_, key);}
else{
//remove a node wi... |
22086e298b79570247228536ec0e6b67f2336a87 | 1aa67484830ba829bb2179b3b753875097a79767 | /PAT1098/pat98.cpp | 2e8077e5c880248fe3494cbb63d674e57de0e5c2 | [] | no_license | Mazziruso/PAT--Advanced | da7f6d947a59c84bac321e66f251649eafddccb5 | a1d53c4049604093af888c0405e9e7720ddd20a9 | refs/heads/master | 2020-04-03T01:33:51.747982 | 2018-12-01T08:38:57 | 2018-12-01T08:38:57 | 154,934,621 | 1 | 0 | null | 2018-10-31T01:40:38 | 2018-10-27T06:43:34 | C++ | UTF-8 | C++ | false | false | 2,523 | cpp | pat98.cpp | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
int N;
int *seqOrigin;
int *seqIter;
void insertSortIter(int pivot) {
int tmp = seqIter[pivot];
int index = pivot - 1;
while (index >= 0 && seqIter[index]>tmp) {
seqIter[index + 1] = seqIter[index];
index--;
}
i... |
fa61ad5dc0adbbff32e4e37bc770b6967d34db28 | 333b58a211c39f7142959040c2d60b69e6b20b47 | /Odyssey/EnvironmentDdm/EnvironmentDdm.cpp | 74c6fcf475f2e123fd8440f7e297c94476659f77 | [] | 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 | 14,343 | cpp | EnvironmentDdm.cpp | /*************************************************************************/
// This material is a confidential trade secret and proprietary
// information of ConvergeNet Technologies, Inc. which may not be
// reproduced, used, sold or transferred to any third party without the
// prior written consent of Converg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.