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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25cdeda843f43a51f553e6e0ea25f69f2f842b59 | c2484df95f009d516bf042dca93857b43a292333 | /google/2015/qualification_round/b/main.cpp | 3b01f3a6264e36688e285f64637a301d26381e89 | [
"Apache-2.0"
] | permissive | seirion/code | 545a78c1167ca92776070d61cd86c1c536cd109a | a59df98712c7eeceabc98f6535f7814d3a1c2c9f | refs/heads/master | 2022-12-09T19:48:50.444088 | 2022-12-06T05:25:38 | 2022-12-06T05:25:38 | 17,619,607 | 14 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | main.cpp | // https://code.google.com/codejam/contest/6224486/dashboard#s=p1
// Problem B. Infinite House of Pancakes
#include <cstdio>
#include <iostream>
using namespace std;
int in[1001];
int solve() {
int n; cin >> n;
for (int i = 0; i < n; i++) {
cin >> in[i];
}
int answer = 1000;
for (int i ... |
fee93c1b6eec06c6d50543bb15719c1e8ab72702 | 465ef3d0cb1d0c8bf13ffe16a0636dae563c9a5a | /src/map/CHyperTime2D.cpp | fb11aca13d7ccc4ef85cecff507c9abffee388e7 | [] | no_license | chronorobotics/pedestrians | 99368e37eca61db6a1184be32c50ef36bf812cbf | c6ad9179826910f7e1c360d945778524629755c4 | refs/heads/master | 2021-07-18T20:24:01.236298 | 2019-09-05T14:01:37 | 2019-09-05T14:01:37 | 195,369,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,226 | cpp | CHyperTime2D.cpp | #include "CHyperTime2D.h"
using namespace std;
static bool quick = false;
CHyperTime2D::CHyperTime2D(const char* name,float spatialCellSize,int temporalCellSize,const char* model,int order)
{
lastError = 1000000000000;
timeDimension = 2;
covarianceType = EM::COV_MAT_GENERIC;
positives = 0;
corrective = 1.0;
ord... |
f62af6922780b1225b78d9c26d82ba0b203903fe | 3d14f17273aa51c7e8c1403a8b1d53175941d0f1 | /depends/univplan/src/univplan/minmax/minmax-predicates.h | 976b9c6a8469e22a4ff6ac074ff9dd92b5dc94e7 | [
"LicenseRef-scancode-unknown",
"MIT",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"ISC",
"bzip2-1.0.6",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause",
"Artistic-2.0",
"PostgreSQL"
] | permissive | chiyang10000/hawq | 3341d705aa0b6922a6439b71bb09fced7d890066 | 74ce659bc0696faa8bb7f6943931f5a4f4daf2af | refs/heads/master | 2023-03-26T13:37:56.325334 | 2021-03-16T03:54:44 | 2021-03-17T05:33:31 | 110,235,661 | 0 | 0 | Apache-2.0 | 2021-03-02T07:16:11 | 2017-11-10T10:37:11 | C | UTF-8 | C++ | false | false | 19,060 | h | minmax-predicates.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
e358e546e5c32cca404b19a522b04c294dbd8bb9 | e46bd22112c15d9558ad9531deef183849636d62 | /LeetCode/30-Day Challenge/November/Week 4.7 Sliding Window Maximum.cpp | 251390fc56fdfdf675029188e2803b19103a67ba | [] | no_license | jariasf/Online-Judges-Solutions | 9082b89cc6d572477dbfb89ddd42f81ecdb2859a | 81745281bd0099b8d215754022e1818244407721 | refs/heads/master | 2023-04-29T20:56:32.925487 | 2023-04-21T04:59:27 | 2023-04-21T04:59:27 | 11,259,169 | 34 | 43 | null | 2020-10-01T01:41:21 | 2013-07-08T16:23:08 | C++ | UTF-8 | C++ | false | false | 1,148 | cpp | Week 4.7 Sliding Window Maximum.cpp | /*******************************************
***Problema: Sliding Window Maximum
***ID: Week4.7
***Juez: LeetCode
***Tipo: Sliding Window + Deque
***Autor: Jhosimar George Arias Figueroa
*******************************************/
class Solution {
public:
#define pii pair<int,int>
#define mp make_pair
... |
3e886b9f171c02fe9163094604a3d4e152114965 | f72c5434750740d01b046c2227baf88349112911 | /CSES/dp/rectanglesCutting.cpp | 72e597ebba9ddf80a7095f5bd698077fdd726802 | [] | no_license | urishabh12/practice | 00145e024daccacc3f631fae3671951f9e2d6f5a | 17143214a024b87a76afc6b4c33b8725885a78a1 | refs/heads/master | 2022-12-27T02:23:09.406093 | 2021-07-10T06:50:12 | 2021-07-10T06:50:12 | 193,316,611 | 0 | 0 | null | 2022-12-14T04:46:18 | 2019-06-23T06:59:51 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,269 | cpp | rectanglesCutting.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
vector<vector<int>> dp(501, vector<int>(501, 1e9));
int solve(int a, int b)
{
if (a == b)
{
return 0;
}
if (dp[a][b] != 1e9)
{
return dp[a][b];
}
for (int i = 1; i < a; i++)
{
dp[a][b] = min(dp... |
39e0e5636105b4c0ddb83b84e1fb628f403adec9 | 82347d3003e4c19b5ca312cac3db829583cdfc21 | /src/baserobotctrl.h | dbf4fd39666c026cb543a04237375d1a5a209ddc | [] | no_license | jwawerla/ifd | 8598fb50371c2164c381ab9a7b52cb10351cfaa6 | e37a91f0e558758602870c11a83773697a96a2ac | refs/heads/master | 2021-01-02T08:09:54.445837 | 2009-11-10T15:59:35 | 2009-11-10T15:59:35 | 316,068 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,087 | h | baserobotctrl.h | /***************************************************************************
* Project: IFD *
* Author: Jens Wawerla (jwawerla@sfu.ca) *
* $Id: $
***************************************************************************
*... |
0e5ff092e31052e0e78f69593940e73bb28b0ac4 | bdcb92c759d9af3ee4b115989a2a82db1194f64f | /EventObserver.cpp | c22fa9c1e5374d44086e1e2407bb49ed8c5d9b2c | [] | no_license | robre22/FlyingDot | 78f21093200c174d09fc09fff4d2fe2582989275 | c748f8a220bf2038fe775132e98d8e35c0271f9e | refs/heads/master | 2021-05-12T02:50:03.349037 | 2018-02-16T10:46:37 | 2018-02-16T10:46:37 | 117,601,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | cpp | EventObserver.cpp | #include "EventObserver.h"
#include "Player.h"
#include "Canvas.h"
#include <iostream>
EventObserver::EventObserver(Player* pPlayer,Canvas* pCanvas)
:m_pPlayer(pPlayer),m_pCanvas(pCanvas)
{
}
EventObserver::~EventObserver()
{
}
void EventObserver::onNotify()
{
float fPosX,fPosY;
m_pPlayer->getPos(fPosX,fPosY);... |
adceae1925a5227531dcf363b31cd279d4664a2a | 704008c5ad0c3c2bdcb3f01fe173580b1c42eee9 | /C++11/C++11生产者消费者模型.cpp | b5910f8da13212da54f73c2c99f5d9eb81c53969 | [] | no_license | BeHappyBeAlive/notes-for-cpp | 8406d30b7a2e395af3fb1345d530be9d31904169 | 851c0473609e476640ad1b418ede2c87a9165f65 | refs/heads/main | 2023-07-23T10:04:39.710202 | 2021-08-29T17:31:04 | 2021-08-29T17:31:04 | 398,747,090 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,483 | cpp | C++11生产者消费者模型.cpp | #include<iostream>
#include<thread>
#include<mutex>
#include<condition_variable> // 条件变量
#include<queue> // C++ STL所有的容器都不是线程安全的
using namespace std;
/*
C++多线程编程 - 线程间的同步通信机制
多线程编程两个问题:
1. 线程间的互斥
竞态条件 =》 临界区代码段 =》 原子操作 =》 线程互斥锁mutex 轻量级的无锁实现CAS
strace ./a.out mutex => pthread_mutex_t
2. 线程间的同步通信
生产者、消费者线程模型
*/
std... |
f907da7751d95869244169d09e2384b0c931899b | 132cb81550b5a18abbcf4b21717b8f3e2017b3b4 | /include/Han/DebugGuiLayer.hpp | 38cedfe86e6f3a7d63d698f8cde3a7fd951ef0c8 | [] | no_license | leohahn/han | e0ff38f6772d0f15968fd188dde5b446069ea90c | 1f3837075b67e5860c76f8e497ae16d0cde71875 | refs/heads/master | 2020-04-22T02:27:49.331440 | 2019-10-04T02:41:53 | 2019-10-04T02:41:53 | 170,050,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | hpp | DebugGuiLayer.hpp | #pragma once
#include "Han/Layer.hpp"
class DebugGuiLayer : public Layer
{
public:
DebugGuiLayer()
: Layer(String("DebugGui"))
{}
void OnAttach() override;
void OnDetach() override;
void OnUpdate(DeltaTime delta) override;
void OnEvent(Event& ev) override;
private:
bool OnMouseButtonPress(MouseButtonPressE... |
7bc1ddd74aa6836b3bcd2805497c6e8c8d16d3d4 | 795de5afea1a2d0174c9d8834c513739a337ba8d | /4. Random variables/dice2.cpp | 6d2546cc29f11a040a4d91c6e937ef049f06c9f3 | [] | no_license | Myung-Hyun/SW-Lab-Cpp | b36fd3595cd8a2d811eca8dcca3ab9e08d8fe40a | 1a77a8f15877e17d8ad11fa15e6d636abf45168b | refs/heads/master | 2022-12-20T14:21:04.324831 | 2020-10-18T07:04:26 | 2020-10-18T07:04:26 | 299,815,276 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,223 | cpp | dice2.cpp |
#include <iostream>
#include <cstdlib> // for rand()
#include <ctime>
#include <fstream>
#include <random> // gaussian
#include <math.h>
using namespace std;
int main()
{
ofstream my_out("out.txt");
default_random_engine generator;
normal_distribution<double> myGauss(350.0, 17.07);
int ... |
47fb6e03f70b522ca6d41f6a1cc123379d723c9f | 5eae9247f28c05539173ffafb3d243b6e806b1b0 | /ElectronicSystems/DeterministicAnalysis/+Utils/constructHotSpot.cpp | 239c472ee078a8d585538c24d07ff8a3ac5c61fd | [
"MIT"
] | permissive | hilbert-space/MathRocks | 2f077d73757c31be627af55fc4d125dc6d6195ce | f4ea67d4d9dfab5d9cfeee9e3dbd75bd6e95da80 | refs/heads/master | 2021-09-26T08:51:10.305446 | 2018-10-28T13:51:55 | 2018-10-28T13:51:55 | 22,913,563 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,095 | cpp | constructHotSpot.cpp | #include <mex_utils.h>
#include <HotSpot.h>
using namespace std;
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
string floorplan_file = from_matlab<string>(prhs[0]);
string config_file = from_matlab<string>(prhs[1]);
string config_line = from_matlab<string>(prhs[2]);
HotSpot hotsp... |
38680fc037311f575725f65a4b5ea33fd12c749d | ea11886c946f0998d1eb7e9b61047d54d1eb245e | /Classes/smartfish/smash/time/AnimatedComponent.h | b0942cf6c2e199a6b21f714d66528617b280819a | [] | no_license | edwardandy/KylinMobile | 6a9b41c674f70c62db66dc44e8984ccd864752db | fc6fa4b14616444c5440a4824ddebed82f384088 | refs/heads/master | 2021-01-22T09:09:08.840775 | 2014-02-07T15:04:36 | 2014-02-07T15:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | h | AnimatedComponent.h | // AnimatedComponent.h
// Smash
//
// Created by Luke on 13-3-20.
//
//
#ifndef __Smash__AnimatedComponent__
#define __Smash__AnimatedComponent__
#include <iostream>
#include "../core/SmashMacros.h"
#include "../core/EntityComponent.h"
NS_SF_BEGIN
class AnimatedComponent : public EntityComponent {
public:
... |
2d235887e31aae110cdf8544a2e226de450206a2 | 9e30313d5f67e7cdfe0f3710a3ab98b90af1fbb3 | /Zork/Zork/Item.cpp | 9f845e361f0b992f3cbc2a4c385c77c20010798f | [
"MIT"
] | permissive | JoanStinson/Zork | 3388819b7e71ab663723b8079790d006b4a69fe7 | d8f869a5d0935e1f38d9e05a5863efcc1000077c | refs/heads/master | 2022-10-05T15:57:17.769119 | 2022-09-16T17:28:09 | 2022-09-16T17:28:09 | 192,528,780 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 77 | cpp | Item.cpp | #include "Item.h"
ItemType Item::GetItemType() const {
return itemType;
}
|
63010dd423c2b409c8c7fd7ed5eb9a641f0aa9aa | 23562908ceff614f2864bf03eeb70b4a506f3834 | /src/Source.cpp | 6ba05a9a86b9cdb3e2be74a38999b310028b2d40 | [
"MIT"
] | permissive | unknu/VpkPacker | 009f605711ca6ab94af13f8ede3c6ff55e9c0248 | 8498b75b3b167fa000f7f14255266cdc7d741c6a | refs/heads/master | 2021-01-12T18:26:36.436677 | 2016-11-02T01:07:43 | 2016-11-02T01:07:43 | 71,377,455 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | Source.cpp | #include <psp2/kernel/processmgr.h>
#include <psp2/sysmodule.h>
#include "Header.h"
int main( int argc, char *argv[] )
{
vita2d_init();
vita2d_set_clear_color( RGBA_BLACK );
// sceIoSetPriority
VpkPacker::Unity u;
while( 1 ) {
if(! u.CheckDraw() ) continue;
sceKernelPowerTick( SCE_KERNEL_PO... |
97b6424ed42e2e1ddbe32ef5a395427516620a83 | ebd3360a127b9f0f38363dc0dad35a5d452140ac | /29.cpp | 7bba9d6ab5861b1bc9efc87f70a67031dd0033f9 | [] | no_license | peachhhhh/CodingInterviews | e4c0f41ad956f0519e59d28de0064e381b9f5693 | 54e0bea986a30188b716c5a794222054b015b98f | refs/heads/master | 2020-09-12T06:54:39.782020 | 2020-01-16T08:33:50 | 2020-01-16T08:33:50 | 222,347,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,311 | cpp | 29.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
//调整大顶堆
void adjustHeap(vector<int> &v, int i, int k)
{
if (i > k / 2)
{
return;
}
int maxindex = i;
int l = i * 2;
int r = l + 1;
if (v[l] > v[maxindex] && l < k)
{
maxindex = l;
}
i... |
316a3a64bb28106025d7c22cd15ae654cf4166ba | 8395619f0e794e204df5a1f3227db2af68f55a78 | /break.cpp | f8054e43120a060b1164104c702146b0322e4bdf | [] | no_license | gawbi/ch07 | d2fba796dc757562758e91d84e93adeb576d54bc | 25a5cde3e57410e8127abdb1a72fdef7b485a8f6 | refs/heads/main | 2023-01-30T16:44:05.102924 | 2020-12-15T08:39:23 | 2020-12-15T08:39:23 | 321,603,182 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 674 | cpp | break.cpp | // file:break.c
#define _CRT_SECURE_NO_WARNINGS //scanf() 오류를 방지하기 위한 상수 정의
#include<stdio.h>
int main(void)
{
int input;
while (1)
{
printf("정수[음수, 0(종료), 양수]를 입력 후 [Enter] :");
scanf("%d", &input);
printf("입력한 정수 %d\n", input);
if (input == 0)
break;
}
puts("종료합니다.");
return ... |
67e8ba06d42fdafef162d229e4946683147d2cec | 783a20108e50539082e60338e4e6d07a64cba6e5 | /ios/custom_frameworks/PI_MediaCore.framework/Headers/psreport.h | 2f3b9f5685ca3f691b1671e85b1669ba3fe900f0 | [
"MIT"
] | permissive | sinianshou/Demo | 72463db9ba873c87c617278ed72306aada697dc1 | db7e80f7ce9f736630ea8cddbe50af3846a175d7 | refs/heads/master | 2023-01-30T08:32:42.652804 | 2019-10-10T07:11:55 | 2019-10-10T07:11:55 | 210,132,828 | 0 | 0 | MIT | 2022-12-10T03:18:28 | 2019-09-22T11:03:39 | Objective-C | UTF-8 | C++ | false | false | 930 | h | psreport.h |
#ifndef _LIB_PS_REPORT_H_
#define _LIB_PS_REPORT_H_
class PSReport
{
public:
static PSReport *GetInstance() {
if (!m_pInstance) {
m_pInstance = new PSReport;
}
return m_pInstance;
}
virtual void destructor();
int SetReportInterval(int report_i... |
281edd52cf4c4b67a9aeff069947316c067a6376 | 26aa8adc6efb6c83b936fbced99f74cd8d65f3c1 | /student/lab5/lab5.cpp | 08e814c03b0ed9d4fe34ce00d561cb6ec1e6a1cf | [] | no_license | leylafiratli/old_code | 12c16fb3b6e5bc87c662aca6de5746aedc44a20f | b66a770cd9e86d127bdb35c3d69f082e5e2ef2f9 | refs/heads/master | 2021-01-19T22:15:09.972910 | 2014-05-06T03:21:32 | 2014-05-06T03:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,063 | cpp | lab5.cpp | #include <iostream>
#include <cmath>
#include "bmplib.h"
using namespace std;
int n = 3;
int ulr;
int ulc;
int h;
int w;
int cr;
int cc;
int a;
int b;
int x;
int y;
unsigned char image[SIZE][SIZE];
// Prototypes
void draw_rectangle(int ulr, int ulc, int h, int w);
void draw_ellipse(int cr, int cc, int a, int b);
... |
cc89113cf750e237b35a4e7fc41d77c3603a85c7 | 2ed1fc231f58fc916d0fac184d7199f73169c1b5 | /practice/temp.cpp | 47c8c83bfdeb82322c4aa57750330d5897f24aaf | [] | no_license | niteshsurtani/algorithm_coding | 15478c557aa351aadfd977d52866f3520d79d3b7 | ebda983feb7265ad953907ac1ebd5febcfbc9c5f | refs/heads/master | 2020-07-17T16:11:22.391780 | 2016-11-16T14:33:41 | 2016-11-16T14:33:41 | 73,928,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,613 | cpp | temp.cpp | string Solution::largestNumber(const vector<int> &A) {
// Do not write main() function.
// Do not read input, instead use the arguments to the function.
// Do not print the output, instead return values as specified
// Still have a doubt. Checkout www.interviewbit.com/pages/sample_codes/ for more detail... |
840b4a000e251743f939b0d9e86da454987fd5b0 | 69b1f623ef673bf2778c25b0006ce48084fb1ba0 | /server/chores.cpp | afcfacea4a944848c1a074e9a4a38208b41ed4bc | [] | no_license | lotuskip/yuxtapa | 640a25e74d74b4fcc8fa7869be7b89385a0529a3 | 6fcf7dc23d69e52569cf6381701344ecdf09519b | refs/heads/master | 2020-05-27T11:55:00.095231 | 2018-10-24T08:04:29 | 2018-10-24T08:04:29 | 941,914 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,114 | cpp | chores.cpp | // Please see LICENSE file.
#ifndef MAPTEST
#include "chores.h"
#include "actives.h"
#include "network.h"
#include "game.h"
#include "viewpoint.h"
#include "spiral.h"
#include "settings.h"
#include "../common/los_lookup.h"
#include "../common/util.h"
#include <cstdlib>
#include <algorithm>
#ifdef DEBUG
#include <iostre... |
a99ff9d74aed1a8407de66c1c3c115dfca8a8842 | ba5edf42a024e5bd09b8ac5812b9aed29b86f854 | /src/PluginProcessor.h | 8cf276b5ddadbe052d9f42022e02703566041f41 | [
"Apache-2.0"
] | permissive | GuitarML/SmartGuitarAmp | 59d4278c88824499b85989d85b4e2ee3644aa84a | 883944d1b46d03e6e906602db2f15cf24ecb743b | refs/heads/main | 2023-04-30T09:17:24.545782 | 2023-04-11T18:03:36 | 2023-04-11T18:03:36 | 293,843,943 | 465 | 35 | Apache-2.0 | 2023-03-21T23:13:09 | 2020-09-08T15:00:15 | C++ | UTF-8 | C++ | false | false | 4,124 | h | PluginProcessor.h | /*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#pragma once
#include "../JuceLibraryCode/J... |
a2eb65b05a16f470e405c9eee66f6c86f16c266f | ccac8bf0c462ed112726ac4e11578a4a2ed83228 | /compiler/code/IR/IRInstr/CmpMnemonics/IRInstrCmp_ge.h | dcf1a967b5e400a9d46118f4faf2d2d8504fa1ca | [
"MIT"
] | permissive | kenza-bouzid/PLD-COMP-H4242 | 16821ca45dcfe97e05dd2a83ead58379e7844060 | a72dcf4bd6dab6e5d2b825aa58c5e3560917490e | refs/heads/master | 2022-05-10T09:37:07.259924 | 2020-04-10T11:18:31 | 2020-04-10T11:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | h | IRInstrCmp_ge.h | #pragma once
#include "../IRInstr.h"
class IRInstrCmp_ge : public IRInstr
{
private:
/* data */
string dest;
string op1;
string op2;
public:
IRInstrCmp_ge(BasicBlock *bb_, string dest, string op1, string op2);
void gen_asm(ostream &o);
~IRInstrCmp_ge();
};
|
e4a4a5c16b2dab88febc10a02cb8508ca65bf4d8 | eeda19981e21fc916b83ed4ed624fa427577ac46 | /Codeforces Solutions/1535-C_UnstableString.cpp | 0eb6fc3fadae0e0791d261f844f7c7981e041862 | [] | no_license | omarsamy09/Competitive-Programming-solutions | 1b54c5f856d92f76754ccac8cbb863c70cbd1e79 | bfafed917a507f7bbb9336f40a6fe2a9e9ca139d | refs/heads/main | 2023-07-16T02:53:40.189965 | 2021-08-20T23:07:59 | 2021-08-20T23:07:59 | 398,418,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 56 | cpp | 1535-C_UnstableString.cpp | https://codeforces.com/contest/1535/submission/118457961 |
a7a4405b43175c9e6cfa1010d605c487308544ed | cadb836d9ac9c9e3b618cf44c936015a0aea24a8 | /daily_challenge/2023/LT_2023-03-03_28._Find_the_Index_of_the_First_Occurrence_in_a_String.cpp | 7dfa3b953ec0c0901963ad0c73b86ab79f5001a9 | [] | no_license | checkoutb/LeetCodeCCpp | c6341a9fa5583a69046555a892bb41052624e83c | 38832f7ccadf26b781cd8c9783c50916d1380554 | refs/heads/master | 2023-09-03T22:35:50.266523 | 2023-09-03T06:31:51 | 2023-09-03T06:31:51 | 182,722,336 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,664 | cpp | LT_2023-03-03_28._Find_the_Index_of_the_First_Occurrence_in_a_String.cpp |
#include "../../header/myheader.h"
class LT
{
public:
// D D
//for (int i = 0; ; i++) {
// for (int j = 0; ; j++) {
// if (j == needle.length()) return i;
// if (i + j == haystack.length()) return -1;
// if (needle.charAt(j) != haystack.charAt(i + j)) break;
// ... |
5c2d68d0dc1478602b99cd47db6e3bd126002bb9 | 7215052282fabbad6a4e81efd71a2a1a2c94d1f6 | /Assignments/Assignment 3/main3.cpp | a8e8d540eb332ee314cde0dc7ee6e1005274fb0f | [] | no_license | DEVANSH-DVJ/CS213-Autumn-2020 | e19dbeffaeeeec9ad3c1e2b07aa9d64e1a935d9c | fe5daa86f9aac85de0a2b594deda983d8347f139 | refs/heads/master | 2023-04-16T01:06:40.401732 | 2021-04-29T12:03:33 | 2021-04-29T12:03:33 | 300,065,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | cpp | main3.cpp | #include "190100044_3.h"
using namespace std;
int main() {
quad_tree qt1(2);
qt1.set(0, 2, 1, 3, 1);
qt1.print();
cout << endl;
qt1.resize(3);
qt1.set(3, 7, 3, 7, 0);
qt1.print();
cout << endl;
qt1.resize(2);
qt1.print();
cout << endl;
qt1.resize(3);
qt1.print();
cout << endl;
qt1.re... |
85de24e11663381a6357c7b96b3871310eb7554d | 2809ed9c1589d07a799d77c147a54e57ae483312 | /fluid.cpp | c93853161966f0e5a3d55edf121890f1f17d4ba1 | [] | no_license | adilijiang/SPH-1 | d460e3130206214cc15874cefdb61737f05b73dc | 443bfb2252eadb43cc7a36b1c82af4660fd20192 | refs/heads/master | 2020-04-27T07:05:12.579101 | 2018-10-31T13:48:46 | 2018-10-31T13:48:46 | 174,126,601 | 5 | 1 | null | 2019-03-06T10:48:23 | 2019-03-06T10:48:23 | null | UTF-8 | C++ | false | false | 13,838 | cpp | fluid.cpp | #include "fluid.hpp"
const float fluidVolume = 1000 * MASS / REST_DENSITY;
const float particleDiameter = powf(fluidVolume, 1.0f / 3.0f) / 10;
const float particleRadius = particleDiameter / 2;
Fluid::Fluid( void ) {
for (float x = -particleRadius * 9; x <= particleRadius * 9; x += particleDiameter) {
... |
d3f0ab98fb109981334c727b1220f4ea5511d7ae | 893b49242c4e6e1c39bced06262f0b527b92f761 | /Semester_3/Programming/Task2/Task2/RB_Tree.h | f240d851e4361aba553a8b080502037c3655a03d | [] | no_license | chastis/UniversityStuff | a9e1896ef8bf63e22fc9aae8b9661dfcb5ad398a | cfc2730c9b66d287a128c822d171a8f3e384ed8e | refs/heads/master | 2022-12-09T09:17:15.762297 | 2021-04-14T17:44:50 | 2021-04-14T17:44:50 | 215,631,068 | 48 | 14 | null | 2022-12-08T08:10:37 | 2019-10-16T19:45:58 | C++ | WINDOWS-1251 | C++ | false | false | 4,728 | h | RB_Tree.h | #ifndef RBTREE_H
#define RBTREE_H
#include<stdio.h>
#include<stdlib.h>
// коды ошибок
#define ERROR_STRUCT 1
#define ERROR_BALANCE 2
#define SIZE 1000 //!< размер массива проверки
//! статистика (можно удалить для ускорения процесса)
struct stat_st {
struct st {
int max_count; //!< рекодрное количество поворото... |
edfd63cd29ad63adbaffefcf314eb6a9ab45cc07 | 36183993b144b873d4d53e7b0f0dfebedcb77730 | /GameDevelopment/Programming AI By Example/Buckland_Chapter7 to 10_Raven/Raven_SensoryMemory.h | 447f990d9c659e2f810f5a5578e1e77774484e6d | [] | no_license | alecnunn/bookresources | b95bf62dda3eb9b0ba0fb4e56025c5c7b6d605c0 | 4562f6430af5afffde790c42d0f3a33176d8003b | refs/heads/master | 2020-04-12T22:28:54.275703 | 2018-12-22T09:00:31 | 2018-12-22T09:00:31 | 162,790,540 | 20 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 3,812 | h | Raven_SensoryMemory.h | #ifndef RAVEN_SENSORY_SYSTEM_H
#define RAVEN_SENSORY_SYSTEM_H
#pragma warning (disable:4786)
//-----------------------------------------------------------------------------
//
// Name:
//
// Author: Mat Buckland (ai-junkie.com)
//
// Desc:
//
//------------------------------------------------------------------------... |
6059e0e3e6970c32990e72e251f447063a47f5aa | 768ab62df6534b3071dffbbd8143cdca5bd48045 | /cacheTable/test.cpp | 0e40f4fc9ee0eec6dbab5bc8bd36665f30f2f3f7 | [] | no_license | terry-chelsea/terry | e40113cb0528ecd3f6b0a671d8b9643ec7805f71 | b2606afd87bdb79b4df25dc4e80587b252cfc9d1 | refs/heads/master | 2020-05-18T13:13:35.768997 | 2014-03-06T15:04:04 | 2014-03-06T15:04:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,571 | cpp | test.cpp | /*
* =====================================================================================
*
* Filename: test.cpp
*
* Description: tyest cache table
*
* Version: 1.0
* Created: 07/06/12 18:30:52
* Revision: none
* Compiler: gcc
*
* Author: (fengyuatad@126.c... |
b8a65cbca1dad715f66bac011c80ca396ebec21e | 851cbeaa5577bf249c55263bccd4640e0f68e452 | /iCyberSecurity-master/iCyberSecurity-master/iCyberSecurity/Customer.cpp | b08e053d1e472e25d2acb78b0530ee8f857fff7c | [] | no_license | shatfield4/iCyberSecurity | 444cfee72a023a53418d54ff0fe13cc1c07ce943 | 2857ae9e3ab31de091e72f09dc094062bf5ec262 | refs/heads/master | 2020-07-24T12:19:02.479866 | 2019-10-23T22:58:06 | 2019-10-23T22:58:06 | 207,922,948 | 0 | 2 | null | 2019-10-23T22:03:20 | 2019-09-11T23:15:54 | C++ | UTF-8 | C++ | false | false | 3,202 | cpp | Customer.cpp | #include "Customer.h"
#include "order.h"
#include <string>
void Customer::setName(std::string x)
{
//setting the input value to the objects name
name=x;
};
void Customer::setKey(std::string x)
{
//setting the input value to the objects keylevel
keyLevel=x;
}
void Customer::setPamphlet(bool x)
{
... |
5281bc8f1bc8f3e58726ce8b86d513e895f8cd80 | b4fd892821fa86eee37d53e0c307ad610d67ed42 | /题目练习/牛客/牛客/字符串排序.cpp | 68fe9db69f895b378719621ce8ef9b6c09450a83 | [] | no_license | Empty0Qc/New-Empty | 0fcfa4e35af5bdbe173c4f092493ec127bf37e93 | a05673052fea0ef97db695d9488e12c51f6a2a75 | refs/heads/master | 2020-04-01T06:36:47.636480 | 2019-10-24T05:44:38 | 2019-10-24T05:44:38 | 150,874,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,681 | cpp | 字符串排序.cpp | ////#include <iostream>
////#include <string>
////#include <vector>
////#include <queue>
////using namespace std;
////
////int main()
////{
//// string s;
//// while (getline(cin, s))
//// {
//// vector<string> v(s.size(), "");
//// vector<queue<char>> vq(26);
//// for (size_t i = 0;i < s.size(); ++i)
//// {
//// ... |
df20724469d249ae53b0d9fce7fa6d57fcab3a06 | 42ab733e143d02091d13424fb4df16379d5bba0d | /third_party/libassimp/include/assimp/SmoothingGroups.h | 92d65cea022349b1784d1d42a6213bf86282495a | [
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later"
] | permissive | google/filament | 11cd37ac68790fcf8b33416b7d8d8870e48181f0 | 0aa0efe1599798d887fa6e33c412c09e81bea1bf | refs/heads/main | 2023-08-29T17:58:22.496956 | 2023-08-28T17:27:38 | 2023-08-28T17:27:38 | 143,455,116 | 16,631 | 1,961 | Apache-2.0 | 2023-09-14T16:23:39 | 2018-08-03T17:26:00 | C++ | UTF-8 | C++ | false | false | 3,803 | h | SmoothingGroups.h | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2019, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... |
12cb047fe7605c560638005acd23fa624cf8e889 | 3602bb2a59034e923f394d7b48551ffcb9852295 | /src/joke.cc | 72bc403d59a4be4c2e80e9f1b81640ecc4b705c1 | [] | no_license | tome2/tome2 | dc9ba21fd03b3ec226c57ace092d39f3878fe9ab | 2209ab83f31967b6ca0b1ba6ef298bde5a82fbd4 | refs/heads/master | 2023-06-09T02:01:42.438028 | 2023-02-10T10:48:54 | 2023-02-10T10:50:30 | 48,683,757 | 91 | 40 | null | 2023-06-03T13:53:57 | 2015-12-28T09:00:04 | C++ | UTF-8 | C++ | false | false | 729 | cc | joke.cc | #include "joke.hpp"
#include "monster2.hpp"
#include "options.hpp"
#include "util.hpp"
#include "variable.hpp"
#include "z-rand.hpp"
static void gen_joke_place_monster(int r_idx)
{
int try_;
for (try_ = 0; try_ < 1000; try_++)
{
int x = randint(cur_hgt - 4) + 2;
int y = randint(cur_wid - 4) + 2;
if (place_... |
0f3d22ac358813d69995ea91c5cd0607d19da635 | b479cf43f17746458fb71e9fc925c7436a0c89b8 | /Math/Source/Vector/Vector3Int.cpp | eaf3db5c1b4292bff9ab06802265d62cd523cdc9 | [] | no_license | nazariyb/FRTEngine | ff14b828002cfcba9fe6c7782b6a649af851d821 | 3b3de2cedd07e8f4572b608b9a9f7aa34450c83a | refs/heads/master | 2023-04-23T10:27:36.776640 | 2021-05-16T11:01:37 | 2021-05-16T11:01:37 | 312,707,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,469 | cpp | Vector3Int.cpp | #include "Vector3Int.h"
namespace PROJECT_NAMESPACE
{
Vector3Int::Vector3Int()
: Vector3Int(0)
{}
Vector3Int::Vector3Int(const Vector2Int& XYVector, int Z /*= 0*/)
{
_data = XYVector._data;
SetZ(Z);
}
Vector3Int::Vector3Int(int X, const Vector2Int& YZVector)
{
_data = DirectX::XMVectorSetInt(X, YZVe... |
0113c738b6cef6ce136d4e2677161c3c8d69a3c9 | 2a1340292895cd8217aa297b1e0159738784615f | /源码/TankGame/MapTank.cpp | 66e1173e43a2ebe961c692c81a3e1eeaa60fff4b | [] | no_license | mountainCold/c- | 5deb7beb6733565e23a110b516187f1aa98cb08f | 7bfd39b0b160683bc36b15db47c8ff808e52244a | refs/heads/master | 2020-07-09T21:14:48.888825 | 2019-08-24T00:03:42 | 2019-08-24T00:03:42 | 204,085,726 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,662 | cpp | MapTank.cpp | #include "MapTank.h"
MapTank Map;
MapTank g_InitMap;
MapTank g_EditMap;
MapTank g_ReadMap;
void MapTank::SetMap(int x, int y, int val)
{
nMap[y][x] = val;
}
int MapTank::GetMapVal(int x, int y)
{
if (x < 0 || y < 0 || x>59 || y>49)
{
return -1;
}
return nMap[y][x];
}
void MapTank::WriteMap()
{
//画边界
for (int ... |
09036abb3807b8685c86e76dd2750ac0d483b593 | 861cd69248ccc4b6b03831d8d6f7e53486a13701 | /src/libsnw_compiler/grammar/snw_error_rules.cpp | afe10834b136263ebb4dd403600097009c3890fe | [
"MIT"
] | permissive | Sojourn/snowda | 410570facac441e36e807d3978eb807a5dc15b73 | 432118a9ae561b8d6119cd34d1935a08a70e49cc | refs/heads/master | 2020-04-06T07:00:06.416401 | 2016-08-05T01:13:35 | 2016-08-05T01:13:35 | 54,746,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | snw_error_rules.cpp | #include "../snw_compiler.h"
using namespace Snowda;
using namespace Snowda::Ast;
ExprResult Snowda::errorNud(Parser &parser, Token token)
{
return ParserError(token, token.content);
}
ExprResult Snowda::errorLed(Parser &parser, const Expr *left, Token token)
{
return ParserError(token, token.content);
}
|
ca7b44aa4db62133230e5038e58210b8d5118973 | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/libwebrtc/test/pc/e2e/analyzer_helper.cc | 539db38ea560867585f441c8b67f3356d4a9c26e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,189 | cc | analyzer_helper.cc | /
*
*
Copyright
(
c
)
2019
The
WebRTC
project
authors
.
All
Rights
Reserved
.
*
*
Use
of
this
source
code
is
governed
by
a
BSD
-
style
license
*
that
can
be
found
in
the
LICENSE
file
in
the
root
of
the
source
*
tree
.
An
additional
intellectual
property
rights
grant
can
be
found
*
in
the
file
PATENTS
.
All
contributing... |
5f39ab29f410102d92c3618f60cd55c2c55cc295 | eb518b01f6ee07565ae7b3d4d8c08036ee2c07c1 | /joystick.cpp | e7c01c1098e3cb20c1081dc2e5c42620121524f3 | [] | no_license | zsimpson/zbslib | 98928507a38f9ab8959c339f8d9082ad02bfbef0 | 431c2e8588ff0da7c91d8799c5c01a70fd6e6c01 | refs/heads/master | 2020-04-15T21:04:32.064026 | 2018-11-10T04:17:54 | 2018-11-10T04:17:54 | 10,534,718 | 3 | 2 | null | 2018-10-01T19:16:13 | 2013-06-06T19:31:00 | C++ | UTF-8 | C++ | false | false | 3,694 | cpp | joystick.cpp | #include "joystick.h"
#include "tmsg.h"
#include "string.h"
//#include "windows.h"
// The following lines duplicate the code needed from windows.h
// In case of a compile problem, comment out the following and
// uncomment the above includes.
extern "C" {
struct JOYINFO {
unsigned intwXpos;
un... |
6717d7fc512ef904eed53558b16483a20413ec08 | 283a140827c6df4befa331c7fa89aba882b00e45 | /Random/11995_UVA.cpp | 31c61234f2c55bab83541c76f68685ba37d02924 | [
"MIT"
] | permissive | limafabio/CompetitiveProgramming | f0c32805fcab0cc1d0a340088e44fe4bd36e3942 | cacd9d78687f5bfe77eb1eb8c6030ec1c843f0c7 | refs/heads/master | 2022-09-26T05:24:39.125498 | 2022-09-07T19:18:00 | 2022-09-07T19:18:00 | 33,583,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,373 | cpp | 11995_UVA.cpp | #include<stdio.h>
#include<stdlib.h>
#include<vector>
#include<algorithm>
#include<string.h>
#include<math.h>
#include<queue>
#include<stack>
#include<map>
#include<set>
#include<iostream>
using namespace std;
#define min(x,y) x < y ? x : y
#define max(x,y) x > y ? x : y
typedef pair<int, int> ii;
typedef vector<ii> vi... |
c39bf7b744d1dc4235f5d84e81204dd1f4dab30a | 9264ad419b73883a69fb02688ddc3ee40c53edbd | /CF/208D.cpp | 82ff77679dea4f6f4261c6f42f0b5826abe39e44 | [] | no_license | manish1997/Competitive-Programming | 6d5e7fb6081d1a09f8658638bddcd1c72495c396 | b7048f770f7db8ac0bc871d59f1973482f79668f | refs/heads/master | 2021-01-13T04:31:13.082435 | 2020-03-22T20:32:04 | 2020-03-22T20:32:04 | 79,900,759 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,339 | cpp | 208D.cpp | //https://codeforces.com/blog/entry/15296?#comment-203606
//offiline conncetivity of a graph
#include <bits/stdc++.h>
using namespace std;
#define pi 3.1415926535897
#define ll long long
#define tr1(n) cout << n << endl
#define tr2(n1,n2) cout << n1 << " " << n2 << endl
#define mem(A,i) memset(A, i, sizeof(A))
#define ... |
7495c951acc12b16030c39862d4bb6c21b0aed35 | 2def1b3add7510a29939b5af1c41e1e3f11d281d | /include/storm/DistributedRPCInvocations.h | f708847e3d808bb332bdb935b085b99735b6f485 | [] | no_license | ishumei/ccstorm | 594a38cda187075f665debfdeb4cfcd43a4f41d7 | 6a48a74297b85bc7fd94407c52457775660d8805 | refs/heads/master | 2020-12-25T02:50:23.641428 | 2016-03-19T10:47:54 | 2016-03-19T10:47:54 | 51,989,674 | 0 | 1 | null | 2016-02-18T13:51:59 | 2016-02-18T07:45:23 | C++ | UTF-8 | C++ | false | true | 20,789 | h | DistributedRPCInvocations.h | /**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#ifndef DistributedRPCInvocations_H
#define DistributedRPCInvocations_H
#include <thrift/TDispatchProcessor.h>
#include "storm_types.h"
class DistributedRPCInvocationsIf {
publi... |
a233b0c0612ed647920f84cd29382f7e01442896 | e20a146de4e61a4a062b443f22e1a5d2ec0e8fe8 | /src/GameStatePause.cpp | f81f3875188f5b79ecb3c1c1e7c868513e410c13 | [] | no_license | ferdinandjason/city-building-game | d78953dea4000b35bd4c5ff1842ba08dfdfd475e | a28b0d75b90593dbedef7a0df2ba4fbf2bb6bae5 | refs/heads/master | 2021-08-30T13:01:08.080612 | 2017-12-18T03:12:47 | 2017-12-18T03:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,292 | cpp | GameStatePause.cpp | #include "GameStatePause.hpp"
GameStatePause::GameStatePause(Game *game,GameStateEditor *games)
{
//ctor
this->games=games;
this->game = game;
sf::Vector2f pos = sf::Vector2f(this->game->window.getSize());
this->view.setSize(pos);
pos*=0.5f;
this->view.setCenter(pos);
this->gameStates=S... |
0224d0084b24de8856d3d0944358c8ba020fc4e7 | 0a7628b27fc2a2ce0e8c02f8888c63b145eefe09 | /solutions/validate-binary-search-tree.cpp | 1d9869f1488da62b5ed7f6bbfdee58adb4793ec4 | [] | no_license | VidushiGupta80/leetcode | 60c9a46fcb63e8599aafeb5ef11de56e07c86772 | 9beb84d8f8213dde888b54b213c76d395c38dc8c | refs/heads/main | 2023-02-09T09:58:45.579702 | 2021-01-02T10:39:32 | 2021-01-02T10:39:32 | 307,142,492 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,608 | cpp | validate-binary-search-tree.cpp | //Validate Binary Search Tree -> 06/07/2020 12:15
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(i... |
070b05140175e1513c8f44855349bfa64280842b | 778f08e46f73cb6f48c8681b95be74858adcbada | /gis_patrol_client/src/factories/pgui/pTextEdit.cpp | 16d8b4255dcc605c579efc1bb357855398eb8dc1 | [] | no_license | YuriyRusinov/gis_patrol_rubin | 2704e2612431e9197da738ac9a860173a1127256 | 6c1344ac29fdfc28b63e737dab53900f8cab1ab1 | refs/heads/master | 2023-06-15T14:21:12.621001 | 2021-01-21T20:34:22 | 2021-01-21T20:34:22 | 265,806,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | cpp | pTextEdit.cpp | /*
* @brief Класс-виджет для текстового поля
* pTextEdit.cpp
*
* (C) НИИ "Рубин"
* @author
* Ю.Л.Русинов
*/
#include <QFont>
#include <QGridLayout>
#include <QLabel>
#include <QTextEdit>
#include <pParamValue.h>
#include <pCatParameter.h>
#include "pTextEdit.h"
pTextEdit::pTextEdit( QSharedPointer< pParamValu... |
25719d451db90ebab156d979701b0753249858a4 | 54da97058e1319bf0bc1c60198558aeb6b004ecd | /Geometry/Surfaces/SurfaceUtils.hpp | aabe5f6508d7a485c52a90ddc9364b214d94905f | [
"BSD-3-Clause"
] | permissive | khurrumsaleem/helios | 202021d96490bd4ad117ccc1196799c019285e7a | fe7a06992abcf495d9b09d2d172b8cc6fdd67b80 | refs/heads/master | 2022-01-24T21:45:51.088917 | 2020-06-27T05:19:10 | 2020-06-27T05:19:10 | 205,647,629 | 0 | 0 | null | 2019-09-01T08:08:19 | 2019-09-01T08:08:19 | null | UTF-8 | C++ | false | false | 3,353 | hpp | SurfaceUtils.hpp | /*
Copyright (c) 2012, Esteban Pellegrino
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 and th... |
995ceeeefb55b4c8d62cdcbd78a5f2eeb860cdc7 | b1e5b734aca8eef98b9061ed52ae5fbf6c66821f | /PB_rtc_LCD_I2C.ino | 25be44de81a87e5544ad283738ddec89402731f8 | [] | no_license | bartleph/Arduino-Stuff | a3283a4bb3ea66ceaade00182efd82824a55662a | 5807e00f056b12be8530010fcb0f00fd3692d544 | refs/heads/master | 2021-05-04T18:12:21.711806 | 2018-03-04T21:08:21 | 2018-03-04T21:08:21 | 120,102,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,647 | ino | PB_rtc_LCD_I2C.ino | /*
* A better Clock and LCD Solution.
*LCD Clock using a DS1307 RTC and LCD connected via I2C and Wire lib
Paul Bartlett Feb 2018
*/
#include <Wire.h>
#include "RTClib.h"
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x3F // Define I2C Address for the LCD//
#define Rs_pin 0
#define Rw_pin... |
89510225a5e123b3bfc9c6324d18a9ce08fb01bc | 0d74161c499ac2287b1d0ecb444aa92b220cda11 | /httpserver/headerValue.cpp | 772f49446c8403d574af74d06c5cca7946a10666 | [
"MIT"
] | permissive | ondra-novak/jsonrpcserver | 70e19c7d1f269c109412764e7ac18706479f98cb | 878f5f7a981a326dcb39d43d0bb5c4eac213a65c | refs/heads/master | 2020-04-04T07:34:52.097615 | 2019-12-13T08:42:59 | 2019-12-13T08:42:59 | 27,509,171 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,350 | cpp | headerValue.cpp | /*
* headerValue.cpp
*
* Created on: Jan 20, 2016
* Author: ondra
*/
#include <string.h>
#include <ctype.h>
#include "headerValue.h"
#include "lightspeed/base/containers/constStr.h"
#include "lightspeed/base/countof.h"
using LightSpeed::countof;
namespace BredyHttpSrv {
static ConstStrA hdrfields[] = {
... |
cc91ba817579f787250a0f249ce2c32a343df3b3 | 2f6e766368a6637771e8eab26ba0627c3d2b0f79 | /tests/generator/test_utilities_blaze.hpp | d9ba77e5d6893539434130323583c6623dce35a5 | [] | no_license | HPAC/MatrixGeneratorCpp | 26fcc42ff23d9250fb558b1930b14462f65e8465 | a85baafc25b39842c0a64cff7776aa71971682be | refs/heads/master | 2023-03-17T18:57:00.723993 | 2021-03-08T15:13:35 | 2021-03-08T15:13:35 | 74,408,045 | 1 | 2 | null | 2019-05-15T10:30:08 | 2016-11-21T21:36:02 | C++ | UTF-8 | C++ | false | false | 2,144 | hpp | test_utilities_blaze.hpp | // Copyright (c) 2017 Marcin Copik
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef __LINALG_TESTS_TESTS_GENERATOR_TEST_UTILITIES_BLAZE_HPP__
#define __LINALG_TESTS_TESTS_GENERATOR_TEST_UTILITIES_BLAZ... |
14a84f6a19a34ae46359afc6a507e6d48bae8f7b | 05fe9b0653456b0b16c62fb3578edd9061029946 | /book/真相強化学習入門/program_978-4-274-22253-5/program/ch5/sec5.4/Servo_Test_Ar/Servo_Test_Ar.ino | b7478a1e0714adf7839dd124984f68276898e9c2 | [] | no_license | N-Eiki/sandbox | 3215df5b3c14fb30be82d678992bda843644bede | 13c175a78381aa71127ff964a3b3bfe0948517a9 | refs/heads/master | 2022-12-30T01:56:49.602548 | 2020-10-12T12:40:22 | 2020-10-12T12:40:22 | 286,705,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | ino | Servo_Test_Ar.ino | #include <Servo.h>
Servo myservo;
void setup() {
Serial.begin(9600);
while (!Serial) {
;
}
myservo.attach(9);
myservo.write(60);
}
void loop() {
myservo.write(60);
delay(500);
myservo.write(30);
delay(500);
myservo.write(90);
delay(500);
}
|
4310d23534d89a612798782ce6a02d3d2cafacc1 | aa5c1a530f95d629e686ac9124caf1a49a9f23e9 | /compiler/src/iree/compiler/Modules/HAL/Loader/IR/HALLoaderDialect.cpp | 419d0cfe84897596e9297635788a9f695a0995fa | [
"Apache-2.0",
"LLVM-exception",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | openxla/iree | eacf5b239559e1d3b40c38039ac4c26315b523f7 | 13ef677e556d0a1d154e45b052fe016256057f65 | refs/heads/main | 2023-09-06T01:19:49.598662 | 2023-09-04T07:01:30 | 2023-09-04T07:01:30 | 208,145,128 | 387 | 110 | Apache-2.0 | 2023-09-14T20:48:00 | 2019-09-12T20:57:39 | C++ | UTF-8 | C++ | false | false | 2,218 | cpp | HALLoaderDialect.cpp | // Copyright 2022 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/Modules/HAL/Loader/IR/HALLoaderDialect.h"
#include "iree/compiler/Dialec... |
113358d8c4ae7ea814ed4e006c05d0e9c4f4a13a | fc2c125ee70382499bde7f86bb0f80599e51cec2 | /http/htparse.h | 1f0c63423867c8e9ff88c971c73b7f68da8fa10b | [] | no_license | austgl/libhttp | 19219b581eebfb917ba000e4b03a4b495be565dc | 253878e650066bcd7de8192324f231a24b96d01d | refs/heads/master | 2020-05-09T14:39:50.845342 | 2012-01-30T16:12:43 | 2012-01-30T16:12:43 | 34,853,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | h | htparse.h | #pragma once
#include <stdint.h>
#include "htp_type.h"
#include "htp_scheme.h"
#include "htp_method.h"
#include "htpparse_error.h"
#include "htparse_hooks.h"
class IHTParser{
public:
virtual size_t run( htparse_hooks *, const char *, size_t)=0;
virtual int should_keep_alive()=0;
... |
da9ebaa0b77ed69f373142a306a48e33506b4596 | d5d67dd5000a4c03c164cf27a68dc5d6ea47500e | /lab02/observer/WeatherStationDuo/CDisplay.cpp | df610db507de152447a1b6a7d63d41dff457d65f | [] | no_license | ImbaCow/OOD | db127161159eab83f440b1e9de41a0e7ff373f57 | 725a37b383265b14fe349da2efdfd1e71f2675af | refs/heads/master | 2020-07-16T14:30:34.544134 | 2019-12-30T15:59:21 | 2019-12-30T15:59:21 | 205,805,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | CDisplay.cpp | #pragma once
#include "pch.h"
#include "CDisplay.h"
CDisplay::CDisplay(const CWeatherData& inData, const CWeatherData& outData)
: inData(inData)
, outData(outData)
{
}
void CDisplay::Update(const CWeatherData& data)
{
std::cout << "---Current Info---" << std::endl;
std::cout << "Source type " << DataTypeToStr(dat... |
147949742232c4a9be3c84e29f514cc7cf7a1134 | e5dc9d8142d807b87e6a7980670ecba28e4a9523 | /KsEngine/img/lib/flash/KsFlashBase.cpp | 5f6016b3d64784075b7821e55b5ecee67e919dbf | [
"MIT"
] | permissive | a567w/AriaGame | e2c692e32d0afcf3e7ec7a676456e4d4a35c19d7 | bf90f79cecd5e27e221fa0e791a784d9be5ef06f | refs/heads/master | 2020-07-01T05:03:26.856425 | 2019-11-05T13:45:56 | 2019-11-05T13:45:56 | 201,052,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 903 | cpp | KsFlashBase.cpp |
KsUInt32 KsFlashFixed::convertToRaw() const
{
KsUInt32 r = ((KsInt32)upperval)<<16;
r |= lowerval;
return r;
}
void KsFlashFixed::getFromRaw(KsInt32 raw)
{
upperval = raw >> 16;
lowerval = (raw & 0xffff);
}
KsReal64 KsFlashFixed::convertToDouble() const
{
return upperval + KsReal64(lowerval) / 0x10000;
}
void K... |
9f3b86b8a51b65c573ca709fe9ce9959a4cd51b6 | 6d292a0a7e05146454fb326dab4897ef9a977834 | /3d Sem/2. 17.09.2012/Task1/Task1/Net.cpp | 4bbc3ef1c8e60720e7e51b4d0c396c26ad34ec11 | [] | no_license | MrKuznetsov/hw-cpp | 0e52187f4195499877662fc3956edb53c59e6ac3 | 63ad463509c363bd626994ec3d90e42f8c78daf1 | refs/heads/master | 2021-03-13T00:00:23.719466 | 2013-12-10T18:42:02 | 2013-12-10T18:42:02 | 3,544,642 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,827 | cpp | Net.cpp | #include "Net.h"
Net::~Net()
{
for (int i = 0; i < comps.size(); i++)
delete comps[i];
}
void Net::init()
{
srand(time(0));
cout << "Matrix that shows connection of computers\n";
for (int i = 0; i < NUM_COMPS; i++)
{
for (int j = 0; j < NUM_COMPS; j++)
{
matrix[i][j] = rand() % 2;
if (i == j)
ma... |
8c7391cab8886f0235eb17957aeb9e00a0471b72 | fa874e76fe912eabfcb6a9516d6c4141c29fdd34 | /word_pattern.cpp | df3093be872869eb337082e8fef735d88879ef54 | [] | no_license | pukumar2/ds_interview_prep | 940a4cd735083d9bae24bdcfd175d6ac12bb5909 | 09b7623dab08226625fa98e54c3bb21b05574342 | refs/heads/master | 2020-04-11T07:33:04.180969 | 2019-01-12T21:42:01 | 2019-01-12T21:42:01 | 161,614,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 917 | cpp | word_pattern.cpp | /* Run time 0ms, beats 100% CPP Submission
*/
class Solution {
public:
bool wordPattern(string pattern, string str) {
unordered_map<char, string> m;
unordered_set<string> wordset;
vector<string> s;
int i=0;
string temp = "";
while(i < str.size()){
if(str[i... |
611507b3b5f81eff6b5d9bd60d5af8940124b40e | d822ffd937fae821fdc1f96369c26b8b31c0cda6 | /luogu/p1111.cpp | 584c1e92d4eb563411abac953c56e6f53a7c6299 | [
"MIT"
] | permissive | freedomDR/coding | f8bb5b43951f49cc1018132cc5c53e756a782740 | 408f0fd8d7e5dd986842746d27d4d26a8dc9896c | refs/heads/master | 2023-03-30T03:01:01.837043 | 2023-03-28T12:36:53 | 2023-03-28T12:36:53 | 183,414,292 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 905 | cpp | p1111.cpp | #include<bits/stdc++.h>
using namespace std;
int fa[100005], n, m;
int findf(int f)
{
if(f != fa[f])
fa[f] = findf(fa[f]);
return fa[f];
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cin >> n >> m;
vector<tuple<int, int, int>> a;
for(int i = 0; i < n; i++) fa[i] = i;
... |
d3f2acc1326b5bf1f5e96dc1d801d6960c48767a | 65476582617c63bef0d292b2e99bc7fbd137f656 | /MainServer/Controller.h | 747c4acb11be9283c966495e671f6c9384a91d55 | [] | no_license | VorkovN/Trains-DB-UDP-Linux | 756cbc73e2b82a4f419c5ac8bf59ec71f7135629 | 6ed40563e4ab693e9b90a21a0c4418d3631205d9 | refs/heads/master | 2022-12-11T13:27:33.805326 | 2020-08-23T00:22:14 | 2020-08-23T00:22:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | h | Controller.h | #pragma once
#include <set>
#include <string>
#include "DB_Connector.h"
using namespace std;
class Controller {
public:
string order(string from, string to, string freight_type, int cars_count);
bool checkStations(string name);
bool checkFreight(string freight);
private:
DB_Connector db_con... |
30747c86b13be90f944068008313067fa9ed37fb | e7e497b20442a4220296dea1550091a457df5a38 | /main_project/DataSync/sync/LocalConsumer.cpp | 689a081c58923035d113f3603087d526f3171654 | [] | no_license | gunner14/old_rr_code | cf17a2dedf8dfcdcf441d49139adaadc770c0eea | bb047dc88fa7243ded61d840af0f8bad22d68dee | refs/heads/master | 2021-01-17T18:23:28.154228 | 2013-12-02T23:45:33 | 2013-12-02T23:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | LocalConsumer.cpp | #include "LocalConsumer.h"
#include <Producer.h>
namespace com {
namespace renren {
namespace datasync {
LocalConsumer::LocalConsumer(const std::string& zkAddress, const std::string cluster,
const std::string& subject) :
xce::messagepipe::Consumer(zkAddress, ... |
266b209cea7fbcbc2d0ea3fee5c9d9e9a0772b20 | 1643984fbebbf588b73d0d2d94dfc90726861c2a | /dataStructure/LinkedList.cpp | 9635ed4079a285785b436fcb0e70e441169a2156 | [] | no_license | thuynt0803/data-structures-and-object-oriented | 332aaa78bbe507be4569cca07af08396ad8f8baf | 2270baa0162277436f90297ff640611ed364d488 | refs/heads/main | 2023-04-11T08:58:09.112552 | 2021-04-19T02:50:57 | 2021-04-19T02:50:57 | 345,275,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,767 | cpp | LinkedList.cpp | /* Bài toán: Nhập danh sách liên kết đơn các số nguyên. Tìm giá trị lớn nhất trong danh sách */
#include <iostream>
using namespace std;
/* ======================== KHAI BÁO CẤU TRÚC DANH SÁCH LIÊN KẾT ĐƠN CÁC SỐ NGUYÊN ============================== */
// 1. Khai báo cấu trúc của 1 node
struct node
{
i... |
1938567febac085470c89c792b44ef8858b18541 | 24db1f37ea06b70e7a3889b6b619cc6f16de5966 | /NEXT_DATE_Equivalence_Class.cpp | a1b1644095bf8501a062dbfda7a74d932c8ff7e8 | [] | no_license | ruchit1131/Software_Testing | 1208a9cfa0989abd225f42b47d6a087a57e437d3 | c4c644921d38d8fca9386734167ed2b67de50cc7 | refs/heads/master | 2021-04-13T23:43:49.675844 | 2020-03-22T14:39:00 | 2020-03-22T14:39:00 | 249,195,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 701 | cpp | NEXT_DATE_Equivalence_Class.cpp | #include"next_date.h"
#include<ctime>
#include<cstdlib>
#define MIN -32767
int r(int l,int h);
int main()
{
srand( time(NULL) ) ;
int dl=1 ,dh=31 , ml=1,mh=12 ,yl=1000,yh=3000;
// int dm=(du+dl)/2 ,mm=(mu+ml)/2 ,ym=(yu+yl)/2 ;
cout<<"equivalence class testing \n";
int arr[7][3]= { {r(MIN,dl-1),r(ml,mh),r... |
9c1b5080d7956ddf17d7652fd4df922bd3dc662e | 08b47573efcbfee2ffeaa983b195f0e60d139407 | /data.h | 49cc44642c5a81916a252daa47fe359e79967af2 | [] | no_license | hosull01/Song-Search | 315b4aa8170c7d0ad543cf3d7f2f180cf86e6ee0 | 4dfe6c4b85db7ce847f3f711fd510adbf5fac458 | refs/heads/master | 2021-01-22T11:20:47.190825 | 2014-07-15T15:32:40 | 2014-07-15T15:32:40 | 21,865,333 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | h | data.h | //
// data.h
// Name: Harry O'Sullivan
// Purpose: stores all of the data and pushes each word into a hashtable
// Date: 4/27/2014
//
#include <iostream>
#include <vector>
#include <fstream>
#include "hashtable.h"
using namespace std;
// an element in the songlist
struct song {
string title;
string artist;
... |
bd0ef8132d43bbe48c81270bfcbb6c80b9626701 | d595b148172cd217a44e0b370095ee7313188c6d | /cf381_Div.2/a.cpp | aabcabb3eddd427ac91a55daf3f882e9bc2c8183 | [] | no_license | caowushang/code | 0dc255f003b83da3482f3335e0704ff6f11ac311 | 46fef8d3ddab922050b68941879d38f41a2c0287 | refs/heads/master | 2020-06-16T16:11:18.416061 | 2016-11-29T14:42:13 | 2016-11-29T14:42:13 | 75,085,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 710 | cpp | a.cpp | /* ************************************************************************
> File Name: a.cpp
> Author: caowushang
> Mail: 15630929347@163.com
> Created Time: 2016年11月24日 星期四 18时12分09秒
************************************************************************/
#include<bits/stdc++.h>
using namespace std;
int main... |
ce32155b52a7a12c4fa7554a027fc696dcb56896 | 12a5b72982291ac7c074210afc2c9dfe2c389709 | /online_judges/URI/Graphs/1669/code.cpp | 1a61acaed8580fd052db8e41e4f47bf187554a55 | [] | no_license | krantirk/Algorithms-and-code-for-competitive-programming. | 9b8c214758024daa246a1203e8f863fc76cfe847 | dcf29bf976024a9d1873eadc192ed59d25db968d | refs/heads/master | 2020-09-22T08:35:19.352751 | 2019-05-21T11:56:39 | 2019-05-21T11:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,325 | cpp | code.cpp | #include <bits/stdc++.h>
#define vi vector<int>
#define pb push_back
#define qi queue<int>
#define MAX 100001
using namespace std;
vi graph[MAX];
int indegree1[MAX], indegree2[MAX], n1, n2, d;
void saturate (qi q[], int indegree[], int flag){
while (q[flag].size()){
int v = q[flag].front();
q[fla... |
0aa5d0bbc41856c2fdba9c1493c80e8ef33b9cf2 | aa7f5096fd8d2b697032f26231b6d70f17c2537e | /Pong/Pong/Paddle.h | 3388d3fafb650ba51901764572df7a054e4a2e52 | [
"MIT"
] | permissive | JDBucklin/Pong | 43264cf406b336f538ae322a24992a05d7161415 | a24c73ba7787d1ef60a8e55e819e15365209ae25 | refs/heads/master | 2020-12-03T00:05:07.850339 | 2017-07-19T21:27:51 | 2017-07-19T21:27:51 | 95,984,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | Paddle.h | #pragma once
#include <SFML/Graphics.hpp>
class Paddle
{
public:
Paddle(float xPos, float yPos);
~Paddle();
void update(float deltaTime, float windowHeight);
void draw(sf::RenderWindow& window);
sf::Vector2f getPosition();
sf::Vector2f getSize();
private:
sf::RectangleShape paddle;
int paddleWidth;
int paddleH... |
2a28aa83908a5ff4e41779c534a15280788e4da6 | da7fd6e0d9226826994261239423514f07967b85 | /__FilterRegistry/FilterRegistryWrap/FilterRegistryWrap.h | 255ef1b0e531ac3c03231ce914851b371c74bba4 | [] | no_license | dovanduy/BUGAV | a90186e456c3bb5ab1a303aa2f88c4d04ca89911 | 1baf64ba118ac4548a7ee1f42b86acc59e7ea04c | refs/heads/master | 2022-04-08T10:04:52.682512 | 2020-01-29T12:23:05 | 2020-01-29T12:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | h | FilterRegistryWrap.h | #pragma once
#include "../FilterRegistryCtrl/FilterRegistryCtrl.h"
using namespace System;
public ref class FilterRegistryWrap {
FilterRegistryCtrl* ptr_FilterRegistryCtrl;
bool loaded;
public:
FilterRegistryWrap();
~FilterRegistryWrap();
VOID WRAP_FilterRegistryDrv_LoadDriver();
VOID WRAP_... |
7cc24469126081f5571bd80c0a262f366de9b11e | 2779be59343d231855bbeafd087fc571d0f867dc | /Solo Competition/CF401/B.cpp | 21c769dbac95bcd97fb349d7ce888f0c411a608c | [] | no_license | frankbozar/Competitive-Programming | 4d7dbdf3db414718e77cc5afd69398b1f7f01eb8 | bcb1c363d11ada1f05ccd59bc8c93238c2503b23 | refs/heads/master | 2020-06-15T07:34:24.117330 | 2017-09-25T07:09:47 | 2017-09-25T07:09:47 | 75,315,592 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,722 | cpp | B.cpp | #include<cstdio>
#include<vector>
#include<algorithm>
using namespace std;
vector<int> read(int n)
{
vector<int> a(10, 0);
for(int i=0; i<n; i++)
{
int x;
scanf("%1d", &x);
a[x]++;
}
return a;
}
int one(vector<int> a, vector<int> b)
{
int ans=0;
for(i... |
b54db721fdd02ae1c9b6d73d21f20d59dfcd2911 | 0ae634be91566cab0e89ac6715aed12dc960cdb9 | /YCAMSpinSimple/src/YCAMSpinForce.h | e44c06e175a1416d3f54a90907e0aec536701ca4 | [] | no_license | obviousjim/YCAMSpin | 0c789b6991e133e286b29b1caf6a42e5e04e6274 | a992497c7c9a02852cc7d0bbe047a56e750699c8 | refs/heads/master | 2016-08-06T14:52:30.036263 | 2012-10-11T12:21:08 | 2012-10-11T12:21:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | h | YCAMSpinForce.h | //
// YCAMSpinForce.h
// YCAMSpin
//
// Created by Jim on 9/28/12.
//
//
#ifndef YCAMSpin_YCAMSpinForce_h
#define YCAMSpin_YCAMSpinForce_h
#include "CloudInterludeForce.h"
class YCAMSpinForce : public CloudInterludeForce {
public:
ofVec3f center;
float power;
YCAMSpinForce() {
power = .1... |
463c7cfea260f157a71c45155690b8ceaa806413 | 544c55e229f5f48fe0a6b096b88aba88ab9b323c | /mysql.h | 88c49d45376ffba242946839ee14a02b1d72f121 | [] | no_license | zenaki/Marine-Service | 70a75ca6f9d64b120be4a9ddebe80428407f7fc4 | 8369e69f44f6223a0384fec2d8e63cb4030f7400 | refs/heads/master | 2021-10-18T06:14:03.793139 | 2019-02-14T10:03:07 | 2019-02-14T10:03:07 | 110,666,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | h | mysql.h | #ifndef MYSQL_H
#define MYSQL_H
#include "utama.h"
class mysql
{
public:
mysql();
QString host;
QString db_name;
QString username;
QString password;
QSqlDatabase connect_db(QString name);
void close(QSqlDatabase db);
QStringList read(QSqlDatabase db, QString query, QStringList param... |
c29ac3544fbc19ca9b16c3ce3b9dd79bd500d65c | aa1e2f3fefe68278351964c23ab85870013670ff | /include/Menu.h | c5089b67b8724c6fc23d0595d5f14d6356470e83 | [] | no_license | CapitainePigeon/Quarto | 581b2fa95b4aff3229e3648a8e93052a708d61a9 | 64c407bad4866d0e24550e761619bce41ac8d217 | refs/heads/master | 2020-04-25T03:23:16.098735 | 2019-04-14T19:27:14 | 2019-04-14T19:27:14 | 172,474,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | Menu.h | #ifndef MENU_H
#define MENU_H
#include <string>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "Image.h"
#define SCREEN_WIDTH 512
#define SCREEN_HEIGHT 512
using namespace std;
class Menu {
private :
char format [50];
SDL_Window * fenetre;
SDL_Renderer * renderer;
Image im_menu;
public :
M... |
91e78d60ec94406836e07a27b8dc9d95b1c5016c | 7e22119414a68482fdc7b484d7f0ff373f68da7e | /master/interpreter/test.cpp | 4b2c9cce4aa128580c3c0e0afb7bfdfe719c1130 | [] | no_license | Winnerhust/DesignPattern | 9540efc1accd70b35c8f460d4026766d0c30bd00 | 12dc73bb55351474ec64b8f976f47af82aeb1796 | refs/heads/master | 2020-03-29T12:00:24.082691 | 2013-08-27T09:25:50 | 2013-08-27T09:25:50 | 12,081,581 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | test.cpp | #include "context.h"
#include "interpreter.h"
int main(int argc, char const *argv[])
{
Context c;
Expression *te = new TerminalExpression("ter");
te->interpret(c);
Expression *nte = new NonTerminalExpression("nonter");
nte->interpret(c);
return 0;
}
|
6673c30dad31f231c86a5e1d6ef57cd9067744b0 | d99635801044ebda964af586fbd6309c42a0b978 | /binaryTreeMaximumPathSum.cpp | 206316f690bc5b60017c46ef3097198ac7478e38 | [] | no_license | wongxingjun/leetcode | 071296001bd61aaca83025290fa8e6077d000669 | 4353422fa5e1244e2e2f1809462c1a3b59784a15 | refs/heads/master | 2020-05-21T13:26:54.571148 | 2016-11-01T07:24:06 | 2016-11-01T07:24:06 | 62,566,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | binaryTreeMaximumPathSum.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int res=INT_MIN;
int maxPathSum(TreeNode* root) {
maxPath(root);
return res... |
c68ed6f1b8b828008a8e84bd32931a30c1a9fd63 | 5c3839542bfe038a8c2577dd11a0a07d42e7c9bb | /iStickServer/iStickServer/MouseAction.h | 7e66c8056ad30e7e27ec2f4ec283f69dead06f7e | [] | no_license | etamar211/iStick | e025d955eb711da3fef634ad3c42cd2345bb2bb0 | 9497960b550a05fef54f897c252ee3e52e5eb101 | refs/heads/main | 2023-07-20T06:40:39.081370 | 2021-08-29T09:04:04 | 2021-08-29T09:04:04 | 400,995,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | h | MouseAction.h | #pragma once
#include <Windows.h>
class MouseAction
{
private:
INPUT _mouseInput;
public:
MouseAction(); // constructor that initializes the INPUT structure
void MoveMouse(int,int); // Move the mouse.
void RightPress();
void LeftPress();
void MiddlePress();
void RightRelease();
void LeftRelease();
void Middl... |
d890187c7109b9ebd612a62c12c28d71944ccf49 | ef9e15db20a82b4d5e22caae4d7a5065a65cff27 | /CPP_160(std_string의 길이와 용량)/CPP_160/main.cpp | 19deea0933e0f37d8f66871e9c9f1ea53a25d3ea | [] | no_license | jinseongbe/cpp_study | 62a0b688a8f6b27f02449686a3a05dd053632f2f | 37be65a75eb33516a4b4434a05975ed61fce7194 | refs/heads/master | 2023-04-10T17:32:03.788508 | 2021-04-18T14:35:07 | 2021-04-18T14:35:07 | 354,449,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
string my_str("012345678");
cout << my_str.size() << endl; // <- 주의할점! c-style의 문자열에서는 마지막에 null 값을 포함해서 한글자가 더 많은 크기를 가지지만
// string의 경우는 class로써 내부적으로 포인터 말고 길이를 직접 가지고 있기 때문에 null... |
6c22bf916cdfc2a495bff96b1c6017249feb2461 | d6ae8dc5bf9f94717a243aebd9572c1289661978 | /[BOJ]4307/Source.cpp | ec2f38cc76dd37bc705c4addbaa2309c645f3e26 | [] | no_license | jinbeomdev/daily-algorithm-problems | b3ffd98626861fe670b5c9778a88c110b4654b33 | 7b1155bc9e7ad48efa490b8f88fe6b599182ee93 | refs/heads/master | 2021-06-12T09:16:32.184753 | 2019-10-21T14:41:35 | 2019-10-21T14:41:35 | 91,214,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | cpp | Source.cpp | //#define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int test_case_size;
int stick_length;
int num_ant;
scanf("%d", &test_case_size);
for (int test_case = 1; test_case <= test_case_size; test_case++) {
vector<int> ant... |
dc0cdb73b830bcd283b142b0a36a1ef7b8c36047 | 34f222b9497336015b491d7447d383e2d46e02cf | /Source/DX9API/OcclusionQuery.h | 622cffd0bedda7a1fff53daebb1fa909232c3b1d | [] | no_license | H3D-Zoo/Lion | 77ef3f652eb324a8afd7c6f6f53bb85b71a197ee | f9b5b7deaceab93c313c1541a1e575ff9802cd97 | refs/heads/master | 2021-01-25T09:31:52.670413 | 2018-02-01T08:40:28 | 2018-02-01T08:40:28 | 93,846,183 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 461 | h | OcclusionQuery.h | #pragma once
#include "../../RenderAPI/RenderAPI.h"
#include "DX9Include.h"
#include "RefCount.hpp"
class OcclusionQuery : public RenderAPI::OcclusionQuery
{
public:
OcclusionQuery(IDirect3DQuery9*);
~OcclusionQuery();
virtual bool Begin();
virtual void End();
virtual bool Get(void* dataPtr, unsigned int lengt... |
02fd06d43076ccef533cd41212fc38dcde074430 | ffff2a4fb72a163e4d42b01cefa1f5566784990f | /codeforces/contests/644DIV3/buying_shovels.cpp | e99b8aad7904ba8dd0551938ae59caf7ef2a8e16 | [] | no_license | sanyamdtu/competitive_programming | d5b4bb6a1b46c56ebe2fe684f4a7129fe5fb8e86 | 5a810bbbd0c2119a172305b16d7d7aab3f0ed95e | refs/heads/master | 2021-10-25T07:11:47.431312 | 2021-10-06T07:37:25 | 2021-10-06T07:37:25 | 238,703,031 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | cpp | buying_shovels.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int t;
cin>>t;
while (t--)
{
ll n,k;
cin>>n>>k;
ll ans=INT_MAX;
ll a;
(100000>k)?a=k:a=100000;
for(ll i=a;i>=1;i--){
if(n%i==0){
ans=(min(ans,n/i... |
cfbb2dcda8e74ac8a204c60d64e135afbf8bc8d2 | 90ed8c2f83b8db17f539428541b6a2d49a9ab999 | /PROGRAM PRACTISE/Linked list2.cpp | abef845e860468ee2e2632aa052309c2107dcc2d | [] | no_license | Piaash/UVA-Solution-Collection | 49a319330f85f2cb4e4e0f3d4c92238f08e51391 | 8eab98fd75e3d4298f047c16a5d3d7d1552ca815 | refs/heads/master | 2021-01-01T15:48:46.733192 | 2017-07-19T11:29:04 | 2017-07-19T11:29:04 | 97,708,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,666 | cpp | Linked list2.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct node
{
int v1;
int v2;
struct node *next;
};
int main()
{
struct node *p,*q,*r,*r2,*p2,*p1,*r1;
int m,n,x,y,z,i,j,k;
puts("No of input: ");
scanf("%d",&n);
puts("Power & Co-efficient:");
for(i=1;... |
23d561d7f2365bdd747a824416a3a7a8528bd36b | 4960d4f64928a065748fd072fc6d246e23775bbd | /hdu2807之矩阵乘法+最短路.cpp | fbf029eb325da21c8eba80c189b82622bc89fd51 | [] | no_license | Stephen1993/ACM-code | b46d75e4367387e7ca4bec6442a7b29b73594f8d | fd6c2fbad8b0dd1d5f3c90df733c8bc09070ae2a | refs/heads/master | 2020-07-28T19:44:03.076259 | 2019-11-15T15:08:12 | 2019-11-15T15:08:12 | 73,697,351 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 2,136 | cpp | hdu2807之矩阵乘法+最短路.cpp | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string>
#include<queue>
#include<algorithm>
#include<map>
#include<iomanip>
#define INF 99999999
using namespace std;
const int MAX=80+10;
int n,m,dist[MAX][MAX],s,t;
int array[MAX][MAX][MAX],temp[MAX][MAX];
//array记录初始矩阵,t... |
9427008565254fb1523d3b407c2a94a57e30a8e2 | 956b91611aa6901913d24025a45d33dfcb0abadb | /lab7/NodeList.cpp | f0e62d5cb0d8984dd79334b76228c90c0b9c938c | [] | no_license | dhruvchawla1996/ece244_labs | b72f0bb7ca6a4128edb3b2b6cf051d33e68247ae | 7568041ebeb263c2bf5d2da671ae65ef42d8a4d7 | refs/heads/master | 2016-08-11T11:24:35.245511 | 2015-12-31T14:11:50 | 2015-12-31T14:11:50 | 48,846,809 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 13,463 | cpp | NodeList.cpp | /*
* File: NodeList.cpp
*/
#include "NodeList.h"
#include "easygl.h"
extern easygl window;
using namespace std;
NodeList::NodeList() {
nodeHead = NULL;
}
NodeList::~NodeList() {
while (nodeHead != NULL) {
Node* p = nodeHead;
nodeHead = p->getNext();
p->setNext(NULL);
delete... |
b20c6b4cbebac385c4c6c0a12f738a9783e9b6be | d6794736f216e2dc0e8798032e0ffead2fceb874 | /models/CNE6SSM/CNE6SSM_semi_two_scale_susy_scale_constraint.hpp | e666b67f1787c0aac27811137d53adc414397ce8 | [] | no_license | azedarach/CNE6SSM-Spectrum | 02f42cd79cece6f23a32f96546415e7630e62b27 | 6c5468dc359c0e2e37afece3b939d7034d55fd04 | refs/heads/master | 2021-06-07T08:34:04.063733 | 2015-10-26T02:47:17 | 2015-10-26T02:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,736 | hpp | CNE6SSM_semi_two_scale_susy_scale_constraint.hpp | // ====================================================================
// Test implementation of SUSY scale constraint to be used in
// semianalytic version of the two-scale algorithm
// ====================================================================
#ifndef CNE6SSM_SEMI_TWO_SCALE_SUSY_SCALE_CONSTRAINT_H
#define... |
45d1bfc8875dd34dfd9d3a9d3e913cbb582da011 | 7700c743875a990022d4346d6be71da1da0818dc | /cook_torrance.h | 596cce65b971ce0264116f4bd5e997b20bf16b15 | [
"MIT"
] | permissive | LuanQBarbosa/ray-tracer-university-project | 290d96304fda684459f7ebd8ecc502eb65b20332 | 9fd8ab9d8e8b98dc186e7353788ed8a93862cb2b | refs/heads/master | 2020-04-21T12:19:00.375845 | 2019-05-18T00:48:56 | 2019-05-18T00:48:56 | 169,558,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | h | cook_torrance.h | #ifndef COOK_TORRANCE_H_
#define COOK_TORRANCE_H_
#include <glm/glm.hpp>
#include "brdf.h"
class CookTorrance : public BRDF
{
public:
CookTorrance ( glm::vec3 reflectance );
glm::vec3 fr();
};
#endif /* COOK_TORRANCE_H_ */
|
228c6199cf305a8af5ea790b54323c4392a2d4e1 | dca5683253403875ae613a45d7f3009e777165bf | /exceptions/IllegalArgumentException.cpp | 08d509a9e32af4fca61354eb83ef7d4baef5a385 | [] | no_license | markscamilleri/cps2000assignment | 387937d219e6fe232307a8dc464fb2e087dcc520 | 04098341f9c6c3a659507641c6568815f4f71e54 | refs/heads/master | 2022-04-16T14:45:14.687272 | 2017-10-17T07:36:21 | 2017-10-17T07:36:21 | 107,233,274 | 0 | 0 | null | 2020-04-09T12:39:09 | 2017-10-17T07:30:30 | Makefile | UTF-8 | C++ | false | false | 537 | cpp | IllegalArgumentException.cpp | /**
* @file
* @author Mark Said Camilleri
* @version 20170501.
*/
#include "IllegalArgumentException.h"
exceptions::IllegalArgumentException::IllegalArgumentException(const std::string message, const std::string &argument)
: argument(argument) {
Exception::message = message;
}
const std::string &ex... |
dfa9701f5c03eed8d5903fb1ce74d69c27c6313f | 77ae4e7c8252eb63e7a7337e24383a8d19c6e8c6 | /src/datastructures/KernelWrapper.hpp | 96ae24f986f6b80e30ba425abd78ad66a44ee4ce | [] | no_license | JuantAldea/trax | 32a2f3fa5604a76cf342378b04d0ce52b27b5dcc | 232f0c6491f8415f1760d43d9bdecb2dfbe547e3 | refs/heads/master | 2021-01-15T20:47:45.515275 | 2014-07-29T14:23:23 | 2014-07-29T14:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | hpp | KernelWrapper.hpp | #pragma once
#include <boost/noncopyable.hpp>
#include <clever/clever.hpp>
#include <datastructures/Logger.h>
#include <vector>
//Curiously recurring template pattern (CRTP)
template <typename T>
class KernelWrapper : private boost::noncopyable {
public:
KernelWrapper(clever::context & ctext) : ctx(ctext) { }
... |
a99ce10ebfc61a8577758447f265fb176f853c0d | 59409fab0056c63eb8b43c6bebc46ad2320e5f3f | /MAX10/tsbs/common_sw_library/tsb/ip/software/video_dma_up_encapsulator/video_dma_up_virtual_uart.h | 4c24dcb55016446fcdb241ab28b8fe47dd0da5ee | [] | no_license | thomaslindner/xu1-max10-testing | ce96004e9ee51c927ec64fdc8d2438bc95742a46 | a44bdeff1bf533632bfaea5ab9c8cf22d0529e85 | refs/heads/master | 2022-12-22T20:14:30.665124 | 2020-05-19T22:53:52 | 2020-05-19T22:53:52 | 295,867,338 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 848 | h | video_dma_up_virtual_uart.h | /*
* video_dma_up_virtual_uart.h
*
* Created on: Feb 12, 2014
* Author: yairlinn
*/
#ifndef VIDEO_DMA_UP_VIRTUAL_UART_H_
#define VIDEO_DMA_UP_VIRTUAL_UART_H_
#include "video_dma_up_encapsulator.h"
#include "virtual_uart_register_file.h"
class video_dma_up_virtual_uart: public virtual_uart_register_file, pu... |
d9b2e06f3e7fac660dc290c456485635959eb2eb | 663f25816bac61647fd0ba9e4f55fe4eb6a9b292 | /source/code/programs/examples/glut/addfog/teapots.cpp | 81039f2f2f73a1c1258e77dc0a496758703af48d | [
"MIT"
] | permissive | luxe/unilang | a318e327cc642fabdcd08f3238aac47e4e65929f | 832f4bb1dc078e1f5ab5838b8e0c4bb98ba0e022 | refs/heads/main | 2023-07-25T06:32:18.993934 | 2023-07-13T02:22:06 | 2023-07-13T02:22:06 | 40,274,795 | 42 | 8 | MIT | 2023-07-19T10:36:56 | 2015-08-06T00:02:56 | Fancy | UTF-8 | C++ | false | false | 6,255 | cpp | teapots.cpp |
/* Copyright (c) Mark J. Kilgard, 1997. */
/**
* (c) Copyright 1993, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both th... |
65b5dfe5b4a31dbedf60923519ba8888c7ee9eb6 | abe170e4959e41a1db67c110ed9842e29466897b | /src/socserver.cpp | a2de9c7d2aee59240664df473d2bef3321a868ac | [
"MIT"
] | permissive | palsbo/ESP_Servers | b7fb5fb0f8f68c858f1a3460e3bc21a8e67f6fea | 34bc5aef6eb85222c554356b0d20a0af51d2ea14 | refs/heads/master | 2020-03-16T14:54:37.843912 | 2018-05-12T09:18:24 | 2018-05-12T09:18:24 | 132,717,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,338 | cpp | socserver.cpp |
#ifdef ESP8266
#include <ESP8266WiFi.h>
#else
#include <WiFi.h>
#endif
#include <ArduinoJson.h>
#include <WebSocketsServer.h>
#include "socserver.h"
WebSocketsServer * sserver;
void WSSONS::add(String id, streamtype func) {
for (int i = 0; i < count; i++) {
if (ons[i].id == id) {
ons[i].func = func;
... |
3d1de38e942456e372ba6b997eb4e2a3cd373599 | db4adde3aa38548f867fbb836f0e36aee7487479 | /decryptn.cpp | 36552480bf63ff071d4a995baecc62b9f755fe59 | [] | no_license | mengci/EC-ElGamal | 30db64f028970680204d40adbba9bdc7121d55d1 | b56a5daa160db519d298cbee4407c0bbc1fa5afb | refs/heads/master | 2021-01-10T20:50:53.293145 | 2013-12-18T05:38:26 | 2013-12-18T05:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,486 | cpp | decryptn.cpp | #include <gmpxx.h>
#include <iostream>
#include <gmp.h>
#include <fstream>
#include <string>
#include <sstream>
#include "ecurve.hpp"
#include "point.hpp"
using namespace std;
void decrypt(string keyPrv,string ciphertext, string plaintext) {
//get out private key parameters
ifstream keyFile(keyPrv.c_str())... |
bcb19f5c61dc3cb1e9b66bf3d794bdf78143070e | 1d9e9d4f416607453e7c91c9dc45205bd7cb9e14 | /iqc5/instrument/BNProSpec_Parser/myProject.cpp | c4a28bb5e6d199b8a6ba743ceb6b222548a6eda9 | [] | no_license | allan1234569/iqc5 | 5542f2efe3e6eae0a59110ec2863d9beeef8c1cf | 8a026564db0128005f90d3f7ca56787a7bcbbad3 | refs/heads/master | 2020-03-29T09:17:13.715443 | 2018-09-21T10:56:01 | 2018-09-21T10:56:01 | 149,750,494 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | myProject.cpp | #include "myProject.h"
MyProject::MyProject()
{
subProjectCount = 0;
}
void MyProject::clear()
{
sampleId.clear();
testTypeCode.clear();
testType.clear();
subProjectCount = 0;
}
bool MyProject::isEmpty()
{
return sampleId.isEmpty() && testTypeCode.isEmpty() && subProjectCount == 0;
}
|
02965e73d17c963e0466435459994bb3c266f032 | d09945668f19bb4bc17087c0cb8ccbab2b2dd688 | /2012-2016/2012/autumn/g.cpp | 60b4233b687d40bc45073de5fb63220ca1468db5 | [] | no_license | kmjp/procon | 27270f605f3ae5d80fbdb28708318a6557273a57 | 8083028ece4be1460150aa3f0e69bdb57e510b53 | refs/heads/master | 2023-09-04T11:01:09.452170 | 2023-09-03T15:25:21 | 2023-09-03T15:25:21 | 30,825,508 | 23 | 2 | null | 2023-08-18T14:02:07 | 2015-02-15T11:25:23 | C++ | UTF-8 | C++ | false | false | 4,048 | cpp | g.cpp | #include <cstdlib>
#include <cstring>
#include <memory>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <cmath>
#include <string>
#include <sstream>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
using namespace std;
#include <s... |
47d145e2b359c7500b2d911bbc1e2e5a15fbf0d4 | 8f021f68cd0949afa8d119582c0b419b014919d8 | /Treinos16/3-Estruturas/Exemplos/struct.cpp | c98551a92529f8396ecf5b6c1e93a2b6a52d20f1 | [] | no_license | Jonatankk/codigos | b9c8426c2f33b5142460a84337480b147169b3e6 | 233ae668bdf6cdd12dbc9ef243fb4ccdab49c933 | refs/heads/master | 2022-07-22T11:09:27.271029 | 2020-05-09T20:57:42 | 2020-05-09T20:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | struct.cpp | #include<stdio.h>
struct carro{
//char placa[8];
char nome[50];
int ano;
};
int main(void){
carro c;
//while(scanf("%s %d", c.nome, c.placa) != EOF){
while(fgets(c.nome, 50, stdin) != NULL){
scanf("%d", &c.ano);
getchar();
printf("Carro: %s", c.nome);
//printf("Placa: %s\n", c.placa);
printf("Ano: %d\... |
5b378d54b6aa59dfe065155eb382be719d4eb674 | f3bf9876c94a4295acb6d1d2bb014b790e99cad3 | /AWiFi_Tone/AWiFi_Tone.ino | 34cc5870aa818582e8a41233ce78d836ce3c5d5b | [] | no_license | godsnew2542/IOT | 4addbf6ee34bd1cb583e094dec14574c657dd292 | 2a096cd30a2c40605ecc7284284917f92c4d8657 | refs/heads/master | 2023-03-01T15:12:06.652085 | 2021-02-01T01:51:59 | 2021-02-01T01:51:59 | 295,615,424 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 396 | ino | AWiFi_Tone.ino | int pinTone = D8;
#define sw1 D0
bool sw1_state = false;
void setup()
{
pinMode(sw1, INPUT);
// analogWrite(pinTone, 255);
delay(1000);
}
void loop()
{
sw1_state = not(digitalRead(sw1));
if (sw1_state) {
analogWrite(pinTone, 255);
analogWriteFreq(600);
delay(500);
analogWrit... |
4ad94644e56cf3d1477c24c71e2a5defd684d445 | 4a70cc8466926407305e218a12ef5e75111e5174 | /libraries/AP_Compass/AP_Compass_QMC5883L.h | 788e0b1142e655d37da947f12f3411ac06eab1bd | [] | no_license | wanglong1107/SAGAPRO_GPS | 3069dedd402e6059d80714b273da7da152c8113c | f74aa4542756420fce54741a140d4bba02887fe1 | refs/heads/master | 2022-08-01T09:45:34.834230 | 2020-05-24T08:43:54 | 2020-05-24T08:43:54 | 266,495,494 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,793 | h | AP_Compass_QMC5883L.h | /*
* Copyright (C) 2016 Emlid Ltd. All rights reserved.
*
* This file is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This... |
f42aaeca3bdf7896754e4082a748779366c913bf | 9efd18379fcbba31ffca434d5dfbeedcc110075f | /src/~rvizg_main.cpp | c2911b7228a32e1658b236aa56d7ea2b604e8c82 | [] | no_license | myalfred03/rvizglabre | 22961a18fb561125de61a7db2ee2a7d5df4bd02a | dcb1c0ebac0a65f0475c43a30bd45146678fc92a | refs/heads/master | 2023-06-19T12:23:13.694543 | 2021-07-08T00:21:45 | 2021-07-08T00:21:45 | 106,970,457 | 1 | 2 | null | 2019-01-12T23:00:32 | 2017-10-14T23:35:03 | C++ | UTF-8 | C++ | false | false | 1,263 | cpp | ~rvizg_main.cpp | #include "rvizg_main.h"
#include <QSlider>
#include <QLabel>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QDebug>
#include <QVariant>
#include <QPushButton>
#include <QStatusBar>
#include <QMdiArea>
rvizMain::rvizMain(QWidget* parent)
:QWidget(parent)
{
QVBoxLayout* main_layout... |
ff40704a57d21065be77828f69891f2c714e09e4 | 4b56fd6a601a60109b30d212ad678f43558e84c6 | /this指针/this指针.cpp | 0086d88281fa7daa9b9614e5dc0676ecbc1ee541 | [] | no_license | Pornhub-passion-video/Solution2 | 9d4984f904801c40cbab5f3cb91a6970be71e8c0 | 80e775e08ca9a22dd338a5d32808a30e72bce686 | refs/heads/master | 2021-01-09T14:03:37.498847 | 2020-02-22T11:26:55 | 2020-02-22T11:26:55 | 242,329,746 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 615 | cpp | this指针.cpp | #include<iostream>
using namespace std;
class Person
{
public:
Person(int m_age)
{
this->m_age = m_age;//this 指针永远指向当前对象
}
void getm_age()
{
cout << "wodenianling "<<m_age << endl;
}
Person & add_Age(Person &p)
{
this->m_age += p.m_age;//this 指针的永远指向当前调用函数的对象
//cout <<" 年龄相加"<<this->m_age << endl... |
8731fb135561b74eef0a8d1525cb99e33718817c | a33b7e5815f6ac385ca9c455754e0c0b6efd0829 | /code_其他班级/20200410/if.cpp | e9f97db0f26ec8fcaec02dde71934495a3031fa7 | [] | no_license | yangdongzju1976/c_language | aa557f2e99e1adc93cb9c8181110516a55ea3fa0 | 3037097d66d23ac41a3de62e026cbce939b0ecc4 | refs/heads/master | 2023-02-22T08:08:25.074619 | 2021-01-31T09:39:20 | 2021-01-31T09:39:20 | 334,620,019 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 431 | cpp | if.cpp | #include <stdio.h>
int main ()
{
/* 局部变量定义 */
int a;
printf("\n输入a=");
scanf("%d",&a);
/* 检查布尔条件 */
if( a < 20 )
{
/* 如果条件为真,则输出下面的语句 */
printf("a 小于 20\n" );
}
else
{
/* 如果条件为假,则输出下面的语句 */
printf("a 大于 20\n" );
}
printf("a 的值是 %d\n", a);
ret... |
7988633f533a754b692e795b76e2dcc059347777 | 3f80cbc9a7f625eec50df39dbebcb4bb0f86b56f | /Src/Rozdzial04/SphereWorld/SphereWorld.cpp | 28581c1575c7dea3f6893f03ce3b7b2c37737f5b | [] | no_license | SharpShooter17/OpenGLBook | 0d2b5d6464033277cf63bb46a098629d17719763 | 4a274ec1056716a008423789b3324e396895cc3b | refs/heads/master | 2021-08-08T06:09:20.113037 | 2017-11-09T18:00:38 | 2017-11-09T18:00:38 | 110,148,835 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 3,999 | cpp | SphereWorld.cpp | // SphereWorld.cpp
// OpenGL. Księga eksperta
// Nowy i poprawiony program SphereWorld
// Autor programu: Richard S. Wright Jr.
#include <GLTools.h>
#include <GLShaderManager.h>
#include <GLFrustum.h>
#include <GLBatch.h>
#include <GLMatrixStack.h>
#include <GLGeometryTransform.h>
#include <StopWatch.h>
#include <mat... |
ab725e27e404988b05c8a3bac45db655a6f1cba1 | 6dab0456d13f9f5b8b2e205002108cadbd0b4f5a | /Strategy/Strategy/Request.h | 98b1adfe5594201a7f9a42155defdd54d0d28a26 | [] | no_license | fredred375/Strategy_by_RDOGS | 77eede19c90272361bd6d6666f0c088de9ab195f | 57c01662d324b2588abb2782c2dbec74487fbaed | refs/heads/master | 2022-12-24T02:36:08.076545 | 2020-09-11T15:57:13 | 2020-09-11T15:57:13 | 281,888,945 | 2 | 1 | null | 2020-09-11T15:57:14 | 2020-07-23T07:58:34 | C++ | UTF-8 | C++ | false | false | 1,148 | h | Request.h | #pragma once
#include "PacketProperties.h"
#include "Player.h"
#include "Point.h"
class Player;
class Point;
class Communicator;
enum class RequestStatus
{
NA,
PENDING, // not yet sent
SENT, // sent (entered buffer)...
RESPONDED, // response received
TIMEOUT // timeout exceeded
};
class Request
{
friend Co... |
54e26f0821cb1cce8cd4b077ee747964292fcc48 | 709dbd149a14efeeb9a9806e0292a92bf6fec1bc | /finufft_write_truesol.cpp | 4b572a62dc568d783286ee6c8bde6018589b61be | [] | no_license | MelodyShih/cuFINUFFT-bench | 02bce0c63c5fe9e51beae2ce0c8c8099084e3237 | be00924fe2a02c794b906b6721dc69f9de7bc34d | refs/heads/master | 2021-06-26T03:20:53.097526 | 2021-03-08T15:31:06 | 2021-03-08T15:31:06 | 212,201,625 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,201 | cpp | finufft_write_truesol.cpp | // this is all you must include for the finufftf lib...
#include <finufft.h>
#include "create_data.cpp"
#include "utils.h"
// also needed for this example...
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main(int argc, char *argv[]){
int ier;
int N1, N2, N3, M, N;
if (argc<4) {
fprintf(stderr... |
b2ccbe8f384628720d9791c3a5a9599ffdc269d1 | b1fb4f85cac5d9f7b944f2d78b68697523374948 | /MarioSDL/GameScreenManager.h | a798dd40072ad881a1682f30469c10a8c9551a1d | [] | no_license | Sadzony/MarioSDL | bbbfc03661f12a1d5639e84c98b53f1ec52c7ecb | 0a138fb2dd1a2b38d2c24818097418b70ee2ea8e | refs/heads/main | 2023-04-05T09:46:08.711933 | 2021-04-08T02:59:11 | 2021-04-08T02:59:11 | 332,512,473 | 0 | 0 | null | 2021-04-08T02:59:19 | 2021-01-24T17:34:55 | C | UTF-8 | C++ | false | false | 539 | h | GameScreenManager.h | #pragma once
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_mixer.h>
#include <iostream>
#include "Commons.h"
#include "Texture2D.h"
#ifndef _GAMESCREENMANAGER_H
#define _GAMESCREENMANAGER_H
class GameScreen;
class GameScreenLevel1;
class GameScreenManager
{
private:
SDL_Renderer* m_renderer;
GameScreen* m_cur... |
eb167da80d37960cb4432a79b01ed5ab1c0dad80 | 786de89be635eb21295070a6a3452f3a7fe6712c | /PSHist/tags/V00-02-00/include/HManager.h | 481f814c71d5f660f8406147534b18254c038c4e | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,563 | h | HManager.h | #ifndef PSHIST_HMANAGER_H
#define PSHIST_HMANAGER_H
//--------------------------------------------------------------------------
// File and Version Information:
// $Id$
//
// Description:
// Class HManager.
//
//------------------------------------------------------------------------
//-----------------
// C/C++ He... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.