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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03e36357642af7e72505fe231518df29079dad09 | cc643dc7c84e4a49a35090c6a418715fe2d92268 | /lecture/数据结构与算法练习题/ch5- 离线等价类.cpp | 880c3a5f0f2eaa04b3b144107c8d203c8ec83b69 | [] | no_license | AuBella/acm-1 | 9a0d45fd9ce43f3c1086f10f51a38332907c7250 | 6146226137d476aaceceef89d9dc53e1eca8a404 | refs/heads/master | 2023-09-01T13:37:18.097171 | 2014-05-13T12:57:52 | 2014-05-13T12:57:52 | null | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 1,620 | cpp | ch5- 离线等价类.cpp | /**************************************
* *
* └ۤ▀Á╚╝█└Ó *
* DataStructureú║StackúĘLinkedúę *
* Chain *
* *
* *
**************************************/
... |
c26b115891e77a959e6b22c9f1f58569db08b1b1 | 4b1d25c2d5f4dca3f3b4acacfd3b2f996b9dee87 | /AqlCompiler/Alias.h | 6a8da066d94350d1de535304b5097d6eb5f0f303 | [] | no_license | MchCyLh/AqlCompiler | eeced415cd479878e720269dc266b5c7dd1f26ea | c39a38289ba4bc6c0f033f42c4d5a2bbd8a92942 | refs/heads/master | 2021-01-10T16:19:56.420400 | 2015-12-31T13:56:28 | 2015-12-31T13:56:28 | 48,797,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | Alias.h | #ifndef ALIAS_H
#define ALIAS_H
#include "Stmt.h"
#include "Token.h"
class Alias :
public Stmt
{
public:
Token *id = Token::Null;
Alias() {}
void init(Token *t) { id = t; }
//static Alias *Null;
void gen() {
Id * id_name = static_cast<Id *>(id);
__alias = id_name->lexeme;
}
~Alias() {
... |
16b1658a8563b3e629278b96e9ef128dc495cadd | 09d26a821db354a052df22d6d68da522fdd30b79 | /ansys/CommonDlg.cpp | bc8804fd04c3483a8be0c1b47888140876863caf | [] | no_license | simmon2014/RuiLi | c04fd2e43933650380950111c55e188f5a021a3c | bf20d7344859ad6a1186bf1d37b804d078a6c00f | refs/heads/master | 2020-12-31T07:10:59.554489 | 2017-03-29T12:04:23 | 2017-03-29T12:09:35 | 86,577,100 | 0 | 4 | null | null | null | null | GB18030 | C++ | false | false | 5,984 | cpp | CommonDlg.cpp | // CommonDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "ansys.h"
#include "CommonDlg.h"
// CCommonDlg 对话框
IMPLEMENT_DYNAMIC(CCommonDlg, CDialog)
CCommonDlg::CCommonDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCommonDlg::IDD, pParent)
{
m_Table="NPartManageTable";
}
CCommonDlg::~CCommonDlg()
{
}
void CCommonDlg::DoD... |
e59117872e305a73223898a6c1a2aa927c5eea8d | 3fa046c6e991c12d9629b2623638fc36140e52b7 | /src/Fermbot/HeatingControl.cpp | dbb545895869dc351791b1e45f22e14fa94ab861 | [] | no_license | slobrewer/FermbotArduino | 3ae600122a37ca5b56800f39bd72a5814de9d5fd | 570b5408afc9af079e5acc638501a13855ef39d7 | refs/heads/master | 2016-09-08T00:33:10.455715 | 2012-12-17T23:41:26 | 2012-12-17T23:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | cpp | HeatingControl.cpp | /*
* HeatingControl.cpp
*
* Created on: Aug 19, 2012
* Author: dlouw
*/
#include "HeatingControl.h"
namespace Fermbot {
HeatingControl::HeatingControl(const uint8_t digitalPin)
: Control(digitalPin) {
}
HeatingControl::~HeatingControl() {
}
} /* namespace Fermbot */
|
7f2f1d53a08e7f91535640cec0c9a1fd10466224 | dae9f5aca9418e4b067a283596df6d92dc00b7db | /src/Game/UpdateTasks/CameraViewportReporter.cpp | 574952dff232feeb9335132c11c1e6b27c4ef258 | [] | no_license | ifschleife/Shoot | 0c5c52a573b331203647fa1146734dc9e318a287 | b3ffe1c700e58bbee50e4cb4e7d37159d64de538 | refs/heads/master | 2021-05-06T05:10:07.074211 | 2017-12-23T17:38:31 | 2017-12-23T17:38:31 | 115,051,427 | 0 | 0 | null | 2017-12-21T22:09:06 | 2017-12-21T22:09:05 | null | UTF-8 | C++ | false | false | 418 | cpp | CameraViewportReporter.cpp |
#include "CameraViewportReporter.h"
#include "Rendering/ICamera.h"
#include "AIKnowledge.h"
using namespace game;
CameraViewportReporter::CameraViewportReporter(const mono::ICameraPtr& camera)
: m_camera(camera)
{ }
void CameraViewportReporter::doUpdate(unsigned int delta)
{
const math::Quad& viewport = m_c... |
f92beb0e0c3501c3b86fccb79a5884225219269d | 3365ff1b3e49e2fb2c533a1d515d862f3ce6ae0d | /Bomberman Project V1.1/DX2DE/Util.cpp | d871520f6707109d82e980ad6ce6ad66e05d413c | [] | no_license | thatguyabass/Project01_Bomberman | 2cef57a08bed473828a56397af6500e139f7df6d | 08bd00e081351681e431c5f7e64c0f972a699c0a | refs/heads/master | 2021-01-19T02:11:23.223891 | 2016-09-13T02:38:53 | 2016-09-13T02:38:53 | 25,746,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,368 | cpp | Util.cpp | //---------------------------------------------------------
//Util.cpp
//---------------------------------------------------------
//
#include "Util.h"
Util::Util()
{
m_flags.back = false;
m_flags.exit = false;
}
Util::~Util()
{
}
Util::Vec2 Util::m_aspectRatio;
Util::Vec2 Util::GetAspectRatio()
{
return m_aspect... |
ac15156567fd80cc9832beca378a955736a0d847 | ed3f271599aaa73581a974649b161d7b2e30b22a | /Carving/chunk.cpp | 8633d3471bfc54dde3f31cfb3cc380386c07b215 | [
"MIT"
] | permissive | pastleo/Carving | 1009f9218f7ec529dbad9d0e621742ad80a60645 | a619f47c863a1fee44cec89c2250dd41bf6dff96 | refs/heads/master | 2021-05-29T19:43:27.076720 | 2015-06-27T08:22:12 | 2015-06-27T08:25:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,462 | cpp | chunk.cpp |
#include "stdafx.h"
chunk::chunk(void)
{
this->spots = NULL;
}
void chunk::prepare()
{
if(spots == NULL){
spots = new std::map<int,std::set<spot*>*>();
prepare(SPOT_TYPE_SIMPLE);
}
}
void chunk::prepare(int type)
{
prepare();
if(spots->count(type) == 0){
spots->emplace(type,new std::set<spot*>());
}
}
... |
3748f6583eaddff53f754ce2d9c7e3ab9e506367 | 4a8470e4cb7b1dcbbf396e6fef86cfb0c93b0f51 | /Stash/main.cpp | fe6d9c63371eed7af2a312be288f0a8dd914acb3 | [
"MIT"
] | permissive | njbuch/PiS2_Controller | 1787914744520b6a0cf14183345f27a7397520a7 | b89b7aeacea449d2ca3ae6236fe4afde01632b16 | refs/heads/master | 2021-05-10T14:38:08.180512 | 2018-05-22T21:25:42 | 2018-05-22T21:25:42 | 118,523,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,568 | cpp | main.cpp | /*
This is the rfirst example of a sketch that tries to support a handshake
between the Rpi3 and the arduino on the sleepy pi 2.
What works:
Can be deployed and starts blinking the LED
when running the rpi3 command: "i2cget -y 1 0x07" it returns an increasing number to the rpi3
when running the rpi3 c... |
e69c62af76445f222792b674ee10b6141a6996cb | 099d7747edb21625144c76675fdeaa17af1dcde2 | /CustomTreeDelegate.h | 60e04fbf561a2c01752a32796d8c97b5f69d0924 | [] | no_license | zjtdd/NavMenuTree | 765004da12a90770778ba5a6126a987d8ec3effb | 86ebffe9b912749f7de1949f9c257e46536395d6 | refs/heads/master | 2020-04-12T17:46:10.994987 | 2018-12-21T10:06:55 | 2018-12-21T10:06:55 | 162,656,631 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | h | CustomTreeDelegate.h | #ifndef CUSTOMTREEDELEGATE_H
#define CUSTOMTREEDELEGATE_H
#include "CustomTreeWidget.h"
#include <QObject>
#include <QStyledItemDelegate>
#include <QPainter>
#include <QTreeView>
class CustomTreeDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
CustomTreeDelegate(CustomTreeWidget *vie... |
e297c368ac51ed01915293b6d4f74f05cc30630f | ec585299e0ffc34e9f99bcc5be3f485c66c6820d | /include/exot/framework/interface.h | 0ff9d926483e5d6291ac075b42ce8885a52ef417 | [
"BSD-3-Clause"
] | permissive | ETHZ-TEC/exot_app_lib | 3958b938a2e80ee2e501e7099e57e18833047237 | 7330c2db9ea6da33b7532af9c3049f8b673dd117 | refs/heads/master | 2022-10-11T01:46:40.430959 | 2020-06-10T10:58:08 | 2020-06-10T10:58:08 | 272,035,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,993 | h | interface.h | // Copyright (c) 2015-2020, Swiss Federal Institute of Technology (ETH Zurich)
// 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 co... |
f153756f9ae56df9c64d8aed1050d5e2697558e5 | b1aef802c0561f2a730ac3125c55325d9c480e45 | /src/ripple/overlay/ClusterNode.h | df691038178e9bc511774ce79fff23a660bbb595 | [] | no_license | sgy-official/sgy | d3f388cefed7cf20513c14a2a333c839aa0d66c6 | 8c5c356c81b24180d8763d3bbc0763f1046871ac | refs/heads/master | 2021-05-19T07:08:54.121998 | 2020-03-31T11:08:16 | 2020-03-31T11:08:16 | 251,577,856 | 6 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,084 | h | ClusterNode.h |
#ifndef RIPPLE_APP_PEERS_CLUSTERNODESTATUS_H_INCLUDED
#define RIPPLE_APP_PEERS_CLUSTERNODESTATUS_H_INCLUDED
#include <ripple/basics/chrono.h>
#include <ripple/protocol/PublicKey.h>
#include <cstdint>
#include <string>
namespace ripple {
class ClusterNode
{
public:
ClusterNode() = delete;
ClusterNode(
... |
58c4fb129efef62ad934f35cb222ac996438c76c | 29b2595ff5db39f1d905a5a871e03c5bd555e27f | /ChatClient/mainwindow.cpp | e387761e45015d6ef64bec4e65813eede1061b5a | [] | no_license | Zhmoll/ZhmollChatRoom-IOCP | 8e3301695e207d07b0963401498c4777c074d261 | 0e4eb431accd94dff2189373ce44fd1debdcca3e | refs/heads/master | 2021-01-23T11:01:10.182845 | 2017-06-02T02:04:49 | 2017-06-02T02:04:49 | 93,116,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,069 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
WSADATA wsaData;
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0)
ErrorHandling("WSAStartup() error!");
sock = socket(AF_INET, SOC... |
41c3c9f706915e0ba382b646dc85bacf8e1fe78a | a92820fc61023ab4360e040cf6532d89c311ea3a | /Disparo.cpp | aad021ec71b5d116ac6db3ebd66715f67b0fdd01 | [] | no_license | JiangRosete/Trabajo | 725c1f4700b7fe0ba29bbe5b324e4df91f94281c | 513f6665be49b3b9f2870aa4913fec22aad3785f | refs/heads/master | 2020-03-17T06:35:06.440008 | 2018-05-14T13:00:43 | 2018-05-14T13:00:43 | 133,361,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,302 | cpp | Disparo.cpp |
#include "Disparo.h"
#include "glut.h"
#include "Protagonista.h"
Protagonista prota;
Disparo::Disparo()
{
//Cuando se crea el objeto se inicializa el origen con la posicion actual del protagonista
origen.x = prota.posicion.x;
origen.y = prota.posicion.y;
origen.z = prota.posicion.z;
}
Disparo::~Disparo()
{
}
vo... |
bb65e27c237cebfd93b7548779753a330d9423a3 | cfa3cd393a4583e3ea5cf21d0932cec015bf5cae | /ComputerCollection.cpp | 9fd23b7806a1e557fc8eda3961388bc0c557e20c | [] | no_license | Sapio-S/exercise | c1f9946ae78ce16391e3f600fcd64dfefb57a4b8 | 93ab66d2d0b27527ee2221f4bafc7676e58320c6 | refs/heads/master | 2021-08-18T03:05:55.250626 | 2019-10-29T02:31:07 | 2019-10-29T02:31:07 | 218,184,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | ComputerCollection.cpp | //
// ComputerCollection.cpp
// pr21
//
// Created by yuqing on 2019/3/17.
// Copyright © 2019 yuqing. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include "ComputerCollection.h"
using namespace std;
istream& operator>> (istream& in, ComputerCollection& cc) {
int i = cc.totalnum;
in >> ... |
ff27685dfe5fdc5dae59d221b3e71a52be08db22 | 8d0f764da10bc17675f82bde3d1801de4c2c9ff7 | /Codeforces gym solutions/ACM International Collegiate Programming Contest, Amman Collegiate Programming Contest (2018)/A.cpp | 005b5e54a974e57f28916debb565e41846691417 | [] | no_license | AbdelrahmanElhawary/CompetitiveProgramming | f24f675ced34d75a383db03a9ffef59373b23c31 | 791ed4fcdefde421902f3b512414c1a49fdc21cd | refs/heads/master | 2021-05-09T05:00:41.380756 | 2020-08-19T09:57:32 | 2020-08-19T09:57:32 | 119,295,405 | 1 | 3 | null | 2020-10-01T20:12:38 | 2018-01-28T20:33:41 | C++ | UTF-8 | C++ | false | false | 2,491 | cpp | A.cpp | #ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
#include<iostream>
#include<map>
#include<cmath>
#include<algorithm>
#include<string>
#include<set>
#include<sstream>
#include<vector>
#include<string.h>
#include<queue>
#include<list>
#include<iterator>
#include<functional>
#include<iomanip>
#include<bitset>
#inc... |
5808cf3af672fc78352383370e7487ea35caf252 | 5008ac58b431582c26865890cd79e20a5e9c0fd0 | /DiamondGraphicsEngine/inc/core/Object.h | f2390fffd50d32308816056e386ef9f4986a17c6 | [] | no_license | levey-lee/GraphicsEngine | 3848a5a1611039efcffbc0fe562743156ace1fff | ceb40f675b4cb8caa8670bc3bf66dd71e3d35263 | refs/heads/master | 2021-05-10T12:26:03.630000 | 2018-07-28T20:29:46 | 2018-07-28T20:29:46 | 118,441,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,316 | h | Object.h | #pragma once
#include "core/ComponentPool.h"
#include "core/BoundingVolume.h"
#include "graphics/ShaderManager.h"
class ComponentEditorInterface;
namespace Graphics {
enum class ShaderType;
class GraphicsEngine;
}
struct HierarchicalObjectHandlerNode;
class Object;
class ComponentInterface;
using RenderObjec... |
2bf601f4abea6ad0f14fa43e9b4debc2133da8d9 | 85455876309135778cba6bbf16933ca514f457f8 | /16900/16929.cpp | 37ed0d33ff8e2f5efd61b2b726300768c0ddfcdb | [] | no_license | kks227/BOJ | 679598042f5d5b9c3cb5285f593231a4cd508196 | 727a5d5def7dbbc937bd39713f9c6c96b083ab59 | refs/heads/master | 2020-04-12T06:42:59.890166 | 2020-03-09T14:30:54 | 2020-03-09T14:30:54 | 64,221,108 | 83 | 19 | null | null | null | null | UTF-8 | C++ | false | false | 1,186 | cpp | 16929.cpp | #include <cstdio>
#include <vector>
using namespace std;
const int roff[4] = {-1, 1, 0, 0};
const int coff[4] = {0, 0, -1, 1};
int R, C;
vector<vector<char>> map;
vector<vector<bool>> visited, finished;
bool dfs(int r, int c, int pr = -1, int pc = -1){
visited[r][c] = true;
bool result = false;
for(int d ... |
4dbb19c25fe6b2318402cb565124531560e801a9 | c1b20b52514a88c4924df2ae7c3ae9378f79b43a | /1A.TheaterSquare.cpp | bff1bea37a0d4c70f9f4a8bf521735fab8cc7761 | [] | no_license | Shreyash41/CodeForces | 9d8ae67577a30f284d31af448673ff0823b53fa9 | 66f9ecabf1ea90868bc0412f9a864a259610700a | refs/heads/master | 2022-12-07T05:37:21.803572 | 2020-09-02T07:57:46 | 2020-09-02T07:57:46 | 257,672,485 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | 1A.TheaterSquare.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
double n,m,a;
cin>>n>>m>>a;
long long int tot = (long long)ceil(n/a) * (long long)ceil(m/a);
cout<<tot<<"\n";
return 0;
}
/*---------------------... |
b006e596e5e9203cbad696cce71a8396a4568db9 | 0744dcc5394cebf57ebcba343747af6871b67017 | /external/libcxx-test/support/experimental_any_helpers.h | 6b84a9877d75052791f0f4cef922e3fb915ed1d1 | [
"Apache-2.0",
"MIT"
] | permissive | Samsung/TizenRT | 96abf62f1853f61fcf91ff14671a5e0c6ca48fdb | 1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686 | refs/heads/master | 2023-08-31T08:59:33.327998 | 2023-08-08T06:09:20 | 2023-08-31T04:38:20 | 82,517,252 | 590 | 719 | Apache-2.0 | 2023-09-14T06:54:49 | 2017-02-20T04:38:30 | C | UTF-8 | C++ | false | false | 8,553 | h | experimental_any_helpers.h | /****************************************************************************
*
* Copyright 2018 Samsung Electronics 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... |
375a75ad35f16f2762e1279fbdc73adced8d8a04 | db2d7c18a83d367322ea313123bc07cae2c05fa6 | /Platform Specific/Interview_Bits/Math/Pairwise_Hammingdistance.cpp | bfade25155628b8a43e4871076f4b1932849430c | [] | no_license | SARTHAK-27/Ultimate-DSA | 4f983f9cca3666b3b7f4dfec6d2cc7324e448562 | 6acb7794e91aebd0d22d0d5597044979c095b9c3 | refs/heads/main | 2023-08-24T23:50:01.324849 | 2021-09-20T04:02:19 | 2021-09-20T04:02:19 | 359,049,907 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | Pairwise_Hammingdistance.cpp | int Solution::hammingDistance(const vector<int> &A)
{
long ans = 0, n = A.size();
for (int i = 0; i < 32; i++)
{
int c = 0;
for (int j = 0; j < n; j++)
{
if ((A[j] & (1 << i)))
{
c++;
}
}
ans = ans + (c * (n - c) * 2... |
dd84a242e6416757ecf42e171b7eaaa6a9229bec | 40f73a14d163a8cc33dfde92f1109743d9ecdbe2 | /Letter_tilepossibilities_Backtracking.cpp | 25c0e90233241020607e1c107cc0b2a57d16eb38 | [] | no_license | pravirtual/Leetcode | dc83d09f6fc15f24e05e8fca7546e2f003f45c37 | 7f754f38e507b7f4aaeb267b05873437b1ca5bcf | refs/heads/master | 2023-08-28T07:52:59.019305 | 2021-10-29T14:21:01 | 2021-10-29T14:21:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | Letter_tilepossibilities_Backtracking.cpp | class Solution {
vector<string> ss;
public:
int numTilePossibilities(string tiles)
{
vector<bool> visited(tiles.size());
unordered_set<string> un;
visited={false};
string a;
backtrack(a,tiles,visited,un);
return un.size();
}
void backtrack(st... |
46da87d15db637814833a50cf4e2615767f0b305 | e162982fa4a413d89f96edd6dd07a3ec44432ba0 | /Baekjoon/1000/1717-집합의 표현.cpp | c91b51433d222465309b848966df81d08ba716f4 | [] | no_license | Bucoco/Baekjoon | 3a70b867a8577de62a1486187bda2b6e5ce77a9b | 055ff80540c8da3c8c395f72461c061f6d676969 | refs/heads/master | 2023-06-19T21:21:16.420591 | 2021-07-21T06:44:12 | 2021-07-21T06:44:12 | 349,312,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cpp | 1717-집합의 표현.cpp | #include <iostream>
using namespace std;
int parent[1000010] = {};
int find(int u) {
if (u == parent[u])
return u;
return parent[u] = find(parent[u]);
}
void merge(int u, int v) {
u = find(u);
v = find(v);
if (u == v)
return;
parent[u] = v;
}
int main() {
cin.tie(0); cout.tie(0);
ios::sync_with_stdio(f... |
3d41c46b8db6752025db5db7a607d2869795d74b | 473495f8d029e089dbc8f64d1abaa667d3f9761f | /IdGenerator.h | 2b8dc81ffd03d92830041d6ee9aafdd685cd902d | [] | no_license | uahmad565/University-Management-System-Object-Oriented-Programming- | d7b46178a07d0cb31693f93bc45395b38a621405 | d8073b0ebdfd8d91489485def926fc045420a5cb | refs/heads/main | 2023-06-18T05:24:13.686267 | 2021-07-16T07:32:40 | 2021-07-16T07:32:40 | 386,526,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92 | h | IdGenerator.h | #pragma once
class IdGenerator
{
private:
int next = 0;
public:
int getNextId();
}; |
f9106745b8bd1357642e56d629a7b8fce79a68dc | 4be6611431e4ff6d53ad00df164646c7bce1c6b2 | /nowcoder/Wannafly挑战赛6/B-比赛/main.cpp | f608262eb8db6df3cbf30a093daec6d866cad822 | [] | 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 | 792 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long double LD;
LD a[12], b[12], c[12], nums[12];
int main() {
// freopen("test.txt", "r", stdin);
for (int i = 0; i < 12; i++) cin >> a[i];
for (int i = 0; i < 12; i++) cin >> b[i];
for (int i = 0; i < 12; i++) cin >... |
14f62612ee28b2441d1c887fc5a8e5c2ad0391ab | d49811ff011841c524f9ffef7ec82bb13d624097 | /src/cpp/ga/ga.h | 07b1181b071e4591dac2dff358c002d21a651d51 | [
"MIT"
] | permissive | Aktyn/Genetic-Algorithm | e904d05dce86252fc6bdbcdac7ecca0bd182194e | c3ca1e1a51606f7b22266287e02a3021b6ac8430 | refs/heads/master | 2023-07-08T10:58:28.358713 | 2023-06-28T09:50:42 | 2023-06-28T09:50:42 | 177,880,125 | 3 | 0 | MIT | 2023-01-07T04:11:50 | 2019-03-26T22:49:09 | C++ | UTF-8 | C++ | false | false | 1,499 | h | ga.h | #ifndef GENETIC_ALGORITHM_HPP
#define GENETIC_ALGORITHM_HPP
#include "heap_population.h"
//defines used in child classes
#define DEFAULT_MUTATION_CHANCE 0.1f
#define DEFAULT_MUTATION_SCALE 0.5f
#define DEFAULT_DNA_SPLITS 20//2
#define DEFAULT_DNA_TWIST_CHANCE 0.5f
#define DEFAULT_PARENT_FITNESS_SCALE 2.f
#define DEFA... |
43036e5016be41d7efa8b37ddbda7496f0bcca7a | 6ff636e5d12437d92f00184a9b2ba3ba1f4e5ad4 | /1009.cpp | 3fa6bf6883f4456396ec01c8141916763db71785 | [] | no_license | HeathLee/Soj | a95b1ac7d7c483ec67031d67d456149e4a19cea2 | 5390417e404f74e3ccb917ee7aebd1b975933026 | refs/heads/master | 2021-01-10T17:47:33.699661 | 2015-11-17T04:22:48 | 2015-11-17T04:22:48 | 43,541,709 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | 1009.cpp | //
// Created by heath on 15-10-2.
//
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
vector<long long> result;
void get_prime(long long input) {
long long upper = pow(input, 0.5);
bool can_divided = false;
for (int i = 2; i <= upper; ++i) {
if (input % i == 0) {
... |
68a0d025727d5170a644f886bc2184da96933375 | 10602f705401b1b7365b9af3d579a95e11db37a7 | /SimsTesting_03/SimsTesting_03/Brain.h | 6c81c806c58ad83b2aa3898d6ef1200b8d5d136e | [] | no_license | conor-flynn/Evolution | 85d4552788b2f7422aae7f57b241a95c32bad721 | e01302852c2f4227241460b6c382c79ed3b7d103 | refs/heads/master | 2020-12-24T06:49:52.430892 | 2016-09-07T01:39:12 | 2016-09-07T01:39:12 | 58,673,100 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | h | Brain.h | #ifndef BRAIN_H
#define BRAIN_H
#include "sources.h"
#include "Neuron.h"
#include "Axon.h"
class Brain {
public:
Brain();
Brain(vector<int> info);
//Brain(int inputs, int layers, int neuronsPer, int outputs);
Brain(Brain* source);
vector<float> processResults;
vector<vector<Neuron*>> neurons;
void process(v... |
3de42ad646f09fa33bb971129833c0b7c32b04eb | f4e1ca72f15f3ee1ff818c3d6657a54871800a78 | /10226 Hardwood Species.cpp | 553b7cbbf0b9f22d9e9a5fa993643356d2352e2b | [] | no_license | ZzzandyzzZ/Problemas-UVA | 4d26fd372f8befff8ad12344d0a2d081c8e0c69f | bbcf0c711be7954ee054cf27e3771467a879ec34 | refs/heads/master | 2020-08-19T03:35:53.835473 | 2019-10-17T19:55:55 | 2019-10-17T19:55:55 | 215,872,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | 10226 Hardwood Species.cpp | #include <iostream>
#include <string>
#include <map>
#include <cstdio>
#include <iomanip>
using namespace std;
void mostrar(map<string,double> a,int total){
for(map<string,double>::const_iterator it = a.begin();it != a.end(); ++it){
printf("%s %.4lf\n", (*it).first.data(),(double) (*it).second / (double) ... |
fa793dcc5ff5777d0fa7aaad3a9460ca1fceaf3c | dff4adc719fd9a7392f52781792a3d32732e2065 | /Simple Text RPG/Simple Text RPG/Warrior.h | 6e68190a80ecdfc5907114f630d3a4d3b3a07f25 | [] | no_license | Chipp93/Simple-Text-RPG | 7ad8ffa10fa72247222f5c303e552b29df0b3aa6 | e53c9f3d5c362af4c6cc1326ba8a558bd78786b9 | refs/heads/master | 2021-01-17T17:29:42.267773 | 2016-07-17T19:48:12 | 2016-07-17T19:48:12 | 63,549,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 228 | h | Warrior.h | #pragma once
#include "Player.h"
class Warrior :
public Player
{
public:
Warrior();
~Warrior();
float getRage();
void setRage(float newRage);
float getMaxRage();
void setMaxRage(float newMaxRage);
};
|
48b5f9601b8b2654eb6134271d7debf1b09b9e2b | 4faeb6aec30e88ea49662b193be2149fd1ad8ac4 | /week3/nt591_hw3_q3.cpp | 2ad441e469d9e633afb55b43a08c4ca217a3f162 | [] | no_license | nt591/nyu-bridge-notes | a87671df83565d34d799907e826c70bc409e81fa | c6935836e38a9b263238f0527e03eb425adef334 | refs/heads/master | 2022-11-29T17:06:21.357992 | 2020-08-07T16:19:48 | 2020-08-07T16:19:48 | 278,675,536 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | nt591_hw3_q3.cpp | /*
* Name: Nikhil Thomas
* NetID: nt591
* Problem: Homework 3 Question 3
* Compiled with: clang++ --std=c++14
*/
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, b, c;
cout << "Please enter value of a: ";
cin >> a;
cout << "Please enter value of b: ";
cin >> b;
cout <<... |
e24e8914a04ad2cf0274f5a0e238e852b23e7941 | 02d2343755b3172278bbe16de8e783459550e630 | /arc035/b/main.cpp | f187209244488bb976727e77ead34d6f7277cc99 | [] | no_license | naototazumi/AtCoder | 415f2860f65caef7d30d26c4599339ddbe596213 | ede6d13db5d92778237f3481b9cd313465f31047 | refs/heads/master | 2022-04-14T11:33:47.069504 | 2020-04-20T09:29:04 | 2020-04-20T09:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,062 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define INF 99999999
#define INF_LL 1LL << 60
#define MOD (ll)1000000007
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rrep(i, n) for(int i = (int)(n); i >= 0; i--)
#define REP(i, a, n) for(int i = a; i < (int)(n); i++)
#define RREP(i, a, ... |
743fd4ccb5ee0e9820c13bd21af1675639d2463e | 751a397a1e64d20ad2e669b67a5f05e036cf0b29 | /MyGame/Asset/FrameWork/Component/Collision/Mesh/CollisionMesh.h | 10020e1e1cedaf99c2841ec3485f2afc9bb988ac | [] | no_license | YanaseTaiho/LegendOfRabbit | d81e8775fcd08b36a988981b2ca4df49a19e87a1 | 76fc73c50ceedbcaa226e48e1bfa935c2aeb8b67 | refs/heads/master | 2020-12-19T20:33:13.542843 | 2020-03-08T21:18:54 | 2020-03-08T21:18:54 | 235,841,122 | 0 | 0 | null | 2020-02-21T22:25:17 | 2020-01-23T16:52:32 | C++ | UTF-8 | C++ | false | false | 1,299 | h | CollisionMesh.h | #ifndef _COLLISIONMESH_H_
#define _COLLISIONMESH_H_
#include "../Collision.h"
#include "CollisionMeshInfo.h"
namespace FrameWork
{
class CollisionMesh : public Collision
{
private:
friend cereal::access;
template <typename Archive>
void save(Archive & archive) const
{
archive(cereal::make_nvp("Collision... |
94893ea1e3d8e1eb6aca978e7cd3f0d07d98defd | 511f58bc46be60a0215eb46335a783585701c07a | /gpa1.cpp | b19fb60279dafc2d19e69755e2fee75174efa3e5 | [] | no_license | sagar-massand/spoj1 | 6ee6c7b93ba4873dd2a0b43c107f081a3fb69879 | 56ceac968afc318854ceec4c22267fa64d2c72a8 | refs/heads/master | 2016-09-06T09:41:04.540897 | 2013-11-29T12:38:20 | 2013-11-29T12:38:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,917 | cpp | gpa1.cpp | #include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<algorithm>
#include<string>
#include<math.h>
#include<queue>
#include<vector>
#include<stack>
#include<set>
#include<time.h>
using namespace std;
#define FOR(i,n) for(i=0;i<n;i++)
#define pi(n) printf("%d\n",n);
#define pl(n) printf("%lld\n",n);
#de... |
2a178cbf4cd1a02456af40ba2cfd4c180d60598f | c5b583438a0219a74c271237f24a3bad18bc2519 | /problems/poj1417.cpp | e9a22962513f7670b141dfac63df05c12aa0ed06 | [] | no_license | gaodechen/OI_History | 7b857cda868b5881735431a41de6fb42ea68b19f | 5abf087de374cd9866ec7b6902f3a2bae870bdd9 | refs/heads/master | 2022-04-22T19:27:15.534325 | 2020-04-23T16:36:33 | 2020-04-23T16:36:33 | 258,250,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,612 | cpp | poj1417.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int N = 6e2 + 5;
bool ans[N][2];
int c, n, p1, p2, ind;
short d[N][N], pre[N], tmp[N][N], cnt[N][2], mark[N], rank[N];
int Find( int u )
{
if( u != pre[u] )
{
int t = pre[u];
... |
d6245cd21e53ae141da23b067adf82dc30ac2a22 | c5a2d2c6044cd41fcb0a4da261142c7ec805a5dc | /test/boost_ext/TupleComparison.hpp | e09d89d4d3f868c7d92cbffb6d64a9606a537a66 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | arborx/ArborX | 008cca7c559b7ebb17355e8144d60ac5ce78269d | 1c6bf64e419177e4934daf26bf640c96e05ceb91 | refs/heads/master | 2023-08-30T03:08:07.511532 | 2023-08-30T03:05:50 | 2023-08-30T03:05:50 | 180,446,569 | 142 | 29 | BSD-3-Clause | 2023-09-11T20:58:41 | 2019-04-09T20:44:44 | C++ | UTF-8 | C++ | false | false | 1,923 | hpp | TupleComparison.hpp | /****************************************************************************
* Copyright (c) 2017-2022 by the ArborX authors *
* All rights reserved. *
* *
* This ... |
49f57a606bc0e9e7f72a826d294bfa79c61231c2 | 09d1138225f295ec2e5f3e700b44acedcf73f383 | /Remoting/ClientServerStream/vtkClientServerInterpreter.h | d5d92151d93f1962cb379af3eea28fd969af1859 | [
"BSD-3-Clause"
] | permissive | nagyist/ParaView | e86d1ed88a805aecb13f707684103e43d5f6b09f | 6810d701c44b2097baace5ad2c05f81c6d0fd310 | refs/heads/master | 2023-09-04T07:34:57.251637 | 2023-09-03T00:34:36 | 2023-09-03T00:34:57 | 85,244,343 | 0 | 0 | BSD-3-Clause | 2023-09-11T15:57:25 | 2017-03-16T21:44:59 | C++ | UTF-8 | C++ | false | false | 6,499 | h | vtkClientServerInterpreter.h | // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-License-Identifier: BSD-3-Clause
/**
* @class vtkClientServerInterpreter
* @brief Run-time VTK interpreter.
*
* vtkClientServerInterpreter will process messages stored in a
* vtkClientServerStream. This allows run-time creation and execution
* of ... |
e5d9c383e51b04901fd046f974e859893e5efb95 | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/autodoc/source/parser_i/idl/pe_selem.cxx | bc00d78a4187ea0858da1bf587cbddce91eb751b | [
"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 | 4,701 | cxx | pe_selem.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 y... |
400d62113b6c088501195f40e96be1c7b9173960 | 6fbe2fc9b3455cb1c1c74badfa6e2afb9d859fde | /src/ca-sandbox/files-loaded-state.cpp | 27a53351cddb8041023326adaa06aeffe7fb47c7 | [] | no_license | olls/ca-sandbox | 62001f2be9ef3afcaa6b95f8a3442939c59f8796 | b5f68c4da383a25e0547e0e9651f84010448e70e | refs/heads/master | 2018-12-09T09:57:07.917611 | 2018-08-27T19:44:55 | 2018-08-27T19:44:55 | 107,127,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | cpp | files-loaded-state.cpp | #include "ca-sandbox/files-loaded-state.h"
#include "engine/my-array.h"
#include "engine/text.h"
void
flag_load_rule_file(FilesLoadedState *files_loaded_state)
{
files_loaded_state->load_rule_file = true;
}
void
flag_load_cells_file(FilesLoadedState *files_loaded_state)
{
if (!files_loaded_state->rule_file_loa... |
eaa90742f109fa614716b3bf0488448703e4acf5 | 690eaa702126003f1548501b348963b956409648 | /Lesson4/Lesson4_V3/Lesson4_V3.ino | a78fd3beceba0f9738da550b5059fe16b70ea8f1 | [] | no_license | BrandedNomad/ArduinoEducation | 58e9bcd94ee421972c28f8cacf9b3264c67cc5ff | f3e8db8b921de29db6bf92256dc5f9bf268c7815 | refs/heads/master | 2023-02-03T22:54:50.638269 | 2020-12-15T07:46:29 | 2020-12-15T07:46:29 | 320,188,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | ino | Lesson4_V3.ino |
int readValue = 0;
int writeValue = 0;
void setup() {
// put your setup code here, to run once:
pinMode(11,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
readValue = analogRead(A0);
writeValue = readValue/4;
if(r... |
beab1d5f6cd3d0f1b30293abc74b3b30525a7f83 | 29e991d810726db111e426545d48dcff0bb8f911 | /Lab 4/Utils.h | 065d76251074cb6bf05756b02585a70d60eb344a | [] | no_license | ZachMassia/GAME303 | 1ec83fc2547c7f3ed0566dc506ba18efdb54ef91 | 85c7d6598d07943e6ddc0ee4d468e110648fb74e | refs/heads/master | 2020-04-17T21:47:38.261854 | 2013-11-11T17:06:48 | 2013-11-11T17:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | h | Utils.h | #pragma once
#include <string>
#pragma region Forward Declerations
namespace Ogre {
class Vector3;
class Radian;
class Ray;
}
#pragma region
namespace Lab4 {
class Utils
{
private:
Utils() {}
public:
static void clampVector(Ogre::Vector3& v, const Ogre::Vector3& min, const Ogre::Vector3& max);
static Ogre::V... |
1538e1a7232e52eac9e1eed7a6f07172d677a6c9 | ff3b513ffe0925bba25cf0af4c62ea846388339b | /VereEngine/GameDirectionalLight.h | ca707f267d55554927e1f3204c2365a37d2a7e52 | [
"Zlib",
"MIT"
] | permissive | VereWolf/VereEngine | 9b311796fbd2c4919040c8ce93a1272a42713e80 | 6b5453554cef1ef5d5dbf58206806198a3beec35 | refs/heads/master | 2021-07-18T13:32:31.815101 | 2017-12-24T21:15:08 | 2017-12-24T21:15:08 | 94,897,016 | 4 | 1 | null | 2017-11-22T13:09:45 | 2017-06-20T13:55:34 | C++ | UTF-8 | C++ | false | false | 482 | h | GameDirectionalLight.h | #pragma once
#include "pch.h"
class GameDirectionalLight : public GameBaseObject
{
public:
GameDirectionalLight() {}
~GameDirectionalLight() { ReleaseDirectionalLight(); }
void SetDirectionalLight(DirectionalLight *L) { m_gameDirectionalLight = L; }
DirectionalLight* GetDirectionalLight() { return m_g... |
346e7632d82311362752e89dbc93379efe514f12 | 245132e6f263334312b633dc239710b24e0a7aae | /nvmain/Decoders/BufferDecoder/BufferDecoder.cpp | 7caf3b4def9f72144c10a1c16646a09ba7fa53bc | [] | no_license | xiaoyuanW/hybrid-main-memory | 82daf5f7a24155e3b7bbc70999203f74fcf39c87 | 9ab911cc8d56e55398e746a4c8c060c9e8b10165 | refs/heads/master | 2021-01-10T01:19:30.210631 | 2016-01-05T02:51:33 | 2016-01-05T02:51:33 | 48,995,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,182 | cpp | BufferDecoder.cpp | /**
* created on 2015/5/29
**/
#include "Decoders/BufferDecoder/BufferDecoder.h"
using namespace NVM;
BufferDecoder::BufferDecoder()
{
addr_width = 0;
addr_mask = 0;
max_addr = 0;
}
BufferDecoder::~BufferDecoder()
{
}
void BufferDecoder::Translate(uint64_t address, uint64_t *row, uint64_t *col, uint64_t *ba... |
64b18dd5fbc65a68fe1f2b07a2bf1318c5b2204b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/C++/Niak/A.cpp | 0bc095e93e2efe8b2e5f244eb0fc7ca3b240e82f | [] | 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 | 740 | cpp | A.cpp | #include <iostream>
using namespace std;
#define LMAX 1000001
#define ISVOY(C) ((C)=='a' || (C)=='e' || (C)=='i' || (C)=='o' || (C)=='u')
typedef int ent;
ent maxfrom[LMAX];
string mot;
ent cpt;
ent maxuntil;
int main() {
int T,n;
cin >> T;
for (int t=1; t<=T; ++t) {
cin >> mot >> n;
maxuntil = 0;
... |
3b787bc7225529f6ecbcd9fde1f2e7d779977970 | b6ae8438870e1f3c85825f8c60fb58d0da7daff6 | /CubZHoloLensClient/3D/Objects/Mesh/2DFormes/ColoredRectangle.cpp | 3c6f27d81424a7d30f7b85b83f4903035bb01315 | [
"MIT"
] | permissive | Oxydros/CubZHoloLensClient | 3d138c17258e4741dd43e7b811664b76403f4cc4 | badb069dd38c0cdef169b49eaf6412ceda6e34c1 | refs/heads/master | 2020-04-29T11:38:24.279041 | 2019-03-17T13:50:52 | 2019-03-17T13:50:52 | 176,105,890 | 0 | 0 | null | 2019-03-17T13:43:05 | 2019-03-17T13:34:45 | C++ | UTF-8 | C++ | false | false | 2,208 | cpp | ColoredRectangle.cpp | #include "pch.h"
#include "3D\Scene\HolographicScene.h"
#include "3D\Utility\DirectXHelper.h"
#include "3D\Objects\Mesh\2DFormes\ColoredRectangle.h"
using namespace HoloLensClient;
using namespace DirectX;
using namespace Windows::Foundation::Numerics;
ColoredRectangle::ColoredRectangle(std::shared_ptr<DX::DeviceRes... |
9dc489f1285157a0bd1ae830a39cb565dc0dad47 | fd9589bbf8b31bffce62be5d7da4cb3f10352f25 | /Sandbox/threadTest/main.cpp | dab838d23d2dce5041d7070db08a6685fdd6674e | [] | no_license | IvanBogdanyuk/RoboCP | c0d6aa753312a0eced5e93638ca5c8a1b8be6c5a | 71b46c7d1e3abe40ba98f4687c3a2a72d2b474e4 | refs/heads/master | 2016-08-12T21:04:37.193941 | 2016-03-18T13:52:39 | 2016-03-18T13:52:39 | 8,507,023 | 1 | 9 | null | 2016-03-18T13:53:08 | 2013-03-01T17:57:50 | C | UTF-8 | C++ | false | false | 569 | cpp | main.cpp | #include <iostream>
#include <vector>
#include "jbuffer_test.h"
#include "JoysticThreads.h"
#include <QtCore\qthread.h>
#include <SDL.h>
#include <QtCore/QDebug>
#undef main
using namespace std;
int main()
{
RealJoystick* joystick = new RealJoystick();
JoystickBuffer* buffer = new JoystickBuffer();
MockRobotLin... |
f60c75161030785c34b562e6df5128e07bd6ee51 | 4610baf9a7e81cad6e52fe49289a5f234861732b | /libraries/display/src/display.cpp | 82e4fbded3d93f612656206d4e60720840ab854f | [] | no_license | kuasha/stanley | 07f924f6ff61413f5baabd5b6605d4289e93c68d | b6b6d3a9efd4611258b2a6337ef25007f406bd80 | refs/heads/master | 2021-01-19T00:57:09.752337 | 2016-08-15T02:36:18 | 2016-08-15T02:36:18 | 65,698,509 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,648 | cpp | display.cpp | /********************************************************
Stanford Driving Software
Copyright (c) 2011 Stanford University
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... |
53cbb149ee5fe6aa73693b4b15dc4c82d4e7f5a1 | e315bb51eb5d5c24023ebd5f9bcea15a25e2fec6 | /main.cpp | ef2a02e878e29d5378ed18623909ccfe2fa0f5e2 | [
"MIT"
] | permissive | deqyra/PicrossEngine | 5327f77856a856a39da19856b126df3f626ca54f | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | refs/heads/master | 2020-08-23T07:50:26.002568 | 2020-06-11T21:03:09 | 2020-06-11T21:03:09 | 216,574,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,389 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <memory>
#include "tools/cli/cli_menu.hpp"
#include "tools/cli/cli_command.hpp"
#include "tools/cli/command_sequence.hpp"
#include "tools/cli/menu_command.hpp"
#include "picross_cli/picross_cli_state.hpp"
#include "picross_cli/cli_create_grid_command.hpp"
#inclu... |
1cd0ac8b585e10465a9cb24d9bb9bfc7499e9d9b | d64bb70a14246e8da868887a67b8a45af061745c | /BuildMngtServices.h | 28d45e9f74bc60f6a15c5b8ab855cb64628da81a | [] | no_license | rcoscali/cpad_tool | 176fcc20005bff1dcac6045f539abe96ff72602a | 4addc1223b32068d72ca1e4d2df21d5b098f9945 | refs/heads/master | 2021-03-22T04:52:28.258861 | 2017-06-08T08:51:02 | 2017-06-08T08:51:02 | 85,364,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,634 | h | BuildMngtServices.h | //
// Copyright 2017, Google Inc.
//
#ifndef __BUILDMNGT_SERVICES_H_
#define __BUILDMNGT_SERVICES_H_
#include <grpc/grpc.h>
#include <grpc++/server.h>
#include <grpc++/server_builder.h>
#include <grpc++/server_context.h>
#include <grpc++/security/server_credentials.h>
#include "BuildMngtMsg.h"
#include "build_mngt.g... |
167cab73cb1b0a1533526f9c2ab7987c98931952 | cb0f510888d4d80c8fe16c22a0f40787677abfe0 | /usar_joy/src/UsarJoy.cpp | 22703c6f6a6563d7c4b4ace7a272ac418d5eeada | [
"MIT"
] | permissive | DeepBlue14/usar_system | 89f4fb384c3fb41c3fefb9fe0eb339eb011c267f | a1b3d78a65f064be897f75dfc5f4dad4214f9d74 | refs/heads/master | 2021-01-17T21:03:37.653042 | 2017-11-16T05:21:50 | 2017-11-16T05:21:50 | 61,601,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,925 | cpp | UsarJoy.cpp | /*
* Copyright (C) 2016 James T. Kuczynski
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "../include/usar_joy/UsarJoy.h"
UsarJoy::UsarJoy()
{
joyToVelScaler = 0.5;
ros::NodeHandle nh;
Subscriber sub = nh.subscri... |
44001238c432ce67b92600ae860d5ae5d88b0c37 | 4e49d43e75ab8e495f0c3a4fbf621ac5def67fee | /compiler/declaration.hh | ff7d4e91f29da3c4732de787fd84af430f1bb36c | [] | no_license | elacor/Flaner | fd6dabb2819f3a9de52cee9649c85dc3996537d2 | dd36b5a73f1f7bbf4c022c28552a983b9c87138b | refs/heads/master | 2020-06-01T07:06:32.043320 | 2019-06-06T13:35:24 | 2019-06-06T13:35:24 | 190,691,884 | 1 | 0 | null | 2019-06-07T05:18:17 | 2019-06-07T05:18:15 | null | UTF-8 | C++ | false | false | 796 | hh | declaration.hh | #ifndef _FLANER_COMPILER_DECLARATION_HH_
#define _FLANER_COMPILER_DECLARATION_HH_
#include <global.hh>
#include <token.hh>
#include <statement.hh>
#include <string>
namespace Flaner
{
namespace Compiler
{
namespace AST
{
class Identifier
{
public:
std::string name;
Identif... |
338c19aac23e4f2a955a4f4ab88adf884170703f | edb4f249883679792e689eea9fcf969f331c28ba | /spoj/3928_MDIGITS/P3928_cjtoribio.cpp | 6d71efd48e17d8c091c4b434a477770ca02393ba | [] | no_license | pavelsimo/ProgrammingContest | 2845bddc2a61444bf2c667aa5f77e34f7a324ebc | a2c52be868bcd480a682b872fed85b344731497b | refs/heads/master | 2021-01-25T03:48:05.415007 | 2017-11-11T14:39:51 | 2017-11-11T14:39:51 | 25,308,102 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,077 | cpp | P3928_cjtoribio.cpp | const char Directory[300] = "/Users/carlosjosetoribio/NetBeansProjects/Run/dist/Release/GNU-MacOSX/run";
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <cmath>
using namespace std;
typedef long long Long;
typedef vector<Long> VL;
VL calc(L... |
7a3b5062762dc681bdb55f1f0b724ffd295868b4 | 5d0ddbd6f42843ded4d5ba18966dc130725607d2 | /c13.code/uintah/branches/pearls/src/Core/Thread/Thread_pthreads.cc | 099b8fb81e471e35072745f6c226679bfc008be2 | [
"MIT"
] | permissive | alvarodlg/lotsofcoresbook2code | b93ad62e015d205e4f550028ceb54254023021ee | a2dbeb306fa29ae6663ae29b2c4c132608375cf0 | refs/heads/master | 2020-12-31T03:02:22.579614 | 2015-09-02T15:23:18 | 2015-09-02T15:23:18 | 54,509,919 | 2 | 1 | null | 2016-03-22T21:27:56 | 2016-03-22T21:27:56 | null | UTF-8 | C++ | false | false | 37,462 | cc | Thread_pthreads.cc | /*
* The MIT License
*
* Copyright (c) 1997-2015 The University of Utah
*
* 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
* right... |
75587e06e965ce72a9f637bbbe696afdb198346c | 77a88451e9816de8dcafd76b7d70d6110c8a459f | /pizza_store_af/pizza_ingredient_factories/ny_pizza_inrgedient_factory.cpp | 7506a25a385fd5110a1dcfe6c83eef041bd0fa9e | [] | no_license | jsxft/learn-oop | 847dad41823cb7254cbcd28e03d6909ba58cbbf6 | 58b1f79087ead639a812387b8a56be40bf42d07a | refs/heads/main | 2023-04-30T03:23:31.604874 | 2021-05-13T17:41:59 | 2021-05-13T17:41:59 | 363,584,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | cpp | ny_pizza_inrgedient_factory.cpp | #include "ny_pizza_inrgedient_factory.hpp"
#include "../doughs/thin_crust.hpp"
#include "../sauces/marinara.hpp"
#include "../cheeses/reggiano.hpp"
#include "../veggies/garlic.hpp"
#include "../veggies/onion.hpp"
#include "../veggies/mushroom.hpp"
#include "../veggies/red_pepper.hpp"
#include "../pepperonies/sliced_pep... |
022c81b454b4af91755629e026a42be01e2a2b4e | ec76c1297252070d72fd194baebca3146bafac59 | /damBreak_laminar/damBreak/4.5/U | 06482861e006efc6a4b94acfccf7e400a2967e1d | [] | no_license | Shivam-IITKGP/CFD_InterFoam_BottleFill | 413cdb5536cf71d95da882821fa36c7bd138e17e | be711e0f19a5331bb1094b8e54982c9ad101da5c | refs/heads/main | 2023-04-13T12:58:09.332312 | 2021-04-15T16:24:42 | 2021-04-15T16:24:42 | 358,315,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221,735 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
7ad5c44984652e14f026587f3a39e30e8a320981 | 9c450658f821d12bbf0adab2d7c78c360e3451c3 | /zhtopy/frmzhtopy.h | a992d371f892fec6393402289b7c029dd50dde2e | [] | no_license | LiZistudio/mujiangjuzi | eac7439108c33175be33b924510d74d679cedc92 | a26801c259ca7ae2384fc14cc3af4cd0c39a312e | refs/heads/master | 2023-07-31T09:08:27.828612 | 2021-09-08T13:44:43 | 2021-09-08T13:44:43 | 245,950,023 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | frmzhtopy.h | #ifndef FRMZHTOPY_H
#define FRMZHTOPY_H
#include <QWidget>
namespace Ui {
class frmZhToPY;
}
class frmZhToPY : public QWidget
{
Q_OBJECT
public:
explicit frmZhToPY(QWidget *parent = 0);
~frmZhToPY();
private:
Ui::frmZhToPY *ui;
private slots:
void on_btnPY_clicked();
... |
623f53d46fa200baa17087b5ea721058d031d3ea | 3971c8414e9797e6bde5ad443624b3bd0f09431c | /mini_project/4.6_MiniProject.ino | c91b2c2e1ea49f6e90a824388916d5aabee6a4f1 | [] | no_license | hojacky/SEED_Lab | 76d6d1429a3557954562e4f6cd6a7ae054edde63 | ab7dce430c0c5a30e61b9ba288af01a1c18aa2cb | refs/heads/master | 2023-01-12T21:43:12.852271 | 2020-11-18T21:58:00 | 2020-11-18T21:58:00 | 299,388,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,323 | ino | 4.6_MiniProject.ino | //TORY WILSON
//EENG 350 - SEED - FE
//ASSIGNMENT 2 - Localization
//Name the pins for clarification
#include <Encoder.h>
#define PI 3.1415926535897932384626433832795
const int PIDReference = 7;
const int PIDoutput = 8;
const int oneA = 2;
const int oneB = 5;
const double r = .05;
con... |
ca40c93cc0c09dd2b5ef893f092940c5cf590a71 | 32eab583ec7fbc39bbd745cec53d957631eaef08 | /GinkgoEngine/source/libMath/Vector.cpp | 1203bd3f675700e1a475e14f1797503bc7e5143e | [] | no_license | ArionTT/MyEngineLearning | 5d41ac4c72a1132864968cdaab80110700aebaf0 | c917b0457d78af3c67775e4087daeadcc986d1d4 | refs/heads/master | 2020-07-18T16:26:43.837011 | 2019-11-28T15:50:07 | 2019-11-28T15:50:07 | 206,276,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,028 | cpp | Vector.cpp | #include"Vector.h"
#include"Math.h"
namespace External
{
Vector3::Vector3()
{
x = y = z = 0.0f;
}
Vector3::Vector3(float x, float y, float z)
{
this->x = x;
this->y = y;
this->z = z;
}
Vector3::Vector3(const Vector3& src)
{
x = src.x;
y = src.y;
z = src.z;
}
Vector3 Vector3::Normalize(const... |
f78f579b6f8ed5d4cebb6da09a8d5e41bfb1899f | 9d179d7b923941d780f7bd5154c896d9b3d27c89 | /main.h | 5147c9166b8d539b62d0b2e78318d27966608961 | [] | no_license | ItzProxy/CS210_a3 | 121167fd0e8bafc399b8d0565c3c50388fe3aefc | 9fbb25ce826ce4d80340491773816aa6e7c1aa5f | refs/heads/master | 2020-04-27T10:54:11.147022 | 2014-10-05T06:02:07 | 2014-10-05T06:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | h | main.h | #ifndef _MAIN_H_
#define _MAIN_H_
// A fake single line text editor program.
#include <iostream>
// Header file needed by system ().
#include <cstdlib>
// Some C-specific header files needed by getch ().
// JUST USE THEM.
#include <unistd.h>
#include <termios.h>
using namespace std;
const int MAX_TEXT_LENGTH = 65;... |
80c5e22b92a1044900ae93c09249a8fce05444e1 | 7e809c1e58a3a586d5ed063cd650ad13510a6458 | /contests/obi-avançado III/2562.cpp | 61fb0928ad494aa32ce09a748ad64b341854ffe9 | [] | no_license | EduardoCardozo/competitive-programming | 34532a6ff72249cf5a0b83181d4e6c10bf55fbbb | 19550d7923feec46d9cc11db582639b33eb80e19 | refs/heads/master | 2021-07-05T21:32:15.838234 | 2019-02-19T23:15:01 | 2019-02-19T23:15:01 | 105,213,838 | 0 | 0 | null | 2018-10-01T02:42:51 | 2017-09-29T01:00:15 | C++ | UTF-8 | C++ | false | false | 661 | cpp | 2562.cpp | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a, b) for(int i= int(a); i <= int(b); i++)
#define MAXN 100000
vector<int> adj[MAXN];
int v[MAXN];
int qtd;
void dfs(int u)
{
for(auto i : adj[u])
{
if(!v[i])
{
v[i]=1;
qtd++;
dfs(i);
}
}
}
int main()
{
int n, m, a,... |
8165a7ec88892bc2ca11167032442456fa41b4ca | 8fcb1c271da597ecc4aeb75855ff4b372b4bb05e | /POJ/MatrixMultiplication.cpp | f2bf147fa3dc7e4a2376b434f85862e621720636 | [
"Apache-2.0"
] | permissive | MartinAparicioPons/Competitive-Programming | 9c67c6e15a2ea0e2aa8d0ef79de6b4d1f16d3223 | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | refs/heads/master | 2020-12-15T21:33:39.504595 | 2016-10-08T20:40:10 | 2016-10-08T20:40:10 | 20,273,032 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,892 | cpp | MatrixMultiplication.cpp | #include <iostream>
#include <cstdlib>
#include <cstdio>
using namespace std;
#define DEB(x) cerr << "# " << (#x) << ": " << x << endl;
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> ii;
const int MAXN = 505, ITE = 50;
int A[MAXN][MAXN], B[MAXN][MAXN], C[MAXN][MAXN], D[MAXN], BD[MAXN],... |
6a345b742288a42f312d9f8db92404b63f134468 | 7de52062ec797ce2f2e206672fbce6be4ff8341f | /2002.cpp | a04f82e31844d294f3a2f1a5be846abcfb677dbb | [] | no_license | joselynzhao/ALGORITHM_PROCTICE | 2278bca3d194e88ef60522d438de18659e69ad03 | a026c5e4046585d71d4068f694e24eded44eccef | refs/heads/master | 2020-04-16T07:26:55.082322 | 2019-05-02T02:39:40 | 2019-05-02T02:39:40 | 165,387,245 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | cpp | 2002.cpp | #include <iostream>
#define PI 3.1415927
using namespace std;
int main(){
double num;
while(cin>>num){
double out = 4* PI * num*num*num /3;
printf("%.3lf\n", out);
}
return 0;
}
// #include <stdio.h>
// #define PI 3.1415927
// #include <math.h>
// int main()
// {
// double r;
// while(scanf("%lf",&r)!=EOF)
... |
f6ce9744ac63e003c2b6263516292984930149a2 | 7eea67911190568ea0a16934218f405c7b8ff27e | /firmware/arduino/QTPyNoisyBoi/VoltageOut.h | 910f95d2ce1a431d36427f1a2343d9dba2134ad7 | [] | no_license | todbot/QTPyNoisyBoi | b2c71765748ba1ce7c430cc0e02b66bf9df991af | 97a93daa324270059202f551dade46ed77ea941b | refs/heads/main | 2023-07-27T02:13:08.451407 | 2021-09-07T04:17:04 | 2021-09-07T04:17:04 | 351,238,354 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | h | VoltageOut.h | /**
*
* A very primitive port of wntrblm's Winterbloom_VoltageIO Python library:
* https://github.com/wntrblm/Winterbloom_VoltageIO
*
*/
#include <stdint.h>
struct voltage_calibration {
float voltage;
uint16_t dac_val;
};
class VoltageOut {
public:
VoltageOut();
VoltageOut(voltage_calibratio... |
9dd4f9cb3ac557f4ee88d2ba13bdad50b7f099fe | 79dde96a7a6eb55330e9534dab992d2bb6159cde | /source/opengl/grid.h | 557ca403db9b1f03ce2646d13cedb306a8c36cb0 | [] | no_license | DennyLindberg/Hair-Generator | 686a54701765b50ece94a0ca4159f0680ef9fca4 | 3fabe734a21f463c731cb8e4760faf6ccdf8fe28 | refs/heads/master | 2020-09-08T00:27:41.386718 | 2019-12-17T21:05:15 | 2019-12-17T21:05:15 | 220,956,429 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | h | grid.h | #pragma once
#include "mesh.h"
#include "program.h"
#include <memory>
class GLGrid : public GLQuad
{
protected:
GLProgram gridShaderProgram;
std::shared_ptr<GLQuad> mesh;
GLuint mvpUniform = 0;
GLuint gridUniform = 0;
GLuint sizeUniform = 0;
GLuint opacityUniform = 0;
public:
float size = 1.0f;
float gridSpa... |
6c009844ced269ead45ac31d96dac334075234fd | f7745ba1459d296243217f9d0ad4fd5d755b70bb | /Lab7/optionaltask2/compareASCIICode.hpp | 04726c2a527fc27173745e6819198af467540e09 | [] | no_license | ecwu/COMP1013_SP | e013abea7089d2cc9fa71ad21fe6436423dff552 | 3e1a57634f0dc16214f4de6c6a9770f0da7985ac | refs/heads/master | 2021-03-19T13:59:27.117907 | 2018-01-09T08:16:25 | 2018-01-09T08:16:25 | 104,440,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | hpp | compareASCIICode.hpp | int compareASCIICode(char char1, char char2); // put function prototype here |
818314f3270bee5d469e36fffa062eb67afb4740 | abcc3c0a7b8d0b1995aa18de61616adf62da3cde | /Recursion/potentiation.cpp | c7027ac3ba11d00f0dfa421fe3a7f9fc37c78d6d | [
"MIT"
] | permissive | Matheus1714/C- | 4bca41bd9892faa83cbacaa1cf06af5e3584df1d | 666f73e843abe3b87d686d1eb49a71889e9e9c3a | refs/heads/master | 2023-01-28T07:45:37.927407 | 2022-12-20T00:32:09 | 2022-12-20T00:32:09 | 175,743,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | potentiation.cpp | #include <iostream>
using namespace std;
int potentiation(float a,int n){
if(n==0) return 1;
else return a*potentiation(a,n-1);
}
int main(){
float n;
int p;
cout<<"Enter a number and a potentiation"<<endl;
cin>>n>>p;
cout<<n<<"^("<<p<<"): "<<potentiation(n,p)<<endl;
return 0;
} |
cddbfa6bc8561911741d7948176ac360bf6e7e72 | 4592ccb4777d706d1754d00ff6957cacc7fc5dd5 | /src/HOSample.cc | eba052f51fb69c3105fa00f0eaf9dfb296670d03 | [] | no_license | DryRun/PFGAnalysis | 54b8e16439d1352359170dc3e3e745db5b9194dc | 949fb215cb559585974f093dd3b4d96ef49a3817 | refs/heads/master | 2021-01-12T12:39:20.545687 | 2018-10-25T17:15:19 | 2018-10-25T17:15:19 | 69,891,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,793 | cc | HOSample.cc | #include "HCALPFG/PFGAnalysis/interface/HOSample.h"
HOSample::HOSample():
HcalSample()
{}
HOSample::HOSample(Collection& c, unsigned short i, short j):
HcalSample(c, i, j)
{}
float HOSample::allFC() {return m_collection -> GetData() -> HODigiAllFC -> at(m_raw_index)[m_timeslice];}
float HOSample::energy(... |
8ec5c83d637a70e6d9ffc73c8246cda60718dcaf | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /media/audio/android/audio_record_input.cc | 69fdb67cbb5af532355c294c20d3c582c10cda07 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 5,253 | cc | audio_record_input.cc | // Copyright 2013 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 "media/audio/android/audio_record_input.h"
#include "base/logging.h"
#if defined(SERVICE_OFFLOADING)
#include "jni/AudioOffloadingInput_jni.h"
#... |
e69f30c220eb07a7edf7f9b4fc76d8c01654bd5a | 8456dc3838735ce03530c267ef0c5c446ed9e459 | /SaberTest/SaberTest/Solution 02.cpp | be22270efd652924d7f7f66bb54cbdf588b11f96 | [] | no_license | GArGuTZ/SaberProgrammersTest | 9545fa93d4d143106060012e6b7328a50a9b8b16 | 99171cf4ddf7687119b1c483554433a51dfbdfcf | refs/heads/master | 2023-01-06T00:48:27.257672 | 2020-10-14T18:29:24 | 2020-10-14T18:29:24 | 298,200,204 | 0 | 0 | null | 2020-10-14T18:29:25 | 2020-09-24T07:22:35 | C++ | UTF-8 | C++ | false | false | 764 | cpp | Solution 02.cpp | #include "Solution 02.h"
void RemoveDups(char* _str)
{
int inputLength = strlen(_str);
if (inputLength < 2) // Primitive case
{
return;
}
// Count length of new str
char currentSymbol = _str[0];
int newLength = 2;
for (int i = 1; i < inputLength; ++i)
{
if (_str[i] != currentSymbol)
{
currentSymbol... |
aab2afe6ee33ea8328437418c786d86c496565ec | 2f324b141341d6bff8b70786c6c3584afe18cfab | /tests/test_basic_json.cpp | 0cd78b5b601ddb1ee1e07049bf7c435c149c647c | [
"MIT"
] | permissive | JepsonWong/configor | c80c216137698f0e2feb780fb275ab86cbe78445 | 6dd41f5eda238d1352075cc2de4586ec5a7924e0 | refs/heads/master | 2023-08-12T20:29:14.300395 | 2021-10-09T13:41:35 | 2021-10-09T13:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,896 | cpp | test_basic_json.cpp | // Copyright (c) 2019 Nomango
#include "common.h"
class BasicJsonTest
{
protected:
BasicJsonTest()
{
j = { { "pi", 3.141 },
{ "happy", true },
{ "name", "Nomango" },
{ "chinese", "中文测试" },
{ "nothing", nullptr },
{ "list", { 1, 0, 2... |
476aa335f73168fdbab17cc5908f77b483eefe06 | e9ec861cb8c0abf91e0f244a355ffdb85425b7b2 | /src/cpp/rtps/transport/shared_mem/RobustLock.hpp | 71b4524f439a2a48ffb33a042e639b380d3be9cc | [
"Apache-2.0"
] | permissive | advancenOO/Fast-DDS | 87b061a2ffba7dd31043306bb6204f3478224e12 | 2611582c6f81158034e82a849e26a401562d3fd8 | refs/heads/master | 2023-01-27T21:47:30.863806 | 2020-12-07T12:46:07 | 2020-12-07T12:46:57 | 313,307,414 | 0 | 0 | Apache-2.0 | 2020-11-17T14:19:03 | 2020-11-16T13:14:38 | C++ | UTF-8 | C++ | false | false | 2,336 | hpp | RobustLock.hpp | // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
32c0f89e12b58ce3dbb953b44c48efdfe52aa4cf | a2c5dcd0493fbfc69c8823597896195e53361071 | /classes/xml/xul/label.cpp | 7e3f5faddcf524299aeae4b428a7bcb6825223bb | [
"Artistic-1.0",
"Artistic-2.0"
] | permissive | enzo1982/smooth | 673fed6eb977ce6e10c9ea3ffe54126561bc041e | 3b8dd663dcd794b7eb6944a309d21b9bef114a58 | refs/heads/master | 2023-07-09T20:02:56.901359 | 2023-07-02T19:57:13 | 2023-07-02T20:03:31 | 100,875,066 | 26 | 13 | Artistic-2.0 | 2023-01-29T23:56:56 | 2017-08-20T16:44:58 | C | UTF-8 | C++ | false | false | 913 | cpp | label.cpp | /* The smooth Class Library
* Copyright (C) 1998-2009 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIE... |
3f0fc33ea0d672f05bb1cabcaddf509aad48a043 | dc92fbe3854bc79e60382ba090912bca63c0337b | /find-k-closest-elements/find-k-closest-elements.cpp | cd1773bd40c0e3eb23464fbc3a341659db5d0f60 | [] | no_license | Nikhilsharmaiiita/LeetcodeCracker | c613783348a46fec4850e88473d2fccd433a872a | 1b4b4454888746a1dd71a8ab48e866a12989c105 | refs/heads/main | 2023-08-13T15:31:33.765099 | 2021-10-11T13:54:44 | 2021-10-11T13:54:44 | 380,446,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | cpp | find-k-closest-elements.cpp | class Solution {
public:
vector<int> findClosestElements(vector<int>& arr, int k, int x) {
int n=arr.size();
arr.push_back(50000);
int lo=0,hi=n-k,mid;
while(lo<hi)
{
mid=lo+(hi-lo)/2;
if(x-arr[mid]<=arr[mid+k]-x)
hi=mid;
... |
c7ca5dc9febf01c4164f5f8eefaf2bfdd2afb470 | 8e198bf88726045fc0bd341155ef8fd3056f2383 | /transfer.cpp | 75ec504552b566115fc48fe0638e9071859005d1 | [] | no_license | lx200916/QChat_Public | 9842cd767570af09c12416e978a03d67d1d77792 | 07636f15f1defeec54ba3c4016f034c571a932e7 | refs/heads/master | 2023-05-01T13:43:15.595536 | 2021-05-28T11:36:10 | 2021-05-28T11:36:10 | 198,995,087 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,689 | cpp | transfer.cpp | #include "transfer.h"
#include "ui_transfer.h"
#include <iostream>
#include <QDataStream>
#include <QFile>
#include <QHostAddress>
#include <QTcpServer>
#include <QTcpSocket>
#include<QMessageBox>
const int DATA_STREAM_VERSION = QDataStream::Qt_5_13;
transfer::transfer(QHostAddress ta,QString Filename,QWidget *parent)... |
db84ece7c3c1eafeb501af6d0d97c67834220cfa | 2b28a6b67641db45a0b031711f07989f6a2288fb | /src/core/windowService.hpp | dc0e7ef3bfbd4e517aea23df6786aa179d7ffadf | [] | no_license | ianw3214/Oasis | a874fece5dd49704c647d8619f5b2d910a248cf6 | 2094c43f26c23fb53451ab3d78700e7587ebb028 | refs/heads/master | 2022-05-16T08:06:53.382715 | 2022-04-20T05:21:08 | 2022-04-20T05:21:08 | 113,233,136 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 550 | hpp | windowService.hpp | #pragma once
#include <SDL2/SDL.h>
#include <GL/glew.h>
#include <SDL2/SDL_opengl.h>
namespace Oasis
{
class Application;
class WindowService
{
public:
static void Init(Application * application);
static int WindowWidth();
static int WindowHeight();
static SDL... |
c051b8e83380f383b232ed8fd8dd1d2038f8f69e | 1bc9797c7f34ebdb4c91de1778292b84ba677813 | /compiler/ast.h | ff220c29d54d65b2cb6602222f02060d032bf9f6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | synecdoche/basil | 8efade7d95b64f67e0d74cb5b25954411224bce0 | 575b4590d45144f80d74ddc0bfc133cad4b7c04d | refs/heads/master | 2023-09-04T04:07:40.508207 | 2021-11-07T19:16:01 | 2021-11-07T19:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,314 | h | ast.h | /*
* Copyright (c) 2021, the Basil authors
* All rights reserved.
*
* This source code is licensed under the 3-Clause BSD License, the full text
* of which can be found in the LICENSE file in the root directory
* of this project.
*/
#ifndef BASIL_AST_H
#define BASIL_AST_H
#include "util/either.h"
#include "typ... |
b62281623842afce05320d91edfe20b00482c405 | 787caee96dc37f654205314acd3144824a27e1a1 | /code/src/Installer/ISSection.cpp | 46972427b4252e76558a4afd45aa2a64f9a9a42b | [] | no_license | zleesz/light-installer | 483d1126f780983d5e784421302eb459d1adb76a | 2b89b321afc517ce9bd242e0582b6eca5a6d9e92 | refs/heads/master | 2020-04-06T06:21:17.609122 | 2012-12-01T07:11:33 | 2012-12-01T07:11:33 | 32,120,002 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,049 | cpp | ISSection.cpp | #include "StdAfx.h"
#include "ISSection.h"
CISSection::CISSection(void)
{
m_pClassFactory = GET_SINGLETON(CISOPClassFactory);
}
CISSection::~CISSection(void)
{
m_pClassFactory = NULL;
std::vector<CISOPBase*>::iterator it = m_vecOP.begin();
for(; it != m_vecOP.end(); it++)
{
delete *it;
}
m_ve... |
65afc43670c4972e962d2bf5a7cc28a9fec7dfb8 | 89f91ac3de03a78a7158bfa87b0d4d84a3c47109 | /621.cpp | 4dc53166027b203522daaa88feb03ee69e708e2b | [] | no_license | xyuanlu/Cultivation | 65a8b098f407443aa35b2fe6d5d77419a1ab0e73 | 9a2dadc56ec17d5af1c780e9224936f1afa86786 | refs/heads/master | 2021-07-06T08:07:11.071012 | 2020-11-08T23:55:46 | 2020-11-08T23:55:46 | 201,869,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,864 | cpp | 621.cpp | /*
* 621. Task Scheduler
*
* Given a char array representing tasks CPU need to do. It contains capital letters A to
* Z where different letters represent different tasks. Tasks could be done without original order.
* Each task could be done in one interval. For each interval, CPU could finish one task or just be i... |
733edb7d564c42b7d25601b36e202b956e14f910 | 200cc322c9e14819f5c494c03ee66bc4770f1942 | /计蒜客/蓝桥杯训练营2018/蒜头君破案.cpp | a92e0262952f079e86f5e3cc8792d2ed19cfead6 | [] | no_license | DeftHaHa/ACM | 405965d8da104edae69f46545c301848c88df382 | 462de76d49c1ca10cb834ed03df2ae7ea046359e | refs/heads/master | 2020-04-27T20:12:59.513127 | 2019-03-09T04:51:54 | 2019-03-09T04:51:54 | 174,649,510 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | 蒜头君破案.cpp | #include<iostream>
#include<cstring>
#include<set>
using namespace std;
struct PEO{
int a,b,c;
};
struct cmp{
bool operator () (PEO a,PEO b) const{
if(a.a!=b.a) return a.a<b.a;
if(a.b!=b.b) return a.b<b.b;
return a.c<b.c;
}
};
set<PEO,cmp> S;
int main()
{
int n,m;
int a,b,c;
scanf("%d%d",&m,&n);
while(m--)... |
d66f93946fd5289a6ae3c5aa240736930029d3de | 01186c631ffe6a1f5ce6c2f31028cac3245555ca | /utils/CORRAUtils.cpp | 662b892318f02e6eccf8b673c327f865b0e76f40 | [] | no_license | buivancuong/parallel-routing | 9bd819de3cbbd4756c9a8b4a66c610d6584df8b3 | 544b6db85a82f3013625be652b2a1268c4fe9d1a | refs/heads/master | 2020-08-20T00:29:32.253213 | 2020-06-29T15:46:45 | 2020-06-29T15:46:45 | 215,968,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,263 | cpp | CORRAUtils.cpp | //
// Created by cuongbv on 20/12/2019.
//
#include <cstdlib>
#include "CORRAUtils.h"
int CORRAUtils::getNodeHorizontal(int nodeID, int xTopoSize) {
return nodeID % xTopoSize;
}
int CORRAUtils::getNodeVertical(int nodeID, int xTopoSize) {
return (int) (nodeID / xTopoSize);
}
int CORRAUtils::getNodeBlock(int... |
372f8d4bbda9471c4e9c1b7429d064717c687421 | d272482192a7f57979b57cf1cad8478dbd772eb3 | /Classes/GameInputs.h | ffa31eb411a1acbfc377558fcb33e00ca67bbbda | [
"MIT"
] | permissive | wangyanxing/JumpProject | 4e03d600010a209466b53d00dc5d02599bc73634 | 07ea399dcf10e92186921dee37257a419f0ca62c | refs/heads/master | 2021-01-14T08:41:00.698586 | 2016-02-23T04:50:58 | 2016-02-23T04:50:58 | 25,420,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | h | GameInputs.h | //
// InputManager.h
// jumpproj
//
// Created by Yanxing Wang on 1/18/16.
//
//
#ifndef GameInputs_h
#define GameInputs_h
#include "Prerequisites.h"
#include "Singleton.h"
class GameInputs {
public:
DECL_SIMPLE_SINGLETON(GameInputs);
typedef cocos2d::EventKeyboard::KeyCode KeyCode;
typedef std::function<... |
8dfcf65b16b34a81bb95a70e9b010592a9ba6aac | 0684af1ffed99250b0fcbc7ab32ef8678e224844 | /src/LockCamera.h | 7f6534c7b1df91a08e3c44aa95d49eeaaaa7792c | [] | no_license | pwadhawan/LockCode | 08720f1cbd25d29cc16cc4f94f2b065ed40ef657 | b0227dd045e29cf2002c3111af100f9dc6d58ee3 | refs/heads/master | 2021-01-22T05:50:42.123669 | 2015-01-05T18:14:36 | 2015-01-05T18:14:36 | 28,823,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | h | LockCamera.h | /*
* LockCamera.h
*
*/
#ifndef CAMERA_H_
#define CAMERA_H_
#include "SimpleGPIO.h"
#include <stdlib.h>
class LockCamera {
private:
public:
LockCamera(); //Initialize the LockCamera in BBB
void capture();//Capture the image using the camera in BB
void switchon(); //Switching Lo... |
ac953b766f3fd4900457179aa6d56ad063a63e75 | eba5ff0a3568dc9265bdc3929a8dd2e77e0f5560 | /Plugins/NetDMFReader/vtkNetDmfReader.cxx | 7510f4465d16474515228c2c980c3f000dec0eb9 | [
"LicenseRef-scancode-paraview-1.2"
] | permissive | kmorel/ParaView | 4b53b2279bb34a01290dcfee9d2ff8e42e9e6945 | 006cf719b9e07b0ee2c56f66fdf744bad4d18259 | refs/heads/master | 2021-01-17T16:25:02.519331 | 2010-08-04T22:10:14 | 2010-08-04T22:10:14 | 685,857 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,854 | cxx | vtkNetDmfReader.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkNetDmfReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistribution... |
f90f031b056c0d12d7e8ef3faddfee95aa7cd294 | 4c36e77d197eabc320431eeffe92a2e5f35c8959 | /include/objetsReclangulaire.h | 81faecee1b8009e66e05159a8b5166b0a54fdc78 | [] | no_license | SAGNA01/JeuCasse_brique | dc1bae1ced9b1931b4e4dab3baa2787936d461d9 | c60e842c11050237ac6fdd7ab4d7110145ee72f4 | refs/heads/main | 2023-02-15T19:33:38.654447 | 2021-01-08T09:34:51 | 2021-01-08T09:34:51 | 318,849,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | h | objetsReclangulaire.h | #ifndef OBJETSRECLANGULAIRE_H
#define OBJETSRECLANGULAIRE_H
class objetsReclangulaire
{
public:
objetsReclangulaire(int positionX, int positionY, int largeur, int hauteur);
~objetsReclangulaire() = default;
virtual int getPositionX() const;
virtual int getPositionY() const;
... |
6acb26a281795bd8f26ba081bb545162a399ccbf | c5ed1456d2cefba942c47fef1a07aabc566ca6e2 | /include/GameManager.h | 4045736b6ede7479cf3c6222e1cf67f0907ec680 | [] | no_license | ymunwes/heroGame | c583820c86d9c3eebab97765ccf78c9c1f11a713 | 427b11bcf5785215f565a8590362f54ffa8e8b9e | refs/heads/master | 2022-09-02T15:22:15.203437 | 2020-05-26T15:13:59 | 2020-05-26T15:13:59 | 267,010,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | h | GameManager.h | #ifndef _GAMEMANAGER_H_
#define _GAMEMANAGER_H_
#include <stdio.h>
#include <string>
#include "ActionFigure.h"
#include "Monster.h"
#include "Hero.h"
#include <unistd.h>
//#include <curses.h>
#include <ctime>
using namespace std;
class GameManager
{
private:
bool gameOver;
ActionFigure *hero, *orc, *dragon;
i... |
f2cc5b9d27fb9f3a4fa917b301fe2b6cb90b90b3 | 8ee792a5a620f718469bcfe7efe6b57f9c16ab7a | /actionlib/speccommandgenerator.cpp | a7f7d4fcf85521d392d0ac8aaed13dacf27f36da | [] | no_license | hvennekate/data_element | 2d61690d3cc1f4914ef0c2455d922ab302797801 | 156c3fecf1f468fc1a96856980ce130dbc2ca4d3 | refs/heads/master | 2021-05-16T02:52:00.571109 | 2018-01-09T19:11:32 | 2018-01-09T19:11:32 | 27,096,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,160 | cpp | speccommandgenerator.cpp | #include "speccommandgenerator.h"
#include "specaddfoldercommand.h"
#include "specdeletecommand.h"
#include "specmovecommand.h"
#include "specmulticommand.h"
#include "specexchangedatacommand.h"
#include "specresizesvgcommand.h"
#include "specaddconnectionscommand.h"
#include "specdeleteconnectionscommand.h"
#include "... |
bebfb8ec60636a71e08ce5f20ea7a354d687759d | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/spirit/include/karma_symbols.hpp | 1579c327f799e07b6e7cf8e0bc3e3a956b54faad | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | hpp | karma_symbols.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:0011504c03be8cc59b96a70242c0a1f7c4e2b8b86e4062bb86341363861685dc
size 629
|
35760f7b9ae192f3ed1c17675b15ab5e3f7aa49d | 4fc5ea796f7a695498250913453fab1f2b7e8baa | /src/widgets/tablewidget.cpp | d7f2f0b653810b5adf88abc6fe9843b4f3e97574 | [] | no_license | apavelm/qsqldesigner | ed5522a99b499fe8082dc917f23a2fd08bdeae0a | 90ceff97249456d826901ac772ef3e9983fe8dcb | refs/heads/master | 2016-09-06T18:27:08.716947 | 2010-12-21T13:11:59 | 2010-12-21T13:11:59 | 32,121,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,681 | cpp | tablewidget.cpp | /***************************************************************************
* Copyright (C) 2010 by Pavel Andreev *
* Mail: apavelm on gmail point com (apavelm@gmail.com) *
* *
* This pr... |
51a3f50cba556953db93b7bdc25b5c32f7e15bad | 1143c5692229f098fe5b0641015df40ed41021f1 | /irtree-canonization/grammar/nterms_classes/TypeIdentifier.cpp | ca7baa0be69de3e6ee1310985da1c35e32f5b9c6 | [] | no_license | artyomnurgaliev/CompilersCourse | 97347adf13a96369d62fd797a2e0c173bdf62ecc | 0116ca3db5156b725079b5a59587ea51cb661e84 | refs/heads/master | 2021-02-08T06:54:49.673805 | 2020-05-24T08:10:20 | 2020-05-24T08:10:20 | 244,121,326 | 0 | 0 | null | 2020-03-01T09:30:53 | 2020-03-01T09:30:52 | null | UTF-8 | C++ | false | false | 285 | cpp | TypeIdentifier.cpp | #include "TypeIdentifier.h"
#include <utility>
TypeIdentifier::TypeIdentifier(std::string identifier)
: identifier_(std::move(identifier)) {}
std::string TypeIdentifier::GetIdentifier() { return identifier_; }
void TypeIdentifier::Accept(Visitor *visitor) {visitor->Visit(this);}
|
6151e32a468f20c95cf9dd4da54ee3b8b3e78a4f | 03f579c344e6f2987df91cab88795242e713b7fc | /Moving Stones Until Consecutive.cpp | 7a99f0720df01f256e617eb447e10e6de969806d | [] | no_license | wwqqqqq/LeetCode-Solution | 8610dc1c97ec7b43f0ab13f634c9a69afd22e597 | 63305d9cb0068d51f354e7aa8e381ca2320702bb | refs/heads/master | 2021-06-04T18:00:04.923506 | 2021-01-11T23:49:51 | 2021-01-11T23:49:51 | 126,013,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | cpp | Moving Stones Until Consecutive.cpp | class Solution {
public:
vector<int> numMovesStones(int a, int b, int c) {
// adjust order
if(a > b) {
int temp = a;
a = b;
b = temp;
}
if(b > c) {
int temp = b;
b = c;
c = temp;
}
if(a > b) {
... |
bc8ee804b157380fc6a698cf5ec69fe0d6b9dce2 | 552c39141dab7cbc0c34245000291a46cdb41495 | /lte_enb/src/tenb_commonplatform/software/libs/common/mib-common/ValidatorSONSelectedPCIAndRootSeqIndex.cpp | 038eaed1e1574167e3673a4442c9fe1d924823a4 | [] | no_license | cmjeong/rashmi_oai_epc | a0d6c19d12b292e4da5d34b409c63e3dec28bd20 | 6ec1784eb786ab6faa4f7c4f1c76cc23438c5b90 | refs/heads/master | 2021-04-06T01:48:10.060300 | 2017-08-10T02:04:34 | 2017-08-10T02:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,307 | cpp | ValidatorSONSelectedPCIAndRootSeqIndex.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// ValidatorSONSelectedPCIAndRootSeqIndex.cpp
//
// See header file for documentation.
//
// Copyright Radisys Limited
//
///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////... |
dfa9f0f5b3c3ba9ea117e1c775a056cebee85db6 | 51fea2df55902444f62a0b5b55b1acb88d7f6110 | /test.cpp | 4d35925f33d0994abb40c427e4d80dd9fcc7ff49 | [] | no_license | NickLavoie1/cs32lab05a | 40e272289939ec94d6747e5499120271a3cc5138 | 5a76921d6d496f6de56e60e7d9901b859280d616 | refs/heads/master | 2020-04-05T19:56:29.257516 | 2018-11-19T01:17:56 | 2018-11-19T01:17:56 | 157,157,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | cpp | test.cpp | #include <iostream>
#include "tddFuncs.h"
#include "WordCount.h"
#include <vector>
#include <fstream>
using namespace std;
int main()
{
string a = "sentence";
string b = "is";
string c = "a";
string d = "sentence";
vector<string> v;
v.push_back(a);
v.push_back(b);
v.push_back(c);
v.push_back(d);
W... |
f7f10dbe51e2ed1f6d3783e8eda1ff9a08f05662 | 42e506f2ab241f4fa1f659bfda60a7bf65e63990 | /src/server.cpp | a71404fde752f839f9a62b8c7b46e857ab1ff683 | [] | no_license | tonyupup/reactor-demo | e063100fc7f7c18c559f668a83e2a9c020999c57 | 45629beb9d692b3f080fee9ca5e60138d22e51da | refs/heads/master | 2023-02-26T05:18:57.843824 | 2020-12-01T02:28:13 | 2020-12-01T02:28:13 | 280,885,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,111 | cpp | server.cpp | #include "server.h"
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
#include "rkernel.h"
#include "client.h"
#include "networking.h"
ServerHandle::ServerHandle()
{
this->Clients = make_shared<vector<shared_ptr<Client>>>(1024);
this->kernel = make_shared<Rkernel>(1024);
addrinfo hints, *servin... |
6485488e5bbd856d9a2d5db87de47ef537cae18a | b428e7824f3cd40f7a752d9b83068462001248b3 | /C++/Lecture Algorithms and Data Structures/string algortihms/string_match/nea_simulation.cpp | 125ceaea5813d45938beeda7a09ccfb9a98d633e | [] | no_license | RobinTTY/LearningCollection | 4a3a07fe4e99d9e10708e007b6be7ff62064a4e9 | 0daf33f61bc1433a0293dabdda5fbf2ff092060c | refs/heads/master | 2023-08-16T19:18:58.772937 | 2023-08-09T22:40:03 | 2023-08-09T22:40:03 | 177,464,709 | 0 | 1 | null | 2021-08-09T17:52:28 | 2019-03-24T20:20:42 | Python | UTF-8 | C++ | false | false | 1,849 | cpp | nea_simulation.cpp | /* Datei nea_simulation.cpp
Autoren: J. Koch, M. Dausmann
Aufgabe:
Das Programm zeigt die Simulation eines
endlichen Automaten (NEA) zur Ueberpruefung,
ob ein vorgelegter Text zu der Sprache des
Regulaeren Ausdrucks des NEA gehoert.
Es gibt noch eine Methode mit Trace-Ausgabe.
Bezug: Kapitel Stringalgorithmen
*/
#i... |
8f4299480d159371da6325595b2301739967af72 | 2519555cbaf7fd302b81d380f9ec850cc308bc6b | /DDSView/Blob.h | bccf422c2864d624dc217ef46e6fb66b4948f3ca | [
"MIT"
] | permissive | SirKane/DDSView | 7aca301a87094ec476deb8ad4695cc572dced480 | 3e48aa33e4ad170f1e954de2edfa0b5dfbe735f9 | refs/heads/master | 2020-03-28T09:16:22.357899 | 2018-09-09T17:42:12 | 2018-09-09T17:42:12 | 148,025,405 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | h | Blob.h | #ifndef BLOB_H
#define BLOB_H
#include <stdint.h>
class CBlob{
protected:
void* m_pData = nullptr;
size_t m_Size = 0;
size_t m_Capacity = 0;
public:
inline CBlob(){
}
~CBlob();
CBlob(const CBlob &) = delete;
CBlob(CBlob&&rhs) : m_pData(rhs.m_pData), m_Size(rhs.m_Size),
m_Capacity(rhs.m_Capaci... |
4d3662b0e8495826d67811dfe0ce6d70e37506a8 | 6e13da744ae9c809ff35e2a123d0c8650d3b3989 | /src/eckit/io/SeekableHandle.h | 1a45f9a75a830c8fe6e91e9446057cbdd4387d14 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | ecmwf/eckit | 1e6026fa1791e7c4aaa51109afed010c4a5b1ed3 | de68dd7b5e8d4d06005b6856a648cceb5cf43827 | refs/heads/develop | 2023-08-16T16:48:14.426020 | 2023-08-03T06:48:36 | 2023-08-03T06:48:36 | 122,974,453 | 20 | 29 | Apache-2.0 | 2023-09-01T10:01:43 | 2018-02-26T13:33:38 | C++ | UTF-8 | C++ | false | false | 1,885 | h | SeekableHandle.h | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... |
41c99bee709988d8ca7faed03c1c0e71fd417bf8 | 4b2ee596584c2418eeec7cfb62b9b88aa43b32d2 | /source/gui/FindDlg.cpp | d5d2c9823bbb7d3c3d01e61258948b0813acc668 | [] | no_license | weilin0078/DP | a24f35a4ff07c6c5485dee5a376950a323c934f3 | 733db4bcc3a5d526da79e5700bbf4b2a3c675f26 | refs/heads/master | 2021-11-24T09:59:14.883864 | 2016-07-21T11:19:49 | 2016-07-21T11:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,055 | cpp | FindDlg.cpp | #include "stdafx.h"
#include "FindDlg.h"
LRESULT CFindDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CenterWindow(GetParent());
SetIcon(LoadIcon(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDR_MAINFRAME)));
m_edit.Attach(GetDlgItem(IDC_EDIT_FIND));
m_... |
1f096a1a402c2eb8381bc3873ec0cb85e8adbdd6 | 6417d6791494f898cb526c5b9d6f0ee263369e42 | /src/lib/internal/include/fb_glsl_program.h | d9ff45b73a489ad9fdf3cf634cca507399e61fc8 | [] | no_license | mateun/fbe2 | ee3633d53cec485e94729dcda844cccc28029d69 | 24ec8b5fc0361570190bbf47e283896d28a818ee | refs/heads/master | 2021-01-11T23:19:15.729504 | 2017-01-10T19:50:26 | 2017-01-10T19:50:26 | 78,566,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | h | fb_glsl_program.h | #ifndef GLSLPROGRAM_H
#define GLSLPROGRAM_H
#include "fb_export_spec.h"
#include <SDL.h>
#include "fb_export_spec.h"
#include <SDL.h>
#include <glew.h>
#include <glm/glm.hpp>
#include <string>
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#endif
using std::string;
using glm::vec3;
using glm::vec4;
using glm::mat4;
u... |
c1ac7fae94a81342245a66843e56c8009f2e7058 | b8ff97758bb19ff034c817541dbde39fedcbdd25 | /LupinAdventure/Classes/Entity/EObject.cpp | 4dc7fd04eb0ddda70707afd828bc86ed9c74622f | [] | no_license | dannylam2502/Portfolio-code-snippet | 172e36e136ac77f138db48b6313616ab6df8d1ae | 70aa667891043579d2f531b3f9ea8310dc8ff684 | refs/heads/master | 2020-05-05T09:23:23.170852 | 2019-07-10T16:17:54 | 2019-07-10T16:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,945 | cpp | EObject.cpp | #include "EObject.h"
#include "Config.h"
#include <exception>
bool EObject::init()
{
if (!Node::init())
{
return false;
}
m_CommandQueue.clear();
m_Components.clear();
m_StateManager = nullptr;
m_IsActive = true;
scheduleUpdate();
return true;
}
void EObject::update(float delta)
{
if (!m_IsActive)
{
... |
b41f9fd64c3acb8643d5a6deea31fe95c6d12c5b | 6e22d7679ebeb092232de6052ced81c7d8ab97a6 | /hp-socket-3.1.2/Common/Src/CriticalSection.h | 744e2244aeeb94ff2e4e9da8e55df5ae7949636a | [
"Apache-2.0"
] | permissive | chengguixing/iArt | e3de63161bd91a18522612d6320453431824061d | c2d60e36f2f2a6a04b2188f20e7264cfc5d05dc4 | refs/heads/master | 2021-01-02T09:27:11.010862 | 2014-06-28T12:34:56 | 2014-06-28T12:34:56 | 22,207,953 | 4 | 5 | null | null | null | null | GB18030 | C++ | false | false | 3,595 | h | CriticalSection.h | /*
* Copyright: JessMA Open Source (ldcsaa@gmail.com)
*
* Version : 2.3.2
* Author : Bruce Liang
* Website : http://www.jessma.org
* Project : https://github.com/ldcsaa
* Blog : http://www.cnblogs.com/ldcsaa
* WeiBo : http://weibo.com/u/1402935851
* QQ Group : 75375912
*
* Licensed under the Apache License,... |
ae1988ffde79af5eef3f16bcdab9affd00a871fb | 6565182c28637e21087007f09d480a70b387382e | /code/40.组合总和-ii.cpp | fab8bbb9f45dd3e0d8d33f965a87f682a95191d6 | [] | no_license | liu-jianhao/leetcode | 08c070f0f140b2dd56cffbbaf25868364addfe53 | 7cbbe0585778517c88aa6ac1d2f2f8478cc931e5 | refs/heads/master | 2021-07-17T05:54:58.228956 | 2020-08-17T07:03:52 | 2020-08-17T07:03:52 | 188,854,718 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,065 | cpp | 40.组合总和-ii.cpp | /*
* @lc app=leetcode.cn id=40 lang=cpp
*
* [40] 组合总和 II
*/
// 这道题最大的难点就是怎么去重
class Solution {
public:
vector<vector<int>> combinationSum2(vector<int>& candidates, int target) {
vector<vector<int>> res;
if(candidates.empty())
return res;
sort(candidates.begin(), candidates.e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.