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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
520fcf5660600ccefefebdb06b3be9c59f68138b | 8b882de06973a60aff663cb70c0021e8dfc48336 | /ADtreePartitioner/src/CreatorChecker.cpp | 5971e8a9472932acafa0ac78c47620dad901e687 | [] | no_license | MatteoF94/meshPartitioner | 15ae2ac23eaa7029cd5e755b7fa126d09cc8a740 | a1cf16383e30f6ee0add6aa7fa8b04a0fe9f53e9 | refs/heads/master | 2020-04-22T23:54:53.878190 | 2019-04-29T22:13:34 | 2019-04-29T22:13:34 | 170,748,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,513 | cpp | CreatorChecker.cpp | //
// Created by matteo on 29/04/19.
//
#include <CreatorChecker.h>
#include <queue>
bool CreatorChecker::checkTreeIntegrity(const ADnode *const &root, unsigned int numNodes)
{
bool isConcatenationOk = checkTreeConcatenation(root, numNodes);
bool isStructureOk = checkTreeStructure(root,numNodes);
return i... |
192d979b2e9f3a2880ad3654b62e45d716540bc8 | 45a0c89317525f53263c05de68477715ed784b11 | /new_code/model.cpp | 57197453dd21a9f1941308b8883b2bebb5c9744e | [] | no_license | igudich/vFW | 4b041d4ce41c0340c898fce87d557148e359eee4 | 0e9f879f076d86c7741165d496e4b56ef049105b | refs/heads/master | 2021-01-17T18:35:57.545295 | 2016-08-14T16:11:56 | 2016-08-14T16:11:56 | 65,722,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | model.cpp | #include "model.h"
model::model(int n) {
for (int i = 0; i < n; i++)
proteins.push_back(vwf_model(params));
// proteins.resize(n, vwf_model(params));
}
void model::iterate() {
for (int i = 0; i < (int)proteins.size(); i++)
proteins[i].calculate_velocities();
for (int i = 0; i < (int)pr... |
1f49cd0a0f736c55580481b2813f6d0626aa4074 | 0f0add5e2c721c7a3381de612093a41bae0c190d | /Study/Game/Tham khao/game-con-tra/GameTutorial/CScubaSolider.cpp | 62769078c6066fe821aa262d7694dc49579b7c84 | [] | no_license | phanybien/University | 9d5a8b0a8598823b6612e07980b820469223f7e1 | 409496c8c9feca3d8420d93d6a5d91ac583cb71a | refs/heads/master | 2023-06-11T17:39:13.619405 | 2021-01-08T06:01:58 | 2021-01-08T06:01:58 | 80,742,472 | 1 | 4 | null | 2023-05-31T18:17:29 | 2017-02-02T16:11:05 | C++ | UTF-8 | C++ | false | false | 9,161 | cpp | CScubaSolider.cpp | #include "CScubaSolider.h"
#include "CContra.h"
#include <math.h>
#include "CCamera.h"
#include "CCollision.h"
#include "CPoolingObject.h"
#include "CManageAudio.h"
CScubaSolider::CScubaSolider(void)
{
this->Init();
}
CScubaSolider::CScubaSolider(const std::vector<int>& info)
{
if (!info.empty())
{
this->m_id = ... |
f2c9ebb04e77ab5d541058f5fd217c137f89ca6b | 7b5c215b2fdef1320e43dc2ca72d20fb49c9eb06 | /GeneSplicer.cpp | 459186e2951779a37897d6d295a41e12100dc6d5 | [] | no_license | ItayMeiri/Ex4_pandemic_B | 1a00763a9b245ba5fc74e0918659106d1225f768 | d1a6c78a5a27ef9d9ca0aeec224f105b326d9b1e | refs/heads/main | 2023-04-19T18:10:40.808294 | 2021-05-05T19:59:08 | 2021-05-05T19:59:08 | 364,686,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | cpp | GeneSplicer.cpp | //
// Created by ischelle on 05/05/2021.
//
#include "GeneSplicer.hpp"
namespace pandemic
{
GeneSplicer::GeneSplicer(Board board, City city) : Player(board, city)
{
//nothing
}
}
|
fd493c70b1424c7a286178b5c0693c6cf30cd311 | 5985ee10d530054574655ab90e5a7a83005ac892 | /LV5/lv5zad2.cpp | 1fa6f7b2e036d50348a18ab5920e453fb7688ed5 | [] | no_license | pavikaa/oop-vjezba | 5f9ad9e197922f46f574132b7a9fb6dd567244bc | 527d584710a555993743cf60a6e7ee62b6e8d0db | refs/heads/master | 2020-08-31T04:12:01.857003 | 2020-02-07T14:47:16 | 2020-02-07T14:47:16 | 218,584,089 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,175 | cpp | lv5zad2.cpp | #include <iostream>
#include <cmath>
#include <ctime>
#include <cstdlib>
namespace Marko
{
class Complex
{
friend bool operator==(const Complex&, const Complex&);
friend bool operator<(const Complex&,const Complex&);
friend bool operator!=(const Complex&, const Complex&);
friend bool operator>(const Complex&,... |
deafa30889dff1aa4d606905454359f4470dcfe0 | 8c5c0997627cfce5d5c5600d8122bee193c03c6e | /include/GUI/BoxElement.hpp | 27d36c606c5777ea3a8b624386a22b7af8c1ec6d | [] | no_license | nwoeanhinnogaehr/Tims-GUI | 1eb64e1b798f34e1b4cf1c2d35ddc7cf78589f0d | cc75a883759df340837f4195a76bd93ea010de64 | refs/heads/master | 2020-11-26T19:54:34.001483 | 2019-12-20T04:46:16 | 2019-12-20T04:46:16 | 229,191,869 | 0 | 0 | null | 2019-12-20T04:47:09 | 2019-12-20T04:47:08 | null | UTF-8 | C++ | false | false | 1,163 | hpp | BoxElement.hpp | #pragma once
#include <GUI/Element.hpp>
#include <GUI/RoundedRectangle.hpp>
#include <GUI/Color.hpp>
namespace ui {
class BoxElement : virtual public Element {
public:
BoxElement();
Color borderColor() const;
Color backgroundColor() const;
void setBorderColor(const Color... |
7c39d5439e81074ce93b7e7198628a74c694426d | 6417d6791494f898cb526c5b9d6f0ee263369e42 | /src/lib/internal/fb_display.cpp | b007049d44fdfaf305c140c0eb50a58bcf7fe342 | [] | no_license | mateun/fbe2 | ee3633d53cec485e94729dcda844cccc28029d69 | 24ec8b5fc0361570190bbf47e283896d28a818ee | refs/heads/master | 2021-01-11T23:19:15.729504 | 2017-01-10T19:50:26 | 2017-01-10T19:50:26 | 78,566,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,575 | cpp | fb_display.cpp | #include "include\fb_engine.h"
#include <SDL.h>
#include <glew.h>
Display::Display() {
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
SDL_Log("Error during SDL init: %s\n", SDL_GetError());
exit(1);
}
SDL_Log("SDL initialized\n");
}
FBResult Display::ShowWindow(int w, int h, bool fullScreen) {
this->_width = w;
thi... |
227ab138f42d61cdf89cce8718400dade9caeea7 | 4a9b250172bdae6946350893c246931ef89cd8a0 | /05-ScenceManager/Camera.h | a3eb103020e349c07313ce27efd9a509ebd463bc | [] | no_license | krypton99/SuperMarioBros | bc687ddc4ceb51de932611554d657001fe394bb6 | ecfbd42110cbeca0c55ec90fe2fa73919484b5c5 | refs/heads/master | 2023-07-02T21:25:11.685532 | 2021-08-05T13:50:29 | 2021-08-05T13:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | h | Camera.h | #pragma once
#include <d3dx9.h>
#include <d3d9.h>
#include "Utils.h"
#include "Game.h"
#include "define.h"
class Camera
{
private:
static Camera* __instance;
D3DXVECTOR2 position;
int width;
int height;
public:
static Camera* GetInstance();
bool islockUpdate = false; // lock when mario die
bool islockY; /... |
643daa2b31a84e26de925149cf994ec79e19eb7b | 24849db19f678bb1528808f6961fe795619d61c9 | /electionResult.cpp | e9cb8512b5aa6da87989e12b09d898d30cd5ff3e | [] | no_license | Nikita1402/my_codes | fead65c715974e603f64d130c307eb8f3fa22e8f | 70926ed6e0c6a5882e4430c1ae47235d10b759e5 | refs/heads/master | 2021-01-11T16:32:09.475288 | 2017-01-26T11:07:03 | 2017-01-26T11:07:03 | 80,104,416 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | cpp | electionResult.cpp | #include <iostream>
using namespace std;
class election
{
private:
int N,ar1[50],ar2[50];
public:
void get_data()
{
int i=0;
cout<<"enter the total number of states"<<endl;
cin>>N;
cout<<"enter the seats won by party 1 in each state"<<endl;
for(i=0;i<N;i++)
cin>>ar1[i];
cout<<"enter the seats won by... |
a971658b1017024a7e866fd3e3aa27e78119bf74 | 5352ec7b426ba9198fe9e82ac48b2fe9492ad72c | /31.03/myexception.h | 5afedb69412bbb01242271f5bed2ab8545b9fa46 | [] | no_license | AnnaSkachkauskaite/Tests | 22af471ff9635a39a75bbdc10696a6ea31be2b78 | be297f9451ba63862b6772e693988dec5a7736b1 | refs/heads/master | 2016-09-06T16:51:04.299099 | 2015-04-03T09:49:15 | 2015-04-03T09:49:15 | 18,293,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | h | myexception.h | #pragma once
//Class for exception with messages
class MyException
{
public:
MyException(const char* text);
///Get message text
const char *getErrText();
private:
const char* const message;
};
|
3525b8c3164ac398f52756296898d6ed6e9b2e84 | ab791b364e07f54605c374cbb28af428107c03d5 | /src/Mobile.cpp | bb06d9ad9af4f394c09001ab24b1e995e01b92d4 | [] | no_license | Y0annD/Pong | bf6e37a1e7147b6047c688f52b5865ccfb6f0db1 | b02bf3fe66b9336ca56184ffb31e505769726ae5 | refs/heads/master | 2021-05-28T02:49:13.055572 | 2014-10-03T15:24:52 | 2014-10-03T15:24:52 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,715 | cpp | Mobile.cpp | /**********************
* Fichier: Mobile.cpp
* Auteur: Yoann Diquélou
* Date: 23/09/2014
*
* Fichier source de la classe Mobile
*
***********************/
#include "Mobile.h"
#include <math.h>
#define PI 3.1415
/**
* Change le sens de la balle en fonction de la collision
* @param side: 1 - collision latéra... |
ecca163c808526e4f96fdad40d23507934df5f1e | d4fba9800a169f2cddcc5683cf03ddacc1ce4eb4 | /framework/src/core/application/application.h | f95eaf5543bac3f4c28b79386c6425eea0aa97a0 | [] | no_license | alex2835/GraduateWork | 3226b9720287dbdba8d4e6e682667fe43dff3a3c | 9acbd3e04d3c023850f4a29a44bc7915fe3053c3 | refs/heads/master | 2023-06-09T22:01:42.595382 | 2021-06-27T17:54:17 | 2021-06-27T17:54:17 | 317,957,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | h | application.h | #pragma once
#include "ui.h"
#include "core.h"
#include "renderer.h"
namespace Bubble
{
struct Application
{
static Scope<Window> sWindow;
Scope<UI> mUI;
Timer mTimer;
Application(const std::string& name = "Window");
virtual void Run();
virtual void OnCreate() {};
virtual void OnUpdate(DeltaTime) {};... |
206575ee56b7def531d42323daca80a92d0460b2 | 566bf67f81cbce3b5591701f08f5f97f9d15d3d6 | /Src-datafile/ExportCtl.h | 30628f5eefb9a64ab92f36b1112bd6c958923ac8 | [] | no_license | jamesjun/SpikeGLX | 38ee1f183d8eb156deed6a0b96fdd34f0c2020d4 | 5cecbb85bbdb26605c5f194dd620eaa73f14edcf | refs/heads/master | 2020-12-03T03:37:15.964737 | 2016-01-06T01:01:43 | 2016-01-06T01:01:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,710 | h | ExportCtl.h | #ifndef EXPORTCTL_H
#define EXPORTCTL_H
#include <QObject>
#include <QBitArray>
#include <QString>
namespace Ui {
class ExportDialog;
}
class DataFile;
class FileViewerWindow;
class QDialog;
class QWidget;
class QSettings;
/* ---------------------------------------------------------------- */
/* Types ------------... |
4a1b9b08a4bf110402ad1560bf4ff993f1acbe2e | 6d7996644debc8d8b26476e6e89bfb716a0f2033 | /2020-03-12 2주차/종범/벽 부수고 이동하기.cpp | 39f5167ddf2d6b1eb4343f694350adbc793066e3 | [] | no_license | OptimalAlgorithm/algo-study | e5ced70c3b38be96dbe198f266ab84a9e18797d8 | 8c68f8975179d684476c8ad828e9e896b74a872e | refs/heads/master | 2021-07-16T01:24:25.713145 | 2020-05-08T08:50:38 | 2020-05-08T08:50:38 | 233,571,089 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,442 | cpp | 벽 부수고 이동하기.cpp | // https://www.acmicpc.net/problem/2206
#include<bits/stdc++.h>
using namespace std;
typedef struct {
int x, y, cnt;
}Info;
const int MAX = 1000;
const int INF = 987654321;
int N, M, ans = INF;
int MAP[MAX][MAX];
int dist[MAX][MAX][2];
int dx[] = { 0,0,1,-1 };
int dy[] = { 1,-1,0,0 };
void bfs() {
queue<Info> q;... |
f173db5757f7a87de7fa99bcae7f95acd532176a | c0fb54f12fb776949f03b68cfb4206938bf1e55d | /Code/Resolve/resolve_function.cpp | a7cca6c24c8fdb60371b9428ae06a195d93c5163 | [] | no_license | RimmerM/Athena | 117a7137d8bd262eaa8f83ea4bcbbae3be5462e1 | 5bcd5c925079e7418326e2ec33a6dba53f474616 | refs/heads/master | 2021-01-12T20:00:20.763375 | 2016-09-19T15:56:14 | 2016-09-19T15:56:14 | 29,458,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,287 | cpp | resolve_function.cpp |
#include "resolve.h"
namespace athena {
namespace resolve {
bool Resolver::resolveFunctionDecl(Scope& scope, FunctionDecl& fun) {
if(fun.hasImpl) return resolveFunction(scope, (Function&)fun);
if(fun.isForeign) return resolveForeignFunction(scope, (ForeignFunction&)fun);
return false;
}
bool Resolver::... |
126f6e51abbcafc266b5d1ed6321bfe205381fda | a0e7d49ae37680938826ab5be26c26fecd3c6e2f | /chap08/Main.cpp | 6e58391f27604e0bfef1c6f720644c9bf7237dce | [
"MIT"
] | permissive | ojasgarg/Vulkan-API-Book | 163377338f0ff51b701b9b6f7131a43ff7c0c869 | ac552b5d9cba1c4f85d9ec911ec39698b2649c79 | refs/heads/master | 2021-12-18T16:43:30.558031 | 2016-04-19T22:22:55 | 2016-04-19T22:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | cpp | Main.cpp | #include "VulkanExample.hpp"
#if defined(_WIN32)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow) {
VulkanExample ve = VulkanExample();
ve.createWindow(hInstance);
ve.initSwapchain();
ve.renderLoop();
}
#elif defined(__linux__)
int main(int argc... |
e425f0c6d71e5acda06b24bda56743549bf117ce | 275839d3a4d7fd88a4f26a7a7ddc1337cf399218 | /GZU 1 D.cpp | c6944ac2e1d898f076af04aa7dd6ccc23cf93af5 | [] | no_license | Adalyn-h/program | f851af1b9da6f435871561565ccf5b0e0be6bfcd | 91917bbb2bcde164ffba73b0ff66bf5027b6184b | refs/heads/master | 2020-03-09T00:49:29.671929 | 2018-05-22T11:24:46 | 2018-05-22T11:24:46 | 128,498,043 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,327 | cpp | GZU 1 D.cpp | D - Number Sequence
A number sequence is defined as follows:
f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.
Given A, B, and n, you are to calculate the value of f(n).
Input
The input consists of multiple test cases. Each test case contains 3 integers A, B and n on a single line (1 <= A, B <= 1000... |
1a21edaee03b2ec168082d2c26cbeed97350a090 | 88ae8695987ada722184307301e221e1ba3cc2fa | /ash/shelf/desk_button_widget.cc | 82cc014d4b250008e3fa1c1d52cb7b3c8bce710a | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 6,121 | cc | desk_button_widget.cc | // Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/shelf/desk_button_widget.h"
#include "ash/focus_cycler.h"
#include "ash/screen_util.h"
#include "ash/shelf/scrollable_shelf_view.h"
#include "ash/shelf/shelf_lay... |
46210b73042488823adf603e51f9a222e7328a1e | 4866a8fdf75ef59c1ea4beb3e0c643430a4b645b | /483.cpp | 85a0cc3b5dc4a2167642fe0738788880b31347d4 | [] | no_license | mamun-cse-diu/uva-problem | 69dfd8de8eec641ac9c852494aa62817153aeb08 | 5044ca82bd1bf3119228f1c1727fee42222c9b06 | refs/heads/master | 2020-12-08T10:48:56.188710 | 2020-10-16T16:19:26 | 2020-10-16T16:19:26 | 232,963,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | 483.cpp | #include<iostream>
#include<cstring>
#include <cctype>
#include<bits/stdc++.h>
using namespace std;
int main(void)
{
string str,str1;
while(getline(cin, str)){
int i = 0;
while(i<str.size()){
if(str[i]!=char(32)){
str1+=str[i];
}
else{
... |
e6534f0d9a3caafd3250b4f01b39290d5db50692 | 97864bcb16c64fa86739a8d06b30b889671dde8e | /C++_code/第十一章/16.cpp | 0bf744e776b2ec5adbe08e98c53a5d5a5622565c | [] | no_license | liuhangyang/Study_notes | 67214ea88f8b04275d794b0c5dd3a2ab0437179a | 734d216ff116ce451d50c2a2e0f390b0a9a975d3 | refs/heads/master | 2021-01-10T08:44:19.007133 | 2016-03-06T02:31:09 | 2016-03-06T02:31:09 | 47,327,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 701 | cpp | 16.cpp | /*************************************************************************
> File Name: 14.cpp
> Author:yang
> Mail:yanglongfei@xiyoulinux.org
> Created Time: 2016年02月06日 星期六 12时13分04秒
************************************************************************/
#include<iostream>
#include<map>
#include<string>
usin... |
f457046348e54f6068478452d3b2cecfec377b19 | ed978f0b53789333016814c657601cdeace5c089 | /countBits.cpp | 0f2f25c57a5c454de4d572a6a4c51a00f2f6c71f | [] | no_license | sinisuba/LeetCode | 8545910d587f3eed76c4b26dfe1f8d5ac76ff5d0 | fd7492ff6a5977e288be2f1f016244fd28d5376c | refs/heads/main | 2023-06-22T02:47:24.425815 | 2021-07-17T14:15:40 | 2021-07-17T14:15:40 | 385,945,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 228 | cpp | countBits.cpp | class Solution {
public:
vector<int> countBits(int num) {
std::vector<int> ans;
for (int i = 0; i <= num; ++i)
ans.push_back(__builtin_popcount(i));
return ans;
}
};
|
c07559e722600e9a1cc47bf3b2137bb4e676e4fb | 9087bdc526014d2887659dcd5e742014c24e28a8 | /src/include/zlog/eviction.h | 01721b4e611fdb666688556f6223a260f629764c | [
"Apache-2.0"
] | permissive | cruzdb/zlog | 2e0576d0c2c1150068720b72294e075f36b4091b | 661652e83d8587bf8ea4d2a70bb5726a498f4925 | refs/heads/master | 2021-06-28T07:20:43.695880 | 2019-07-27T18:54:59 | 2019-07-27T18:54:59 | 24,872,399 | 75 | 17 | Apache-2.0 | 2019-07-27T18:55:00 | 2014-10-07T01:25:49 | C++ | UTF-8 | C++ | false | false | 355 | h | eviction.h | #pragma once
#include<string>
namespace zlog{
class Eviction{
public:
enum Eviction_Policy{
LRU,
ARC
};
virtual ~Eviction(){};
virtual int cache_get_hit(uint64_t* pos) = 0;
virtual int cache_get_miss(uint64_t pos) = 0;
virtual int cache_put_miss(uint64_t pos) = 0;
virtual... |
3c2877877bfb13513e2d1aa3257ed2eabb8112c6 | ce080dd7e8f8946dabe697f3c2406958a5c2fa96 | /Array2.cpp | d27d63e6b5546defba676c5bb429a39579274596 | [] | no_license | satyamm5082000/DSA | 0edd8852871581deb524edc66d117b4ae53e457c | 48aadffb25a58ecbda7263fd078466653945c91f | refs/heads/main | 2023-01-13T12:36:47.585858 | 2020-11-10T05:27:18 | 2020-11-10T05:27:18 | 308,723,045 | 0 | 1 | null | 2020-10-30T20:32:07 | 2020-10-30T19:17:05 | null | UTF-8 | C++ | false | false | 1,564 | cpp | Array2.cpp | #include <bits/stdc++.h>
using namespace std;
pair<int, int> solve ()
{
cout << "Enter Size of array" << endl;
int n;
cin >> n;
int ar[n];
cout << "Enter element of array" << endl;
for (int i = 0; i < n; i++) {
cin >> ar[i];
}
//print Original Array
cout << "Original Array" << endl;
for (int i = 0; i < n... |
4c4672e5f3d96a19fbcf34fe669a0d649f13ae9a | e8d37a1d5fbaf2e52d219b0e4a545ce6481e48cc | /lib_msn/MsnSSO.cpp | feea21bce0a1e38f3d5c19c2546866f89096f08d | [] | no_license | guoyu07/msn_client | 32f4c5f349c0313d1675ca3532dc0a78b01f3bbe | 818579d42777fba1f9edad49127440f3ca4c449b | refs/heads/master | 2021-01-20T22:51:28.875867 | 2014-07-27T15:19:36 | 2014-07-27T15:19:36 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 9,257 | cpp | MsnSSO.cpp | #include "stdafx.h"
#include "lib_acl.h"
#include "lib_acl.hpp"
#include "lib_protocol.h"
#include "MsnSSOTMP.h"
#include "MsnTicket.h"
#include ".\msnsso.h"
struct TICKET_DOMAIN
{
const char* domain;
const char* policy;
const char* compact;
};
static const TICKET_DOMAIN ticket_domains[] =
{
/* http://msnpiki.msn... |
764aef13d2c6e3647d3c9c8a20f2cfeae13411c7 | 832ec03d241455ecaa9f49a3d0d3395c5c606c7d | /Damas/src/Ficha.cpp | 87c42d27bf7adef199b3482bd8bb0218877d003f | [] | no_license | AlejandroNovo/TrabajoDamas | b1b30355d542bb6bdcf01d9c69ef7daee75db173 | 1f8db55508680b00807307c5cce211db675a6d97 | refs/heads/master | 2022-11-02T16:40:55.314173 | 2020-06-18T18:40:17 | 2020-06-18T18:40:17 | 266,145,178 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 1,555 | cpp | Ficha.cpp | #pragma once
#include "stdlib.h"
#include "glut.h"
#include "Ficha.h"
///CONSTRUCTORES Y DESTRUCTORES///
Ficha::Ficha(float x, float y)
{
radio = 0.35;
posicion_ficha.x = x;
posicion_ficha.y = y;
}
Ficha::~Ficha()
{
}
///MÉTODOS SET///
void Ficha::setPos(float x1, float y1)
{
... |
9452d344d1cc5fe21c0432ab30dc2bde5c52e85b | 8ba5786eb319154319b9e31e73c02d1f39705bf9 | /Sources/Clibargus/CaptureSession.cpp | d0ffe893c21fa0e3671872874b7deba6e7683ce8 | [] | no_license | Slyce-Inc/swift-argus | a0f2bcce5074b1cb574b4da2b4ab06c9966c344a | 16de88c611aeb741616d88946835209dd14ee87e | refs/heads/master | 2020-03-17T11:06:03.632618 | 2019-12-31T17:03:03 | 2019-12-31T17:03:03 | 133,538,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,872 | cpp | CaptureSession.cpp | #include <Argus/Argus.h>
#include <assert.h>
using namespace Argus;
extern "C" {
static StreamType streamTypeFromOrdinal(long ordinal) {
switch (ordinal) {
case 1: return STREAM_TYPE_EGL;
case 2: return STREAM_TYPE_BUFFER;
default:
assert(false);
return STREAM_TYPE_EGL;
}
}
static long ... |
0a977815cb95c2ff3b1a5bbd5bc5507a1f2f23ba | e3e9afeb5297c47925408626e8482c37295185da | /ComputerGraphics/snow.cpp | 9fcc2127106440d95706f0811a8f06346f60d28c | [] | no_license | dkdlel/DongA-University | 4424874a8d1c05493ac4a605ae0bd322b8510ece | 3e69b7f566efaeba0db1f9c49517417116a22da5 | refs/heads/master | 2023-02-27T02:29:04.790015 | 2021-02-06T16:18:17 | 2021-02-06T16:18:17 | 230,419,155 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,640 | cpp | snow.cpp | #include <glut.h>
#include <stdio.h>
#define size 600
#define fsize 600.0
/*
미완성본입니다.
수정하 부분은 다음과 같습니다.
(1) 모델색 지정하는 함수가 안보이는 이유는? / glColor3f의 default 값은 흰색이라서(모델일경우) 배경은 검은색이 default
(2) 클릭할 때 MyDisplay함수가 두 번씩 call 되는 이유를 말하고, / MyMouseClick 자체가 callback형태로 두번 호출 되었기 때문에 => 마우스를 누를때 한번, 땔 때 한번
한번씩만 call되도록 수정하세요.... |
6f4dc696ee82eb798e052a2e38d1630451b61dcb | 9dc21dc52cba61932aafb5d422ed825aafce9e22 | /src/appleseed/renderer/kernel/shading/shadingcontext.h | a150262c0ffcec697518a901b6c0d15564c48c79 | [
"MIT"
] | permissive | MarcelRaschke/appleseed | c8613a0e0c268d77e83367fef2d5f22f68568480 | 802dbf67bdf3a53c983bbb638e7f08a2c90323db | refs/heads/master | 2023-07-19T05:48:06.415165 | 2020-01-18T15:28:31 | 2020-01-19T11:52:15 | 236,110,136 | 2 | 0 | MIT | 2023-04-03T23:00:15 | 2020-01-25T01:12:57 | null | UTF-8 | C++ | false | false | 6,438 | h | shadingcontext.h |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//... |
3411affad1f8373479a8a1f212228e0ca96ee45a | deca9268afc46e8f69678eeb09c56a452be9e0c8 | /补码一位乘法/Booth_.h | 9a52b31126c1536213e38c4e6ab6c673f8a03560 | [] | no_license | zhaomangang/ComplementOneDigitMultiplication | 78794215d172917b76238d739b742f3c2b9aa8a4 | f70182d9df9888cd68aa15d004e7d9131884fcbf | refs/heads/master | 2020-05-17T19:40:43.093001 | 2019-04-28T14:47:59 | 2019-04-28T14:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159 | h | Booth_.h | #pragma once
class Booth
{
public:
Booth(int x, int y, int bits);
~Booth();
void count();
void Output();
private:
int x;
int y;
int bits;
int res;
};
|
b95e8ca490e57c20c7b9df7cd7ad842b9d8527e2 | e88716e09114d2f21595605db29ba8d0fb942065 | /src/tensor/tensor_comparison.cpp | a2da78ccbaaf938c48f49036f1bf77e0e7fe5db2 | [
"MIT"
] | permissive | deephealthproject/eddl | 156c6c776fa9c69aa818d6152a9e9c85e112fef4 | 5ac2005a0bd159013fce0297d2ee8e6c412d9c57 | refs/heads/master | 2023-07-21T18:37:22.168105 | 2023-03-31T08:11:46 | 2023-03-31T08:11:46 | 179,664,600 | 33 | 22 | MIT | 2022-10-24T10:09:20 | 2019-04-05T10:48:59 | C++ | UTF-8 | C++ | false | false | 14,491 | cpp | tensor_comparison.cpp | /*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 1.1
* copyright (c) 2022, Universitat Politècnica de València (UPV), PRHLT Research Centre
* Date: March 2022
* Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es)
* All rights reserved
*/
#include "eddl/tensor/tensor... |
5a7702e45650d9ac6b4d6da63f294ceaa9a29bd7 | 1794922f69a7f57b9e85f44f99b688a75071957c | /src/test/Logger_test.cpp | f04bf34966f99545f0974fb836a2002cb6b214b9 | [] | no_license | ccy0806/ccnet | cd6b989441d59da102ba2589e13d117461bed3f5 | 6375758960f69e9a17e21530b8e72805edb2ca9c | refs/heads/main | 2023-03-28T03:00:56.381927 | 2021-04-06T12:35:42 | 2021-04-06T12:35:42 | 324,103,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,707 | cpp | Logger_test.cpp | #include "include/base/Logger.h"
#include "include/base/Timestamp.h"
#include <iostream>
#include <string>
#include <cstdio>
#include <list>
void bench(const std::string dst)
{
ccnet::Logger::clearAppender();
ccnet::Logger::clearAppender();
ccnet::LogAppender::ptr la(new ccnet::FileLogAppender(dst));
cc... |
ca761c842ba6b70c574c65ce55992d7b22a6ab8d | 75aa952aa4594d5d7543b8380daaafc6d3fa46fe | /Trunk/server/Net/MessageMange.h | 5f6aa9a44c9f612116d7658bb6fb137c272bc946 | [] | no_license | supersauli/game | 25879b9594e8e93451338bf130287c3e478e0f79 | 3cd6f3da3bf0529971e58d040f43a2ea2574f49e | refs/heads/master | 2020-03-27T20:15:23.432656 | 2018-10-26T10:05:50 | 2018-10-26T10:05:50 | 147,052,768 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,986 | h | MessageMange.h | #ifndef __MESSAGE_MANAGE_H__
#define __MESSAGE_MANAGE_H__
#include <string>
#include <functional>
#include <map>
#include <vector>
#include <memory>
#include "Protobuf.h"
#include "Connection.h"
#include "Mutex.h"
typedef std::function<void(DWORD, const void*)> MessageCB;
class MessageManage
{
public:
static MessageMa... |
15a58cc926ab1efa65738561793e9f76962839a3 | c97a66e590c89e563ccae9d10d846e3d0069e8cb | /doc/src_OpenGL/DeployWorld.cpp | 0487380b1ebc82b5abb119e26d3a0421e3baf17f | [] | no_license | tomasz-kucharski/robocode | a945bc7c3ad0dfa359afc2104b64bd77f023344f | 29c3fcd612bdacae4e3cf93a96334d9b3ef4a5fd | refs/heads/master | 2020-04-04T04:56:04.149491 | 2010-12-10T01:18:36 | 2010-12-10T01:18:36 | 1,154,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,746 | cpp | DeployWorld.cpp | // DeployWorld.cpp: implementation of the DeployWorld class.
//
//////////////////////////////////////////////////////////////////////
#include "Stdafx.h"
#include "OpenGL.h"
#include "Inkludy.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
///////////////////////////... |
a968460f64cd350581ecad88753b6b41327bf7a1 | 09eaf2b22ad39d284eea42bad4756a39b34da8a2 | /ojs/vjudge/171939/I/I.cpp | 61e4b460b247cf30ef750fcf362cd3fe6e81f933 | [] | no_license | victorsenam/treinos | 186b70c44b7e06c7c07a86cb6849636210c9fc61 | 72a920ce803a738e25b6fc87efa32b20415de5f5 | refs/heads/master | 2021-01-24T05:58:48.713217 | 2018-10-14T13:51:29 | 2018-10-14T13:51:29 | 41,270,007 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,325 | cpp | I.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
typedef pair<ll,ll> pii;
int nx[3009][3009];
inline int nx_eq(int i, int x) {
return nx[x][i];
}
int a[3][3123];
int dp[2][3009][3009];
int n;
int jb[2][3009];
int best[3009];
inline int lim(int r) {
return r * 225 + 1... |
b923eee01ef106ca9fe5933081357d08f6e9c05b | 9f0ea5ca7434763c9ac871c82915f727f49dd3ef | /Incarcarea valizelor.cpp | 9e492ae76a56832dc4ad964acfd1e7c561dbf24c | [] | no_license | FlorinP2602/Probleme-ECCPR- | 031a09deb63507b2dd7fad71b0b58164a067366d | fce94a6e67cc427439dc7a801e61f1ac607728b0 | refs/heads/master | 2023-03-16T21:37:17.110812 | 2020-05-04T19:21:26 | 2020-05-04T19:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | cpp | Incarcarea valizelor.cpp | #include<iostream>
#include<vector>
#include<algorithm>
int main(){
std::vector<int>vec;
int volum,n,nr,q,suma=0;
std::cin>>volum>>n;
for(int i=0;i<n;i++){
std::cin>>q>>nr;
for(int j=0;j<q;j++){
vec.push_back(nr);
}
}
while(vec.size()>0){
... |
11f8345aa0544f67cb065c0432e7101c5b2d5d92 | 633c0fa75da9e4702096f90c377b9abbf8a0df33 | /src/uni/common/Runtime.cpp | 738b5f464e4f8f151c87cfdcac76ec315899e94a | [] | no_license | ytsurkan/uni-tasks | 1933be903c0b01c5d19ed9b2c6ffc66e2a8d2a05 | 7787d337ab3b4039735fe02a91aad1370aeb4f91 | refs/heads/master | 2023-04-24T18:58:27.201449 | 2021-05-19T15:13:25 | 2021-05-19T15:13:25 | 337,137,412 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | cpp | Runtime.cpp | #include "uni/common/Runtime.hpp"
#include "uni/common/RuntimeImpl.hpp"
namespace uni
{
namespace common
{
Runtime::Runtime(
const std::vector< std::tuple< std::string, size_t > >& thread_pool_configurations )
: m_impl{std::make_shared< RuntimeImpl >( thread_pool_configurations )}
{
}
TaskDispatcherBasic&
Run... |
4a0daf25fd4547a6c4421fac5ab267ee4e4b2a1d | b2527ae73cc56f6aa7d0854acf6efb430b1bb68c | /Codeforces/A_Non_zero.cpp | 54823ffde467f2c0f1186d617cf937f17458d598 | [] | no_license | TusharCSE35/Online-Programming | 0538e478d67505ae9f77aaa51492308e6b0d2302 | ea85e684b5032f4832fba6c21806bbed79fdc076 | refs/heads/main | 2023-06-02T08:52:32.174072 | 2021-06-15T19:58:25 | 2021-06-15T19:58:25 | 377,196,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,928 | cpp | A_Non_zero.cpp | /*********************************************************************************\
* _________ _ _ ________ _ _ __ ________ *
* |___ ___|| | | || ______|| | | | / \ | ____ | *
* | | | | | || |______ | |_____| | / /\ \ | |____... |
8717fd0ee9a83b27dc2f82f55d1300e0b883ca28 | cb613360191009945189ff9b963b80a1c7255897 | /src/cpp/ColumnVector.cpp | 6be290f059f4a3a2b989a27504daabcb7b9ff2f0 | [] | no_license | hlscalon/GradienteConjugado | 507855c0cb627a50fdf13a8d6765b16e5e04fced | 700fcb7ca2c1ffbdd6b60399e4b8a0dba51d809f | refs/heads/master | 2021-07-20T12:59:01.657169 | 2018-12-11T22:32:09 | 2018-12-11T22:32:09 | 145,348,760 | 0 | 0 | null | 2018-12-06T11:13:41 | 2018-08-20T00:49:34 | C++ | UTF-8 | C++ | false | false | 1,038 | cpp | ColumnVector.cpp | #include "ColumnVector.hpp"
#include <iostream>
#include <sstream>
#include <cassert>
double ColumnVector::operator*(const ColumnVector & b) const {
double res = 0.0;
assert(_size == b.getSize());
for (auto i = 0; i < _size; ++i) {
res += get(i) * b(i);
}
return res;
}
ColumnVector ColumnVector::operator*(... |
1f9983da3a3305fe7537fd84e557d8cc4c96fd85 | f7aebbd6b561a0d6f62fc4f048d1dd8a1cb2940e | /EngineRuntime-Linux/Interfaces/Threading.h | 744dffef2553e87b7c99fe0597faef0a63de0cf6 | [] | no_license | ManweMSU/VirtualUI | 21d4649cbb325bcd5315771cccb48693196f6ca9 | 649a70dca2f3b343469d1f6bd1f8dd085d57890d | refs/heads/master | 2023-08-17T16:09:39.574837 | 2023-08-13T11:09:26 | 2023-08-13T11:09:26 | 122,737,679 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 589 | h | Threading.h | #pragma once
#include "../EngineBase.h"
namespace Engine
{
typedef int (* ThreadRoutine) (void * argument);
class Thread : public Object
{
public:
virtual bool Exited(void) = 0;
virtual int GetExitCode(void) = 0;
virtual void Wait(void) = 0;
};
class Semaphore : public Object
{
public:
virtual void W... |
ddaa9ec864757f40cad76b6ea0f402a5323c7492 | c7f4bdec4409b83494eb1c4f8b4beccf3b3cac14 | /timer.hpp | eb2ea979cedff7bd3c1dd3125c832b104402009f | [] | no_license | Moonpoll2004/dummystructures | d77fce5942a699cf913bb880aa28d1bf21b19e67 | 0ac01bf101ad2244082f9d252f7df06c1de46edf | refs/heads/main | 2023-06-22T20:46:52.052226 | 2021-07-20T13:34:03 | 2021-07-20T13:34:03 | 380,416,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226 | hpp | timer.hpp | #include<time.h>
#include<iostream>
class Timer{
public:
Timer(){
getTime();
}
~Timer(){
getTime();
}
void getTime(){
time_t know;
time(&know);
std::cout<<"The time is "<<ctime(&know);
}
};
|
2ad381049952b33c188dac134bb193d5af3974cb | c5b5c094dc1f57173eb2d3b6fa4a03c7a7c6fe04 | /小易的升级之路 (2).cpp | 27d2588d53153aea509c5bf4f216c4cca9891ebf | [] | no_license | southern-yan/OJ_code | 393deba9bae2322b24a4224c4ed070644df1179b | d7aa1836ffcd5e2e388bd664594118ee34035460 | refs/heads/master | 2020-04-30T23:36:14.806993 | 2019-10-26T15:00:56 | 2019-10-26T15:00:56 | 177,148,320 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,161 | cpp | 小易的升级之路 (2).cpp | 题目:
小易经常沉迷于网络游戏.有一次,他在玩一个打怪升级的游戏,他的角色的初始能力值为 a.在接下来的一段时间内,他将会依次遇见n个怪物,每个怪物的防御力为b1,b2,b3...bn. 如果遇到的怪物防御力bi小于等于小易的当前能力值c,那么他就能轻松打败怪物,并 且使得自己的能力值增加bi;如果bi大于c,那他也能打败怪物,但他的能力值只能增加bi 与c的最大公约数.那么问题来了,在一系列的锻炼后,小易的最终能力值为多少?
代码如下:
#include <iostream>
#include <vector>
using namespace std;
int CommonDivisor(int a,int b)
{
... |
99bc7ce7a3a8ab40059511996cbf3a3a59d17e13 | c5117348d4e97cadc546d8573d84c8ab4eed4374 | /UnitsAndBuildings/UnitsAndBuildings/Buildings/ProtectionBuilding.cpp | f39f8f06a764dbe3e5b7d56315c73cd9a174ce16 | [] | no_license | litelawliet/JeuStrategie | 3dd5b9fc67a43dc6bdf2c09461af4f0b36229c37 | b3dcfe822c2b7039155b521a4f84c924106e2897 | refs/heads/master | 2021-08-30T22:44:34.464824 | 2017-12-19T17:05:13 | 2017-12-19T17:05:13 | 102,288,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | cpp | ProtectionBuilding.cpp | #include "ProtectionBuilding.h"
ProtectionBuilding::ProtectionBuilding()
{
std::cout << "PROTECTION BUILDING constructor\n";
}
ProtectionBuilding::~ProtectionBuilding()
{
std::cout << "PROTECTION BUILDINGS destructor\n";
}
|
830a59d32b9ed0b6d0ed5d3f639cbf0e534b2a30 | cee75861467875ca889e03f2781aa2893650df32 | /Matrix/spiralTraversal.cpp | 74f516acd9cfc73ba11ce60da8a651900cc93ebe | [] | no_license | rutuja-patil923/Data-Structures-and-Algorithms | ad9be7494d34e62843873e2f15f288d4cfc074c7 | 9259b7ac5ab593253de163660a5e6834c4d3191b | refs/heads/master | 2023-06-04T04:31:26.143670 | 2021-06-19T06:53:59 | 2021-06-19T06:53:59 | 343,661,178 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,878 | cpp | spiralTraversal.cpp | // Question Link: https://practice.geeksforgeeks.org/problems/spirally-traversing-a-matrix-1587115621/1
// Difficulty Level : Medium
// Input : R = 4, C = 4
// matrix[][] = {{1, 2, 3, 4},
// {5, 6, 7, 8},
// {9, 10, 11, 12},
// {13, 14, 15,16}}
// O... |
37ac855e0588ac4c1fabe9430a5d516b80e28446 | 3abe3677999fd53ba84e66191a870c3943eba263 | /templates/template_spec.h | a090835c7edf8d772c94eb0d20add576c64448de | [] | no_license | THTBSE/Cpp | 3bafc58bd0a0737535fcf095e3dbb39f7dce22fa | cc43ed32351641559d0013e87058cb6f0572e2fa | refs/heads/master | 2021-01-10T21:43:46.755643 | 2014-11-20T13:51:40 | 2014-11-20T13:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | h | template_spec.h | #ifndef _TEMPLATE_SPEC_H_
#define _TEMPLATE_SPEC_H_
#include <algorithm>
#include <string>
#include <iostream>
//C++ Primer 4th 16.52
template <typename Container, typename T>
size_t Count(const Container& vec, const T& val)
{
size_t count = 0;
std::for_each(vec.begin(), vec.end(), [&](const T& item)
{
if (item ... |
bd137193134b3c15409c878c33a0d25d4882b6ba | 3eef44e81cc768f08af11909fc208df8e0e88261 | /Program 4 - Adjacency Matrix/allard_brice_prog4.cpp | a1d41d3330e86bce7f6c2b79c71990e34b035a7c | [] | no_license | briceallard/2433-Discrete-Structures | 9a38996a7f443778b2945c30f23553cbd45f6ed6 | f15f2d805630f8825f9ba94aa5faa0bc7611ec41 | refs/heads/master | 2021-08-23T19:10:51.025129 | 2017-12-06T05:25:26 | 2017-12-06T05:25:26 | 104,757,052 | 0 | 1 | null | 2017-10-05T22:46:13 | 2017-09-25T13:58:56 | C++ | UTF-8 | C++ | false | false | 6,666 | cpp | allard_brice_prog4.cpp | /*
Brice Allard
Program 4 - Adjacency Matrices
Dr. Wulthrich
12/15/2017
This program gathers matrices to represent a simple and undirected
graph from input and determines if they are VALID or NOT VALID.
If they are valid the given vertex is displayed with the associated
number of degrees it has as well as dis... |
ec1c70705b552c95a9064c72ad7720147ad82ff2 | 46cc4daa3996f328618bf189dc7902ee24660120 | /BoneKeyFrame.h | 8a8e26a2262eea5adca1bb0abe0405d9b1ab8c13 | [] | no_license | comma-deng/AnimateEngine | e319b590fcdec5db672b28a9e00d17d34c892de3 | 8a6138b074b23768c9ae871d3d0412e0187f8e18 | refs/heads/master | 2021-01-20T04:22:45.801020 | 2017-05-16T12:09:47 | 2017-05-16T12:09:47 | 89,684,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | h | BoneKeyFrame.h | #pragma once
#include <glm/gtc/quaternion.hpp>
#include <glm/glm.hpp>
using namespace glm;
#define TimePos double
class BoneKeyFrame
{
public:
BoneKeyFrame(TimePos timePos,quat rotation,vec3 position):
timepos(timePos),rotation(rotation),position(position)
{}
TimePos timepos;
quat rotation;
vec3 position;
}... |
f84e34f4555ec06a355bca59d49dd0f9792ae756 | f6bc05b62b680d7a536511e24bcfb1021e352afa | /五子棋(easyX for UI)/src/makemove.cpp | d6d9909d2af4afefe6782de22d805e94a932c6df | [] | no_license | lihui91/AI_Course | 618d33340094a65aa56ed8dddfc6cfb731505907 | 83712ef9e2c54190c0b8d9d677c7056cfe447bec | refs/heads/main | 2023-08-05T08:22:12.234552 | 2021-09-20T01:54:44 | 2021-09-20T01:54:44 | 408,281,395 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,758 | cpp | makemove.cpp | /*落子函数*/
#include "define.h"
#include "printchessboard.h"
bool makeMove(int x, int y, int player)
{
if (inboard(x, y))//若在棋盘内
{
if (chessBoard[x][y])//若当前位置有子
{
return false;
}
chessBoard[x][y] = player;
steps.push(make_pair(x, y));//当前位置记录入栈
return true;
}
//执行落子操作(chessboard[i][j]=1 & chessboard[i... |
0e33af182c1b1aaaef97ab86080b8c7e711deb18 | 16d1709d5b20bd8b09bde487a7aca2714767eec8 | /linked.cpp | 073b86bfecbecd512fcb886caa7f4b00a14ff789 | [] | no_license | Harshit661000143/Work | f3dfacbed30168b80fa1da210964a824226e9ba9 | 571a984bd738ff69629216fd2fcd765b408ec582 | refs/heads/master | 2020-12-24T14:10:00.696055 | 2015-05-14T07:49:07 | 2015-05-14T07:49:07 | 30,471,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | linked.cpp | #include "global.h"
struct node
{
int data;
node *next;
};
struct stack{
node **mainNode;
node **head;
node **last;
};
node* createnode(int elem){
node *newNode= new node;
newNode->next=NULL;
newNode->data=elem;
return newNode;
}
void push(stack &s,int elem)
{
node *newNode = createnode(ele... |
f1c2d9bd189cb268813fa2a9113364a6ecdd7d31 | c88d423753d6f3ec1f5ffa9616222da88b986a42 | /include/RootIO.hh | 9fd16c7a837a5276f24eae320b83b6726afb01b6 | [] | no_license | hanswenzel/lArTest | 3124f9f9bacc8dc658271d099253e0e8db8e0e68 | 12ea7b33cc59f450d7a8488745bb9f74ff83c2d4 | refs/heads/master | 2021-01-23T01:08:00.420245 | 2020-08-13T20:46:38 | 2020-08-13T20:46:38 | 85,875,048 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 751 | hh | RootIO.hh | #ifndef INCLUDE_ROOTIO_HH
#define INCLUDE_ROOTIO_HH 1
// Include files
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "TROOT.h"
#include "TFile.h"
#include "TSystem.h"
#pragma GCC diagnostic pop
#include "SimStep.hh"
#include "AuxDetHit.hh"
#include "SimTrajectory.hh"
#include "SimEner... |
4f36b5a805c363b6700ca662df7884403512eeae | 0a8147276fe246403df9fb41ef8044ac0ca49eac | /src/vt/configs/error/assert_out.impl.h | 9af0575a983584d4621afcb39d21f0dbb18481d2 | [
"BSD-3-Clause"
] | permissive | DARMA-tasking/vt | 4fa85a95bc6102ed90534be8e556457450908ec3 | 23bb0a923bbb6a2c7e82c938493dde39cf49508b | refs/heads/develop | 2023-08-08T07:37:13.299290 | 2023-07-11T19:38:09 | 2023-07-11T19:38:09 | 104,926,650 | 37 | 14 | NOASSERTION | 2023-09-14T21:57:13 | 2017-09-26T19:06:38 | C++ | UTF-8 | C++ | false | false | 5,057 | h | assert_out.impl.h | /*
//@HEADER
// *****************************************************************************
//
// assert_out.impl.h
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Co... |
1709cfab9cfa710697a3a3f4f80e99b940e04f4b | dccd1058e723b6617148824dc0243dbec4c9bd48 | /codeforces/1360E.cpp | 8f6db856f981486b23a615428c9a385bee551192 | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | cpp | 1360E.cpp | // clang-format off
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define fi first
#define se second
#define dbg(x) cout<<#x" = "<<((x))<<endl
template<class T,class U> ostream& operator<<(ostrea... |
e2f2eb5f19847bc7189b83491e8435e207b54fb4 | c13b4778b72761d94a9b56eb6efd913096263518 | /include/Math/Math.hpp | 9ad491b9cd1c2972dbcc439e0ac636df8114c241 | [
"MIT"
] | permissive | Tecprog-voID/voID | f8e871ca667dfe270b22403c969294059004849f | 0cfac2dd384f5fa1b87b6f40117aa61f93c7ed03 | refs/heads/tecprog | 2021-01-20T03:29:27.192294 | 2017-11-30T10:44:43 | 2017-11-30T10:44:43 | 101,364,239 | 0 | 5 | MIT | 2017-11-30T10:44:45 | 2017-08-25T03:57:23 | C++ | UTF-8 | C++ | false | false | 432 | hpp | Math.hpp | #ifndef __MATH__
#define __MATH__
#include "Math/Vector.hpp"
#include <math.h>
class Math {
public:
static float Distance(float x0, float y0, float x1, float y1);
static float Distance(Vector &a, Vector &b);
static float Min(float a, float b) { return a > b ? b : a; };
static float Max(float a, float b) { re... |
7514b846b1b44fa3458ac77e5d6c733e20ab96dd | cf3912a3d9083b55044f99d7b4358b82148f5d0c | /fairycore/utils/ObjectsPool.h | 8b51327f1822c99a2807239ce8d1a115b2f38d67 | [] | no_license | SylerWang/FunFashion | 948898c19e364ad92018d10bca5c6b4bc8760c45 | 98c2845ed368839db9049b15df978bd55f334c25 | refs/heads/master | 2021-01-22T17:57:57.815402 | 2014-03-11T14:15:37 | 2014-03-11T14:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 800 | h | ObjectsPool.h | #ifndef __OBJECTSPOOL_H__
#define __OBJECTSPOOL_H__
#include "utils/SharedObject.h"
#include "MemoryPool.h"
class ObjectsPool : public SharedObject
{
public:
ObjectsPool(int min = 16, int max = 1024);
~ObjectsPool();
virtual void destroy();
static ObjectsPool* shared();
MemoryPool* get(int size);
int getMinim... |
c1311213a958b60d1f4e96eabfe94712e274ec14 | da980edfc21369319e5a01adea7405996ac96284 | /Chapter9_Class Template.cpp | 47b1fd9254bb883d0f5622a15cedce2bd2ad6d17 | [] | no_license | KamyC/C-Programming-Learning-Code | ba44079a498f6527e5e122ff34c27517a78f937d | ccbbcd65161858c99f5aeec96375da048a807690 | refs/heads/master | 2021-01-20T02:04:17.506973 | 2017-10-18T08:58:22 | 2017-10-18T08:58:22 | 101,310,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | cpp | Chapter9_Class Template.cpp | #include<iostream>
#include<stdlib.h>
#include<math.h>
using namespace std;
struct Student{
int id;
float gpa;
};
template<class T>
class Store{
private:
T item;
bool haveValue;
public:
Store();
T& getElement();
void putElement(const T &x);
};
template<class T>
Store<T>::Store() :haveValue... |
fc134b36a1f304be5ab99af2fb891a79c033fa1e | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /chinese/gcin/files/patch-table-update.cpp | e23ceec91ee26350d1afce40eaab6bdc4a75ed04 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | C++ | false | false | 250 | cpp | patch-table-update.cpp | --- table-update.cpp.orig 2018-05-21 12:32:01 UTC
+++ table-update.cpp
@@ -1,7 +1,7 @@
#include "gcin.h"
#include <sys/stat.h>
#if UNIX
-#include <linux/limits.h>
+#include <sys/limits.h>
#endif
void update_table_file(char *name, int version)
|
669a5ca0033c52986aba4cb897724943569ff5ff | 7900de3774d6378ffa2f2f1cad1c11555ef33a38 | /Link.hpp | 03cbf5e9243409f765cbe091e12755ea7f25cee7 | [] | no_license | EricDiGi/HashWithChaining | ca8315c4294884d270fd50ddcf91b55dfe70abc1 | 339b40bb261d926301171f79bd86c71c855b2764 | refs/heads/main | 2023-01-12T10:46:43.559798 | 2020-11-12T21:36:42 | 2020-11-12T21:36:42 | 312,351,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | hpp | Link.hpp | #ifndef Link_HPP
#define Link_HPP
#include <iostream>
#include "Node.hpp"
class Link{
private:
Node* head;
public:
Link();
Link(Node* l);
~Link();
void push(int point);
void append(int point);
void remove(int loc);
int search(int point);
... |
a2c271e4b54ae3ec76a7cb92017e65badcf8c21c | 0cb2972e839c827a2c72afced060d943e06c4cb7 | /basic_quad.h | 7d6a2c639c2a65826f4ad3a943d477a4aceab12d | [] | no_license | ukoeln-vis/quadperf | 7c9c7b8e64393712662ccab1158a6cb8b4f02179 | 41fa0aebd5f577897c2b0097fd772dd525761a0c | refs/heads/master | 2021-01-20T04:37:34.145577 | 2017-08-25T20:59:30 | 2017-08-25T21:00:29 | 89,710,961 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,147 | h | basic_quad.h | #pragma once
#include <visionaray/math/math.h>
#include <visionaray/tags.h>
#include <visionaray/get_normal.h>
#include <visionaray/get_shading_normal.h>
#include <visionaray/get_tex_coord.h>
#include <visionaray/intersector.h>
#ifndef CALCULATE_UV
#define CALCULATE_UV 1
#endif
#include "util.inl"
namespace QUAD_N... |
1b9c1e042552a3bfb8a3807e6378b301b6af6edf | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/collectd/new_hunk_537.cpp | 731915a31c109248b5841c21361ce0baeb3a24f7 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | new_hunk_537.cpp | return (LC_CBRET_OKAY);
}
static int cf_callback_socket (const char *shortvar, const char *var,
const char *arguments, const char *value, lc_flags_t flags,
void *extra)
{
|
fb114313bdc33fc248ba11bea2d68c79bb8ff76c | f611b61ad614065b390d1afbfe1760ee7e7501ba | /SFML Tryto/window.h | d8074ab879ed699294f3cbb235f55490aa6cdd81 | [] | no_license | Geroine/Graphic_Exam | e456a4a9c887458712feb2e5ab11f4b786ae7dc6 | 4acafdd659b552e0bf88646a5e21ab89ef97215d | refs/heads/master | 2020-12-24T18:51:09.249815 | 2016-05-01T18:29:32 | 2016-05-01T18:29:32 | 57,593,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | h | window.h | #pragma once
#include "engine.h"
#include <functional>
#include <list>
#include "unit.h"
using namespace sf;
namespace mir {
class GameWindow: public Engine {
Unit unit;
Object bckg;
public:
GameWindow();
GameWindow(VideoMode mode, char* label);
void iterate();
};
} |
14b67df2baacbd8117f5afb1bbcb2f63d6e1fbeb | 04c6d6a2534fa2e63aba918f2c038f45915ff828 | /扫描线/218. The Skyline Problem.cpp | cffb0a9240e1e812adac51b340198cbf04644818 | [] | no_license | ttzztztz/leetcodeAlgorithms | 7fdc15267ba9e1304f7c817ea9d3f1bd881b004b | d2ee1c8fecb8fc07e3c7d67dc20b964a606e065c | refs/heads/master | 2023-08-19T10:50:40.340415 | 2023-08-02T03:00:38 | 2023-08-02T03:00:38 | 206,009,736 | 17 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,424 | cpp | 218. The Skyline Problem.cpp | class Solution {
public:
vector<vector<int>> getSkyline(vector<vector<int>>& buildings) {
if (0 == buildings.size()) {
return vector<vector<int>>();
}
vector<vector<int>> answer;
vector<pair<int, int>> segments;
for (const vector<int>& building : build... |
e6378ebb26ef18293b24723515aa3f5bbbe47fca | 9175c1fe0f020bbc5ca0d934d583f84ac06fae81 | /Sources/Algorithme/XML/DictionaryEntryAttributes.cpp | eefc7be2c2a7c1af35aa427aab4acf8398b824fb | [] | no_license | erebe/Tabula_rasa | f0f0531af9bc9dcd2ebb70ac9db555270b9966a1 | 5f01da4f17f439db3746665056d172109c25400f | refs/heads/master | 2021-03-12T21:58:55.740860 | 2018-03-04T14:38:42 | 2018-03-04T14:38:42 | 1,906,141 | 3 | 7 | null | 2016-11-12T00:15:50 | 2011-06-16T14:58:12 | C++ | UTF-8 | C++ | false | false | 320 | cpp | DictionaryEntryAttributes.cpp | #include "DictionaryEntryAttributes.hpp"
const QString DictionaryEntryAttributes::ENTRY_TAG = "Entry";
const QString DictionaryEntryAttributes::NAME_ATTRIBUTE = "Name";
const QString DictionaryEntryAttributes::TYPE_ATTRIBUTE = "Type";
const QString DictionaryEntryAttributes::SIGNIFICATION_ATTRIBUTE = "Signification";
|
090b81a4676061a983b4b85f18e0d06b5faf0968 | eb2679281d0fbaf127e3ff8c37c3146e7a9635a6 | /Engine/Camera2D.cpp | 176db2084f3798ee8aee659cd3fb04d9b1370541 | [] | no_license | wtrsltnk/EditorApp | 17a66a961fb4eb6d11fb7d06323444900bd75bd5 | a88454ab41acdbfb48cedef00c05327856766e5e | refs/heads/master | 2021-01-11T10:48:13.105029 | 2017-06-26T21:10:29 | 2017-06-26T21:10:29 | 94,940,257 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,485 | cpp | Camera2D.cpp | // Camera2D.cpp: implementation of the Camera2D class.
//
//////////////////////////////////////////////////////////////////////
#include "Camera2D.h"
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
////////... |
9b8a5708a4e53d03748a8ef1c2dc461c03855f26 | 31b33fd6d6500964b2f4aa29186451c3db30ea1b | /Userland/Utilities/mkdir.cpp | 165647dfbe0bf8ec02ea4d2ec2481ce1e5019747 | [
"BSD-2-Clause"
] | permissive | jcs/serenity | 4ca6f6eebdf952154d50d74516cf5c17dbccd418 | 0f1f92553213c6c2c7268078c9d39b813c24bb49 | refs/heads/master | 2022-11-27T13:12:11.214253 | 2022-11-21T17:01:22 | 2022-11-22T20:13:35 | 229,094,839 | 10 | 2 | BSD-2-Clause | 2019-12-19T16:25:40 | 2019-12-19T16:25:39 | null | UTF-8 | C++ | false | false | 2,999 | cpp | mkdir.cpp | /*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020-2021, Linus Groh <linusg@serenityos.org>
* Copyright (c) 2021, Xavier Defrang <xavier.defrang@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/LexicalPath.h>
#include <AK/StringBuilder.h>
#include <LibCore... |
76a6792c6a927895b41f4ea9a519db85671a171f | c0de26531f7b84e0bb5b4bb75e8408c2617d1114 | /src/MPA_sync_test.cc | 53634bcdf751395c872d491ec1e473a9d79dd555 | [] | no_license | jandrea/Ph2_ACF | 9d88937b6465879e1286175e96f19951e6137d6d | f2b52aa4f71d9e116f68cf6416ae5ba105206dd1 | refs/heads/master | 2020-08-20T05:41:11.270237 | 2020-01-28T09:42:41 | 2020-01-28T09:42:41 | 215,987,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,732 | cc | MPA_sync_test.cc | //Simple test script to demonstrate use of middleware for the purposes of usercode development
#include <cstring>
#include <iostream>
#include <fstream>
#include "../Utils/Utilities.h"
#include "../HWDescription/SSA.h"
#include "../HWDescription/OuterTrackerModule.h"
#include "../HWDescription/BeBoard.h"
#include "../... |
be97c19214abcad955c746980e2d31782b416d02 | 170b2a192863dd995c45c51add91460cb7569c9f | /player/src/Components/vision/detectors/RobotDetector.cpp | 527ea3de467afc9b40b1bc189b68d8a337a92c9a | [] | no_license | mdqyy/go2012 | a3b06f082eabc4e7f6e1f6c6c480603553e477d4 | 4a847f70bc240ff48c684f2dafa41de4d9d8412b | refs/heads/master | 2020-03-31T23:00:39.641808 | 2013-10-09T17:47:25 | 2013-10-09T17:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,058 | cpp | RobotDetector.cpp | /*
* Name: RobotDetector.h
* @Author: Gonzalo Abella (abellagonzalo@gmail.com)
*
* Description: Class to detect robots from the regions
*
* Created on: 02/03/2012
*
* Copyright (C) Universidad Rey Juan Carlos
* All Rights Reserved.
*
*/
#include "RobotDetector.h"
RobotDetector::RobotDetector() : Detector(... |
34444444894d6850a2cad2b4c268d880a6f93100 | e18015da4b4c470492ab685cc833a8118d8dd4de | /Stack_Queue/stack_reverse_using_stacks.cpp | 8d2df293d0ce7ba245513ea1ae7d6f296aaa9230 | [] | no_license | Yash0150/Data-Structures-And-Algorithms | 9eb168b460d98410ff864f22a8721a0d4217df04 | 7fb7a85276059cc363e3899395ffd565f04b968e | refs/heads/master | 2020-11-24T12:14:51.342633 | 2019-12-15T06:56:56 | 2019-12-15T06:56:56 | 228,138,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | cpp | stack_reverse_using_stacks.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
void reverse_stack_using_2_stacks(stack<int>&s){
stack<int>s1,s2;
while(!s.empty()){
s1.push(s.top());
s.pop();
}
while(!s1.empty()){
s2.push(s1.top()); //SEE TRANSFER FUNCTION...........////
s1.pop();
}
while(!s2.empty()){
s.push(... |
7c0265257a0da5ac77682952f25db8d9ce59de39 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/d0/de62c532ea6cdd/main.cpp | cb0359e894030b285b585aef87385348f48eb3e6 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | main.cpp | #include <iostream>
#include <utility>
template<int N>
void print() {
std::cout << "Number was " << N << std::endl;
}
template <int, int> struct printmany_helper;
template <int I, int Max>
struct printmany_helper {
static void
do_() {
print<I>();
printmany_helper<I + 1, Max>::do_();
... |
b27aa3682940ab3fc5a69d1833afffde881fd942 | 59ff05d734fafdf2bcbb956eb29c86247dc968b2 | /contatori/contatori.ino | 161ceb59638904000afadc776d6c052b5a7f229b | [] | no_license | JasRoss/hw_e_sw | af18f8a648e13c5c52676314fdc0d1fb49db85dc | e43365ef0c0517505f61437ee762d733391bc644 | refs/heads/master | 2021-01-10T16:31:42.432015 | 2016-04-04T12:42:29 | 2016-04-04T12:42:29 | 51,528,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,444 | ino | contatori.ino |
/* Questo programma funziona come un cronometro
Si possono prendere solo due tempi, ma si possono facilmente aggiungerne
altri nel programma
Il funzionamento è molto semplice: oscurando la fotoresistenza (regolandone
la sensibitià tramite un potenziometro) si "prende" il primo tempo,
oscurandola una sec... |
95eb518c7f50c7582a76d130f97808caa107959a | 6279e01d0bdbd6c128fd5259c32a117ccd4451d7 | /Power/Forest.h | 751c999cbeb15670f93a83a0a6568553bc7f4583 | [] | no_license | yanranzhao/small_world | b6b39438eeacb2fb6ef2490c3e305a127d2218a9 | a8e9c0ea32f3e4f9b6b8dc0f327e0194914387cf | refs/heads/master | 2020-04-04T22:23:50.539431 | 2018-04-09T19:57:23 | 2018-04-09T19:57:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | h | Forest.h |
#ifndef FOREST_H
#define FOREST_H
#include "Power.h"
class Forest : public Power {
public:
Forest();
virtual ~Forest();
virtual void powerSkill();
};
#endif /* FOREST_H */
|
3ed7d975dff4cc2787bdf3c65cce6df1332ee8b6 | cd3d20ecf0f051d48e0fc8a18f7f1a829a82cf4f | /GEng/GEng/ParticleWater.cpp | b4acd152766a698f85695845158f3520b445c3bb | [] | no_license | The-Skas/Game-Engine | b7c7ac56b70df6bd2f1e8813f8d006d017a5f6d7 | d1eadd3b9e06221231e19ef7685f2d812100e3f2 | refs/heads/master | 2016-09-06T01:43:39.883568 | 2013-09-30T11:59:32 | 2013-09-30T11:59:32 | 9,579,708 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,013 | cpp | ParticleWater.cpp | #include "ParticleWater.h"
#include "ParticleManager.h"
#include "_Math.h"
#define MAGNETIC_SCALE 0.025f
void ParticleWater::AddWater()
{
ParticleGroup* temp = p_manager->AddParticle(new ParticleGroup(0));
float rnd = RandRange(0.5f, 1.0f);
temp->r = rnd; temp->g =rnd; temp->b = 1.0f; temp->alpha = 1.0f;
/... |
8206f5dd30af8f2238e26646e60b61dd1cac3a9e | ed366eeff30a48adfc4ccd65eaaf2725de4d235e | /cplusplus4.cpp | d01c540b5d97a6de97a171a2008949860898357d | [] | no_license | seansio1995/c-STL | 8c1898c2419c33b823c49845369d729fa1d9fd79 | f4c95e058834ba9adab17c37764969ddc30ebefc | refs/heads/master | 2021-01-01T20:08:55.195772 | 2017-08-01T04:04:03 | 2017-08-01T04:04:03 | 98,777,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | cplusplus4.cpp | #include <stack>
#include <iostream>
using namespace std;
int main(){
stack<int> foo,bar;
foo.push(10);
foo.push(20);
foo.push(30);
bar.push(10);
bar.push(20);
foo.swap(bar);
cout<<"size of foo: "<<foo.size()<<endl;
cout<<"size of bar: "<<bar.size()<<endl;
return 0;
}
|
191625b240244ae14ac0e2825c403d00fae44333 | b263e58999c7eab1575a000ad8eebc0ea0d4aa41 | /openFrameworks/nextworld/Scene/MemberSceneDemo.hpp | aa9bd89dd3ce37dbf3fe374dd3a129496f2f88ef | [] | no_license | SakuragiYoshimasa/Stockyard_Cpp | e92db6e1cbfb769f7654dec3e927dcffa121a0f8 | a4760c6caa029ec7049c12aab0a2db06aa9ab149 | refs/heads/master | 2021-01-20T10:29:43.200175 | 2017-08-28T12:45:22 | 2017-08-28T12:45:22 | 101,634,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | hpp | MemberSceneDemo.hpp | //
// MemberSceneDemo.hpp
// NextWorld
//
// Created by SakuragiYoshimasa on 2016/02/28.
//
//
#ifndef MemberSceneDemo_hpp
#define MemberSceneDemo_hpp
#include "SceneElement.hpp"
#include "TimeManager.hpp"
#include "PointCloudPainter.hpp"
#include "ModelManager.hpp"
#include "ofx3DFont.h"
class MemberSceneDemo : ... |
3cb0f6d394beefd1bf1da239e6ebea06836df0a6 | 54daca967d8c54eacdb1c341a2863ec569f27c48 | /Assignment_2/gloom/gloom/src/VertexArrayObject.h | 854142c3b0dde67228d14c3fa773ef4dfe139c32 | [
"MIT"
] | permissive | balazsorban44/Visual-Computing-TDT4195 | 937bcdd35c50a770d7a6e2d966b1c0ef6f5f33bc | 09d05d1f3d6db023a55eb41c7988d4cc64da51b6 | refs/heads/master | 2020-03-27T16:44:43.307543 | 2018-11-20T12:36:46 | 2018-11-20T12:36:46 | 146,803,325 | 0 | 0 | null | 2018-10-10T11:15:08 | 2018-08-30T20:30:19 | C++ | UTF-8 | C++ | false | false | 323 | h | VertexArrayObject.h | //
// Created by balazs on 9/10/18.
//
#ifndef GLOOM_VERTEXARRAYOBJECT_H
#define GLOOM_VERTEXARRAYOBJECT_H
class VertexArrayObject {
private:
unsigned int m_rendererID;
public:
VertexArrayObject();
~VertexArrayObject();
void Bind() const;
void Unbind() const;
};
#endif //GLOOM_VERTEXARRAYOBJECT... |
5ca44997c0dc7d67d3fbdb72baf8dff52de9acb1 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /CodesNew/4676.cpp | beab79fda1dbd11ce3359a168d7da56d9403b673 | [] | 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 | 3,125 | cpp | 4676.cpp | // Bismillahir Rahmanir Rahim
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
typedef vector <ll> vec;
typedef pair <ll, ll> pr;
typedef pair <ll, pr> pr2;
typedef map <ll, vector<ll> > mv;
const int MX = 2e6+1... |
f0328cc96b8c567abe80f5d998f61f1ddf0fdeca | d1241da8c1d5ca251a80da8fcb1e4df535b1d7f0 | /include/sim/SbmlOdeModel.h | c6168bb857b076dc7131ee7d2ad5d504cad9b5a0 | [] | no_license | reogac/salib | 296b310655286254bb375665fd88107cd582a593 | b209f91314f74a77b31e2925a6545a071f5472c7 | refs/heads/master | 2016-09-06T10:10:18.397835 | 2015-05-27T02:45:55 | 2015-05-27T02:45:55 | 35,530,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 788 | h | SbmlOdeModel.h | /**
@file SbmlOdeModel.h
@brief Header file for SbmlOdeModel class
@author Thai Quang Tung (tungtq), tungtq@gmail.com
*/
#ifndef SbmlOdeModel_INC
#define SbmlOdeModel_INC
#include "OdeModel.h"
#include <memory>
#include <sbml/SBMLTypes.h>
BIO_NAMESPACE_BEGIN
class SbmlOdeModel : public OdeModel
{
public:
... |
3fb4fbe2a8ddd2f64a1a1e05a2e7cec657c97c40 | f7657ad1c34e0d0bac83d5577261e48a8a483045 | /src/space_operator.hh | fa77d24d6cc47ff292cc7ff387376c8da8b17711 | [] | no_license | jurakm/imbibitionEq | 39fbf3b6179e5ea71204c283c7b2ef939875c82a | c6e0cd05c55a00226fdc1252ba6c53e2864bb96a | refs/heads/master | 2021-08-24T06:12:58.078575 | 2017-12-08T10:37:30 | 2017-12-08T10:37:30 | 113,551,773 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,339 | hh | space_operator.hh | #ifndef _SPACE_OPERATOR_INCLUDED__
#define _SPACE_OPERATOR_INCLUDED__
#include <dune/pdelab/localoperator/idefault.hh>
#include <dune/geometry/quadraturerules.hh>
#include <dune/geometry/referenceelements.hh>
#include <dune/pdelab/localoperator/defaultimp.hh>
#include <dune/pdelab/localoperator/flags.hh>
#include <d... |
af56597d478545ca8dfa6f1735538f58079ded97 | 452940d5084a5b4977772cb6ada9ac6f0cd056a1 | /qtEditor/SigSlot2Test.h | 0bdb8006fa01e75901e8ff1e4e0dbebeba8984d3 | [] | no_license | timur-losev/framework2d | d11a77e85f79fd3e97a8c7de85b51a3199791d1c | 3865db9d5db787adf0b2965814b46569fa1b2e1f | refs/heads/master | 2016-09-15T23:24:16.855667 | 2014-07-28T14:45:12 | 2014-07-28T14:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | h | SigSlot2Test.h | #pragma once
#include <Sigslot2.h>
/*struct Switch
{
typedef Common::Signal<void> SignalClicked;
typedef Common::Signal<int, float, const std::string&> SignalMod1;
SignalClicked Clicked;
SignalMod1 Mod1;
void AttachOnClicked(const SignalClicked::SlotType& slot, Common::HasSlots* t... |
fe123bcdbff4d128f9014acd55ced6a1eb725ae3 | d9090a6dd15b35e51983d11a11a2778a52fd2a3d | /QueueUsingTwoStacks.cpp | 7d49e239f64fbe481cd35e12e64b187d9067edfe | [] | no_license | somshekharjuja/My_Practice_examples | a40828e5ad72398c6d2088b1b378bd9f359469a8 | 67042856fc3b1c627ddf34fadc4cf58930cf0f82 | refs/heads/master | 2023-06-24T14:06:05.506846 | 2021-07-22T11:00:39 | 2021-07-22T11:00:39 | 388,429,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | QueueUsingTwoStacks.cpp | #include<iostream>
#include<stack>
using namespace std;
class Queue
{
private:
stack<int> s1;
stack<int> s2;
public:
Queue(){}
void enqueue(int data);
int dequeue(void);
};
void Queue::enqueue(int data)
{
s1.push(data);
}
int Queue::dequeue()
{
if(s2.empty())
{
while(!s1.empty())
{
s2.push(s1.top(... |
f436fc297fc958ea02132b343dd7323fabf8323a | da169bcc57d4a5df9d1144b59a74c0acb00e5738 | /Euler1/Euler22/simpleEuler22.cpp | 49291d1f780ac6a6c78e76cd7291bf043a24375a | [] | no_license | CornottoC/Project-Euler | e7e0448f232ef67a472deafd302e2a84db1b1d19 | 7902515a2bf023b0ca16deb8acbb92d386282e4e | refs/heads/master | 2016-08-13T01:50:49.585969 | 2016-02-19T11:33:20 | 2016-02-19T11:33:20 | 50,362,054 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | cpp | simpleEuler22.cpp | #include "stdafx.h"
#include "simpleEuler22.h"
#include <fstream>
#include <iostream>
#include <algorithm>
simpleEuler22::simpleEuler22()
{
}
simpleEuler22::~simpleEuler22()
{
}
void simpleEuler22::readFileAndPopulate(std::string filename)
{
std::ifstream fileStream(filename);
std::string temp;
char tempChar;
w... |
97c12b107fa5f3d598ffd8e10fb38d2af07c4fc3 | 5ef608dedc72eb714b354f5c188b39a2a2e18556 | /src/Waypoint.cpp | e747851278eb8604f7b7ef54867487dc21338ef5 | [] | no_license | Bezifabr/BoardGameProject | 61740c44c6e29cba303a124c46ef78fc0d5f2377 | 2172ab561b25a0db6c217bf9fd8ab36222786b51 | refs/heads/master | 2021-09-18T14:33:51.008377 | 2018-07-15T21:33:32 | 2018-07-15T21:33:32 | 139,689,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,442 | cpp | Waypoint.cpp | #include "Waypoint.h"
Waypoint::Waypoint()
{
SetLayer(1);
SetLocation(1);
}
void Waypoint::GetDataFromString(const std::string & command, const std::string & value)
{
assert(!command.empty());
assert(!value.empty());
cout << command << " = " << value << endl;
if (command == "Pos_x")
SetPosition(sf::Vector2f(... |
b69e68cf1da3369e0eda7057191449010e8eb561 | c85ef8bc2625e5febb3a769089bffd6a6054e7a4 | /socket_comm/SocketComm.h | 6536d33b85d4f50f0491063efed4135a27688336 | [] | no_license | leihui6/life_scripts | 1ba3c625b0693e526015a4eb04003cf3ec0f4cca | 67cd9bdc23891876b94b8beccd51e71147262bb2 | refs/heads/master | 2022-09-26T00:04:51.378684 | 2019-11-08T12:06:48 | 2019-11-08T12:06:48 | 81,578,118 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,059 | h | SocketComm.h | #pragma once
#include <WinSock2.h>
#include <iostream>
#include <string>
using namespace std;
#pragma comment(lib,"ws2_32.lib")
class SocketComm
{
public:
SocketComm();
~SocketComm();
public:
/*server*/
int server_init(const string & ip, const int port);
int server_receive(string & str);
int server_close()... |
0e9ace494cc2440453a66b5101de798d8c023a89 | 5319388e47f7fb169307a8fd3f784dfb0a263c55 | /problems/67.2.cpp | 40ee5c38d5802aa968c49b9fe6ee8df4109fc4f1 | [] | no_license | PrivateAmareelez/TA | 68197b5dea417465e70e7cbfd551a6aee0a05004 | f253e75daaaf1b460f5f5d2c528063b10eebab70 | refs/heads/master | 2020-04-15T00:12:14.112259 | 2017-05-25T21:06:56 | 2017-05-25T21:06:56 | 83,183,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | 67.2.cpp | #include <vector>
using namespace std;
#ifdef ONLINE_JUDGE
#include <fstream>
ifstream cin("input.txt");
ofstream cout("output.txt");
#else
#include <iostream>
#endif
int cnt = 1;
vector<vector<char> > g;
vector<int> mark;
void dfs(int v) {
for (int i = 0; i < g.size(); i++) {
if (g[v][i] == '1' && ma... |
e7c6ebf9f2e03313f56712cf9b29f1559a2926c8 | 3082eabb774ec5bbd71ce522f8fe052bd237ad8b | /AnKi/Scene/Components/JointComponent.h | 69b47256d47eaae6c6ccd452683df1d874a22871 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | godlikepanos/anki-3d-engine | b8099d53ec92849a93e428f2a2df9b1a02698aa8 | fd12a5f960b55568c86130cd54941179969c9348 | refs/heads/master | 2023-09-02T05:52:37.099035 | 2023-04-08T12:16:49 | 2023-04-08T12:16:49 | 23,955,091 | 1,204 | 93 | NOASSERTION | 2023-04-08T12:16:50 | 2014-09-12T09:41:20 | C++ | UTF-8 | C++ | false | false | 1,765 | h | JointComponent.h | // Copyright (C) 2009-2023, Panagiotis Christopoulos Charitos and contributors.
// All rights reserved.
// Code licensed under the BSD License.
// http://www.anki3d.org/LICENSE
#pragma once
#include <AnKi/Scene/Components/SceneComponent.h>
#include <AnKi/Physics/PhysicsJoint.h>
namespace anki {
/// @addtogroup scen... |
a052a5eed1badd22d5943dce8924aa54dfaf8c9e | 3a1c6383fa90c3da1a7672277f074fa4b8c6cff4 | /BlockHistMatch.h | abb9760059f02d6e7cbeef9e0a065c6eec00cf70 | [] | no_license | a1a2y3/ES | 6b86223965a5e879a5570ddeaca1dba660fe2cc7 | 223b7dfe7e7392f174733eac2f5b0df534d540f0 | refs/heads/master | 2016-08-12T08:53:21.131053 | 2015-05-21T06:50:07 | 2015-05-21T06:50:07 | 35,996,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | h | BlockHistMatch.h | #pragma once
#include <opencv\cv.h>
#include <opencv\highgui.h>
class CBlockHistMatch
{
public:
CBlockHistMatch(void);
~CBlockHistMatch(void);
private:
cv::Mat m_pointMat;
std::vector<CvPoint> m_samplepoints;
cv::Mat m_hMat;
int m_patchR;
int m_patchW;
float m_smallRX;
float m_smallRY;
CvPoint2D32f m_pointInL... |
7896cda44e72c7c1f2c5c6e4d01b26767e562551 | 38633929cc76964bd8ad5da8c7693df4fcaab5a1 | /server/Modules/BlueprintsStorage/BlueprintsStorage.cpp | 81834181ec19351d24847d9f50d6d7e9e66227f9 | [] | no_license | ziminas1990/space-expansion | 0a7ef132d1ef87a003e164a980df994b1518caf4 | f9a6ec5533ec9eb115f20a8d7c050f4e9f8d78e9 | refs/heads/master | 2023-08-08T20:31:22.354761 | 2023-07-01T13:32:09 | 2023-07-01T13:32:09 | 180,645,475 | 2 | 1 | null | 2023-07-01T06:26:20 | 2019-04-10T18:58:25 | C++ | UTF-8 | C++ | false | false | 5,607 | cpp | BlueprintsStorage.cpp | #include "BlueprintsStorage.h"
#include <yaml-cpp/yaml.h>
#include <World/Player.h>
#include <Blueprints/BlueprintsLibrary.h>
#include <Blueprints/BaseBlueprint.h>
#include <Blueprints/Ships/ShipBlueprint.h>
#include <Utils/StringUtils.h>
#include <Utils/ItemsConverter.h>
DECLARE_GLOBAL_CONTAINER_CPP(modules::Bluepr... |
8b045817080007d1c41a6a312e2c3678db325d34 | b9404a88c13d723be44f7c247e1417689ce7981a | /include/External/stlib/packages/shortest_paths/SortedHeap.ipp | 01bda8a87c29af71b55a77fc3de693ba7241800a | [
"BSD-2-Clause"
] | permissive | bxl295/m4extreme | c3d0607711e268d22d054a8c3d9e6d123bbf7d78 | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | refs/heads/master | 2022-12-06T19:34:30.460935 | 2020-08-29T20:06:40 | 2020-08-29T20:06:40 | 291,333,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,559 | ipp | SortedHeap.ipp | // -*- C++ -*-
#if !defined(__SortedHeap_ipp__)
#error This file is an implementation detail of the class SortedHeap.
#endif
namespace shortest_paths {
//
// Manipulators
//
template <typename T, class Compare>
inline
void
SortedHeap<T, Compare>::
push(value_type x) {
if (size() < base_type::cap... |
80a0b5966b64c5d3d2470fe3bc15885da97570a3 | bef07d79c7188c63d85b847b1f7a933f20f23e5d | /chapter3/pe/q6.cpp | 3f46aaf5f6a38f2e448f7137982628e2da733727 | [] | no_license | BrynGhiffar/cpp_primer | 40ded06efa33dc66f01bece3e1a461710206d78d | f562d7db431936e87967caf3e28d81a65b6a51e1 | refs/heads/master | 2023-08-13T02:48:47.484968 | 2021-09-30T15:19:47 | 2021-09-30T15:19:47 | 389,925,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | q6.cpp | #include <iostream>
int main(){
using namespace std;
cout << "Enter distance driven, petrol used:\n";
long long dist;
cout << "Enter distance driven (km): "; cin >> dist;
long long petrol;
cout << "Enter petrol used (litres): "; cin >> petrol;
const double d100km = 100.0;
cout << "petrol consumption (litres /... |
e8b079a2ce0fa8abe3e28d00d6bcbcd1ef60f206 | 4e6ff0df53eed87a7e6af713e57df1b7d926d945 | /external/wavelet_construction/onlineWT/src/bitarray.hpp | 53fd112fee5681f89d89ad2cbf6191f08a4ec638 | [
"BSD-2-Clause"
] | permissive | Kimundi/pwm | 878c4f52f88a12a24f543a0eb06bd68cf0fc334c | 7e0837d0e3da6cf7b63e80b04a75a61b73b91779 | refs/heads/master | 2022-11-13T13:34:04.755324 | 2020-07-12T20:28:51 | 2020-07-12T20:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,178 | hpp | bitarray.hpp | #ifndef BITARRAY_H
#define BITARRAY_H
#include <limits.h>
#include <stdlib.h>
#include <stdint.h>
#include "bitsandbytes.hpp"
/**
* @file bitarray.h
* @author Paulo Fonseca
*
* @brief Tight bitarray implemented as a raw byte_t array supporting
* utility read/write operations.
*/
/**
* @brief Creates a new ... |
7692309a5187e0a9129506c43b9f78fa338772b2 | 1468b015f5ce882dbd39dc75c9a6560179a936fb | /Emulator/test/Weapon1.cpp | ef293920307b375685a9f8d136f6e63aca2aadc9 | [] | no_license | Escobaj/HearthstoneResolver | cbfc682993435c01f8b75d4409c99fb4870b9bb3 | c93b693ef318fc9f43d35e81931371f626147083 | refs/heads/master | 2021-04-30T22:31:01.247134 | 2017-01-31T00:05:32 | 2017-01-31T00:05:32 | 74,474,216 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | cpp | Weapon1.cpp | //
// Created by escoba_j on 30/11/2016.
//
#include "Weapon1.h"
Weapon1::Weapon1(const EventHandler &e) : Weapon(e) {
this->set_attackMax(1);
this->set_defaultCost(6);
this->set_name("Weapon 1");
this->set_membership(Class::WARRIOR);
this->set_description("blah blah, c'est une arme, bl... |
3eec9794d625894e45ab261a705ac688c66cafc8 | 18d4dbc23dd4e574035df164d699863b30fda4ad | /trunk/ENGINERESEARCH/CATFISH/Game/Rhythm/Rhythm.h | f373b7337cbba2c2c8162579afe69a2877d3ad10 | [] | no_license | hatsunemiku02/2014-engine-research | f09ca6bf6b9b511cd6ded79aa264657ccc231742 | 4c684bdbaf22347025534793524e042b201a664e | refs/heads/master | 2021-01-11T17:39:41.513596 | 2017-01-23T15:29:44 | 2017-01-23T15:29:44 | 79,816,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,755 | h | Rhythm.h | //
// Rhythm.h
// Catfish
//
// Created by zhaohang on 14-4-14.
// Copyright (c) 2014年 zh. All rights reserved.
//
#ifndef __Catfish__Rhythm__
#define __Catfish__Rhythm__
#include "../../Math/cmlmath.h"
#include <string>
namespace Sprite
{
class Sprite2D;
class Lable;
}
namespace MikuGame{
enum Score
... |
7f8d11328a8bf731ffea1ee107217825a5891742 | fd7d1350eefac8a9bbd952568f074284663f2794 | /dds/DCPS/InfoRepoDiscovery/DataReaderRemoteImpl.h | 4aa29e1144c8e44d3cdc20b51365b39c0ba09bc4 | [
"MIT"
] | permissive | binary42/OCI | 4ceb7c4ed2150b4edd0496b2a06d80f623a71a53 | 08191bfe4899f535ff99637d019734ed044f479d | refs/heads/master | 2020-06-02T08:58:51.021571 | 2015-09-06T03:25:05 | 2015-09-06T03:25:05 | 41,980,019 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,513 | h | DataReaderRemoteImpl.h | /*
* $Id: DataReaderRemoteImpl.h 5526 2012-04-19 14:54:13Z johnsonb $
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#ifndef OPENDDS_DCPS_DATAREADERREMOTEIMPL_H
#define OPENDDS_DCPS_DATAREADERREMOTEIMPL_H
#include "InfoRepoDiscovery_Export.h"
#include "DataReaderRemot... |
ea98ad3462f10cacfd40804753d0a085016273b2 | 6c8dafe293c24ec79f2f1b2bcf8eb52015bdb36f | /src/opengl.cpp | 4cf002fcedf1f6c07bb052684237b1b847bb9335 | [] | no_license | aalin/game2004 | a483aefe33e3ce327b1c3d55a070cb09e92c00e9 | de5e2da8ef1e5446e73672aa2b1a2fca9671b92b | refs/heads/master | 2022-07-13T16:48:24.218786 | 2020-05-17T12:02:25 | 2020-05-17T12:02:25 | 263,699,489 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | cpp | opengl.cpp | #include "opengl.hpp"
#include <iostream>
#include <string>
void _glPrintErrors(const char *file, int line, bool printOk) {
GLenum error_code;
std::string error;
unsigned int errorCount = 0;
while((error_code = glGetError()) != GL_NO_ERROR) {
switch(error_code) {
case GL_INVALID_OPERATION:
error = "GL_... |
aba74c8d8cb2a7ab54991a348e1a76f4fefaba8f | a4046e1e29fcd52c257c21fe88f82ab3c4ad0b6a | /src/clips/YellowCircle.cpp | 20deaed2148f485e39614c71fd0fbda3235b846a | [
"MIT"
] | permissive | Biniou/ofRaspberryPiVj | c9573266d3d85b856049a56db483089bc17a357e | 9763ca4ec5511d32a8893c53ec0bac7e95519d72 | refs/heads/master | 2021-01-15T21:39:25.025122 | 2014-01-10T11:55:17 | 2014-01-10T11:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | YellowCircle.cpp | #include "YellowCircle.h"
YellowCircle::YellowCircle()
{
//ctor
}
YellowCircle::~YellowCircle()
{
//dtor
}
//--------------------------------------------------------------
void YellowCircle::setup(){
Clip::setup();
}
//--------------------------------------------------------------
void Yellow... |
07cef4c56c17e0e49d78a848aa0a278e4471ff01 | c17ef4827869dbed4fd9e9af70ed77d620898b77 | /cses/1639.cpp | 37cfc5565bbb0fa417ebc94d8de223ddb1c3c824 | [] | no_license | Dsxv/competitveProgramming | c4fea2bac41ddc2b91c60507ddb39e8d9a3582e5 | 004bf0bb8783b29352035435283578a9db815cc5 | refs/heads/master | 2021-06-24T15:19:43.100584 | 2020-12-27T17:59:44 | 2020-12-27T17:59:44 | 193,387,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | 1639.cpp | #include <bits/stdc++.h>
using namespace std ;
#define int long long
const int N = 5e3 + 10 ;
int dp[N][N] ;
int solve(string&a , string&b , int i = 0 , int j = 0){
if(i == a.size()){
return abs((int)b.size() - j) ;
}
if(j == b.size()){
return abs((int)a.size() - i) ;
}
if(~dp[i][j]) return dp[i][j] ;
if(a[... |
3792c1c5c17f5062a7ddc473ae18ba3d34cf02e3 | 1b0918517e6acb8bdd673647aad868562d443ea0 | /CyberCup.ino | 7e6a2d72ccfdfef704ad518f50ac5c41fd1a1e1f | [] | no_license | nmdantas/fiap-cybercup-2016 | 14d9ac6ae1467cbedf4f2d0c3c3297815549f9bc | 1caf46f8f044e90cca8197252acacafc55348cf2 | refs/heads/main | 2022-12-30T12:26:37.641044 | 2020-10-20T22:41:49 | 2020-10-20T22:41:49 | 305,849,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,467 | ino | CyberCup.ino | /*
=================================================================================================
Instituicao: FIAP
Programa : Comportamento e manipulacao dos componentes de um robo motorizado seguidor de linha
Autor(es) : Alex Cantero, Bruno Espadaro, Floriano Cabral, Klinton Sae Lee e Nicholas M. Dantas
Tu... |
a999e6fff0140404c8cbcb8b7ab9c3dd81e9fa52 | cf9c5be94cc05d0785e32cdce6531b52541eb85b | /cBoardState.h | 82f448495ba8eb383376bad18c0854f762c0158d | [] | no_license | marcod234/chessMPI | 970da7433b99f7f5ac8b554af19b89a5c6848d38 | 130c85c13b74b2332935f62b6f60d735da022b5e | refs/heads/master | 2020-03-24T00:57:10.341006 | 2018-08-10T13:43:17 | 2018-08-10T13:43:17 | 142,316,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,165 | h | cBoardState.h | /*
* boardState.h
*
* Created on: Jul 25, 2018
* Author: mduarte
*/
#ifndef BOARDSTATE_H_
#define BOARDSTATE_H_
#include <iostream>
#include <string>
#include <vector>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <algorithm>
#include <pthread.h>
#include "mpi.h"
#include "cHash.h"
#... |
8440ce325b5100ad44388809d9cea7e53c2ad41c | 45655b17701dcd18c4991f1912793d7b6d444360 | /graphics.cpp | c98ba1b5c1e7759075287068ed07a8956203cf3b | [
"MIT"
] | permissive | t1meshift/roguelike | d7397dd183c7a6016dcf6bd847e1b1a32282df33 | f80cda6442a919c900dd07cba94d5d30d9ff30c3 | refs/heads/master | 2020-04-22T00:19:37.943548 | 2019-02-22T05:25:19 | 2019-02-22T05:30:21 | 169,975,736 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 580 | cpp | graphics.cpp | // This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "graphics.h"
namespace graphics {
void init() {
engine::init_graphics();
atexit(engine::shutdown_graphics);
}
int width() {
return engine::width()... |
7bc4a3ec015c9447d9c4f3fad93ef2f5cbb982a5 | 28602cb4b03a7b9d27463d6de05aaa3ff55a0e84 | /modules/Application/debug.cpp | d70c13b52d65b78756f5d9d08bf49a9db00c9ab7 | [] | no_license | zhiltsov-max/tower-defense | c34f5a0c0edb335c343ab42bdd71b23567ac44af | c94d5dc8de32a0ac618877964d3f020e8fd6f8f1 | refs/heads/master | 2020-05-21T23:44:35.968388 | 2018-05-31T12:47:50 | 2018-05-31T12:47:50 | 52,546,090 | 1 | 0 | null | 2018-05-31T12:47:51 | 2016-02-25T18:09:35 | C++ | UTF-8 | C++ | false | false | 1,031 | cpp | debug.cpp | #include "debug.h"
#include <ios>
#include <iostream>
#include "application.h"
TDebugTools::TDebugTools(const DebugToolsInfo& info) {
debugLog.rdbuf()->pubsetbuf(nullptr, 0); //make unbuffered I/O
debugLog.open(info.path, std::ios_base::trunc);
ASSERT(debugLog.is_open() == true,
... |
840c7137bbb6c0e4ded23f544f9b5e5aa5c027e2 | 07a87ad4aa358b7524d25bed4af776620aa56fa0 | /SCProjects/OpprimoBot/Source/UnitAgents/Protoss/ReaverAgent.cpp | 351a8ee6c0f1b9ccc3b8bfed4a36f3e604366540 | [
"MIT"
] | permissive | jhagelback/OpprimoBot | 9a515dbacc3d22bd63d3a3ca869ebb1c7e81eed9 | 65eeb7e0c838e47df5027c8a746248bd30299640 | refs/heads/master | 2016-09-11T07:40:31.122742 | 2015-04-19T09:41:33 | 2015-04-19T09:41:33 | 34,200,025 | 20 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cpp | ReaverAgent.cpp | #include "ReaverAgent.h"
bool ReaverAgent::useAbilities()
{
int maxLoad = 5;
if (Broodwar->self()->getUpgradeLevel(UpgradeTypes::Reaver_Capacity) > 0)
{
maxLoad = 10;
}
if(unit->getScarabCount() < maxLoad)
{
if (unit->train(UnitTypes::Protoss_Scarab))
{
return true;
}
}
return false;
}
|
23993f80d738b29cabb16ca927f886ec55466ff2 | 5db166d5dc9cd2eca745c147fc15c4fc4c1be5cf | /SwitchOnDigital2Input/SwitchOnDigital2Input.ino | 32fd7ed3b97207739dfa87f943a160df32ab0b7e | [] | no_license | 5MT/035 | 4976cdc3bac0a79f6f290a4a28f0b2c20b18e410 | d1acc2988990551a2ee62ae5953584c02a26712c | refs/heads/master | 2021-01-03T09:05:00.326731 | 2020-05-31T14:20:06 | 2020-05-31T14:20:06 | 240,012,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | ino | SwitchOnDigital2Input.ino | const int iSwitchPin = 2;
int iSwitchValue = 0;
void setup() {
// put your setup code here, to run once:
pinMode(iSwitchPin, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
iSwitchValue = digitalRead(2);
Serial.println(iSwitchValue);
delay(10); // 読むまで待機するら... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.