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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d39994d4d706cc87096fcadd53070f04314cba7 | 3a9b1589be2b70d5fda97fb5891701da78ea25bc | /Typechecker.cpp | b36d3aa00892d63e2874282ac56ca5916b994592 | [] | no_license | tmgreenside/Greenside_Vowles_Asgn7 | 2602327945f4d556c00e744e39eec38462056519 | b672cc820788f77855d0148d72fee1a04f8b6d78 | refs/heads/master | 2021-04-15T15:26:05.324383 | 2018-03-29T19:38:11 | 2018-03-29T19:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,403 | cpp | Typechecker.cpp | // names: Trevor Greenside, Sammy Vowles
// date: 13 March 2018
// course: CPSC 326 - 01
// asgn: 6
#include "Typechecker.h"
#include "ASTNodes.h"
using namespace std;
void Typechecker::visit(ASTSimpleBoolExpression& simpleBoolExpr) {
simpleBoolExpr.expression->accept(*this);
if (currentType != MPLType::BOOL... |
9e150abe56e2a0d99e878b1e4552d04fbc40e782 | 49287a1da270671e99b8db8f7ffac9c4f8e2b118 | /SourceCode/UI/build-bobapp folder/debug/moc_editmenu.cpp | da42f13871ac70b21033b3e632bda4181da3a067 | [] | no_license | kchang8/cpsc462-bobapp-project | 18520b950bfe78896ef833d6657b8f206c63c2b1 | 37d683515ff64205ea193d2192080c10ed8b2747 | refs/heads/master | 2020-08-05T08:10:58.515010 | 2019-12-11T20:32:26 | 2019-12-11T20:32:26 | 212,459,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,207 | cpp | moc_editmenu.cpp | /****************************************************************************
** Meta object code from reading C++ file 'editmenu.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.13.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************... |
4949b41286138e312993dfcc7c62cd5b7ed20f6c | 7a54982a0f8b10340838e5a6a58ae7dd4c891a24 | /blimp/client/compositor/render_widget_message_processor.cc | 73699fc010237021ab28db8e8639bf2849c4a115 | [
"BSD-3-Clause"
] | permissive | xar369/chromium | ac4e44d4266e93957a7cbf563793fa77c8f38abe | 08736b1c33c4e0b4d166dbc4e7fe508375fa7861 | refs/heads/master | 2022-12-23T20:46:58.309248 | 2015-12-05T18:05:56 | 2015-12-05T18:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,761 | cc | render_widget_message_processor.cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "blimp/client/compositor/render_widget_message_processor.h"
#include "base/numerics/safe_conversions.h"
#include "blimp/common/create_blimp_mess... |
bd499741c012991921c6ac0d7b3b2191013ae1ef | eb1b2fb108d177e9d2ebcaf4435b10136e9487f9 | /euclidean_dist.h | 689e237b5832f9216a74edd9ea91eaec83223ad7 | [
"MIT"
] | permissive | arijitray1993/TensorFlowRBF | d3c6621915520112a97e676d0f3b970a94cf61b2 | 7b32d1e336a884ff5e185fabc495748ec260959a | refs/heads/master | 2021-01-12T09:22:19.296191 | 2017-01-04T20:48:19 | 2017-01-04T20:48:19 | 76,153,036 | 1 | 0 | null | 2016-12-11T03:58:30 | 2016-12-11T03:58:29 | null | UTF-8 | C++ | false | false | 837 | h | euclidean_dist.h | #ifndef TENSORFLOW_KERNELS_EUCLIDEAN_DIST_OP_H_
#define TENSORFLOW_KERNELS_EUCLIDEAN_DIST_OP_H_
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include "tensorflow/core/framework/tensor_types.h"
#include "tensorflow/core/framework/op_kernel.h"
namespace tensorflow {
typedef Eigen::ThreadPoolDevice CPUD... |
733f22910f92f68edf09ab735bff51ed1224b86d | ad2bc9d201e8cd7ec18b5c702aa2c1127e544f81 | /HCPC/HPsummer#6/B/main.cpp | 073de82d4f6124aaee63f6d0415e7046701cf163 | [] | no_license | kicchi/Procon | 4eaad6966712ed4e3934d6f872257d5f68d9d471 | b0b082b89e831391a4eded2db201f5d9f140a660 | refs/heads/master | 2021-09-16T20:24:33.562892 | 2018-06-24T18:16:01 | 2018-06-24T18:16:01 | 110,607,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | main.cpp | #include<bits/stdc++.h>
#define INF 2000000000
#define MOD 1000000007
#define EPS (1e-10)
using namespace std;
vector<int> dx = {1,-1,0,0};
vector<int> dy = {0,0,1,-1};
int main() {
int H,W; cin >> H >> W;
vector<string> A(H);
for (int i = 0; i < H; i++) {
cin >> A[i];
}
int cnt = 0;
for (int i = 0; i ... |
05a0e7ac0ad6cf48d437bab30902c3afd9d87743 | 192fd8f3017356222af0b86682b64435a8e69e90 | /lab7/GroupedShapes/Picture.cpp | a928e3164dcd4f1e49167b71a16d6d6ed8a7a25a | [] | no_license | Tandyru/ood-labs | d5ecfe9a0169e8607f3cad8b4bea54a88c1b9ff8 | 7c9fc19599eb37014d997e5a9a0dd5439acaf4e6 | refs/heads/master | 2021-07-15T18:21:25.802606 | 2019-02-07T18:24:49 | 2019-02-07T18:24:49 | 147,715,235 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,470 | cpp | Picture.cpp | #include "stdafx.h"
#include "Picture.h"
#include "../GroupedShapesLib/Group.h"
#include "../GroupedShapesLib/Rectangle.h"
#include "../GroupedShapesLib/Triangle.h"
#include "../GroupedShapesLib/Ellipse.h"
using namespace std;
using namespace shape;
namespace
{
void AppendShape(const shared_ptr<CGroup>& group, share... |
006445ac8967998bd26c1612a45c9ec88d532856 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5646553574277120_0/C++/hjx1212/main.cpp | f2adefc2a14c82405495100dadc7f2920bd828e1 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
int a[105];
int main()
{
freopen("in.txt","r",stdin);
freopen("out.txt","w",stdout);
int T,t,c,d,v,s,i;
long long nw;
for(scanf("%d",&T),t=1;t<=T;t++)
{
for(scanf("%d%d%d",&c,&d,&v),i=0;i<d;i++)
scanf("%d",a+i);
for(nw=s=i=0;nw<v;)
{
if(i... |
80f4e447d6da62a1375864e85dab4995d61f3b82 | e52dd6ee1735b9a6748f26592937c32919d55954 | /qcom-caf/display/display-commonsys/services/config/src/device_impl.cpp | dd1ce349eabdb0b9c7ff4a2e6470ff7a0561214a | [] | no_license | zeelog/android_device_xiaomi_mido | 3ae683fb345a3349247cd96b276765b7f2e18f0b | 6a9d79ad50ff2c550281f55e4e902067e81694c6 | refs/heads/lineage-20.0 | 2023-05-27T19:14:47.677305 | 2019-03-18T19:24:33 | 2023-05-26T16:40:58 | 120,601,307 | 120 | 385 | null | 2023-05-26T16:41:00 | 2018-02-07T10:37:19 | C++ | UTF-8 | C++ | false | false | 46,781 | cpp | device_impl.cpp | /*
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of... |
c8ec1662385782cdcf88ffa83ef2b56515370178 | 60fdc45761aac91af97028e2861e709d9dbbe2cd | /kscope-binary-only-works-on-lucid/include/kipc.h | d506979261b2b4c48c7f8a0dd59ed417f7f5282a | [] | no_license | fredollinger/kscope | f3636cd4809f6be8e22cb8b20fc68d14740d9292 | 8bd0f6d1f5ec49e130ee86292b1e6b6cfe3b0f4d | refs/heads/master | 2021-01-01T19:56:55.106226 | 2010-09-29T20:17:22 | 2010-09-29T20:17:22 | 948,786 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,011 | h | kipc.h | /* This file is part of the KDE libraries
Copyright (C) 1999 Mattias Ettrich (ettrich@kde.org)
Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free... |
42c07bfc24ce0393e9d35ef91ca4aad60f488827 | a6f27d2fcc68effb0f6d188aae1a65094f652120 | /logicitem.cpp | da9b14878e846d411078245a5abb4ac5e2dfdace | [] | no_license | SloanAufderstrase/QtDemo_GraphicsPaint | 7a77fbcd4e55e8dc5b4c55b5cf1f8953b0129d5f | b6df2d036ac65652733945351dcbb543bf1b3288 | refs/heads/master | 2021-01-10T18:46:30.155633 | 2016-02-03T00:31:26 | 2016-02-03T00:31:26 | 50,907,738 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,876 | cpp | logicitem.cpp | #include <QtGui>
#include <QtWidgets>
#include "logicitem.h"
LogicItem::LogicItem(LogicType logicType, QWidget *parent)
{
myLogicType = logicType;
lineNum = 3;
myOutlineColor = Qt::darkBlue;
myBackgroundColor = Qt::white;
setFlags(ItemIsMovable | ItemIsSelectable);
setFlag(QGraphicsItem::ItemS... |
18012f622e793030ba0ff5d9e7f4bf26baca350e | 1bada690a951cb46885978921e2715c4be1b75fe | /test1.cpp | 56cdb13f36938ffca3dd2bc1ec3b4ec81a214c8a | [] | no_license | yasslkb/test1 | 713090c7cfc3c4c227e18997623b962b35901f90 | 07e031c9a9d61af617a777115a992cf1d6579eb6 | refs/heads/master | 2021-05-21T03:50:07.430777 | 2020-04-03T02:41:49 | 2020-04-03T02:41:49 | 252,529,595 | 0 | 0 | null | 2020-04-03T02:41:51 | 2020-04-02T18:02:23 | C++ | UTF-8 | C++ | false | false | 1,886 | cpp | test1.cpp | #include<iostream>
#include<vector>
#include<iterator>
using namespace std;
class sommet{
int vals; // la valeur du sommet.
sommet* suivant;//pointeur vers le sommet suivant.
public:
void affichesomm(){
cout<<vals;
}
friend class listevoisin; //on est besoin d'acceder a c... |
1284f4590bb154333bcc2d162c4466ead1ff8ecb | b60db2bdb2a27bd050431550d0bbbf53f0e34152 | /master.ino | 13239f364685d128ca61c49a86f423e567265b5c | [] | no_license | jeffreyfeng99/BME261 | 7ff2e0d7d86aaab31ef6207f77647cb3f69336ea | dc3c41fd6b115281a117c3c7e872d79d72261ac5 | refs/heads/master | 2020-04-08T00:15:43.498911 | 2018-12-02T07:55:14 | 2018-12-02T07:55:14 | 158,844,318 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,999 | ino | master.ino | #include <solenoid.h>
#include <patient.h>
#include <drug.h>
#include <master.h>
#include <math.h>
#include <Arduino.h>
#include <lcd.h>
#include <plunger.h>
#include <table.h>
void setup() {
initializePins();
initializeDrugList();
initializePatientList();
lcd.begin(16, 2);
attachInterrupt(plungerLimit, done... |
bee46b8ca5725f57243f7446186d41cddba9ef3d | c9037bebf8c91ed66467833310f400c69bf2e2cf | /src/toolkit/Controller.cpp | 19cf78a6cc2a9f0a1856ea32946782d727c388fc | [] | no_license | jturner65/RTQL8KinectLibrary | 9a7728169a6aa6be796c6ce398c67a49e2347c75 | 369882acfdc0de0b3306032311b23dc406ffefc6 | refs/heads/main | 2021-09-08T05:59:39.467660 | 2016-08-03T15:13:22 | 2016-08-03T15:13:33 | 64,855,689 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,625 | cpp | Controller.cpp | #include "Controller.h"
#include "CppCommon.h"
#include <cstdarg>
// rtql8 headers
#include "dynamics/BodyNodeDynamics.h"
#include "dynamics/SkeletonDynamics.h"
#include "dynamics/ContactDynamics.h"
#include "utils/UtilsRotation.h"
// rtql8 extension headers
#include "Simulator.h"
namespace rtql8 {
namespace too... |
486afea01273b84915339235f55b35cb67c94b7e | d4e8ac87bd41f311d196c62b5b8725ec5189ab1b | /utility/ptr.hpp | 2e5225513707fa89e125c0563f49d1a1ce55c9ac | [] | no_license | HyenaSoftware/Libraries | 00b91dc1624741e74b9cb67f42a1a73ae9de6871 | 3fa431c5d60050fc2a1b6d5d2a2f9dbeef4aba6b | refs/heads/master | 2020-04-06T07:11:43.913451 | 2016-09-04T12:09:00 | 2016-09-04T12:09:00 | 63,279,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,987 | hpp | ptr.hpp | #pragma once
#include <utility\event_handler>
namespace utility
{
//
// it does deap copy
//
template<class T> class scoped_holder
{
public:
scoped_holder() = default;
scoped_holder(T value_) : _value { std::move(value_) }
{
}
scoped_holder(const scoped_holder& other_)
: _value { value_ } // deep c... |
295b54694dce159d7cd3c7cce856c41221d7283d | 675fade53b5dc60dac5d9cf08150b15d11e6dca3 | /Temp/StagingArea/Data/il2cppOutput/AssemblyU2DCSharp_UnityStandardAssets_SceneUtils_Pa744298265.h | fd5f9e4fe988bd111443e2dfcb70f0dc5d859875 | [] | no_license | tejaskhorana/SandboxFPS | be90670c29dbe20b20295e36c85e8e73b948f08f | 6c795634703e31e4ab6d416663fbf6c89b179c59 | refs/heads/master | 2020-02-26T15:05:01.879563 | 2017-05-24T05:52:04 | 2017-05-24T05:52:04 | 83,266,163 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,372 | h | AssemblyU2DCSharp_UnityStandardAssets_SceneUtils_Pa744298265.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// UnityStandardAssets.SceneUtils.ParticleSceneControls/DemoParticleSystem[]
struct DemoParticleSystemU5BU5D_t2317074010;
#include "mscorlib_System_Object4170816371.h"
#ifdef __clan... |
e2d5d51da0d1c1512aa54996eab134a6e4daa57f | 17f189d7ba258e51fb57c17a45396e50c4e81ead | /stringbenchmark/generatestring.cpp | 8a74d3db3ca6fa59aa430d71600121105cc8fc58 | [] | no_license | spenceryue/Cpp | 1252a9ffb771db9635ca5db2f6ca9d9d985ca426 | 0a66c2c2904e5474185d0a6e279f5c82febb40bc | refs/heads/master | 2021-01-23T14:17:20.102880 | 2018-03-09T20:07:24 | 2018-03-09T20:07:24 | 102,682,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | generatestring.cpp | #include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
char str[] = "abcdefghijklmnopqrstuvwxyz";
char temp[256];
register int i ,j;
temp[0] = '"';
temp[254] = '"';
temp[255] = '\0';
cout<<"#include <string>"<<endl;
cout<<"std::string hugestring="<<endl;
unsigned int la... |
87ab019f9e190410b0bce0d139b382d7e9bbb99a | 8ecc01faf502844875ef825f6adeab948ce1b956 | /main.cpp | 43a7a877af1eef1bf27948eb4b57d28dfa167bab | [] | no_license | snowphone/TicketTradingSystem | 43651efaa4bfb87e9403effca8be0b7418ecf2c3 | d2bfa0c8e8c501f5efaf0ed7555b4e354a122c42 | refs/heads/master | 2020-05-23T20:51:58.082706 | 2019-06-06T13:02:02 | 2019-06-06T13:02:02 | 186,939,665 | 3 | 1 | null | 2019-06-06T05:20:05 | 2019-05-16T02:53:44 | C++ | UTF-8 | C++ | false | false | 3,942 | cpp | main.cpp | // Class: main
// Description: 메인함수이며, 프로그램 입력을 파싱하는 역할을 수행한다.
// 소프트웨어 공학 과제 3
// 티켓 매매 시스템 구현
// 개발환경: Visual studio 2017, C++17
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <fstream>
#include "SignUpMembershipUI.h"
#include "WithdrawUI.h"
#include "SignInUI.h"
#include "Sig... |
7b3fe24ab265042d7929e8b53a94aac136bc5dd4 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/inetsrv/msmq/src/lib/mtm/test/mtmtest.cpp | 9fef2f66c7c96bc95ccdcd68720aa37d52772c57 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 6,959 | cpp | mtmtest.cpp | /*++
Copyright (c) 1995-97 Microsoft Corporation
Module Name:
MtmTest.cpp
Abstract:
Multicast Transport manager library test
Author:
Shai Kariv (shaik) 27-Aug-00
Environment:
Platform-independent,
--*/
#include <libpch.h>
#include "Mtm.h"
#include "Cm.h"
#include "... |
d087a64ee2ddd5a7d49c346d12ea541e4a0167ef | c14e48d5c7ae5e0fc478f1d23141f5c62e70909b | /fibonacci_numbers.cpp | 20807b9d88792de5594969f8554e4ee82f550257 | [
"MIT"
] | permissive | Riccardo-Beccalli/Physical-Simulation | 7de58e7f1fdba44b3cacf8a659266293160ed1e0 | a6dfcc6b9f8cfda977970fdf08ce7c57ccb02ca9 | refs/heads/master | 2021-09-13T13:33:46.383313 | 2018-04-30T19:42:37 | 2018-04-30T19:42:37 | 111,719,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | fibonacci_numbers.cpp | #include <iostream>
#include <iomanip>
#include "my_library.cpp"
using namespace std;
# define L 5
int main() {
int a, swap1 = 0, swap2 = 1, i = 1, b = 1;
cout << "I numeri di Fibonacci cosa hanno di speciale, inserisci il massimo> "; cin >> a;
do{
cout << i << setw (L) << b << "^" << setw (L) << float ... |
c4a05c17d01fe6409b198aad05426bc47c7a6a5f | b29c6926f8bb008fe9b35c6ee098d18a8f9117e3 | /Server/12308_Server/src_djrmlrfs/DataBase_Log.cpp | 8a27512325e2358e3fa9bec3016e7748d4829362 | [] | no_license | TimerChen/TrainTickets | 130569f868eb373517d1f203d3357f8011a1d9b0 | d8d6fb380c3959c7f63295dbd9d1de7bd833d976 | refs/heads/master | 2021-01-18T20:24:20.555185 | 2017-05-23T09:28:49 | 2017-05-23T09:28:49 | 86,960,987 | 3 | 3 | null | 2017-04-06T10:21:43 | 2017-04-02T03:46:04 | null | UTF-8 | C++ | false | false | 4,140 | cpp | DataBase_Log.cpp | #include "DataBase_Log.h"
void DataBase_Log::buyTicket(/*const QDateTime &now,*/const QString &AccId, const QString &name, const QString &traId,
const QDate &dat, const QString &lsta, const QString &ulsta, const QString &set, const int &num)
{
ticLog.push_back(/*"In "+now.toString()+","+*/name+"("+AccId+") bought "+Q... |
3db3a2f09ca5e3babf46d476c7a722d8a966bf50 | 6446d4ddc81572c3237e048fe933181e9a468e34 | /Algorithm Design/homework1-time/排序算法/MakeData.cpp | 5c3ec2c0739c57603aa27d1d2c0c749a293b2490 | [
"MIT"
] | permissive | YeWenting/BUPT-Homework | afd9cad4af02d6adcf692a7a1626b2a8b94fdfb9 | 624e3931aaa12055f90df8054e89450df4e2128f | refs/heads/master | 2020-07-05T11:29:51.613594 | 2016-11-26T13:41:27 | 2016-11-26T13:41:27 | 74,121,439 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | MakeData.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <fstream>
using namespace std;
int main(int argc, char const *argv[])
{
int flag, n;
ofstream outfile("data.dat");
cout<<"What kind of data you want to generate? 1:worst 2:best 3.random\n";
cin>>flag;
cout<<"And size?\n";
c... |
419a4b9c3ba56c46d85d72ecaa61ec8dc3cc3388 | 3af6bd7d60cdd09bc69dcbcc2136c722f7853098 | /training/dtrain/viterbiget.h | 43a9b51b05fd8067f111e99a98bcdb988e641f6f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause-LBNL"
] | permissive | lejehl/cdec-dtrain | 0d1f17b66aba4dd79dcb6e87d04e6b3bb05eb3d4 | 08071e96894044525c449ab886b7c06cf194e802 | refs/heads/master | 2021-01-17T10:28:51.604516 | 2013-12-05T10:04:15 | 2013-12-05T10:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | h | viterbiget.h | /*
* viterbiget.h
*
* Created on: 6 May 2013
* Author: jehl
*/
#ifndef VITERBIGET_H_
#define VITERBIGET_H_
#include "viterbi.h"
#include "dtrain.h"
namespace dtrain
{
struct ViterbiGetter : public HypSampler
{
public:
vector<WordID> transl_;
ViterbiGetter():transl_() {};
virtual void
NotifyTr... |
b37c0f490360e8ed4e501d30cc2bf09662e25abe | 215111e92a3dfc535ce1c1ce25a35fb6003ab575 | /cf/ncd/c.cpp | 3862b7cef0c0395c9446167b6e573de88fcdc510 | [] | no_license | emanueljuliano/Competitive_Programming | 6e65aa696fb2bb0e2251e5a68657f4c79cd8f803 | 86fefe4d0e3ee09b5766acddc8c78ed8b60402d6 | refs/heads/master | 2023-06-23T04:52:43.910062 | 2021-06-26T11:34:42 | 2021-06-26T11:34:42 | 299,115,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,245 | cpp | c.cpp | #include <bits/stdc++.h>
using namespace std;
#define _ ios_base::sync_with_stdio(0);cin.tie(0);
#define endl '\n'
#define f first
#define s second
#define pb push_back
typedef long long ll;
typedef pair<int, int> ii;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fll;
const int MAX = 1e3+10;
const i... |
5617b29f3b6dfcc8fc35b8f6a11d7204727c9f71 | 607cd9b3f4372bedf704f23fb60164bc4de180e5 | /Levels/sudoku/puzzle.h | ff7147752278bac7d9ce5b81c32b9b9e589cf805 | [] | no_license | kisa411/CSE20212-FinalProject | e579ab8eb56ceff61f6b1a1d0e3f6a765a012de4 | c010960b92dea840e10b8168516fd3fbf359eb6d | refs/heads/master | 2021-01-10T08:25:38.399601 | 2016-04-26T21:25:04 | 2016-04-26T21:25:04 | 51,956,088 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,252 | h | puzzle.h | /* Luis Prieb
* This class is the main sudoku class. Its what puts together the same, solves it if the user gives up,
* and determines the number of points the user earns
*/
#ifndef PUZZLE_H
#define PUZZLE_H
#include <vector>
#include <cstdio>
#include <cctype>
#include <iostream>
#include "puzzleElement.h"
#incl... |
cfa613bbc8dff7c18b3c134302db3878d7ba68a2 | 60cfe9ed4709e44d61ff1a207ffb426ffff4259f | /src/Light.h | 23f178f0d4b4bdbea9b4e8ac5fce53b08cf118ee | [] | no_license | yohkaz/BasicRayTracer | 8a5b70b58b5b91a7a81489ca9034d53750f4aae6 | 5c36a3d9786b0a3eeb755b2b4e0cd55252e799d9 | refs/heads/master | 2020-12-20T13:59:44.222236 | 2020-03-31T19:37:38 | 2020-03-31T19:37:38 | 236,101,044 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | h | Light.h | #ifndef LIGHT_H
#define LIGHT_H
#include "Vec3.h"
class Light {
public:
Light(const Vec3<float>& pos, const Vec3<float>& col, float intensity) :
position(pos), color(col), intensity(intensity) {}
// const Vec3<float>& getPosition() const { return position; }
virtual Vec3<float> getPosition() cons... |
4a0917d0ef04c04325884ab3387893ced44e96be | 78bea86abd9ae7196d7aaee27a60f3f5db5d81a8 | /Source/DiabloUI/support_lines.cpp | 2d05b29b87c31845a9c360d0e2def98c264f3c67 | [
"Unlicense",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain"
] | permissive | qndel/devilutionX | 3dbe77048583c2c4585c0734b812cb9a7565854d | ca3623a746f4e6b838b395bf35d91094db990248 | refs/heads/master | 2023-08-31T08:59:07.396311 | 2022-08-10T18:13:06 | 2022-08-10T18:13:06 | 180,266,183 | 6 | 10 | Unlicense | 2022-09-25T14:52:39 | 2019-04-09T02:08:39 | C++ | UTF-8 | C++ | false | false | 1,376 | cpp | support_lines.cpp | #include "DiabloUI/support_lines.h"
#include "utils/language.h"
namespace devilution {
const char *const SupportLines[] = {
"",
N_("We maintain a chat server at Discord.gg/YQKCAYQ Follow the links to join our community where we talk about things related to Diablo, and the Hellfire expansion."),
"",
N_("D... |
6f7a6520f2438f2fe5c36b3abae7332918ab7966 | 51292b8a0c8eadd208205ef6d076df8228a0a200 | /src/DBGp/Stack.cpp | 9605080dfa6ba1384ccdf3a0faf16a080c760dbe | [
"BSD-3-Clause"
] | permissive | sudwebdesign/dubnium | 4781a51f754a7f1c7143f6cb07b80cdc0e022e66 | 16015118f3a20261748b48f1cd46cc21c6d26098 | refs/heads/master | 2021-01-15T19:22:33.895178 | 2009-11-26T06:34:07 | 2009-11-26T06:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,849 | cpp | Stack.cpp | // {{{ Copyright notice
/* Copyright (c) 2007-2009, Adam Harvey
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notic... |
3b719eb75f53c05122dd054e9f7a1127446d7932 | 52d1aeda3c62ab766e04bb70b71428c446f76d7a | /code practice/day1_c++/day1_c++/pokersort.cpp | 89726b2f5a906de71a84bf701e2d62390e3b720c | [] | no_license | tinalny/cpp_project | b886ef4e4b153f3b974f6f497e91981707181579 | 534dfd652e21477abb19bc150b68628f4c41234e | refs/heads/master | 2022-09-18T10:03:47.732216 | 2020-06-06T14:04:41 | 2020-06-06T14:04:41 | 183,779,280 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,610 | cpp | pokersort.cpp | //扑克牌排序
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
struct Poker
{
char type;
int point;
};
enum
{
SPADES,//黑桃
HEARTS,//红桃
CLUBS,//梅花
DIAMONDS,//方片
JOKER//王
};
//输入系统
void inputPoker(Poker * pk)
{
scanf("%c%d", &pk->type, &pk->point);
pk->type -= 'a';
if (pk->type == JOKER)... |
045fd1e25c789f9484da75b289c845eb75eba50c | 25aee7bf0208c790589c1019ea78e9b1c3b4b8b7 | /ESP8266_AT_Client.cpp | 7f9bda3b9e8a23484be12f4c32cfec511f6e15bf | [] | no_license | seco/ESP8266_AT_Client | b4d1e9bbd46ac49d1fb86c6f19fc40d142090bac | f7be8ca060041200faa1cc09556ea739215f81de | refs/heads/master | 2021-01-21T15:38:16.727529 | 2017-02-08T17:36:15 | 2017-02-08T17:36:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,600 | cpp | ESP8266_AT_Client.cpp | #include <ESP8266_AT_Client.h>
#include <string.h>
// #define ESP8266_AT_CLIENT_ENABLE_DEBUG
// #define ESP8266_AT_CLIENT_DEBUG_ECHO_EVERYTHING
ESP8266_AT_Client::ESP8266_AT_Client(uint8_t enable_pin){
this->stream = &Serial; // default assumption
this->socket_connected = false;
this->listener_started = false;
... |
c85cf53465e48ab01257a7857c6ffb8ec3c0150d | dea20ca8db55fb5a410f049021ef04cebd3e5775 | /src/astar.cpp | 1e905c8b7f62531beddcf6c43d6a5d0c450ae8ee | [] | no_license | natfaulk/projectLive | 2fc071aae61d8ea8286d7234f19e9e6ae1c9eb23 | 641cbb4cac0b91be9569299b7b5b1a80e7b26908 | refs/heads/master | 2021-09-04T16:17:09.514660 | 2018-01-20T06:58:37 | 2018-01-20T06:58:37 | 115,050,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,600 | cpp | astar.cpp | #include "astar.hpp"
#include "constants.hpp"
#include "map.hpp"
#include "utils.hpp" // for Dirs
// #include <cstdio>
#include <iostream>
// int isInClosedList(Point_score *_p);
// int isInOpenList(Point_score *_p);
// int calculateScore(Point_score *_p, Point *src, Point *dest);
// static std::vector<Point_score> ... |
166c0baf0b52c32bd09f85083088b9f15d565c94 | 8ac786b962e75f98721adbfb9abca5c13f80e8f6 | /shortest/shortest.cpp | de00d6998a79495076a2dfaf0d0d8ebcd99884d6 | [] | no_license | thtfive/USACO_Training | f22e241fc373396e534757bd75da9f8100b05b18 | c24f1851ac836b6e779174054f4032029b52c15e | refs/heads/master | 2021-01-19T02:55:23.568856 | 2016-07-19T18:32:18 | 2016-07-19T18:32:18 | 43,407,389 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,326 | cpp | shortest.cpp | #define L
#include <iostream>
#include<fstream>
#include<cstring>
#include<vector>
#include<map>
#include<queue>
#define maxN 100010
using namespace std;
int M,N,S,T;
vector<pair<int,int> >G[maxN];
int dist[maxN];
void shortestpath()
{
bool done[N+1];
memset(done,false,sizeof(done));
for(int i=0;i<maxN;i+... |
a91a46f87c4943a99fe1002fda056da3624cf479 | 29c6c8f614715cee9d5362b138801339be18806e | /Source/Interface/Resources/ResourceManager.cpp | a9ebe0c232cab90b06afa91a7fe50693bd55d53a | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | sierra-zero/Vulkan2DRenderer | b18ee7254f28f883e6b9cb6bb9990c8f8274ab63 | 5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e | refs/heads/master | 2023-02-21T10:33:55.496596 | 2021-01-13T00:09:35 | 2021-01-13T00:09:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,204 | cpp | ResourceManager.cpp |
#include "Core/SourceCommon.h"
#include "System/ThreadPool.h"
#include "Interface/InstanceImpl.h"
#include "Interface/Resources/ResourceManager.h"
#include "Interface/Resources/ResourceManagerImpl.h"
#include "Interface/Resources/ResourceBase.h"
#include "Interface/Resources/ResourceImplBase.h"
#include "Interfac... |
2419d052ab4331e3fd13e26b3a4f24073ebef2ae | 649d9e287b6536d67b4075120c19eeceee343fba | /weex_core/Source/include/JavaScriptCore/runtime/Lookup.h | b627f7947246efeaf0a55c9ba07949801e11db14 | [
"LicenseRef-scancode-unicode",
"MIT",
"BSL-1.0",
"Apache-2.0",
"ICU",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alibaba/weex | 79c83bb4d002af7b819326ebca35e880e2ea8473 | 8f3f2b7d511d3f966dcd00ea44da8771d955fc13 | refs/heads/master | 2023-03-12T20:57:22.129120 | 2022-09-28T06:06:08 | 2022-09-28T06:06:08 | 53,658,802 | 20,773 | 2,915 | Apache-2.0 | 2023-08-23T10:57:36 | 2016-03-11T10:18:11 | C++ | UTF-8 | C++ | false | false | 15,711 | h | Lookup.h | /*
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2003, 2006, 2007, 2008, 2009, 2016 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Softw... |
b0a257cbc35d280bc553ca3b18effa631906d8c9 | 0ac1270573b2ed6924ce7f8bb1b87951da222bb5 | /src/hobbits-core/bitcontainerlistmodel.h | 830049cea4f876fdb545a3b4cc297c4eb2094904 | [
"MIT"
] | permissive | nfi002/hobbits | 4e0c2f8425fff86af843f9664bdbe8183fa0068d | b63a15e2e6d8238cba08f2bce686887d8626924b | refs/heads/master | 2022-12-08T05:58:53.768473 | 2020-07-17T19:47:09 | 2020-07-17T19:47:09 | 270,043,861 | 0 | 0 | MIT | 2020-07-18T23:20:16 | 2020-06-06T16:52:46 | C++ | UTF-8 | C++ | false | false | 994 | h | bitcontainerlistmodel.h | #ifndef BITCONTAINERLISTMODEL_H
#define BITCONTAINERLISTMODEL_H
#include <bitcontainer.h>
#include <QAbstractListModel>
#include "hobbits-core_global.h"
class HOBBITSCORESHARED_EXPORT BitContainerListModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit BitContainerListModel(QObject *parent = nullpt... |
d51fec7b589faada91acc4bd54f422e05c4a664b | 787b7f8a01876e15637dd6ae9b47bfb2b1fd024f | /src/WorldObject/MapChip/MapChipNone.cpp | b64b0fd793447b3ebcc007967af3376fa5c37d0c | [] | no_license | flat0531/Monta3D | 896428837d453b3b6a2c3f27237b0ac3f9b32d3e | 11d9995901f3c040e57389cbde7923439b1bf6d0 | refs/heads/master | 2020-12-30T14:19:56.170855 | 2017-08-19T03:10:35 | 2017-08-19T03:10:35 | 91,307,641 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | MapChipNone.cpp | #include "MapChipNone.h"
MapChipNone::MapChipNone(ci::Vec3f _pos, ci::Vec3f _scale)
{
pos = _pos;
scale = _scale;
iscollision = false;
aabb = ci::AxisAlignedBox3f(pos - scale / 2.f, pos + scale / 2.f);
}
void MapChipNone::draw()
{
}
void MapChipNone::update()
{
}
|
fed61b1d4407663f215f023a7f296f8b06803d3b | e277f43e3fd8d375e5a6cc5e92808d4a166805b2 | /proprietories-source/autotest/gsensor.cpp | 101dc1f4379f917c84c3a0a606b9464fb1c86b27 | [] | no_license | radwany2020/vendor_sprd_9830 | 1392da3a61a745ff328fae5f893a8fccab3e5100 | f93d84b180d4c05fad264d67a60225d726b6f9c7 | refs/heads/master | 2022-01-17T13:21:58.531989 | 2017-02-22T08:02:47 | 2017-02-22T08:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,578 | cpp | gsensor.cpp |
//------------------------------------------------------------------------------
// enable or disable local debug
#define DBG_ENABLE_DBGMSG
#define DBG_ENABLE_WRNMSG
#define DBG_ENABLE_ERRMSG
#define DBG_ENABLE_INFMSG
#define DBG_ENABLE_FUNINF
#include "debug.h"
//------------------------------------------------------... |
11cb02d5247200817ec615ae2e48c2a2cd438656 | 5298705370c757d8846d409382f7dcb8450d48b8 | /wbsTools/WeatherUpdater/Tasks/ClipWeather.cpp | 4d837bc894dea62aaacbf7069e68e520c44ec82b | [
"MIT"
] | permissive | RNCan/WeatherBasedSimulationFramework | 3d63b6a5fd1548cc5e5bac840f9e7c5f442dcdb0 | 05719614d2460a8929066fb920517f75a6a3ed04 | refs/heads/master | 2023-07-19T21:37:08.139215 | 2023-07-13T02:29:11 | 2023-07-13T02:29:11 | 51,245,634 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 12,931 | cpp | ClipWeather.cpp | #include "StdAfx.h"
#include "ClipWeather.h"
#include "Basic/DailyDatabase.h"
#include "Basic/NormalsDatabase.h"
#include "Basic/HourlyDatabase.h"
#include "basic/UtilStd.h"
#include "Geomatic/ShapefileBase.h"
#include "TaskFactory.h"
#include "../Resource.h"
#include "WeatherBasedSimulationString.h"
us... |
a28cd55ab7d61474291db984b901c6119a438186 | 5a3c81731ad5dd06ad2d104e5c11852343212ba2 | /src/packets/incoming/QuestObjId.h | b4c3933f2900747337529b34990187f97e013586 | [
"MIT"
] | permissive | Gofrettin/RotMG_Clientless | a76e5139979340cf1ce1d35d16577431806204ce | 29ffe6afacc5658d50f83f66ecf12c9457aed931 | refs/heads/master | 2023-03-20T12:10:14.509210 | 2017-08-02T19:07:39 | 2017-08-02T19:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | h | QuestObjId.h | #pragma once
#ifndef QUESTOBJID_H
#define QUESTOBJID_H
#include "../Packet.h"
class QuestObjId : public Packet
{
public:
int objectId;
// Constructor
QuestObjId();
QuestObjId(byte*, int);
QuestObjId(const Packet&);
// Output
Packet *write();
// Input
void read();
};
#endif |
b5546d034fb9048322b987cdec77429559809aca | 221553caa94f29634de701409a35c74d6168404b | /Testes/2018/CI3/Codigo/PropertyTypeItem.h | f96bf08adf88efc5d1816adf5956937eb3897af2 | [] | no_license | TitanicThompson1/AEDA | dc42f606674573160df047f6f8bedee14bac7952 | 39c6f4f17d5ef5202fae7c1bb47a3b338be6d051 | refs/heads/master | 2020-08-01T02:27:50.916671 | 2020-06-03T15:07:48 | 2020-06-03T15:07:48 | 210,828,440 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 879 | h | PropertyTypeItem.h | #ifndef SRC_PROPERTYTYPE_H_
#define SRC_BOOK_H_
#include "Property.h"
#include "Client.h"
#include <string>
using namespace std;
class PropertyTypeItem {
string address;
string postalCode;
string typology;
int maxPrice;
vector<Property*> items; //all properties with same postalCode typology and up t... |
ebc7cde04400d0b01937c4f84f520977951211f0 | 3702fdc76671736fbe57a224dd56f4c641034647 | /Src/22_57_TCP/widget.cpp | efb401dedb42e9551141d8a83371a6c6bc5e8696 | [] | no_license | khangthk/QtCode_VS | 9704a08d08284fa8e4a948e23a26df263c90ace3 | 002384397c10efe1f90a87dad3490d8c2372b7cd | refs/heads/master | 2023-03-18T14:37:51.960704 | 2021-01-12T08:46:42 | 2021-01-12T08:46:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,076 | cpp | widget.cpp | #pragma execution_character_set("utf-8")
#include "widget.h"
#include "ui_widget.h"
#include <QHostAddress>
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
//初始化时tcpSocket置空,防止野指针异常
tcpSocket = NULL;
//初始化时tcpServer置空,防止野指针异常
tcpServer = NULL;
//因为用指针初始化时动态分配空间
tcp... |
9a08dcf435d33071fd93c4a4b70d180a0c8008aa | 51070ea24d8825d7081cc713bec8c54cdcb5fde1 | /xulapp/components/gom/src/xgScriptElement.cpp | be8f98a1dff7925d692a0926d441531a6987450a | [
"MIT"
] | permissive | jberkman/gom | c11cc09db3e0eb3843fa00a344edc3b37e607912 | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | refs/heads/master | 2021-07-01T16:58:58.633961 | 2008-09-02T06:28:10 | 2008-09-02T06:28:10 | 5,654,078 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,065 | cpp | xgScriptElement.cpp | /*
The MIT License
Copyright (c) 2008 jacob berkman <jacob@ilovegom.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy,... |
07df836c73f735d53cd7d9cf5ac8772cf80c6407 | c161a6e2e547417e6f43a5aeb23d8ad963ff87cb | /mainwindow.cpp | 3aa6def7ceebd58ba995b11c028d2de2809ea5ae | [] | no_license | Razmataz88/Graphic | 8d4857e32ae0d04a6d78374bfed3c290320c5e77 | debc25d5df3d29af95f689b37038ddf06629554e | refs/heads/master | 2021-01-10T16:16:22.485688 | 2016-02-16T00:03:25 | 2016-02-16T00:03:25 | 50,695,540 | 0 | 1 | null | 2020-05-11T17:30:56 | 2016-01-29T22:27:23 | C++ | UTF-8 | C++ | false | false | 38,367 | cpp | mainwindow.cpp | /*
* File: mainwindow.cpp
* Author: Rachel Bood
* Date: January 25, 2015.
* Version: 1.1
*
* Purpose:
*
* Modification history:
* Jan 25, 2016 (JD):
* (a) Don't include TIFF and JPEG as file types to make the list shorter;
* assume (!) that the list also includes TIF and JPG.
* (b) TikZ: only output edge ... |
b0e7b7f28e88ba804c5e4cb9faf47aa5d479c201 | 159e21a4361c672060de279f9165d6e4afed212e | /客户端源码/Anti-virus/CDirectory.h | dc923e987cfb5af9fd67db06083ebc9bb950ba55 | [] | no_license | lracker/Anti-Virus | 193235eb5bac39b79e19c1c60f8560d6c4e0b8ba | 5e0c3f712dd047be5a1bb0e55fe91c36ab442eca | refs/heads/master | 2022-07-10T18:12:58.872655 | 2022-06-24T13:04:39 | 2022-06-24T13:04:39 | 232,745,713 | 0 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | h | CDirectory.h | #pragma once
// CDirectory 对话框
class CDirectory : public CDialogEx
{
DECLARE_DYNAMIC(CDirectory)
public:
CDirectory(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CDirectory();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIRECTORY };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); ... |
17aa9940e9ad33217df2640e9acf758d258c0056 | 1f0f1db8455da450d5ceda6925202bab8c24d2b6 | /Section-2/subset.cpp | 7b2eecc86ac0bc267de3f10aa97449b4c8849a86 | [] | no_license | CLDP/USACO-Training | 5c7538a1d57622c1e1cb89416084e3ed4d8bce74 | 8ff9cdd30956bf40f8ece965f8081c162fdeba45 | refs/heads/master | 2021-06-24T06:21:04.916750 | 2017-03-13T16:19:09 | 2017-03-13T16:19:09 | 9,501,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | cpp | subset.cpp | /*
ID: CHN
PROG: subset
LANG: C++
*/
#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
int n;
long long f[2000];
int main() {
freopen("subset.in", "r", stdin);
freopen("subset.out", "w", stdout);
cin >> ... |
b1bf975f1294c44f11e3b512622035ffecdb8020 | 805109c841a3431bc6f543ee9b3ab3da07b5460d | /constructFromPosAndIn/constructFromPosAndIn/main.cpp | 3c432d3b140984a67baee82f8fc7857eac37a36b | [] | no_license | jingninc/algorithm | bc4f8e3ecd845596e418c297bf11da917e868241 | 481406c8d5763585ff645a85db26f9deb5376cab | refs/heads/master | 2016-09-05T16:12:32.324491 | 2015-02-02T19:00:23 | 2015-02-02T19:00:23 | 30,202,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,174 | cpp | main.cpp | //
// main.cpp
// constructFromPosAndIn
//
// Created by JINGNING CAO on 1/20/15.
// Copyright (c) 2015 JINGNING CAO. All rights reserved.
//
#include <iostream>
#include <vector>
#include <stack>
#include <sstream>
#include <unordered_set>
#include <unordered_map>
using namespace std;
struct TreeNode {
int v... |
f2f7d4b637e1a91a4289b8699e41ce09d64def0c | a9135288918f6a0b96f5f6414820e691b4ec8468 | /GETPUT.CPP | 6c1761de24e50319579e31f4a9b0f1861b9f83e1 | [] | no_license | dhruvrastogi1/cpp | 64b4e6435110425986f76a304a80642cf9abdc55 | 622f462c9676ce303bbd6cc99a8ac8aed5871463 | refs/heads/master | 2022-04-15T11:14:36.209592 | 2020-04-14T08:19:02 | 2020-04-14T08:19:02 | 255,542,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | GETPUT.CPP | // Filename: \\SourceXI083\Unit_4\U4Chap03\GETPUT.CPP
#include <iostream.h>
#include <stdio.h>
#include <graphics.h>
void getput()
{
char line_char[80];
cleardevice();
cout << "Input a string: ";
gets(line_char); // Inputs a character line through the standard input device
puts(line_char); // Prints the ... |
c91d6a7fe92f290e28cf4cda27917490f406406f | 6fa70f800ae6d89ad8d952a4d72133609e71ee34 | /oracle_homework5/change_order_start.cpp | ce5998b8d3a11f84d03a92532b752aec1c31f81a | [] | no_license | zhangted32/library_MFC | 0740b15f15cd73ff7cd67bc4af1a7434d2f527b0 | b466a8b6be3ccf541e9138b2f7bfb5b1e7d8f45a | refs/heads/master | 2021-03-30T23:14:46.787085 | 2016-12-18T04:30:54 | 2016-12-18T04:30:54 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,448 | cpp | change_order_start.cpp | // change_order_start.cpp : 实现文件
//
#include "stdafx.h"
#include "oracle_homework5.h"
#include "change_order_start.h"
#include "afxdialogex.h"
// change_order_start 对话框
IMPLEMENT_DYNAMIC(change_order_start, CDialogEx)
change_order_start::change_order_start(CWnd* pParent /*=NULL*/)
: CDialogEx(change... |
828dab851036b2bce26b53ece48150a978e4d7de | 2c50b587baedf6320ddd41ca49ee4c07aeafdfdb | /DynamicProgramming/最长不下降子序列.cpp | 15966d9bfd6038cd87a1cea9ae612919659502e3 | [] | no_license | LeavesSwaying/AlgorithmNoteBook | 0626aa27eaa18829977ab321f4dfe64face4a4c4 | f4919eab33f397a5bb4eb97ad39aff5b314ff640 | refs/heads/master | 2023-06-09T13:11:04.127125 | 2021-06-22T07:37:51 | 2021-06-22T07:37:51 | 208,562,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | 最长不下降子序列.cpp | #include<iostream>
#include<algorithm>
using namespace std;
const int N=100;
int A[N],dp[N];
int main()
{
int n;
scanf("%d",&n);
for(int i=1;i<=n;++i)
scanf("%d",&A[i]);
int ans=-1;
for(int i=1;i<=n;++i){
dp[i]=1;
for(int j=1;j<i;++j)
if(A[i]>=A[j]&&(dp[j]+1>dp[i]))
dp[i]=dp[j]+1... |
45c117a882b1fc42a78ffc7fcc9befd58e9e7056 | ea09b47df0eb9cd3b2f681bb4aa9cd1bcb4f33c8 | /src-qt5/warden-gui/dialogworking.h | 9469c98387df3ce632ca182119cc98dbea3d6022 | [
"BSD-3-Clause"
] | permissive | trueos/pcbsd | f00ef902bbbe7c63a5ab65e9167fa9e11fc9628e | 652ce9da324ba34fd4d3fca03022cc027b44b635 | refs/heads/master | 2020-04-09T06:06:02.732872 | 2017-08-23T16:32:02 | 2017-08-23T16:32:02 | 9,331,079 | 35 | 14 | null | 2016-06-24T12:57:10 | 2013-04-09T20:39:26 | C++ | UTF-8 | C++ | false | false | 476 | h | dialogworking.h |
#ifndef WORKINGDIALOG_H
#define WORKINGDIALOG_H
#include "ui_dialogworking.h"
class dialogWorking : public QDialog, private Ui::dialogWorking
{
Q_OBJECT
public:
dialogWorking() : QDialog()
{
setupUi(this);
}
void programInit();
void setDialogTitle( QString &title );
v... |
7ac15e20161e5374eb01cf67df18ac82580bbb2d | 3fad2b77e90004d7d248f183bcb1e8ab3288f1a4 | /6.S096_2013_IntroductionToCandCpp/lab5_6 .S096/4_MIT_vector_example/main.cpp | 4a43bf866694fa50d097e930fc309b6b1350af4e | [] | no_license | santhoshvai/Cpp_MIT_course_Assignments | 6146a6fa3ae6a6e19f4cd4eaed6923b728dc4a10 | 82206b94a2730b75ad12d2d9db67b85151fd23b3 | refs/heads/master | 2021-01-20T13:47:48.663079 | 2015-03-04T10:13:25 | 2015-03-04T10:13:25 | 12,365,806 | 6 | 0 | null | 2014-09-11T09:21:58 | 2013-08-25T21:12:12 | C | UTF-8 | C++ | false | false | 286 | cpp | main.cpp | #include "vector.h"
int main() {
Point p; // default constructor
// p.x is 0.0, p.y is 0.0)
Point q(2.0, 3.0); // 2-parameter constructor
// q.x is 2.0, q.y is 3.0)
Vector r(2.0,3.0,4.0,5.0);
p.print();
cout << endl;
q.print();
cout << endl;
r.print();
p.offset(3.0,4.0);
}
|
e7c2f623ca4c0f3fb96e0299bcc8d6604b193673 | 80077656b903ead4b46725b69d3454d2cc6a035b | /src/tlsserver.cc | 24e2f9a1cb11369fb26701ceaae696a6a451bf66 | [] | no_license | zhoupeng6d/tlszmq | b84aad0e890ca419eed6588b56d74de6d291094f | f9fbc1d027f2cdaf93683a7005b3b409b8ae34f8 | refs/heads/master | 2020-05-15T10:35:09.329534 | 2019-06-07T09:53:32 | 2019-06-07T13:02:01 | 182,194,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,237 | cc | tlsserver.cc | #include <string>
#include <map>
#include <iostream>
#include <zmq.hpp>
#include "tlswrapper.h"
#include "zmqchannel.h"
#include "tlsserver.h"
TLSServer::TLSServer(const std::string &cert, const std::string &key, const std::string &ca, const std::string &addr, bool verify_peer, request_handler_t func)
{
m_cert = c... |
397cdf2427a59e9bdf0010c9362ec8a331bc4f5c | 6b3b581b2c5066e4444ad2623fafda0514cd39bf | /Graph/Largest Distance between nodes of a Tree.cpp | cc381892b1030065205d4969a9409508c81e206e | [] | no_license | JayantKanel/Graph_InterviewBit | 36167d6175462d6ff77b780baf17743ad5093db5 | df67488d7de896f956ea15cc4f086157ae3e50ac | refs/heads/main | 2023-08-18T03:06:13.992038 | 2021-09-25T13:23:23 | 2021-09-25T13:23:23 | 410,263,776 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | Largest Distance between nodes of a Tree.cpp | //logic :
//Simple go from any point to another point and from that end point go to another end point we will find the largest distance
int len1=0,root1=0,ans=0;
void dfs(int src,int len,vector<bool>&vis,vector<vector<int>>&adj){
vis[src]=true;
if(len>ans && adj[src].size()==1){
ans=len;
}
len++... |
befb1263e6a90f16026eaaa374df8dde4f571993 | 0fa9e325bffe5b08b3a569a7dd5507db55aed829 | /UVa/11134 Fabled Rooks/Fabled_Rooks.cpp | ff3bea10721c1d9e068b6f47107a2a4edce25803 | [
"Apache-2.0"
] | permissive | wuli2496/OJ | 8322c07752807fdab36aae551cbe42474308ed1f | c8baef1c0b2c7fd2f0a76bf195367413b20d5284 | refs/heads/master | 2023-04-13T12:42:44.072512 | 2023-04-09T10:47:54 | 2023-04-09T10:47:54 | 196,775,902 | 6 | 2 | Apache-2.0 | 2022-12-16T15:48:25 | 2019-07-13T23:48:54 | Java | UTF-8 | C++ | false | false | 3,018 | cpp | Fabled_Rooks.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <memory>
#include <algorithm>
using namespace std;
class AlgoPolicy
{
public:
virtual ~AlgoPolicy() {}
virtual void execute() = 0;
};
struct Rook
{
int l, r;
int pos;
bool operator<(const Rook& other) const
{
return r ... |
144683ba7fb2752289e90edad660ee257caa7b1a | 0b9178ff7d3db16e6d28106f33c52298d8c04f81 | /source/integration/integrations_1D.hpp | 822644cacf211da9ef2b103a519520ddc2fd31fc | [
"Apache-2.0",
"MIT"
] | permissive | bremerm31/dgswemv2 | 440d3999fd76632e2631d0993509a0adde090762 | 5ddddfdf1b5f51e9dbc348f2e69f187546649957 | refs/heads/master | 2021-07-13T05:59:42.005455 | 2020-04-06T13:45:34 | 2020-04-06T13:45:34 | 132,520,141 | 0 | 0 | MIT | 2018-06-27T13:53:49 | 2018-05-07T21:50:47 | C++ | UTF-8 | C++ | false | false | 855 | hpp | integrations_1D.hpp | #ifndef INTEGRATIONS_1D_HPP
#define INTEGRATIONS_1D_HPP
#include "general_definitions.hpp"
namespace Integration {
/**
* Gauss Legendre quadrature rule for the unit interval.
* GaussLegendre_1D describes the Gauss Legendre quadrature rules for the unit interval.
* @note The strength of the rule is limited to polyn... |
6423e805168f6bc46ae96c7410699a4a1b763c28 | 46718264d9a48a446ebde9e8f59c5e83ab753232 | /GameScene_Lunatic.cpp | dfa1f2550c1c20bd554f4748a9cade5fdfd2d4a4 | [] | no_license | kuroshiro0f/team20 | ef8ee52e7953aa831f4659b3c6ec449d258090bc | f4d5cb94a5c95bd779c0328d5bb4fe262db89ba7 | refs/heads/main | 2023-06-17T20:45:20.064083 | 2021-07-17T04:42:20 | 2021-07-17T04:42:20 | 383,137,219 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 13,129 | cpp | GameScene_Lunatic.cpp | #include "GameScene_Lunatic.h"
#include "Result.h"
#include "Mark.h"
#include "Target.h"
#include "Player.h"
#include "ObstructManager.h"
#include "Hitchecker.h"
#include "UI.h"
#include "Camera.h"
#include "DxLib.h"
#include "Effect.h"
static int enemyNum = 10; // エネミーの数
static int GIRL_Y = 0; // 中華女子の初期Y座標... |
2edcc65f02d99991491c80a53bc32454632d4782 | 67f0f9882fc442fcdf5c9eb0af8bce77ec384b9f | /PhysicalWorld/Render/Models/VAOs/vertex_array_object.cpp | 09df0f6a483f9c3b6e329ba62a0c74515eef2da5 | [] | no_license | baranusta/PhysicalWorld | 98f49d9b7139cbe6a52ecec408c127838b7510ce | 2b1b1fb331bbee462585f8870e9f627e5ee680fa | refs/heads/master | 2021-07-17T19:37:30.958811 | 2017-10-25T08:25:26 | 2017-10-25T08:25:26 | 100,274,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | vertex_array_object.cpp | #include "vertex_array_object.h"
render_engine::VertexArrayObject::VertexArrayObject()
{
glGenVertexArrays(1, &vao);
glBindVertexArray(vao);
glGenBuffers(1, &element_array_handle);
glBindVertexArray(vao);
}
render_engine::VertexArrayObject::~VertexArrayObject()
{
glDeleteVertexArrays(1, &vao);
for (auto pair... |
dd1288b49e94cd15cc2a0dd2552b8ba192cb4fe4 | cf24b4d8d5203e2c6a190b244c05d4cd27ac68d0 | /Pacman/Leben.cpp | ab75389a8fbd019c095aac65cfeae61e92704025 | [] | no_license | Karstack-overflow/Pacman | 4fab544e028f1ec45e87d69de9e7248f9e4fd398 | 50b3dbef3eab34137fb42e385d2a05156e365f7e | refs/heads/master | 2023-02-02T01:53:39.308114 | 2020-12-22T19:41:20 | 2020-12-22T19:41:20 | 323,626,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | Leben.cpp | #include "Leben.h"
Leben::Leben(QGraphicsItem* parent) : QGraphicsTextItem(parent) {
leben = 3; // Anzahl der Leben
//Textausgabe
setPlainText(QString("Leben: ") + QString::number(leben));
setDefaultTextColor(Qt::red);
setFont(QFont("times", 16));
}
void Leben::erniedriegen() {
leben--;
setPlainText(QString(... |
a9ada1c9f3bec03c998fee1a65cbaa9635651903 | d1ff106e7f3e5e36db79744bf5cd747fcc20cf55 | /hecuba_core/src/configmap.h | 4b6829089404f77f558e290d56805f2fb9e64db0 | [
"Apache-2.0"
] | permissive | bsc-dd/hecuba | b736068fc9f65a4b186eef29ae40245352ace9ec | bcd6763aae7fa167249dedf74596407a78632bf6 | refs/heads/master | 2023-08-17T18:53:34.297380 | 2023-07-28T09:13:46 | 2023-07-28T09:13:46 | 71,882,572 | 7 | 5 | Apache-2.0 | 2023-09-13T11:24:51 | 2016-10-25T09:45:24 | C++ | UTF-8 | C++ | false | false | 156 | h | configmap.h | #ifndef CONFIGMAP_H
#define CONFIGMAP_H
#include <map>
#include <string>
typedef std::map<std::string, std::string> config_map;
#endif /* CONFIGMAP_H */
|
251de4ed62ae9c893defd16c825bea7145327de9 | 1bb356c30e9d18404138d2b12ff2ad7d6de656b2 | /canscope/device/frame_device/frame_device_handle.cc | 0f5fb666f7dac72de03e5453d6b89aabb453c605 | [] | no_license | cha63506/device_operate | b6bd9f82dfd2f093ea1ef8a2600113f65e9ff2e6 | 0e8af1ad0552754f942217189029d773b52e21cf | HEAD | 2018-05-05T13:53:33.634646 | 2014-06-16T08:33:52 | 2014-06-16T08:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,185 | cc | frame_device_handle.cc | #include "canscope/device/frame_device/frame_device_handle.h"
#include "canscope/device/sync_call.h"
using namespace base;
namespace {
static const int kFpgaSendStateFreq = 40;
}
namespace canscope {
device::Error canscope::FrameDeviceHandle::FpgaSend(const FpgaFrameData& data,
... |
8a14d7acc36b63aef48b9ade076d165003c3c1bd | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /chromium/chrome/browser/web_applications/externally_managed_app_manager_unittest.cc | 05d01f4c17384b3abfefbdc8a6950bd18b662cce | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 12,503 | cc | externally_managed_app_manager_unittest.cc | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/web_applications/externally_managed_app_manager.h"
#include <algorithm>
#include <sstream>
#include <vector>
#include "base/callback_helpers.h"
#incl... |
2156f74d05c1a257ca77749ece88bc09ba54d9da | 4e38faaa2dc1d03375010fd90ad1d24322ed60a7 | /include/RED4ext/RTTITypes-inl.hpp | 5791bf9f58d7527a09b0408d00769a80b806d216 | [
"MIT"
] | permissive | WopsS/RED4ext.SDK | 0a1caef8a4f957417ce8fb2fdbd821d24b3b9255 | 3a41c61f6d6f050545ab62681fb72f1efd276536 | refs/heads/master | 2023-08-31T08:21:07.310498 | 2023-08-18T20:51:18 | 2023-08-18T20:51:18 | 324,193,986 | 68 | 25 | MIT | 2023-08-18T20:51:20 | 2020-12-24T16:17:20 | C++ | UTF-8 | C++ | false | false | 17,255 | hpp | RTTITypes-inl.hpp | #pragma once
#ifdef RED4EXT_STATIC_LIB
#include <RED4ext/RTTITypes.hpp>
#endif
#include <RED4ext/Addresses.hpp>
#include <RED4ext/CNamePool.hpp>
#include <RED4ext/Relocation.hpp>
#include <RED4ext/Scripting/CProperty.hpp>
#include <RED4ext/Scripting/Functions.hpp>
RED4EXT_INLINE RED4ext::CBaseRTTIType::CBaseRTTIType... |
351a7ab62b4eef3976edabd384d81b02dbb382e7 | 531bf2890c5548cfd16630c2688435b2d4a436fa | /src/main.cpp | 6e83916e4e4e2d3a49f8408099ed530dad7b2e98 | [] | no_license | kseniyaz/engine | 003e829d07928aae19dde111a37a6fe460b69ee3 | 46850fedaeec6372852d498ee4acc4a969c46bcc | refs/heads/master | 2023-01-20T11:49:10.387961 | 2020-11-22T16:12:22 | 2020-11-22T16:12:22 | 315,078,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,872 | cpp | main.cpp | #include "engine.h"
#include "strategies/freeglutrenderstrategy.h"
int main(int argc, char **argv){
RenderStrategy* strategy = new FreeglutRenderStrategy();
Engine engine(strategy, &argc, *argv);
engine.setWindowSize(1024, 768);
engine.setWindowPosition(300, 100);
engine.createWindow();
auto ... |
1eea6a52c7279aab62e018270ef06861d2021052 | c9cf0586ace11aa32fa67606d237a130a06364ee | /circular-cylinder-3-40/32.5/U | dddc7e74618d55a2a8db7b7f09acf2c988f369f8 | [] | no_license | jezvonek/CFD-Final-Project | c74cfa21f22545c27d97d85cf30eb6dc8c824dc1 | 7c9a7fb032d74f20888effa0a0b75b212bf899f4 | refs/heads/master | 2022-07-05T14:43:52.967657 | 2020-05-14T03:40:56 | 2020-05-14T03:40:56 | 262,370,756 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 544,798 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
0f846ea28f6a0454a73e13f4c3e136bba71baf9f | df2de2179aa2e89cdd56d96e050f8976909486e7 | /App_v01/src/stroke.h | 101ac17b15d801af2e558e4090d5a7381ce957f0 | [] | no_license | incredibleMachines/PaintOut | 36ce83e39b9bd84d2985ec8c326165e81079cf0a | 376c7846c565ace920daec9728156efe55a45adc | refs/heads/master | 2021-01-10T09:44:14.535039 | 2014-10-16T17:02:34 | 2014-10-16T17:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | h | stroke.h | #ifndef _STROKE_H
#define _STROKE_H
#include "ofMain.h"
class stroke {
public:
void addPoint(int x, int y);
void addColor(int r, int g,int b, int o);
void clearStroke();
void draw();
vector <ofPoint> pts;
vector <ofColor> colors;
vector <float> blurs;
float getLength();
float getTotalAn... |
2048b6183f5bfb857e4ef135d0acf484b314dcde | f759421680dc7f0308b1c5729dc01dd31cec346b | /win32/process/process/socket/mfc_socket_file/serversocket.cpp | 505c611a4898aae86181c2760e42ee12bedcafa1 | [] | no_license | atlantiswang/samples | e87f850977f551ccf6ea960cbafdd1ce633cbbc5 | a2e1c2039d1286c3bf4a1415faea40b7f8409f3a | refs/heads/master | 2021-10-14T07:18:34.431311 | 2021-10-01T18:18:36 | 2021-10-01T18:18:36 | 63,856,711 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,972 | cpp | serversocket.cpp | // ServerSocket.cpp : implementation file
//
#include "stdafx.h"
#include "MFCServer.h"
#include "ServerSocket.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CServerSocket
CServerSock... |
dae71f483bdc6b38b0a6cfb69d5fbe8f170bf6cf | 0f7286c41a98c9a82c13a68acf884cfee87591d0 | /lib/ECpp3dOpenGLContext.h | 847292a7fdd680c79cacaaffafc78e69dff334d5 | [] | no_license | kalhauge/ECpp3d | d4d7e520547982fea53749a5d6ad690d1dcf6fca | 9dd99175be9595c172ea4b2a5493814b1ec7bf0e | refs/heads/master | 2020-04-30T17:45:40.287035 | 2012-12-09T10:52:43 | 2012-12-09T10:52:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,008 | h | ECpp3dOpenGLContext.h | /*
* ECpp3dOpenGLContext.h
*
* Created on: 03/12/2012
* Author: christian
*/
#ifndef ECPP3DOPENGLCONTEXT_H_
#define ECPP3DOPENGLCONTEXT_H_
#include "ECpp3dUtils.h"
#include "ECpp3dException.h"
#include "handlers/ECpp3dTexture.h"
#include <set>
namespace ECpp3d {
class OpenGLContext {
static bool initiali... |
c1cdbff4a9214815ab783e03faf317f400597b5f | 7a20309cc81e4ac23076ae7471b57c206f1b08b1 | /MAX2.cpp | 543cf186db46d32464e02bff799637bcde1da161 | [] | no_license | zongzong183/CPP | 775774418fd16522c182d2d227d17d66751dd5ef | 71841bb5e716bf3e8170df068e435e978c5f0a59 | refs/heads/master | 2021-05-19T05:21:34.016171 | 2021-05-13T11:08:59 | 2021-05-13T11:08:59 | 251,545,254 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,929 | cpp | MAX2.cpp | #include<iostream>
using namespace std;
void max2(int A[],int lo,int hi,int & x1,int & x2);
void max2_recusion(int A[],int lo,int hi,int & x1,int & x2);
void max2_re(int A[],int lo,int hi,int & x,int & y);
void max2_vector(int A[],int lo,int hi,int & x1,int & x2);
int main()
{
int x=0,y=0;
int A[]={0,1,5,6,87,3... |
554453008df8da8f1d4470ed3c6f56db241bdc74 | a5ab44e82855a3add85858067511570993d7d78b | /hacker_rank/hacker_rank_cpp/hacker_rank_cpp/9_number_of_jump_steps.cpp | 34ede4da8997d79996f30bd5b8e56d1dbaf913aa | [] | no_license | naveen-kummar/C_CPP_Projects | a4e79a5824164c14032ce6667d741c9e1aa2536a | a5650f3b58f6f99c2659f1f929b7059a67477d51 | refs/heads/master | 2022-12-14T00:27:39.783060 | 2020-09-19T08:47:42 | 2020-09-19T08:47:42 | 261,915,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,891 | cpp | 9_number_of_jump_steps.cpp | /*Find total number of possible paths to climb staircase. Where the use
can either take 1 or 2 or 3 steps at a time*/
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <chrono>
using namespace std;
using namespace std::chrono;
unsigned long long CountPathsR(int ste... |
4346820f799f7e6f0c614a3b57d54456c803afcd | 799a21e89a17fffee2508d40072d68e065c903e4 | /zl031214/Savitch_Assignment6_Prob12/main.cpp | 645d596c11e77dc03e3d00784285a9e70e343b8e | [] | no_license | Hillash/CSC5_Spring_2014_42450 | 5b8204b124338587a06210cf4cf05163463ac557 | 7a513d1a2f355da9a62cf86bf7ea5120699004fa | refs/heads/master | 2020-12-28T23:04:32.682727 | 2014-10-01T06:19:38 | 2014-10-01T06:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 671 | cpp | main.cpp | /*
* File: main.cpp
* Author: Zachery Ludwin
* Created on May 27, 2014, 7:43 PM
*/
//System Libraries
#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
//Global Constants
const int NUMBER_OF_PLANTS=4;
//Function Prototypes
void input_data(int a[], int last_plant_number);
//Executio... |
6e9f980f16eb7de91cb1bf282bc89e686eb2f405 | c365251f4f7b6bc26eb70849324eb437ce8595bd | /tests/unittests/test_iobin.hpp | 1ba35bfd5ab8bbad57fa84209d578f625013b8b8 | [
"MIT"
] | permissive | BetaJester/binaryizer | 6b70a6edb679e20b2eebd8cc21e16b9e8d185852 | 75659b8d1ae1b80c4e21c9fe8ee57cfa4e39542d | refs/heads/main | 2023-04-07T04:24:11.473353 | 2021-04-07T04:40:31 | 2021-04-07T04:40:31 | 345,976,209 | 2 | 0 | MIT | 2021-04-07T04:40:32 | 2021-03-09T11:01:14 | C++ | UTF-8 | C++ | false | false | 552 | hpp | test_iobin.hpp | // Copyright (C) 2021 Glenn Duncan <betajester@betajester.com>
// See README.md, LICENSE, or go to https://github.com/BetaJester/binaryizer
// for details.
#pragma once
#include <sstream>
#include <bj/binaryizer/io/fstream_binaryizer.hpp>
#include <bj/binaryizer/io/stringstream_binaryizer.hpp>
inline auto ... |
7d43fa55f8b1281478ef0a81c2e31decedf7d081 | 1c03bb14b411ba9e98662baf7681c0cd282eafbe | /src/app/test-jit.cc | 2d6e9661259baf6fa3d9f234acee86e6da69fb5c | [
"MIT"
] | permissive | brucehoult/riscv-meta | 4f2e8a77c0719b28edf877be9e324a62c0b655c8 | 889545b5698ea763cd03c24d92bfaacc57c24bb8 | refs/heads/master | 2021-01-19T14:50:56.185279 | 2019-02-03T01:39:05 | 2019-02-03T01:39:05 | 88,192,002 | 5 | 0 | NOASSERTION | 2019-02-03T01:39:06 | 2017-04-13T17:55:21 | C++ | UTF-8 | C++ | false | false | 47,580 | cc | test-jit.cc | //
// test-jit.cc
//
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <cinttypes>
#include <csignal>
#include <csetjmp>
#include <cerrno>
#include <cmath>
#include <cctype>
#include <cwchar>
#include <climits>
#include <cfloat>
#include <cfenv>
#include <cstddef>
#include <limits>
#... |
53f9c909e64e524b5f57e80558132394214bc865 | 45c57a36418bfc0e7c485f1e60b11b684b42ba28 | /Traffic Simulator/Light.h | d2d3632a84ddccc60396eea3c76365b09bb88629 | [] | no_license | astephen68/TrafficSimulator | bd7c45e95c3c15003c892af7362bac12c1b3e4ad | d46333709083802803da9ec68239503942307eed | refs/heads/master | 2020-05-20T09:02:03.703999 | 2019-05-07T23:16:42 | 2019-05-07T23:16:42 | 185,490,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | h | Light.h | /*
Student: Daniel Munusami 100552012
Student: Stephen Richards 100458273
Student: Selina Daley 100558926
Date Last Revised: 2017-08-04
Description: This the lights class where we declare methods.
*/
#ifndef LIGHT_H
#define LIGHT_H
#include <iostream>
#include <string>
using namespace std;
cla... |
157dac1532a7f41e51b5ae92801880a4541ee0e3 | e3b70f73ca944162b6874730e85bd500e00c87f5 | /161114_ComplexRunner.cpp | 8e6eb92588dd3716304bdbd66e108ac5061576da | [] | no_license | samuel-tian/KomplexKanban | cc252b35a5614061091f0bec5ba5bd7af4351e62 | 40f903261fbecce4a8f568a5f007df9beea159f2 | refs/heads/master | 2020-04-18T16:36:15.497561 | 2018-12-12T03:18:39 | 2018-12-12T03:18:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,829 | cpp | 161114_ComplexRunner.cpp | #include <cstdlib>
#include <iostream>
#include "Complex.h"
#define PI 3.1415926538979323846
#define EULER 2.71828182845904523536
int main () {
std::cout << "Hello World" << std::endl;
Complex a(5.0,6.0),b;
std::cout << "Enter b: ";
std::cin >> b;
std::cout << "a = " << a << "\n"... |
14d2a6dfe4f1afb41a1d5be5d4362cf7d693b3e5 | 30c5dfd0fe62f5c4cd13ca9eb0a37922d2df5a62 | /codigos/Vehiculos.cpp | 58369747b54fcebbb18c8bbf1ef3d7b7b86c8451 | [] | no_license | martintarres/final_algoritmos | ae3d2c4b8c8ead06f5a3d0d2b4996b8a3e0d11e7 | c79f4caea5281d4891daa62c2993f54dabb0c724 | refs/heads/master | 2021-01-09T20:32:55.946498 | 2016-07-28T09:48:39 | 2016-07-28T09:48:39 | 63,171,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,576 | cpp | Vehiculos.cpp | //#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <fstream>
using namespace std;
class Vehiculos{
private:
int origen;
int final;
int prioridad;
int patente;
bool estoyAdentro;
public:
Vehiculos(){
/*this->patente=patente;
this->final=final;
this->prioridad=priorid... |
acdbfddc4ef30d1b7bcd5cc12a9e39dce44c6693 | 338e007d47cc11dfe59d407d8366f522a843745c | /MultiThread/Picking.cpp | da7155f8704897cf8fb785d696ae19a79e8b718e | [] | no_license | Thatpaulguy/MultiCoreDemo | 00fcc825e969dc1d321b2d5eef8b2db238e7f3a9 | dea3e0e743ed19dd0d572b81c837b7858f2a927c | refs/heads/master | 2020-03-12T11:10:15.276087 | 2018-04-22T17:28:21 | 2018-04-22T17:28:21 | 130,590,313 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,831 | cpp | Picking.cpp | #include "Picking.h"
#include <cmath>
//using namespace std;
int Picking::picking(POINT mousePos, D3DXMATRIX proj, D3DXMATRIX view, vector<int> id, vector<D3DXVECTOR3> pos, vector<D3DXVECTOR3> halfscale, float screenW, float screenH)
{
int temp;
int pickedID = 0;
PickingCheck tempStruct;
//D3DXVECTOR3 tempHalfS... |
9b88a17768eb5aac49c85df658eaa3c460412271 | 326e0b4b2be9d75d040618bf6de76fb85b3e12de | /QrCodeGen/Encoding/Encoder.h | f23400c136a1c3e2b624dbf28bd119d7ed2701f3 | [] | no_license | yurymarozau/qr-code-generator | 7baf1c49d61e546d61c1d44d1d1682fd3358e993 | f04331c7d1f950f91215312dfc0c122345904d4c | refs/heads/main | 2023-02-05T21:09:33.101968 | 2020-12-15T16:28:09 | 2020-12-15T16:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | h | Encoder.h | #ifndef QRCODEGEN_ENCODER_H
#define QRCODEGEN_ENCODER_H
#include <iostream>
#include <bitset>
#include "../Types.h"
using namespace std;
using namespace Types;
class Encoder {
public:
enum codeTypes {
// N - numerical, A - alphanumerical, B - bytes
N = 0,
A = 1,
B = 2
};
... |
755c2e3bbfd7ab467e41d153efd893a25ebdaa43 | cdb9fb50e37cc83fcd4a42c037ef5649967de8c1 | /CPP/CandidateCPP.cpp | 86b0283302308bf9f952ca9a85de02ae368ca570 | [] | no_license | ankitabhishek/mettl-codelysis-custom-code-check | 08ebf5ec96d9b5e82fe9678ed1280eb03e1f49b2 | f849237ba09083b234a4929e6ae9b53616750de2 | refs/heads/master | 2020-03-28T17:40:31.174667 | 2018-09-15T07:44:26 | 2018-09-15T07:44:26 | 148,812,554 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 447 | cpp | CandidateCPP.cpp | #include<stdio.h>
#include<string.h>
// Read only region start
//Assume following return types while writing the code for this question.
struct Result{
int output1;
int output2;
int output3;
};
Result hello(int input1,int input2,int input3)
{
// Read only region end
// Write code and remove the... |
28091101da12c3d41940c811ef58bf39aba7c763 | bc7d35a60f569777af0d494f0a074d87bcdd4a46 | /IR_receiver.ino | 636ba364f4aaa68744df510d51328b5dfe63270c | [] | no_license | phord/oak-infrared | c8e225156dbb111f27311e6b31ef8ba52bcca38f | 2aeed03ee0f7837f6e2d59b5c0a8725b41f6d5bf | refs/heads/master | 2021-06-24T14:16:00.206276 | 2017-09-11T21:19:06 | 2017-09-11T21:19:06 | 103,189,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,294 | ino | IR_receiver.ino | int irPin = P2; //IR detector connected to digital 2
const byte BIT_PER_BLOCK = 32;
auto prev_time = micros();
int head=0;
int tail=0;
const unsigned queuesize = 1000;
unsigned long signals[queuesize];
void handleInterrupt()
{
auto now = micros();
auto next = (tail + 1 ) % queuesize ;
auto len = ... |
4c3e20ff15fca0071db881c1b89a986e5739d2dc | 2780b393bf16550a4a013002c808f25f7fce92c7 | /libraries/HopeRFLib/HopeDuino_Buzz.cpp | 029aa050c791d13cd247a406aca17b14a4e40c30 | [] | no_license | lupyuen/LoRaArduino | cfccd0db9091eb714b0d277c796626830a4fab7a | f9318ff8f464b020654658e8616bd3790a121743 | refs/heads/master | 2021-07-09T17:31:20.530047 | 2021-04-19T05:14:09 | 2021-04-19T05:14:09 | 61,148,354 | 25 | 25 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | cpp | HopeDuino_Buzz.cpp | /*
* THE FOLLOWING FIRMWARE IS PROVIDED:
* (1) "AS IS" WITH NO WARRANTY;
* (2) TO ENABLE ACCESS TO CODING INFORMATION TO GUIDE AND FACILITATE CUSTOMER.
* CONSEQUENTLY, HopeRF SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR
* CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT
* OF S... |
4415b3da3dcf30553f74a8b1466af4dc2d7d4be8 | 562af845950c02af9d56ca43bdaed220f103ba18 | /ClientShellDLL/BloodTrailSegmentFX.h | 66feae167011999b39dda110689c3dad5e9a8daf | [] | no_license | videogamepreservation/blood2 | 8a1cfc157344985025edc811eb9d497edcc03394 | 006b4aabd3fb348f6846cad03799cf8df685ea95 | refs/heads/master | 2023-08-31T13:46:18.541457 | 2014-10-27T18:39:17 | 2014-10-27T18:39:17 | 25,833,227 | 50 | 12 | null | null | null | null | UTF-8 | C++ | false | false | 1,786 | h | BloodTrailSegmentFX.h |
/****************************************************************************
;
; MODULE: BloodTrailSegmentFX.h
;
; PURPOSE: Blood trail effect header
;
; HISTORY: Created by SCHLEGZ on 5/20/98 8:08:13 PM
;
; COMMENT: Copyright (c) 1997, Monolith Productions Inc.
;
******************************... |
0223b3c584a5adcaff1705d6faf211f8190c3b96 | 84f6156aed2b2450ea1edeb4efdb5829aa454f61 | /beecrowd/1376.cpp | ef1c38a57835d14c53316e5aca4d1bd4250000a0 | [] | no_license | IvanIsCoding/OlympiadSolutions | 39b1e9728553e60fcb03e235b2e09e2376fb6899 | d7cbe82f6c3aa0e1bf36b9d517401543e37c429c | refs/heads/master | 2022-07-02T09:29:30.903478 | 2022-06-18T21:05:22 | 2022-06-18T21:05:22 | 131,602,431 | 70 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 1,457 | cpp | 1376.cpp | // Ivan Carvalho
// Solution to https://www.beecrowd.com.br/judge/problems/view/1376
#include <cstdio>
#define MAXN 101
int r, c, n, k, matriz[MAXN][MAXN], novamatriz[MAXN][MAXN];
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};
inline int valido(int x, int y) { return x >= 0 && y >= 0 && x < r && y < c; }
void fu... |
8a287000e5285d20e0577299e528e2ae74242534 | e27166631510e3630c34316eb8adf8d80cd48fb7 | /addnewuserwidget.h | ba196eab4dd0cde6738a91de35c831fefd964c78 | [] | no_license | iSokrat/SportDiary | 7bf92537730b9b35bcd4b870693158d7eb56bcfa | 5be71e2f5e63968ee50d2fe16b3c6ed994ea4c17 | refs/heads/master | 2021-01-01T04:29:44.187071 | 2016-06-03T12:46:54 | 2016-06-03T12:46:54 | 59,362,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | h | addnewuserwidget.h | #ifndef ADDNEWUSERWIDGET_H
#define ADDNEWUSERWIDGET_H
#include <QDialog>
#include <user.h>
#include "imagemodel.h"
namespace Ui {
class AddNewUserWidget;
}
class AddNewUserWidget : public QDialog
{
Q_OBJECT
public:
explicit AddNewUserWidget(QWidget *parent = 0);
~AddNewUserWidget();
User getNewUser... |
ebaaf7b4457560f0218ed96170e63289d2252742 | 964cd4ebc139a4303104d4b27dee8b557bb590b3 | /src/enemy/IEnemy.h | ca640c2877533253282ec5bce70da6b77c82295e | [
"MIT"
] | permissive | chanjeff2/GroupProject | 5b2097b74a72e431e8c65b864a7c4739ef8d67c3 | 4ca9e8b6e62727ae7dd4e7e9e9fd0ecab8cda6b0 | refs/heads/dev | 2023-01-28T12:21:49.816401 | 2020-12-05T13:36:41 | 2020-12-05T13:36:41 | 308,262,871 | 0 | 0 | MIT | 2020-12-05T11:03:33 | 2020-10-29T08:27:08 | C++ | UTF-8 | C++ | false | false | 2,020 | h | IEnemy.h | #ifndef IENEMY_H
#define IENEMY_H
#include <deque>
#include <string>
using namespace std;
#include <QObject>
#include <QTimer>
#include "FocusManager.h"
#include "ModManager.h"
#include "EnemyLayoutManager.h"
#include "src/utility/pathfinding/Path.h"
#include "src/main/GraphicsItemGroup.h"
// forward declaration
c... |
244334904f9f781ae75cad58c8d8a8bc3d5fd752 | fc4ac4c1b86930f47fab7fd5abf45709fd0211ea | /49.cpp | 827a1ab2bd8368bc0cd0c7904fb838dfe5c00f03 | [] | no_license | Praveenkangayam/Praveenkumar | 1c6c4c7c2e6710a7940bafd4e4f9957a25fd8917 | aace194214749e9202ad33bd4bd0ab9d11479a9d | refs/heads/master | 2021-04-28T09:47:32.252973 | 2018-05-22T06:03:53 | 2018-05-22T06:03:53 | 122,050,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | cpp | 49.cpp | #include <iostream>
using namespace std;
int main()
{
int c,b,sum;
cout<<"Enter c number";
cin>>a;
cout<<"enter b number";
cin>>b;
sum=c+b;
cout<<"the value is"<<sum;
}
|
28380f35fc64b8afb507cefb8ed4ec29bae488cd | 1ec770363183cbbdf284882b427d93664bf5b8c1 | /firmware/include/rotary.h | cdc34a3ce67f8b7a3a3a89dce4189d0f6d5c1856 | [
"MIT",
"CC-BY-SA-3.0",
"CC-BY-3.0"
] | permissive | angrox/clean-air | 9aa3d6fa2cf7524fc137d462dd14c269822a7266 | 4489a3e38b04d5f6952c53de30e9190a60bae92a | refs/heads/main | 2023-02-01T06:36:42.519253 | 2020-12-15T16:45:09 | 2020-12-15T16:45:09 | 312,361,178 | 0 | 0 | MIT | 2020-11-12T18:22:30 | 2020-11-12T18:22:29 | null | UTF-8 | C++ | false | false | 573 | h | rotary.h | #include "jsonHandler.h"
// Configurations for the KY-040 rotary element
// Rotary configuration
#define ROTARYSTEPS 8
#define ROTARYMIN 0
#define ROTARYMAX 255
// ROTARYDEFAULT is multiplied with the ROTARYSTEPS
#define ROTARYDEFAULT 4
const int KY_CLK = 21;
const int KY_DT = 17;
const int KY_SW = 16;
// Callback ... |
42077cea4fcaa114117de58d29e8efaefae9e0bc | e176b46778b4b82aa673d6bf401decd868a7aad1 | /Proyectos/Proyecto 1/Octaedro/Coordenada.cpp | 3d32984352c163199079e9aa0fdeef513cb245f5 | [] | no_license | SpartanCoder0117/Distributed-Systems-Development | fbaea3f1e147346339b190cf11bd7c2927daf703 | 659e88341f1aff9b69311549e5321c6a4de23e52 | refs/heads/main | 2023-06-04T10:29:19.589846 | 2021-06-20T04:04:18 | 2021-06-20T04:04:18 | 378,554,690 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | Coordenada.cpp | #include "Coordenada.h"
#include "Rectangulo.h"
#include <iostream>
using namespace std;
Coordenada::Coordenada(double xx, double yy, double zz) : x(xx), y(yy), z(zz){}
double Coordenada::getX(){
return x;
}
double Coordenada::getY(){
return y;
}
double Coordenada::getZ(){
return z;
}
Coordenada Rectan... |
830a810b7821ffc428c273a9a8d889eb80e11e21 | 859b79558d9c30a450f592f2342a3617439bcaeb | /Course Materials/Examples/14 Pointer/pointer basic 7.cpp | dd73a4c483fe517c2a22cc296f8ba5e60d1eeeea | [] | no_license | ScottFitzgerald83/cosc_1337 | 077aa9ba3ae42eb6182166fc82360dda89985bb4 | 70943743f3ee7dacb74f491de2b799437e4d3823 | refs/heads/master | 2022-11-25T23:48:07.745029 | 2020-07-28T02:27:29 | 2020-07-28T02:27:29 | 277,050,382 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | cpp | pointer basic 7.cpp | #include<iostream>
using namespace std;
int main()
{
int i=10;
int *j;
int **k;
j=&i;
k=&j;
cout<<"\n ------------ values -------------\n"<<endl;
cout<<"value of i ="<<i<<endl;
cout<<"value of j = "<<j<<endl;
cout<<"value of k = "<<k<... |
2bb8273f45150279f61661548d9cf7ef0b549383 | ba290920f2e59996056368ec93e3c5e115667b51 | /NodeMain/Station.cpp | f5093bab3354afa55a5c931a3c6d5737714c084a | [] | no_license | MMLoveMeMM/node_info | 6d702633440e2ca2c3023aa6ff9397f829a9c606 | 5a094d13dd933e8f0246ec26eba4fee3d51b5e89 | refs/heads/master | 2021-05-15T20:27:09.767867 | 2017-10-21T09:04:38 | 2017-10-21T09:04:38 | 107,765,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92 | cpp | Station.cpp | #include "stdafx.h"
#include "Station.h"
Station::Station()
{
}
Station::~Station()
{
}
|
89c0a3ac2c82a378649d397f7fe49be79a3cb470 | ab31cb60cd19159dede19413c1e9e0874065a709 | /Src/FortuneSummonersAssist.GameEngine/CGameEventManager.h | 24b70689ce4c101549987594101907bcf7915aa9 | [] | no_license | blackmaple/FortuneSummonersAssist | 7e93bc25f3e05d9fd12d94f11292636cf452f341 | b1b1de0c702b9c9b4150e5dd3de20013b5eb4e5c | refs/heads/master | 2020-03-20T01:01:26.221536 | 2019-02-28T02:09:18 | 2019-02-28T02:09:18 | 137,064,592 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | CGameEventManager.h | #pragma once
#include "CMaple.h"
#include "EnumGameEventAddress.h"
#include "EnumGamePropId.h"
#include "EnumGamePropLocation.h"
namespace FortuneSummonersAssistGame
{
class CGameManager;
class CGameEventManager
{
typedef BOOL(__thiscall *pSetPlayerPropEvent)(__in CGameManager* pGameManager, __in EnumGamePropI... |
b6a12928e27d1e9bb77b5aff25f45dbad607c468 | 23d6685bf4f970317f24e2a164e015b26b634185 | /4v.cpp | 1cc3643897785c9585b2f54cae3879ed8d37964b | [] | no_license | anjuvicky/anju | f3902e0def67ac2d22ae4b42b3e907e6f57092f3 | 68e45734cc33d4479bd9d3e53a53853a00bf9202 | refs/heads/master | 2021-04-26T23:01:03.995014 | 2018-05-25T10:01:03 | 2018-05-25T10:01:03 | 123,913,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | 4v.cpp | #include<iostream>
using namespace std;
int main()
{
int n,k;
int v[3];
cout<<"enter the numer";
cin>>n;
cout<<"enter the pos";
cin>>k;
cout<<"enter the values";
switch(k)
{
case 1:
cout<<v[0];
break;
case 2:
cout<<v[1];
break;
case 3:
... |
6a5da178e5b0362ddeb92411f8d87ece973f9cb4 | 3ad549fe305fc8e0c1dabff14ec95cf2e5e84f79 | /compiler/optimizing/nodes.h | 3072fa0641e030fa36fa932a2cc229e510aeab50 | [
"Apache-2.0"
] | permissive | paloda/android_art | eb0c2b5ae9669fc662c360f3b677e3eedba0f34f | 2589f37e9486f811ca09bdb7ca4a0ce48b61dc14 | HEAD | 2016-09-05T09:19:53.851623 | 2014-05-13T06:03:57 | 2014-05-13T06:03:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,014 | h | nodes.h | /*
* Copyright (C) 2014 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-2.0
*
* Unless required by app... |
5659821287db1a21c7e9336a796469b6ee682584 | 537dad87e023d7578bb05d8c8ca29224a49e8b7a | /include/fflow/numeric_fit.hh | c4831785e5233bfec07e336abd782129ce38c31d | [
"MIT"
] | permissive | peraro/finiteflow | 5c35ec63a566c19e8b4039adc14638c5e0040e90 | 4d416de6b418b67961a174956c933df0e3c84cf5 | refs/heads/master | 2022-12-08T07:50:36.175306 | 2022-11-22T15:34:23 | 2022-11-22T15:34:23 | 187,710,347 | 46 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,388 | hh | numeric_fit.hh | #ifndef FFLOW_ALG_NUMERIC_FIT_HH
#define FFLOW_ALG_NUMERIC_FIT_HH
#include <fflow/alg_linear_fit.hh>
#include <fflow/mp_functions.hh>
namespace fflow {
class NumericFit;
class NumericFitData;
class NumericFitData : public LinearFitData {
public:
// tau-dependent data
std::vector<HornerRatFunPtr> c... |
42afcbc395133412138f388dbff5eb6f4e0894a4 | 27b17470be140efa743c18cbb12df7e339d46b7d | /preorder_traversal/main.cpp | ee172295592e293dc94908c93b28aafc526ac354 | [] | no_license | slicer2/leetcode | 196f0035154b1767308e39209d8574178f9e00c9 | c240353d68eef24fa4de7526cbcbac9aee1323d4 | refs/heads/master | 2021-01-01T19:05:00.812940 | 2017-07-27T21:05:11 | 2017-07-27T21:05:11 | 98,502,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,552 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <list>
#include <string>
#include <utility>
using namespace std;
string indent("");
template <typename T>
ostream & operator << (ostream &os, const vector<T> &vec) {
for (typename vector<T>::const_iterator it = vec.begin(); it != vec.end(); it++)
os<< (*it) <<endl;
... |
6c7387609d216ea3cb8aebc6c96beacc83362cc4 | 231bbcb37cb8505e7429a57dd9b56a85deab1baf | /Iscan/iscan.h | d32b636a58f6e4b6bb32d7b4157f3a7ba605152e | [] | no_license | Arpit2601/data-mining | d49c12ad65bee3512035b8d64d3d73343e66b776 | b4a6475cd9ad8e36e85160c09dc98821a21a3379 | refs/heads/main | 2023-04-28T07:34:19.884996 | 2021-05-14T03:25:55 | 2021-05-14T03:25:55 | 363,560,661 | 0 | 0 | null | 2021-05-02T03:50:48 | 2021-05-02T03:50:47 | null | UTF-8 | C++ | false | false | 27,796 | h | iscan.h | // ISCAN Class
#include <bits/stdc++.h>
#include "graph.h"
#include "bfsTree.h"
#define CORE 0
#define NON_MEMBER 1
#define NON_CORE_MEMBER 2
#define HUB 0
#define OUTLIER 1
using namespace std;
class iscan
{
public:
// epsilon parameter
float epsilon;
// mu parameter
int mu;
// graph ... |
b339cb722aa663037828bc004dcd1d3dc25221ab | a88f9ad517ad4dd943507824a94c1d1d8d402f35 | /SimulationFactory.h | 05bcbd826eae7b1de29d43a302b5e2961e5f57ca | [] | no_license | szymak/TurbulentFlowInHPC_Project | b6a05559a76d39eb8c0a950d6a1c2ba775fc914c | cff1169fd52f469e0309a260e7f2385ebaca3d49 | refs/heads/master | 2021-01-10T02:47:17.805666 | 2016-01-27T13:46:10 | 2016-01-27T13:46:10 | 49,265,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | h | SimulationFactory.h | #ifndef _SIMULATION_FACTORY_H_
#define _SIMULATION_FACTORY_H_
#include "Parameters.h"
#include "Simulation.h"
#include "FlowField.h"
class SimulationFactory {
protected:
Simulation * _simulation;
FlowField *_flowField;
public:
SimulationFactory(Parameters ¶meters);
virtual ~SimulationFactory();
Simu... |
c69fdb362c531edcebca01de33dfff73099fc236 | adb0c7140f0a53f81aae6cd948975f48e91baaaa | /ABC161_200/169/B.cpp | 383289f39178a031ee005b46a05f147336bd37c9 | [] | no_license | ncyamane/atcoder | f6a7d5c8d6cee5d7f923fb41fc2b4a734230079f | 5441ac19d8a99fc17271c9889d9d813102623cbf | refs/heads/master | 2022-11-24T18:38:19.549233 | 2020-08-02T15:13:12 | 2020-08-02T15:13:12 | 259,620,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
const long long maxint = 1000000000000000000;
int main() {
int N;
cin >> N;
long long ans = 1;
for (int i = 1; i <= N; i++) {
long long tmp;
cin >> tmp;
if (tmp == 0) {
ans = 0;
break;
}
if (tmp > maxint / ans) {
ans = -1;
... |
1194f290abb6b1bca21890a7f4e15aa1b5127ccf | 22e9316d5c9f993b16fb88d13cb5486dde41fe14 | /flightTracker/node.h | 0dde2ccfe3c321cad0c17c39d816f92dae388d0e | [] | no_license | GrantAyers22/PersonalProjects | 44d7bc5d0f12d8595f35dbec322a431da34bf950 | 1da9639fa46ee60dcba6e9553db47d4bf38944b3 | refs/heads/master | 2020-07-27T04:51:55.184293 | 2020-01-13T18:21:16 | 2020-01-13T18:21:16 | 208,875,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,568 | h | node.h | #ifndef NODE_H
#define NODE_H
#include <iostream>
#include "dsstring.h"
#include "flight.h"
template<class T>
class Node {
private:
Node<T>* nextNode;
Node<T>* lastNode;
template<typename U> friend class llist;
T data;
public:
Node(){
nextNode = nullptr;
lastNode = nullptr;
}
... |
d10448e49b7fe143affdacac7025bc159ca2ef93 | 67b292a41deb5eb6f73fa455722d988e2b97b34e | /szescianrubika.h | 8e9997889f27285c3511c4e97f1224c5dbd66f46 | [] | no_license | artudeb655/rubicNside | 19134d733618c1dfa90010ef78dee6cb957c2cdb | d440f4f932dae098e666801cfd073ef0d9bbaf35 | refs/heads/main | 2023-04-22T00:11:07.130834 | 2021-05-16T18:29:22 | 2021-05-16T18:29:22 | 367,957,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,391 | h | szescianrubika.h | #ifndef kosteczka
#define kosteczka
#include <iostream>
using std::string;
class rubic
{
private:
int ***sciana;// w kolejnosci: {gora,przod,prawo,lewo,tyl,dol,} {1rzad,2rzad... n-ty rzad,} {1 element w rzedzie,2 element w rzedzie... n-ty element w rzedzie}
void wyswietlLinie(int sciana,int nrLini... |
8de6b8181583958a5363da4c514490132ee8cce4 | 54d0a5baa3f9b2ee85b6a9822a6a34cb26cbce65 | /MovieFactory.cpp | db389ba762bf7180ca3a887d95e498a3e15c0bbf | [] | no_license | oscar-gt/VideoStoreFinalProject | b7cbac1be12c1ed907614f551f18a110588e7883 | 951296795320b9823a4002fa23036aad4e9ffc56 | refs/heads/master | 2021-01-01T03:53:26.343361 | 2016-05-07T04:20:15 | 2016-05-07T04:20:15 | 58,248,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,206 | cpp | MovieFactory.cpp | /*
* MovieFactory.cpp
*
* Created on: Mar 12, 2016
* Author: Oscar
*/
// Implements moviefactory.h file
//
// The main purpose of this class is to return
// a Movie pointer with the data members filled
// in.
#include "MovieFactory.h"
#include <fstream>
#include <iostream>
#include <string>
using namespa... |
07a3dc7c159ea7e0c65c0786125998992aeb85a3 | 4c8ac4263cb05df2c7ba2abd2eacfd4640ad7ba1 | /CocosProject/Classes/Projectile.h | 8a4ad387a753d5fb45374b037bc6fa85335ce515 | [] | no_license | rbkloss/GraxaSoftware | 44ad82641a9a2623b4e1e7ffa83da34eb6ce140d | c82cd421dff37435be4bd842af62d3c746b2defb | refs/heads/master | 2016-09-06T18:38:23.824006 | 2015-06-23T02:43:08 | 2015-06-23T02:43:08 | 34,749,703 | 3 | 1 | null | 2015-06-16T20:54:02 | 2015-04-28T18:55:49 | C++ | UTF-8 | C++ | false | false | 614 | h | Projectile.h | #ifndef _GRAXA_HERO_PROJECTILE_H_
#define _GRAXA_HERO_PROJECTILE_H_
#include "cocos2d.h"
class Monster;
class HeroProjectile {
static void animate(cocos2d::Sprite* projectile, const std::string& imageName, const cocos2d::Rect& initRect, const int nStates);
static void monsterCollision(cocos2d::Sprite* sprite, st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.