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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abb49df7f56a06507cbf6aa79a0af64ad8586cf3 | b3dbd2079b4be488619d73e8007364617a6bde5e | /9471_PisanoPeriod/9471_PisanoPeriod/소스.cpp | e0303c54bbd39a760b965ff3cfd633481115972c | [] | no_license | choijun0/cpp_practice | 7a4f55ecc3e039044188152cceb36b822a16784b | 18b7c8c5da881ffeb7b9e4f7646840cbd1196f58 | refs/heads/main | 2023-02-03T18:09:00.646972 | 2020-12-23T15:36:41 | 2020-12-23T15:36:41 | 321,948,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | 소스.cpp | #include <iostream>
#include <algorithm>
#include <functional>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <string>
#include <queue>
#include <stack>
#include <map>
#include <vector>
#include <set>
#include <sstream>
#define ll long long
using namespace std;
int main()
{
ios_base::sync_with_stdio... |
6e22df64623966e908feea0484d1176843b7505a | 4b65e70edc1788a153c5327b21cb0486bbea5632 | /src/lexer.hpp | 66752f09fa761cbaff6f5f09ac11d6d1ef8ec50e | [] | no_license | boardwalk/xra | 65aaaf1b7e91ae50cc87e4a1774ccf237aaa702d | 41b2d51217c62fb8b311af947603b2b57d227796 | refs/heads/master | 2016-09-06T12:12:57.802969 | 2013-01-27T17:35:04 | 2013-01-27T17:35:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,763 | hpp | lexer.hpp | #ifndef XRA_LEXER_HPP
#define XRA_LEXER_HPP
#include <istream>
namespace xra {
struct Token
{
enum Type {
Error, // strValue
Indent,
Nodent,
Dedent,
EndOfFile,
// constants
Integer, // intValue
Float, // floatValue
String, // strValue
// special identifiers
BooleanType,
... |
07cf2e6ded0a52e6b8d832ae5d30bbac73e64a04 | 7cbd0df6c616fe9bd9d978aea1be6817eb3c8e9f | /Calculator/src/MainWindow.h | 708ac64522b37465149fd90a7b24f4ec0427ee92 | [] | no_license | analityk/Calculator_1 | c3342798637e886bd2f19e89a52820234c6e7186 | 0d81265636d0ffd032d625dc23ef35d6380645d2 | refs/heads/master | 2020-04-11T03:58:19.085548 | 2018-12-21T11:40:37 | 2018-12-21T11:40:37 | 161,496,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | h | MainWindow.h | #ifndef MainWindow_h__
#define MainWindow_h__
#include <avr/io.h>
#include <stdio.h>
#include <text.h>
#include <pair.h>
#include <keys.h>
#include <states.h>
#include <touch.h>
#include <cell.h>
#include <WindowsInterface.h>
#define LINE_CNT_MAX 8
#define COLUMN_CNT_MAX 8
class MainWindow: public WindowsInterface{... |
877d618b1bded4098dcb50e5a63e7836b70e1a25 | a408c593b3ee1c9dcdf6aa8531aeee1cb2f3e06e | /src/graph.cpp | 82fe2cd2e22b429dff94bfc879253c9f8e0685fa | [] | no_license | wdywbac/genome-assembly | b5eb8ed83814b14ada99c8dff2a9a3bb36edd12c | 12df3d691867e9f4b35ffa9df4723e2238888e99 | refs/heads/master | 2023-03-31T16:26:22.694254 | 2021-04-11T10:14:46 | 2021-04-11T10:14:46 | 356,834,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,830 | cpp | graph.cpp | #include <iostream>
#include <stack>
#include "graph.h"
namespace genome {
Edge::Edge(const Node &from, const Node &to)
: m_from(from), m_to(to) {}
bool Edge::operator==(const Edge &other) const
{
return m_from == other.m_from && m_to == other.m_to;
}
Graph::Graph(std::size_t... |
af359c1e1551df362e00a07e4db7fbcf381ee07a | ed65cdc29982eca7bb2993d227c4b9f5919040ed | /src/worker.h | af606440db4e2d296cf8818a0bde2bf612fed2a6 | [
"BSD-3-Clause"
] | permissive | nagyistoce/arrayfire_js | 264dbe3056aae1ef11ac52f512a80ea281bf3201 | bc7962ce712ce0c28292e44261660cb9edf7936c | refs/heads/master | 2021-01-23T16:39:51.006486 | 2015-07-11T09:56:38 | 2015-07-11T09:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,841 | h | worker.h | /*
Copyright (c) 2014-2015, ArrayFire
Copyright (c) 2015 Gábor Mező aka unbornchikken (gabor.mezo@outlook.com)
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 reta... |
3c4bf0454bd396977c42f0c3322bee6a8c8f1f5f | 6d1cb82786fa5e80a60468bc30dc16c3b0b8c235 | /Implementations_With_C/C++/BidirectionalLinkedList.cpp | eb333febc45e254eb72ec818af37cd62f509165c | [] | no_license | hasanaliozkan-dev/design_analysis_algorithms | 479d99969248f91033e7a515e74fb05d396f3dd5 | f0cc636a26055c55e1dd43648cff7fdb9488f291 | refs/heads/main | 2023-06-01T04:11:38.430865 | 2021-06-19T20:08:03 | 2021-06-19T20:08:03 | 351,848,274 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,865 | cpp | BidirectionalLinkedList.cpp | //
// Created by ALİ ÖZKAN on 16.05.2020.
//
#include<stdio.h>
#include <stdlib.h>
struct n {
int x;
n*next;
n*prev;
};
typedef n node ;
void printList(node*r){
while (r != NULL){
printf("%d\n",r->x);
r = r->next;
}
}
node * addItemOrdinary(node*r,int a){
if (r == NULL){//if it... |
ef12d690f248c56362ae64f3956fbd417352a062 | 19d196e17049ebb7ddae26636afcc7d1cd398772 | /Source/PSE_LYFE/Player/PSE_LYFE_AnimInstance.h | 140e100fa29367f257cd73c1dab5685b3566b34b | [] | no_license | Envenger/PSE_LYFE | 7c538aaec44c8eb3ab31f6a3f32b7aeeebd504dd | 6c85158c51c77d4dd7aa2d562b13124ab9c63d23 | refs/heads/master | 2021-01-19T09:25:11.470607 | 2015-11-23T08:02:56 | 2015-11-23T08:02:56 | 32,510,034 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | h | PSE_LYFE_AnimInstance.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Animation/AnimInstance.h"
#include "Player/Character/PSE_LYFE_Character5_Cover.h"
#include "PSE_LYFE_AnimInstance.generated.h"
/**
*
*/
UCLASS()
class PSE_LYFE_API UPSE_LYFE_AnimInstance : public UAnimInstance
{... |
785f82dcb8162cba036ad20da0d2b9f305a80b1a | 6f749a7d3e25412ac68f0769dacf70e0c2cb3024 | /pd/checkboxred.cpp | 61dc7ac413ef6964306892a5c6b3a2a06b4e69ae | [] | no_license | zhuzhonghua/pixeldungeon_cpp | 58d15c66a4df82512393c4bde57521491eda0b9a | 7c1982344709580d8cd202dd1f5d6988ac2d84e4 | refs/heads/master | 2020-03-28T03:22:29.348602 | 2018-10-24T07:02:19 | 2018-10-24T07:02:19 | 147,640,062 | 15 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | cpp | checkboxred.cpp | #include "checkboxred.h"
#include "icon.h"
#include "pixelscene.h"
CheckBoxRed::CheckBoxRed(const std::string& label)
:checked(false)
,RedButton(label)
{
icon(Icons::get(Icons::UNCHECKED));
}
void CheckBoxRed::layout()
{
RedButton::layout();
float margin = (_height - _text->baseLine()) / 2;
_te... |
89fca3801b210831e61ae8877acb11e508834c20 | 4ee4b2d880fbd89bdf646570b6d2b3356488f143 | /witisoPC/32cpp/贺利坚/overall/电子词典v3.cpp | 0535acc73ac78b4c4671fb3da1ce12f9e20408cb | [] | no_license | wwuhn/wwuhn.github.io | 8e5b3422c91f50c4ca989ed53b0d0e27131b574f | c63929f95557398b9f58319fe51a2ab00055afa4 | refs/heads/master | 2023-06-24T16:32:47.855733 | 2023-06-11T02:32:07 | 2023-06-11T02:32:07 | 211,744,777 | 3 | 3 | null | null | null | null | GB18030 | C++ | false | false | 2,657 | cpp | 电子词典v3.cpp | #include <fstream>
#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
//定义词条类
class Word
{
public:
void set(string e, string c, string wc);
int compare(string); //英语部分与给定字符串比较,等于返回,大于返回,小于返回-1
string getChinese();
string getWord_class();
private:
string engli... |
8d471dd3993022dda4d4ff72417df2f785bbe342 | c51febc209233a9160f41913d895415704d2391f | /YorozuyaGSLib/source/CCheckSumCharacTrunkConverterDetail.cpp | 5bb65f1edf5ded3b4fb43e4ff870a3113829f2fd | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 2,400 | cpp | CCheckSumCharacTrunkConverterDetail.cpp | #include <CCheckSumCharacTrunkConverterDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::CCheckSumCharacTrunkConverterConvert2_ptr CCheckSumCharacTrunkConverterConvert2_next(nullptr);
Info::CCheckSumCharacTrunkConverterConvert2_clbk CCheckSumCharacTrunkConv... |
77878632f310bac805cd7707c87b3e0d93d87c07 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /tics/include/tencentcloud/tics/v20181115/TicsClient.h | 239f6aed90720137d064ab35df7a83bd2290a5ab | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 6,573 | h | TicsClient.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
295b7cc32eb40c6d6125a44c80d3636865b58b9e | eb2692f92ae9222803846922d55051813ee54297 | /src/analysis/AvailableExpressionAnalysis.h | 5c36e494b2bfb6015e85a47008c301dc59da4892 | [
"MIT"
] | permissive | sycomix/VC4C | 0da958865b11540c535613b3c770c4217ee9564e | c757856aed772605ae7e5e3a521f0d7bc8e12686 | refs/heads/master | 2020-03-30T06:51:48.296720 | 2018-09-29T11:13:38 | 2018-09-29T11:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,966 | h | AvailableExpressionAnalysis.h | /*
* Author: doe300
*
* See the file "LICENSE" for the full license governing this code.
*/
#ifndef VC4C_AVAILABLE_EXPRESSION_ANALYSIS
#define VC4C_AVAILABLE_EXPRESSION_ANALYSIS
#include "../Expression.h"
#include "../performance.h"
#include "Analysis.h"
namespace vc4c
{
namespace analysis
{
/*
... |
179c4d9b9b406e558943ee3fbbf8c3f3dce074c3 | 568f22bb576ad33fa84374c1586177ef14fdb1a5 | /test.cpp | a7d651fc56e766af0d20e296005ec8b59b912424 | [] | no_license | ycxgmy/bus | 6efb85241aece671c2c22cf34b75ac1a01df394c | ea6199d2c84ca12ccbc20e6e161533bce95674dd | refs/heads/master | 2021-01-17T17:51:57.189542 | 2016-08-07T07:41:31 | 2016-08-07T07:41:31 | 65,120,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,702 | cpp | test.cpp | #include "session.h"
#include <iostream>
using namespace std;
#include <opencv2/opencv.hpp>
using cv::Mat;
#include "Uart.h"
#include "Upss.h"
#include "AlarmCheck.h"
char * mat2jpgbuf(const cv::Mat &m, int &buflen) {
vector<uchar> buf;
cv::imencode(".jpg", m, buf, std::vector<int>());
buflen = buf.size();
cha... |
87e8475a5628fb81ff3edb0307dcd75c4b29d65f | c9e5176f94cad8ec2c73312f64b3d437e09e855b | /BinTreeTestNormalization/BinTreeTestNormalization.cpp | 282b9783f93aff53050965a0ffe92c72e05d8fd6 | [
"MIT"
] | permissive | anton-hrytsevich/BinTreeNormalization | 7769423313c041e23879fbc8100115c3aba7f479 | c0077ed96849a5e50716a5af21dc2903681b4b4b | refs/heads/master | 2021-11-25T16:52:15.789375 | 2016-12-20T13:19:11 | 2016-12-20T13:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | BinTreeTestNormalization.cpp | // BinTreeTestNormalization.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "AVL_Tree.h"
int _tmain(int argc, TCHAR* argv[])
{
srand (static_cast <unsigned> (time(0)));
std::vector<float> nums;
for (int i = 0; i < 8; i++)
{
float r = static_cast <float> (rand()) ... |
fc1a7ecdcd6215c54a0be3cbd0671e847cce585e | c44fb0847f55d5a9a187e6e9518c1fa28957c480 | /FoundationLib/DataStructLib/SelfContainer/Graph.h | 587bcc130f1ba1122a97a08f3ebee9c7b6bb7288 | [] | no_license | Spritutu/hiquotion_cpp | 54567d5d0e62c36415d94f851ef9631932480e33 | 39e35053f979f7b613075c6a582fe58333c95dff | refs/heads/master | 2022-03-29T13:08:54.752069 | 2020-01-21T05:00:19 | 2020-01-21T05:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,180 | h | Graph.h | // Graph.h: interface for the CGraph class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GRAPH_H__60BF83A9_FFAC_46CF_BB4C_E298E5A9EF29__INCLUDED_)
#define AFX_GRAPH_H__60BF83A9_FFAC_46CF_BB4C_E298E5A9EF29__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 10... |
4abd42ef9d16ec2161e7d2d0637d8e0faaf1dc54 | 5e1afd243b9972138591b43149dc9dbb3a017879 | /Content/C++/graph/bipartite/DynamicBipartiteDivAndConq.h | 66ff6f15d1005e3fc08ffe174c62db57bea689cf | [] | no_license | pidddgy/Resources | 47bfd6fe019a3c59ac8468bb04c114b4e4679e07 | 624b2fcde28abe035cf7b54087c839bdabc623f8 | refs/heads/master | 2022-12-28T15:31:41.243316 | 2020-09-30T05:38:07 | 2020-09-30T05:38:07 | 300,311,262 | 0 | 0 | null | 2020-10-01T14:35:43 | 2020-10-01T14:35:42 | null | UTF-8 | C++ | false | false | 4,823 | h | DynamicBipartiteDivAndConq.h | #pragma once
#include <bits/stdc++.h>
#include "SemiDynamicBipartiteUndo.h"
using namespace std;
// Support queries on connected components and bipartiteness, after edges
// have been added or removed, using divide and conquer
// Constructor Arguments:
// V: the number of vertices in the graph
// Fields:
// ans:... |
ff5eb4c427ce778d3e638a986759cc03a0016a36 | 2426ae6b2205cceaee961e53685c74e01e9e8a2a | /Advanced_C++_Programming/lectures/lectures/lecture-9/dog.h | a139ab1564d10ca2dbaf5f7ad04af516f7ef5c57 | [
"Apache-2.0"
] | permissive | HeSixiang/UNSW | 937e54eab653a3efdeaf4686f4089c2a25acd800 | 6f63ebed517eac29f303ca364ee764d55a9581f4 | refs/heads/master | 2023-03-06T04:26:48.035280 | 2021-02-16T06:04:56 | 2021-02-16T06:04:56 | 245,617,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | h | dog.h | #ifndef LECTURES_WEEK9_DOG_H_
#define LECTURES_WEEK9_DOG_H_
#include <iostream>
#include <string>
#include <utility>
#include "./animal.h"
class Dog : public Animal {
public:
// This is very similar to delegating constructors. Each subclass constructor must always make
// sure a constructor is called for the base ... |
2e8b582f7457b236facdb139769a6306a1552714 | ffafe8e48652663e29fa222cea321de8b2e5f8fe | /PhysiSim/include/DsG410NNDCParticleHPCaptureFS.h | db9c62b89dd3a4a7898ffb3e26c3a7ebe11cf3c0 | [] | no_license | huyuxiang-hub/PhysiSim | 267ba223da3493e45262bc7152f13cc40c886622 | 1ea4504e73e8238e6fdccfdb3f5dba92b60dd483 | refs/heads/main | 2023-05-15T04:33:25.540889 | 2021-06-11T06:19:00 | 2021-06-11T06:19:00 | 313,232,765 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,950 | h | DsG410NNDCParticleHPCaptureFS.h | //------------------------------------------------------------------------
// Final state of neutron capture
//
// Modified class from original DsG4GdNeutronHPCaptureFS class
//-------------------------------------------------------------------------
// Author:... |
c5b30bf05741592459d31910ce0995acded2e96c | 33b9632289a784dadc95fca230b16f16716a9718 | /StackQueue.cpp | 81a99fdb80e7ba7a20f88eb959c2a15fb730c24d | [] | no_license | suyangzhu/Practice | e8230943838f50f61bfdeee4aa648353f81d4311 | aca2461997ea55b15ee5e2eca7e052b504841b25 | refs/heads/master | 2016-09-06T07:43:20.394066 | 2015-04-08T16:44:01 | 2015-04-08T16:44:01 | 21,131,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | cpp | StackQueue.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <stack>
using namespace std;
stack<int> s1;
stack<int> s2;
void push(int elem) {
s1.push(elem);
}
int front() {
if (!s2.empty()) return s2.top();
else {
while (!s1.empty()) {
s2.push(s1.top());
s1.pop();
}
return s2.top();
}
}
void p... |
b75fe3696ce6f8f96d3786474ee45d693c4cff9c | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/110.cpp | e3bfc33c5ac5af07fb81d38daaa1697ac8e883d3 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | 110.cpp | #include <iostream>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <algorithm>
#include <numeric>
using namespace std;
int main() {
int n; scanf("%d", &n);
vector<int> a(n);
for (int i = 0; i < n; ++i)
scanf(... |
167cc79080c5fba26475a64b1a738f98030cdcf5 | 4b88fe8b782cbedf048ec406d99b50d8e21a9f2c | /src/Graphics/MeshBatch.hpp | c62ad718f571d791c2c2835b7e2adac048435cf5 | [] | no_license | Senryoku/SEngine | d41fa3400b62ee274c760d6c902c2f0734d42c3a | 8235d22d87b5f2967437b2d19b6bc02100f792fa | refs/heads/master | 2021-06-06T10:15:47.880495 | 2021-05-23T00:53:04 | 2021-05-23T00:53:04 | 38,825,325 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,895 | hpp | MeshBatch.hpp | #pragma once
#include <Mesh.hpp>
#include <TransformFeedback.hpp>
/**
* Easy way to get multiple instances of a mesh draw efficiently
* @todo All of it.
* @todo Easy VFC with Transform Feedback ?
**/
class MeshBatch
{
public:
/**
* Data for each instance of the batch.
**/
struct InstanceData
{
glm::mat4 mo... |
506afda3e74ca1a7f799a1ee12da7fcb820a1ad3 | 87362e04cc66d766592a69fca757db6c7f01b3ee | /資料結構hw1/merge/merge.cpp | 0278c0ea83b82f602d14997e42d25cf01653be51 | [] | no_license | Tsaiyen/5-sorting | 9a03d3dd9bfd906e5b55381345291aab667f1a0f | d4ad9fd98e1396669f643816405ff33ce383c992 | refs/heads/main | 2023-09-03T11:49:07.891187 | 2021-10-29T06:52:31 | 2021-10-29T06:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,541 | cpp | merge.cpp | // C++ program for Merge Sort
#include <iostream>
#include <time.h>
#include <math.h>
#include "merge.h"
using namespace std;
// Merges two subarrays of array[].
// First subarray is arr[begin..mid]
// Second subarray is arr[mid+1..end]
void merge(int array[],int const left,int const mid, int const right)
{
auto ... |
ba88e7cfc42884a2cbfcd98ce5933ca6ce787cbb | 6b91fe3fe57f9e67cf37037727b371f6e2134af1 | /test/unit/math/prim/arr/meta/scalar_seq_view_test.cpp | 53726b103023fe4be1e0135edf2f43177936fb87 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Capri2014/math | 395551623b379cf27102ec486791e9cc3d9bbb53 | 4727ac706803fc9eedf29cd0bcc28555421f9334 | refs/heads/master | 2022-02-10T19:12:08.426236 | 2019-07-18T21:24:46 | 2019-07-18T21:24:46 | 198,344,402 | 1 | 0 | BSD-3-Clause | 2019-07-23T03:25:41 | 2019-07-23T03:25:39 | null | UTF-8 | C++ | false | false | 376 | cpp | scalar_seq_view_test.cpp | #include <gtest/gtest.h>
#include <stan/math/prim/arr.hpp>
#include <vector>
TEST(MetaTraits, ScalarSeqViewArray) {
using stan::scalar_seq_view;
using std::vector;
vector<double> v;
v.push_back(2.2);
v.push_back(0.0001);
scalar_seq_view<vector<double> > sv(v);
EXPECT_FLOAT_EQ(v[0], sv[0]);
EXPECT_FLOA... |
81301b733282dabdaef4f54f8daed4ea41d501fc | a7183d3adea2be3707abe23d7d0276405c1e064a | /src/modules/trex/geometry/Config.cpp | fcc908f9b71e38c5db92cd064bd022c44d9450fe | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | ess-dmsc/event-formation-unit | 672fe93e4b885777a7b77cceeee2e0ef4659adce | 7d2e94662bbece96ccb079511030f9a044fbbb5c | refs/heads/master | 2023-09-01T12:31:53.905678 | 2023-08-23T08:34:26 | 2023-08-23T08:34:26 | 80,731,668 | 9 | 9 | BSD-2-Clause | 2023-09-11T09:24:52 | 2017-02-02T14:17:01 | C++ | UTF-8 | C++ | false | false | 3,412 | cpp | Config.cpp | // Copyright (C) 2021 European Spallation Source, ERIC. See LICENSE file
//===----------------------------------------------------------------------===//
///
/// \file
///
/// \brief using nlohmann json parser to read configurations from file
//===----------------------------------------------------------------------==... |
5e83eacbc465748b7e63ea00d1a4f2d0f4cc2caa | d0e46ed2e09e9906b7c52837774d234726b2620e | /weathercncityquerier.cpp | 37d26c453a916a371453f99e4a311f60db0897d6 | [] | no_license | AnClark/WeatherCn-City-Query | 3fcfe36e804c839468c829c4e3f3770fe7a3eab1 | bba0ff0b8e5112d57d4893b0c4f85c5a3c3d91d8 | refs/heads/master | 2020-05-04T14:29:09.046269 | 2019-04-04T14:30:53 | 2019-04-04T14:30:53 | 179,198,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,553 | cpp | weathercncityquerier.cpp | #include "weathercncityquerier.h"
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <QUrl>
#include <QEventLoop>
#include <QRegExp>
WeatherCnCityQuerier::WeatherCnCityQuerier()
{
// 初始化模型
model = new QStandardItemModel;
// 设置列数和表头
model->setColumnCount(3);
mod... |
e66e4346da5ca928110ff4359723d808152cf206 | 790163b59cd7e7a6a4f3a1de5914f9268170efef | /2301/2301/2301.cpp | de803ae26b853b551840bd8c4385e345536ef780 | [] | no_license | zhuhui1990/poj | 4eb7b656c4bfb91b3ac6ab3996c6b5f368f039ff | a8b087569871d5ede8cef04d5c13fbddadf957ef | refs/heads/master | 2021-01-11T15:45:47.903260 | 2017-01-24T15:34:12 | 2017-01-24T15:34:12 | 79,924,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | 2301.cpp | #include <iostream>
using namespace std;
int main()
{
int n=0;
cin>>n;
int a=0,b=0;
int res1,res2;
for (int i=0;i!=n;++i)
{
cin>>a>>b;
if(a < b)
{
cout<<"impossible"<<endl;
}
else if ( ((a+b)%2) !=0)
{
cout<<"impossible"<<endl;
}
else
{
res1=(a+b)/2;
res2=(a-b)/2;
cout<<res1<<" ... |
4d61e70d917d00d2cf97877aa39c0cc71118edd5 | dcaf5f621e9337647b47092b21c70215dbf716d6 | /Trie.h | 7c1652e76ce849e8c266fbbd37973169fd74367c | [] | no_license | boyxgc/Code-snippets | d52b78d2e7e181f0efa250891509f141abec8077 | d9e821c7d4215b894399d9c5103991190f78c20a | refs/heads/master | 2020-06-05T15:16:07.452528 | 2014-10-21T04:30:35 | 2014-10-21T04:30:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,490 | h | Trie.h | #ifndef TRIE_H
#define TRIE_H
#include <unordered_map>
#include <string>
using namespace std;
class TrieNode {
public:
TrieNode() {}
//TrieNode(char c): value(c) {}
bool insert(string str) {
if(str.empty()) {
if(leaf == true){
return false;
}
e... |
1494aa6eb155620d8874677a1156e9bebcfee957 | f1e20b487a36cf018eee3bd215e8a9ed4d54a36e | /Source/xsite_ue/MultiViewportCameraActor.cpp | f03a33feabb836c6aa258dd5a973521da5e3b7de | [
"MIT"
] | permissive | bnlrnz/xsite_ue | e8d17f242a3f0451f7abda623eb12d7e1410b472 | 574e9336a3bdc031543d74d3b74c4b5ac37f4300 | refs/heads/main | 2023-08-23T01:10:22.672879 | 2021-10-27T08:36:14 | 2021-10-27T08:36:14 | 301,708,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,811 | cpp | MultiViewportCameraActor.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "MultiViewportCameraActor.h"
#include "Engine.h"
#include "Engine/UserInterfaceSettings.h"
#include "Modules/ModuleManager.h"
#include "Blueprint/UserWidget.h"
#include "Slate/SceneViewport.h"
#include "Slate/SGameLayerMa... |
960aa07a1ac7d17efd186aa28b92c371886e8f9c | 22b817c31ce2a54cba4f7a8597a6867dd0414f87 | /femm/bv_DPlotDlg2.cpp | f4d44cf900fc63850b7f969854107d556de7543a | [
"MIT"
] | permissive | philm001/FEMM | 904c72e653f89784693bf1b83aefb3b26aed4848 | e091281e86ac22ed31a3bfc7d854ff42527ffdc7 | refs/heads/master | 2020-03-14T23:56:28.511905 | 2018-05-02T13:41:10 | 2018-05-02T13:41:10 | 131,856,027 | 0 | 0 | null | 2018-05-02T13:38:43 | 2018-05-02T13:38:42 | null | UTF-8 | C++ | false | false | 2,441 | cpp | bv_DPlotDlg2.cpp | // DPlotDlg2.cpp : implementation file
//
#include "stdafx.h"
#include "femm.h"
#include "bv_DPlotDlg2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// bvCDPlotDlg2 dialog
... |
1f758412d2fd48effd0d0c9b1d3cdfbc6b749479 | 81985fc94abfd774c22c5b6f71834d38ba027285 | /stdx/stdx-MathUtils.cc | c501f2b13f6d6208059dc57e00cd6458424d8625 | [] | no_license | cornell-brg/xloops-bmarks | 3f2a961d6c995a556679734d60756754cfa18379 | 2f91a5aad168882672a8f150fc59158575ae5923 | refs/heads/master | 2021-05-24T00:56:13.769621 | 2020-07-11T19:27:46 | 2020-07-11T19:27:46 | 59,903,830 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,166 | cc | stdx-MathUtils.cc | //========================================================================
// stdx-MathUtils.cc
//========================================================================
#include "stdx-MathUtils.h"
#include "stdx-Exception.h"
#include <cmath>
#include <cstdlib>
namespace stdx {
//---------------------------------... |
00f0fe26a34b7c010243771d7da94bb2cbdda8ea | c8412465cd0acd657f93fea61aa49f9e61331221 | /Practice/SUBST.CPP | fa348c46b07ebf219d70edffcddaa41d0189ae9d | [] | no_license | Abinasbehera16/C- | a823ed89d845a6576835721b373afc04597fb61b | fe566919caec180b82883ea31fbcb0d34c8f0ff3 | refs/heads/master | 2022-01-13T04:38:19.936474 | 2019-07-08T09:04:19 | 2019-07-08T09:04:19 | 195,776,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | SUBST.CPP | #include<stdio.h>
#include<conio.h>
void main()
{
char s[90]={"TO BE OR NOT BE"};
char *SUBSTR(char*,int ,int);
clrscr();
printf("String=%s",s);
printf("\n Substr(s,4,7)=%s",SUBSTR(s,4,7));
getch();
}
char *SUBSTR(char *STR,int i,int j)
{
int k,m=0;
char STRESS[80];
for(k=i-1;k<=i+j-1-1;k++)
{
STRESS[m]=STR[k];
m=m+1;
... |
8dd40f626730012e15f98d7517a3bbbc9f23559c | da4fbcf257ff12885327f19dc87676f3546d03a4 | /t5.cpp | 4fceb84586f56f6a5bfae9304c06996b2499ba20 | [] | no_license | mrk1379/clab | 11d0a28e2e25e1ad9e9f94ecdf14a29895560537 | 7136c52634814129762e47b276bbd3c47ebfe78a | refs/heads/master | 2020-09-28T01:57:44.379638 | 2019-12-27T20:13:30 | 2019-12-27T20:13:30 | 226,662,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | cpp | t5.cpp | #include <stdio.h>
#include <stdlib.h>
p(int x ,int y){
int h=1,c=1,d,b=1;
d=y-x;
while (y!=1){
h =y*h;
y--;
}
while (x!=1){
c = c*x;
x--;
}
while (d!=1){
b =b *d;
d--; }
return h/(b*c);
}
int main() {
int x,y,h=1 ;
scanf ("%d%d",&x,&y);
int f[y+1];
f[0]=1;
f[y+1]=1;
for (;h<=x;h++){
... |
8cfef5140e27ed0fe827d434133ca6dbf187847d | 6ca0760d7962aa9843ec46109fdbf8e20a3fe4b2 | /C++/examples/example.cc | 71f18e9f6a1b629bb4e78d61c2d36668b251bbcd | [
"Unlicense"
] | permissive | denismr/SymmetricPCVT | 015c4af23dffd598b0fcedb165c95ae809f8a4d5 | 42c6a0a92e066bf76104e5e242df9bba536e2e72 | refs/heads/master | 2022-05-06T12:59:42.112597 | 2022-04-17T17:50:59 | 2022-04-17T17:50:59 | 156,855,300 | 41 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,660 | cc | example.cc | #include "SPCVT.h"
#include <iostream>
#include <ctime>
int main() {
const char *tilemap[11] = {
"#####################",
"#....#..........#...#",
"#....#..............#",
"#........#......#...#",
"#..#................#",
"#.........@.........#",
"#.....#.............#",
... |
e6965dc85d286ebab9218d37b81031480f3875e8 | d63b1b36634b68070f6f3c017c0250a7ea646e6f | /SMC/GEM5/gem5/src/arch/arm/insts/fplib.cc | 98410dd3854645def40ee782899dc1bd73078944 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later"
] | permissive | jiwon-choe/Brown-SMCSim | ccf506d34d85fb3d085bf50ed47de8b4eeaee474 | ff3d9334c1d5c8d6a00421848c0d51e50e6b67f8 | refs/heads/master | 2021-06-30T00:15:57.128209 | 2020-11-24T03:11:41 | 2020-11-24T03:11:41 | 192,596,189 | 15 | 8 | MIT | 2019-06-20T15:43:00 | 2019-06-18T18:53:40 | C++ | UTF-8 | C++ | false | false | 80,066 | cc | fplib.cc | /*
* Copyright (c) 2012-2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the functio... |
963e8f4fd54953ceac695013814a676b12095c99 | 39477fa809041b43e7a93ea29c141228f0dedaa6 | /runtime/dart_runner/builtin_libraries.h | 99dda2b0e9e4133ca1fd4a0d72d8a45e142c9877 | [
"BSD-3-Clause"
] | permissive | bleonard252/gfuchsiaos-topaz | 06c2665213e1a1a758841e775e519f453cfd9699 | 1d01e18fdb932f3bef20fd41d035035969297e04 | refs/heads/master | 2021-04-03T07:35:37.576959 | 2018-03-13T22:06:46 | 2018-03-13T22:06:46 | 125,114,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | h | builtin_libraries.h | // Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef APPS_DART_CONTENT_HANDLER_EMBEDDER_BUILTIN_H_
#define APPS_DART_CONTENT_HANDLER_EMBEDDER_BUILTIN_H_
#include <memory>
#include <string>
#include ... |
2b04ec16f443d84cc526729e57593ad3577b5c8e | 04f15913aca8a702efe47962bf82b60eedad73d9 | /LibV/Decoder/Mfx/MfxDec.h | cdb4a3f2f776a50b7eaf69a9fdf3dfe15f2af54d | [] | no_license | DevilCCCP/Code | eae9b7f5a2fede346deefe603a817027a87ef753 | 9cc1a06e5010bb585876056a727abad48bca3915 | refs/heads/master | 2021-10-07T17:04:27.728918 | 2021-09-28T06:49:50 | 2021-09-28T06:49:50 | 166,522,458 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,743 | h | MfxDec.h | #pragma once
#include <QVector>
#include <QMap>
#include <QSet>
#include <QByteArray>
#include <LibV/Include/Frame.h>
#include "MfxDef.h"
DefineClassS(MfxDec);
DefineClassS(MfxContainer);
DefineClassS(FrameM);
DefineClassS(Thumbnail);
class MfxDec
{
ThumbnailS mThumbnail;
... |
30eea3cc64bd8c0323ade4095bed50bb9c3a44e3 | ec9112d13fba8c8e7952a8f6aaeaef007ae9e718 | /waveformvs.h | b53317997778ecddbe7d1cc7c6ddefa6d1cfb84e | [] | no_license | joejond/catatan_si_amoy | 9b3ce538de7ac80c0b367c2a51fd648ed2546b64 | 8da4a32a77359e0ee950d9879ddc8c6c69bd1669 | refs/heads/master | 2020-06-10T19:49:04.827456 | 2016-12-08T00:29:44 | 2016-12-08T00:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,519 | h | waveformvs.h | #ifndef WAVEFORMVS_H
#define WAVEFORMVS_H
#include <QGLWidget>
#include <GL/glut.h>
#include <QPixmap>
#include <QClipboard>
#include <QApplication>
#include "alokasi.h"
#include "libku/dsp/itung_rms.h"
#include <QSettings>
#include "lain.h"
extern struct t_setting setting;
class WaveformVS : public QGLWidget
{
... |
d0a2cf44c4c2bd00c26d1160d8924ba313b4238a | 484ec4d1331b94fe9c19fd282009d6618e9a1eef | /Real-Time Corruptor/BizHawk_RTC/waterbox/ngp/TLCS-900h/TLCS900h_interpret_single.cpp | 96422b249fc1801171ea5d1b4f230c9401369b35 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | mguid65/RTC3 | a565303fdfd1807a2516be5752c7b30a8be3d909 | 4082eb302f8e6e20ba621ec70308dab94985fe7f | refs/heads/master | 2020-04-13T16:57:31.933643 | 2018-12-31T16:03:39 | 2018-12-31T16:03:39 | 161,684,492 | 0 | 0 | MIT | 2018-12-13T19:19:17 | 2018-12-13T19:19:17 | null | UTF-8 | C++ | false | false | 6,342 | cpp | TLCS900h_interpret_single.cpp | //---------------------------------------------------------------------------
// NEOPOP : Emulator as in Dreamland
//
// Copyright (c) 2001-2002 by neopop_uk
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Th... |
d62d082eb641583a0b6635b6c8e095687ddc11d2 | 0934782cc900ef32616d3c5204bca05b2aa34032 | /SDK/RC_LoggingInStatusTempClone_functions.cpp | 3fa6d257719090d58dd61fdce418f3d571db32c6 | [] | no_license | igromanru/RogueCompany-SDK-9-24-2020 | da959376e5464e505486cf0df01fff71dde212cf | fcab8fd45cf256c6f521d94f295e2a76701c411d | refs/heads/master | 2022-12-18T05:30:30.039119 | 2020-09-25T01:12:25 | 2020-09-25T01:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,889 | cpp | RC_LoggingInStatusTempClone_functions.cpp | // RogueCompany (4.24) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function LoggingInStatusTempClon... |
4e0258a4020984b21a4859d217a07c5d95e4513c | de8b188c44d89940c65534a1977bae59be66a472 | /src/main.cc | 28136ff4dd7e69a4a55f7dbec8baefff103f45b9 | [
"MIT"
] | permissive | tsayc/elma_project | 44acda1f5ce3757ffa6b256afae7303787d1ce45 | 508528e0f6487953fa889e0ab54deef81db0e1cc | refs/heads/master | 2020-04-29T20:34:56.114275 | 2019-03-24T03:33:38 | 2019-03-24T03:33:38 | 176,387,817 | 0 | 0 | null | 2019-03-18T23:52:49 | 2019-03-18T23:52:49 | null | UTF-8 | C++ | false | false | 511 | cc | main.cc | #include <iostream>
#include <chrono>
#include <vector>
#include <ncurses.h>
#include "device.h"
#include "battery.h"
using namespace std::chrono;
using namespace elma;
using namespace device;
using namespace battery;
//! main class that initialize some instances
int main() {
Manager m;
Device device;
Bat... |
e151d252cf1cd4965b87b178a716ec8cf9816b87 | de3f28132f2d48cf0500904b938ce9dca4fafe47 | /inc/utility/utility.hpp | e160e55a845241810ea12844c705d82c3939908c | [] | no_license | NaSchkafu/univermec | 4e2e70223755b1ffab0116bb561a0f77fa0dcb22 | 34c41c980164b2497b54d559b65e06fb79910a8d | refs/heads/master | 2021-04-30T17:19:16.674484 | 2017-01-28T16:41:50 | 2017-01-28T16:41:50 | 80,286,973 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,327 | hpp | utility.hpp | #ifndef __UTILITY_HPP__
#define __UTILITY_HPP__
#include <core/arithcore.hpp>
// TODO C11
#include <boost/array.hpp>
namespace utility
{
/*!
** Creates a unit box for the dimension
**
** @param dim dimension of the box
**
** @return unit bxo in form of a interval vector
*/
core::arith::ivector unit_b... |
5c4f83bceb78470a3310559dff3c85afa9111d69 | ede96ec8ea5a41655d8b84afa5f63d6a18408907 | /绘制分形树/lsqt/lspanel.h | 587e5f1b3929fcefe9e71f72c28e65ca044b6177 | [] | no_license | lxlyh/treehouse | 7a0ded0a1d3d328e02b8bea03a34a045f13bb369 | dc790f6d0115c67c0a72749bc66df27fc9e4fe54 | refs/heads/main | 2023-07-15T12:13:13.213619 | 2021-08-27T09:06:29 | 2021-08-27T09:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | h | lspanel.h | #ifndef LSPANEL_H
#define LSPANEL_H
#include <QWidget>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QTimer>
#include <functional>
#include "lsystem.h"
using OnTimer = std::function<void(QGraphicsScene& scene)>;
class LsPanel : public QGraphicsView
{
Q_OBJECT
public:
LsPanel(OnTimer&& f, QWid... |
64512c248558cc4fdbbb2bf2fe9bb427e4ee528d | 2eb3b66b421a1f4a18bcb72b69023a3166273ca1 | /TopCoder/PublicTransitHard.cpp | 484c830d536480ae17843f738719f5ecc12d4283 | [] | no_license | johnathan79717/competitive-programming | e1d62016e8b25d8bcb3d003bba6b1d4dc858a62f | 3c8471b7ebb516147705bbbc4316a511f0fe4dc0 | refs/heads/master | 2022-05-07T20:34:21.959511 | 2022-03-31T15:20:28 | 2022-03-31T15:20:28 | 55,674,796 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,325 | cpp | PublicTransitHard.cpp | #include <string>
#include <algorithm>
#include <queue>
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <map>
#include <deque>
#include <climits>
#include <set>
#include <vector>
#include <functional>
#include <stack>
#include <unordered_set>
#include <unordered_map... |
a6ab604d9e631d11db0c64ffde5c1ef369fe4b92 | dc488c23c45561e359e6397f3debd94990f49f5f | /Building bridge.cpp | 45d58bb52fbb872c1076c42bb317994a622a6120 | [] | no_license | hs-krispy/BOJ | 418fb91baa7598c8ca710d3f9e08adf271f512c0 | 60921938c551f7f5e98b0ffc884feeaf6394c36f | refs/heads/master | 2021-07-18T06:11:07.704323 | 2021-02-26T16:19:39 | 2021-02-26T16:19:39 | 233,381,056 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,414 | cpp | Building bridge.cpp | #include<iostream>
#include<queue>
#include<climits>
#include<vector>
#include<tuple>
#include<cstring>
using namespace std;
int N, map[101][101], Min = INT_MAX;
bool check[101][101];
vector<queue<tuple<int, int, int>>> v;
int dx[] = {-1, 1, 0, 0};
int dy[] = {0, 0, -1, 1};
void field(int a, int b, int c)
{
queue<p... |
8c6a7f6bfec3a988fd7b68ee866ddeea8214c710 | 00ce81a2ac01f55754ea8fee5fcbc416ff2f90dd | /C语言基础/老师课件/基础_03/08_函数的定义/08_函数的定义.cpp | 15315018afb7ce7a79fff807a6a3ce85bcf31dc9 | [] | no_license | song493818557/mfc | 1bd0064eec466847bac0f6abc7775d99b13f2423 | ce562ef61580b959c198c053648c9f77a7ea7a18 | refs/heads/master | 2021-01-13T04:49:50.035383 | 2017-01-13T12:10:08 | 2017-01-13T12:10:08 | 78,842,167 | 4 | 0 | null | null | null | null | GB18030 | C++ | false | false | 439 | cpp | 08_函数的定义.cpp | // 08_函数的定义.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
//int Max(int a, int b);//假如函数定义在调用函数之后的话,可以在前面加声明。
int Max(int a, int b)
{
if (a>b)
{
return a;
}
else
{
return b;
}
}
int Test(int num)
{
int a;
num = 200;
Max(10, 20);
return 50;
}
int _tmain(int argc, _TCHAR* argv[])
{
int m = 0;
Test(m);
... |
a386d17cc60b676d973ddfd5700120bf30118bbf | 3eb87c6badf4bbf2d0bef74029afd9d2dec51a9f | /src/public/SourceBufferHolder.h | 6fb4eb5c92fd8169ed7a4fd31adc2a646a321465 | [
"MIT"
] | permissive | zief/blazefox | 9da726fc6662976b5648ebae985ab1cd84bd9c56 | d8687161a2483f1fb27cce2f2928b67604fca4ca | refs/heads/master | 2020-04-16T06:27:57.210311 | 2019-01-12T01:31:07 | 2019-01-12T01:31:07 | 165,347,964 | 1 | 0 | MIT | 2019-01-12T04:53:25 | 2019-01-12T04:53:25 | null | UTF-8 | C++ | false | false | 4,221 | h | SourceBufferHolder.h | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* SourceBufferHolder groups bu... |
268d5d87a1dd6be2fa4f9544fe5f369afc9ebb2a | ee080dbd8517ebc0b621dcb339a818b03749d77f | /head-first-design-pattern/cpp/command/party/stereo_on_with_cd_command.h | 7764fd94ddab0686b26109521908cabb259d1902 | [] | no_license | chenjianlong/books-code | b01c92f0cd74861f315a65fa70ad0de729356978 | bbbf379db7117d023f68aac1fd39b5846118159e | refs/heads/master | 2023-07-21T14:43:46.951799 | 2023-05-09T03:23:59 | 2023-05-09T03:23:59 | 9,493,872 | 4 | 3 | null | 2023-09-07T11:57:37 | 2013-04-17T09:23:04 | C | UTF-8 | C++ | false | false | 627 | h | stereo_on_with_cd_command.h | /*!
* \file stereo_on_with_cd_command.h
* \brief The Stereo_On_With_CD_Command class implementation.
* \author Jianlong Chen <jianlong99@gmail.com>
* \date 2013-05-08
*/
/* $Id$ */
#ifndef STEREO_ON_WITH_CD_COMMAND_H
#define STEREO_ON_WITH_CD_COMMAND_H
#include <string>
#include "command.h"
#include "stereo.h"
... |
afb85042b6d9dd71ac57afc18c86897c06227b4b | 5fd214ad737974f864ec2c055495e9696bbf24eb | /examples/mechanics/contacts/rectangle_polynomialfrustum/system.cc | 3e1e6dd136705f8d7ec10fb38a1dcb3225edcf66 | [] | no_license | tsschindler/mbsim | 28ede3f2035592532738b833fefe6a8755dfd59e | 97fdb10cfe9e22fb962b7522a9b758d1cdc571ce | refs/heads/master | 2021-01-15T10:18:44.245224 | 2015-06-05T11:37:17 | 2015-06-05T11:37:17 | 36,926,919 | 1 | 0 | null | 2015-06-05T11:37:18 | 2015-06-05T10:29:23 | C++ | UTF-8 | C++ | false | false | 7,511 | cc | system.cc | #include "system.h"
#include <mbsim/utils/rotarymatrices.h>
#include "mbsim/rigid_body.h"
#include "mbsim/contours/rectangle.h"
#include "mbsim/contours/polynomial_frustum.h"
#include "mbsim/contact.h"
#include "mbsim/constitutive_laws.h"
#include "mbsim/environment.h"
#include "mbsim/functions/kinematic_functions.h"
#... |
8c61496ec5f6a8c50c2c87a826414bfa16c6c1fc | 82c034a24b65de4579a0a534052056ec299759af | /OJ4TH-BUAA/2016/exercises02/C.cpp | 8c02e9be9cb120e1bfe1ab75671348a008ca49d4 | [] | no_license | rust-in/algorithm-exercise | 8d933afee4685921c8b4bb21f80f338a887a9e94 | 0f81cb1fb7345aa8f241eb82cb6bfacdbf7ba0f9 | refs/heads/master | 2021-09-10T02:28:47.597389 | 2018-03-20T18:03:12 | 2018-03-20T18:03:12 | 103,937,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | cpp | C.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
int time, len;
int value[1000];
int weight[1000];
int all[20005];
while(cin>> time >> len){
for(int i=0;i<len;i++) cin>>value[i]>>weight[i];
memset(all,0,sizeof(all));
... |
276c852b82548fdc0059e26a6cb2d3f6da295af9 | fafce52a38479e8391173f58d76896afcba07847 | /uppdev/Docking/DockableCtrl.h | f0598355b945fff21c5a8361c4e505242c7736c4 | [] | no_license | Sly14/upp-mirror | 253acac2ec86ad3a3f825679a871391810631e61 | ed9bc6028a6eed422b7daa21139a5e7cbb5f1fb7 | refs/heads/master | 2020-05-17T08:25:56.142366 | 2015-08-24T18:08:09 | 2015-08-24T18:08:09 | 41,750,819 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,372 | h | DockableCtrl.h | $uvs: PENDING CONFLICT
#ifndef _Docking_DockableCtrl_h_
#define _Docking_DockableCtrl_h_
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define IMAGECLASS DockingImg
#define IMAGEFILE <Docking/Docking.iml>
#include <Draw/iml_header.h>
class DockCont;
class DockableCtrl : public ParentCtrl
{
public... |
d63f41d96f1065f066e6d4798049e4d653ab009b | a4deda331d69a5cc5f76c2c4fca032184c2cb6a2 | /Lab1(AbstractFactory)/Lab1(AbstractFactory)/ReadyTaxi.cpp | 52c364a5fcb035c498e1b005533a1ec96166f566 | [] | no_license | Gusarov2906/Patterns_Course | c1233eca3dfe769bd56d018066eb54ebacc6a819 | d9020c8ccce5451d3fdd8aed8f40809b21e4d9d2 | refs/heads/main | 2023-04-21T01:47:25.939951 | 2021-05-12T19:12:08 | 2021-05-12T19:12:08 | 352,025,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | ReadyTaxi.cpp | #include "ReadyTaxi.h"
void ReadyTaxi::run(std::vector<AbstactPassenger>& passengers)
{
if (this->passengers.empty())
{
std::cout << "Taxi not run. No passengers!" << std::endl;
getPtrToDriver()->onTrip = false;
}
else if (driver == nullptr)
{
std::cout << "Taxi not run. No driver!" << std::endl;
int size... |
117cf527d2716dd6d9018c69d816cb130d750971 | 050d7f1f6f527a59834840d6e0690259f31f2466 | /25.1_Turing_machine.cpp | 620a2e5c244699d712755e443a77a0b488f99d3f | [] | no_license | TomasKenny/Advent-of-code-2017 | 843e47d6650cfb60a163f2a9f6b21c9d10f5e740 | 2c0ae251ba1a11b2f657e0c9d8054f180337a883 | refs/heads/master | 2021-10-10T20:03:57.016034 | 2019-01-16T14:45:46 | 2019-01-16T14:45:46 | 114,122,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,305 | cpp | 25.1_Turing_machine.cpp | #include "stdafx.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <regex>
#include <stack>
#include <assert.h>
#include <numeric>
struct MachineAction{
char writeValue;
int move;
char nextState;
};
typedef std::pair<char,char... |
6906dbdc0702ea742f6c9d7e33757405e61b3fc7 | 6d4721b03a01de897e2c6c98f78671e3ea0a4c03 | /PAA/Tp1/Src/OptimizeSubGraph.hpp | 18cf683cfa3f71f0ac810c8a606ec99b7dc594ab | [] | no_license | PauloBicalho/TPs | ee8498db23e86ad2993d7d92132bae8e71d8b086 | 644cefccbffa08b6e23aa6eb1c4de5e25022f656 | refs/heads/master | 2021-01-18T14:03:03.703371 | 2014-11-20T22:27:43 | 2014-11-20T22:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | hpp | OptimizeSubGraph.hpp | #ifndef Optimize_Sub_Graph
#define Optimize_Sub_Graph
#include <algorithm>
#include "Graph.hpp"
#include "DisjointSetForest.hpp"
typedef std::pair< float, std::pair<int,int> > WeightEdge;
class OptimizeSubGraph{
public:
OptimizeSubGraph(Graph & graph) : g(graph) {};
float optimize();
private:
Graph ... |
8feeaa6bf6ad18d568e26324ade87ee390197c39 | 0504369cd9797ea4d51e3dc0b0bad268203d3690 | /PluginServer/Common.cpp | 4e82068b113037b027077c477c813753d78e0f74 | [] | no_license | frogzl/VersionBuild | 371d88adb81f85941db62ded96e41832aaaec70e | 0914c58512e8b352ffae67d61143f1757931d4fc | refs/heads/master | 2020-12-02T07:59:45.212108 | 2017-12-28T06:51:25 | 2017-12-28T06:51:25 | 96,740,050 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,855 | cpp | Common.cpp | #include "Common.h"
struct table_entry content_type_table[] = {
{ "txt", "text/plain" },
{ "c", "text/plain" },
{ "h", "text/plain" },
{ "html", "text/html" },
{ "htm", "text/htm" },
{ "css", "text/css" },
{ "gif", "image/gif" },
{ "jpg", "image/jpeg" },
{ "jpeg", "image/jpeg" },
{ "png", "image/png" },
{ "p... |
36a3aa08bcf821e6af85f49b5476f5d4bc9740d4 | 8f02939917edda1e714ffc26f305ac6778986e2d | /BOJ/9373/main.cc | 1236b5f752f6f574c7bb51f5565b3103f49e5b62 | [] | no_license | queuedq/ps | fd6ee880d67484d666970e7ef85459683fa5b106 | d45bd3037a389495d9937afa47cf0f74cd3f09cf | refs/heads/master | 2023-08-18T16:45:18.970261 | 2023-08-17T17:04:19 | 2023-08-17T17:04:19 | 134,966,734 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | cc | main.cc | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
using lld = long long;
using pii = pair<int, int>;
using pll = pair<lld, lld>;
////////////////////////////////////////////////////////////////
struct DSU {
vector<int> parent, size;
DSU(int s) {
parent.resize(s); size.resize(s);
for (int i =... |
a21cb78855462e5a1648cc81bc075db1056762f9 | 74f2cda28072371252ee48b1cc53464a8f2d4af8 | /SbLib/Goddess.cpp | 3f6488cc60c58a6a680c97235f3027db9af29d68 | [] | no_license | haukun/GODDESS | 04d0144ac0ebd267f7266ab3d037604fadb6fb29 | 142867d654e7756a0cef04ef20b48d6f0d0204ef | refs/heads/master | 2021-06-28T10:14:55.571138 | 2017-09-19T11:25:37 | 2017-09-19T11:25:37 | 103,868,795 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 6,127 | cpp | Goddess.cpp | /**
@file GoddessWindow.cpp
@brief GODDESSウィンドウクラス
@author Hau-kun
@date 2014/10/12
@version 0.1 Alpha
*/
#include "stdafx.h"
#include "UserHeader.h"
#include "UserMain.h"
#include "Goddess.h"
#include "config.h"
#include "MathUtil.h"
double** fewAlpha; // アルファ小数部分
int nPlotCnt = 0; // プロット数
Goddess... |
5e7a92aec31ae8b6f0e39d1c7ab89542b74c31f1 | aac8ec3f561d156f3425064843e545cdd84f4b3f | /35-challenge-dynamic-programming/04-print-LCS-of-three-strings.cpp | cae120157e39d6be28bbad968b9bb5a9c0ffe6ec | [] | no_license | okmd/codingblocks | 5106f9c606140e24f3a7eb2c4e393b3e13f126f1 | 07c8805dbe5d455ed1ebb1984949690840342447 | refs/heads/master | 2022-03-04T03:10:19.102060 | 2022-02-05T10:02:00 | 2022-02-05T10:02:00 | 192,055,010 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,413 | cpp | 04-print-LCS-of-three-strings.cpp | #include<bits/stdc++.h>
#define ll long long int
#define limit 200
using namespace std;
ll dp[limit][limit][limit];
void print_dp(int m, int n, int o){
for(int i=0; i<m; i++){
cout<<i<<"th channel"<<endl;
for(int j=0; j<n; j++){
for(int k=0; k<o; k++){
cout<<s... |
3d0dfdbd45fbc193a793e59df954691a4d93d7d1 | 307d3837d31f9e3728af2b62ca51ebf63fe6ec6b | /hall_of_fame/llddang/1058_친구.cpp | a56dd3153f5e0b2667a27d73e6f2915ef2c36ac8 | [] | no_license | ellynhan/challenge100-codingtest-study | 905043497d154b8a7333ca536e536d013f6e7454 | bcdc6d04f13b12ba80b42e066f9d244d7c2cc698 | refs/heads/master | 2023-09-01T14:10:13.481013 | 2023-08-27T14:38:52 | 2023-08-27T14:38:52 | 401,561,230 | 162 | 176 | null | 2023-09-09T14:56:25 | 2021-08-31T03:30:36 | C++ | UTF-8 | C++ | false | false | 751 | cpp | 1058_친구.cpp | #include <iostream>
#include <vector>
using namespace std;
int main(){
vector<string> semiFriend;
vector<string> Friend;
int N; cin >> N;
string tmpS;
int i, j, k;
for(i=0; i<N; i++){
cin >> tmpS;
semiFriend.push_back(tmpS);
Friend.push_back(tmpS);
}
for(i=0; i<N; i++){
for(j=0; j<N; ... |
5ab38be38540a0aded63358db329bbe325f35d09 | a705a17ff1b502ec269b9f5e3dc3f873bd2d3b9c | /include/animationpack.hpp | ed75a456bacb572c111eb4eaaf68128b7b4370c7 | [] | no_license | cantidio/ChicolinusQuest | 82431a36516d17271685716590fe7aaba18226a0 | 9b77adabed9325bba23c4d99a3815e7f47456a4d | refs/heads/master | 2021-01-25T07:27:54.263356 | 2011-08-09T11:17:53 | 2011-08-09T11:17:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | hpp | animationpack.hpp | #ifndef _ANIMATION_PACK_
#define _ANIMATION_PACK_
#include "include.hpp"
typedef struct
{
std::vector<int> mFrames;
unsigned int delay;
}Animation;
class AnimationPack
{
protected:
std::vector<Animation> mAnimation;
public:
AnimationPack();
AnimationPack(const std::string& pScript);
Animation& operator[]... |
7a71dc4dbbcddc666d2977257f303173d76b8eb9 | 330f62380c18771af52c03f6238c25580cf34e81 | /emoxa/Serial.cpp | 0150ac245d58e3132b26177f766b7e8453c17206 | [] | no_license | MiZaRUs/SyMonTSTO | 840bf5e3aed12d6c8a0805f4748d243a01c17659 | 663c9520cfe7e8449fd80ed8db684b70b66f17b6 | refs/heads/master | 2020-12-24T17:44:12.168165 | 2014-07-15T16:31:09 | 2014-07-15T16:31:09 | 5,132,253 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,187 | cpp | Serial.cpp | /**************************************************************************
* emoxa *
* Copyright (C) 2010-2012 by Oleg Shirokov olgshir@gmail.com *
* *
* This program... |
d0fa52dae2b5b2bcf38c5737a5e8f34e6af225d2 | 083ad051981273866006eb777311ba486a06e214 | /testsrc/libjamsat/unit/clausedb/ClauseUnitTests.cpp | 98feadcb1feca9b7e08644cecfb6ac6601ebf768 | [
"MIT",
"X11"
] | permissive | fkutzner/JamSAT | 31d0932f1f0acf7fa63bc86cad83e5fe031fc03b | 226a8b3ba79a5450e96bd4b98015e1f6a187d290 | refs/heads/master | 2021-05-23T05:48:20.160881 | 2020-08-23T11:30:57 | 2020-08-23T11:30:57 | 94,918,870 | 7 | 1 | null | 2018-05-20T19:30:33 | 2017-06-20T17:43:04 | C++ | UTF-8 | C++ | false | false | 16,335 | cpp | ClauseUnitTests.cpp | /* Copyright (c) 2017 Felix Kutzner (github.com/fkutzner)
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, mer... |
fb2db3d46d2787e85b05f8caee0d1914b299e595 | 57bca4c007524303279e3989f088ea5ce60ece5e | /GLRI/code/ModelUser/modeluser.cpp | 8d9654dc2e0b3da9b5a81c7c2f1fd6453102b456 | [] | no_license | mnfienen/beach_gui | f0d4a4ec3d0403f2f5185a183844ba188386f0f1 | 28c77792b297851feb91f867ada54f1ee834bc5b | refs/heads/master | 2020-12-24T18:03:48.000445 | 2011-10-25T17:32:28 | 2011-10-25T17:32:28 | 3,411,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 208 | cpp | modeluser.cpp | #include "modeluser.h"
#include "ui_modeluser.h"
ModelUser::ModelUser(QWidget *parent) :
QDialog(parent),
ui(new Ui::ModelUser)
{
ui->setupUi(this);
}
ModelUser::~ModelUser()
{
delete ui;
}
|
9494d20ffca74dc55b386007fe38399d57fa4d16 | 954d54bafa3b251f8619d6f40525ddd0d46a6a06 | /src/EmonLink.h | 282e7c9b25df9ed679efd39b518098f7c5c7d062 | [
"Apache-2.0"
] | permissive | liamf/photon-envnode | 448051097dca57c2dc0c2b7f4a1f2f929490ccec | cfd2bf4ad4d6f4ef7ef174a3affd00f394e6de18 | refs/heads/main | 2023-03-08T23:14:29.989905 | 2021-02-28T20:50:52 | 2021-02-28T20:50:52 | 328,488,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,042 | h | EmonLink.h | /*
* This app is the emoncms node for inside/outside environment monitors
*
* This class does the comms to emonCMS, both simple provisioning and reporting of data
* it calls our API on the emonCMS server, and fetches some data
* It will retrive our assigned node name, and the API key for posting, provided that our... |
5eebfe28041343bfe872989e6d84e573a023e28e | edcd6e68ebe35c3b2b54382da7a64193d6813590 | /im/udp_message_packet.h | dffe620e7a5199f6aea1f1178022c1f7bcdd2ec2 | [] | no_license | haogukki/op.im | 07a581097bf4a6bb9cbe7d03e264e2c6be2c4757 | 32882e8a648b23630108846ac02799cf36b07b3d | refs/heads/master | 2020-08-23T05:21:47.391141 | 2019-07-29T06:52:19 | 2019-07-29T06:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,934 | h | udp_message_packet.h | /**********************************************************
* Author : Apriluestc
* Email : 13669186256@163.com
* Last modified : 2019-07-12 13:47
* Filename : udp_message_packet.h
* Description : udp 传送数据包格式,以及可靠性传输
* 依据,包括包序号、发送者地址、接收者地址、最后一次发送
* 的时间
* 列化和反序列化接口... |
c0b4e65072627882f8dfe442a44effbd47b9bca6 | ce07185ea8b0cee9fc2c41f053b113a217cc718b | /include/mdds/multi_type_vector_types.hpp | 3899acd3e71405c8cbae3b92710036262b08c37c | [
"MIT"
] | permissive | kleopatra999/mdds | a6bca8b33c02e1b8668a00d3a117db40458d5ce4 | 52c68178550fff9387d754a53ffdd45cb5164796 | refs/heads/master | 2021-01-18T11:47:26.945050 | 2015-06-10T15:57:32 | 2015-06-10T15:57:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,608 | hpp | multi_type_vector_types.hpp | /*************************************************************************
*
* Copyright (c) 2012-2014 Kohei Yoshida
*
* 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
* restric... |
4e288f2f104f7777db308aba0e4381cf9d3bba3c | 71cbc64910807ceab826a6c54e0fea8d96104506 | /Cool3D/Terrain/TerrainPatchRes.h | 2da23c06257f5d03ae2acce50b8e765f29ed949d | [] | no_license | adrianolls/ll | 385580143dfc2365428469a51c220da08bfea8ec | 9c7d480036b1e6f1e3bdffe93b44bd5c70bd944a | refs/heads/master | 2022-12-26T07:06:13.260844 | 2020-09-16T04:36:17 | 2020-09-16T04:36:17 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,459 | h | TerrainPatchRes.h | #pragma once
#include "..\ressys\resrenderable.h"
#include "..\ressys\vertstream.h"
namespace Cool3D
{
class IVertBuffer;
class TerrainEditor;
/** \class TerrainPatchRes
\brief 地形块资源
*/
class TerrainPatchRes : public ResRenderable
{
public:
struct tagHeader
{
TCHAR magic[8];
AABBox box;
int patc... |
cb71a3c469200269bb667cbb42377d7b71aa27c4 | b95fa4a655202713da1abf8c485ec42bd13761f2 | /UI/gamechoicewidget.h | 7bbf08a24d5711f1088f8a1806486a42154b9453 | [] | no_license | Charbel-11/QT-Games | 927c66b2c700723876e03bff0bb69f960e552fe7 | dc33e7fdb1e05958b14aadd84ba87b17a890dd3b | refs/heads/main | 2023-06-16T23:22:25.966956 | 2021-07-15T20:24:34 | 2021-07-15T20:24:34 | 323,632,527 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 872 | h | gamechoicewidget.h | /**
* \file gamechoicewidget.h
* \brief Screen where the user can choose which game he wants
*/
#ifndef GAMECHOICEWIDGET_H
#define GAMECHOICEWIDGET_H
#include <QWidget>
#include <QtWidgets>
#include "../Users/user.h"
class GameChoiceWidget : public QWidget
{
Q_OBJECT
public:
explicit GameChoiceWidget(us... |
c5732c8ef38fc9e8f96a2fb1de3d89a8e88c4045 | f9578d1cce7f2ccdc790127a9016cc1b21e587eb | /mostRendezvous/mostRendezvous.cpp | 0961fe8138f055e97d90ce73c6f11a396f229adf | [] | no_license | romanchom/Parallel2015 | f7c2d57b2602b2f90062eaf794400af03c2b7397 | 068b3d126202a1e12e65a26c638376b58197fd06 | refs/heads/master | 2021-01-10T04:26:43.652527 | 2015-11-29T22:11:11 | 2015-11-29T22:11:11 | 45,177,000 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,867 | cpp | mostRendezvous.cpp | #include "monitor.h"
#include "monitorLock.h"
#include "thread.h"
#include "semaphore.h"
#include <iostream>
#include <random>
#include <queue>
struct carData
{
uint32_t parity;
semaphore crossed;
carData() : parity(0), crossed(0, 1) {}
carData(uint32_t p) : parity(p), crossed(0, 1) {}
};
volatile bool abortServ... |
f6a9065015f53c3a3c6992413c79cd5fd4ff4644 | 37cd7e20852a0a06363cc01b35d8b99945657a2b | /Geeks/Practice/FindPath.cpp | c3927a34f7f6b8e4d343b36bfc717c3ad81797af | [] | no_license | sunilsarode/allc-programs | 46d7b4fba70409dddacef2fdf9af9dc414dfa822 | 4fdf3077e23ee2a2979b1f76706aef96dc112b7f | refs/heads/master | 2023-05-26T02:37:20.163717 | 2023-05-20T16:32:57 | 2023-05-20T16:32:57 | 215,777,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | cpp | FindPath.cpp | #include<bits/stdc++.h>
using namespace std;
int n;
int flag;
int arr[1000][1000];
int vis[1000][1000];
void fun(int i,int j,int d,int n){
//||arr[i][j]!=3||arr[i][j]!=1
if(i<0||i>n-1||j<0||j>n-1||arr[i][j]==0)
return ;
if(vis[i][j]==1)
return;
if(flag==1)
return;
vis[i][j]=1;
if(arr[... |
d595a3a1d0b0e02aa601362ae18b27e2f9bf5189 | 342e57d138fba171f9b21e8aaf73f076f911e397 | /1144.cpp | 618de508e82c2b0408ffd860e3d2d2cd8ddec04a | [] | no_license | RodrigoVazOliveira/uri | e7aaec7bd2731cc5a98f3b106254fabc67a83a8c | 7da8cdbcc68f074ecad6afb19daedeb17dba7d7f | refs/heads/main | 2023-03-10T06:40:12.241685 | 2016-09-13T02:39:30 | 2016-09-13T02:39:30 | 59,378,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 222 | cpp | 1144.cpp | #include <cstdio>
#include <cmath>
int main()
{
int n, i;
scanf("%d",&n);
for (i = 1; i <= n; i++)
{
printf("%d %d %d\n", i, i*i, i*i*i);
printf("%d %d %d\n", i, i*i+1, i*i*i+1);
}
return 0;
} |
65346976e42724cdd0101cd55114ee7d0ad6645c | ab3efe33eabad51ade9338cd40bb80e27530fff5 | /path.cc | 4b7bf1f9c28bec77a1a1de150bcce7b65a1b0801 | [] | no_license | Samnd/Test | 0917ca52b13b6fc8190141ad1355e7c3f77fda1f | 64dd6a1e3a898e53780f4e8106d8d5e15fecd35a | refs/heads/master | 2021-01-23T01:18:48.765675 | 2017-03-23T02:55:44 | 2017-03-23T02:55:44 | 85,899,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cc | path.cc | #include "graph.h"
#include <iostream>
#include <fstream>
#include <stack>
#include <list>
#include <iomanip>
using namespace std;
class path : public graph
{
int *trace;
public:
void DFS(int vertice)
{
for (list<int>::iterator i=AdjList[vertice].begin(); i!=AdjList[vertice].end(); i++)
if (trace[*i] ... |
34e8651762dd743e8c25a6021d03cc7cbb7fa0dd | 570c0c6b35b4f71657215002b0ab3535629a8b55 | /include/display.h | c6bb582b02de76c21cc240ba68b048731cc19999 | [
"MIT"
] | permissive | SRavit1/z80Emulation | c56cfd371797cd264aa0df938f42cafcbea30f65 | 982a0636c8850c02ab47aeaf96beb0283c9b9329 | refs/heads/main | 2023-02-21T11:43:27.999115 | 2021-01-03T05:14:11 | 2021-01-03T05:14:11 | 324,285,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,385 | h | display.h | #pragma once
#include <vector>
#include <iostream>
#include <iomanip>
#include "types.h"
#include "machine.h"
//TODO: Add display for disassembled instructions in memory
void clearScreen() {
static const char* ESC_SEQ = "\x1B["; // ANSI Terminal esc seq: ESC [
std::cout << ESC_SEQ << "2J" << ESC_SEQ << "H" << s... |
3005ba7d191541abbe0c83dbdd52ec248613661b | 042983c6b28fd12d37652bc90390b0e59ee71c4d | /source/gui/QCSParameterRangeWidget.h | 99c3e367f980976936c47a684e805054d7cdaab6 | [] | no_license | cigarfish/latticeCollagen | 26718aae8cb5a9c6ade428d1e6fd47abe3b71348 | 74ac165a2e63f8f0aa7501ce8c6568ac8a407d9e | refs/heads/master | 2020-03-21T23:07:33.057342 | 2018-10-11T16:03:01 | 2018-10-11T16:03:01 | 139,167,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,117 | h | QCSParameterRangeWidget.h | ///////////////////////////////////////////////////////////////////////////////////////
// //
// File Name: QCSParameterRangeWidget.h //
// ... |
9ea436f55f9ffcf19a5bd3df32744318f6adaa7c | 7410b9af6d0fe270cdecfc8db7eebedc85e4c78e | /String/3. Check if string is a rotation of a palindrom.cpp | 57a4c87b1daf2b999f0b3fac3f2c54a8487fe1a0 | [] | no_license | amanjainn/500-Interview-Questions-CPP-1 | f316f630df530dffe2130398169b53a9a572ed4c | 3623d85fb3e88686922a1c3d2d8e9011b8194b61 | refs/heads/master | 2022-11-24T03:51:48.315208 | 2020-07-18T12:52:24 | 2020-07-18T12:52:24 | 278,102,769 | 3 | 0 | null | 2020-07-08T13:53:03 | 2020-07-08T13:53:02 | null | UTF-8 | C++ | false | false | 2,934 | cpp | 3. Check if string is a rotation of a palindrom.cpp | /*
Name : Aman jain
Date: 21-06-20
Question : Check if string is a rotation of a palindrome
Problem Link : https://practice.geeksforgeeks.org/problems/check-if-a-given-string-is-a-rotation-of-a-palindrome/0
Solution to geeksforgeeks :
*/
Method 1- Brute Force (Perform rotation and check for palindrom for n times) ... |
18e617fb18e481800c27a912b9e75a12a9d08d0e | f014a4e644bac6e3adba01a4aeb09a3c05552ac5 | /codevita2017/CodeVita2/a/a.cpp | 8513460a10397802a2c7f795edd857188f5a60e3 | [] | no_license | shashankatgit/tcs-codevita-submissions | b892b8dfe757675720788351d490eaf3f441cfcf | 857f09ca8b4b82da32f69f260ad8236345314a83 | refs/heads/master | 2021-06-21T19:12:23.427747 | 2017-08-17T14:39:01 | 2017-08-17T14:39:01 | 100,612,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,497 | cpp | a.cpp | #include<bits/stdc++.h>
using namespace std;
#define FMacro(x) (1000*x*x)
long long f[1001];
long long F(int val)
{
if(val<=0)
return 1000;
if(f[val]>0)
return f[val];
long long c;
c=FMacro(val);
f[val]=c;
return c;
}
long long sumF(int base, int incr)
{
long long ... |
a81c2143d1dfa313688870411c03552876820019 | 7fa6ff87648fec244c14b0f8e42b34a1508dec1e | /step/math/MinStep.h | 2c5a25ffa77fa49a1bded4326132195b3383c437 | [
"Apache-2.0"
] | permissive | dylanht/Gremlin- | 1971c464d4432eb0ce7e4b2cf0bd8b24e6ab03d4 | 7ab04296dae47cba787094133f3fd92dce329e5d | refs/heads/master | 2021-02-07T13:14:57.793243 | 2019-10-18T19:16:14 | 2019-10-18T19:16:14 | 244,030,447 | 2 | 0 | null | 2020-02-29T19:40:38 | 2020-02-29T19:40:37 | null | UTF-8 | C++ | false | false | 3,080 | h | MinStep.h | #ifndef MIN_STEP_H
#define MIN_STEP_H
#define MIN_STEP 0x60
#include "step/TraversalStep.h"
#include "traversal/Traverser.h"
#include <functional>
#include <omp.h>
class MinStep : public TraversalStep {
private:
std::function<int(Traverser*, Traverser*)> compare;
public:
MinSt... |
3599ecf7a8d26d001051cbcfc1e0d0d64e720a66 | 008ea57afa3a7477e858e6d000761eed81bdb6a2 | /include/ph/Tooling/Tooling.h | 93524f5a5b3212d998e6001d56c30f7d8932bc44 | [
"WTFPL"
] | permissive | Phaeton-lang/Phaeton | 9e248d60e4f5371f5c3015d695d79a64b0f6feb3 | 8e24a7d2124bab3123a82f69b87ebe87fdc67bc5 | refs/heads/master | 2020-09-09T08:29:06.322956 | 2019-08-19T03:26:55 | 2019-08-19T03:26:55 | 221,399,708 | 0 | 1 | WTFPL | 2019-11-13T07:36:10 | 2019-11-13T07:36:10 | null | UTF-8 | C++ | false | false | 609 | h | Tooling.h | //===--- Tooling.h - Framework for standalone phaeton tools -----*- C++ -*-===//
//
// The Phaeton Compiler Infrastructure
//
//===----------------------------------------------------------------------===//
//
// This file implements functions to run Phaeton tools standalone instead
// of running ... |
15eaf7435cb7ed7bf5717b21959cd189c1e880b9 | 95d91f6c306197fb7fa0b6d0b1a6e15da3d17b00 | /include/seqan/store/store_io.h | a85b58c7e54e26fdd5a564c80c624a50e5477c2d | [
"BSD-3-Clause"
] | permissive | seqan/seqan | e11ebd62fdd38e64664717f137f042b5c6580445 | 5efe02f4ac37156152ec8ec5512ce74a163d6675 | refs/heads/main | 2023-08-07T03:25:45.143396 | 2023-07-06T13:30:29 | 2023-07-06T13:37:19 | 6,383,869 | 438 | 201 | NOASSERTION | 2023-09-11T10:21:06 | 2012-10-25T08:02:15 | C++ | UTF-8 | C++ | false | false | 53,694 | h | store_io.h | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2021, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and us... |
fbbf3563dbf8fd8b73ab2db5d4569dd39907c618 | c2e4f3d7cba42bb94153e37e4f427c45751b5227 | /MASengine/BoxMeshClass.h | 2fa3564a771c8df5a7be9e97b250ae03d83ba1d7 | [] | no_license | Old-Fritz/MASengine | 7e6bfd4e9a9bfbab30e84b6e822df8505db589f9 | 1fe3764ead21e454eb045e7aa5c542c82b89f9c5 | refs/heads/master | 2021-03-30T17:10:36.027860 | 2019-09-02T23:17:48 | 2019-09-02T23:17:48 | 94,412,382 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,658 | h | BoxMeshClass.h | ////////////////////////////////////////////////////////////////////////////////
// Filename: BoxMeshClass.h
////////////////////////////////////////////////////////////////////////////////
#ifndef _BOXMESHCLASS_H_
#define _BOXMESHCLASS_H_
//////////////
// INCLUDES //
//////////////
#include "PathManagerClass.h"
#i... |
0eb319885bf406ecfcb3cf2f44230b0dcc469106 | c574f03d2831f3602272766e53c261154ab1c9cb | /TowerDefense_V5/carte.cpp | d68dc6971260571cd1f0f2a3dfc3978bae677826 | [] | no_license | stouf/TowerDefense | e34fa0822352a15073c5255647adee4d5077c276 | 2f660e8759d05ebc3f8f4af20191209f601a6d46 | refs/heads/master | 2021-01-23T12:11:09.162654 | 2012-10-02T17:49:54 | 2012-10-02T17:49:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,385 | cpp | carte.cpp | #include "carte.h"
namespace TOWERDEFENSE
{
Carte::Carte()
{
carte = new ENTITES*[16];
for(int i=0; i<16; i++)
{
carte[i] = new ENTITES[16];
}
for(int i=0; i<16; i++)
{
for(int j=0; j<16; j++)
{
... |
1254de46964580fcfc667304dbf8bd1414c85938 | a960a6f85a2541b57389e6d37f27019aa16120c0 | /test/products_elliptic.cc | 0c05558e7fc95d473d3c6ead7f92dab4661de4c0 | [
"BSD-2-Clause"
] | permissive | BarbaraV/dune-gdt | 979bbaa69bc812a3e4f08b88e6463486c8e46ca0 | 44413f8c7e167f6eb0886922b50e7ac600c463b9 | refs/heads/master | 2020-04-06T03:52:22.659412 | 2016-06-21T13:10:43 | 2016-06-21T13:10:43 | 33,928,798 | 0 | 1 | null | 2015-04-14T11:53:25 | 2015-04-14T11:53:24 | null | UTF-8 | C++ | false | false | 5,233 | cc | products_elliptic.cc | // This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#define DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS 1
// this one has to come first
#include <dune/stuff/tes... |
5b1e8befcb0bcdb72a3ccf576f8f92afc2f74212 | d84852c821600c3836952b78108df724f90e1096 | /exams/2558/02204111/1/final/2_2_712_5520500495.cpp | fcc6f9f3c30cd0056f5d14cec612b2adb1d6b4f5 | [
"MIT"
] | permissive | btcup/sb-admin | 4a16b380bbccd03f51f6cc5751f33acda2a36b43 | c2c71dce1cd683f8eff8e3c557f9b5c9cc5e168f | refs/heads/master | 2020-03-08T05:17:16.343572 | 2018-05-07T17:21:22 | 2018-05-07T17:21:22 | 127,944,367 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | 2_2_712_5520500495.cpp | #include <iostream>
using namespace std;
int CountThe(string str1)
{
int b;
return(b);
}
int main ()
{
string str1,;
int a;
cout<<"Enter your sentence : ";
cin>>str1;
a=CountThe(str1)
cout<<"There are"<< a <<"words of 'the'"<<endl;
return 0;
}
|
cafdf7df05312fd7e178dc8de93e00edb9aa1600 | ae4cf1ced8766e69ba052075011eaedbed5e2646 | /old/lua_model_viewer_wx.cc | ecdef90cc017386d66588883d8a367e25782c9dc | [] | no_license | teenylasers/eggshell | 88cab2edb6a3b75ed7f058abd1ed94402c2e3931 | 7d1239eb1b143b11b5ccd1029d9bacdd601c8e4e | refs/heads/master | 2021-06-06T23:14:03.746716 | 2021-05-05T23:57:17 | 2021-05-05T23:57:17 | 156,042,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,601 | cc | lua_model_viewer_wx.cc | // Copyright (C) 2014-2020 Russell Smith.
//
// 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 Free
// Software Foundation, either version 3 of the License, or (at your option)
// any later version.
//
// This program is d... |
0d806c8cd8f7ea95e65332f48e46c317befadda5 | 5abbf4726ac01481e7170f8525aa02f21cedbf4b | /f_panier.h | 1b5a23e4d4d035d0095c88188b92205787acdd4d | [] | no_license | nivhg/ludopen | 2e42a5e1e707cd39e68f421664983362ca6090b2 | 60f1f00b6df47474659d856c9bd999fc46badc38 | refs/heads/master | 2022-09-24T08:31:38.838541 | 2022-09-23T10:48:21 | 2022-09-23T10:48:21 | 32,996,748 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,198 | h | f_panier.h | //f_panier.h 0.1 <Vincent VICTORIN>
#ifndef F_PANIER_H
#define F_PANIER_H
// En-têtes standards necessaires dans ce fichier en-tete seulement ------------
#include <QtWidgets>
#include <QSqlQuery>
#include <QSqlError>
#include "fonctions_globale.h"
#include "f_popupclesttem.h"
#include "f_imprimerfacture.h"
#include "... |
c28a37082ab39aec0a6d49b5f370521ba8f9c9fa | c8bd7822e51d4bc4407852d6b149a9948e0ed65e | /src/PGPData/Packets/LiteralDataPacket.h | 74e69459def889e26a2af19882cfecc6dba8022e | [] | no_license | dvidja/cryptopglib | 79db9bd023d87865c97a1e4adca97163d640425c | 34f96b59252bf5cf2f794fdd3e304475e6295ef4 | refs/heads/master | 2023-08-28T07:26:35.382400 | 2021-11-02T12:30:28 | 2021-11-02T12:30:28 | 316,333,136 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 820 | h | LiteralDataPacket.h | //
// LiteralDataPacket.h
// cryptopg
//
// Created by Anton Sarychev on 11.8.13.
// Copyright (c) 2013 Anton Sarychev. All rights reserved.
//
#ifndef __cryptopg__LiteralDataPacket__
#define __cryptopg__LiteralDataPacket__
#include "../PGPPacket.h"
class LiteralDataPacket : public PGPPacket
{
public:
Liter... |
0cccc8b36c666509a2473d0104aaba1840c4a76f | d8bc2a9eb86a093174a0a58008cfed3230ef8efa | /include/libphysica/Natural_Units.hpp | c74c5e0ebcde2fbc53089e9dbb64d109dbee7019 | [
"MIT"
] | permissive | temken/libphysica | f5c48c6db2a98d1c590e754f1ecebfebedc69205 | 0b4602328c49b56c7e4a7a349aaf56841ff6ac04 | refs/heads/main | 2023-04-19T00:56:34.529481 | 2023-03-27T11:05:00 | 2023-03-27T11:05:00 | 261,012,574 | 3 | 1 | MIT | 2023-03-27T11:05:01 | 2020-05-03T20:13:14 | C++ | UTF-8 | C++ | false | false | 3,062 | hpp | Natural_Units.hpp | #ifndef __Natural_Units_hpp_
#define __Natural_Units_hpp_
#include "Linear_Algebra.hpp"
namespace libphysica
{
namespace natural_units
{
// 1. SI-prefixes
extern const double yotta, zetta, exa, peta, tera, giga, mega, kilo, hecto, deca, deci, centi, milli, micro, nano, pico, femto, atto, zepto, yocto;
// 2. Units
//... |
6bed0d60da5b89e5aea446bb877b0c8d474daa35 | 709d860f52c2d4b24c187682cdc18488ddcd5c6c | /Packager.h | e345a5e218eb1a280fea441ef4c2556c11400b84 | [] | no_license | ichere01/amazon_warehouse | 8a954adf1a20cb644ced52329dfbd35c8ce5f815 | 5ab15187c38c61541c0081df8562805a44bfbc32 | refs/heads/master | 2021-01-19T10:01:15.211906 | 2014-10-02T18:03:23 | 2014-10-02T18:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,195 | h | Packager.h | // Packager queues will take in orders that have been retrieved.
// The head of each packager is the Order being packaged.
#ifndef PACKAGER_H
#define PACKAGER_H
#include "Order.h"
class Packager{
public:
Packager();
// Add a normal order to the back of the queue
void addNormal(Order toAdd);
... |
e4ca5feb2f480d1cec717bffd875a5fd5e469869 | 214b7dc0e61ea8f34cf6cd1e45329a17b3aa7652 | /kregle.cpp | 34432831ad45631efff3784aa7989b048daf66c8 | [] | no_license | byniuz/firstone | 0c5b01f242f046d7bf17760d1674642635cbfb0b | 5bf8ad1a67266ede41921dfa1df2f9e703af651d | refs/heads/master | 2020-12-07T02:33:12.700317 | 2017-11-06T17:58:58 | 2017-11-06T17:58:58 | 95,485,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,506 | cpp | kregle.cpp | #include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
class Bowles
{
public:
Bowles() : players(take_players()), points(players, 0), bonus(players, 0) {}
bool CheckNumber(const unsigned int TestNumber) const {
// modyfikator const przy funkcji mowi ze funkcja jest stala, czyl... |
45fe1c8f2c83a45b5d7811c44e0a3b46ba340438 | ef7fa92efc6f87db05c8007512990324b29f38e7 | /test2/src/SocialNetwork.cpp | 0448dc093475c92d35aea287f8b3c72084be11a7 | [] | no_license | molodetskaya/test-tsks | 39af13acb15061890970f1ba96877fd1f43e17a0 | 42ad9d06c170090a42e8225891900d98283de02c | refs/heads/master | 2020-05-13T21:19:35.072004 | 2019-04-16T10:02:23 | 2019-04-16T10:02:23 | 181,662,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,255 | cpp | SocialNetwork.cpp | #include "SocialNetwork.hpp"
#include <iostream>
#include <list>
#include <memory>
#include <algorithm>
bool SocialNetwork::AddUser(User user) {
if(user.GetName() != "" && mUsers.emplace(user.GetId(), user).second) {
mUserAges.emplace(user.GetAge(), user.GetId());
mUserNames.emplace(user.GetName(),... |
2daa3ba473ec1aaab5de681f8422a7c6738d5342 | 9bf485f4cadc716bb2005c1c9bf82d790b90aa90 | /Block.cpp | 728715df134cfe50e1fca78e05eeda80248bf1e8 | [] | no_license | Cruosin/HSHL-Breakout | 3aba29d8e955cf8e61a50f68ca49c2aaa27a6bfb | 840c95469429d7bea1cc937298b418cbeb5c11bf | refs/heads/master | 2020-12-24T15:31:25.099203 | 2016-03-15T14:13:56 | 2016-03-15T14:13:56 | 53,609,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | cpp | Block.cpp | #include <QGraphicsRectItem>
#include <QBrush>
#include "Block.h"
#include "Ball.h"
#include "PlayingField.h"
Block::Block(int x, int y){
//reference: https://github.com/MeLikeyCode/BreakoutGameDemo/blob/master/Block.cpp
setRect(x+4,y+4,46,46);
QBrush brush;
brush.setStyle(Qt::SolidPattern)... |
8f5abae0b836f1e046e4da0ff86214c2eef4a40d | 7c4f65dd488bfa8be4660427d189e71d05072fce | /src/seven_segment.cpp | ecc6f9facda676fe53adaf4f4723df8c88cb4bf9 | [] | no_license | raymondkavlick/feabhas | fb54dcd2b43f77baef41f7261dc5f5c08d3bf6ac | cbdd388580ae50949da8422b9d5d569f05a45288 | refs/heads/master | 2020-04-29T04:39:20.961972 | 2019-03-15T22:56:46 | 2019-03-15T22:56:46 | 175,854,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cpp | seven_segment.cpp | #include "seven_segment.h"
#include "Scheduler.h"
#include "Thread.h"
#include <iostream>
#include "Duration.h"
using namespace FeabhOS::Time;
Seven_segment::Seven_segment()
{
blank();
}
Seven_segment::~Seven_segment()
{
blank();
}
void Seven_segment::blank()
{
led3.set();
led4.set();
led5.set... |
bd396a423153c1ea63d6fe51110f9caf3fac57e7 | b703fb2246e6e7490f24ad243364496795955d2a | /CPP/Podstawa.hpp | e7ce53cf3ac0c94982fcb7d2add249134f9159c0 | [] | no_license | Gejolasz/Age-of-GLUT | d8eb6e44673e0f807174b264788957152537bd25 | 7e4513a6d155730b15143408e0bcfd701b7ebb7a | refs/heads/master | 2021-01-17T10:19:00.220795 | 2016-06-01T08:44:33 | 2016-06-01T08:44:33 | 59,285,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | hpp | Podstawa.hpp | #ifndef _PODSTAWA_HPP
#define _PODSTAWA_HPP
#if defined __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
//#include <GL/gl.h>
//#include <GL/glu.h>
#include <GL/freeglut.h>
#endif
#include <math.h>
#include <iostream>
class cPodstawa
{
protected:
int HP;
int Dmg;
in... |
a1f03c96fcc85aa08f981a58549a21680908e9b1 | edbd07e3bca04e6cc320c701407dfb59db88f52d | /serials.ino | 692d07c47281892d838ea2a2ba93e47f173d2e64 | [] | no_license | HatchPrototype/HatchSwitch_RGB_ESP | df80f31d69714f7d6f1cc747a8385b40914363ea | 3b87290fc625635cd41c87894d40579bd88840fe | refs/heads/master | 2020-03-22T00:01:04.961740 | 2018-06-30T05:08:05 | 2018-06-30T05:08:05 | 139,219,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,042 | ino | serials.ino | byte buff[13];
void writeState(byte SW1,byte SW2,byte SW3,byte SW4)
{
buff[0] = 0xCC;
buff[1] = 0x77;
buff[2] = 0xCC;
buff[3] = 0x77;
buff[4] = 0xDC;
buff[5] = 0x01;
buff[6] = 0x06;
buff[7] = 0xAC;
buff[8] = SW1;
buff[9] = SW2;
buff[10] = SW3;
buff[11] = SW4;
buff[12] = calcCRC();
Serial.wr... |
0ece84448458560ae8cdc08c08d3e13189248d02 | 824393d3a158860c66a31cdd50ba07972859912e | /std.cc | 56781bc0879f19864226d05dc969dc4430ef825e | [] | no_license | gcgeng/My-Code | 3cc661640e411aec9545a400fcbfbabda4d3a567 | fb41fecc65b0a79a2154e6a70d659010bc3aa17d | refs/heads/master | 2023-08-31T01:52:56.441414 | 2017-05-13T15:14:02 | 2017-05-13T15:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,541 | cc | std.cc | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
const int maxn = 1000000 + 100;
struct edge {
int to, val, next;
edge(int a, int b, int c) : to(a), val(b), next(c) {}
edge() {}
} e[maxn << 2];
int n, m, xx, cnt = 0;
int a[maxn], head[maxn], fa[maxn], ans[maxn], dist[maxn];
void add_ed... |
61415a6ac6d5bc048eeb87dee2f66294af712097 | 652d0577d5f9716423cf7f1aae116a7bfd190c6f | /Device_mbed/LASSwithLoRa/mbed/InterruptManager.h | 4959a6469984671c932b361e717b4560014637b8 | [
"MIT"
] | permissive | LinkItONEDevGroup/LASS | 714cf74a07840161ce6a3cd9a9ac525a3d5d88d3 | f06bd202f37f2a8fafe932feabcb119a292f016e | refs/heads/master | 2023-04-30T09:03:36.609950 | 2023-04-27T00:03:26 | 2023-04-27T00:03:26 | 38,099,296 | 174 | 108 | MIT | 2021-02-05T10:09:21 | 2015-06-26T08:14:22 | C | UTF-8 | C++ | false | false | 4,207 | h | InterruptManager.h | #ifndef MBED_INTERRUPTMANAGER_H
#define MBED_INTERRUPTMANAGER_H
#include "cmsis.h"
#include "CallChain.h"
#include <string.h>
namespace mbed {
/** Use this singleton if you need to chain interrupt handlers.
*
* Example (for LPC1768):
* @code
* #include "InterruptManager.h"
* #include "mbed.h"
*
* Ticker flipp... |
a947b45c28a653da0b77ad5258aab635351079b4 | 2fb01c80f9e46300671994c40135f31b5a62bc9a | /DeliveryCompany.cpp | 2dfc7ad2190eef9fd08f20f1d08c13d901ff5c59 | [] | no_license | AnElectricalEngineer/Intro-to-Systems-Programming-HW5-public | a6b701ab7fc5f19c234fe05054b7ddcddd1011dc | ad612040c6a594440a354bc3ae2920f9b9796717 | refs/heads/main | 2023-01-06T17:21:24.375420 | 2020-11-08T19:00:49 | 2020-11-08T19:00:49 | 311,133,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,668 | cpp | DeliveryCompany.cpp | #include "DeliveryCompany.H"
#include <iostream>
//*************************************************************************************
// Function name : DeliveryCompany
//
// Description : Constructor for DeliveryCompany class
//
// Parameters: 1) Initial Capital (Dollars)
//
// Return value : none
//************... |
1e42f4e55aeced3004c17bb8b23716e8a543ff0e | 1e9e12e3072cf0151649fe0ef03e92cf5b0d4b58 | /TP2/TP2/Operaciones_binarias.h | 1b1ed3bbd7259402b9a08a215cf458e8c8e2246c | [] | no_license | fedee96/Practico-2 | 9d4d5dbe296d05397b68c6fb3f30ad1a95597907 | fee826a8016ca02e511c00bd9344af163ed15571 | refs/heads/master | 2021-04-06T19:01:04.395427 | 2018-03-14T23:51:47 | 2018-03-14T23:51:47 | 125,287,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | h | Operaciones_binarias.h | #pragma once
#define AND(x,y) (x & y)
#define OR(x,y) (x | y)
#define DER(z) (z>>2)
#define IZQ(z) (z<<2)
class Operaciones_binarias
{
public:
Operaciones_binarias();
~Operaciones_binarias();
int andBi(int x, int y);
int orBi(int x, int y);
int der(int z);
int izq(int z);
}; |
c68225e5003d3d1466c84bf7d3272bff23ba0f0f | 42f78a85aeff7ad26875ca6378a971f385e85eb8 | /source/UI.hpp | fda6378ad4819339140f6cfbf6bba0a5b3cdfba8 | [
"Zlib"
] | permissive | kwalkerxxi/scripthookvdotnet | 829ef4af095d7a847fe306cd1e1cfcfc244b4169 | ae6780a2e187535594e3dd714541d2380ccf7854 | refs/heads/dev | 2020-12-25T09:58:02.426386 | 2015-07-24T08:13:55 | 2015-07-24T08:13:55 | 40,096,991 | 1 | 0 | null | 2015-08-03T00:10:05 | 2015-08-03T00:10:04 | C++ | UTF-8 | C++ | false | false | 1,241 | hpp | UI.hpp | #pragma once
#include "Vector3.hpp"
namespace GTA
{
public enum class Font
{
ChaletLondon = 0,
HouseScript = 1,
Monospace = 2,
ChaletComprimeCologne = 4,
Pricedown = 7
};
public ref class Notification
{
public:
void Hide();
internal:
Notification(int Handle);
private:
int mHandle;
};
pub... |
2a83bfd8ddca60c8187bad6f7e7d868bcb0893ef | 1629f5c5749e05740d55c8a6c01d3663492b60b8 | /343/provided_code/binarysearchtree.cpp | a19b9372b0dee5c172d4438e88ce0cfcccea5888 | [] | no_license | RyanCPeters/Educational_Resources | 70006e580422d25e43e112f3d0442d9cfb831317 | 31968e95d23a6e2ebcb226ead5861bc1fa93b42a | refs/heads/master | 2021-05-11T08:11:49.574264 | 2018-03-12T17:47:44 | 2018-03-12T17:47:44 | 118,041,684 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,665 | cpp | binarysearchtree.cpp |
// stub file
// provided so that the BinarySearchTree can be compiled
// none of the functions are implemented
template<class ItemType>
BinarySearchTree<ItemType>::BinarySearchTree() {
//ctor
}
template<class ItemType>
BinarySearchTree<ItemType>::~BinarySearchTree() {
//dtor
}
template<class ItemType>
Bina... |
c413972c45890bf2fcd50b0a8094f919095e0aa1 | e32710c56e37207ba7129f0fcec213b34108cbec | /retroshare-gui/src/util/HandleRichText.cpp | 883cb6029da750cb514e84218c6e979390452c0b | [] | no_license | sirjenster/RetroShare | 963f56b5662d3c41bf8421124c220c36dc6a38f1 | 47328a4ec9f1b26f84081cd674ced8e5046458cc | refs/heads/master | 2021-01-18T10:33:27.768840 | 2015-11-19T18:11:02 | 2015-11-19T18:11:02 | 42,929,480 | 2 | 0 | null | 2015-09-22T11:24:23 | 2015-09-22T11:24:23 | null | UTF-8 | C++ | false | false | 32,450 | cpp | HandleRichText.cpp | /****************************************************************
* This file is distributed under the following license:
*
* Copyright (c) 2010, Thomas Kister
*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.