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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
547fa1f431a1471afb3b8242d75d4914fece5297 | db9cc680a60997412eae035b257cc77efbcdcb06 | /py3/leetcodeCN/hot_100/215. 数组中的第K个最大元素.cpp | 54036a0b027816894a3c8fb50184ba8c5b06e058 | [] | no_license | Azson/machineLearning | 9630b62c73b2388a57c630644dae3ffa8e4db236 | 35662ddf39d322009f074ce8981e5f5d27786819 | refs/heads/master | 2022-05-06T07:03:23.543355 | 2021-08-20T14:57:25 | 2021-08-20T14:57:25 | 179,935,258 | 3 | 3 | null | 2019-11-04T14:26:51 | 2019-04-07T08:07:08 | Python | UTF-8 | C++ | false | false | 598 | cpp | 215. 数组中的第K个最大元素.cpp | # include <cstdio>
# include <stack>
# include <vector>
# include <algorithm>
# include <queue>
# include <cstring>
# include <map>
using namespace std;
class Solution {
public:
int findKthLargest(vector<int>& nums, int k) {
priority_queue<int, vector<int>, greater<int> > pqe;
for (auto & x : num... |
5c560d1e4cced9ee139bfea0c2083f28b0c9225e | 6a55721e06c13b6ae3c0aad722ac84341cecd346 | /mouse.h | e0b72eb5b685d394283702b0cb640152ae677c69 | [] | no_license | abirbh1/mouseandcat | bea6ca4bfbf459bd79ab72d9c94beff5a83aec1b | f67c2e3a809105124cd8e568e9027906d902a0cd | refs/heads/main | 2023-05-01T05:28:29.207383 | 2021-05-22T10:20:57 | 2021-05-22T10:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | h | mouse.h | #ifndef MOUSE_H
#define MOUSE_H
#include "map.h"
class Mouse : public Map
{
public:
Mouse();
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void setPos(int x,int y);
void move();
void setDirection(int a);
private:
int ... |
5ad86af0aef55801df2634058646ee425efaab36 | ae92a9930a03e7283039c9ce0f7cd809a205f859 | /Musume/Floor.cpp | 786601408a103333d34a5c6e1dd77e5568e07d9f | [] | no_license | Warhammer4000/OpenGLMusume | 07f4d4659d60367e78fe0927a45969b7e1b5beeb | 5c9550187a47e2707c019a9272d72ac6b99a4d35 | refs/heads/master | 2020-12-31T04:55:38.901585 | 2016-12-28T01:09:21 | 2016-12-28T01:09:21 | 76,187,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,940 | cpp | Floor.cpp | #include "Floor.h"
#include <GL\glut.h>
#include "Texture.h"
#include "TexturedCube.h"
#include "Globals.h"
#include "SolarSystem.h"
#include "BomberMan.h"
#include "Fan.h"
#include "SimplePortrait.h"
#include "BatmanLogoFrame.h"
#include "FlashPortrait.h"
#include "HumanModel.h"
#include "Tank.h"
#include "CristmasTre... |
be92b1f235be122876c056c72839d0a36448bad9 | fa38d45e335bfdeb0e64d4f008001f9ef8151786 | /c++/20131231/c++day02/c++day02/const.cpp | 1594c60f7344a2efab46c49379c99ea744328d44 | [] | no_license | ipad4/MyDevelopment | e4ddfcb7baa17fe70897e5d73b62151620421795 | 5c4d9cb3afbb87717d08ac3230ada186f45e1fd3 | refs/heads/master | 2021-01-24T03:19:38.441710 | 2016-06-27T09:49:25 | 2016-06-27T09:49:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | const.cpp | //const 修饰
#include <iostream>
using namespace std;
int main(){
const int i=99;
//i=100; //常变量的值不能改变
int g=99;
int gg=88;
const int *pg=&g;
//*pg = gg; //不能通过pg 操作对应的内存
pg=≫ //但是可以改变pg的指向
/* 引用和数组的 基本实现 */
int f=123;
int ff=456;
int* const rf=&f;... |
0cfb61e2411628eaaa2ea8f9146741ace1ec3760 | d9d78c2fe5e397cd6fb5310a3d85881952b952a3 | /GameEngine2D/Entity.cpp | 460d2496a5bdb57500601bb4cea31b087961110a | [] | no_license | GabrielPlante/GameEngine2D | 194617be1822aa6e7c1cc8768e626ca492a31faa | ffd7f1bd2726f52e306be51fdbcfdabb686837d0 | refs/heads/master | 2023-02-07T07:02:50.709866 | 2020-12-24T23:01:09 | 2020-12-24T23:01:09 | 204,181,953 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | Entity.cpp | #include "Entity.h"
namespace ge {
IDGenerator<uint32_t> Entity::idGenerator = IDGenerator<uint32_t>{};
Entity Entity::Create(TransformComponent&& transform) {
//Create the entity
Entity entity;
//Add the component handler
ComponentHandler componentHandler{ entity };
Storage<ComponentHandler>::addCompone... |
93fbec2c460310fb38c39e0de3b559280a91ad09 | fd4b42eb8a59fad84d899dbbafd86396d63c61c5 | /sources/Frontend/lexer/identifiers_table.hpp | 88557ede64026c91159f17f4bae44ab7bf5847e1 | [
"Apache-2.0"
] | permissive | MIPT-ILab-Compilers/mipt-scheme-compiler | 7440d83bdcf7b404e5e7e06c1036f240a45079bd | c14fd5fb79324a42cfc0450c196f3ebdfaba4edd | refs/heads/master | 2021-05-29T16:59:54.245732 | 2015-10-30T10:01:05 | 2015-10-30T10:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | hpp | identifiers_table.hpp | /**
* @file:identifiersTable.hpp
*/
/**
* Copyright 2012 MIPT-COMPILER team
*/
#pragma once
#include <map>
#include <string>
namespace parser
{
class IdentifiersTable
{
private :
std::map<int, std::string> map_table_priv;
int top_priv;
public:
IdentifiersTable()
: map_table_priv()
... |
eef4766fd9afbaac7edf1ce7cd2a12349971579f | 55d13d3e41d8651facf7c26d60de5e8b8ace4be5 | /ffNtuple/plugins/ffNtupleElectron.cc | c21b013ff571e617c5a11530351383726fbca5ad | [] | no_license | phylsix/Firefighter | e8ab5fdbde2dab341a67740aa62c5710683e9bab | 8f1d8d6e59b443a8216c70ebdd334b48945aeed0 | refs/heads/master | 2020-12-19T18:31:14.312639 | 2020-08-04T00:35:45 | 2020-08-04T00:35:45 | 235,812,142 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,536 | cc | ffNtupleElectron.cc | #include <numeric>
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
#include "DataFormats/Math/interface/LorentzVectorFwd.h"
#include "DataFormats/PatCandidates/interface/VIDCutFlowResult.h"
#include "Firefighter/ffNtuple/interface/ffNtu... |
f22b8f825e6813600bdfe24da27e947c7817c1ce | c33f78d605f5bc763d953c97d3c899fc1f9b2a52 | /Proyecto/Area.cpp | dcbf0328d2c87e640803ecba190f220ca2a6c19f | [] | no_license | kVLU10/Gestor-de-Empresa | 247cd5b59489c4f715c25d0b8818b112e904e465 | cc3d2e7c65d63259fc2cc2b0b4004ee28fd32ffc | refs/heads/master | 2023-06-16T09:03:37.691137 | 2021-07-09T00:55:19 | 2021-07-09T00:55:19 | 367,974,499 | 0 | 2 | null | 2021-06-17T17:35:40 | 2021-05-16T20:03:29 | C++ | UTF-8 | C++ | false | false | 101 | cpp | Area.cpp | /**
* Project SalesSolution
*/
#include "pch.h"
#include "Area.h"
/**
* Area implementation
*/
|
db2834e8e1cb46fb89369c72117ae3bfd74cfd35 | 8f6f816f91dac0ea4bb94c8f6a07aae67da9d2bb | /BEA_EA_BO/limbo/model/gp.hpp | facfddf298cc08d741981ee3abcc0c726adae1a7 | [] | no_license | langongjin/BEA | 069f8f763302b553cd5bcb500a670284d7132655 | b2e2cf2d3ab0addec1dcd65db6109f2d8b147f40 | refs/heads/master | 2023-01-19T23:27:33.277060 | 2020-11-30T11:29:38 | 2020-11-30T11:29:38 | 297,337,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,630 | hpp | gp.hpp | //| Copyright Inria May 2015
//| This project has received funding from the European Research Council (ERC) under
//| the European Union's Horizon 2020 research and innovation programme (grant
//| agreement No 637972) - see http://www.resibots.eu
//|
//| Contributor(s):
//| - Jean-Baptiste Mouret (jean-baptiste.moure... |
4c5b60b2187010d9ea41b69a9d2b73bf9c439b48 | b62eadc0e91874165acd809b799192fb00f232e4 | /Pokemon/Datas.cpp | 406512e9a5ef353d070d0be32029c20d33ef2d43 | [] | no_license | molinadejan/Pokemon-Gold | a02de2d3561f6fae77741144dfadbf523f0c4afa | 1ef0f6051d47c46c731303867f006b8b032d1abc | refs/heads/main | 2023-07-13T12:44:28.111619 | 2021-08-21T08:37:21 | 2021-08-21T08:37:21 | 389,046,906 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,178 | cpp | Datas.cpp | #include "Datas.h"
#include "PokemonCalculator.h"
#include "DataLoadManager.h"
#include "MyUtils.h"
Tile::Tile()
: pos{ 0, 0 }, tilePos{ -1, -1 }, moveable(0), interactID(-1), isPokemon(0) { }
Map::Map()
: ID(""), music(""), worldPos{ 0, 0 }, mapSize{ -1, -1 } { }
Map::Map(string _ID, int x, int y) : ID(_ID), mu... |
ce584f66d7beb6fb257e499da8ffbca625687131 | 06da4550b187a16044d24ed9c5a676cb9de2496c | /vpn/openvpn/openvpnauth.cpp | 99c4a5e4db80a5700fda1e4205ffbb73d990e06f | [] | no_license | KDE/plasma-nm | 26a2653de3879622ffd3577547342c5fb0d9e93e | 6095e17c34cc140911a84e98fe5a817a3b883bde | refs/heads/master | 2023-08-17T10:34:15.701670 | 2023-08-17T02:15:48 | 2023-08-17T02:15:48 | 42,725,602 | 44 | 43 | null | 2023-03-29T01:16:38 | 2015-09-18T14:00:29 | C++ | UTF-8 | C++ | false | false | 6,052 | cpp | openvpnauth.cpp | /*
SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net>
SPDX-FileCopyrightText: 2013 Lukáš Tinkl <ltinkl@redhat.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "openvpnauth.h"
#include "passwordfield.h"
#include <QCheckBox>
#include <QFormLayout... |
d25aabe0cd002fe74db78dc3bc182fad81bc087c | ac7c2e64fa66ec7aecc9cf810cb2bf013fd412c0 | /Baruch_C++/Level_4/Section_2_5/Ex_2_5_3/Source.cpp | bb56322c2c1efdc92bd30c07ff2c0bd3e5e2a152 | [] | no_license | mistletoe999/cpp-samples | e7219fcf7dbfe5ddc81cb527f08cd9d55149774a | 7b5cb634c70d3de476c0d43e15f7a045458dc925 | refs/heads/master | 2020-12-25T15:40:30.402680 | 2015-06-23T04:32:50 | 2015-06-23T04:32:50 | 40,014,976 | 0 | 1 | null | 2015-07-31T16:43:13 | 2015-07-31T16:43:10 | C++ | UTF-8 | C++ | false | false | 1,982 | cpp | Source.cpp | // Ex_2.5.3: Demonstrates the use of dynamic memory alocation
// for classes
// Implements an Array container class
#include "Point.hpp"
#include "Array.hpp"
int main() {
// Testing the default constructor
cout << "Testing the default constructor" << endl;
cout << "=======================================... |
6c25c94a729a9b40225bfa0406cd8ea47c3f7cf7 | 5e8be2ac3fefbdb980b2b107c3f74b32aea300e2 | /src/vt/objgroup/dispatch/dispatch_base.h | 8019d4e7b2a1143b2dfcc4f3648d2e443437315a | [
"BSD-3-Clause"
] | permissive | YouCannotBurnMyShadow/vt | 23b73b531f0b9bdfcea41eb5b73c903805bd5170 | 8bbcce879f6dd5e125cf8908b41baded077dfcbe | refs/heads/master | 2023-03-18T22:16:32.288410 | 2021-01-11T20:37:31 | 2021-01-11T20:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,137 | h | dispatch_base.h | /*
//@HEADER
// *****************************************************************************
//
// dispatch_base.h
// DARMA Toolkit v. 1.0.0
// DARMA/vt => Virtual Transport
//
// Copyright 2019 National Technology & Engineering Solutions of... |
699c79dfcf508c8bfa9b75c225d8ef3c2b9accca | dbf21cea1f44b9678f775898241cc80b09aaac85 | /Source/FacebookArena/ArenaActorInterface.h | c2b023720e4a8ccfc16a490802b57753586b5df8 | [] | no_license | Batname/UE4_FacebookArena | 8c7433c7e9178a7bc389608965a08906bb778d6e | dffcda39fa80888c47870abbaad8d158f0e2d8c5 | refs/heads/master | 2021-01-01T16:52:16.178294 | 2017-07-24T14:54:10 | 2017-07-24T14:54:10 | 97,934,435 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | h | ArenaActorInterface.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "ArenaActorInterface.generated.h"
/**
*
*/
//UCLASS()
//class FACEBOOKARENA_API UArenaActorInterface : public UObject
//{
// GENERATED_BODY()
//
//
// ... |
afcc9139724fb036c3e5a2fca381201b1a8f4619 | 5933fd7859384ff5ae9cf6a1bf26a4139f1243b4 | /ONP.cpp | df86b918b67a201f527bcddb9f14d8f4f0947401 | [] | no_license | ayanbasak13/C-Basic-Codes | b48f1910c9cb142b84217fc2b3b84dd46b5b1c84 | fc5f6e99cd28b153c60230206fb20e0843acdc1c | refs/heads/master | 2020-04-14T07:56:50.768969 | 2019-01-01T09:08:25 | 2019-01-01T09:08:25 | 163,725,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 788 | cpp | ONP.cpp | // ((a-b)*(z+x))
// ab-zx+*
#include <iostream>
#include <bits/stdc++.h>
#include <string>
using namespace std;
int main()
{
int t;
string str;
cin>>t;
for(int c=0;c<t;c++)
{
cin>>str;
queue <char> q;
stack <char> op;
for(int i=0;i<str.length();i++)
{
if(((str[i]>='a') && (str[i]<='z')) |... |
007e327d10e06520f57b8f2c9d2244e714298626 | a92a96fe76a90f335227676f4ac963c71f5211aa | /Hanoi.cpp | a778374d297e984885b754b68013727783e32dde | [] | no_license | ClayMStamper/AI-4346---Final-Project | acbaf1f0ed3fd26810097c770abf4d5eb8f7065f | 9451b10275712271698bb3d9c49454ac367e77b2 | refs/heads/master | 2020-09-15T13:36:57.474711 | 2019-11-25T15:52:21 | 2019-11-25T15:52:21 | 223,462,001 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,987 | cpp | Hanoi.cpp | //
// Created by clays on 11/23/2019.
//
#include "Hanoi.h"
#include "AStar.h"
#include "fstream"
Hanoi::Hanoi(int pegCount) {
currentNode = Node();
goalNode = Node();
ofstream file;
file.open("Results.csv");
file << "Algorithm,n,Heuristic,#Nodes Generated,#Nodes Expanded,Execut... |
b63f3bceaf9ab930311f77d4de622c89325e2ee3 | 7c18ac19da207835cfde965b2121571453f9a54e | /socket_lookahead.cpp | 2062237e135ef058ceb3cce82c5be9c6912f4471 | [] | no_license | mrev11/mitm | 4e254bb38054a7535edb0af82f0d5ca6ae55555d | 2c1bdd682728c99a21599599fb81dbbe553c8184 | refs/heads/master | 2022-04-27T03:09:07.055833 | 2022-04-02T15:01:47 | 2022-04-02T15:01:47 | 140,145,702 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | socket_lookahead.cpp |
#include <sys/socket.h>
#include <cccapi.h>
void _clp_socket_lookahead(int argno)
{
CCC_PROLOG("socket_lookahead",1);
int socketfd=_parni(1);
unsigned char c=0;
recv(socketfd,&c,1,MSG_PEEK);
_retni((int)c);
CCC_EPILOG();
}
//vajon a windowson van-e ilyen?
//visszaadja a socket-bol olv... |
eadbddaaf40388744e8a4aba6d1105de87e6330b | 9222f818abb402120fb24f61ac8ac24c483de393 | /question/populating next right pointers in each node.cpp | 367ea458f5b398a7782c58a8e6e89c501c9983c0 | [] | no_license | bobzhw/question | 56fd04d17f7607376446582ed37fc330f011594d | 4d4bcb673e414e16ce72bd4609bedc9a7ad31e14 | refs/heads/master | 2020-05-23T20:59:22.185165 | 2019-06-04T13:31:49 | 2019-06-04T13:31:49 | 186,942,633 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 744 | cpp | populating next right pointers in each node.cpp | #include<iostream>
#include<queue>
using namespace std;
// Definition for binary tree with next pointer.
struct TreeLinkNode {
int val;
TreeLinkNode *left, *right, *next;
TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {}
};
class Solution {
public:
void connect(TreeLinkNode *root) {
queue... |
ab069ca28c2340d265a80d7280977c9eb67154ba | d5d12943ff123a4bab18ef3cb495de2ffa3354a5 | /seABaca/stdafx.h | d263a148558e746c2b74ed99312639479fb42bfd | [] | no_license | ranvli/seABaca | db7188cf42394d383dd61519c02ea06d1b88b12e | 8e3aa904fb3b48855463c783a3aa53cd148b28a6 | refs/heads/master | 2021-01-13T04:09:02.232037 | 2017-01-02T21:06:33 | 2017-01-02T21:06:33 | 77,861,771 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,130 | h | stdafx.h | // stdafx.h: archivo de inclusión de los archivos de inclusión estándar del sistema
// o archivos de inclusión específicos de un proyecto utilizados frecuentemente,
// pero rara vez modificados
#pragma once
#include <iostream>
using namespace std;
// TODO: mencionar aquí los encabezados adicionales que el programa nec... |
c5acca89a5edb3e0090c155514a84135fda5416c | 30d51127475050448ad914d7d7f43ffa3f60106b | /Library Management System/main_window.h | b09b45433d99afaeb8154d8bbdd4445c9f7c12cc | [] | no_license | cmeza432/Library-Management-System | f4d70254ccaf6372881215a6744b9c02ea61b1f6 | 56cdf309d9693d2a37346e4b943037f9d9eac085 | refs/heads/master | 2020-04-05T09:26:53.091831 | 2018-11-08T19:20:59 | 2018-11-08T19:20:59 | 156,757,033 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | h | main_window.h | #ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <gtkmm.h>
#include "library.h"
#include "controller.h"
#include "view.h"
class Main_window : public Gtk::Window
{
public:
Main_window();
virtual ~Main_window();
protected:
void on_list_all_click();
void on_add_publication_click();
void on_check_out_click... |
8a66b3e98028085571d3462311e24cb5e3ca96fd | 44b99504cd91e9d88f7fa637140e830b4a42f769 | /ace/ace/INET_Addr.cpp | 7f07bd9635d7cb4a75d171033999c96d5e1fb220 | [
"BSD-3-Clause"
] | permissive | dariuskylin/utilityLib | ea847988e0c06f63657238f8405775c4ae419348 | 4afc4b016c130982e26c452028114a1d78619a57 | refs/heads/master | 2021-01-19T07:46:06.817498 | 2014-11-01T07:32:20 | 2014-11-01T07:32:20 | 4,357,328 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,530 | cpp | INET_Addr.cpp | // INET_Addr.cpp,v 4.62 2001/08/24 14:11:03 shuston Exp
// Defines the Internet domain address family address format.
#include "ace/INET_Addr.h"
#include "ace/Log_Msg.h"
#if !defined (__ACE_INLINE__)
#include "ace/INET_Addr.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(ace, INET_Addr, "INET_Addr.cpp,v 4.62 2001/08/24 14... |
e2b9e221007b0df0c8c3b0095c44403156dcb9eb | b99c97887220c75c90465444b783455f873b22d6 | /PWS2018Sol/PWS2018/food.cpp | 99964ad8d17bc5c476859ef32b48088148c47998 | [] | no_license | Tiagotje/PWS2018 | 531cd261ecd65de15a161e25670a761e59629060 | d942abe6804b84afa3c4ab4a02348dfc204cf45e | refs/heads/master | 2020-03-27T10:52:39.641643 | 2018-12-02T11:26:33 | 2018-12-02T11:26:33 | 146,451,085 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | cpp | food.cpp | #include "food.hpp"
#include <Box2D/Box2D.h>
#include <SFML/Graphics.hpp>
#include <iostream>
#include "physics.hpp"
#include "main.hpp"
#include "creature.hpp"
Food::Food(b2Vec2 pos)
{
p = pos;
shape = sf::CircleShape(10 * r);
shape.setOrigin({ 10 * r, 10 * r });
shape.setFillColor(sf::Color(200, 30, 30));
b... |
1811a3cdd6cf7c020be54e4619bccb3c3d0b65e9 | 20049d88e2e8f0e1904efc561103c1d84d21507a | /baboshina.elizaveta/A1/rectangle.cpp | d0c592611aa8b4dba17558f582cdb64342d7243b | [] | no_license | gogun/Labs-for-SPbSPU-C-course-during-2019 | 5442a69152add3e66f02a7541e8dc8dd817f38a1 | 16ade47b859517a48d0fdb2e9704464bce4cc355 | refs/heads/master | 2022-01-09T16:02:54.728830 | 2019-06-06T11:06:33 | 2019-06-06T11:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | cpp | rectangle.cpp | #include "rectangle.hpp"
#include <iostream>
#include <cassert>
Rectangle::Rectangle(const double width, const double height, const point_t pos):
width_(width),
height_(height),
center_(pos)
{
assert((width > 0) && (height > 0));
}
double Rectangle::getArea() const
{
return height_ * width_;
}
rectangle_t ... |
b8abcbd586c36cd55a523e9179c261258ba574bf | 4346566fbb14c5dc15759299ace6dd7dfe3c239d | /src/punkt.hpp | 3ee908d5c84458c325100718555313c8eacb77f7 | [] | no_license | pawelstrzelczyk/TSP_ACO | f46dc2badac11f8f598e3e81ffe2e834fe253aac | ece6376abb816320f26aa3b7357ff160fe2e8086 | refs/heads/master | 2023-02-26T03:15:50.132769 | 2020-12-18T00:51:35 | 2020-12-18T00:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 583 | hpp | punkt.hpp | #pragma once
#include <queue>
class punkt
{
public:
class pkt
{
private:
int x;
int y;
int id;
public:
bool flag = false;
void setX(int X)
{
this->x = X;
}
void setY(int Y)
{
this->y = Y;
}
void setId(int id)
{
this->id = id;
}
int getX()
{
return this->x;
}
int getY()... |
0466dfad4fe88bdd507b8ac3f3c2b5da1bd3a2dd | 2dc321b61f45da0353d22fc3908a93fc00456e90 | /baekjoon/1780_divide_conquer.cpp | a65024986f15cc6fd78e8352153822a9787bb1c9 | [] | no_license | goo-gy/Algorithm | 6d7e9c65e6791ebe3d78bba8b366552d4b04e59a | e22373dead2dfe218effea9b0e61b65c8e167019 | refs/heads/master | 2022-09-29T10:21:30.744970 | 2022-09-16T15:04:05 | 2022-09-16T15:04:05 | 365,225,284 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,355 | cpp | 1780_divide_conquer.cpp | #include <iostream>
#include <vector>
#include <cstring>
using namespace std;
int N;
vector<vector<int>> total_paper;
int counts[3];
#define NOT_SET -3
#define MIXED -2
int divide_and_conquer(int row, int col, int size) {
if(size == 1)
return total_paper[row][col];
int unit = size/3;
bool is_set = true;... |
be45ebbf5bc57bd486124a8124df3a018893ab81 | 09b65166716593347044ad346d5f4b9d5847f88f | /Lab 4/Lab 4 - Paradigms/lib/SubsetSumSolverDecPis.cpp | fc10dd44704def748edfd4a6d60e2cf378ed83e5 | [] | no_license | BrunoCAF/CES12 | d0b25e47affb7c48abb3b3065a825f5bf0fdece0 | 0f89a1fd76a599b10844c5ef0895a6716655db24 | refs/heads/main | 2023-08-02T11:08:47.348819 | 2021-09-25T22:14:45 | 2021-09-25T22:14:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | SubsetSumSolverDecPis.cpp |
#include <SubsetSumSolverDecPis.h>
bool SSPSolverDecPis::solve(const std::vector< long> &input,
long value, std::vector< char> &output) {
output.resize(input.size(),0);
std::vector<int> int_output;
int_output.resize(input.size(),0);
std::vector<long> input_copy;
... |
c05c436dd6b1e3c5ea0bff9fb6c365f3684b325b | 2e3b0f51c42e9548b6ff3176c6c0b82cdecbc6cd | /Aviation_management_c--main/Flight.h | 8f80df1207f9dba61b979be5e578d5c8096af23a | [] | no_license | 99002478/Genisis_Mini_Project_2478 | cc0e8796afb3f4bc8672edc188a3a6320e0eba65 | 999eb2e91f4c3672e4fd4aefabe08d8feb3b8f46 | refs/heads/master | 2023-01-11T03:50:43.150110 | 2020-11-11T10:06:48 | 2020-11-11T10:06:48 | 297,558,576 | 0 | 1 | null | 2020-10-10T05:05:31 | 2020-09-22T06:39:15 | C++ | UTF-8 | C++ | false | false | 695 | h | Flight.h | #ifndef __FLIGHT_H
#define __FLIGHT_H
#include<string>
const double mile_rateINR = 10.0;
const double SpeedInHr = 500;
class Flight{
protected :
std::string fl_name;
std::string fl_id;
std::string src_city;
std::string dest_city;
double distance;
public:
// Constructors
Flight();
Flight(std:... |
44d0c2a5ee7dde8e70286cfdb2c4cb9661495856 | 1982fc83c70b448f861e16e8a464935915e89842 | /Solutions/5.bufory/main.cpp | c53076c7ed0ba57e9fe051e4a7f63d96e0652145 | [] | no_license | fiiniefi/CPP | eb0fdb0c8e6623ac6fd956c4f22a87b84369f61f | bf9dc3230ba80a27f336d1acf96d5761dd3b67c1 | refs/heads/master | 2021-08-30T00:43:30.801389 | 2017-12-15T12:04:08 | 2017-12-15T12:04:08 | 114,362,638 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,988 | cpp | main.cpp | #include "stdafx.h"
#include <iostream>
#include <string>
#include "struktury_danych.h"
void testy_listy();
void testy_kolejki();
void testy_stosu();
int main()
{
testy_kolejki();
testy_stosu();
testy_listy();
}
void testy_kolejki()
{
std::cout << "\n\nTESTY KOLEJKI:\n\n";
kolejka k;
std::cout << "rozmiar ko... |
5cb9896cc1410da614f8f8786c508b075ee99831 | 8126d163872d9c2e56c6628f41e259d88168fc9f | /src/game.h | a8a8f5e0efdd1d6e791c9a5cdb31f1493d62ae49 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | XProger/OpenLara | 8c16a7cafdcd44c74356e0c6b7a1d0ab38c20191 | d2e363db886b0aa2b666aa5d44a1beef321665d7 | refs/heads/master | 2023-08-31T14:13:08.805461 | 2023-06-28T22:54:59 | 2023-06-28T22:54:59 | 65,638,810 | 4,515 | 466 | BSD-2-Clause | 2023-09-10T18:01:09 | 2016-08-13T22:06:58 | C | UTF-8 | C++ | false | false | 9,832 | h | game.h | #ifndef H_GAME
#define H_GAME
#include "core.h"
#include "format.h"
#include "cache.h"
#include "inventory.h"
#include "level.h"
#include "ui.h"
#include "savegame.h"
#define MAX_CHEAT_SEQUENCE 8
namespace Game {
Level *level;
Stream *nextLevel;
ControlKey cheatSeq[MAX_PLAYERS][MAX_CHEAT_SEQUENC... |
13b144471343f064abff76bc92b0c8272e16e5fc | bcd6309fd23189bd17522575f2ed4e1fb8dbc0e5 | /Win32/应用程序/进程/semaphore/semaphore_creater/create.cpp | 9c73fa5e7b207a6f2c1f65da897c92d2eba097be | [] | no_license | qqzxingchen/CodeDB | f6ed63ee165fe9f67b8b98a77e1e949881456449 | 7bab59fa69a1c132d79e45d4950dc8b575769a5b | refs/heads/master | 2021-01-10T04:47:59.199551 | 2015-12-10T01:57:34 | 2015-12-10T01:57:34 | 47,730,470 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 989 | cpp | create.cpp | #include <Windows.h>
#include <stdio.h>
#define MAX_PRODUCTOR 10
TCHAR SEMAPHORENAME[]=TEXT("XINGCHEN_SEMAPHORE");
DWORD WINAPI productor(LPVOID lp){
HANDLE handle;
handle=OpenSemaphore(SEMAPHORE_ALL_ACCESS,FALSE,SEMAPHORENAME);
WaitForSingleObject(handle,INFINITE);
Sleep(1000);
printf("now end\n");
ReleaseSem... |
5baae53854fc5883f93dd8bcff6c6d5c347b82e5 | f2a3f5d48522c8aa0646415bc4a47ef3c383cab9 | /Code/SVM Classifier/WORDLIST.H | a60e960cfc9255915bc6a97f440d8f50d00011f1 | [] | no_license | ranjiGT/Research-of-Topic-Shifts-in-Comment-Based-Social-Network | a6035ef9cb5fd1b1bc3afa5ac2bb18b01b425c34 | fabd0f6766863411b6ff56965236bc9bf5f214c7 | refs/heads/master | 2023-03-15T20:38:56.833220 | 2020-06-05T03:17:17 | 2020-06-05T03:17:17 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,608 | h | WORDLIST.H | // WordList.h: interface for the CWordList class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WORDLIST_H__D7A246C0_9CD0_11D3_BAA2_0000250394FE__INCLUDED_)
#define AFX_WORDLIST_H__D7A246C0_9CD0_11D3_BAA2_0000250394FE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _... |
dcc317225d7818ab869ae106281f5fc8af59b92a | a5abae2a2fb2ee5e9ee2477fabd4d5b1878869d8 | /cpp-modules/module-01/ex03/HumanA.hpp | be20f698fa1247d21650e7c7efd2a409c111e696 | [] | no_license | RafaPC/academia42 | 928e512e93f518c4b461dc98b37c763d3ba766e2 | 3df0ca545c21544cd8325c862b812fae34af1ec7 | refs/heads/master | 2022-06-28T18:43:28.036163 | 2022-06-17T10:33:14 | 2022-06-17T10:33:14 | 219,798,721 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 219 | hpp | HumanA.hpp | #ifndef HUMANA_HPP
# define HUMANA_HPP
# include <string>
# include "Weapon.hpp"
class HumanA
{
public:
std::string name;
Weapon& weapon;
HumanA( std::string name_, Weapon& weapon_ );
void attack(void);
};
#endif |
925168fe396fb4fb05fca0850854129e3a640ac6 | 6840356bb8428865c1c64fa8ca9b42c0aca348a7 | /Core/SoarKernel/src/semantic_memory/smem_structs.h | 0df14efdeee7301c48419cb331776b67a5e0d192 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | SoarGroup/Soar | a5c7281e0673665a4b7eddd39ae4e5eb2a507aef | ef42bb24f7b58f9d244c83f5a2f2153c3ee17b77 | refs/heads/development | 2023-09-01T08:47:44.349033 | 2023-08-31T22:54:57 | 2023-08-31T22:54:57 | 21,206,914 | 289 | 86 | NOASSERTION | 2023-09-14T05:14:06 | 2014-06-25T14:50:12 | C++ | UTF-8 | C++ | false | false | 3,143 | h | smem_structs.h | /*
* smem_typedefs.h
*
* Created on: Aug 21, 2016
* Author: mazzin
*/
#ifndef CORE_SOARKERNEL_SRC_SEMANTIC_MEMORY_SMEM_STRUCTS_H_
#define CORE_SOARKERNEL_SRC_SEMANTIC_MEMORY_SMEM_STRUCTS_H_
#include "kernel.h"
#include "stl_typedefs.h"
#include <queue>
typedef struct smem_data_struct
{ uint64_t ... |
81e01064b4c73d8bc37d2fb5cd26a500c58f7808 | b3b8a20021ab8ccc4d730f47685f32332a8979af | /server/db_server/dbWrapper/databasemysql.cc | 3569ca1f6a540bb596ead34589f624f8eadd255e | [
"BSD-3-Clause"
] | permissive | yuqingtong1990/ggtalk_server | 44038c3ebd2fd959100e5b4042dacbbe395dc6fb | e28f8542ccc259772fc492b6c703d3b3d495d36a | refs/heads/master | 2020-04-11T15:48:18.665688 | 2018-12-30T13:01:47 | 2018-12-30T13:01:47 | 161,903,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,287 | cc | databasemysql.cc | #include <fstream>
#include <stdarg.h>
#include "databasemysql.h"
#include "evpp/logging.h"
Field::Field() :
mType(DB_TYPE_UNKNOWN)
{
m_bNULL = false;
}
Field::Field(Field &f)
{
m_strValue = f.m_strValue;
m_strFieldName = f.m_strFieldName;
mType = f.GetType();
}
Field::Field(const char *value, ... |
2cbd04fee9754075f1a74bf1bee43124601d1da1 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/base/ntsetup/opktools/depend/list.h | 037bc0cf985a01f26110756b9a9ff691c98a52e2 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | h | list.h | // List.h: interface for the List class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LIST_H__8579C184_3703_4719_8FCB_5A91A9CA7E4E__INCLUDED_)
#define AFX_LIST_H__8579C184_3703_4719_8FCB_5A91A9CA7E4E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#... |
105a15846355d35f32b31a43f638283c5c688561 | 3571bee08ecbc24aa20a121e06877818c6dc640c | /BillSender.cpp | 7637e92404eb31a141c6ec3bb45d4fe1fa384482 | [] | no_license | VorTechS/BillSender | a43671c17ad462a9ee11cc39664e190c60a6bf34 | ce8b7857305d4068a9bd5887008748da15b72b23 | refs/heads/master | 2021-12-02T02:46:30.918464 | 2014-03-04T15:29:00 | 2014-03-04T15:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,724 | cpp | BillSender.cpp | // BillSender.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
#include <shlobj.h>
#include <vcclr.h>
#include <Windows.h>
#include <Wia.h>
#include <Objbase.h>
#include <comdef.h>
#include <string>
using namespace BillSender;
TCHAR DIRECTORY[MAX_PATH];
_bstr_t DevID;
[STAThreadAttribute]
#pragma comme... |
304104bcaaedad35741ec194278ead726a0e28d3 | 188331e28d33965794e7ea99365a10946768912b | /2580_sudoku.cpp | 1827099ad0043e8596a1f64fa7c26cca15300cc7 | [] | no_license | fernok/baekjoon | 17e69ceae3fe33463912d36b5218d5085d1b99f4 | 837d64de25076d0f730019252ddb21b66f6fb746 | refs/heads/master | 2021-01-25T23:49:59.085425 | 2020-05-16T03:45:05 | 2020-05-16T03:45:05 | 243,229,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,128 | cpp | 2580_sudoku.cpp | #include <iostream>
using namespace std;
int sudoku[9][9] ={0,};
int row = 0;
bool isValid(int cnt, int row, int value){
int i, j;
for(i=0; i<9; i++){
if(sudoku[row][i] == value){
return false;
}
}
for(i=0; i<9; i++){
if(sudoku[i][cnt]==value){
return false;
}
}
for(i=0; i<... |
7423e945e208017dc55b786b7bfecbb48433913c | 58908b853019a16797de19eebca453988e200273 | /JobDu1084.cpp | 7083c72eedf8a7a85c812574c34a4f49cd945e4a | [] | no_license | BasicCoder/JobDu1 | 7b165c9caa490e35024899515047750448bddb06 | 00ec5a5d86df3857c6bbe23adce7b8e44ce6e481 | refs/heads/master | 2021-01-20T16:18:19.851151 | 2017-03-28T11:59:32 | 2017-03-28T11:59:32 | 82,774,776 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | JobDu1084.cpp | #include <iostream>
using namespace std;
int divi[1000001];
int main(){
int n;
divi[1] = 1;
for(int i = 2; i <= 1000001; ++i){
if(i &1) divi[i] = divi[i -1];
else divi[i] = (divi[i -1] + divi[i /2]) % 1000000000;
}
while(cin >> n){
cout << divi[n] << endl;
}
return 0;
} |
9b127153f8600db6f01a1b1e237e5b4bb3caa95c | 9085a121ffad934f550979115fc8a19373ab2a46 | /laba 5.2/Food.h | ec8bbb451dd0eaa99b5b78c387839a1fd4a8b003 | [] | no_license | a-grebenkin/lab6 | cc37b3627b4d973565fb6109570add28501adb59 | 939ca9bc01b5a0e25a794ec6dfd57dff50e0e561 | refs/heads/master | 2022-07-10T19:44:08.556469 | 2020-05-15T10:33:03 | 2020-05-15T10:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,028 | h | Food.h | #pragma once
#include <iostream>
using namespace std;
enum CONDITION
{
NORMAL, // нормальное состояние
FROZEN, // перегрет
OVERHEATED // переморожен
};
class Food
{
public:
Food(const string &name, double weight, double temperature, double max_temperature, double min_temperature, double heat_ca... |
786ed4ebe5c114f8611fad91afa8f383ab364acd | a126aacc23b7fb734b3408ef6194b21685d61913 | /KnapsackProblem.h | d3ed5a7ed71d2b2f217841443b97d12991d0dc1d | [] | no_license | dotlineer/evolutionary-computation | b490111ba18cfbc4ef9be77d432e1fe676432c02 | d4d38c1bd1ef33b8a16cfb7d822bbeaf83ac8e10 | refs/heads/main | 2020-04-29T19:48:01.344375 | 2019-03-18T20:51:53 | 2019-03-18T20:51:53 | 176,362,599 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | h | KnapsackProblem.h | #ifndef EVO_KNAPSACKPROBLEM_H
#define EVO_KNAPSACKPROBLEM_H
#include "Problem.h"
#include "vector"
using namespace std;
class KnapsackProblem : public Problem {
public:
KnapsackProblem(int iNoOfItems, int iWeightLimit, vector<int> &viWeights, vector<int> &viValues);
~KnapsackProblem();
int getIWeightLi... |
d92e5c60a23aa66c54ce847906a38659747c5a62 | 0a5645154953b0a09d3f78753a1711aaa76928ff | /common/c/thirdparty/kml/dom/visitor.cc | e90eeaafda9eff4a2617c1e671c5e368f184b5ca | [] | no_license | GENIVI/navigation-next | 3a6f26063350ac8862b4d0e2e9d3522f6f249328 | cb8f7ec5ec4c78ef57aa573315b75960b2a5dd36 | refs/heads/master | 2023-08-04T17:44:45.239062 | 2023-07-25T19:22:19 | 2023-07-25T19:22:19 | 116,230,587 | 17 | 11 | null | 2018-05-18T20:00:38 | 2018-01-04T07:43:22 | C++ | UTF-8 | C++ | false | false | 10,590 | cc | visitor.cc | // Copyright 2009, Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and ... |
74aea5a019aa308c1849c7d77487df551517efad | 47618b768b38f99aec9d91e84839eccf8ad15873 | /node_odbc/node_odbc_64/src/odbc_connection.cpp | 3ebfd92da47e3b1f9f0c80b1ed120baadb3fe1cc | [
"MIT"
] | permissive | niconico49/NodeJs | c3fbcecb06c719c8b2757f532cc0795c2802e212 | 6b23e71b4a342223ec922ed9a5e09cddc91e618b | refs/heads/master | 2021-01-11T15:54:28.410996 | 2017-01-24T20:50:23 | 2017-01-24T20:50:23 | 79,952,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54,807 | cpp | odbc_connection.cpp | /*
Copyright (c) 2013, Dan VerWeire <dverweire@gmail.com>
Copyright (c) 2010, Lee Smith<notwink@gmail.com>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all ... |
9b497e9fd8def80f295750847b2e1026e33f27ca | 2640219e4100cdaffbe78be28bd94c3a99d4e63c | /libsdlgame/Game.cpp | ca5e544dcb498534da661e5950230382a668ac88 | [] | no_license | akesterson/defunct-libsdlgame | e8f23cd7fc05adeccedd79f2ea17f7b81ea13c43 | 51ae9e81d66ea94cde09f0403db2be734363f5c8 | refs/heads/master | 2021-01-20T01:41:14.804682 | 2013-01-22T12:50:13 | 2013-01-22T12:50:13 | 89,317,322 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,858 | cpp | Game.cpp | #include "Game.h"
#include "SpriteStrip.h"
#include "Actor.h"
#include "Display2D.h"
#include <SDL_mixer.h>
#include <SDL.h>
#include <iostream>
Game::Game()
{
this->musicVolume = 128;
this->soundVolume = 128;
this->lastNumKeys = 0;
this->lastKeyState = NULL;
this->fpslock = 0;
this->realfps = 0;
return;
}
Gam... |
a68ce09d396592791e89d287356fcaeb4c56b9f9 | fa1f3e80c15e226848b024bc4a8407f6fc944ad9 | /RailwayBridgeJoint/RailWayBridge.cpp | 3ab2a2d3ec358c0754c839af65d35bede05a6c9e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | DccShield/RailwayBridgeJoint | 1b78449b90c80e33a4c54f9d385339d59acc75a6 | a2e2cfe27ab8abce71de025352c7202ffcf2ec78 | refs/heads/master | 2022-06-25T14:12:53.778046 | 2020-05-10T06:31:52 | 2020-05-10T06:31:52 | 262,571,030 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,756 | cpp | RailWayBridge.cpp | //--------------------------------------------------------------------------------
// レイアウト用鉄橋ジョイント音ジェネレータ
// [RailwayBridgeJoint.cpp]
// Copyright (c) 2020 Ayanosuke(Maison de DCC)
// https://desktopstation.net/bb/index.php
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-li... |
79c370527104d1f6e3fd6ea00baa00d8746ed056 | 8721dde19a9951e8d78e14df902f60daf414b018 | /WhatToDo/SystemTests/SystemTests_Undo.cpp | 5f283593f1e1c66708622485bed8f23374c2f908 | [] | no_license | cs2103aug2014-t14-4c/main | 2497be361c7d928e675a92569c3740425b85c8d5 | 00f61158469d97eb7e89e99c4c64b704fe051a3c | refs/heads/master | 2016-09-06T11:36:18.548249 | 2014-11-10T15:45:25 | 2014-11-10T15:45:25 | 23,483,659 | 2 | 0 | null | 2014-10-06T08:30:27 | 2014-08-30T03:09:17 | C++ | UTF-8 | C++ | false | false | 3,911 | cpp | SystemTests_Undo.cpp | //****************************************************************************
//@author A0110648L
//
// All system tests for an Undo user operation are performed here.
#include "stdafx.h"
#include "TestSupportLibrary.h"
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespac... |
b0a3955424ae6babde9ba947078918e5eed6e02a | b5c502c7c71743ce510df82055ab6f95ee57fce3 | /MQTT4RelayOTA.ino | 72bce80dd94529b8b47f3fbdee7ae86ded6dda6a | [] | no_license | cmheong/IsolatedAS3935 | ea17b476519be3706c18e17fa9898b6319291b82 | d76bf9fee8c0814a9a6a768f88b79652a8d8e65a | refs/heads/master | 2022-04-19T01:03:06.940465 | 2020-04-19T12:58:26 | 2020-04-19T12:58:26 | 256,994,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,155 | ino | MQTT4RelayOTA.ino | #include <ESP8266WiFi.h>
#include <SPI.h>
#include <ESP8266mDNS.h> // 2019-10-22
#include <WiFiUdp.h> // Needed for NTP as well as mDNSResolver
#include <ArduinoOTA.h>
#include <TimeLib.h>
#include <mDNSResolver.h> // Also needs WiFiUdp.h
#include <PubSubClient.h>
using namespace mDNSResolver;
WiFiUDP mdns; ... |
bbc08f39c80d4bfee66c9aad29efb12740462864 | 550e17ad61efc7bea2066db5844663c8b5835e4f | /Source/Contrib/UserInterface/src/Text/OSGUIFontBase.cpp | adc1cfac78c2712c04423b70f089f97aa258893c | [] | no_license | danguilliams/OpenSGToolbox | 9287424c66c9c4b38856cf749a311f15d8aac4f0 | 102a9fb02ad1ceeaf5784e6611c2862c4ba84d61 | refs/heads/master | 2021-01-17T23:02:36.528911 | 2010-11-01T16:56:31 | 2010-11-01T16:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,234 | cpp | OSGUIFontBase.cpp | /*---------------------------------------------------------------------------*\
* OpenSG *
* *
* *
* ... |
742561384bafae5346feb414177f7676b6069990 | a6590941fea4880593d5b1cd23eedfe696f4e446 | /ABC100_199/ABC119/c.cpp | f21ccdb0b6570f8dbb7e10dd37f37d0366f8b869 | [] | no_license | cod4i3/MyAtcoder | 9fb92f2dd06c5b6217e925a82d8db4f91355a70f | 53bdac3fa7eb4ac48ca6d5c70461639beb6aa81d | refs/heads/master | 2023-02-17T09:15:16.282873 | 2021-01-15T13:34:03 | 2021-01-15T13:34:03 | 232,006,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | cpp | c.cpp | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int N, A, B, C;
int ans = 0;
void dfs(vector<int> &l, int i, int mp, int l1, int l2, int l3) {
if (i == N) {
if (l1 == 0 || l2 == 0 || l3 == 0) return;
ans = min(ans, abs(A - l1) + abs(B - l2) + abs(C - l3) + mp)... |
7bd4560e3c4b521f3c66ef43771ebf6f1bad9779 | 3abac7626bca25c1a2e6c7340e88bc5ed6ab1b98 | /assign1/prodcons3.cpp | db0ce8287f589fa24fce6c9720a87f3ba22fd267 | [] | no_license | mcspohrer/515-Parallel | 5f516b7643074e0998d977c6389f3e50f9cf5773 | 500905b9bfbfaae830ac5df3a384393b3a380661 | refs/heads/main | 2023-03-24T16:49:18.611246 | 2021-03-25T23:28:52 | 2021-03-25T23:28:52 | 348,458,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,168 | cpp | prodcons3.cpp | #include <iostream>
#include <string>
#include <thread>
#include <mutex>
#include <condition_variable>
#include "queue.h"
using namespace std;
mutex mtx; //mutex for the conditional
condition_variable con_cv; //consumer's cv, con wait on empty Q
condition_variable prod_cv; //producer's cv, prod... |
1e0f76f35d67b7cd87dc7747a7fba76bc6214d02 | 47e458101f543cecee59b27d27f67e8944930d3a | /Chapter_11/Task_04/Task_04.cpp | bc0d448f75c61f2aff104c5b98c63aa6faae61aa | [] | no_license | callmeFilip/Thinking-in-CPP-Volume-1-2nd-Edition | f1bb1c9e7edef1e9ca4eadb7758f80e08ee68bba | 95db8120d67423c35728bd8b216393e9e869371d | refs/heads/master | 2023-03-27T00:31:56.940278 | 2021-03-25T17:12:34 | 2021-03-25T17:12:34 | 312,387,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | cpp | Task_04.cpp | #include <iostream>
int &function(int *ptr)
{
ptr++;
return *ptr;
}
int main()
{
int a = 10;
int &result = function(&a);
std::cout << (long)&a << std::endl;
std::cout << (long)&result << std::endl;
return 0;
} |
a33abdd134657f9e7d9fd48593ae52907eef0074 | f50cdfb25df922f9b55f8366751e0f2dcbfd07d3 | /复试/机试/部分常见代码/北航机试题/beihan_lianxi_invertsub.cpp | 7317061b734e33d6a113452cc8728cbe55e02b3c | [] | no_license | liujiming789/Unified-National-Graduate-Entrance-Examination | a3fada93858775d30353e03b002648a31921a411 | 7e1420d0862cf834b1ceae987e9514b17e9ddefd | refs/heads/master | 2022-02-19T05:58:50.551457 | 2019-09-02T11:24:44 | 2019-09-02T11:24:44 | 196,735,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | cpp | beihan_lianxi_invertsub.cpp | #include <stdio.h>
#include <string.h>
int main()
{
FILE *in,*out;
int f,i,j,len1,len2;
char s1[60],s2[60];
in=fopen("input.txt","r");
out=fopen("output.txt","w");
fgets(s1,sizeof(s1),in);
fgets(s2,sizeof(s2),in);
len1=strlen(s1)-2;
len2=strlen(s2)-2;
s1[len1]='\0';
s2[len2]='\0';
f=0;i=j=0;
while(i<len1&&j<len2)
{
... |
d5ac02f262dbf21297441cd89c318d8272988d86 | 4bbdad79137d589cf9dd48cfddaa2b6ccf6317f0 | /hausaufgabe/cpp9/spielertrainer.hpp | a8ba2db06fe6869aa554690465692a6d75b2372f | [] | no_license | leventeBajczi/prog2-ubungen | 7a37ed2ecbc0cf6b3b3f72957fe056611a43e6a7 | 5bc3318901860845b0bd81f6eef6dae77c29b1b8 | refs/heads/master | 2021-03-30T21:09:09.662792 | 2018-05-02T06:32:46 | 2018-05-02T06:32:46 | 124,792,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | hpp | spielertrainer.hpp | #ifndef _SPIELERTRAINER_HPP
#define _SPIELERTRAINER_HPP
#include <iostream>
#include "spieler.hpp"
#include "trainer.hpp"
class SpielerTrainer : public Spieler, public Trainer{
public:
SpielerTrainer(std::string str, unsigned int rn, char l) : Person(str), Spieler(str, rn), Trainer(str, l){}
virtu... |
75deeb0dab28b9aa455d9d972ba8e519bca4231e | 9b7f8b025d3932939b333ff62f88159f9ff0b490 | /leetNgeeks/450/graph/rat_maze.cpp | 3ec8fe5734236a3eb1e84a18d7ccb181335b8740 | [] | no_license | afAditya/Competitive-Coding | b43b64e2ab12a3839a9822e1ec4d9b38620ee251 | 378fe8b8a95cb1419953052857291cc3afbe3fe4 | refs/heads/master | 2023-08-21T19:47:31.385873 | 2021-10-19T05:50:54 | 2021-10-19T05:50:54 | 418,787,747 | 0 | 0 | null | 2021-10-19T05:47:47 | 2021-10-19T05:47:46 | null | UTF-8 | C++ | false | false | 1,404 | cpp | rat_maze.cpp |
// rate in maze
#include<bits/stdc++.h>
using namespace std;
namespace my {
vector<string> ans;
}
char move_char(int i) {
if(i == 0) {
return 'U';
}
else if(i == 1) {
return 'L';
}
else if(i == 2) {
return 'R';
}
else{
return 'D';
}
}
void dfs(int x,int y,vector<vector<int>>g,string &path,vecto... |
14bf184f197fc6e47c9143cf829053b50c071470 | a809cd70ef136d7e2fcf70a207880f186d019207 | /modules/ui/src/types/Camera.cpp | 25a7ff24c38f6fdb29c5c545b41396227febb250 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"MPL-2.0",
"BSD-3-Clause",
"MIT",
"BSL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | adobe/lagrange | ea9d4c700ed70003ee9c9ecef55fecd6b9d77ba7 | 2f78a647ecb867619c73489a5e3ea752f26353ef | refs/heads/main | 2023-08-10T05:18:14.852199 | 2023-06-28T18:29:31 | 2023-06-28T18:29:31 | 319,374,542 | 229 | 23 | Apache-2.0 | 2023-08-30T23:21:30 | 2020-12-07T16:14:06 | C++ | UTF-8 | C++ | false | false | 19,896 | cpp | Camera.cpp | /*
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
a2290acb4f765b5b555799c3707cd4f42dd6a38c | 0db39939d606590f563d638f9da34c4a909b4b6a | /Include/Vector3.h | d7e06d80261869a632378283aba3eff4fcf12b14 | [] | no_license | G-Cristian/ComputerGraphics | e4df9fa14e466f36870225baa86ccf6e8b946488 | b8e696bb112e299c034954a55932033a68cd146a | refs/heads/master | 2020-03-30T06:54:59.690597 | 2019-06-08T14:51:33 | 2019-06-08T14:51:33 | 150,899,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,953 | h | Vector3.h | #ifndef _VECTOR3_H_
#define _VECTOR3_H_
#include <algorithm>
namespace K9 {
class Vector3 {
public:
Vector3():
Vector3(0.0f, 0.0f, 0.0f) {
}
Vector3(float x, float y, float z) {
_vectorImp.x = x;
_vectorImp.y = y;
_vectorImp.z = z;
}
Vector3(const Vector3 &other) {
memcpy((void*)_vectorI... |
d10a2e9dd5cb4510492b16dbee1679f4922b4373 | d3a19285f928a91ef7c60b1469c2934080af41c5 | /FP_PP_1_20141578_정민교/FP_PP_1_20141578_정민교/utils/rwdata.h | 772c171256209d59dc052997daf2685be3cec30c | [] | no_license | jmg7173/FileProcessing | b32731b2669c2f8f8b0160a85d1f0e2a3fa1f773 | 7804ce10e1f8df3538778f2e58634322cbdb7ab8 | refs/heads/master | 2021-05-01T01:15:46.592096 | 2016-11-14T05:14:28 | 2016-11-14T05:14:28 | 70,041,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,971 | h | rwdata.h | #ifndef RWDATA_H_
#define RWDATA_H_
#include <fstream>
#include <string>
#include "recfile.h"
#include "../structure/dataset.h"
// Read from .txt Files
template <class Type>
void readTxt(const string filename, vector<Type> &list) {
ifstream ifs(filename);
if (ifs.fail())
{
cout << "File open error!" << endl;
... |
8a21eea928d5015940528b4b878f8fe5e745f5f7 | 99f7e6b14a37d2033c3ece8c1c8d7ff2992d4aa3 | /misc/Sort/QuickSort.cpp | 372bce031a819be86e1ace6f2f69b7224f3420e4 | [] | no_license | gnthibault/EPI | 76cf18725d610589c31c03b806d5809c858ff2bd | af6969170aa9e4e766f248013e92a7156fff8dab | refs/heads/master | 2021-01-09T09:37:01.399477 | 2017-01-19T22:46:09 | 2017-01-19T22:46:09 | 64,335,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,080 | cpp | QuickSort.cpp | /*
* Compile using g++ --std=c++11 ./QuickSort.cpp -o ./test
*/
#include <vector>
#include <algorithm>
#include <iostream>
#include <cassert>
template<typename T>
void Print(const std::vector<T>& v) {
std::for_each( v.cbegin(), v.cend(), [](T in) {
std::cout << in << ","; } );
std::cout << std::endl;
}
//In... |
906165daf72d6cb7eaa064d8b7923b0854c43839 | 757142f3794caadb4df652df53844036a48be11d | /sketch_sep20a/sketch_sep20a.ino | 483c74aa8ea4ad0375503ae7a8713c52f1b25f8f | [] | no_license | BarbaraLukowska/arduino | 2ecc1ec2112b6a7b5ca83b9c7d30f273692cde16 | 6482ce118cc86edd05e47a8f6ff4b016dab8530a | refs/heads/master | 2020-03-29T06:20:16.161322 | 2018-09-20T14:10:24 | 2018-09-20T14:10:24 | 149,620,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 584 | ino | sketch_sep20a.ino | void setup() {
for (int pin = 2; pin < 10; pin++) {
pinMode(pin, OUTPUT);
}
}
void loop() {
int t = 20;
for(int i = 2; i < 10; i++){
digitalWrite(i, HIGH);
delay(t);
digitalWrite(i+1, HIGH);
delay(t);
digitalWrite(i+2, HIGH);
delay(t);
digitalWrite(i, LOW);
delay(t);
... |
74c871813e58ce2cc34f1480ebf2c595f42f69e7 | fb900dcc615ebb8cf7647e0e8fb721e68dca4823 | /mercury 4.0/mercury_4_0_2/PID.ino | 5a0da1ed378b236081c7b6ba31a62dc11c8df7b7 | [] | no_license | Piaktipik/Arduino | 085d6944cb19569beedbfbaf5887c9da9a807e1f | 6045fc88c18eb5b25272ffde57919cab288db3f9 | refs/heads/master | 2021-01-11T12:17:07.705597 | 2016-12-14T23:04:00 | 2016-12-14T23:04:00 | 76,507,626 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,552 | ino | PID.ino | // Variables de trabajo.
unsigned long lastTime; // guardo el instante donde se ralizo el ultimo calculo
//double Input, Output, Setpoint; // parametros de entrada, salida y deseados del controlador
double ITerm = 0, lastInput; // Termino integral, termino diferencial
double kp, ki, kd; ... |
b6190348e1e2de2d77bd16097e6fc4b9fc3e8488 | 6b79670d3881bcd069cf688611ad36e0c114e95a | /piranha.h | cef28297d9b0a5c8b612e7214617d70eabf1752d | [] | no_license | kabeero/piranha_gui | 0dc0f4b9f6b132b6b3fa721cd10c45b5447afd74 | 089c8a0c9c4216ac78c27970efaf618df2b4fa7a | refs/heads/master | 2021-01-13T00:33:41.581392 | 2017-02-09T01:52:57 | 2017-02-09T01:52:57 | 81,395,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,240 | h | piranha.h | #ifndef EXAMPLEPLI892_H
#define EXAMPLEPLI892_H
#include <QtGui>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
QT_BEGIN_NAMESPACE
class UIpiranha : public QMainWindow
{
Q_OBJECT
public:
UIpiranha();
~UIpiranha();
private:
void readASMhex(std::string*, std::vector<uint>*);
... |
47c23c5bd024c4b6f0412fdc3d902b8bdd7b97a2 | 33e53f444a1b256b8d15307f37694abba0921de3 | /CGoGN/src/Utils/Qt/qtgl.cpp | 25ab05b9c67fdc32053eb03b0e91c2b60be15584 | [] | no_license | tewk/CGoGN | 468665a650ff3a07c53d2a50e21d30d19b7d97f8 | 7039925801ac5241f604ff50a32d8416b1a04282 | refs/heads/master | 2022-11-04T22:27:29.477218 | 2022-10-28T22:37:46 | 2022-10-28T22:37:46 | 44,613,432 | 0 | 1 | null | 2020-01-10T16:37:18 | 2015-10-20T14:51:44 | C++ | UTF-8 | C++ | false | false | 13,753 | cpp | qtgl.cpp | /*******************************************************************************
* CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps *
* version 0.1 *
* Copyright (C) 2009-2012, IGG Team, LSIIT, University of Strasbourg ... |
4185fc0a19d3b6ea8a315db2136081772ebf1fad | 0706b83ece4db1fb6310d984fd5a259eb91b5bbf | /AVPRG-Projekt/OpenCV_Tools.cpp | ba3cf5f828af7951959c9a01a93ba0a1f763d82e | [] | no_license | AlexanderPiehl/AVPRG-Projekt | 78246dce12a1a63465e33a24850654d0a6b099ee | 9731312b6563e014ca5383a1879ff894a44eaeea | refs/heads/master | 2021-01-20T11:57:38.443740 | 2014-01-12T21:09:43 | 2014-01-12T21:09:43 | 14,141,164 | 0 | 0 | null | 2014-01-09T20:26:54 | 2013-11-05T12:45:13 | C++ | UTF-8 | C++ | false | false | 949 | cpp | OpenCV_Tools.cpp | #include "OpenCV_Tools.h"
using namespace cv;
using namespace std;
OpenCV_Tools::OpenCV_Tools(void){}
OpenCV_Tools::~OpenCV_Tools(void){}
Mat OpenCV_Tools::loadImage(string path)
{
Mat image = imread(path);
return image;
}
Mat OpenCV_Tools::loadImageAsBW(string path)
{
Mat image = imread(path);
M... |
78b312e36851d0c7e3767860b8f978176c447b6d | 24004e1c3b8005af26d5890091d3c207427a799e | /Win32/NXOPEN/NXOpen/CAM_WedmMoveControlBuilder.hxx | d148a1cd003abad007c79aa61319e063707f4326 | [] | no_license | 15831944/PHStart | 068ca6f86b736a9cc857d7db391b2f20d2f52ba9 | f79280bca2ec7e5f344067ead05f98b7d592ae39 | refs/heads/master | 2022-02-20T04:07:46.994182 | 2019-09-29T06:15:37 | 2019-09-29T06:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,975 | hxx | CAM_WedmMoveControlBuilder.hxx | #ifndef NXOpen_CAM_WEDMMOVECONTROLBUILDER_HXX_INCLUDED
#define NXOpen_CAM_WEDMMOVECONTROLBUILDER_HXX_INCLUDED
//--------------------------------------------------------------------------
// Header for C++ interface to JA API
//--------------------------------------------------------------------------
//
// Source Fil... |
ccb054b3fa7026e78c459a84d233427d96b8aa80 | 3eb1d680026e7a19bc3c0b86c7b34aed49af20d3 | /uFuncRag.cpp | f18a28f5c2d760dfcd5a814492d9c9a0edf39e85 | [] | no_license | andreyV512/talinka_thick | 6a37e875f3f3e37e91a682c43b51419f29c0bc63 | af378118eec958fee73e1f9b88af387cfa6aadc1 | refs/heads/master | 2020-03-29T18:29:05.294266 | 2018-11-21T03:24:38 | 2018-11-21T03:24:38 | 150,215,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | cpp | uFuncRag.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#include "uFuncRag.h"
#include <Forms.hpp>
//---------------------------------------------------------------------------
#pragma package(smart_init)
void CheckThread(AnsiString _head)
{
WideString w=_head;
AnsiString msg="Th... |
1ebdd4bc643fd529679e1bdc64d812cd426539c9 | 6f86a2533e592fa02428521fc7dfb2ffdc9343d0 | /src/elements/MITCShell.h | 8cf6c4df681ef9af106e555b5ce94f3ab0191b0d | [
"GPL-3.0-only",
"Apache-2.0"
] | permissive | SourangshuGhosh/tacs | d3ff6d7b4a36d98ba35aae2b985fd721f7738775 | 1473eec093f3ac2c18ee9759865dc39a15b2e048 | refs/heads/master | 2022-11-19T05:33:02.127603 | 2020-07-22T13:08:44 | 2020-07-22T13:08:44 | 278,541,353 | 4 | 1 | Apache-2.0 | 2020-07-21T07:08:02 | 2020-07-10T04:52:46 | C++ | UTF-8 | C++ | false | false | 121,209 | h | MITCShell.h | /*
This file is part of TACS: The Toolkit for the Analysis of Composite
Structures, a parallel finite-element code for structural and
multidisciplinary design optimization.
Copyright (C) 2010 University of Toronto
Copyright (C) 2012 University of Michigan
Copyright (C) 2014 Georgia Tech Research Corporatio... |
3df074fd23521d19e5452f33cd865315530248ff | 2fbf96bb69f954dbf6bbf13661b0492de9b3b4b1 | /uva/uva10931.cpp | 9b2c025d48bc7017fc6a2f434bdedd381b5ec494 | [] | no_license | timothywangdev/Programming-Contests | 432d0e6719cf2c910d24416dfacb46abb046a735 | dcd58694bd66536222f2ffd78b025af5a38aab4f | refs/heads/master | 2023-08-02T06:57:22.724822 | 2021-10-08T19:06:32 | 2021-10-08T19:06:32 | 16,039,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | cpp | uva10931.cpp | #include <iostream>
#include <bitset>
#include <string>
using namespace std;
unsigned long long N;
int main(){
while(cin>>N){
if(!N)break;
bitset<32> b(N);
string s=b.to_string();
int counter=0;
int index=-1;
for(int i=0;i<s.size();i++){
counter+=(s[i]=='1');
if(s[i]=='1'&&index=... |
e105920da15bb697ff07b96e731dffab7af83806 | cddab5f9563b09fced009ea893f29dd4578cced7 | /scene/scenenode.h | ea6eeafafbd94a97da6322979d2ad5f3ef3323cb | [] | no_license | chunsen-ok/SoftwareRenderer | 41544f7d3a7f08d708a6bf1ec4d964b40c448c85 | 0d43f7a8ccbd07c84a48922b28edc323436fd9c9 | refs/heads/master | 2021-10-22T04:52:22.907512 | 2019-03-08T08:40:00 | 2019-03-08T08:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 607 | h | scenenode.h | #ifndef SCENENODE_H
#define SCENENODE_H
#include "math/vector.h"
#include "math/matrix.h"
#include <vector>
class SceneNode
{
public:
SceneNode(const std::vector<Point2D> &shape, SceneNode *parent=nullptr);
~SceneNode();
void addChild(SceneNode *child);
Transform2D &transform() { return mTransform;... |
a944f5cc5c94715e9dc12be375cefcbc98fc3350 | cc6fdf2faf12f8a610422e07b30b0cd0f1b81cb7 | /jabber_connection.cpp | 619b94b761016e02813e0d0a4bedc799e109c019 | [] | no_license | tomasdubec/lekuba | f5c72fddebd1fefe07c0575c2e26326a62678cf5 | abc7894e5aced7ec56a96fc4168aec0b6f8dc653 | refs/heads/master | 2021-01-01T19:38:42.147715 | 2007-10-20T22:22:01 | 2007-10-20T22:22:01 | 37,517,442 | 0 | 0 | null | 2015-06-19T07:58:11 | 2015-06-16T08:21:14 | C++ | UTF-8 | C++ | false | false | 19,242 | cpp | jabber_connection.cpp | #include "jabber_connection.h"
#include <string>
#include <signal.h>
//#include <mhash.h>
#include <ctime>
#include <string.h>
#include <openssl/md5.h>
void jabberConnection::debugPrint(string txt){
#ifdef _DEBUG_
cerr << txt << endl;
#endif
}
string jabberConnection::base64encode(string text){
int a=0, delka=text.... |
459be824a72eae6f4baa79a19ebc5a93cc46780e | b179ee1c603139301b86fa44ccbbd315a148c47b | /engine/strings/source/TextKeys.cpp | b050d9d56748b1a44f7a61385c98e54b5714718e | [
"MIT",
"Zlib"
] | permissive | prolog/shadow-of-the-wyrm | 06de691e94c2cb979756cee13d424a994257b544 | cd419efe4394803ff3d0553acf890f33ae1e4278 | refs/heads/master | 2023-08-31T06:08:23.046409 | 2023-07-08T14:45:27 | 2023-07-08T14:45:27 | 203,472,742 | 71 | 9 | MIT | 2023-07-08T14:45:29 | 2019-08-21T00:01:37 | C++ | UTF-8 | C++ | false | false | 11,202 | cpp | TextKeys.cpp | #include "TextKeys.hpp"
using namespace std;
TextKeys::TextKeys()
{
}
TextKeys::~TextKeys()
{
}
const string TextKeys::SW_TITLE = "SW_TITLE";
const string TextKeys::SW_TITLE_POEM = "SW_TITLE_POEM";
const string TextKeys::SW_TITLE_LOADING = "SW_TITLE_LOADING";
const string TextKeys::SW_TITLE_SAVING = "SW_TITLE_SA... |
76bf6229a315811771827ea07ee7a0c1889af1b2 | a35a353b09358d25b45a7ee04701245018afbeeb | /Image-processing-algorithm/Color Space Conversion/rgb2hsv.cpp | 328f5dbefd48713125b07e85f6c67b48c1eff07a | [] | no_license | KenSporger/Digital-Image-Processing-Course | 56900bea2a7e6f83c78d123c39f032b4126a5e87 | 9fa8feee8b2de65038889702b6338a943ec83cde | refs/heads/master | 2021-03-15T08:28:05.873605 | 2020-08-26T03:02:56 | 2020-08-26T03:02:56 | 246,837,259 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,148 | cpp | rgb2hsv.cpp | #include<iostream>
#include<opencv2/opencv.hpp>
using namespace cv;
// RGB模型转到HSV模型
Mat RGB2HSV(Mat src)
{
int rows = src.rows;
int cols = src.cols;
Mat dst(rows, cols, CV_8UC3);
for (int i = 0; i < rows; i++){
for (int j=0; j< cols; j++){
uchar r = src.at<Vec3b>(i, j)[0];
... |
1ccc5b8f5839859f17db6ad0a962b01b0a8ebac3 | 103eca6c82eec3bd5fa3a9d28fa65446564e4bd4 | /abcdsat_p21/simp/Algebraic.cc | e6942a2f48f2195a5f3e4d3a20d9c3790101e2df | [] | no_license | jingchaochen/abcdsat_p21 | c0df8973e8fa9232da5dab12b8a1c2f0518a505c | cb5e67aaa2669aa3c111596656e4168d79219268 | refs/heads/main | 2023-04-10T11:16:07.528238 | 2021-04-20T08:20:56 | 2021-04-20T08:20:56 | 359,734,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,359 | cc | Algebraic.cc |
#include "global.hpp"
#include "Algebraic.hpp"
#include "CNFtheory.hpp"
#include "Breaking.hpp"
#include "Graph.hpp"
#include <stdio.h>
#include <limits.h>
using namespace std;
void Permutation::addFromTo(uint from, uint to) {
if (from != to && from < 2 * nVars && to < 2 * nVars) { // only ID's < 2*nVars represe... |
0353e4a9641c8d67e33b59eca69181749491b73c | 586a03f4b93fd031f5eb677c7a43add038a4bc93 | /tests/testId3.cc | 7dfaa1fa55051a8f2e45506e5adfd8ced090e52b | [] | no_license | kmz42/cudacomp | 7d8b5e0f57cc15df4dbed0d573535f404025e221 | ee519a126dfb595c4ddb14195322277c90d36e6a | refs/heads/master | 2022-09-19T08:23:50.922986 | 2017-05-19T02:31:39 | 2017-05-19T02:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 53 | cc | testId3.cc | int _cc_main() {
int x = 10;
return y * 2;
}
|
f9e4cd35becfbc76e4187e16f2ede350f2824c19 | 7ba254b6e04238d482c62420781fa995719a984c | /mpac_mproc/pac-soc/pac-d2-bus.h | 8f07f6b3d886278e518dc16d7e2e95c2a66d2ece | [] | no_license | cuibixiong/multicore-simulation | 25d3ba38ad1270e19868e297fa6af484606ed638 | 8b22030c2e264fee08ff92f315a2948e45de9012 | refs/heads/master | 2021-01-01T05:35:34.857120 | 2013-05-26T16:04:22 | 2013-05-26T16:04:22 | 10,299,972 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 86,819 | h | pac-d2-bus.h | #ifndef PAC_D2_BUS_H_INCLUDED
#define PAC_D2_BUS_H_INCLUDED
#include <systemc.h>
using namespace sc_core;
using namespace sc_dt;
using namespace std;
#include "tlm.h"
#include "tlm_utils/simple_target_socket.h"
#include "tlm_utils/simple_initiator_socket.h"
#include "tlm_utils/peq_with_get.h"
#include "pac-trans-ext... |
f53ff7a72a0a583d41788cfcfd69f71c6f85d35e | a45b192a23485dead14d0e8acba0d742d205162d | /successwindow.cpp | ff9a498eade5d5cb3b1c9a2cfd705208232a0234 | [] | no_license | MohamadSerhal/ece435L-complete-project | d49e3b812f62a9d3676b1519725f64ad868a3d0e | 51bda3ddef09264e7402f728c289874c36926b35 | refs/heads/main | 2023-01-27T11:41:32.381846 | 2020-12-02T11:25:27 | 2020-12-02T11:25:27 | 316,075,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,211 | cpp | successwindow.cpp | #include "successwindow.h"
/**
* @brief successWindow::successWindow, constructor for the success window
* @file successwindow.h
* @param parent
*/
successWindow::successWindow(QWidget *parent) : QWidget(parent)
{
sucessLabel = new QLabel("SUCCESS!");
sucessLabel->setStyleSheet("font: 35px;"
... |
6b0025754e1878cc8f4b38819506010cb1cdefb8 | 1b8bba9b8a4a655a0acc7fed805a03f32720c57e | /src/Menge/MengeCore/Agents/Events/EventSystem.h | bbfa1158cb57962c753de08527402748773afeee | [
"Apache-2.0"
] | permissive | tcarnoldussen/Menge | 8f42d2987189380c4784341fa9b92bff2cf1e57e | ce276e3014c6f7681ce1509533028b76c1f38e10 | refs/heads/master | 2021-02-05T05:49:25.871675 | 2020-03-06T12:06:36 | 2020-03-06T12:06:36 | 243,750,295 | 0 | 0 | Apache-2.0 | 2020-02-28T11:47:49 | 2020-02-28T11:47:48 | null | UTF-8 | C++ | false | false | 5,643 | h | EventSystem.h | /*
Menge Crowd Simulation Framework
Copyright and trademark 2012-17 University of North Carolina at Chapel Hill
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/licen... |
43dbf25d5ea5de459ff9bb78af8c9434e3c91d3e | e2786af7fd38346ef1dd5ebeb1f7f65a528e2e14 | /examples/hotplug.cpp | 0f3157dcf009e9b0b54d717680712e8f5842c6a4 | [
"BSD-2-Clause"
] | permissive | analogdevicesinc/libsmu | cbc5dd979257e3ade2ddd14b8b5a05517071dfec | dbb484f004d9eb5251aa4667f5cf09b3ff5610e2 | refs/heads/master | 2023-05-25T18:30:48.590615 | 2022-02-10T10:15:29 | 2022-02-11T13:43:17 | 23,053,387 | 31 | 29 | BSD-3-Clause | 2023-02-20T20:03:46 | 2014-08-18T00:07:27 | Python | UTF-8 | C++ | false | false | 1,734 | cpp | hotplug.cpp | // Simple example demonstrating hotplug support.
#include <chrono>
#include <iostream>
#include <thread>
#include <algorithm>
#include <libsmu/libsmu.hpp>
using std::cout;
using std::cerr;
using std::endl;
using namespace smu;
int main(int argc, char **argv)
{
// Create session object and add all compatible devic... |
0c46910013169606c886e776ed7908d9b3b0aeb4 | 418aa6c4486e255f482b6c9bee12a08cda829503 | /Common/container/simplestring.h | 33b46e1c6c05bc3a3e8848ca42a1e610dd5b2406 | [
"MIT"
] | permissive | jjuiddong/Common | b21c9a98474fc45aa30b316808498381c2030ad3 | 3097b60988464000e2885a07cdd6e433e43de386 | refs/heads/master | 2023-08-31T07:35:31.425468 | 2023-08-29T11:38:29 | 2023-08-29T11:38:29 | 77,737,521 | 3 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 18,904 | h | simplestring.h | //
// 2017-07-05, jjuiddong
// simple string
// use stack memory
//
// 2017-08-24
// - add wchar_t type
//
//
#pragma once
namespace common
{
template<class CharT, size_t MAX>
class String
{
};
template<size_t MAX>
class String<char, MAX> final
{
public:
String() {
memset(m_str, 0, sizeof(char)*MAX);
... |
30d64007a3d0a20ffcf9ad2f3f2ae72b40d36e53 | e03c05a59e5d3fd0d373012046d66c169f741dc4 | /树状数组和线段树/C.cpp | 2cffa520e9266a109a06063a040f0332ddbc5258 | [
"MIT"
] | permissive | Eden1114/ACM_ICPC | 45360c97c6ecd3c586bb5d34eba3a889ad604d6b | 4f3dea0c866e7e3fcde886e41ffe65552458666b | refs/heads/master | 2021-01-20T13:58:10.476422 | 2018-07-31T08:26:59 | 2018-07-31T08:26:59 | 90,543,195 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,953 | cpp | C.cpp | /*
*题号:
*时间:
*解题思想:线段树
*线段树,树状数组的实现一般都是[1,n] 不从0开始
*
*/
//include <bits/stdc++.h>
#include <functional>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cstdlib>
#include <numeric>
#include <utility>
#include <cstring>
#include <climits>
#include <limits>... |
59a58a1fbadd1654aaff381000b7164165618866 | e769678179d65e4d38fc36967eb70e48032afd44 | /tools/plugin-create/Create.hpp | 1d310416c6cf40f53f60aac5b5d70cca18f5a21f | [] | no_license | Pocsel/pocsel | 02f860c2d6d7bbdff17df09e4a5d7dfc60849c04 | f3ec58f68719302ec10fc3312928b08566b0dd52 | refs/heads/master | 2021-01-23T08:56:14.496186 | 2014-12-26T00:24:14 | 2014-12-26T00:24:14 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,274 | hpp | Create.hpp | #ifndef __TOOLS_PLUGIN_CREATE_CREATE_HPP__
#define __TOOLS_PLUGIN_CREATE_CREATE_HPP__
namespace Tools { namespace PluginCreate {
struct Resource
{
std::string type;
boost::filesystem::path srcFile;
boost::filesystem::path dstFile;
bool isTemporaryFile;
Resource(Resourc... |
0531b5010c3dc361792a47335889a53a64d8b28f | 5ed8b14c8b1e3ab2d713bdea52b3b3d3a0c10b3c | /Problems/№13.cpp | f0a07c734008ad33768a107296194203b5ec3fee | [] | no_license | AiSRoV/AiSHub | ea0de5de6a9f6677884421fe64709c18e25f1e51 | 644d543ff3c07e1302c4bfea19d28884ceb8e236 | refs/heads/master | 2020-07-30T23:39:06.314081 | 2020-06-20T12:20:07 | 2020-06-20T12:20:07 | 210,401,560 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | №13.cpp | #include <iostream>
using namespace std;
int main() {
int num, z, b, x;
z = 1;
x = 2;
b = 2;
cin >> num;
if (num == 0) {
cout << 0 << endl;
}
else {
if (x <= num) {
while (x <= num) {
x = x * b;
z++;
}
}
else {
cout << 1 << endl;
}
cout << z << endl... |
2d1b75867d1bab2df7109117c1a24cd64c87b0a8 | 62ae4d743e12dadc6df7410783b64883a71eee30 | /include/pcd/bounding_box_feature.h | 7cb8e6131ed0fe94e6188d9adc199bd925edb294 | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | zeng-hello-world/Caffe | bc1adf4fa4d2d52e30a6446f89d373c0958a6e5b | fcbd1c8871e31a5abdc40f7eac92929fd697363d | refs/heads/master | 2023-06-10T04:56:03.969770 | 2017-03-24T02:55:13 | 2017-03-24T02:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | h | bounding_box_feature.h | // Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved
// @author erlangz(zhengwenchao@baidu.com)
// @date 2016/12/29 17:57:00
// @file bouing_box_feature.h
// @brief
#ifndef ADU_PERCEPTION_PCD_BOUING_BOX_FEATURE_H
#define ADU_PERCEPTION_PCD_BOUING_BOX_FEATURE_H
#include <opencv2/opencv.hpp>
#include <pcl/point_ty... |
93fdcda644a90de7f8cc7044402691ffbcda3da1 | e1aebabcc24cce95518ff466cfa92fb0b0ef68e5 | /Advanced Algorithms Project 2/topSort.h | 2049b8eab3f51acb4986216ebcfe5058625aa9e7 | [] | no_license | PillarManJ/AdvacnedAlgorithmsProject2 | 1e3ae3939bac40db3f18c57831623ec949d751fe | bb19472aa404116e26a6c36ba8668e83013bd2eb | refs/heads/master | 2022-04-26T17:59:30.172821 | 2020-04-26T23:54:09 | 2020-04-26T23:54:09 | 254,974,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 225 | h | topSort.h | #include <queue>
#include <utility>
#include <iostream>
#include <string>
#include <vector>
#include "GraphNode.h"
template <class T>
class TopSort{
vector<T> Kahns(T first);
vector<T> mDFS(T first);
}; |
85bd6b1b61073d0440f7389b59d497d6b0bbdd33 | 9db2bd0e9ee4d39ae1c3adb6bdf39e8b35a8c781 | /Orbitersdk/Space Shuttle Ultra/vc/vc_defs.h | 821546f1f9107da5c2ae19fb6e7519ec0f16b328 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mrozigor/spaceshuttleultra_mirror | 95aae304af32179a5c1f33ff1e103b874c5c39db | caeffa89129ba749061c8e751d254882e21417c4 | refs/heads/master | 2021-01-25T16:53:44.829629 | 2017-07-31T21:26:20 | 2017-07-31T21:26:20 | 101,912,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,057 | h | vc_defs.h | /****************************************************************************
This file is part of Space Shuttle Ultra
VC definitions
Space Shuttle Ultra 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 ... |
b8aa1f9d7172f2d45bb146e62428562b2d29f55c | b3ff4c9a1ef9b314831d2049ce1e240d19033b8c | /Views/Concessions/manageconcessionsview.cpp | 3f0f344e953da714585f53483e9f43b986fdfebf | [] | no_license | Betrove/school_project | 0884c08b460ecd1bfb1c5d26ef2f3f8245845451 | b9afc1e4d14dbebafe0849ab0ea5fde221531387 | refs/heads/master | 2021-08-24T07:15:45.802900 | 2017-12-08T15:48:20 | 2017-12-08T15:48:20 | 112,995,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,133 | cpp | manageconcessionsview.cpp | #include "manageconcessionsview.h"
#include "ui_manageconcessionsview.h"
#include "QMessageBox";
#include "QModelIndex"
ManageConcessionsView::ManageConcessionsView(const ServiceManager& serviceManager) :
QWidget(NULL),serviceManager(serviceManager),
ui(new Ui::ManageConcessionsView)
{
ui->setupUi(this);
... |
d044b044c07f64bb07849399271c0654a5ff17a1 | e83c6a83e7a97b74d0c267ae79f4c29498c236e8 | /ParallelParticles/ParallelParticles/ParticlesExportResultAssembler.h | e43bfb495abe7a18faec2139d00af9ef953a8153 | [] | no_license | wws2003/StudyProjectL2 | 82854e51fb0a98d37cf06fec64c507fca5427acc | 524acf61f489b88ba3971e0ad30830c33d9df19f | refs/heads/master | 2021-01-19T06:12:39.631154 | 2015-10-21T06:16:03 | 2015-10-21T06:16:03 | 13,218,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | h | ParticlesExportResultAssembler.h | //
// ParticleExportResultAssembler.h
// ParallelParticles
//
// Created by wws2003 on 8/3/14.
// Copyright (c) 2014 wws2003. All rights reserved.
//
#ifndef __ParallelParticles__ParticleExportResultAssembler__
#define __ParallelParticles__ParticleExportResultAssembler__
#include <iostream>
#include "PPTypeDefs.h... |
759331475b1125885d1749f49c243e9614b1d865 | 999d9a08726f1de4c40c266f45864f06b615125e | /hw3.h | 81c7d9ecd5f736c467763b0075832331abcbfac7 | [] | no_license | StevenLCY/Digital-Image-Processing | 1e24b1a1ab9babdc130454cc230c92f7f4c1480c | 9566bba6dfd4d9728e82fbaa804d266340983641 | refs/heads/master | 2020-04-08T22:41:51.984726 | 2018-12-16T15:10:44 | 2018-12-16T15:10:44 | 159,797,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 789 | h | hw3.h | #ifndef HW3_H
#define HW3_H
#include <QDialog>
#include <opencv2/opencv.hpp>
#include <opencv/highgui.h>
#include <vector>
namespace Ui {
class HW3;
}
class HW3 : public QDialog
{
Q_OBJECT
public:
explicit HW3(QWidget *parent = nullptr);
~HW3();
private slots:
void getFrame(cv::M... |
c1d417797775f7e0e28179d14f172d1df819642a | b4ad8495d6e353ec1dd75503da06e27c04c9e89d | /include/cchmc/deprecated/IndexSpace.h | b93aa4165211645cf1959a5d7b7020fa6525eb13 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | putnampp/clotho-dev | a0efc5346c051460abab336c783a3977dbc26bf1 | dd6ffdb549f6669236745bbf80be6b12392ecc00 | refs/heads/master | 2021-01-25T06:36:32.056942 | 2014-09-15T14:28:17 | 2014-09-15T14:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,610 | h | IndexSpace.h | /*******************************************************************************
* Copyright (c) 2013, Patrick P. Putnam (putnampp@gmail.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:
... |
a0b74343dc01bb5b974449d301810d0b4459185a | bdc67ddec677652859d5af62fb9be76e232064b8 | /c++ learning/Others/coding test2.cpp | 71379aaf77c2d9a8e54b6d834199d15b4f8af838 | [] | no_license | vvonth/Algorithm | e1491bf95740fb6037ae4834c7bd05d38db11c88 | 7847ffd9ae32410507b93226e424b6a3886c38ae | refs/heads/master | 2023-02-16T18:31:36.631210 | 2021-01-10T03:35:25 | 2021-01-10T03:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,611 | cpp | coding test2.cpp | //
// coding test2.cpp
// c++ learning
//
// Created by 원태희 on 16/03/2019.
// Copyright © 2019 원태희. All rights reserved.
//
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
int main(void){
string s;
string a;
stack<char> t;
stack <char> n;
vector<char> v;
stack<c... |
dc4ef86fd4c551d5b36b935eb24643031da2cc90 | 79ca7afb8c1996195029ffa16ec5f70918430bc9 | /FileTransferProgram/Widgets.cpp | fff8469289ac36c7d3157ef49fa101eff4441d93 | [] | no_license | patwong92/FileTransferProgram | 5ee345d4286261f4c54741ec1dcfe2844abadf0d | 2be7f143d688c4e134503c02fd24866e5aa59286 | refs/heads/master | 2022-09-23T03:18:32.648297 | 2020-06-03T03:42:22 | 2020-06-03T03:42:22 | 240,946,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,885 | cpp | Widgets.cpp | /*------------------------------------------------------------------------------------------------------------------
-- SOURCE FILE: Widgets.cpp - Provides the interface windows in the application
--
-- PROGRAM: FileTransferProgram
--
-- FUNCTIONS:
-- VOID CreateLabel(HWND hwnd, LPCTSTR text, int x, int y);
-- HWND Cre... |
4bd1f133971cab9d0c932e6a0b5ee06faaa9c167 | 3984d16c69600a0883427ed01bd971b0d4d7c18b | /inc/include/gstreamermm-0.10/gstreamermm/private/typefind_p.h | d54946220a853de49903eb52bd08293a27894f4b | [] | no_license | venkatarajasekhar/Lerdu | 2f3db41d2f6955a2bd49ca0854c85aaf8dd60ae0 | c4aa3b1c5fb01908d62d25d9e71c0f6165b64b7d | refs/heads/master | 2020-06-18T07:41:29.511894 | 2012-10-28T15:14:48 | 2012-10-28T15:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | h | typefind_p.h | // -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GSTREAMERMM_TYPEFIND_P_H
#define _GSTREAMERMM_TYPEFIND_P_H
#endif /* _GSTREAMERMM_TYPEFIND_P_H */
|
de64450db13141fe6601550892c8b6c2486ae2b8 | c9104fb66e4c5d278ddcf249cb6352a49e74664f | /MyDraw/textBoxGUI.h | 519daad676575c6ce2956ce8b733ee94f80b22fb | [] | no_license | mrsakkaro/CS390CPP | 2c849cd12c240c315590f496e76e2e8584ca2f7c | f1884502703560314f0dfafdd8054b9f05883ae4 | refs/heads/master | 2021-01-19T13:01:10.096828 | 2015-02-20T23:50:34 | 2015-02-20T23:50:34 | 30,996,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | h | textBoxGUI.h | #pragma once
#include "afxwin.h"
// textBoxGUI dialog
class textBoxGUI : public CDialogEx
{
DECLARE_DYNAMIC(textBoxGUI)
public:
textBoxGUI(CWnd* pParent = NULL); // standard constructor
virtual ~textBoxGUI();
// Dialog Data
enum { IDD = IDD_DIALOG1 };
protected:
virtual void DoDataExchange(CDataExchange* p... |
b19bda34ae8be7bea08b45f59d025d1ebd5df628 | a8d9117fc005fac9d674375caee0213f35e93c8f | /GFG/longestconsecones.cpp | b9b354a5520ebb208c86ec289b2cc55c395f4da7 | [] | no_license | logan0501/BIT-MAGIC-PROBLEMS | 3a4f4daa5ce7767502383b9508f91d960fea925b | e893af21e18854ec5c63a08de54d2eb7d5074e4e | refs/heads/main | 2023-08-03T11:39:49.613436 | 2021-09-06T14:30:56 | 2021-09-06T14:30:56 | 403,130,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | longestconsecones.cpp | /*
Created by logan on 05-09-2021.
*/
#include "iostream"
using namespace std;
int longestConsecOnes(int n){
int count=0;
while(n){
count++;
n=(n&(n<<1));
}
return count;
}
int main() {
cout<<longestConsecOnes(14);
return 0;
}
|
ed1cc877445ac9c1181706577037362fb1a6f881 | fbc7e0c7223127a961a16d85a3e705d149f1e025 | /mechsim/tests/Bunny.h | 6e086d6b5bdb8d768a75fab7d77dab728de1fa29 | [] | no_license | nfbraun/xrp | f406d4c71436e27ff660cca2dc23bc649cc7d3c3 | 3b344ad4f69aaa0350c4708e001b43e66228a7a6 | refs/heads/master | 2016-09-10T06:50:54.646498 | 2014-07-29T18:37:19 | 2014-07-29T18:43:06 | 6,868,442 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | h | Bunny.h | #ifndef MSIM_BUNNY_H
#define MSIM_BUNNY_H
#include "Simulation.h"
#include <GL/gl.h>
class Bunny;
class BunnyState: public SimulationState {
public:
double fT;
void Draw(int) const;
// calculated with vtk
Eigen::Vector3d GetCenter() const
{ return 10.*Eigen::Vector3d(.2 * sin(fT / 8.), 0.... |
d87e0833f39607cc910f0d225809173668458223 | 2e6c001805d872577fb4b05d1e91bc812d1db41c | /answers/JS-0638/string/string.cpp | 7550f1f3b47950b9d15068fe5e134ff251903338 | [] | no_license | fsy-juruo/noip2020-JS-Answers | f9e7ec8c7d86274bb8d18ecf7a9b858b11d9a8bb | 476106a54046665e1362bee246fa83b6f0d00857 | refs/heads/main | 2023-01-31T02:37:52.273421 | 2020-12-05T12:27:17 | 2020-12-05T12:27:17 | 318,722,231 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,072 | cpp | string.cpp | #include<bits/stdc++.h>
using namespace std;
void fre() {
freopen("string.in","r",stdin);
freopen("string.out","w",stdout);
}
typedef long long ll;
inline ll read() {
ll x=0;
char ch=getchar();
while(ch<'0'||ch>'9') {
ch=getchar();
}
while(ch>='0'&&ch<='9') {
x=(x<<3)+(x<<1)+ch-'0';
ch=getchar();
}
re... |
9ac0f13ac08bc147749287695163b6267fd7151c | 4d32bc200a8ee823176b1096912d05bf94bb49f6 | /Algoritma-dan-Pemrograman-1/Praktikum 1 ( Runtunan 1 )/prak1-18.cpp | cad976ecd88bd9e36ddc5028e2216db036093d11 | [] | no_license | Irvanabdurrahman/My-Code | 364b890fb171dcac97090084c2dd41d0bc890d4d | eeed51144f0924b815f91eae48f7165ef3feb670 | refs/heads/master | 2016-08-04T10:05:17.847085 | 2013-05-10T13:03:32 | 2013-05-10T13:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | prak1-18.cpp | #include <conio.h>
#include <iostream.h>
void main()
{
clrscr();
long Upah, tahun;
cout << "Menghitung Gaji buruh Pertahun" << endl;
cout << endl;
cout << "Masukan Pertahun Kerja Anda:";
cin >> tahun;
Upah = 9000000 * tahun;
cout << "Nilai Upah: " << Upah;
getch();
} |
e51ffde9d3897ea473e409fec8c290912279bf46 | 99250174edf7c180679b244fcb85393c40155eb7 | /Algorithm Practice/Algorithm Practice/13458.cpp | 3dfbb51312313d68a36b7db08dc49f3014b50688 | [] | no_license | Minyeob/Algorithm | b677091bdd1b578165fd58fb7e24fc1582c8d45f | b629eaacbd87193cf9b3876fac8443826fa8e5c5 | refs/heads/master | 2020-12-02T07:56:25.435592 | 2017-10-22T14:27:16 | 2017-10-22T14:27:16 | 70,489,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | 13458.cpp | #include <cstdio>
int room[1000001];
int main()
{
int n;
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
scanf("%d", &room[i]);
}
int b, c;
scanf("%d %d", &b, &c);
long long count = 0;
for (int i = 0; i < n; i++)
{
count++;
int now = room[i] - b;
if (now > 0)
{
int check = now / c;
count = c... |
3c774484c6898a458a8788bd3a2fce88634ab860 | 1501f50acc22b9e915d04df435210d68e2a907ee | /include/Org/BouncyCastle/Crypto/Digests/WhirlpoolDigest.hpp | 8f430b32b9acc9b3cacf2ea2a8291b9400c13b32 | [
"Unlicense"
] | permissive | sc2ad/BeatSaber-Quest-Codegen | cd944128d6c7b61f2014f13313d2d6cf424df811 | 4bfd0c0f705e7a302afe6ec1ef996b5b2e3f4600 | refs/heads/master | 2023-03-11T11:07:22.074423 | 2023-02-28T22:15:16 | 2023-02-28T22:15:16 | 285,669,750 | 31 | 25 | Unlicense | 2023-02-28T22:15:18 | 2020-08-06T20:56:01 | C++ | UTF-8 | C++ | false | false | 25,814 | hpp | WhirlpoolDigest.hpp | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: Org.BouncyCastle.Crypto.IDig... |
d2d7185196ed8943b6c481fc788ba50bd5cff8ab | 1668222f02e3a0b23f59010335ed6d68c6abd03c | /CS 330/enrollment/courseseq.cpp | a972e01ed4bb7d83f7070249d0b06588ef144fab | [] | no_license | idiotredoc/ODUCS330 | b497cc3988e2d7f3b4a27956ee524e308013290d | dd5350155114b155fc8ccda4704ae45cd2a5e97f | refs/heads/master | 2020-04-06T05:09:00.025761 | 2013-07-26T03:13:03 | 2013-07-26T03:13:03 | 26,942,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,358 | cpp | courseseq.cpp | #include "courseseq.h"
#include <cassert>
#include <utility>
using namespace std;
using namespace std::rel_ops;
// Constructors & assignment
CourseSequence::CourseSequence()
: theSize(0), theFront(0), theBack(0)
{}
CourseSequence::CourseSequence(const CourseSequence& seq)
: theSize(0), theFront(0), theBack(0)
... |
17ba4c55326ea18bf02b51d744461d20126fca94 | 66286815cc5aa5e2598056060cc3a14d6bf297ef | /src/app/gui/painting/gitems/AbstractRangeItem.cpp | 5f06e32d31e3e03a28e5eccaff0575873e1d46a8 | [] | no_license | lukeulrich/alignshop-qt | 07b022d8b15a75a7474e13f7c0ef3c0e43275577 | 030614f8fcc6c5bb4f6ed7f10987b5e5d11fe764 | refs/heads/master | 2020-07-28T03:06:04.528197 | 2016-11-10T21:19:41 | 2016-11-10T21:19:41 | 73,421,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,782 | cpp | AbstractRangeItem.cpp | /****************************************************************************
**
** Copyright (C) 2011 Agile Genomics, LLC
** All rights reserved.
** Author: Luke Ulrich
**
****************************************************************************/
#include "AbstractRangeItem.h"
// ---------------------------------... |
8af6c6ca97aea5fd8588ee649681fb027670e032 | c72d02e7fe0e7c0ee2ade87332917e70baf067ea | /실습/GameFramework/PP14.MInputHandler/Game.cpp | 09b9689c8d49da28d4eca5988dce9ed8ff4dad91 | [
"IJG",
"LicenseRef-scancode-warranty-disclaimer",
"Libpng",
"LicenseRef-scancode-unknown-license-reference",
"libtiff",
"BSD-3-Clause",
"Zlib"
] | permissive | Kwon-Kiseok/GameFramework.20142304 | e797d873b0a841a38aa7309fc7640f6816d7d132 | f9685a9f6db9ad3d5772dd1f1a5fa03334206f85 | refs/heads/master | 2020-03-27T15:26:17.546401 | 2018-11-11T15:21:54 | 2018-11-11T15:21:54 | 146,717,913 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,676 | cpp | Game.cpp | #include "Game.h"
bool Game::init(const char*title, int xpos, int ypos,
int width, int height, bool fullscreen)
{
//main.cpp에서 m_bRunning 으로 게임 반복문의 조건을 보고 있음
//Game.h 에서 m_bRunning 이 false 값으로 초기화 되어있기 때문에
//init이 될 때 게임이 돌아간다는 것을 보여주기 위해 true로 할당해줌
m_bRunning = true;
if (SDL_Init(SDL_INIT_EVERYTHING) >= 0)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.