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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
572abe926f50bbb9804cfb2d3050e8abcbd1c094 | c7e44ef1de0275c3ebbe12dcbf305c5200a34a16 | /Neon-Calculations/grid.h | 115c2562c2e707f9d713c01b89d79c09c116a051 | [] | no_license | bucinsky/NeverWhere | 2aefcd633f2b687733df28eb26f27a348ac67c4b | d74e00fe7745ec30e12c7dbc4b6f3045676069ab | refs/heads/master | 2020-12-11T07:18:34.383778 | 2014-11-06T15:36:53 | 2014-11-06T15:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | h | grid.h | #ifndef __grid_H_INCLUDED__
#define __grid_H_INCLUDED__
#include "neon.h"
class Grid : Neon
{
public:
int numPoints;
int numFnc;
void setGrid(int);
void unsetGrid();
void setCoord();
void setCoord(int, double, double, double);
void calcGrid();
void printGrid();
double getValue(int c... |
9e30704b2ac12cc9a4c3f7942f80282ec8077fbe | f85eedb5129acf7ed3f930a1dd98c3c7d9922cc3 | /WxQuickLoginTool/Softinfo.cpp | 167d24978ee44217d178e7e0e74b197f5e0e93cb | [] | no_license | xvsdf100/WxQuickLoginTool | ba71359bb63a24c2933ea35b638b8693f0693a84 | 5dcc8805f49149f0296c5796e217468a5d24601e | refs/heads/master | 2022-10-07T16:51:49.065745 | 2020-06-07T09:18:55 | 2020-06-07T09:18:55 | 270,176,714 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 5,367 | cpp | Softinfo.cpp | // FlieNmae: Softinfo.cpp
#include "stdafx.h"
#include "Sofinfo.h"
CSoftInfo::CSoftInfo()
{
struct SoftInfo softinfo;
HKEY RootKey; // 主键
std::wstring lpSubKey; // 子键名称
HKEY hkResult; // 将要打开键的句柄
HKEY hkRKey;
LONG lReturn; // 记录读取注册表是否成功
std::wstring strBuf... |
f6dd3d1e4026682335c75cd449050284060624a0 | 7a136333df232ad6f0cee26bfd79b8285b81dd8b | /Game/Logs/ElementsLogs/NoneElementLogs/NoneElementLogs.cpp | 468d4702b7aaa03dcd1f28714b3af00ae1a5a22c | [] | no_license | S1ckick/oop_game | 842742c2f6544f6072d0e08ffe9711cc90cb2b4d | 1535753fe18aedfbebaa993b2f11edb75c07f2c4 | refs/heads/master | 2023-07-08T00:11:35.820473 | 2021-08-19T10:09:19 | 2021-08-19T10:09:19 | 392,320,793 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | NoneElementLogs.cpp | //
// Created by Максим on 18.10.2020.
//
#include "NoneElementLogs.h"
using namespace std;
void NoneElementLogs::update(ElementTypes elem, std::ostream &stream) {
if(elem == NONE)
stream << "Предмет: Ничего"<< endl << endl;
} |
5c6161e0b84767e08ee0f46093c61bf4fae2f5aa | bb01bb8c06ea257f4b6158140c47d05681d926e1 | /src/kes_moma_picks_client/PaintingCache.cpp | 86fbe3ef7268b4ebaa73d0e25ad6610fa2c79746 | [] | no_license | KanoComputing/mercury | 43a48caf81cda2b39249b177a43385f0bf080f5d | e16b37ff64a9ac2deb4996a8af0ca024492b44e5 | refs/heads/master | 2020-05-04T01:47:59.448720 | 2019-11-07T17:27:16 | 2019-11-07T19:18:39 | 178,913,951 | 1 | 1 | null | 2019-12-12T11:51:35 | 2019-04-01T17:32:55 | CMake | UTF-8 | C++ | false | false | 4,441 | cpp | PaintingCache.cpp | /**
* \file PaintingCache.cpp
*
* \copyright Copyright (C) 2019 Kano Computing Ltd.
* License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
*
* \brief TODO
*/
#include <parson.h>
#include <iostream>
#include <list>
#include <memory>
#include <string>
#include "kes_moma_picks_client/inter... |
63838d6d122b227f5a2e38c081e01dcada2220c6 | c3e9f2f91b2c02cee249aa5948ea0f6ef899db7c | /libraries/WS2811Driver/WS2811Driver.cpp | aafbf243c7a45f2a9337317ea30b583f5e92be05 | [] | no_license | VincentGijsen/all_energia_stuff | 42fae3efded2e76caf6ebc743d871698debc15d0 | a4a0154663259aff437fdca3ede1b01a3c2f9ddf | refs/heads/master | 2021-01-15T18:09:11.498451 | 2013-08-08T17:51:48 | 2013-08-08T17:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,440 | cpp | WS2811Driver.cpp | /**
* WS2811Driver.cpp - driver class implementation for the ws2811 rgb led controller IC.
*
* Copyright (C) 2012 Rick Kimball rick@kimballsoftware.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fr... |
5a68ac1a59ab93433bc5e4a1f4283c49f1dfe1b2 | 33421a6a93b932e86e4d650302435d0b4ca9526b | /backend.cpp | 209dcb82c7e71acca4904d58433e18481d1a3f0e | [] | no_license | ilnuribat/poputchik | b0c4de358490ebfdafb43cd7e7581634856174c4 | 2c8d6dca5538fb5fa9d5b14631b460c562146fb6 | refs/heads/master | 2020-06-04T16:19:01.058439 | 2015-07-05T11:26:57 | 2015-07-05T11:26:57 | 23,212,598 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,264 | cpp | backend.cpp | #include "backend.h"
BackEnd::BackEnd(QQuickItem *parent) :
QQuickItem(parent)
{
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
mainWindow = engine.rootObjects().value(0);
engine.rootContext()->setContextProperty("backEnd", this);
this->IP = "http://localhost:8080";
//this->... |
66600b21c86c490623fbcb5e955f01a0c903d803 | 785df77400157c058a934069298568e47950e40b | /TnbVoyage/include/Voyage_ProfileI.hxx | 9216c213782a4415ea0abae7db82589704b1c08e | [] | no_license | amir5200fx/Tonb | cb108de09bf59c5c7e139435e0be008a888d99d5 | ed679923dc4b2e69b12ffe621fc5a6c8e3652465 | refs/heads/master | 2023-08-31T08:59:00.366903 | 2023-08-31T07:42:24 | 2023-08-31T07:42:24 | 230,028,961 | 9 | 3 | null | 2023-07-20T16:53:31 | 2019-12-25T02:29:32 | C++ | UTF-8 | C++ | false | false | 184 | hxx | Voyage_ProfileI.hxx | #pragma once
inline Standard_Real
tnbLib::Voyage_Profile::Value0() const
{
return Value(X0());
}
inline Standard_Real
tnbLib::Voyage_Profile::Value1() const
{
return Value(X1());
} |
ed8c384952272618f911406c6087169dfa63ac4b | caa36d428a2728f004fb23fa371fec4e414f49db | /Win32API/20140612_TA/Ball.h | ab68cf0b92034f0d260dec98c709192727e9282f | [] | no_license | soulpaper/SGA48.3 | fc9b7390d9dea024b21d728e2c1418593db8da3d | 5d1308aabc8949454efe9026fb1439c7674da8c0 | refs/heads/master | 2021-01-16T21:59:38.702596 | 2014-07-10T08:14:43 | 2014-07-10T08:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | h | Ball.h | #pragma once
#include "BaseType.h"
#include "Utility.hpp"
#include <sstream>
class Ball
{
public :
Ball();
~Ball();
void Attach(HWND);
void Input(DWORD);
void Update(DWORD);
void Draw(HDC);
void SetPosition(const Point& );
void SetSize(const LONG& );
void SetDirection(const Vector& );
int GetCount() co... |
7ea2eaa72fac4f5b5e29d12aaedb7742aa9b3b8b | 3e6c08b23d23cd6e234c5a2ea96abe64c3b3b9b2 | /Homeworks. Third term/localNet/nettest.h | 334399dd311297b43fcd9e81a51fc777ecb0ee13 | [] | no_license | AnnaSkachkauskaite/Homeworks | 3e25e137864233e13e7285916c06f6d3112bf780 | 50ab8410eac071c08a4179f98201915ecb0917c7 | refs/heads/master | 2021-01-10T20:04:48.461402 | 2015-05-28T15:49:13 | 2015-05-28T15:49:13 | 15,389,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | h | nettest.h | #ifndef NETTEST_H
#define NETTEST_H
#include <QObject>
#include <QtTest/QtTest>
#include "net.h"
class NetTest : public QObject
{
Q_OBJECT
public:
explicit NetTest(QObject *parent = 0);
signals:
private slots:
void FirstTest()
{
net.defaultSystem();
net.setTesting();
net.infe... |
194fda3d069960a23104e288f5fd15e689502d64 | a587574aee2c6cb65668cf3abf2cca6ff4e5c871 | /Vale/Vale/cGrid.cpp | 51467513087a11883168f621474c0d81fd4c3bef | [] | no_license | Hashrap/Vale--DirectX- | 5acce818694cd4b117d01fff60fad045e613d908 | a6d31976f05d079db6fe44d1112e1401fc9b9ea6 | refs/heads/master | 2021-03-12T23:36:54.459871 | 2015-05-20T13:15:04 | 2015-05-20T13:15:04 | 31,283,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,743 | cpp | cGrid.cpp | // Author: Spencer Corkran
#include "StdAfx.h"
#include "cGrid.h"
#include <algorithm>
cGrid::cGrid()
{
}
cGrid::cGrid(int gridW, int gridH, int d, int* _score):dimensions(d), score(_score)
{
for(int i = 0; i < gridW; i++)
{
objGrid.push_back( std::vector< GridCell >() );
for(int j = 0; j < gridH; j++)
{
... |
b123046d28d0de6811362a9c9bfc9979686891a6 | 2e718a50b6524d2b819f065ad1664f149994cf6a | /cpp'/cpp'/1002.cpp | 4bfd1659b0dd968d065dcf6f7b83762bd9fd08f9 | [] | no_license | rabbit0v0/Course-works | 37d6d3ad90ef2ffff0183ff6875331da5a3787cf | 8fed36f3351c23f2558ebfe9b6b9f7506bc72298 | refs/heads/master | 2022-04-03T19:37:26.976449 | 2019-11-28T10:03:14 | 2019-11-28T10:03:14 | 87,501,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | cpp | 1002.cpp | //
// 1002.cpp
// cpp'
//
// Created by 施晓钰 on 2017/1/23.
// Copyright © 2017年 施晓钰. All rights reserved.
//
#include <stdio.h>
#include <iostream>
using namespace std;
int main(){
int l, w, n[1005][1005] = {0}, a, b, m = 0;
cin >> l >> w;
for (int i = 1; i <= l; ++i){
for (int j = 1; j <= w; +... |
faaa64e2e400dcaa849f0c2fd5579648506d72a9 | 05e7a4ce38dc66146a5b87bc82cace5aa9c847c7 | /kv/rdouble-nohwround.hpp | eb7351d003e361463f32149bdf2d37f929142247 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | mskashi/kv | 8558ed4baf9f0be59cefd0d89679ef76d614e56b | ddb34ed6800005e044dfd9cb9a565f28e12c1ba6 | refs/heads/master | 2022-10-09T07:24:43.521509 | 2022-09-16T06:45:53 | 2022-09-16T06:45:53 | 77,805,801 | 82 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 11,153 | hpp | rdouble-nohwround.hpp | /*
* Copyright (c) 2013-2022 Masahide Kashiwagi (kashi@waseda.jp)
*/
#ifndef RDOUBLE_NOHWROUND_HPP
#define RDOUBLE_NOHWROUND_HPP
#include <cfloat>
#if !defined(FLT_EVAL_METHOD) || FLT_EVAL_METHOD != 0
#error "rounding emulation of double is not available on this system. If you are using i386 system, try -msse2 -mfp... |
5f27f909ac3848e70e69c1b154dae4bfc8ce618e | 690d80bef0fbc273498f65924876edc0f459b355 | /02.4.1.3 成员属性设置为私有.cpp | 9a1b1c223b8d7e104f4e61a74b3f48b4a6a9eec7 | [] | no_license | SKT-Faker-GuaPi666/- | 6bc0fc5ca8020fbd5593250c1fb162fec370507b | 7533b4856cf21922395ee937d9f250e09172ccdd | refs/heads/master | 2022-12-16T10:24:04.609445 | 2020-09-20T15:59:54 | 2020-09-20T15:59:54 | 281,042,223 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,135 | cpp | 02.4.1.3 成员属性设置为私有.cpp | #include<iostream>
using namespace std;
//成员属性设为私有;
//1.可以自己控制读写权限
//2.对于写权限,可以检测数据的有效性
//设计人类
class Person413
{
public:
//设置姓名
void setName(string name)
{
m_Name = name;
}
//获取姓名
string getName()
{
return m_Name;
}
//设置年龄
void setAge(int age)
{
if (age < 0 || age>150)
... |
cf3a2e5ab941e8e1cc5cd20af8ec4497b3e41bc7 | 7886d15aa7a22b841ffa7a6981d4a6460bde156e | /ch3.2.8_shallow_deep_example.cpp | b804c187f12dc96945f733f0f3656d8d6d4bbb8f | [] | no_license | LeeSungje/openCV_practice | 70bb8e2cf31ab331545c1f349434dfbd3dde112b | 3205d9752fd4d9f1e110749a2544aadd1c9bbc12 | refs/heads/master | 2021-04-03T08:59:14.041427 | 2018-05-23T01:09:37 | 2018-05-23T01:09:37 | 125,143,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | ch3.2.8_shallow_deep_example.cpp | #include<opencv2\opencv.hpp>
using namespace cv;
using namespace std;
void main() {
Mat A(200, 200, CV_8UC3, Scalar(255, 255, 255));
//Mat B(A); //case 1
/* Mat C;
C = A.clone(); */ //case 2
/* Mat D;
D = A; */ //case 3
/* Mat E;
A.copyTo(E); */ // case4
Point2i point(100, 100);
//circle(B, point, ... |
774ef1739e24b6f128a80170aa499e0bb434e5bf | b58fcda98033b296d1f904731048ffd86e8b55dd | /cpp/Projects/tbb/main.cpp | c58882ad3d78c09e87ab83125c69f9dae5a8afdf | [] | no_license | borcun/free | 4736f6be7bac39ee9aed50a6b1440b7b9b07a62b | fa5887b01d4bee3a8670519669eb4851f4d78b69 | refs/heads/master | 2023-02-08T00:58:20.036163 | 2023-01-28T19:19:19 | 2023-01-28T19:19:19 | 21,748,674 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Nov 2, 2012
* Author: dev01
*/
#include <tbb/task_scheduler_init.h>
#include <tbb/tbb_thread.h>
#include <opencv/cv.h>
#include <opencv/cxcore.h>
#include <opencv/highgui.h>
#include <iostream>
using namespace::tbb;
using namespace::std;
struct cam_att
{
int wcam;
char cna... |
24ee964dd7bafc6bb2fb9ffb9d446dbb2450291f | 2c9cb79404e78413e5ea02a57151d72384de5b96 | /CodeCraft-2019/include/Read_file.h | ff774be3245871e506a142f9c0ce5ddec13a597e | [] | no_license | Sayheyheyhey/Huawei2019 | a0aa5ce9d4c51bafa036b75265fe4cb61b5d4642 | b9810d30ab0d2185db7a1fd9b8b752b2c259f643 | refs/heads/master | 2020-05-04T15:38:45.460084 | 2019-04-03T09:11:22 | 2019-04-03T09:11:22 | 179,250,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | h | Read_file.h | #pragma once
#include "Car.h"
#include "Road.h"
#include <map>
#include <vector>
using namespace std;
vector<int> string_2_vector(string str);
map<int, Road> read_road(string file_path);
map<int, Car> read_car(string file_path);
map<int, Cross> read_cross(string file_path);
|
00da1a1e3e82ce78b7102851bfe8053f209b9404 | e7c45d18fa1e4285e5227e5984e07c47f8867d1d | /SMDK/TransCritical/TTechWOR/TTWORFilter.h | fbc672029903fa6f1ecf1859e5d2e92609db2637 | [] | no_license | abcweizhuo/Test3 | 0f3379e528a543c0d43aad09489b2444a2e0f86d | 128a4edcf9a93d36a45e5585b70dee75e4502db4 | refs/heads/master | 2021-01-17T01:59:39.357645 | 2008-08-20T00:00:29 | 2008-08-20T00:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | h | TTWORFilter.h | //================== SysCAD - Copyright Kenwalt (Pty) Ltd ===================
// New Precipitation model Transcritical Technologies Pty Ltd Feb 05
// Time-stamp: <2006-06-09 12:18:08 Rod Stephenson Transcritical Pty Ltd>
//===========================================================================
#ifndef __M... |
7bd4a767e29a410d69f757bf202328a4ca899325 | d136f4c37cb9fb3570c9d04bbb9526cdc8952121 | /HTauTau/DataFormats/src/EventProxyHTT.cc | 39166db7b46afe3f6d5fa9a5f7e1a6bb889ec397 | [] | no_license | akalinow/RootAnalysis | 2c7ad32873fc726d9bab09555daebb3812694b98 | 1ad51b0039f0e80502a2f8be0d2e79a36abfb407 | refs/heads/master | 2023-08-30T21:25:59.437576 | 2018-12-05T12:17:53 | 2018-12-05T12:17:53 | 16,555,472 | 1 | 17 | null | 2023-08-29T11:55:30 | 2014-02-05T19:26:22 | C++ | UTF-8 | C++ | false | false | 2,106 | cc | EventProxyHTT.cc | #include "EventProxyHTT.h"
#include "TSystem.h"
#include <iostream>
EventProxyHTT::EventProxyHTT(){}
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
EventProxyHTT::~EventProxyHTT(){}
/////////////////////////////////////////////////////////
////////... |
6f3af72c7d7cf008e5ed53caba686192d8ffc961 | ed3da0a4ef6f6690c0f126f850ff817bf721e4ef | /303.区域和检索.数组不可变.cpp | de3f06bea28f7056d1ad2c10bc7d3d97f62314c0 | [] | no_license | xiaoweixiao/LeetCode | 701233ce0279da457bf0ce65a8c99714d59aab24 | 8aecd34c6382eaaa7e1c762c9c2ca69cada3bc2e | refs/heads/master | 2020-05-16T03:56:42.938046 | 2019-06-11T15:08:02 | 2019-06-11T15:08:02 | 182,755,945 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | cpp | 303.区域和检索.数组不可变.cpp | class NumArray {
public:
NumArray(vector<int>& nums):num(nums) {
}
int sumRange(int i, int j) {
int ret=0;
for(int x=i;x<=j;x++)
ret+=num[x];
return ret;
}
private:
vector<int> num;
};
/**
* Your NumArray object will be instantiated and called as s... |
4a3b71d8cccb84b5937a42efe8a5fca53fbe211d | 453850cc7a528e8c8494be95c74e689db58f1910 | /lib/radmat/utils/aux.h | 0ec754c452199ea8b4cbfb93be27a9516a24ee1f | [] | no_license | ChristianShultz/formfactor | 609dc45cff82c7b5021f730de32716fba6b21b1b | 76d9e21dff58837484849e4902d693ec35238442 | refs/heads/master | 2021-01-10T18:20:40.204698 | 2015-11-15T19:21:03 | 2015-11-15T19:21:03 | 46,231,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,900 | h | aux.h | #ifndef AUX_H_H_GUARD
#define AUX_H_H_GUARD
#include "pow2assert.h"
#include "type_computations.h"
#include <string>
namespace radmat
{
template<class T, class U >
T downcastAndDeref(const U *ptr)
{
const T *p = dynamic_cast<const T*>(ptr); // cast
POW2_ASSERT(p); //... |
6524c38133f4cbeeebcc438d7f34b5f381676125 | 47b0a2b97e4d829855cc852164963d0f97e60abe | /Source/XsollaStore/Public/XsollaStoreDataModel.h | d225f7dc2d5cda4f70bb36d27e41a5ec8dc02465 | [
"Apache-2.0"
] | permissive | xsolla/store-ue4-sdk | d99572deb3ff772a6698a0eec553ad705f48bebb | 262ab261215422637cbbffb4a4e31f7b906e257a | refs/heads/master | 2023-08-18T14:20:23.104267 | 2023-07-26T19:58:24 | 2023-07-26T19:58:24 | 183,005,031 | 21 | 17 | Apache-2.0 | 2023-04-18T12:53:33 | 2019-04-23T11:58:18 | C++ | UTF-8 | C++ | false | false | 29,942 | h | XsollaStoreDataModel.h | // Copyright 2023 Xsolla Inc. All Rights Reserved.
#pragma once
#include "XsollaUtilsDataModel.h"
#include "XsollaStoreDataModel.generated.h"
UENUM(BlueprintType)
enum class EXsollaOrderStatus : uint8
{
Unknown,
New,
Paid,
Done,
Canceled
};
USTRUCT(BlueprintType)
struct XSOLLASTORE_API FXsollaOrderItem
{
GENE... |
bb67d045797a6960ffa9593ce9f740d0671eea61 | 187c2f0d83eac13d3fdba74600e5154b89258428 | /fs/mtd/mtdcore.cpp | e51bffc01878f594d9945821c83e5ab3b3851bb3 | [] | no_license | ZeusJupiter/PowerPC-Demo-OS | 5bcbc33be267600cacd3da6dde5367d6e6807725 | 23f0f10ba21f9f76dd4fb51402c3b237b5a1be2c | refs/heads/master | 2020-04-02T01:40:56.799983 | 2018-10-30T05:49:10 | 2018-10-30T05:49:10 | 153,867,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,201 | cpp | mtdcore.cpp | /*
* File name: mtdcore.cpp
*
* Created on: 2017年7月27日, 下午1:00:21
* Author: victor
* Toolchain:
* Language: C/C++
* description: from linux source code
*/
#include <macros.h>
#include <types.h>
#include <stdio.h>
#include <debug.h>
#include <assert.h>
#include <string.h>
#include <linux/mtd/mtd... |
39bfefad1e4eb687c8166925e4d6827543054846 | 6f190b1726f4af8425c9da35813ceb2b0038c9b2 | /include/awkward/layoutbuilder/EmptyArrayBuilder.h | 42014d00efffe76c88e02d861da04cf0283c4462 | [
"BSD-3-Clause"
] | permissive | nsmith-/awkward-1.0 | cb505152b1028f1e01812c18f820e94bd7013c3d | f250c34279476ae545e1cd629b97a4013a71ca17 | refs/heads/master | 2022-01-22T07:06:03.757447 | 2021-08-16T13:57:47 | 2021-08-16T13:57:47 | 237,034,347 | 0 | 0 | BSD-3-Clause | 2020-01-29T16:50:27 | 2020-01-29T16:50:26 | null | UTF-8 | C++ | false | false | 3,444 | h | EmptyArrayBuilder.h | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#ifndef AWKWARD_EMPTYARRAYBUILDER_H_
#define AWKWARD_EMPTYARRAYBUILDER_H_
#include "awkward/common.h"
#include "awkward/util.h"
#include "awkward/forth/ForthMachine.h"
#include "awkward/layoutbuilder/FormBuilder.h"
#include <com... |
8d690164969f99474a01e4e966b569cdf086ef11 | 36019e4061e1912e7a0414a01c270abf0d485ed3 | /bot.h | f2ffe70345035cd4745a3b759767a40f45de4f21 | [] | no_license | motosupamida/sfml_tici_taki_toe | f024bd17a1afad03dab4fe5c2b8b20b349774fa9 | f0108d7951f14eb1af6580daf8d02a2f7a8fdc7f | refs/heads/master | 2022-10-21T02:23:24.262602 | 2020-06-13T16:51:15 | 2020-06-13T16:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 70 | h | bot.h | #pragma once
#include "Player.h"
class Bot :
public Player
{
};
|
41bb39552790c8e957001edb62d42cf14743f292 | 46c3e4507dad6aa4747eb33f29118c114262663a | /receiver/receiver.ino | 5bc318b4fbf5635fdefe4a1ba36a1db8b42c218d | [
"MIT"
] | permissive | david-wirelab/arduino-radio-rf433 | 4e4704c88bd1a5122c35f38ae11b26030f673e09 | 20cdc22f5cab38ef52f191c7fc61d691119408c6 | refs/heads/master | 2020-04-15T06:32:24.542110 | 2019-01-08T20:45:30 | 2019-01-08T20:45:30 | 164,464,334 | 0 | 0 | MIT | 2019-01-08T20:45:32 | 2019-01-07T17:04:04 | C++ | UTF-8 | C++ | false | false | 444 | ino | receiver.ino | #define datain A0
#define ledPin 4
unsigned int data = 0;
const unsigned int upperThreshold = 300;
const unsigned int lowerThreshold = 100;
void setup()
{
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop(){
data=analogRead(datain);
if(data<lowerThreshold)
{
digitalWrite(ledPin, HIGH);
Se... |
531e5f2ad975d8a1d0428c476cd61615dc20c79c | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-appstream/include/aws/appstream/model/EntitledApplication.h | 369ed7dcf074c2d8f5d94052084aeae356756fc9 | [
"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 | 2,767 | h | EntitledApplication.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appstream/AppStream_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
c... |
7b9963e162f9173defeb39f12699d93a829d7d93 | 9f6d0c9e9f0877e0cc954f61e2245c88839918f9 | /v8/gen/64/torque-generated/src/builtins/typed-array-entries-tq-csa.h | c6f56e17cbadcdb038f1f7953268d98289917029 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | fibjs/fibjs_vender | c2f4fd35b7ed9e9ea06680d75453b3ee81a25d0d | 6aa2431f65e17f9a51b60f12c14a36a8464fad5d | refs/heads/dev | 2023-08-03T18:39:02.369823 | 2023-07-27T14:12:00 | 2023-07-27T14:12:00 | 37,327,960 | 7 | 24 | null | 2022-05-18T15:08:24 | 2015-06-12T14:56:51 | C++ | UTF-8 | C++ | false | false | 542 | h | typed-array-entries-tq-csa.h | #ifndef V8_GEN_TORQUE_GENERATED_SRC_BUILTINS_TYPED_ARRAY_ENTRIES_TQ_CSA_H_
#define V8_GEN_TORQUE_GENERATED_SRC_BUILTINS_TYPED_ARRAY_ENTRIES_TQ_CSA_H_
#include "src/builtins/torque-csa-header-includes.h"
namespace v8 {
namespace internal {
// https://source.chromium.org/chromium/chromium/src/+/main:v8/src/builtins/ty... |
ea216ed430bc4b3b96891fbabbbd4b302e81988b | 4371ef96a14e62c97bd898fb9ed425f0206baa4e | /GlitchenSync/syncplan.hpp | 451e40b3a9d93dcc5284989e78e3fe0bf49406d3 | [] | no_license | thenfour/Archives | e03413ece7b71552a99308c58cc4b76dbf94a000 | f7c87afe644989b5e8b3d2c1e30ca4546658138d | refs/heads/master | 2020-04-10T06:31:10.444614 | 2014-02-18T01:51:55 | 2014-02-18T01:51:55 | 16,931,568 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104 | hpp | syncplan.hpp |
#pragma once
#include <string>
#include <list>
#include <map>
#include "configuration.h"
|
97d4bed725eda78900cf72998e378a91ceda28c9 | 800965a478f1c8d68c25d0837d1a3ffab75b50e9 | /Week-02/day-4/08.cpp | 12b9912158790a9260a4d938a820866447085d05 | [] | no_license | greenfox-zerda-sparta/Ak0s | 8ed1eea5a63249cabb58f5de8620884aea7a8503 | 2f37db6512f6aa7057048ed189ed2259e3ee48ba | refs/heads/master | 2021-01-12T18:15:08.523009 | 2017-02-13T18:06:12 | 2017-02-13T18:06:12 | 71,350,507 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | cpp | 08.cpp | //============================================================================
// Name : 08.cpp
// Author : Ak0s
//============================================================================
// Create a function that takes a number and prints a triangle like this:
//
// *
// ***
// *****
// ... |
a55559abd23413ce5ca626ef9222a5596a28cb23 | 032618dab4b2f9a557571b0e06149bec8ee7af88 | /Codeup/《算法笔记》2.8小节/1303.cpp | 14ff895160bf4f6c14c7b3d662f9e69310779962 | [] | no_license | YilK/Programming_exercise | abd7c61e6b2557b8ba20c101ecdce83bd4b1f4f2 | 98dd9dd2804aeb8e4e18207aee116c168908e9b1 | refs/heads/master | 2020-11-29T11:29:21.226738 | 2020-05-03T07:29:01 | 2020-05-03T07:29:01 | 230,103,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | cpp | 1303.cpp | #include <iostream>
#include <string>
using namespace std;
struct node
{
string name;
int count;
}leader[3]={"Li", 0, "Zhang", 0, "Fun", 0};
int main()
{
int n;
cin>>n;
string s;
for(int i=0;i<n;i++)
{
cin>>s;
if(s=="Li")
leader[0].count++;
else if(s=="Zhang")
leader[1].count++;
else
leader[2].c... |
33589e7c7860924b9ad6bf1956fc6db1835dd58a | 581d96e72cf7608ada7564db5fad3fde78f3644c | /torch/csrc/api/src/imethod.cpp | 20cdb3569c3e4d63d42def331f4a02df8348fbf6 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | heitorschueroff/pytorch | dee92c2d2991f2ee0821c438a245dc704eb52b10 | 6f95850127e4659f857116c8205f03f66ab5a711 | refs/heads/master | 2023-08-11T11:47:06.710438 | 2021-08-02T17:24:37 | 2021-08-02T17:26:54 | 350,848,572 | 1 | 0 | NOASSERTION | 2021-03-23T20:29:19 | 2021-03-23T20:29:18 | null | UTF-8 | C++ | false | false | 309 | cpp | imethod.cpp | #include <torch/imethod.h>
namespace torch {
const std::vector<std::string>& IMethod::getArgumentNames()
{
// TODO(jwtan): Deal with empty parameter list.
if (!argumentNames_.empty()) {
return argumentNames_;
}
setArgumentNames(argumentNames_);
return argumentNames_;
}
} // namespace torch
|
f91c0b575a9b194b8900d51c83be981370759c00 | 11acd67a90e2aa038a4d21d1fd442c9eb1e7b35d | /C-and-CPP/char_print_at_zero.cpp | c4aaecf29a5061077156fe71f2c57acbca174320 | [] | no_license | vinothcse123/WeirdProgrammingFacts | a5e4d4dd8cbf7604f72d6280415a27f343337699 | 9899d3df2d88d3f6e34c6ed72d632f0d94b1e07c | refs/heads/master | 2021-05-31T20:12:10.636259 | 2016-03-15T14:05:17 | 2016-03-15T14:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100 | cpp | char_print_at_zero.cpp | #include<iostream>
int main()
{
using namespace std;
printf("\n :: %c ", 0 );
return 0;
}
|
797935f3f80cf1b1ae14080f85fc524640451e81 | ac9fd76c91a8de1e32cd99d30c3374bb48be3a0d | /options/OptionsTabWidget.cpp | 12e402ea9eebdffdbeb20aa650ddcd528a8590b5 | [
"BSD-3-Clause"
] | permissive | bendalab/NixView | 89d1c1dbf8246c218c221779031d07d433f38e54 | 62d45409d9ee9bd7612b5f3e7742a35e3202bbda | refs/heads/master | 2020-04-09T07:32:30.207858 | 2019-12-21T15:32:43 | 2019-12-21T15:32:43 | 41,813,337 | 9 | 6 | null | 2018-04-10T19:00:39 | 2015-09-02T16:39:48 | C++ | UTF-8 | C++ | false | false | 132 | cpp | OptionsTabWidget.cpp | #include "OptionsTabWidget.hpp"
OptionsTabWidget::OptionsTabWidget() :
QTabWidget()
{
setTabPosition(QTabWidget::West);
}
|
6fa6a7391cb3b2428ae53e476b938a63a87bd4f2 | 4749b64b52965942f785b4e592392d3ab4fa3cda | /chrome/renderer/chrome_render_frame_observer.h | 643533d446543f37e28a1da8fed584cb5c9ab53b | [
"BSD-3-Clause"
] | permissive | crosswalk-project/chromium-crosswalk-efl | 763f6062679727802adeef009f2fe72905ad5622 | ff1451d8c66df23cdce579e4c6f0065c6cae2729 | refs/heads/efl/crosswalk-10/39.0.2171.19 | 2023-03-23T12:34:43.905665 | 2014-12-23T13:44:34 | 2014-12-23T13:44:34 | 27,142,234 | 2 | 8 | null | 2014-12-23T06:02:24 | 2014-11-25T19:27:37 | C++ | UTF-8 | C++ | false | false | 1,165 | h | chrome_render_frame_observer.h | // 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.
#ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
#define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
#include "base/basictypes.h"
#include "co... |
209cf7ae1827f5b2a0b9a3bdd043007aa91791ce | babb4079f81b5284584b05b327219016c8f05795 | /Arbol.h | 16c87524996b0a6b3af3423d1aa56b15fdd2d315 | [] | no_license | Mellandd/Proyecto-AED-Quacker | 9f0b56597d38e52ae11ad8e51d867922a4d7e4de | ec18ab63b9263dcc1568fc39f3e351d5d94f8bfe | refs/heads/master | 2020-04-11T04:12:24.356332 | 2018-12-12T15:09:16 | 2018-12-12T15:09:16 | 161,504,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | h | Arbol.h | // Modulo Diccionario
#ifndef _MODULO_ARBOL
#define _MODULO_ARBOL
#include "Cuac.h"
#include "Fecha.h"
#include <list>
using namespace std;
class Nodo {
friend class Arbol;
private:
Nodo *hijoIzquierdo;
Nodo *hijoDerecho;
Fecha fecha;
list<Cuac*> *lista;
int altura;
... |
04b3881226fc05ad3a9ee1ede96111b60392a64e | b8760af7bac668492ff171432667cd787d1ccedb | /Game2016O/Temp/MeshBase.cpp | 4422ed4cebeb221f57e9a6a4b94926cd583c1495 | [] | no_license | pacomendez12/Game2016O | 47e1ed40176fcfb4f29d409309ccbff3ea6c9256 | d29828adbac22344857dfc87c6421ad1431a6102 | refs/heads/master | 2021-01-12T17:55:25.699463 | 2016-12-05T08:58:18 | 2016-12-05T08:58:18 | 71,302,334 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 13,955 | cpp | MeshBase.cpp | #include "StdAfx.h"
#include "MeshBase.h"
#include "Matrix4d.h"
CMeshBase::CMeshBase(void)
{
m_lIBID=0;
m_lVBID=0;
}
CMeshBase::~CMeshBase(void)
{
}
bool CMeshBase::RayIntersect(VECTOR4D& vSrc,VECTOR4D& vRay,multimap<float,unsigned int>& mmapOutIntersectedFaces,ATTRIBUTE_RANGE& Range)
{
VECTOR4D Ray=vRay;
VECTOR4D ... |
184133af655496fa2559037664c36e7c6236f5d8 | 99d26dbfaf00b613eff6aa6548a8e35026f8cde0 | /Advanced Rendering/Advanced Rendering ACW/Texture.h | 5b746dfcbf77f7a5a47584686c747653b599edeb | [] | no_license | BenMarshall98/Advanced-Rendering | d50a201c5700b2898759c2c7a2df43ffa8482d19 | 0e70a258f12102398d1aa18c89c9b4dbfb2eb13b | refs/heads/master | 2022-04-10T19:17:03.279127 | 2020-03-23T12:00:41 | 2020-03-23T12:00:41 | 236,472,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | h | Texture.h | #pragma once
#include <string>
#include <d3d11.h>
#include <wrl/client.h>
#include "..\Common\DirectXHelper.h"
#include "..\Common\DeviceResources.h"
namespace Advanced_Rendering
{
class Texture
{
Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> mTexture = nullptr;
std::string mTextureFile;
public:
Texture(... |
f3a7e048bf5a078a9caceb65e0e3babbf9780e01 | 21c8020f3f3b2fd37e860eb4a2b79212ccf55aed | /surf.cpp | 50c9c8526bf69cf3f52537b6930904a4a12aeec2 | [] | no_license | raouiyounes/ph | 0cda9fedc8198dfdf2829f0f576d02b8a82616f7 | 8d3104b095e21efec6c8abd97fe9f6efe5cd75ec | refs/heads/master | 2021-01-17T07:01:54.801682 | 2016-05-18T15:06:28 | 2016-05-18T15:06:28 | 30,808,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,242 | cpp | surf.cpp | int Image::SURFExtractor(IplImage* frame,int nb_of_features){
// Mat img_1 = image_data;
//-- Step 1: Detect the keypoints using SURF Detector
int minHessian = 400;
SurfFeatureDetector detector( minHessian );
int Threshl=40;
int Octaves=2;
float PatternScales=1.0f;
CvMat* prevgray = 0, *im... |
fffe445f79e893b99acd8db993ecb5d9112a4238 | 60a15a584b00895e47628c5a485bd1f14cfeebbe | /comps/misc/neuro/ClassifyNeuro.cpp | 2bef1225de98a14d8870157cfd5c8129e2f85414 | [] | no_license | fcccode/vt5 | ce4c1d8fe819715f2580586c8113cfedf2ab44ac | c88049949ebb999304f0fc7648f3d03f6501c65b | refs/heads/master | 2020-09-27T22:56:55.348501 | 2019-06-17T20:39:46 | 2019-06-17T20:39:46 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 23,105 | cpp | ClassifyNeuro.cpp | #include "stdafx.h"
#include "ClassifyNeuro.h"
#include "math.h"
#include <stdio.h>
#include "measure5.h"
#include "alloc.h"
#include "class_utils.h"
#include "inifile.h"
#include "matrix.h"
_ainfo_base::arg CClassifyNeuroInfo::s_pargs[] =
{
{"ClassifyInfo",szArgumentTypeString, "", true, false },
{"ObjectList", sz... |
76f276497a18df39832023c5950cdd36506c7f37 | 2160fd4cc5cb24bb8427ec78ef9b2d3a9549c2c5 | /include/cyng/store/slot.h | 4c3452327ee699e1c79f0fc387cc8dd150147e6e | [
"MIT"
] | permissive | solosTec/cyng | 7e698487ef57f050fc2b3e287aa79463b2debc9f | a55fc9a7566254cb8e60a51b9884b40f19f866b9 | refs/heads/master | 2023-07-25T11:49:07.089159 | 2022-10-21T15:17:13 | 2022-10-21T15:17:13 | 115,027,279 | 0 | 2 | MIT | 2022-10-21T15:17:14 | 2017-12-21T16:46:54 | C++ | UTF-8 | C++ | false | false | 1,180 | h | slot.h | /*
* The MIT License (MIT)
*
* Copyright (c) 2021 Sylko Olzscher
*
*/
#ifndef CYNG_STORE_SLOT_H
#define CYNG_STORE_SLOT_H
#include <cyng/store/slot_interface.h>
#include <cyng/task/channel.h>
namespace cyng {
class slot : public slot_interface
{
public:
explicit slot(channel&);
explicit slot(channel_ptr... |
68e902c920d7f4f0c5b46ed4378c32238b39b0f8 | cc8f6dd6f67058d3389b90ca0c7ddfe7e8916289 | /Chapter9/MoneyFactory.cpp | f78c043a11e5565b32125996f4a9abc397817ed4 | [] | no_license | zhb94430/TDD-Part1 | ef6f050e60a4a6cb050c1a258b139c7a3bc9e772 | ca009d3bfdce927018b12fc17adda36587a1e14b | refs/heads/main | 2023-06-03T22:38:56.717677 | 2021-06-18T20:22:19 | 2021-06-18T20:22:19 | 373,364,841 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | cpp | MoneyFactory.cpp | #include "MoneyFactory.h"
Money* MoneyFactory::dollar(int amount)
{ return new Dollar(amount, "USD"); }
Money* MoneyFactory::franc(int amount)
{ return new Franc(amount, "CHF"); } |
948be2ecc67d27506351492106ea7dc5cc562f7d | d736fddaff5c13e5a520d0e97d8b057d7fae2521 | /8TilesProblem/Includes.h | 6ec2eea3b65ebaede7d3aacf9b6e7a609afba89d | [] | no_license | StephenThomas1987/8Tile | 69794ca02f9302de0bbb15c39fab2802b582dff7 | 6b3de9bcbf4417c01e6666e8918006e124957038 | refs/heads/master | 2021-01-13T06:13:55.143151 | 2017-06-20T14:52:04 | 2017-06-20T14:52:04 | 94,902,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | h | Includes.h | #pragma once
//STL includes
#include <iostream>
#include <time.h>
#include <fstream>
#include <string>
//SFML and graphics includes
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include <GL/GLU.h>
//header files
#include "Animation.h"
#include "EightTile.h"
using namespace std; |
1f694e0e6526f17f3e4f2f7db56e722878da36ca | 93aa54535beca6865818e04a50659ca35fd0fa7c | /include/mgpcl/URL.h | 3cc56af2625c161de92fa4a9e92704def598cf3d | [
"MIT"
] | permissive | montoyo/mgpcl | cef9e9f401340cdcbd3bd6a812d748b5bc174ad2 | 8e65d01e483124936de3650154e0e7e9586d27c0 | refs/heads/master | 2021-01-21T15:00:35.612965 | 2020-02-05T13:37:00 | 2020-02-05T13:37:00 | 95,368,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,294 | h | URL.h | /* Copyright (C) 2018 BARBOTIN Nicolas
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify,
* merge, publi... |
38cc468f9c6cb709e9c038add67d7214075e3dcf | d7007d37e263166c3ed4804bd4e9c678fd161bc2 | /part4/TwoDayPackage.cpp | bbef00a96a3f221d1057fcc4f1bc440da88608e3 | [] | no_license | annamcmahon/lab3 | ca23ad87980f1a89dbaa7876c401c36e4b896685 | abe5d9aedd7b137bc2cd283a3a28b69c70bc0bdc | refs/heads/master | 2020-04-09T05:52:06.563249 | 2015-02-10T04:37:54 | 2015-02-10T04:37:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | cpp | TwoDayPackage.cpp | //Katie Quinn & Anna McMahon
//CSE 20212 Lab 3
//2-8-15
//
//Implementation for two day package
// inherits from Package.h (base class)
//
#include "TwoDayPackage.h" //include both header files
#include "Package.h"
#include <iostream>
using namespace std;
TwoDayPackage:: TwoDayPackage(){ //default constructor
additCo... |
ea24251d9374d5d7f21af6b18b4bc6acac53d436 | 7148007b1c30715db40b68586c099e22b87524c1 | /INSERTEL.CPP | d8ee655e224d66b66a03baa64bb5a8ff7a64bac7 | [
"Apache-2.0"
] | permissive | Parthis1833/DS- | 18de5a8238754256c976c075f804d9d80d2cf800 | 2378447f44f47a4008372c80bef15bddba60426d | refs/heads/main | 2023-09-03T22:28:31.766966 | 2021-10-18T14:11:49 | 2021-10-18T14:11:49 | 418,515,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | cpp | INSERTEL.CPP | #include<stdio.h>
#include<conio.h>
void main(){
int LA[]= {1,3,5,7,8};
int item=10,k=3,n=5;
int i=0,j=n;
printf("The original array elements are:\n");
for(i=0;i<n;i++){
printf("LA[%d]=%d\n",i,LA[i]);
}
n=n+1;
while(j>=k){
LA[j+1]=LA[j];
j=j-1;
}
LA[k]=item;
printf("The array elements afte... |
2945dd636845495152e7eabce9d61ae1405c8e1c | 4c5e72b705ae439882b03e61f6465d14ee55a4b0 | /unittest/matrix.cpp | e202c572b878aca945885092100de509e225f1dc | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | stack-of-tasks/eigenpy | a745bd9be52808724c5f2bcfe60a4c0d196c9fdb | df207c6db9c597bc37dd467f9642199cc81df93c | refs/heads/master | 2023-08-04T06:20:25.443715 | 2023-07-31T16:11:29 | 2023-07-31T16:11:29 | 21,867,994 | 143 | 38 | BSD-2-Clause | 2023-09-12T08:12:26 | 2014-07-15T16:55:01 | C++ | UTF-8 | C++ | false | false | 6,107 | cpp | matrix.cpp | /*
* Copyright 2014-2022 CNRS INRIA
*/
#include <iostream>
#include "eigenpy/eigenpy.hpp"
template <typename Scalar>
Eigen::Matrix<Scalar, Eigen::Dynamic, 1> vector1x1(const Scalar& value) {
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> ReturnType;
return ReturnType::Constant(1, value);
}
template <typenam... |
98d2779af2d9c4c37b393b5c067ce2eab4580f95 | 3adedbb47efa4f571ed0788f7e7b8b9007c7b406 | /ouster_ros/test/test_convert.cpp | cdc12e0420c51569e71219afb421313d1fa1bece | [
"BSD-3-Clause"
] | permissive | AutoModality/ouster_example | 054d0d63b660eafa5d6564c0540cface4848d824 | 23875e63e5184a182469810c271864a6e5960057 | refs/heads/master | 2021-07-23T05:31:18.350765 | 2020-03-14T13:24:51 | 2020-03-14T13:24:51 | 157,585,151 | 0 | 0 | BSD-3-Clause | 2020-03-14T13:24:53 | 2018-11-14T17:23:26 | C++ | UTF-8 | C++ | false | false | 4,693 | cpp | test_convert.cpp | #include <gtest/gtest.h>
#include <iostream>
#include <ros/ros.h>
#include <ros/console.h>
#include <log4cxx/logger.h>
#include <ouster_ros/os1_ros.h>
#include <string>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
using CloudOS1 = ouster_ros::OS1::CloudOS1;
namespace OS1 = ouster::OS1;
void filter_pointc... |
1953abef064bb68d3ff517a16fd27f5d1da5ce16 | 3edec563d15a983cf3920e3f8cbd1a2c1782bb35 | /dungeon-and-dragons/Map/Map.cpp | 66fe75ea2ed2055ef10e4d9f887258e1b78285f2 | [] | no_license | lancelafontaine/Dungeons-and-Dragons | 6b1f7fb132148e918f52ad7e797b745628b93aca | f8f571ef9e8125e0e53d55bb6e838a94f1c1f1ae | refs/heads/master | 2020-06-12T19:28:56.563772 | 2017-03-18T04:18:30 | 2017-03-18T04:18:30 | 75,764,383 | 1 | 1 | null | 2016-12-06T19:33:51 | 2016-12-06T19:33:50 | null | UTF-8 | C++ | false | false | 10,762 | cpp | Map.cpp | //! @file
//! @brief Implementation file for the Map class
//!
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <tuple>
#include "Map.h"
using std::cout;
using std::endl;
using std::find;
using std::make_pair;
using std::pair;
using std::string;
using std::make_tuple;
using std::ve... |
6f5100b5eaadf8b5285e7284b07aa0c2a8255ef7 | 83ad52d9d6e06fa3f158e401d8d2717eff3ad7f3 | /src/nfc-lib/lib-gl/gl-engine/src/main/cpp/widget/BoxWidget.cpp | f9cd23f0a05fb87ce8b65824344a55597a43da95 | [
"MIT"
] | permissive | chertoGUN/nfc-laboratory | 3526bbf4c6200e335a6f218ff22433c298458fa7 | 0e7bd9a5674f6da477c32b02ac349d337f378872 | refs/heads/master | 2023-08-27T07:34:46.954341 | 2021-10-28T05:59:05 | 2021-10-28T05:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,761 | cpp | BoxWidget.cpp | /*
Copyright (c) 2021 Jose Vicente Campos Martinez - <josevcm@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to ... |
463430fdfdd78d82cb51272733f734a1103d719c | 7c3e35c4492b3c8d8f66b27acb9bf7416b53c605 | /4202.cpp | 2245a9f89f04c58c81a829ce090974406c15c28e | [] | no_license | scarletea/SDUT | ce218ad157c6d8137c88a46e806ce548c04abcdc | f1c4367b088070b515f59012b94519a5098e25b0 | refs/heads/master | 2020-09-25T22:15:54.951815 | 2020-02-07T09:16:55 | 2020-02-07T09:16:55 | 226,099,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | 4202.cpp | #include<iostream>
using namespace std;
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
int w1[5010],w2[5010],w3[5010];
double sum[5010];
int max = -1;
int f = 0;
for(int i = 0;i<n;i++)
{
cin>>w1[i]>>w2[i]>>w3[i];
sum[i] = (double)w1... |
c87901437de1bf0fe47f075164555e2dd143874b | bc9b61f82f479e857f267e92e81ddbebec74cc2d | /student management system/Ktlt/StudentMenu.h | fc72fe9d2e6a601a72b7f14bc881b3f808611b4e | [
"MIT"
] | permissive | IceIce1ce/Student-Management-System-HCMUS | 51fc18108485eb2ab28a76309ef0f58b12dbd364 | b909227078ca2e7266f3ad0402c48f2dc6a407a7 | refs/heads/master | 2023-05-01T03:33:00.447257 | 2021-05-23T07:13:29 | 2021-05-23T07:13:29 | 273,660,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | h | StudentMenu.h | #pragma once
#include <iostream>
#include <windows.h>
#include <string>
#include <conio.h>
#include <fstream>
#include <ctime>
#include "honganh.h"
using namespace std;
#define _CRT_SECURE_NO_WARNINGS
#define CONSOLE_WIDTH 120
#define CONSOLE_HEIGHT 40
#define X 100
/*struct checkin
{
string No, id, w1... |
50c105970e0109614c2f148461e7da68029b4938 | 3cbfefd3bddb459aae5d3c8f24c868b718b6ceac | /Raumverwaltung.h | 9132d447557a125e1376813912154605a7b1b1e5 | [] | no_license | ScreaminSteve/OOAD_Stuffs | 83d56baa2482effb644eb97377d9199b3395e99b | eda69920bb131ab387e5b32af64e658c4d68d62a | refs/heads/master | 2021-09-04T01:03:59.214302 | 2018-01-13T19:09:29 | 2018-01-13T19:09:29 | 116,279,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | h | Raumverwaltung.h | /**
* @(#) Raumverwaltung.h
*/
#ifndef RAUMVERWALTUNG_H_H
#define RAUMVERWALTUNG_H_H
#include "Raum.h"
#include <vector>
#include <fstream>
#include <iostream>
using namespace std;
class Raumverwaltung
{
public:
Raumverwaltung();
void addRoom( ); //ADMIN: neue Räume zu Liste hinzufügen
void read... |
0f53db64e4b48797a281fe787f8f6ac3322850f9 | 8a8996da56c7cce8ddf50cbb49f64be6e8c566e0 | /ICs/Projects/ArduinoAnalogMoistureSensorWMultiplexer/ArduinoAnalogMoistureSensorWMultiplexer.ino | 3be04a72625a7526f05619252d620e4c9834c7d4 | [] | no_license | shaddow1201/MicrocontrollerProjects | f7de131f35573641459e472560e584aa3fa1c9f3 | 656219d0f8770a5f4ee39d4f5c2aa229c3386b71 | refs/heads/master | 2023-01-27T23:59:28.117016 | 2023-01-20T13:40:12 | 2023-01-20T13:40:12 | 132,782,368 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | ino | ArduinoAnalogMoistureSensorWMultiplexer.ino | #define SensorPin A2
#define LEDPin 13
// MUX Select lines
const byte muxPinA = 9;
const byte muxPinB = 10;
const byte muxPinC = 11;
void setup() {
// LED SETUP
pinMode(LEDPin, OUTPUT);
pinMode(muxPinA, OUTPUT);
pinMode(muxPinB, OUTPUT);
pinMode(muxPinC, OUTPUT);
Serial.begin (9600);
}
int readSensor (co... |
98058119df6185c523af612e003736ed75f3a959 | f4a113d063e8a53302936784cadb264992cb7c42 | /Projects/Dijkstra/Dijkstra/GrDB.h | 01a14b9c0cb9463aa2e10e9d3f9655e10a7d3d23 | [] | no_license | ARUNMANNURU/cplusplusalgo | 46f6ad5e21552da5f8473d8a31b625a7ac55267f | 77151003776796fbe94bcadee7b9d8515c655190 | refs/heads/master | 2021-01-01T17:35:50.607399 | 2017-07-23T16:05:14 | 2017-07-23T16:05:14 | 98,109,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | h | GrDB.h | #ifndef GRDB_INCL_HDR
#define GRDB_INCL_HDR
#include "Vertex.h"
#include <vector>
class GrDB
{
enum { ME_PER_NODE = 50 };
enum { NUM_NODES = 2000 };
enum { MAX_WEIGHT = 450 };
enum { SEED = 1... |
5ae40f322bfad0443b25e5ecaf47b0eff9c01670 | 982ece5e570bbf460cb36787437ea81b89b62593 | /learncpp_quizzes/2/x/q1_3/io.cpp | 42398fd15aa808819897317ecaebe7223b1ec9e9 | [] | no_license | adidiner/learncpp | 369f0d2e3c482b2907368b0a87cde86dbcd1ac6c | e5ef6e99e6a59aebd8e0c0ae02a36a0a73bda177 | refs/heads/master | 2023-04-01T12:07:08.656791 | 2021-04-13T17:07:46 | 2021-04-13T17:07:46 | 349,992,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 185 | cpp | io.cpp | #include "io.h"
#include <iostream>
int read_number() {
int input{};
std::cin >> input;
return input;
}
void write_answer(int answer) {
std::cout << answer << '\n';
}
|
04f751823e22f99698b4c457a2d823c36ad14934 | 6fe7ecd63379ff2f40fd3f51432a8832ca8a91a4 | /Qt/LANClient/LANClient/View/CustomLabel.cpp | 725f8c04041b27233385c9933735a35ba2a1ac20 | [] | no_license | ha-hia/Study | 3d9f5ff7798de6c6a613d47a48a83a2e4ee53b38 | 4e587f6b33ba2e88bba2aac4d4fba4cfd42fc700 | refs/heads/main | 2023-07-21T22:48:51.956382 | 2021-09-07T03:30:43 | 2021-09-07T03:30:43 | 361,381,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | cpp | CustomLabel.cpp | #include "CustomLabel.h"
#include <QMouseEvent>
CustomLabel::CustomLabel(QWidget *parent) : QLabel(parent)
{
QPalette pa;
pa.setColor(QPalette::WindowText, Qt::darkGreen);
setPalette(pa);
}
CustomLabel::CustomLabel(const QString& text, QWidget *parent) : QLabel(parent)
{
this->setText(text);
}
Custom... |
f98742c07135d3a03ba75dd0ce5948a109118e42 | 743b74447316b66c7475c8b0f5952df9475b5aa6 | /NMS.cpp | 346dc125012a10fd0e85c38b255e04bcaa0087c8 | [] | no_license | xu188618861886/AI_axu | e710704f438475e09cf13fb97d7853860b81be47 | a8dcfd9773109fe753c5fde371603626af8b1477 | refs/heads/master | 2022-11-30T23:45:16.178692 | 2020-08-13T12:47:17 | 2020-08-13T12:47:17 | 284,360,762 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | cpp | NMS.cpp |
#include<vector>
float iou(int x1, int x2, int y1, int y2, int x1_, int x2_, int y1_, int y2_)
{
int X1 = std::max(x1, x1_);
int Y1 = std::max(y1, y1_);
int X2 = std::min(x2, x2_);
int Y2 = std::min(y2, y2_));
float I_area = (X2 - X1) * (Y2 - Y1);
float U_area = ( (x2 - x1) * (y2 - ... |
8b42927588ebc7b63799ea2eef62144795b319b7 | bfedce9f22914651c6c53f2a2e103f5097838a6e | /add.cpp | ea3a8871fa0eb822f86c2d58c57fb55c9dccf2b0 | [] | no_license | jinay1991/ld_preload | c3d619b271e8e225de2f235cd480e98465a553a6 | e0901a9ac1fbd4de59329eccb9af4d085a3ff93b | refs/heads/master | 2020-03-21T22:05:42.766602 | 2018-06-29T05:11:03 | 2018-06-29T05:11:03 | 139,103,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | cpp | add.cpp | #include "test.h"
int addition(int a, int b)
{
printf(" -- %s() is adding %d and %d -- \n", __FUNCTION__, a, b);
return a + b;
}
|
e2737629277d41a2ce6ebcaad61cf862b04a7a2f | 75f7dc4df2fbfd3dab6dadeef114fd167f6e0820 | /exile_server_config/CfgBuildings.hpp | 6c30e297b2e6e5c4d48f977f4585a358e185c114 | [] | no_license | maemo5/Server | 7f42254fb4567da8807f4116c4d5859d115acfaa | 8b524454faf34f3c6e06e1237751a1aa0d610313 | refs/heads/master | 2020-06-29T03:33:31.480299 | 2018-03-02T00:13:26 | 2018-03-02T00:13:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251,152 | hpp | CfgBuildings.hpp | class CfgBuildings
{
///////////////////////////////////////////////////////////////////////////
// Castles & Lighthouses & Life Guard Towers
///////////////////////////////////////////////////////////////////////////
class Land_LifeguardTower_01_F
{
table = "Tourist";
positions[] = {{-0.498047, -0.... |
9308d42305a9d032d2851e57e8fc8e1511811fa9 | 8aa58ac7b712fb6d6386f3c59a9bbf0cc02217f2 | /Classes/base/util/platform.cpp | 8d6858ee4e11e355c27e226486ff4764d9adb1b4 | [
"MIT"
] | permissive | peerobo/worded | 7aff2df2671cfe9e3b6d0e365e6df5d2d7df22c2 | eccddc89ffe8db4a9290634b5f31581472d30a38 | refs/heads/master | 2021-03-12T19:43:48.606952 | 2015-11-09T08:34:57 | 2015-11-09T08:34:57 | 41,892,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,430 | cpp | platform.cpp | #include "platform.h"
#include "cocos2d.h"
#include "../../GlobalVar.h"
#include "../../Constants.h"
#if CC_TARGET_PLATFORM == CC_PLATFORM_IOS
#include "ios/IOS.h"
#endif
namespace util
{
void platform::vibrate()
{
if (GlobalVar::myData.isEnableVibration)
{
#if CC_TARGET_PLATFORM == CC_PLATFORM_IOS
GlobalVar... |
2c7cf6467960354da8e5fc6ecc796474acc8f4fb | 1b3376c2b64332386ce67fd20d25cdac4e935280 | /SiegeMode/Classes/UnitState_Approach.h | 21988c7387e1a5fe5bcacd4fd7986e8b4ba0bbbe | [
"MIT"
] | permissive | seokmin/SiegeMode | f8aa22793b4020055bbcba8384dc3a6375032e13 | 075a49723459fc94940da799cbd00ec60f6829d8 | refs/heads/master | 2021-01-21T13:21:16.722270 | 2016-05-26T01:42:15 | 2016-05-30T01:21:00 | 54,639,618 | 3 | 1 | null | null | null | null | UHC | C++ | false | false | 361 | h | UnitState_Approach.h | #pragma once
#include "UnitState.h"
// 타겟에게 사정거리가 닿을 때까지 접근하는 상태
class UnitState_Approach : public UnitState
{
public:
CREATE_FUNC(UnitState_Approach);
bool init() override { return true; }
void startState(Unit* unit) override;
void runState(Unit* unit, float delta) override;
void endState(Unit* unit) override;
}... |
47ccce31a686989cb48f846f0d7e668f3861612f | faa0644ca5864073bee24765339055de8a89d631 | /Array_matrici_stringhe/gara/gara.cpp | c94aa6ffd42f72264b684310df011ea9876b0b1e | [] | no_license | FlashNoob98/unina | 6d5b14041e9d89a7d704b848e8f97ff72f133a54 | 432c1998a0cfac52a159371d43f1767b19e2dc92 | refs/heads/master | 2022-01-09T16:58:46.236604 | 2019-07-08T11:55:03 | 2019-07-08T11:55:03 | 110,722,804 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | gara.cpp | #include <iostream>
#include <string>
using namespace std;
int n,i;
int main(int argc, char** argv) {
do {
cout<<" numero massimo di partecipanti: 100"<<endl;
cout<<" numero partecipanti: ";
cin>>n;
} while ((n<=0)or(n>100));
struct tempo {
int h;
int min;
int sec;
... |
bcd62894df4b85dd4837be48cdb89c023d67cac1 | c4581998df28f305e08f05a4c8c6ac9c1336f357 | /tests/common.hpp | 510a55504308628907f2fe75d43641000f3098bb | [
"Apache-2.0"
] | permissive | Vestiacom/libeverest | 3a689c4731cbe3ef33e02822293b58cad469efff | 82a3ca7a2383a43efd0202b659db194928de9868 | refs/heads/master | 2021-06-04T01:33:55.493760 | 2019-12-30T15:17:03 | 2019-12-30T15:17:03 | 96,433,539 | 10 | 2 | null | 2017-07-07T10:49:00 | 2017-07-06T13:31:11 | C++ | UTF-8 | C++ | false | false | 277 | hpp | common.hpp | #ifndef TESTS_COMMON_HPP
#define TESTS_COMMON_HPP
#include <string>
#include <vector>
// This is for testing purposes
#define private public
void runParallel(const std::string& command);
void runParallel(const std::vector<std::string> commands);
#endif // TESTS_COMMON_HPPk |
72b77c349c092effaf582f0796bd82bec7c4a664 | 7478ef0b6fa9647af6fd8bca3abcfb61fc671f92 | /Fokin/lr_oop2/code/shape.cpp | fbb0dc883eab4218f6826af91a476d5e38db94df | [] | no_license | Foksen98/OOP-6303 | 8b62f7dfad1d539068c8e2a54ecbc01fbf68421e | f572eca96961ab5ffaf87811b8564b44663255fb | refs/heads/master | 2021-04-26T22:39:46.204977 | 2018-05-04T18:11:38 | 2018-05-04T18:11:38 | 124,128,188 | 0 | 0 | null | 2018-03-06T19:30:51 | 2018-03-06T19:30:51 | null | UTF-8 | C++ | false | false | 518 | cpp | shape.cpp | #include "shape.h"
void Shape::move (double newCoordinateX, double newCoordinateY)
{
coordinateX = newCoordinateX;
coordinateY = newCoordinateY;
updateNodes();
}
void Shape::setColor (string colorString)
{
color = colorString;
}
string Shape::getColor ()
{
return color;
}
double Shape::getCoordi... |
eab5f4950db7aa0520b709f5ac1844e2f926312a | 2013e3b231aa4e270101c3d71bfdf72a77f22b49 | /correlation/test/parser/parse_include.cc | 13c200f34dfaff9c47fe111fa5e97151128be99b | [
"Apache-2.0"
] | permissive | sdouce/centreon-broker | 0a10d21a225bad376a117f71d6ca9de17b4ae381 | 24cffd636fe3447ca22aeda784049b4dc712c200 | refs/heads/master | 2023-01-29T02:31:42.107083 | 2020-12-15T09:04:14 | 2020-12-15T09:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,378 | cc | parse_include.cc | /*
** Copyright 2013-2015 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed t... |
a20593dd7731305b73feb1e544ebdb62e36d2e08 | a008978d075df4302d6b560d2ac2e9f69a263b7f | /p4/Main.cpp | bc8afc41e7ccd24a254962451dd82b1420d5414f | [] | no_license | jsstrn/fcsb | f300fa2433bda79c6f4530e10cfdd0e118a97c9d | 0bda960838796a2682cfa7fd0d9fe939ebd234ed | refs/heads/master | 2020-04-11T05:38:13.983481 | 2014-07-24T16:06:58 | 2014-07-24T16:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,421 | cpp | Main.cpp | /*
* Developed by Faisal, Hafiz, and Jesstern
* Bachelor of Computer Science, University of Adelaide
*/
#include "Algorithm.h"
#include "lib.h"
/*********************************************/
/* Main Function */
/*********************************************/
int main()
{
unsigned in... |
5b6247bfb753450927b22f0b86c50044bd0598c4 | 4651e5589cb5ab525dfdccc6e2d288826c06b8bb | /Framework09/Framework09/Input.h | d8cba76ad95f9cf7c1a3452f1b4d8b9a219d2543 | [] | no_license | kevonyang/FrameworkD3D11 | 20bf5f848903974251744d8d77b7e0947b05d9f3 | b862616616f0ef213a70b01b6bb7578bdc0cc65a | refs/heads/master | 2020-03-17T06:34:20.512843 | 2018-07-04T13:05:55 | 2018-07-04T13:05:55 | 133,360,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | h | Input.h | #pragma once
#include "Common.h"
#include <dinput.h>
class Input
{
public:
friend class Root;
public:
bool Initialize(HINSTANCE hInstance, HWND hWnd, int width, int height);
void Shutdown();
bool IsKeyDown(unsigned int key);
bool IsEscapePressed();
bool Frame();
int GetMouseX(){ return _mouseX; }
int GetMouseY... |
43e64996c94363fe4129b0661182b0e8514ea4b1 | e93adc63e67101fadbb0d9747df682a4d6b0179a | /CV02/program3.cpp | 62f928a3817d2c5075c20a15c0d4c7d1e3984f03 | [] | no_license | byte98/A2B37CPP | de7a57ea25c718113d9725f327ce1a04269c805b | 3084c11afd7b139fa5089aa7d18bded71b05b76d | refs/heads/master | 2022-02-24T10:22:00.526535 | 2019-04-23T13:55:08 | 2019-04-23T13:55:08 | 210,535,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | cpp | program3.cpp | #include <iostream>
#include <fstream>
int main(int argc, char *argv[])
{
std::ifstream file;
file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
try
{
file.open("neexistujici soubor");
}
catch (std::ifstream::failure exep)
{
std::cout << "I/O Error" << std::endl;
std::cout << exep.what() <<... |
d4bae22da0e9fd85777427fb3a48d36542c840c3 | b64e573a852db34407a57c200c34f0a6c8b96c83 | /media/arduino/code/lcd.ino | 1dde1f546b76a8c79636c48ea334395475ee503c | [] | no_license | kuudan/EP1000 | 5ebc4c8c0391596a1cd14db80744378fab48cfda | 49eecb07e9d96a2de85a48819e538eac9f52ea7e | refs/heads/master | 2022-12-03T08:21:56.246742 | 2020-08-23T17:31:56 | 2020-08-23T17:31:56 | 261,114,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | ino | lcd.ino | //YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backl... |
659cdb99a9fe45dc1e0df5e1066d863fe134d4f6 | f4994f7532b1aa0577d720fcf9d3ab13d5f7923c | /Datastructure/Linked Stacks and Queues/Linked Queues.cpp | e8ebbe366b4073efdf7def4bb921173552630e9c | [] | no_license | zzm99/Algorithm-and-data-structure | 1f2571cb41c490d752945eb382e83a8ab8babb60 | 45f9c42bcb857732897d8a6291c662990531d604 | refs/heads/master | 2022-10-25T12:09:24.330243 | 2020-06-10T14:28:18 | 2020-06-10T14:28:18 | 271,293,261 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,103 | cpp | Linked Queues.cpp | // A CPP program to demonstrate linked list
// based implementation of queue
#include <bits/stdc++.h>
using namespace std;
class QNode{
public:
int key;
QNode* next;
};
class Queue{
public:
QNode *front, *rear;
};
QNode* newNode(int k){
QNode* temp = new QNode();
temp->key = k;
temp->next = NULL;
return t... |
e531fd2f2beb41c726794cd8afa7e557a5c541ed | 3a5529f7ec458a6efd72da5bb3fd9a66b0fff811 | /persistent_tree.cpp | a0df192fbc58569071e4b23ef918759d344c68db | [] | no_license | korenandr/algorithms | b90e2a355df7a23b83d7b6b17d811a6d8a245933 | 5ea75cc603ceee95ba72066eb4826beb674bf573 | refs/heads/master | 2023-04-10T05:48:35.548136 | 2021-04-23T21:15:46 | 2021-04-23T21:15:46 | 348,131,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,432 | cpp | persistent_tree.cpp | #include <iostream>
#include <iomanip>
#include <array>
#include <memory>
template <typename T, size_t SIZE>
class PerTree final
{
public:
PerTree(const std::array<T, SIZE>& values)
: _root(nullptr)
{
create_tree(values);
}
public:
void print() const;
PerTree set(size_t index... |
bb57d086f47800b524de829d08174aca16ab542d | 6e2a176c2ff69587c24e5aaa5e1e6d98e1cad4ca | /rosWorkspace/SubFloodSensor/src/common/BufferUtils.hpp | ca9e465838d5fbe4060984f9e7b2928b4f6dcd9c | [
"Apache-2.0"
] | permissive | chris-blay/guillemot-core | e30d4c7f5e97a21475f85f217ddbcb3a946676d6 | 5e20bf46c10da2e6b57c3293a9d9aa402c864288 | refs/heads/master | 2021-01-18T22:38:46.398698 | 2016-05-14T06:23:48 | 2016-05-14T06:23:48 | 29,338,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 781 | hpp | BufferUtils.hpp | /*
* BufferUtils.hpp
*
* Created on: Apr 13, 2013
* Author: bholdaway
*/
#ifndef BUFFERUTILS_HPP_
#define BUFFERUTILS_HPP_
#include "PortableTypes.hpp"
void putUInt8(UInt8* pBuf, UInt8 data);
UInt8 getUInt8(UInt8* pBuf);
void putUInt16(UInt8* pBuf, UInt16 data);
UInt16 getUInt16(UInt8* pBuf);
void putU... |
842d6832a23726cd144cb4086b6e314e6cb94aa6 | 3082f75b49a755547e4e50a7133616620e7f2d46 | /Code Files/section_9/example_3.cpp | 0c0b6c068c2600c3e01c8e0d51513032a0eb8fa6 | [
"MIT"
] | permissive | PacktPublishing/C-20-2a-New-Features | 5d79242f24e2935528f96ceac1c0b7acb753b855 | 4db407eb6a008df4d9fc87ba2df4d933c8648c6f | refs/heads/master | 2023-02-06T21:33:10.223745 | 2023-01-30T09:00:45 | 2023-01-30T09:00:45 | 238,122,457 | 18 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | example_3.cpp | #include <iostream>
#include <string>
struct S
{
std::string a;
int b = 42;
int c = -1;
};
int main()
{
S s{.c = 3};
std::cout << "\"" << s.a << "\", " << s.b << ", " << s.c << std::endl;
}
|
0e78eda1f2b72ab0336863802087fc3c6b8c5056 | e2e3cf2edf60eeb6dd45adaa8a58e110bdef92d9 | /Project/zoolib/Expr/Expr_Bool.h | abf82916cebc2ac9c84fa752febbd977b4860e2a | [
"MIT"
] | permissive | zoolib/zoolib_cxx | 0ae57b83d8b3d8c688ee718b236e678b128c0ac7 | b415ef23476afdad89d61a003543570270a85844 | refs/heads/master | 2023-03-22T20:53:40.334006 | 2023-03-11T23:44:22 | 2023-03-11T23:44:22 | 3,355,296 | 17 | 5 | MIT | 2023-03-11T23:44:23 | 2012-02-04T20:54:08 | C++ | UTF-8 | C++ | false | false | 6,840 | h | Expr_Bool.h | // Copyright (c) 2010 Andrew Green. MIT License. http://www.zoolib.org
#ifndef __ZooLib_Expr_Expr_Bool_h__
#define __ZooLib_Expr_Expr_Bool_h__ 1
#include "zconfig.h"
#include "zoolib/Compare_T.h"
#include "zoolib/Expr/Expr_Op_T.h"
namespace ZooLib {
// ==============================================================... |
a987ef7a695971fd37cc3b6801ab858785714139 | da29650865ee674b68c61537ef287846c1160fc1 | /src/Asteroids.cpp | 416e3269dd9e14e1ddb5c14032ca5f3801a3d744 | [] | no_license | stackofsugar/orbit-game | b5ed3afb7135b08f21c46696d689d19d420f6dab | c0d9a1bd29ea8e545946a0025dcf72730e1e6239 | refs/heads/master | 2023-05-09T04:11:06.704287 | 2021-05-17T15:26:13 | 2021-05-17T15:26:13 | 367,661,906 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,530 | cpp | Asteroids.cpp | #include "../include/pch.h"
using namespace std;
Asteroids::Asteroids() {
m_accelX = m_accelY = h_frameTimeCount = h_vellocCap = h_accelTimeCap = h_accelVariable = h_Yoffset = 0;
h_spinAcceleration = h_spinValue = 0.0f;
SDL_SetTextureBlendMode(m_texture, SDL_BLENDMODE_NONE);
}
Asteroids::~Asteroids() {
... |
f428fc149db2dee9f0f05f748924205021b26f59 | 31bf87dd738db9d6b789a4f008a0411b70103548 | /Runner/src/Map/Tile.cpp | b0ee41365dd3733d3d4d2ca7a0cface8ec4405c1 | [] | no_license | nhrjr/OutRunner | cf2dd9db4b11fd5bcf1d75bafb03df71cf1977ce | e0bd437546ab771673931522c89bf3fec715e92a | refs/heads/master | 2021-01-17T13:19:13.322077 | 2017-05-14T15:34:01 | 2017-05-14T15:34:01 | 57,307,962 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,712 | cpp | Tile.cpp | #include "stdafx.h"
#include "Tile.h"
#include <iostream>
Tile::Tile(const unsigned int height, const unsigned int width, sf::Texture& texture, const Animation& animation, const TileType tileType, const unsigned int numberOfVariants) :
tileType(tileType), tileOrientation(0), numberOfVariants(numberOfVariants) {
... |
35c69950b40ccd205e509aa9c87c611556a3a068 | 286781b73d10ebf24774a80343436ad7d327fe87 | /bs658_FindKClosestElements.cpp | 1d115205172aa68eb636cd4339a47cf6c8c75294 | [] | no_license | ada-zqz/leetcode | 70fabe811148b33d170ecb280a44a3b078b23a0b | 67d9a475395f4fe79a56e2ad87fa72425757b2ba | refs/heads/master | 2020-12-03T21:38:45.078563 | 2020-07-31T14:39:11 | 2020-07-31T14:39:11 | 231,493,976 | 1 | 0 | null | 2020-01-21T07:07:45 | 2020-01-03T02:09:47 | C++ | UTF-8 | C++ | false | false | 947 | cpp | bs658_FindKClosestElements.cpp | class Solution {
public:
vector<int> findClosestElements(vector<int>& arr, int k, int x) {
int n = arr.size();
int lo = 0, hi = n - k; //输出数组的起点
while(lo < hi) {
int mid = (lo + hi) / 2;
// 若输出是[mid, mid + k - 1],即这个范围包括了x,且x=mid or mid+k-1都可能
// --- mid -... |
da576adc9ff7e5f9aa84fb114ec76e52ad21dab3 | 9cb6b8d7d4625450db5f3fed5040e87bcc950832 | /acampamento08/segunda/treino/UnionOfIntervals.cpp | 962b665aac097a3767dfad5cee97a3ec7036f15d | [] | no_license | kangli-bionic/Treino-Maratona | 7ca7731142514c28880c0e463c6a8ba5d97aebb6 | c02fefbe740f8792b825faa722718cdd64c456a2 | refs/heads/master | 2021-05-30T03:28:37.094987 | 2014-09-15T18:17:01 | 2014-09-15T18:17:01 | null | 0 | 0 | null | null | null | null | WINDOWS-1257 | C++ | false | false | 796 | cpp | UnionOfIntervals.cpp | // Includes {{{
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cmath>
#include <stdio.h>
using namespace std;
// }}}
#define TRACE(x...) x
#define PRINT(x...)... |
e7026fe5562cd041db0a8386d4978bc02c0f0690 | e0bf250b6c42c1045c2ccff2ac042f206f7d01cc | /Matrix/Rotate matrix by 90 (anti-clockwise) in O(1) space.cpp | f7eb6f85650472b942f10794a5c83d25f435262b | [] | no_license | Zhatabsaifi/DS-and-Algorithms | 07d645b826288a722fe4803a3cd243f57b7ea7d0 | b5621e398ca8c9a6aab6a5b19c0acdb4fb17a4d0 | refs/heads/master | 2022-11-29T12:06:17.458319 | 2020-08-06T08:43:59 | 2020-08-06T08:43:59 | 285,524,879 | 0 | 2 | null | 2020-08-06T09:08:26 | 2020-08-06T09:08:25 | null | UTF-8 | C++ | false | false | 1,196 | cpp | Rotate matrix by 90 (anti-clockwise) in O(1) space.cpp | /*
Ques :-Rotate matrix by 90 (anti-clockwise) in O(1) space
Theory:- To solve the question without any extra space, rotate the array in form of squares,
dividing the matrix into squares or cycles. For example,
A 4 X 4 matrix will have 2 cycles. The first cycle is formed by its 1st row, last column, ... |
12b2d02de76bc232298a471c4e928c7b646c43c8 | d312e90b49f0aebd0c577bf7599430cc137b3609 | /common.cpp | 70580cf568b5bbc71848a4ae36a03e809d6e00e5 | [] | no_license | prakank/competitive-programming | ed822eda09b11fb770dd97413909da13d1a327d2 | 9c0d2ef643647181d0d9c47a21a059a19102f4e6 | refs/heads/master | 2023-04-06T01:41:17.216051 | 2021-05-01T18:47:16 | 2021-05-01T18:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,649 | cpp | common.cpp | // First element just greater than given number in sorted array
// similar is lower_bound when just less than given number asked
vector<int> arr(n);
int ans=upper_bound(arr.begin(),arr.end(),target)-arr.begin();
int arr[]
ans= upper_bound(arr, arr+n, tofind) - arr;
// sum of digits in a number
int n;
int ans=0;
while... |
0cd521577062235be30258bb072d8468813dcaa8 | 66fb7014ab01da4b39fa7d9c9fe6b4ab348394b1 | /1116.cpp | 7780468de13440a2a579ada0dbaf962a8fa33e4c | [] | no_license | SunHaoer/OJ_ZCMU | 48b96196bb0ae977531480c4412c7e26fe0f5d07 | 8f2b9f603771486d9c76ee9bdb6857a4e4127096 | refs/heads/master | 2021-07-15T23:37:40.588133 | 2018-12-04T02:44:09 | 2018-12-04T02:44:09 | 140,536,383 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 969 | cpp | 1116.cpp | #include<iostream>
#include<cmath>
#include<vector>
#include<sstream>
using namespace std;
const int MAX = 100000001;
vector<int> v;
void fun3() {
for(int i = 0; i < v.size(); i++) {
cout<<v[i]<<endl;
}
}
bool fun2(int n) {
string str;
stringstream stream;
stream<<n;
stream>>str;
f... |
bdc8c0e253e8a2626740220a9760beb9277f8260 | e3646ddf6283df78c8f449c5faca0e9e4d31c3de | /剑指Offer/数组/剑指Offer 03.数组中重复的数字.cpp | c4ff0c255296b7bb0227f8be2d24e2d826e44ed7 | [] | no_license | SeizeTheMoment/Solution-to-Algorithm-Excercise | 54ec930e02bde179eb37b76d550f2c4765858346 | 79df5e6f1d89e359f815ea2c562b8c60c7035422 | refs/heads/master | 2021-09-26T16:36:54.729191 | 2021-09-25T13:26:58 | 2021-09-25T13:26:58 | 244,899,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | 剑指Offer 03.数组中重复的数字.cpp | class Solution {
public:
int findRepeatNumber(vector<int>& nums) {
int i = 0;
int N = nums.size();
while(i<N)
{
if(nums[i]!=i)
{
int x = nums[i];
if(nums[i]==x)
return x;
swap(nums[i],nums[x])... |
999ae123bbc5ccfb5a08778ebeabfc61ec795822 | bf5758819d696682114ff1eed4faefc6b3b2dd13 | /Source/UE4Rollercoaster/UE4RollercoasterPawn.h | 0cb8c8feb98063a994afce8ce1cf5e21ac8ab77c | [] | no_license | Kittnz/UE4Rollercoaster | d71e822392e7731db66344d9b159ec1cc3f720ef | b4545c48e20b5dae35b1630a01643cabe740566d | refs/heads/master | 2016-09-05T09:57:26.496609 | 2014-04-29T07:04:16 | 2014-04-29T07:04:16 | 19,486,996 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | h | UE4RollercoasterPawn.h | // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameFramework/DefaultPawn.h"
#include "UE4RollercoasterPawn.generated.h"
/**
*
*/
UCLASS()
class AUE4RollercoasterPawn : public ADefaultPawn
{
GENERATED_UCLASS_BODY()
public:
virtual FRotator GetViewRotation() const OVERRIDE;
... |
e74aa39f18c38f08dcf8c6ea2a792246a80c17eb | 0d4e28f7e9d961e45d32a4735ad7c1f76bbda34a | /ocs2_core/test/cppad_cg/testCppAdInterface.cpp | 5dec2bb211dc6d5f97436b5e43955236cfcde505 | [
"BSD-3-Clause"
] | permissive | RoboMark9/ocs2 | a4fc0c215ccb3a86afeffe93b6a67fb0d9dd9450 | b037d819c9a02a674de9badb628b32646ce11d6a | refs/heads/main | 2023-08-29T15:20:07.117885 | 2021-10-20T13:09:37 | 2021-10-20T13:09:37 | 453,286,119 | 1 | 0 | BSD-3-Clause | 2022-01-29T03:30:28 | 2022-01-29T03:30:27 | null | UTF-8 | C++ | false | false | 3,091 | cpp | testCppAdInterface.cpp |
#include <gtest/gtest.h>
#include "commonFixture.h"
using namespace ocs2;
class CppAdInterfaceNoParameterFixture : public CommonCppAdNoParameterFixture {};
class CppAdInterfaceParameterizedFixture : public CommonCppAdParameterizedFixture {};
TEST_F(CppAdInterfaceNoParameterFixture, testModelGeneration) {
ocs2::... |
d723d2483e46403b2a13bf1d866cf4b22b84ed40 | 85add643559329f2b0bfd857fdcba64b9ef2b62c | /src/a.cpp | 175563d8e7b0bccf542ccd0b9d114339f87a09ad | [] | no_license | MayorovAndrey/OOPSZI_3laba | 8ed5f50c37eb66d2e4a901985c1330db5d11b382 | 51419fa2be302b4e324cb3f8133b076442ab47e7 | refs/heads/master | 2020-05-24T03:09:22.672403 | 2019-05-16T18:52:58 | 2019-05-16T18:52:58 | 187,067,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97 | cpp | a.cpp | #include <math.h>
double a(int i)
{
return pow(-1, i) * (1/ (pow(i, 2) + pow(2, i)));
} |
dcd191852b234c730fd89da92afce98f1686afb4 | 179d85485e018e9d4ef6d90b2f6351fa704a4507 | /common/test/stream/Base64OutputStreamTest.cpp | 2e20a01ce82b68948d9eba509e399645873da955 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | webOS-ports/mojomail | f4addae3efef050b09f7a1d6e4ebc31a9cc1c5bb | f86606eb1ad10d0eb82cb9f3bc482a5d1ce34545 | refs/heads/webOS-ports/webOS-OSE | 2023-01-21T09:02:48.124971 | 2022-07-03T17:47:14 | 2022-07-03T17:47:14 | 71,721,861 | 0 | 3 | null | 2022-07-03T17:47:15 | 2016-10-23T18:39:38 | C++ | UTF-8 | C++ | false | false | 1,939 | cpp | Base64OutputStreamTest.cpp | // @@@LICENSE
//
// Copyright (c) 2010-2013 LG Electronics, 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 require... |
45b13ae1cfe12f4016a96df24f9c738d764a0122 | 8e869e404ab5677f060b77244e54a3b0828c71e8 | /CS 31/Stars Project/Stars Project/stars.cpp | 7b4c316243a2f1e15ddf26cec168b6007cd337c4 | [] | no_license | SamanHashemi/UCLA-Coursework | efa911728ee021a59240a2ea4abb980d2d539691 | ef6c1c8220c658ce8481118610113a41f7482e51 | refs/heads/master | 2020-03-19T12:52:36.472731 | 2019-10-19T21:20:28 | 2019-10-19T21:20:28 | 136,546,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,752 | cpp | stars.cpp | //
// main.cpp
// Project 5
//
// Created by Saman Hashemipour on 11/18/17.
// Copyright © 2017 Saman Hashemipour. All rights reserved.
//
#include <iostream>
#include <cstring>
#include <cctype>
#include "utilities.h"
using namespace std;
int runOneRound(const char words[][7], int nWords, int wordnum);
int mai... |
9d02266335fb39596a5029842e60765637e5ac96 | 1d96a21f86c1cf3cf0cde4f4d10b58c942cd919c | /cdlist.cpp | adafe44aa91df98ad63c40e6c9438c1ed1a85e1b | [
"BSD-3-Clause"
] | permissive | guillaume-morin/libdatastruct | d5f9b809bbde112866834a8ba81e20581a52b651 | 3c5588c117df758090c5b9cc130a3e8988fe240a | refs/heads/master | 2020-04-06T07:00:59.391460 | 2015-04-27T11:40:15 | 2015-04-27T11:40:15 | 34,653,818 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,533 | cpp | cdlist.cpp | /*****************************************************************************/
/* LIBC++ - cdlist.cpp */
/* Classe liste doublement chainée circulaire */
/* Copyright (c) 2004 Guillaume Morin - All rights reserved */
... |
ca573b5f44ec4ca5de014a39f0183c09e572d28f | 49bd331f56ddb63201fec48435a2471365b7cfdd | /FIREprogram/GUI0804/jttool.h | c379cd51b788436ac9997e275184238df551ebab | [] | no_license | NIRANKEN/jammingSimulation | 30365a9118c76c8a773d6aab764dd666de9daca5 | 1d45ec0fd79205a769165cd925680fef7baa9fb9 | refs/heads/master | 2021-09-23T21:48:44.731372 | 2018-09-27T22:42:48 | 2018-09-27T22:42:48 | 109,472,863 | 1 | 1 | null | 2017-11-25T07:30:26 | 2017-11-04T06:33:33 | C++ | UTF-8 | C++ | false | false | 16,217 | h | jttool.h | #ifndef _JTTOOL_H_
#define _JTTOOL_H_
#include "nr.h"
#include "MT.h"
#include <vector>
namespace JT
{
//--------------------------//
//--Tools for JTsimulation--//
//-------(jttool.cpp)-------//
//--------------------------//
inline void PutZahyoRandomly(Vec_IO_DP &zahyo,Vec_IO_DP &zahyotmp,DP L,int seednu... |
1d40d42ec03b8a76a5f0239a98aafdb5d7b28c02 | 04fde8a09465f91bb95c407192a8ac6efe1ddf6a | /lab_01/density_distr/density_functor.h | 1f01126a6c82e7356a217bb28eba4535cd46d200 | [] | no_license | adv-dev-22/mm_ii | 235f11598385cfa72a491b09af6ab2141e6c607a | 1b36f027e86cd6f36417898740d6d8bdc4101cae | refs/heads/master | 2021-03-01T11:18:32.021677 | 2020-03-23T05:45:54 | 2020-03-23T05:45:54 | 245,780,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | h | density_functor.h | #ifndef _DENSITY_FUNCTORS_H_
#define _DENSITY_FUNCTORS_H_
template <typename T>
class BaseDensityFunctor {
public:
virtual ~BaseDensityFunctor();
virtual T value(const T x) const = 0;
virtual T operator() (const T x) const = 0;
};
template <typename T>
class UnaryDensityFunctor : public BaseDensityFunct... |
55d98bb0398695d74f6f179e4eb4e454c1e048c3 | 3d6b4d9445880c6a9e3c4170f156eacbdb1414c8 | /Source/LeaveThePast/Manager/HelpManager.h | ff233fdd55822fc72eb4de808c7130372ada7158 | [] | no_license | wlzs04/LeaveThePast | 1c4386109b2246cfeb5c63371b9262bb4f1a41bf | db818bc416253c7d5c951e23419a4abe934b4039 | refs/heads/master | 2022-02-23T06:31:52.215352 | 2019-08-18T10:15:16 | 2019-08-18T10:15:16 | 185,384,171 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 798 | h | HelpManager.h | #pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "HelpManager.generated.h"
class UTexture2D;
//包含一些静态辅助函数
UCLASS()
class LEAVETHEPAST_API UHelpManager : public UObject
{
GENERATED_BODY()
public:
static UHelpManager* GetInstance();
void Init();
static FVector ConvertFStringToFVe... |
78f0c2d16c5a3de5b12a895c87204a12b1aa2189 | 98efb564bb374aa9503b80ddc3bd022994dc94b8 | /triangle.cpp | fd25c79d81bbfaea0cc4e19d9ce2284bee496b5b | [] | no_license | Hyeon97/PS | 57b7594a454a999c55ee920a2f4012c7f0df7889 | a6ed4a5549e26e0e006dad00b90830e33afce474 | refs/heads/master | 2023-04-25T19:53:52.551190 | 2021-06-08T14:31:42 | 2021-06-08T14:31:42 | 367,803,429 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,496 | cpp | triangle.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#pragma warning(disable:4996);
typedef long long ll;
using namespace std;
typedef struct {
ll x;
ll y;
}point;
vector<point>P, Q;
int T;
ll ccw(point a, point b, point c) {//기준점 a 음수 >> 우회전 양수 >> 좌회전 0 >> 일직선상
return (a.x * b.y + b.x *... |
6d012083c53a14ca3526cc9591c7279ebd64a737 | 900b319a2b0c4dd50905226f66476dea4000a476 | /src/client/c_game.cpp | 4f502e14dda9a61ce666270194a8832eef6721ce | [] | no_license | SarpAkin/basicMinecraftClone | b55d7075d03550f76dd83cf0f7914466b7c42f57 | 4ed13e19760f0760767493a17a546920e25ed804 | refs/heads/main | 2023-05-24T05:47:58.487242 | 2021-06-15T15:15:24 | 2021-06-15T15:15:24 | 339,823,770 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,320 | cpp | c_game.cpp | #include "c_game.hpp"
#include <chrono>
#include <memory>
#include <utility>
#include "../common/Physics.hpp"
C_game::C_game(uint16_t port, const char* ip) : Game(), Client(port, ip)
{
while (Player.lock() == nullptr)
{
std::this_thread::sleep_for(std::chrono::milliseconds(2));
Tick(0.002f);
... |
c2878c5d67a03985be07e30a0f9743f72616e76e | c80f25d24cee6ed8dba1513c227886c07d83cf75 | /WeaponGirl_1/Client/trunk/Classes/SceneLogin/WidgetServerSeparator.cpp | d4eef49478d971d5acc7da3db05d75d7b34acbaa | [
"MIT"
] | permissive | cnsuhao/newProBase | c250e54ead43efb57363347d1700649a35617d15 | 4fe81d30740a2a0857ca6e09a281fed1146e6202 | refs/heads/master | 2021-08-23T14:19:24.568828 | 2015-11-27T13:37:54 | 2015-11-27T13:37:54 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,454 | cpp | WidgetServerSeparator.cpp | ////////////////////////////////////////////////////////////////////////
// Copyright(c) 2015-9999, WuHan GoodGame, All Rights Reserved
// Moudle: WidgetServerSeparator.cpp
// Author: ÅíÎÄÆæ(Peng Wenqi)
// Created: 2015/10/10
////////////////////////////////////////////////////////////////////////
#include "Widge... |
b2f06e88a54112f789fe8b27d9707f1cc99dd151 | 51e099f982ee80806f1894ad33a1cb0e81b23c83 | /model.cpp | 048ff0d96e4e41cfd9bcf053cf94a4812c009ea1 | [] | no_license | kendryfbo/sistema-nomina | 76832d8248d92eeb566c0fa105a5d675534d42d9 | 96e7399dc87f050ea7eacdcebf8f9e4e860271a9 | refs/heads/master | 2020-04-10T21:48:14.374245 | 2016-07-20T12:35:45 | 2016-07-20T12:35:45 | 63,780,330 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,519 | cpp | model.cpp | #include "model.h"
//CONSTRUCTORES
Model::Model() : connected(false){}
Model::Model(QString hostName,QString dbName,QString dbUserName,QString dbUserPassword,int dbPort)
{
conexion =connDB(hostName,dbName,dbUserName,dbUserPassword,dbPort);
connect();
status="";
}
Model::Model(QString connName, QString hos... |
30c7dd8083dbbc736519ac9eccbd4837df7676f0 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /chrome/renderer/v8_unwinder_unittest.cc | 016c9512a8542aae8f0b6c42ad25fa9b402ca6f1 | [
"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 | 8,757 | cc | v8_unwinder_unittest.cc | // Copyright 2019 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/renderer/v8_unwinder.h"
#include <algorithm>
#include <memory>
#include "base/bind.h"
#include "base/callback.h"
#include "base/locatio... |
2d4b196155eb721498e17dad0f93b2393b423d88 | 044c978d905ee64657e76b7fddc4410c7527dfa9 | /kichigin.yuri/common/matrix.cpp | 8bb5b2334bbee975c875a7e8ab632e0c2aaa4141 | [] | no_license | sdimosik/spbspu-labs-2020-904-4 | bbbb2e6e7d64f28646a9eea3f8f3c10a49f3d913 | 1adedb23a08f345b7e975b78814b8a7fdbb5a736 | refs/heads/master | 2023-06-04T17:01:25.310853 | 2020-12-15T20:57:28 | 2020-12-15T20:57:28 | 378,229,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,017 | cpp | matrix.cpp | #include "matrix.hpp"
#include <stdexcept>
#include <string>
namespace kichigin
{
Matrix::Matrix(unsigned int layerFullSize):
matrix_(nullptr),
matrixFullSize_(0),
layerFullSize_(layerFullSize)
{}
Matrix::Matrix(const Matrix& matrix):
matrix_(new std::shared_ptr<Shape>[matrix.matrixFullSize_]),
... |
ce6808ae0ea9fed29d18120c9a606c40dc823b3f | 5355f2c499fd7d4dbff5cfe153aec8d21776d46b | /platform_client/message_elements/MessagePropertiesLookup.h | 44981066fb7fb7c453582897fd3e9bbae20d588d | [] | no_license | ssicard/systems-project | 4d2224034f82ccfab4491968d29cc3a339596c65 | 48b69547e1376d90b73b6a1a8c04678de7786bac | refs/heads/master | 2020-03-28T04:23:04.062082 | 2018-11-28T20:09:26 | 2018-11-28T20:09:26 | 147,711,567 | 5 | 0 | null | 2018-10-17T16:58:59 | 2018-09-06T17:48:13 | C++ | UTF-8 | C++ | false | false | 539 | h | MessagePropertiesLookup.h | #include <string>
#include "SqlBase.h"
#ifndef MESSAGEPROPERTIESLOOKUP_H
#define MESSAGEPROPERTIESLOOKUP_H
class MessagePropertiesLookup : public SqlBase {
public:
MessagePropertiesLookup(int RequirementType = -1, std::string RequirementDesc = "") :
RequirementType(RequirementType), RequirementDesc(Requiremen... |
487945963c45af4870ff3e8382eecb197392e759 | fe19ca02e835ab1bd98ae406fc4c84a7443d58c2 | /Client/updateactor.cpp | ea1308c2c184f5bac984db20eaf8180783363ba4 | [] | no_license | NikitaVirachev/course-work-on-DB | c08377ee0eeebcd677d7d87a7ed123bc657edd17 | 294003801927178c6e860dac9d90b3359a4434a7 | refs/heads/main | 2023-08-12T12:51:47.049247 | 2021-10-09T15:14:22 | 2021-10-09T15:14:22 | 384,673,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,197 | cpp | updateactor.cpp | #include "updateactor.h"
#include "ui_updateactor.h"
updateActor::updateActor(QWidget *parent) :
QWidget(parent),
ui(new Ui::updateActor)
{
ui->setupUi(this);
ui->label_7->clear();
ui->dateEdit->setDate(QDate::currentDate());
ui->dateEdit->setEnabled(false);
ui->pushButton->setEnabled(fals... |
fce8835a084899c9c6b7fa82426bda0c4ec78a51 | 7f5332c446f8815d4a5f06c81305a952076459fe | /Lab_02/arrays.cpp | 7c5c3856548bc00f5a1b4384796ded21e3acbc82 | [] | no_license | handydani/COP3503-Spring2017 | c7182f70808cf9d173be359873d46cecfa2b1c06 | 8ec383e91eccc724ebb569ea5796bb34bd5c1ff3 | refs/heads/master | 2021-01-19T06:48:01.022092 | 2017-04-18T23:13:19 | 2017-04-18T23:13:19 | 87,501,893 | 0 | 0 | null | 2017-04-07T03:47:36 | 2017-04-07T03:47:36 | null | UTF-8 | C++ | false | false | 1,255 | cpp | arrays.cpp | #include <iostream>
#include <string>
const int MAX_SIZE = 15;
int main() {
// Static 1D Arrays
std::cout << "Please enter number of inputs: ";
int input = 0;
std::cin >> input;
// do checks on input
//int arr[input]; //ILLEGAL variable <input> varies during runtime
int arr[MAX_SIZE] = {}; //LEGAL. MAX_SIZE is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.