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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8001e12b96902ae47d40ebe66f3bf3442fa24875 | 20b49a6ef1fa417d67abef2d29a598c9e41c478e | /CodeForces/Lockout/Round 14/C.cpp | 0b5b800c466969a730342de77240d74e1d5849ac | [] | no_license | switchpiggy/Competitive_Programming | 956dac4a71fdf65de2959dd142a2032e2f0710e1 | beaaae4ece70889b0af1494d68c630a6e053558a | refs/heads/master | 2023-04-15T19:13:12.348433 | 2021-04-04T06:12:29 | 2021-04-04T06:12:29 | 290,905,106 | 1 | 3 | null | 2020-10-05T20:16:53 | 2020-08-27T23:38:48 | C++ | UTF-8 | C++ | false | false | 861 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define benq queue
#define pbenq priority_queue
#define all(x) x.begin(), x.end()
#define sz(x) (ll)x.size()
#define m1(x) memset(x, 1, sizeof(x))
#define m0(x) memset(x, 0, sizeof(x))
#define inf(x) memset(x, 0x3f, sizeof(... |
4f1cd525269e91c0775d11ea619f6cc0cee579e4 | e3d7cdb7cfb0140921737517024c2f85b5cb66bb | /Project1/InputManager.h | 6eaed9864b7ad2f9e10ad2d9ef40043c75adb80a | [] | no_license | scabsy/ICT397---Assignment-1 | 07df76a1208803e852d623784a94fdc944758db8 | 71729658e4fcb802d1381712af8397dcc59e8c62 | refs/heads/master | 2021-01-20T02:38:26.344620 | 2017-06-02T14:33:59 | 2017-06-02T14:33:59 | 89,433,633 | 0 | 1 | null | 2017-06-02T14:34:00 | 2017-04-26T03:28:04 | C++ | UTF-8 | C++ | false | false | 114 | h | InputManager.h | #pragma once
class InputManager
{
public:
InputManager(void);
~InputManager(void);
void KeyPressed(void);
};
|
e675f16520f53fa895d1447f883b4be16749260b | a6df040949fc4b45b3350a9514099900b91384d7 | /cpp/api/include/trtorch/logging.h | e0a892113ca9bbac963cb824e043d479bc6e5d29 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | bytedance/TRTorch | f1cf760f40cd6c99b9f36c0d356b3c55cae909cb | 41130568fe46aa9b35d8e0dba5f014ef4d484666 | refs/heads/master | 2023-03-29T01:06:13.469456 | 2021-03-10T08:10:08 | 2021-03-10T08:10:08 | 297,588,215 | 10 | 3 | BSD-3-Clause | 2021-03-11T03:03:17 | 2020-09-22T08:42:23 | Jupyter Notebook | UTF-8 | C++ | false | false | 2,004 | h | logging.h | /*
* Copyright (c) NVIDIA Corporation.
* All rights reserved.
*
* This library is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <string>
#include "trtorch/macros.h"
namespace trtorch {
namespace logging {
/**
* Emum for sett... |
f1cd3965c0eedf96cfc0f36def8b27a094e27283 | 87b5bb04e2972016f939bbe371e0a85f456730f5 | /LeetCode/P110_balanced_binary_tree.cc | 2441063bdb3bf0649e0bdb9cc4bd072c46f0aff3 | [] | no_license | StonecutterX/DataStructureAndAlgorithm | 9db8fd00ea067018decfe6441974998917ce4939 | f940c653b8bc24f68d6eb8ea2141c18a3ad2ea62 | refs/heads/master | 2022-10-24T14:10:28.583245 | 2020-06-17T15:48:10 | 2020-06-17T15:48:10 | 237,130,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,088 | cc | P110_balanced_binary_tree.cc | /**
* Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as:
a binary tree in which the left and right subtrees of every node differ in height by no more than 1.
Given the following tree [3,9,20,null,null,15,7]:
3
/ \
9 20
/ \
15 ... |
b90ab06e28bac91f6e49c67a888183cb1dd660aa | e7827b86cc03da81379f6058d37b7ea9f13f4d3a | /examples/websocketserver.cpp | e093462a6e344fd476cbeb16298813bc26f7e256 | [
"Apache-2.0"
] | permissive | jackim/kiss | db0ff9947084cb0c7eb1b7126b6afc4f00034e01 | e9216dfc46c2d047eb107f04d3d99d88ec58f3b5 | refs/heads/master | 2020-04-28T14:08:52.281437 | 2019-04-04T12:49:34 | 2019-04-04T12:49:34 | 173,287,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | cpp | websocketserver.cpp | #include <loop.hpp>
#include <websocket.hpp>
#include <server.hpp>
#include <spdlog/spdlog.h>
#include <iostream>
using namespace jackim::kiss;
class Handler:public IWebSocketHandler
{
public:
Handler(Base *base)
{
_sock = new WebSocket(base , this);
}
virtual std::string onEstablished(c... |
5ecb3e4fe084850d1de9aab0e52611e185609ebd | 1706a5c5394564ba9ef8d2bec24a1467024a8980 | /mainwindow.h | 4ecb5250f37639f619d602c75ed07b183e3a964d | [] | no_license | daws612/KNN_Performance | 21836c3437375bff47ad2310437a3eede953a59d | 96fbedb6920c8b9b5386f3f6c533c75338cf9642 | refs/heads/master | 2020-04-27T17:03:11.357081 | 2019-03-15T22:47:40 | 2019-03-15T22:47:40 | 174,503,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QVector>
class Neighbour;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void displayColumnInfo();
void splitTrainAnd... |
d942946ec32918bb618c3b85ab8718bc3b63cb8a | bc3073755ed70dd63a7c947fec63ccce408e5710 | /src/Game/Camera.h | 72589be5119c7c4c80028053f323493ade6ae26f | [] | no_license | ptrefall/ste6274gamedesign | 9e659f7a8a4801c5eaa060ebe2d7edba9c31e310 | 7d5517aa68910877fe9aa98243f6bb2444d533c7 | refs/heads/master | 2016-09-07T18:42:48.012493 | 2011-10-13T23:41:40 | 2011-10-13T23:41:40 | 32,448,466 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | h | Camera.h | #pragma once
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
namespace Totem { class Entity; }
class Camera
{
public:
static glm::mat4 getPerspective();
static glm::mat4 getView();
static void prepare();
static void... |
be9b7369d3c563816edccbb7ffc86e5956e95789 | e634448a11f60fc974d24fc1f077943aeeba2919 | /examples/cexample/jni/Code6.cpp | a32ba2fb72596037d0e367af547a7f47a3711cdc | [] | no_license | tsdl2013/wrapandroid-for-multilanguage | 9f5407f489dc27691c9cdc3dea9adda74b80eb72 | 6bca0f018599d86a332963f68e5574d4f8e3d61c | refs/heads/master | 2017-12-03T11:17:56.066124 | 2012-04-06T14:43:15 | 2012-04-06T14:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | cpp | Code6.cpp | #include "SRPWrapAndroidEngine_VSClass.h"
static class ClassOfSRPInterface *SRPInterface;
static void *StarActivity;
VS_BOOL StarCoreService_Init(class ClassOfStarCore *starcore)
{
class ClassOfBasicSRPInterface *BasicSRPInterface;
//--init star core
BasicSRPInterface = starcore ->GetBasicInterface(); ... |
5120a8f365a996892663b248df1eb5b76279ff0c | 66d404e3b14505c350e53f093b47c129c7935417 | /MyAssign/StarNetwork.h | f6e03ef53b6ace237f2121118a77a3852fe99370 | [
"MIT"
] | permissive | hkujy/VC | 3bb6faa90a406fddb520cc51ec7337ae08ea21c6 | 54b79fac4ecf4ac225b54325d879a580a9b17be6 | refs/heads/master | 2023-01-01T07:05:31.348115 | 2020-10-26T09:40:24 | 2020-10-26T09:40:24 | 293,498,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,021 | h | StarNetwork.h | #ifndef STAR_NETWORK
#define STAR_NETWORK
#include "UsedTypes.h"
#include <string>
#include <unordered_map>
//#include <tr1/unordered_map>
#include <limits>
#include <list>
class StarNode;
class StarLink;
/** \brief This class implements forward star graph representation.
\details For details see \cite Sheffi1985.... |
6a6b13cdae05090b21b358bf2997d95906c93cb2 | e78395669282e78918a3d439b0cb05410a72c0e3 | /easy/CLEANUP/main.cpp | 71b3dfb675cc8a23f9dc2e76ba7c4add4da3afba | [] | no_license | iamitshaw/codechef-practice-problem | a177d843674b89d054e075f66150cbc778a568a1 | 0bef2cfb89f7f1298fdb23bb91d4592c85fbb88f | refs/heads/master | 2023-06-15T03:41:44.880192 | 2021-07-05T17:23:40 | 2021-07-05T17:23:40 | 383,216,845 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,944 | cpp | main.cpp | #include <bits/stdc++.h>
void display_job(std::vector<int32_t>& vector) {
for (const auto& item: vector) {
std::cout << item << " ";
}
/* move cursor to next-line */
std::cout << "\n";
}
int32_t main(int32_t argc, char* argv[]) {
/* fast input-output */
std::ios_base::sync_with_stdio(f... |
41b1dec0f83e7da8b025603cb015ff2c7beb89ce | 5898d3bd9e4cb58043b40fa58961c7452182db08 | /part3/ch17/17-6-3-2-maintain-invarient/src/maintain_invarient.cpp | 865b106fe744c4dc6f04195efbc0aa2dfe47d120 | [] | no_license | sasaki-seiji/ProgrammingLanguageCPP4th | 1e802f3cb15fc2ac51fa70403b95f52878223cff | 2f686b385b485c27068328c6533926903b253687 | refs/heads/master | 2020-04-04T06:10:32.942026 | 2017-08-10T11:35:08 | 2017-08-10T11:35:08 | 53,772,682 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | maintain_invarient.cpp | /*
* maintain_invarient.cpp
*
* Created on: 2016/08/01
* Author: sasaki
*/
#include <vector>
#include <iostream>
using namespace std;
struct Z {
vector<int> elem;
int my_favorite;
int* largest;
};
// add util
ostream& operator<<(ostream& os, const vector<int>& v)
{
os << "[ ";
for (auto x : v)
os... |
7f26647c1f53bb09ed2c95575d34650aabfb4b85 | c9d73a74f5256782d30f86fd574e4a5ac1769729 | /src/main.cpp | fb9d905d6a26ef49cd796f024c49fb8e328e719e | [] | no_license | SzJoakim93/Travis_sample | c453f3b54bb9eba3644b0824127d8070fdfe5c72 | e1ca439821d4701b5085cec86295d1c081f30df0 | refs/heads/master | 2021-03-29T08:49:11.002597 | 2020-03-18T15:33:30 | 2020-03-18T15:33:30 | 247,938,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | main.cpp | #include <iostream>
#include "utils.h"
using std::cout;
using std::cin;
using std::endl;
int main()
{
int a;
cout << "Add number: " << endl;
cin >> a;
cout << "Square: " << square(a) << endl;
cout << "Cube: " << cube(a) << endl;
cout << (isPrime(a) ? "Prime" : "Not prime") << endl;
ret... |
ea01dafff8ddc94adb64d27aa84f3c92be976148 | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/VCSamples/VC2008Samples/MFC/general/dlgcbr32/Mdlsmain.cpp | 3dc5dc44722b6965d3b1c68285ecedd2d9caeb17 | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 17,818 | cpp | Mdlsmain.cpp | // Dlgcbr32.cpp : Defines the class behaviors for CModelessMain.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// el... |
9bc20a490a25f419bc0e64a7ba6f51abe9bf6a90 | 82646fb7fe40db6dcdf238548128f7b633de94c0 | /nyoj/270.cpp | 68cdd5e348c6214337fc3080ca9536c0b61fc7c6 | [] | no_license | jtahstu/iCode | a7873618fe98e502c1e0e2fd0769d71b3adac756 | 42d0899945dbc1bab98092d21a1d946137a1795e | refs/heads/master | 2021-01-10T22:55:47.677615 | 2016-10-23T12:42:38 | 2016-10-23T12:42:38 | 70,316,051 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,528 | cpp | 270.cpp | /*数的分解
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
你的任务是找到一个最小的正整数Q,使Q的各位数的乘积等于N。
输入
最多450组测试数据。数据以EOF结尾。
输入一个整数N(0 ≤ N ≤ 400)。
输出
输出Q,如果Q不存在则输出−1。
样例输入
10
5
样例输出
25
5
来源
ural
上传者
李文鑫*/
#include<stdio.h>
int main()
{
int n,i,k,t,s;
while(scanf("%d",&n)!=EOF)
{
for(i=1;; i++)... |
72d9b48b96914bc7b236058783f81dc1c156ebb0 | b5e2f65f372c471f0901d3f5c361e2e90dd14cf9 | /Framework/MetroidGameContent/EN_Rocket_HUD.h | c30562df22a3cdb234a0bd28aec98fd4b0d69636 | [] | no_license | tonykhoapro/Metroid | e6f9089d3b0334126184749dc7e93ade07ed0dc8 | 569e497342f352fef9f4d8240d13c667b7079c76 | refs/heads/master | 2021-05-10T21:55:13.100817 | 2018-01-20T15:52:01 | 2018-01-20T15:52:01 | 118,242,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | h | EN_Rocket_HUD.h | #pragma once
#include "GameFramework\GameObject\GameObject.h"
class EN_Rocket_HUD : public GameObject
{
public:
EN_Rocket_HUD();
virtual ~EN_Rocket_HUD();
SpriteRenderer* sprite;
GameObject* mainCamera;
virtual void OnSpawn() override;
virtual void LateUpdate() override;
};
|
c5440e3d556948ffe550f595bd9436e296557ad5 | 0daf354eb397ed0fb8f0df8a2ccf184713e2adcf | /src/Model/Solid/Viscoelastic/Viscoelastic.cpp | 2eb7cebd6a8f7d6c16b7211cfee9411e39ddeac0 | [] | no_license | drinkingpanda/alamo | 344799354a6bdcb4ac03b3d47850a7671253056f | 072845db493a2dba47e722fd09d142961b644cce | refs/heads/master | 2020-06-27T19:42:05.763347 | 2019-07-03T18:42:48 | 2019-07-03T18:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,199 | cpp | Viscoelastic.cpp | #include "Viscoelastic.H"
#include <iomanip>
namespace Model
{
namespace Solid
{
namespace Viscoelastic
{
std::ostream&
operator<< (std::ostream& os,
const Viscoelastic& b)
{
#if AMREX_SPACEDIM == 2
std::array<Set::Matrix,6> gradu, eps;
gradu[0] << 1,0, 0,0; eps[0] = 0.5*(gradu[0] + gradu[0].transpose());
g... |
fca029fcedce4ea927ab431673ecec892cb8be3c | 834fcda1290b2df392268695e161f47173b91b87 | /include/tudocomp/compressors/lcpcomp/compress/MaxHeapStrategy.hpp | d543af99dac675fee22b841f170eeb632d1e1b40 | [
"Apache-2.0"
] | permissive | tudocomp/tudocomp | 775fb57c784e3b57d98425255ef576b3d6b365e7 | b5512f85f6b3408fb88e19c08899ec4c2716c642 | refs/heads/public | 2022-09-22T11:56:07.044256 | 2020-04-15T08:49:38 | 2020-04-15T08:49:38 | 49,510,447 | 19 | 16 | NOASSERTION | 2021-12-10T09:38:42 | 2016-01-12T15:48:46 | C++ | UTF-8 | C++ | false | false | 3,245 | hpp | MaxHeapStrategy.hpp | #pragma once
#include <tudocomp/Algorithm.hpp>
#include <tudocomp/ds/TextDS.hpp>
#include <tudocomp/ds/ArrayMaxHeap.hpp>
#include <tudocomp/compressors/lzss/LZSSFactors.hpp>
#include <tudocomp_stat/StatPhase.hpp>
namespace tdc {
namespace lcpcomp {
/// Implements the original "Max LCP" selection strategy for LCPCo... |
4d60fe4a6d50d4824de06421154052064c8fc66c | 11321d8f3f8dcda67d90fb62dc8d52d969f31020 | /EQSignal/main.cpp | e342a8ee8738744fab6602ba86323e1c4fbfd6c1 | [
"MIT"
] | permissive | jiayingqi/EQSignal | 1558948ee7640b2c2fbd25bdb336a71ff3b9e0e3 | ac04d71a5b011bc3feb66562d6dda0b4e7e4e67b | refs/heads/master | 2022-03-30T08:59:24.815696 | 2020-01-24T03:33:59 | 2020-01-24T03:33:59 | 268,415,521 | 2 | 0 | MIT | 2020-06-01T03:24:26 | 2020-06-01T03:24:26 | null | UTF-8 | C++ | false | false | 694 | cpp | main.cpp | #include "mainwindow.h"
#include <QApplication>
#include <QSplashScreen>
#include <QDesktopWidget>
#include <QTranslator>
#include <QString>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QString qm("/trans.qm");
qm.prepend(QApplication::applicationDirPath());
QTranslator *trans = new ... |
d52d0915838e3c36c36c928397cc9fdcd2b84427 | b0c18633942e6ded10eb67603bee00bb27b6901d | /05 Bit Manipulation/5.8-Draw-Line/draw_line.cpp | 08ee942d6f27b472e1743ed780b68f4296eff01d | [] | no_license | lazystring/ctci | b8a950046c2e46e14f8f95b7439568a1accb6a10 | 9601685efa0f09e60209c0ea7fe6b20a0d3bafe4 | refs/heads/master | 2022-03-24T06:49:58.913413 | 2019-12-10T08:26:07 | 2019-12-10T08:26:07 | 52,692,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | draw_line.cpp | #include <iostream>
#include <cstdint>
#include <vector>
typedef uint8_t ubyte;
void drawByte(ubyte& b, int i, int j) {
int mask = ((1 << i + 1) - 1) & ~((1 << j) - 1);
b |= mask;
}
void drawLine(std::vector<ubyte>& screen, int width, int x1, int x2, int y) {
int startByte = width*y + x1/8;
int endByte = wid... |
b9312550faaa4b0596c6866719bb691432823822 | d99308722d63c38daf8697aac46e454db9004252 | /triss/src/client/Connection.h | c8a4a415cb2df6b813ee361073aaecfef9d5925c | [] | no_license | przemekpastuszka/Triss | 5bf38011a328727c208dbb6183cf4e90fb2a6430 | 7087c71baaefbb1824f261267924a0c2d564a68a | refs/heads/master | 2021-05-26T20:03:52.083043 | 2013-06-11T21:11:48 | 2013-06-11T21:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | h | Connection.h | /*
* Copyright 2012 Michał Rychlik
*/
#ifndef TRISS_SRC_CLIENT_CONNECTION_H_
#define TRISS_SRC_CLIENT_CONNECTION_H_
#include <boost/asio.hpp>
#include <boost/tuple/tuple.hpp>
#include <string>
#include <vector>
class Connection {
private:
Connection(const Connection& c);
boost::asio::io_service io_service;
... |
f697e089350a5d69c5a49cdcbcaad24cb37874ea | 5ad33c22eb4531f41a3aaff28fa2a256538a2aee | /googletest/test/gtest_repeat_test.cc | f67b7886e1a3cc262c0d295907d78d3889b6d5ee | [
"BSD-3-Clause"
] | permissive | google/googletest | abe74c32dccf56afd140275ccaf1dd083e7b52e1 | 8a6feabf04bec8fb125e0df0ad1195c42350725f | refs/heads/main | 2023-09-05T14:59:43.435465 | 2023-08-25T14:45:33 | 2023-08-25T14:46:02 | 39,840,932 | 33,962 | 12,824 | BSD-3-Clause | 2023-09-14T02:37:48 | 2015-07-28T15:07:53 | C++ | UTF-8 | C++ | false | false | 7,698 | cc | gtest_repeat_test.cc | // Copyright 2008, Google Inc.
// 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 conditions ... |
e09e97ab725c9f77d9a9ad0fae97c33de14dd53d | 99aaf505f9fae90731aba60fca223abaee228f68 | /faq/leetcode/oj/swap_node_in_pairs.cpp | 604410507ee77d490c75a7d1fa5c48e188b588f6 | [] | no_license | pamd/foo | 13c3c354141b456f79274787aeb3e71c1f26e56b | 52ce658f3adac4aa618706d1256ead26e90ab6fe | refs/heads/master | 2016-09-05T14:35:22.727306 | 2015-12-27T22:42:58 | 2015-12-27T22:42:58 | 31,291,416 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,035 | cpp | swap_node_in_pairs.cpp | /* Leetcode OJ: Given a linked list, swap every two adjacent nodes
* and return its head. For example, given 1->2->3->4, you should
* return the list as 2->1->4->3.
* Your algorithm should use only constant space. You may not modify
* the values in the list, only nodes itself can be changed.
*/
// Definition f... |
def5c6ef66d7331739a9a38cb5e581867fb33eea | 18b9c8e0b0bcfdc6a4eb7abc53ce1bbf2b400bc0 | /Point.h | e2f6fc1f9b635d9df6a71f8a0a6a2cd3c7110258 | [
"MIT"
] | permissive | Garydos/conways-game-of-life-windows-cmd | 0584e2d2ac8836db056fb061fa6423a979671f99 | 3bc568c9e52ea3915f2079ab1d8d2efd5abcbd2a | refs/heads/master | 2020-04-20T08:32:22.378023 | 2019-02-01T18:53:40 | 2019-02-01T18:53:40 | 168,741,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | h | Point.h | #ifndef GUARD_POINT_H
#define GUARD_POINT_H
#include <iostream>
#include <string>
class Point {
private:
friend std::ostream& operator<<(std::ostream&, const Point&);
int x;
int y;
public:
Point() {}
Point(int x, int y) : x(x), y(y) {}
int getX() const;
int getY() const;... |
046ef2d4953208eb437fb24bff89c17d6c93d135 | e6962eb67fead60da3df5b432a518b6efd85376d | /src/main.cpp | 494eae7837cfe47b8df89298ec8bc6b6370b34b7 | [] | no_license | Trobolit/data_gather | 2da8e7d6fc5891568a9501ffe6a7fcb9cb8e308c | d49c6d70da33da21f0b4e7d2a69b7af8a11cd948 | refs/heads/master | 2020-04-02T13:40:35.358153 | 2018-10-24T11:45:34 | 2018-10-24T11:45:34 | 154,491,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,833 | cpp | main.cpp |
#include "ros/ros.h"
#include "sensor_msgs/Joy.h"
#include "geometry_msgs/Twist.h"
#include <time.h>
#include <math.h>
#include "std_msgs/Float32MultiArray.h"
#include "std_msgs/MultiArrayLayout.h"
#include "std_msgs/MultiArrayDimension.h"
#include "std_msgs/Bool.h"
//constant setup variables change those values her... |
745293ff353e58cab533ac83020c8196a6686d94 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5630113748090880_0/C++/tobielf/B.cpp | 1dd1cbbd5b4a056b069e6e9cb68bf1827880d95a | [] | 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 | 558 | cpp | B.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
int T;
int t;
int i, j;
int N;
int heights[2510];
int h;
freopen("B.in", "r", stdin);
freopen("B.out", "w", stdout);
cin >> T;
for (t = 1; t <= T; ++t) {
cin >> N;
memset(heights, 0, sizeof(heights));
for (i = 0; i < 2*N-1; ++i) {... |
18cb64109e29773c82868b570aa58f38fe5fe618 | d0ae3ac5c9b8d5a70b006d030bd1ca3801cc4533 | /HazelcastCppClient/Client/HazelcastClient.hpp | b73fa5f43c6fa0f70bef1d49b8c7fd03720ed37e | [] | no_license | ismylhakkituran/HazelcastCppClient | ea34a07cfeadca784bbfabdcc306e662e98b8ca8 | ae349b996b8d1f3993ed1022c8744737192979c3 | refs/heads/master | 2020-04-22T19:34:52.467036 | 2012-07-27T12:52:09 | 2012-07-27T12:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,338 | hpp | HazelcastClient.hpp | // Definition of the ClientConfig class
#ifndef HazelcastClient_class
#define HazelcastClient_class
#include <vector>
#include "ClientConfig.hpp"
#include "../Connection/Connection.hpp"
using std::string;
class HazelcastClient // : private Socket
{
public:
HazelcastClient ( ClientConfig& clientconfig );... |
59a1b1b597d55a107f7a9843e5cdf581ea7fb046 | 803b666adae190848ce17c6c79f014b0cb28c757 | /2.std::vector/vector.cpp | c3f9773d2394ed9e4dd715295424a3b306d9f631 | [] | no_license | raj5036/CPP-STLs | 9e2a22a5dae75996e28402f02e8d03458bec81fc | 46a6889d002240c0c832a4b1ac030e4a2195dae0 | refs/heads/master | 2022-12-07T07:45:20.541061 | 2020-08-18T12:29:24 | 2020-08-18T12:29:24 | 282,259,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | cpp | vector.cpp | #include<bits/stdc++.h>
#include<vector>
using namespace std;
int main(){
vector<int> v;
//To reserve a specific size of the vector so that the system doesn't go through a lot of workload which causes due to dynamic resizing of the vector.It saves time
v.reserve(10);
for(int i=1;i<=10;i++)
v.push_back(i);
f... |
5961cafbcc24c252d2c14c6d7f3c8e75a3b9d068 | a5a1a876cb0811420b327456b3111702aee19012 | /WTL/io/Console.hpp | 53f3beec2deb698163809af114589e103c8ca76a | [] | no_license | CyberSys/Win32-Template-Library | ab2f761bad0c19058bcadd50c00b31b495847480 | d53b1ad90b9414944f25179130d467edb29ad75d | refs/heads/master | 2022-02-15T12:45:32.005469 | 2016-02-28T22:02:39 | 2016-02-28T22:02:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,001 | hpp | Console.hpp | /////////////////////////////////////////////////////////////////////////////////////////
//! \file wtl\io\Console.hpp
//! \brief Contains the buffer, manipulators, traits, and stream type for a custom output stream
//! \brief that supports writing formatted coloured text to stdout through the Win32 console API
//!... |
b8b619c480d633720421bc8c9e87f545fdc9aa60 | 3b027f2f1f1221a5bc262daf0533d6f7fe8e8c40 | /DynamicPatcherInjectorDLL.cpp | 512cebed51f8d0d4674f6dd4b7f5de9893e76166 | [
"CC-BY-4.0"
] | permissive | bryant1410/DynamicPatcher | e3bbc2044921f815fe784a559a77c681463d9cf1 | e6a4eed594e89481ac306df02138deac0e3ed79c | refs/heads/master | 2021-01-19T19:50:37.027577 | 2017-04-16T23:25:11 | 2017-04-16T23:25:11 | 88,448,745 | 0 | 0 | null | 2017-04-16T23:25:12 | 2017-04-16T23:25:12 | null | UTF-8 | C++ | false | false | 538 | cpp | DynamicPatcherInjectorDLL.cpp | // created by i-saint
// distributed under Creative Commons Attribution (CC BY) license.
// https://github.com/i-saint/DynamicPatcher
#include <windows.h>
#include "DynamicPatcher.h"
dpAPI void dpBeginPeriodicUpdate();
dpAPI void dpEndPeriodicUpdate();
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReas... |
48d0bc09a4ad9fbe62b4d637a3516395fa6a103c | 5ccbe86a8e2932e8500ecce2f41327ea0ce2a981 | /Src/UI/TextOutput.cpp | c33e4011edcba98a8011f06e04e18fa8f62005d4 | [] | no_license | TheChriggu/SlayingDemons_ | 753dffe67d066675f6e2a835869bece473221d52 | b448778bc9e294f4eb0d9e262827abd85e48cb19 | refs/heads/master | 2022-07-12T11:29:47.658494 | 2020-05-14T15:52:50 | 2020-05-14T15:52:50 | 259,582,263 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,218 | cpp | TextOutput.cpp | //
// Created by christian.heusser on 06.11.2019.
//
#include "TextOutput.h"
#include <iostream>
#include <memory>
#include <Event/EventSystem.h>
#include <Event/TextOutputCreatedEventArgs.h>
#include <Event/LineToOutputEventArgs.h>
#include <ScriptEngine/ScriptEngine.h>
#include <Event/FontsCreatedEventArg... |
92cc0deb1465ef89e5ff4b34ffa5e2d7180eed50 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5639104758808576_0/C++/cmonkey/GCJ2015-Q-A.cpp | 070fe8f47fb070c39eb2678602d089c99dc4982d | [] | 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 | 672 | cpp | GCJ2015-Q-A.cpp | #include <cstdlib>
#include <cstdio>
char shy[1010];
int main(){
int T, t, smax, sum, ans, i;
FILE* fin = fopen("A-small-attempt1.in", "r");
FILE* fout = fopen("A.out", "w");
fscanf(fin, "%d", &T);
for (t = 1; t <= T; t++){
fscanf(fin, "%d %s", &smax, shy);
ans = sum = ... |
3c23b369e545c176e83a964d0150b60fde182d9a | cd705effab268c82f9299c06d4fce2f3f7ef2fc2 | /comp345-proj/PlayerBase.h | 804b05b74bd8a4b0325b711dea5a81776622d36f | [] | no_license | hrachyahakobyan/Pandemic | bd9c8d6f63e4912ab179dcde76e2312d582c5a8c | b962cbb60ded8e87d104a2efeb73273b6b478470 | refs/heads/master | 2021-01-20T12:09:34.029896 | 2017-04-18T04:44:00 | 2017-04-18T04:44:00 | 83,480,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,498 | h | PlayerBase.h | #pragma once
#include "Role.h"
#include "detail\Deck.h"
#include "ReferenceCard.h"
#include "Cards.h"
namespace pan{
/**
* @brief Base class for player objects.
* @author Hrachya Hakobyan
*/
class PlayerBase {
public:
virtual ~PlayerBase();
bool operator==(const PlayerBase&) const;
inline bool operator!=(... |
89f8d5dfa9c5af1d636b3303b7c307c7985037d4 | c40bb35033f6b88a1cb78b3baa1999f5cbf7fdb9 | /City.h | d6a15eeec61b34a7d5b501c1465b8057e0065be0 | [] | no_license | 7NGU/GitTest | 21f1ce59e8dff59ce60f05ca8b759997e6b4c33b | a9fbaa46c4da53d0bbd3c71f1bdbc122792eddd0 | refs/heads/master | 2021-04-04T12:34:57.183809 | 2020-03-19T09:43:27 | 2020-03-19T09:43:27 | 248,457,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,429 | h | City.h | ///
/// @file City.h
/// @author lemon(haohb13@gmail.com)
/// @date 2019-05-28 21:15:53
///
#pragma once
#include "Types.h"
#include <vector>
using std::vector;
namespace warcraft
{
class City
{
public:
City(size_t id, size_t elements = 0)
: _flag(Color::NOTSET)
, _id(id)
, _elements(elements)
, _... |
307ab15d243db3abb7c26b720ba0e0030f2be2de | 83dbc5115cf7e8a48aaff3c78b8bb530dc72bc32 | /src/widgets/colorarea.h | 5f93e086bc978475235454e3845b1aea3ff72891 | [] | no_license | Gris87/ProtocolCreator | 70ff4b019de36688985ac04fe69a93e5b42f546d | b178307776f68d9fe1a1949ccfc74a9ee8911b93 | refs/heads/master | 2020-06-06T12:53:58.698298 | 2012-11-05T17:07:49 | 2012-11-05T17:07:49 | 2,945,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | h | colorarea.h | #ifndef COLORAREA_H
#define COLORAREA_H
#include <QFrame>
#include <QPalette>
#include <QPainter>
#include <QScreen>
#include <QColorDialog>
#include <QMouseEvent>
#include <QDesktopWidget>
#include <QGridLayout>
#include <QApplication>
class ColorArea : public QFrame
{
Q_OBJECT
public:
explicit ColorArea(QWi... |
dad45dccfce8782fc8ea1d71d1857979ccad90cb | b13f3102af4ab13423baafb756f233af2076e0d3 | /src/fonts/FreetypeFont.cpp | b481ec2cedd8223547c197c083cdd44e7c8173d7 | [
"MIT"
] | permissive | feliwir/charta-pdf | 3adc69df40e87b8404229d5d2f12227c19e2211d | d9102224c5d922b559373f91d087ef72caf36b41 | refs/heads/master | 2023-06-11T23:43:30.060533 | 2021-06-23T05:52:49 | 2021-06-23T05:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,229 | cpp | FreetypeFont.cpp | #include "FreetypeFont.hpp"
#include <iostream>
charta::pdf::FreetypeFont::FreetypeFont(FT_Face face, uint8_t *data, size_t size)
: m_face(face), m_data(data, data + size)
{
auto type = std::string(FT_Get_Font_Format(face));
if (type == "TrueType")
{
m_subtype = FontType::TrueType;
}
... |
9bac75548e77dbeee029f457e160af9948e13ce0 | 6cea3597595754b7c77d600e918c5f4c54a601be | /Cassandra Client Code/RtConnectionObj.hpp | 0e20b0b7f4f96e7f67ff093e57d20c5579c45492 | [] | no_license | LazyHippogriff/Cassandra-Ignite | f11cbc17f1719f74fdc8be77f1b4ba8b496a7c75 | a56fa07d60e63c94edd7c77acc8e2bca721a7575 | refs/heads/master | 2020-03-14T21:57:00.969571 | 2018-05-02T11:23:44 | 2018-05-02T11:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | hpp | RtConnectionObj.hpp | #ifndef __RT_CONNECTION_OBJ_HPP__
#define __RT_CONNECTION_OBJ_HPP__
#include<cassandra.h>
#include<stdio.h>
#include<iostream>
using namespace std;
class RtConnectionObj
{
static RtConnectionObj * m_instance;
public :
static CassCluster* ms_cluster;
static CassSession* ms_session;
static RtConnectionObj... |
d394895045df5e7c31d2c7b280804ae7b0fd4c2a | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_library/cpu_task/ops/l2norm/l2norm.cpp | dc7d736f917d45014a2ab976d813929a8dc398f7 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | C++ | false | false | 2,101 | cpp | l2norm.cpp | /*
* Copyright 2022-2023 Advanced Micro Devices Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
1d1010b8fa748d3d56eb11d16967fd9c543f13cd | 0b706b6e3561f5defbc35bb675c158046995ccf5 | /src/UI/main.cpp | 70bc2a823eba62eac9006ed0b1534ba4bbf0c290 | [] | no_license | leihtg/fmj_cpp | ce3baa87353aa1eccc298fc44c93f6ffe64dd389 | 3e3935d37bc63f078cdf0498b807469dbb25e820 | refs/heads/master | 2020-07-29T21:44:22.357817 | 2018-09-14T14:57:59 | 2018-09-14T14:57:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | main.cpp | #include <QtGui/QApplication>
#include "fmjwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
fmjWindow w;
w.setWindowTitle("fmj");
w.show();
w.run();
return 0;/*a.exec()*/;
}
|
19b5b84c79cd92104012efe8f333778af0b69d2c | ec2d6d2268d839932997c130aaaee0db0110936e | /cezar/main.cpp | 159cf5f7571ee930cf6ad360d160bbe83b6669d3 | [] | no_license | gaby22v/C- | 803256febf47dff3d90d208ebc288faa4fbeb725 | aacc7c22e2b2e61d098e0722ba96036da52c1772 | refs/heads/master | 2016-09-15T22:54:37.686567 | 2016-03-12T23:37:42 | 2016-03-12T23:37:42 | 27,445,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | main.cpp | #include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <string.h>
#include <iomanip.h>
int n;
void alfabet_initial()
{
for(char i=65;i<=122;i++)
{
if (i!=91&i!=92&i!=93&i!=94&i!=95&i!=96)
{
cout<<i<<' ';
}
}
}
void alfabet_defazat()
{
cout<<endl;
cout<<"defazajul alfabetului "<<endl;
c... |
07261b6e692a733980e5ef9b09f8549fd60acbcf | d4254d0a4206a6b15a670d94d0f554b26dc67487 | /year2/COS2614/Assignment 1/question2/coordinate.h | 9bd4196450159d0b90cc893ada4f591c37c123d5 | [] | no_license | luyandamncube/UNISA | 0c0378bedc2de72f4e478b8c4635b204ee3cc1e4 | 770647e583f6c786449729bb7ed096206136f346 | refs/heads/master | 2022-02-12T02:20:11.762040 | 2022-01-31T02:27:29 | 2022-01-31T02:27:29 | 244,408,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | coordinate.h | #ifndef COORDINATE_H
#define COORDINATE_H
#include <QString>
class Coordinate {
private:
int degrees;
int minutes;
int seconds;
QChar direction;
public:
//Constructor
Coordinate(int degrees, int minutes, int seconds, QChar direction);
QString toString();
... |
9e282fcf3d8cd43c1565b77664eb39dba0f53555 | 7c910ee551b968ff50c01f7cfd8add84cbdd1142 | /include/byom/ext/qmap.hpp | 2bc12dbfa6c600365a5412ec3b9458bc5c4f6368 | [
"ISC"
] | permissive | purpleKarrot/BYOM | a9a4fc4b12db63b1054d632fe4a6e78082489462 | 1de5f53a1185b37676d76399bd67ff9e08ad828a | refs/heads/master | 2021-01-10T04:44:12.045122 | 2016-02-05T20:27:15 | 2016-02-05T21:48:40 | 47,145,374 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,649 | hpp | qmap.hpp | // Copyright (c) 2015, Daniel Pfeifer <daniel@pfeifer-mail.de>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS ... |
3a544ac7253160529a2c88595a09b3d0100c0958 | d3056a23d41e2f43a77121663179bc7eaf9eec34 | /BOJ/boj_1697.cpp | 718684f4f04490b2d865c5c9783c4168deeb6e1a | [] | no_license | eojine/algorithm | 7e243e1993a16a3bcf33ea1920084846455dc93d | 5ed225d0f9f15a2c7e92059630cc63fdb017ac0c | refs/heads/master | 2021-06-24T08:18:45.804004 | 2020-12-31T07:45:23 | 2020-12-31T07:45:23 | 182,960,328 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | cpp | boj_1697.cpp | #include <cstdio>
#include <queue>
using namespace std;
queue<int> q;
int visit[100001];
int n, k;
int cnt = 0;
int main() {
scanf("%d %d", &n, &k);
q.push(n);
visit[n] = 1;
while (!q.empty()) {
int size = q.size();
for (int i = 0; i < size; ++i) {
int v = q.front();
... |
47fb6ef58d585420961ccc1d705f48f4a3ae06a6 | 2b1b459706bbac83dad951426927b5798e1786fc | /src/proc/tests/chromiumos/syscalls/socket_test.cc | 9befdf302ff12361cecae35592fd6ee523e14ed2 | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 4,935 | cc | socket_test.cc | // Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#include <asm-generic/so... |
3a845ca4559a772b1b18626698a6d656d17a9e56 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_18884.cpp | 2f70803e7601a6b2eaa89bd1cc51f11b46860af7 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | cpp | Kitware_CMake_repos_basic_block_block_18884.cpp | (i = 0; i < count; i++) {
uv__free(cpu_infos[i].model);
} |
c34fcd5dc1b79b45515a3f78fbb9e1be5a8a49e5 | fdafc70a732badc2b32cad9b059925cd2591a3ec | /MetadataCopy/MetadataCopy/register.cpp | a45e3d95dbdcb98ad5ca74050a27337952ec8e88 | [] | no_license | RobinZhouAu/weilai | de11b121993b287f5b4cecccff4110eee3cc7dd5 | ea6ec3d8f0a18fb901b457eb05dffcac4f327830 | refs/heads/master | 2021-03-22T00:12:29.390226 | 2016-11-05T11:21:40 | 2016-11-05T11:21:40 | 64,991,818 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,202 | cpp | register.cpp | // Register.cpp: implementation of the CRegister class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "search.h"
#include "Register.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
///////////////////////////////... |
b9f6ae706346a28eb2386bcbd7fe5362337a739f | 2c811434dd9cc3bb54d64f92733c40ddd3fa0383 | /UVa-AC/uva 341 Non-stop Travel.cpp | 344c45bef7e73da4bd894d3ed1abd12ef2d67327 | [] | no_license | gmtranthanhtu/competitive-programming | 457e5cc16ede75d9496ac195de845ebe8d6e5664 | d765002704e2a8cf547cbe67f0f9a31db88bfc9b | refs/heads/master | 2021-01-23T08:56:52.594506 | 2014-11-01T09:52:12 | 2014-11-01T09:52:12 | 26,047,176 | 3 | 3 | null | 2020-10-01T14:15:30 | 2014-11-01T09:55:03 | C++ | UTF-8 | C++ | false | false | 3,463 | cpp | uva 341 Non-stop Travel.cpp | /*
Name: UVa 341 Non-Stop Travel
Copyright:
Author: 3T
Date: 31/05/11 00:08
Description: graph, dijsktra
*/
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 50
#define BIG 99999999
int Case(0), N, n, a, b, S, E, p, C[MAX][MAX],... |
234850928c114c5f41f58c4d36a6ec66c5ce9e03 | 151bcfc3cab30d635f1d048c80ca7f0332db3b9d | /common/resource.cpp | e158a40926a46714f6687d8d4e43ba9f453f51a0 | [] | no_license | alinelena/sink | 1c3928d1f8d48b24df6354a6ef3f70fffb03024a | cbb192ffe865ffb3eed4c940177ffecaecfa570f | refs/heads/master | 2021-01-15T10:36:06.801649 | 2015-02-09T11:58:34 | 2015-02-09T11:58:34 | 65,147,167 | 0 | 0 | null | 2016-08-07T18:09:21 | 2016-08-07T18:09:20 | null | UTF-8 | C++ | false | false | 4,202 | cpp | resource.cpp | /*
* Copyright (C) 2014 Aaron Seigo <aseigo@kde.org>
*
* 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 Software Foundation; either
* version 2.1 of the License, or (at your option) version 3, or any
* ... |
286940fb4b86d8880141d5de4f393d5e8e684d51 | 6637c6eeed6044338f45d86a3ee8843961de0c43 | /avaliacao1_vitor_emanuel/conta_corrente.h | 8d529760b21f9c1bdd7b6eff2acd5c203ef76aa6 | [] | no_license | vitoremanuelpereirasilva/INF112 | 147c9ac5d418f0d05e2878ee211b930497e28e32 | d4ed69bd4d3ecd7edf9f8ad227fa52f5e234bde6 | refs/heads/main | 2023-05-06T04:36:22.813233 | 2021-06-01T22:49:42 | 2021-06-01T22:49:42 | 372,979,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | h | conta_corrente.h | #ifndef CONTA_CORRENTE_H
#define CONTA_CORRENTE_H
#include <string>
#include "conta.h"
class contacorrente : public conta{
private:
public:
contacorrente(std::string name,std::string cpf, double saldo);
};
#endif |
e72dccc343981edfd607874f526aeeb97f78152e | 0c4afe621423b8d3c6b0a551f16e5f72f2725aa0 | /prob6.cpp | f0be91deb6a2d99a926d0a6909afa6361172f5a4 | [] | no_license | jenil123/competitive_coding | 2c7b110174d993d8cb0c7a031304e9911510e6ab | ea66244a5e4f34ae7ea34e963733de0546b289ea | refs/heads/master | 2022-12-04T16:46:52.502875 | 2020-08-24T05:22:36 | 2020-08-24T05:22:36 | 115,807,725 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | cpp | prob6.cpp | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
vector <ll> a(3);
vector <ll> c(3);
ll i,j;
for(i=0;i<3;i++)
{
cin>>a[i];
}
for(i=0;i<3;i++)
{
cin>>c[i]... |
fbf1c79ef3082d6bed075ef464518bc2f58d970e | d6b0c51999cecf65d5be208fab74bb8a199eb0ac | /MagicCube/Manipulation.h | efb5c2fefa44d032be710cd11fcdaeba6542c41a | [] | no_license | k-l-lambda/klsmagiccube | 5076e6be0a729ff8741d960e44e5fb061c473b08 | 1cfb166f537573b7e64d902085075ff0e99b9166 | refs/heads/master | 2016-09-05T22:12:35.513552 | 2011-02-10T16:17:38 | 2011-02-10T16:17:38 | 32,123,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | Manipulation.h | /*
** This source file is part of K.L.'s MagicCube.
**
** Copyright (c) 2008 K.L.<xxxk.l.xxx@gmail.com>
** This program is free software without any warranty.
*/
#ifndef __MANIPULATION_H__
#define __MANIPULATION_H__
namespace MagicCube
{
struct UnitCube;
enum Manipulation;
void manipulation(Uni... |
c7f14d312fec9f630d10b112031059d2cea97087 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ash/system_extensions/system_extensions_internals_page_handler.cc | 2a3adea4deedc9b0d4796ea144c76db27e0f4f57 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 3,111 | cc | system_extensions_internals_page_handler.cc | // Copyright 2021 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/ash/system_extensions/system_extensions_internals_page_handler.h"
#include "base/debug/stack_trace.h"
#include "base/functional/callback_helpers.h"
#i... |
574394fb0eeab21519fa014e162083eed8f92dbb | df82d249dbab2a47ca4fbee5cde7482aac482949 | /fall2013/cop3530/ass_2/main (copy).cpp | 33fcdc95aa2b7ed229feb0809ede0571fa6334c2 | [] | no_license | makslevental/school_work | e0ee01f008cb3afda14d11befa74ed8023949a55 | 982a874366eba361f0205b5e55d80dda3b564c92 | refs/heads/master | 2021-06-01T22:42:31.598338 | 2021-05-29T20:45:45 | 2021-05-29T20:45:45 | 16,900,294 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,280 | cpp | main (copy).cpp | /*
Name: Maksim Levental
UF ID: 3186-7826
Gator ID: mlevental86
Discussion Section #: 1085
*/
#include <iostream> // necessary for cout, string, isdigit
#include <ostream>
#include <sstream> // necessary for stringstream
#include <cstdlib> // necessary for exit()
#include <locale> // locale, tolower
#include ... |
5a519eb9943ff86087dea1ae978623c9aa994406 | 6e61611828817438b452dbcf518d0f78e7e89115 | /数组.cpp | bbbcd5fef8291647c7772da5eb9f5f04528947f0 | [] | no_license | fsp-ending/OJ | 2c395e6653ac5ac73f25d6f46e2df27d2655ac20 | 1f95b4cb93061ace53e5092c97affeb8815e1d79 | refs/heads/master | 2022-07-13T06:21:09.178126 | 2020-05-18T22:23:01 | 2020-05-18T22:23:01 | 260,235,240 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | 数组.cpp | /*************************************************************************
> File Name: 数组.cpp
> Author:
> Mail:
> Created Time: 2020年05月10日 星期日 20时10分49秒
************************************************************************/
#include<iostream>
#include<cstdio>
using namespace std;
void func(int *a) {
p... |
95fc35cf9b02bd7be44aee748e1627949e5aa49a | 9be573b87220a3f9c02f17b987b16dc90ac6b048 | /keshe/train/deletetrain.h | 1cceb849ec7061710dd5b4ee0e729e246381e5fc | [] | no_license | shuai1126/keshe | c72aeae176aa947f49a2a3fe8778acabbe10a365 | fab075306412c645a5746b8812db26608b055a54 | refs/heads/master | 2020-03-22T10:42:50.991682 | 2018-07-13T01:30:18 | 2018-07-13T01:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | h | deletetrain.h | #ifndef DELETETRAIN_H
#define DELETETRAIN_H
#include <QSqlDatabase>
#include <QDebug>
#include <QtSql>
#include <QMessageBox>
namespace Ui {
class DeleteTrain;
}
class DeleteTrain : public QWidget
{
Q_OBJECT
public:
explicit DeleteTrain(QWidget *parent = 0);
~DeleteTrain();
private slots:
void on_p... |
c74842726dd07081d0628a0617f1882e83add7e3 | e508fa70f2c1fa69e2a30abf28dffd158acbdeca | /BST/BSTC++Style.cpp | 6a70fe70ea03cb6f7ad29241f7a5805083e112a7 | [] | no_license | ShahPranav1094-Courses/Algorithms-DataStructures | 2f35e9ccc1dd22ba0b1a57ce5e1df60f62876c17 | 6243bd0c8f40eb89f99255d54e13e884dc5e4f88 | refs/heads/master | 2020-07-27T08:29:00.261022 | 2020-04-25T11:21:46 | 2020-04-25T11:21:46 | 209,030,183 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,995 | cpp | BSTC++Style.cpp | /* ------------------------------------------------------------------------------------
Node Header (Node.hxx)
------------------------------------------------------------------------------------ */
#include <iostream>
using namespace std;
/* Class Node */
class Node
{
public:
int data; // Data to b... |
fc1016363b19147778db8d85b598f3a2b1ebe398 | 017ac0d879d635947aaa2b12f6594881a85cfee8 | /main.cpp | 306858fe5052735da059e2600c771bb4ee893816 | [] | no_license | Amey-Jain/OOP-gst_calc | b2859d1aa8a0c5fcec8e2fcde89e30dee8dbd347 | f08ba9341db9b6ffa9d4caa47fad6fb149b4bbbf | refs/heads/master | 2020-03-25T15:54:43.380333 | 2018-08-14T11:27:53 | 2018-08-14T11:27:53 | 143,906,688 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,062 | cpp | main.cpp | #include <iostream>
#include <string>
#include <cassert>
#include <cstring>
#include <bits/stdc++.h>
#include <cstdlib>
#include <list>
#include "db.h"
#include "product.h"
using namespace std;
// class to hold all of items
class ilist {
public:
ilist();
int enter_item(string item_name, double item_units); //tak... |
6380a052c323c3fcfc876bad30c44533d6b7c7bd | e09b3ccecaf599be9c0e2052d2bee6830864f472 | /libgbstd/roll_menu.cpp | 0422d3910bdd3ee9131870be6a813dce057a84a0 | [] | no_license | mugisaku/gamebaby-20180215-dumped | 8811fa990b872e3118dd6fa0082e34db7df2861c | 13845aab5d7f73744d72b41eb6090ec2a96de968 | refs/heads/master | 2021-09-07T01:03:45.120942 | 2018-02-14T15:32:17 | 2018-02-14T15:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,735 | cpp | roll_menu.cpp | #include"libgbstd/menu.hpp"
namespace gbstd{
namespace menus{
roll_menu::
roll_menu(const menu_base& base, int col_n, int row_n, point pt) noexcept:
m_base(base),
m_number_of_columns(col_n),
m_number_of_rows(row_n)
{
window::resize(m_base.get_item_width()*m_number_of_columns+16,
m_base.get_... |
52dda380a3a9f76895c21cbde867417f3ef60601 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_old_hunk_4841.cpp | b9719449a5905a39bf45f708534ab7d634a56553 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | httpd_old_hunk_4841.cpp | */
apr_table_addn(r->headers_out, "Cache-Control", "no-store");
apr_table_addn(r->err_headers_out, "Cache-Control", "no-store");
/* if set, internal redirect to the logout page */
if (conf->logout) {
apr_table_addn(r->headers_out, "Location", conf->logout);
return HTTP_TEMPORARY_RE... |
cb56d360c4d2ddf390a7fefc8f304ae4c81a4303 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-lexv2-models/include/aws/lexv2-models/model/TestResultMatchStatus.h | e317342fb60a82e9f433be2fc7f857c98bd38f97 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 744 | h | TestResultMatchStatus.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace LexModelsV2
{
namespace Model
{
enum class TestResultMatchS... |
7cf5241d45f8dfe50108ff1bde1f505a44a33012 | c5e143d2e0a98dfe6746494f9c05fd25086b3b4a | /itlPlace/src/Buffering/NetBuffering/VGVariantsListElement.h | be5de523b4fe89e2e3f8273e251d7058c139fb3c | [] | no_license | babooppa6/vlsi-experimental | ff3d5a7f34d6034b1ca3c58a7ec6ea79ceb1bd2d | b1d1fbb88ef34ca75c2120481d180b503927dc0b | refs/heads/master | 2023-07-23T09:48:03.106961 | 2014-02-13T05:05:38 | 2014-02-13T05:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,192 | h | VGVariantsListElement.h | #ifndef __VGVariantsListElement_H__
#define __VGVariantsListElement_H__
#include "stdTypes.h"
class BufferPositions;
class VGVariantsListElement
{
public:
VGVariantsListElement();
bool operator > (VGVariantsListElement& element);
bool operator < (VGVariantsListElement& element);
bool ope... |
4f987082a3f491d533cf0e7675e7b90193f0eb2f | 974f810f4634788b13bcb5c2ac717fff375ab924 | /modules/RenderManager/src/SizeComponent.cpp | c70a78b8426d7c536ab2f453be9b2285dd77b96b | [] | no_license | mrtrizer/FlappyEngine | c5a38974e6ef5d9106bc9dfe8ccfefd98ed58f3e | 57e7598f9b84c95b17cd332f4f06ac40f8f10467 | refs/heads/master | 2020-04-04T06:11:41.067587 | 2019-01-09T21:35:29 | 2019-01-09T21:35:29 | 53,366,417 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 97 | cpp | SizeComponent.cpp | #include "SizeComponent.h"
namespace flappy {
SizeComponent::SizeComponent()
{
}
} // flappy
|
9f86a2215b7e30ee9d3303c52896c4d3705ab4d7 | 2eb738eff0051d3ffa1a932376697565f94cc4d8 | /include/tiva/tiva.hpp | b9f7a3f57a9912208ff3017f044b07d3b37688d9 | [
"MIT"
] | permissive | akowalew/tivapp | a90b8cc8f7263c3118a3e6124e3f45b369ddebb5 | ba69d4aa0de2aac69881b7ee7b05cd4211304b99 | refs/heads/master | 2021-05-09T20:30:27.017949 | 2018-02-01T14:22:37 | 2018-02-01T14:22:37 | 118,696,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | hpp | tiva.hpp | #pragma once
#include "tiva/gpio.hpp"
#include "tiva/sysctl.hpp"
#include "tiva/uart.hpp" |
784699be2010fd58efe68dff9772ae607647d365 | 1d9f95efd87912b8e71c32c93402ee84bc503f88 | /util.h | ae2b75e50c0ccfc482797ff5ec1bd35bfb04b0cf | [] | no_license | rsatchel/Dijkstras-Shortest-Path | b4e02aec7e1a0a2b9331865a6c2475c6e758dd92 | ff0117a571d33df098a2af91d6af904fa9b51365 | refs/heads/master | 2021-01-20T13:27:25.559022 | 2017-05-07T00:10:43 | 2017-05-07T00:10:43 | 90,497,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | h | util.h | // util.h
// utility files used for heap operations
#ifndef UTIL_H
#define UTIL_H
#include <iostream>
#include "heap.h"
//using namespace std;
void swap(struct VertexNode *E1, struct VertexNode *E2); // swaps 2 specified elements
int parent(int i); // returns parent of specified element
int left(int i); ... |
ee107068abc8b965e0e148ee01fecc1ac83ee8ce | 200bcd98cb4b7dbd86589427736323f90ea003f4 | /blog_coderust/graph_bfs/equal_greedy/equal_greedy.cpp | 9495b2358e1d960aab601080c9539b92351cf020 | [] | no_license | amalphonse/Tech_Interview_Prep | c022a9d3af647006848f0d9a59a84ee9d907e9a2 | a2ffb81337ea88061ebe05bf3aaa76bf1108ed94 | refs/heads/master | 2021-01-01T18:36:22.928837 | 2017-12-05T20:08:18 | 2017-12-05T20:08:18 | 98,376,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,494 | cpp | equal_greedy.cpp | /*
Christy is interning at HackerRank. One day she has to distribute some chocolates to her colleagues. She is biased towards her friends and may have distributed the chocolates unequally. One of the program managers gets to know this and orders Christy to make sure everyone gets equal number of chocolates.
But to mak... |
4773bedff127858ba4ffb97d5cbcae578f544976 | cc4f275a62299c0fcecc65eb3ddf476d70c7f896 | /editor/src/editor/widgets/gameView.cpp | 2e010d1af5dc146ea1e8dcfc49f521728ff85802 | [
"MIT"
] | permissive | gamezoo/Cjing3D-Test | 31d794613fb899f40a4fb6d80134d9cbc060b537 | 711667cc7a62fc5d07e7cedd6dfbc57c64bfbfa2 | refs/heads/master | 2023-07-01T16:22:29.414792 | 2021-08-10T10:55:53 | 2021-08-10T10:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,550 | cpp | gameView.cpp | #include "gameView.h"
#include "gpu\gpu.h"
#include "imguiRhi\imguiEx.h"
#include "renderer\renderer.h"
#include "renderer\renderScene.h"
#include "renderer\renderPath\renderGraphPath3D.h"
#include "renderer\renderImage.h"
#include "renderer\textureHelper.h"
namespace Cjing3D
{
class EditorWidgetGameViewImpl
{
publ... |
48baac9004679a4e24f7635dc9e2b64c98f89f94 | c30c3466c34c41b49e8c8b2791e0d44ae6277cb2 | /Cowcycles/src/Cowcycles.cpp | 7624c0b1494bff5329dbf1faff486c5b84de0d03 | [] | no_license | theAnton-forks/Competitive-Programming-Portfolio | 784eb9ff5441f1a81f5501d690f9094698bc34c7 | fb3f099d7ecc37b9117d64faa4c1bdf89e1f18d2 | refs/heads/master | 2022-12-14T03:18:04.941318 | 2020-09-03T05:22:46 | 2020-09-03T05:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | cpp | Cowcycles.cpp | /*
ID: vlade.m1
PROG: cowcycle
LANG: C++
*/
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
const int maxn = 1e3;
int val[maxn];
int f, r;
int f1, f2, r1, r2;
vector<int> fl, rl;
vector<int> fb, rb;
double v[maxn];
double best_standard = 1e9;
void check(){
for(int i = 0; i < fl.size(); i++){
f... |
5aedcfcd5b89e27f7711f94d377fbc41173eb32f | c26ad913f9408b0cf713fcac1e9071727db87a37 | /codeforces/1244/B.cpp | d1dc2d41d51044d9b37b365a0a20ecabaa37c7ac | [] | no_license | anuragjha8/Codeforces | 40fe895b09b57f07a96528c71a0d66d33804f488 | 7805cadf24d3830d074864a6540bb959a065a63e | refs/heads/master | 2023-02-19T06:07:27.821578 | 2020-08-22T12:06:00 | 2021-01-22T06:09:49 | 331,848,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while(t--){
int n,x=0,y=0;
cin >> n;
string a;
cin >> a;
vector<int>v;
for(int i=0;i<n;i++){
if(a[i]=='1')
v.push_back(max(i+1,n-i));
//cout<<max(i+1,n-i);
}
sort(v.begin(),v.end());
y=v.size();
x=v[y-1];
if(y... |
5cb372faf9ad563593d75160983c9e0bc1eedfaf | 1acf60dd59c1078cce3cb694eeeabd771443c446 | /CSE109-SystemsSoftware/Prog5/Compiler/parser.h | af40ea20e699e1cd5fe398f305517060a1d64800 | [] | no_license | yay218/LehighCourseCode | 22918721105839ea45cb0bc5d512386ae66daace | 482f0a207aaf326383307911311f4ff6fa746b4a | refs/heads/master | 2022-11-02T04:41:47.390031 | 2020-06-06T22:07:26 | 2020-06-06T22:07:26 | 270,111,743 | 1 | 0 | null | 2020-06-06T22:06:12 | 2020-06-06T21:40:30 | Java | UTF-8 | C++ | false | false | 990 | h | parser.h | /* CSE 109
Yang Yi
yay218
Program Description: This program develops a lexical analyzer,
which will act as a tokenizer for the compiler we are developing in
class.
Program #5
*/
#ifndef PARSER_H
#define PARSER_H
#include "token.h"
#include "lexer.h"
#include <iostream>
#include <string>
#include <cst... |
4f73097963c4c8e895ad69cb60cbbc6293a6bddd | 1a64968217a2f85f01191c3982f2680f06840705 | /RavensbourneClient/polyline.cpp | 093f07ac0b09844c99aa114e41e39658028770f6 | [] | no_license | surgerydar/RavensbourneTable | 790172a5f9098c19b048f07e5c101f9c01a54192 | ac9cbf8a3759bc34c389d6cac9b17438c0fd8e8e | refs/heads/master | 2021-01-13T13:48:23.731282 | 2017-06-29T16:32:41 | 2017-06-29T16:32:41 | 76,140,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,072 | cpp | polyline.cpp | #include <QVariant>
#include <QVariantList>
#include <QVariantMap>
#include <QPointF>
#include <QLine>
#include <QUuid>
#include <QDebug>
#include <cmath>
#include "polyline.h"
const int curveResolution = 30;
const float distanceThreshold = 20.;
PolyLine::PolyLine() :
m_hasChanged(false),
m_lineWidth(4) {
... |
fb5fe8f97cd173d61635382687c743b5e724f626 | 6c742cb7ff21b7cfb88cf9106ca5c24b417dfe9f | /identClass.h | 8e65f1feda5e82793f206500d95453a38b57323b | [] | no_license | nomoreclowns/cs421hw3 | c7bc0ce24a9f8fffc1e34ce39a89eb1b4239cd4e | 5e8c47390bc2ea3ebb3c6aae1366cb57bb6c732f | refs/heads/master | 2020-05-19T13:05:24.427205 | 2014-03-11T07:39:57 | 2014-03-11T07:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | h | identClass.h | #include <string>
using namespace std;
class identDFA
{
public:
bool ident_token(string);
int q0(char);
int q1(char);
};
|
8589cec9e0aeac5ea4b4938fc3afea387765f2da | f023b5cb59c4b41e28617294b458822968c3aa4c | /lab06/huffman_tree_node.hpp | 8482f0a86704a711bf4cf502ab402d9938e8e5d1 | [] | no_license | wcdbmv/IS | 4efd24bc850740ba6e8a86d8d1bfcb3a36ca7e3b | d81125830b95b19446dd4bff6f99f16155d452ec | refs/heads/master | 2023-01-24T23:27:38.226840 | 2020-12-09T20:58:24 | 2020-12-09T20:58:24 | 297,056,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | hpp | huffman_tree_node.hpp | #pragma once
#include <cstdint>
#include "binary_tree_node.hpp"
struct HuffmanData {
using character_type = uint8_t;
using frequency_type = uint32_t;
character_type character;
frequency_type frequency;
};
using HuffmanNode = BinaryTreeNode<HuffmanData>;
|
dc36d250ae9c785db3ecdd56579f0bdea3feabbe | 2f6a9ff787b9eb2ababc9bb39e15f1349fefa3d2 | /inet/tests/unit/lib/TCPQueueTesterFunctions.h | b9f41b4e558bcc94df666175e05dcf7539453aeb | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | ntanetani/quisp | 97f9c2d0a8d3affbc709452e98c02c568f5fe8fd | 47501a9e9adbd6adfb05a1c98624870b004799ea | refs/heads/master | 2023-03-10T08:05:30.044698 | 2022-06-14T17:29:28 | 2022-06-14T17:29:28 | 247,196,429 | 0 | 1 | BSD-3-Clause | 2023-02-27T03:27:22 | 2020-03-14T02:16:19 | C++ | UTF-8 | C++ | false | false | 1,029 | h | TCPQueueTesterFunctions.h | #ifndef __TEST__TCPQUEUETESTER_FUNCTIONS
#include "inet/common/packet/Packet.h"
#include "inet/transportlayer/tcp/TcpReceiveQueue.h"
#include "inet/transportlayer/tcp/TcpSendQueue.h"
using namespace inet;
using namespace tcp;
// TcpSendQueue:
void enqueue(TcpSendQueue *sq, const char *msgname, ulong numBytes);
void... |
170d9ac3d59d877f72b70724af1345895e52fc29 | 33cc75a925b12133bc78fe0f307140878bb093b6 | /oia/train-2019/A2/8/main.cpp | da87de0ee85d0c0fa8f893942d771ce340d54905 | [] | no_license | redeff/cmp | 05603369f404cff25d168105b1f1c7a956fd07b8 | 8974bacf61b6c73d1cb5d3b5aa33c12af0d687d0 | refs/heads/master | 2021-05-08T01:10:47.542693 | 2019-10-13T22:19:32 | 2019-10-13T22:19:32 | 107,782,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
int n;
cin >> n;
vector<string> ns(n);
for(int i = 0; i < n; ++i) {
cin >> ns[i];
}
for(int i = n - 1; i > 0; --i) {
int k = 0;
while(k < ns[i].size() && k < ns[i-1].size() && ns[i][k] == ns[i-1][k]) k++;
... |
ef509afa8239599791f6e9d5eeb00b374ff77238 | 3b364f228714e23229096926b290ab83ae9c1f49 | /Linked List Practice/sll.h | 85d07291b3648ca6b0c2192510f599ccf295170b | [] | no_license | rbmauric/Linked-List-Practice | 5e4349be7aadddd138836d71fd8d7ec947a4e327 | cfb094696cf521c59604b26d6dfa0322d5bd0239 | refs/heads/master | 2020-09-06T11:24:20.650311 | 2019-12-02T02:59:57 | 2019-12-02T02:59:57 | 220,410,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | h | sll.h | #ifndef SLL_H
#define SLL_H
template<typename T>
class Node { //Singly linked list node contains a next pointer and an element
public:
Node() {
elem = 0;
next = nullptr;
}
Node(T elem_) {
elem = elem_;
next = nullptr;
}
T elem;
Node<T>* next;
};
template <typename T>
class SLL { //Singly linked list c... |
d23704a422222bd0e6e59bfd06e7be4b45aa1c81 | a134d441ce9207db8a75c6e97c87d19b7053aa8d | /robot_qubits.ino | a430ade01e3b986f6a0994b2d0b7989b42b305df | [] | no_license | thelegend831/Qubits-transporter-robot | 28623fd92e6b35ac18339ce99a3ea13e0ac4a788 | 82325b9cf456dfec1aee2e7a1fc8057db1e54031 | refs/heads/master | 2021-06-20T23:21:48.030634 | 2017-08-05T16:43:45 | 2017-08-05T16:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | ino | robot_qubits.ino | #include "Shared.h"
#include "Movement.h"
#include "Arm.h"
#include "LineFollower.h"
String cmd;
int cmdNum;
void readBluethooth();
void setup() {
//Setup pins
setupMotor();
setupArm();
setupLineFollower();
Serial.begin(9600);
}
void loop() {
if(digitalRead(P_LF_SWITCH) == HIGH){
autoDrive(... |
efd12b6abd42c0516f5681eb90269b4544d530bf | 5f975169aeb67c7cd0a08683e6b9eee253f84183 | /algorithms/medium/1536. Minimum Swaps to Arrange a Binary Grid.h | 01c8f09ff5a5e33bf65abfc86b27723a3f4e8a3a | [
"MIT"
] | permissive | MultivacX/leetcode2020 | 6b743ffb0d731eea436d203ccb221be14f2346d3 | 83bfd675052de169ae9612d88378a704c80a50f1 | refs/heads/master | 2023-03-17T23:19:45.996836 | 2023-03-16T07:54:45 | 2023-03-16T07:54:45 | 231,091,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,308 | h | 1536. Minimum Swaps to Arrange a Binary Grid.h | // 1536. Minimum Swaps to Arrange a Binary Grid
// https://leetcode.com/problems/minimum-swaps-to-arrange-a-binary-grid/
// Runtime: 132 ms, faster than 60.69% of C++ online submissions for Minimum Swaps to Arrange a Binary Grid.
// Memory Usage: 26.1 MB, less than 42.20% of C++ online submissions for Minimum Swaps to... |
9b92607fd5e8367fc190023c3f018e6538904a79 | 686af39e5a17176a7a6d43effa442af69e5001e7 | /CP_Handbook/dynamic_programming.cpp | c8882e5bb257cfca19ea0a82ba3abeafdaef8026 | [] | no_license | mady16/MycppCodes | aba2756d1e96b658bde0c24cb6187138f463c517 | e3e3b4f2b2f071a567c65f33297442742092235f | refs/heads/master | 2022-02-23T02:55:11.809075 | 2019-09-20T19:16:01 | 2019-09-20T19:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,100 | cpp | dynamic_programming.cpp | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define foreq(i, a, b) for (int i = a; i <= b; i++)
#define forless(i, a, b) for (int i = a; i < b; i++)
#define rforeq(i, a, b) for (int i = a; i >= b; i--)
#define rforless(i, a, b... |
13213ee2ba94d08b2badd7aa1b4e6615ce6030a2 | 13b572ca5562ff9623087222d2e1dd35d5d46b7e | /Dataset.cpp | 40ed1c8bb032fc78c061c4a7568a5808de8e15b9 | [] | no_license | ashishd/SfM | 4e3dcbfe5173f84b2211a87e07f82998f7ede14e | 2a97bd64e264aa43ef38a24081889002ffe00e2b | refs/heads/master | 2022-12-12T12:38:56.881567 | 2020-09-09T19:01:29 | 2020-09-09T19:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | Dataset.cpp | #include "Dataset.h"
Dataset::Dataset(const string& path):_path(path){
ReadImgs();
}
void Dataset::ReadImgs(){
glob(_path + "/*.ppm", _filenames, false);
size_t count = _filenames.size();
for (size_t i =0; i<count; ++i)
_images.push_back(imread(_filenames[i]));
} |
1869a8e72db556a30e5550f90fb5cc1d0f47d2b2 | d253ce633c06f579db1636733428053d2fcbca50 | /snir1String/snir1String/main.cpp | 1be475fdfe1feeb8e8063f78b53d1640b15ea8db | [] | no_license | ctonnerre/snir1String | 3c5ae76bd66319b3ed1ef8fc088bab72022ecb89 | 7618be4b1a269bc09294171080f15e9ddcc113e6 | refs/heads/master | 2021-03-07T13:58:37.257800 | 2020-03-18T12:06:26 | 2020-03-18T12:06:26 | 246,270,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,406 | cpp | main.cpp | //
// main.cpp
// snir1String
//
// Created by Cécile Tonnerre on 11/03/2020.
// Copyright © 2020 Cécile Tonnerre. All rights reserved.
//
#include <iostream>
// include pour les objets de type string C++
#include <string>
// include pour utiliser les string comme en C
#include <string.h>
using namespace std;
i... |
d7ae6f908be71a3099e948e7da2b52cf590345d5 | f6636e9bc98ba02c242b82f469e0587755595961 | /point.hpp | 83233254c3569600e54e951b7f027362103c154f | [] | no_license | ivaniesta14/i14extra | 5a7265ecea88b007f6a12128d3678f13b302faee | b78981cea0cc23b9ad22637d3395cde06e52f3e8 | refs/heads/master | 2021-01-18T19:34:21.646942 | 2018-07-27T12:03:42 | 2018-07-27T12:03:42 | 100,533,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,244 | hpp | point.hpp | #ifndef I14EXTRA_POINT_HPP
#define I14EXTRA_POINT_HPP
#include <complex>
#include <utility>
#include <tuple>
#include <type_traits>
#include "i14extra/convenience.hpp"
namespace i14extra {
template <typename T>
class point_t{
static_assert(std::is_arithmetic_v<T>,
"i14extra::point<T>: T must be... |
803d36c5f982e4a50a419106cb0837a43da31b28 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium/chrome/browser/gpu_data_manager.cc | 8fe42f03882a68f2bab50052caccd4ce543ba9d0 | [
"BSD-3-Clause",
"MIT"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 7,680 | cc | gpu_data_manager.cc | // Copyright (c) 2011 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 "chrome/browser/gpu_data_manager.h"
#include "base/command_line.h"
#include "base/metrics/histogram.h"
#include "base/string_number_conversi... |
7fcff85fe33acf1c3c3eb161d62676214d13bb04 | ab944ecbda508e51a544ab6d790ce1152dc10b93 | /include/mogo.hpp | bfb8a67b1e9829ba0a8a20c1915788b23729fde6 | [] | no_license | Unionjackjz1/HW-DOGO-PROS | 3f75104dbd7757a78c7d49b3d9f6da51fc47b54b | 6ea3a5dc69f4e29754fbfc432df4db4ae0fa3c1c | refs/heads/main | 2023-07-29T13:08:15.717634 | 2021-09-11T20:32:48 | 2021-09-11T20:32:48 | 392,468,524 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | hpp | mogo.hpp | #pragma once
extern bool mogo_up;
void set_mogo(int input);
void zero_mogo();
int get_mogo();
int get_mogo_vel();
void set_mogo_position(int target);
void mogo_in (bool hold = false);
void mogo_neut(bool hold = false);
void mogo_out (bool hold = false);
void mogo_control();
|
a7fadb6704d8c7e65cd20c1e7048d9a1e5b0561a | 94ce8c482d9a1ecc28578b8986316961f03d2ea7 | /CAScene.h | 42117f8e1bd0db3dd22404d29ff4e2106cb25ac4 | [] | no_license | DavidDeSimone/ShadowPOC | ba507f746968d9f2dc4fd271205d999efaa62330 | 45d2aa6c38a2ba0b38661cdd03945fc1306d9241 | refs/heads/master | 2021-01-19T14:03:46.712526 | 2016-02-16T06:28:59 | 2016-02-16T06:28:59 | 52,418,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 831 | h | CAScene.h | //
// CAScene.hpp
// ShadowPOC
//
// Created by David on 1/27/16.
// Copyright © 2016 David. All rights reserved.
//
#ifndef CAScene_hpp
#define CAScene_hpp
#include <stdio.h>
#include <vector>
class point_light;
class cube;
class quad;
class scene
{
public:
scene() = default;
~scene();
scene(scene&... |
a5f1a270edc42f566b5ff841eed6718bd097222a | 11e19ecec57a85866aff96c5ecd57fd09cfc6b54 | /WS02/lab/TimedEvents.cpp | b014d8b944e1dc7af37e8be87095604e7c8fe590 | [] | no_license | xiaozhuanli/OOP345-1 | 2789f080b8f8eea82eb633048a95a812f588509a | 8da582b96588d08c3eb7b2d7493f687e5d0fc624 | refs/heads/master | 2022-04-15T09:20:47.422712 | 2020-04-12T04:31:29 | 2020-04-12T04:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,610 | cpp | TimedEvents.cpp | // Name: Ricardo Maharaj
// Seneca Student ID: 160058186
// Seneca email: rmaharaj14@myseneca.ca
// Date of completion: 01/23/2020
//
// I confirm that the content of this file is created by me,
// with the exception of the parts provided to me by my professor.
#include "TimedEvents.h"
namespace sdds {
Timed... |
22dc42283e07f88e7f9c205cd139d7885c40c990 | ea85e7877278c10e94870e1d97130704ada3035c | /lib/condition.h | 54c6cd4c3993a5993fc17a878e039a16f5289aeb | [] | no_license | LBFing/Server | 907bb11f472651faaa929239b08f702726466e01 | 084174a901d13e6b8488e4aca7e44d93dbb82f74 | refs/heads/master | 2021-10-18T23:08:00.463254 | 2019-02-15T03:16:19 | 2019-02-15T03:16:19 | 125,308,611 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 601 | h | condition.h | #ifndef __CONDITION_H__
#define __CONDITION_H__
#include "nocopyable.h"
#include "type_define.h"
#include "mutex.h"
class Condition : private Nocopyable
{
public:
explicit Condition(Mutex& mutex) : m_mutex(mutex)
{
pthread_cond_init(&m_cond, nullptr);
}
~Condition()
{
pthread_cond_destroy(&m_cond);
}
void ... |
2210b580d5592a53fabe7cf0814b657a5af2b401 | 1f032ac06a2fc792859a57099e04d2b9bc43f387 | /9c/2f/28/b5/db4ddf3cf860cfd555038df824c256887d39444bd485186f5f4807408c988952b1e80fcf827c49f35a5aef93b7cfb68d94ecc44c846382b0189c2242/sw.cpp | a1b2f59521309c83d7ee34cbfdfa0e765be63cfb | [] | no_license | SoftwareNetwork/specifications | 9d6d97c136d2b03af45669bad2bcb00fda9d2e26 | ba960f416e4728a43aa3e41af16a7bdd82006ec3 | refs/heads/master | 2023-08-16T13:17:25.996674 | 2023-08-15T10:45:47 | 2023-08-15T10:45:47 | 145,738,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | cpp | sw.cpp | void build(Solution &s)
{
auto &t = s.addTarget<StaticLibrary>("fraillt.bitsery", "5.0.0");
t += Git("https://github.com/fraillt/bitsery", "v{v}");
}
|
1e83a06029093dff4f613d5cd7c8e7ad932bf9e6 | c00f02cb63ae377032a15ab8a4c9282e21c2efaa | /OutlookImpExp/OutlookImporter.h | dc9f7fc084b1067b22e08b80c398ce183afb1f14 | [] | no_license | abstractspoon/ToDoList_7.0 | 90118dfccf8dddea4e1d9946f993afbcdcb8ef92 | 5ac02a54b1dc642442a451b58d28cc3c57efe739 | refs/heads/master | 2020-04-17T02:36:57.767662 | 2019-01-17T02:11:15 | 2019-01-17T02:11:15 | 166,143,975 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | h | OutlookImporter.h | // OutlookImporter.h: interface for the COutlookImporter class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OUTLOOKIMPORTER_H__C35841C7_32A6_4705_A061_24A85C3A0223__INCLUDED_)
#define AFX_OUTLOOKIMPORTER_H__C35841C7_32A6_4705_A061_24A85C3A0223__INCLUDED_
#if _MSC_VER > 1... |
3e17aada983c5b4b6d8699ecef8a9f85e7093fd3 | 21bdf55c29477befdcfa2eaaa176d73173f71983 | /peer_server.h | 582e7125e8e80296ddaf3ad238e2ba5ff48efb6d | [] | no_license | jiang718/BulletinBoardConsistency | d140212599a0291cf581affcdde9b9fa17129a9f | 098268d0c0d764bfc6a5ec91632ed7c2b39fec7e | refs/heads/master | 2020-04-10T21:45:15.336929 | 2018-03-12T07:58:13 | 2018-03-12T07:58:13 | 124,295,859 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,676 | h | peer_server.h | #ifndef PEER_SERVER_H
#define PEER_SERVER_H
#pragma once
#include <iostream>
#include <map>
#include <vector>
#include <set>
#include "article.h"
using namespace std;
class PeerServer {
string ip;
int port;
string coordinator_ip;
int coordinator_port;
ArticlePool articlePool;
int data;
in... |
c5d353387b6729cc6b7ab795e2d861b99eebcd62 | 436623ee85c9d9444d700b56f2729b12b9f2c659 | /src/eepp/ui/uinodedrawable.cpp | bf9280639e3faf53f925b3fe575ec62860c128dc | [
"MIT"
] | permissive | SpartanJ/eepp | 0bd271b33058ef119f5c34460ed94e44df882a25 | 9f64a2149f3a0842ced34b8b981ffe3a8efc6d13 | refs/heads/develop | 2023-09-01T01:17:30.155540 | 2023-08-27T20:58:19 | 2023-08-27T20:58:19 | 125,767,856 | 341 | 27 | MIT | 2023-04-01T20:10:26 | 2018-03-18T21:11:21 | C++ | UTF-8 | C++ | false | false | 18,636 | cpp | uinodedrawable.cpp | #include <eepp/core/core.hpp>
#include <eepp/graphics/drawableresource.hpp>
#include <eepp/graphics/renderer/renderer.hpp>
#include <eepp/math/easing.hpp>
#include <eepp/system/functionstring.hpp>
#include <eepp/ui/css/stylesheetlength.hpp>
#include <eepp/ui/css/stylesheetspecification.hpp>
#include <eepp/ui/uinode.hpp... |
3f675bb02f608b032ea70ca699bfb08ca3d3144a | d5a81a9c8c453df01040c13f5a735c3913f4ea87 | /objects/Camera.cpp | 9db68003508f6cf1309f8f5e41884da508ab98a1 | [] | no_license | mrate/LAE | 69fa1359f346d87e62eae5f4406e27925730a1f1 | d92ffa186ca0bd5126f4b338e591bfa8449cfffc | refs/heads/master | 2021-01-21T01:33:19.181014 | 2015-02-04T22:56:11 | 2015-02-04T22:56:11 | 101,878,935 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,575 | cpp | Camera.cpp | // LAE
#include "Camera.h"
#include "../logger/Logger.h"
#include "../game/Global.h"
// stl
#include <math.h>
namespace LAE {
Camera::Camera()
: x_( 0 )
, y_( 0 )
, width_( 0 )
, height( 0 )
, tx_( 0 )
, ty_( 0 )
, speed_( 5 )
, followType_( C_IDLE )
, sprite_( nullptr )
, actor_( nullptr ) {
}
Camera::~Ca... |
1201490922c315d6bc55a8b90515d6c60e52796c | b258e2449fd26ab92c4be56a368e45c514efe60a | /settingpage.h | e91f0371fcb18f137878b03dfde7ac1cdc71aa3e | [] | no_license | MinnieJewel/DJY | f6c3e6b99104f334fa41f98d6c5256352ff6fad8 | 74a3b6b34871a7fbd38b9fc0d8158b679d54014a | refs/heads/master | 2022-09-16T19:30:46.147808 | 2020-06-02T06:29:42 | 2020-06-02T06:29:42 | 268,722,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | settingpage.h | #ifndef SETTINGPAGE_H
#define SETTINGPAGE_H
#include "mybase.h"
class QButtonGroup;
class QLabel;
namespace Ui {
class SettingPage;
}
class SettingPage : public MyBase
{
Q_OBJECT
public:
explicit SettingPage(QWidget *parent = 0);
~SettingPage();
QButtonGroup *setGroup;
private slots:
void on... |
d00eef2441c5ec0a6af0df67f11235c08afa0cba | 575ca59de0445406bae1cbfc269ca78aabd2b880 | /DragAndDropWindow/DrangAndDropWindow/DrangAndDropWindowView.cpp | f24f9de6fa1ec614ca8c5d4d5605fcefeb9fcb31 | [] | no_license | kwansu/MFC_Practice | 5a1bdeaea86a0452be306cebf4747d6c44e361d8 | 9562c6a9b74b4e0f6ec85dcd9df626083e27ae1f | refs/heads/main | 2023-04-28T01:31:55.699285 | 2021-05-16T03:30:32 | 2021-05-16T03:30:32 | 367,356,635 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,932 | cpp | DrangAndDropWindowView.cpp |
// DrangAndDropWindowView.cpp : CDrangAndDropWindowView 클래스의 구현
//
#include "stdafx.h"
// SHARED_HANDLERS는 미리 보기, 축소판 그림 및 검색 필터 처리기를 구현하는 ATL 프로젝트에서 정의할 수 있으며
// 해당 프로젝트와 문서 코드를 공유하도록 해 줍니다.
#ifndef SHARED_HANDLERS
#include "DrangAndDropWindow.h"
#endif
#include "DrangAndDropWindowDoc.h"
#include "Drang... |
d35e2c2e13ff1af353901e8695be2f05624f82fd | 9bb0fcb4123107483c79fdee2d9f13b95ef02148 | /cpp/analyzer/test.cpp | fab80c15c611087d334d718c80dbf398b7e61c3e | [
"BSD-2-Clause"
] | permissive | cksystemsgroup/zeta | 0080d20918a8f12e431d2cd99c4968bbb331f32f | ae31ee583556f7c3305daf7a41401aafb4557eb6 | refs/heads/master | 2020-04-09T05:46:21.703149 | 2013-07-19T11:35:08 | 2013-07-19T11:35:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,291 | cpp | test.cpp | // Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#define __STDC_FORMAT_MACROS
#include <stdio.h>
#include "operation.h"
#include "parser.h"
#include "linearizer.h"
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#inclu... |
55da647a4ff3824c0e19d988c5b5994a31b262fa | e3b3544802ae6558e221e43b27d7e62d85f539f1 | /coms_manager/src/ipmanager.cpp | 6fcf9caa9cf3e4cd2cb0a12beded6dbcec90ff97 | [] | no_license | thshorrock/laboratory-hardware | fa71463e3a4dcd026f19beff02d2aa2434f09e9c | 077cac877502f9c475eb5905d957e37b541d6431 | refs/heads/master | 2021-01-19T00:16:59.101777 | 2011-10-17T12:01:50 | 2011-10-17T12:01:50 | 2,591,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,217 | cpp | ipmanager.cpp | #include "coms_manager/ipmanager.hpp"
#include <boost/bind.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/array.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/thread.hpp>
void
ICR::coms::IPmanager::open()
{
m_error = boost::asio::error::host_not_found;
bool connection_failed =... |
5e07e846b178da9cbd0c006d4db4f64464185bbd | 2c2390232d175cecbcafeedae39bc2943ddf8452 | /UIShop/IUIMFCToolBar.cpp | 6c5d63d360be99c00f1aada83edb3b5a555b75e0 | [] | permissive | iUIShop/LibUIDK | d36621fbf3551b1c8ac5b6a44a2df1769a73a4f6 | ea7b0ca3ba1e58867bb35fdaa32b8685a3f83409 | refs/heads/master | 2023-04-13T04:37:35.618021 | 2023-03-30T09:53:55 | 2023-03-30T09:53:55 | 207,088,755 | 418 | 204 | MIT | 2019-09-09T13:52:26 | 2019-09-08T09:19:02 | C++ | UTF-8 | C++ | false | false | 4,782 | cpp | IUIMFCToolBar.cpp | // IUIMFCToolBar.cpp : implementation file
//
#include "stdafx.h"
#include "UIShop.h"
#include "IUIMFCToolBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CIUIMFCToolBar
IMPLEMENT_DYNAMIC(CIUIMFCToolBar, CMFCToolBar)
CIUIMFCToolBar::CI... |
5fcfe51cf32a98c8ce587152628765bfb8fcdf83 | e428d1c90f7ce6a5b2420668863c5efe064c8662 | /Starfarm/src/System/RendererSystem.cpp | de5600be2c6d8196238e97e96af92cfe3f036f4a | [
"MIT"
] | permissive | TiphaineLAURENT/Starfarm | 5306ad0236ea30b9780aae12eacc3c262ae9352f | 08d7fa75a36a465aa33c10eadcc9c2ef6f4548f5 | refs/heads/master | 2020-05-05T08:12:44.435533 | 2019-08-05T13:57:38 | 2019-08-05T13:57:38 | 179,854,186 | 1 | 2 | MIT | 2019-08-05T13:52:26 | 2019-04-06T15:55:58 | C++ | UTF-8 | C++ | false | false | 934 | cpp | RendererSystem.cpp | //
// Created by tiphaine on 11/04/19.
//
#include <iostream>
#include <ComponentManager.hpp>
#include "RendererSystem.hpp"
#include "../Component/SpriteComponent.hpp"
#include "../Component/TextComponent.hpp"
namespace game
{
RendererSystem::RendererSystem(sf::RenderWindow *const window)
: System(), _w... |
5b2d6c741195d8e9a03ed92bf68e6af195f5e31e | f251f8ed67493aaf89fad9535b29adf0d2f995a1 | /soj_2119.cpp | 20f304d40ab36699286baf71ae8404673e01aa8f | [] | no_license | 443singer/soj | 4fe391c908e9f0b90201bb7367245753a90ec8a5 | d98ed24d5d0796cc85b2979bae82bd0728f529f2 | refs/heads/master | 2021-08-30T19:42:04.328587 | 2017-12-19T07:13:32 | 2017-12-19T07:13:32 | 114,731,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | soj_2119.cpp | #include <cstdio>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
int n;
int a[10][10];
int b[10];
int ans = 1e7;
void dfs(int dep) {
if(dep>n) {
int tmp = -1e7;
for(int j = 0 ; j < n ; ++j) {
int tmp2 = 0;
for(... |
a53d505cdcb1710ad89b4fb53104c87f2d9447b2 | eb509cc64c2af406a0a372f4515a56844718f5ce | /src/UnidadesMovibles/devastador.h | e2481b6ba089702faccc58bb122a53f85e325275 | [] | no_license | ramoro/Dune | 85877e495204233eb445a22c91bd81603de266b3 | 17762e0327bc4d09c86ec43b72bf691a99ca4b87 | refs/heads/master | 2020-04-01T11:28:16.615954 | 2018-12-04T20:19:10 | 2018-12-04T20:19:10 | 153,163,721 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | h | devastador.h | #ifndef DEVASTADOR_H
#define DEVASTADOR_H
#include "vehiculo.h"
#include <utility>
#include <vector>
/*Clase que representa una unidad de un devastador en el mundo de Dune.
Es un tanque altamente blindado que al ser destruido explota daniando
todo aquel que este cerca.*/
class Devastador: public Vehiculo {
private:... |
d4815737ac6eb5b511e6795aa4ec0b0210d85429 | 335099e4850cb84edb059c671ced5ded847c7e10 | /source/save/savehint.cpp | e7bc322f64af65515155c3a4ceae6dbef583a0fb | [
"Zlib"
] | permissive | dmdware/sfh | a260bf771d0017a397f54219f37fb1ea7eb86e87 | b7b0bf71634b864645e04effd8c745696c454d7c | refs/heads/master | 2021-01-17T10:40:27.407838 | 2016-12-10T03:25:20 | 2016-12-10T03:25:20 | 38,033,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | savehint.cpp |
#include "savehint.h"
#include "../trigger/hint.h"
void SaveHint(Hint* h, FILE* fp)
{
int32_t len = strlen(h->message.c_str())+1;
fwrite(&len, sizeof(int32_t), 1, fp);
fwrite(h->message.c_str(), sizeof(char), len, fp);
len = strlen(h->graphic.c_str())+1;
fwrite(&len, sizeof(int32_t), 1, fp);
fwrite... |
a4eef533c4429b69ab8be097157df9b854c1401d | 2d361696ad060b82065ee116685aa4bb93d0b701 | /src/algo/blast/proteinkmer/pearson.hpp | 5e00d2fc7c00faf47a2315174370a69f0ccb5e26 | [
"LicenseRef-scancode-public-domain"
] | permissive | AaronNGray/GenomeWorkbench | 5151714257ce73bdfb57aec47ea3c02f941602e0 | 7156b83ec589e0de8f7b0a85699d2a657f3e1c47 | refs/heads/master | 2022-11-16T12:45:40.377330 | 2020-07-10T00:54:19 | 2020-07-10T00:54:19 | 278,501,064 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,414 | hpp | pearson.hpp | /* $Id: pearson.hpp
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United St... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.