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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95254a8b15093515c15e287853ed55824e7bd078 | 096f86d816a86bf0fe774dcd350d191820bf2290 | /src/airdrone_gazebo/drone/plugins/src/gazebo_quadrotor_propulsion.cpp | 47cad183e5aafe7e1c3608f78bbe9731e9104cc1 | [
"MIT"
] | permissive | ncos/mipt-airdrone | f1e1d75b8d1a6cc6a28eb80f922620fd1f78adba | 75450c6fda05303b04c190682aa5c8fc029327f6 | refs/heads/master | 2016-09-06T18:53:41.039844 | 2015-03-13T23:18:59 | 2015-03-13T23:18:59 | 17,603,073 | 2 | 2 | null | 2014-10-10T17:00:37 | 2014-03-10T18:13:03 | C | UTF-8 | C++ | false | false | 10,766 | cpp | gazebo_quadrotor_propulsion.cpp | //=================================================================================================
// Copyright (c) 2012, Johannes Meyer, TU Darmstadt
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are... |
db75e7350a7ed472fe5391985a9a0e06f957d9af | baf7927dcb69ea476a4e601621fea802c0616f13 | /src/engine/Terrain.cpp | c0462dc8a583ce167e450fdfb4c697a6e1d67ede | [
"MIT"
] | permissive | Zycon42/Heightmap | d5227f91f90c06802d380fc6d080c406c7978c33 | 63d46abfc77f0427f604d68edfb8a4fe0117e7d1 | refs/heads/master | 2016-08-04T17:22:34.345772 | 2013-12-20T00:14:47 | 2013-12-20T00:14:47 | 15,296,378 | 1 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 2,985 | cpp | Terrain.cpp | /**
* @file Terrain.cpp
*
* @author Jan Dušek <xdusek17@stud.fit.vutbr.cz>
* @date 2013
*/
#include "Terrain.h"
#include "ArrayRef.h"
#include <cassert>
struct Vertex {
glm::vec3 pos, normal;
};
Terrain::Terrain(const HeightMap& heightMap) {
// check that sizes match to avoid buffer overflow
assert((heightMap.h... |
02e93be987d945f72b1fab3db4dcdf0cd24f4662 | f699576e623d90d2e07d6c43659a805d12b92733 | /WTLOnline-SDK/SDK/WTLOnline_UI_HUD_SteamInventoryDropArea_classes.hpp | 62189b8403a51ad3ee993e061a2b94d4ce96fc61 | [] | no_license | ue4sdk/WTLOnline-SDK | 2309620c809efeb45ba9ebd2fc528fa2461b9ca0 | ff244cd4118c54ab2048ba0632b59ced111c405c | refs/heads/master | 2022-07-12T13:02:09.999748 | 2019-04-22T08:22:35 | 2019-04-22T08:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 805 | hpp | WTLOnline_UI_HUD_SteamInventoryDropArea_classes.hpp | #pragma once
// Will To Live Online (0.57) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "WTLOnline_UI_HUD_SteamInventoryDropArea_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------------... |
ae4a96187b192941d7f38a123cf1c48092667e5d | 4100749ca52cee89bc288fb6c5b1511d56ee305a | /Project1/kruscal_TPATH.cpp | 72956a0db34eed6d6af0e341a658e3b51e65a5be | [] | no_license | jisukJ/algorithm-source-code | 20b981d020413db314a59f915090c7c0a58177b0 | 27656a6ffd90c7a98153167d13354e7efc24258e | refs/heads/master | 2023-04-18T12:04:38.845848 | 2021-05-04T11:50:18 | 2021-05-04T11:50:18 | 339,270,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,410 | cpp | kruscal_TPATH.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
#include <math.h>
#include <iomanip>
using namespace std;
const int MAX_V = 2000;
vector<pair<int, int>>adj[MAX_V];
int V, E,C;
int ans;
const int INF = 1000000000;
vector<pair<int,pair<int,int>>> weight;
vector<int>edges;
struct disjointSet ... |
86df985627c548f7079a98a6070fcb2ee489d068 | 5d6237b731b9d3bf3e43a3de6bd67df3ccfa9b45 | /linux/css.cc | 17fba0bef480028767f9cb31f05b92852abd601a | [] | no_license | jamshidh/translato | ed8d7f7f32e3d0077cb87966c7210b37200211b4 | 68043b9ecc8d2600e6b597f205b6e10edb15a4a0 | refs/heads/master | 2021-01-22T20:54:17.221599 | 2015-11-06T23:31:49 | 2015-11-06T23:31:49 | 34,648,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,081 | cc | css.cc | #include <gtk/gtk.h>
#include <gtk/gtkmain.h>
void applyCSSToWindow(const char *styleString) {
GtkCssProvider *provider;
GdkDisplay *display;
GdkScreen *screen;
provider = gtk_css_provider_new();
display = gdk_display_get_default ();
screen = gdk_display_get_default_screen (display);
gtk_style_cont... |
2c76785611a1faf41b1ffca107dd3a2ad80ba36c | 492a621d240e8e249f82a3e5ca387180190fd0c0 | /Proyecto3/3/p3.cpp | 6c81befd2858e59d0739555a8ab3633da9f61f12 | [] | no_license | joseluisjb1990/ci5651 | e194ac5170a8b09536b0706426374b86e7910d21 | 3be876adfff06cb3a07e91fc368c66d63d61bad0 | refs/heads/master | 2021-01-20T10:36:30.039247 | 2015-03-15T23:38:59 | 2015-03-15T23:38:59 | 29,275,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,698 | cpp | p3.cpp | #include <iostream>
#include <vector>
#include <sstream>
using namespace std;
int n;
int *numeros;
int ***memoMatrix;
void initMatrix(int ***memoMatrix)
{
for(int i = 0; i < n; i++)
for(int j = 0; j < n; j++)
for(int k = 0; k < n; k++)
memoMatrix[i][j][k] = 0;
}
void printMatrix(int ***memoMatri... |
8e669577a1d164b1244a094905b5c83f44bfc8f6 | 7b729c4839ddb57a9cad7f84bdaaa35aa871c59b | /Playlist/Playlist.h | 901b2e5fc19c36a9612c9638e6ea203fc0c22cf0 | [] | no_license | tuanxn/Playlist | 1683f4fabe5779c67c6a93dfeb9053cce37f7a12 | 859da104af4ad0eb9da661e2a73c13f50696ebf4 | refs/heads/master | 2022-11-08T20:38:57.251684 | 2020-06-23T14:35:04 | 2020-06-23T14:35:04 | 273,967,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,661 | h | Playlist.h | // Important implementation note: With the exception of to_string() and find...()
// all Playlist methods below should operate in a constant amount of time
// regardless of the size of the Playlist instance.
//
// The semantics of prev_to_current is such that it always points to the
// node *BEFORE* the cursor (current... |
307881a52f2973438718ad5d0ac1638ee6e60da5 | 7cddd418f09223d71dd5758559f133921ad878ac | /2018/test0313-2/test02.cpp | 1a33d1a3e2e17da15fab4151c4857cd2da4143f4 | [] | no_license | lijuni/allCPPTest | 599b946eae46da919f1e4a5aba2b5ea1c1425688 | 9c3b23e61d12bc911cb1f9c3eb0a5cccabec6967 | refs/heads/master | 2020-03-19T09:19:42.551206 | 2018-06-06T05:42:01 | 2018-06-06T05:42:01 | 136,278,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | cpp | test02.cpp | #include<iostream>
using namespace std;
int main()
{
constexpr size_t array_size=10;
int a[array_size];
for(size_t i=0; i<array_size; ++i)
a[i]=i;
}
|
74d333bbd18187c4472f0d39ba51c15ebfc69001 | ed9404757f5ee1a2270da3520b6dd797f91c1f5b | /track_oracle/file_formats/track_kw18/track_kw18_instances.cxx | c4fd373008ce16b1de34c826a96ff052ab1c0094 | [
"BSD-3-Clause"
] | permissive | tao558/kwiver | 5d88b7868441ad6222fa2f08ab46a6544271830f | 51d671228ada60dd41e465cf9c282cba8614b057 | refs/heads/master | 2021-07-04T09:57:36.587434 | 2020-10-14T13:26:40 | 2020-10-14T13:26:40 | 304,072,315 | 1 | 0 | NOASSERTION | 2020-10-14T16:24:51 | 2020-10-14T16:24:51 | null | UTF-8 | C++ | false | false | 824 | cxx | track_kw18_instances.cxx | /*ckwg +5
* Copyright 2017 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_box_2d.h>
#include <vital/vital_config.h>
#i... |
aa5a4f1790863777689ed02f7291a1dfa7a86508 | 29e866d407dd8a12b3e87a802efe3809913891f4 | /test/bls_c256_test.cpp | f433b78109fd0fc95fb37f072d7b73a9f4844cf4 | [
"BSD-3-Clause"
] | permissive | prysmaticlabs/mcl | 9eaedf666e04c844543af573f8c867e71307e1a0 | 79b3a33e21072712f00985ed2adf34b3bcf0d74e | refs/heads/master | 2020-04-02T07:36:34.316310 | 2019-01-08T16:54:17 | 2019-01-08T16:54:17 | 154,205,223 | 2 | 1 | NOASSERTION | 2019-06-19T20:43:10 | 2018-10-22T19:39:09 | Assembly | UTF-8 | C++ | false | false | 54 | cpp | bls_c256_test.cpp | #define MCLBN_FP_UNIT_SIZE 4
#include "bls_c_test.hpp" |
6563f7e0d140169b63bb27b251309a0a4a225698 | 11b24a4e9313fddf721b552d736ea1ae9c98f05e | /mycat.cpp | 41ff9ef6f405d112c3a203d1f5a8fc4647749598 | [] | no_license | chefZau/Unix-FileSystem-Simulator | 3463b9e39d694da04a619c34abd97831e219530f | a9232ba2fe45d7d155558771dd42e5aeaf8b8bfc | refs/heads/master | 2023-02-26T03:45:17.243363 | 2021-01-31T15:18:38 | 2021-01-31T15:18:38 | 212,415,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | cpp | mycat.cpp | /**
* @author MingCong Zhou
* @desc pass argument by command promomt, mymv linux command
* @date 2019/10/2
* @student_number 250945414
* @student_account MZHOU272
*/
#include "file.h"
/**
* Will dump the contents of all files given as parameters to the terminal.
* mycat: mycat filename1 filename2 ...
... |
73add14f4edd4f964899dd6777d8c646d60eadd3 | 682116aec2ecfddccbad6f6f2320b7bf5f2115fa | /maxcode/neuron/iv/src/lib/IV-2_6/compeditor.cpp | ccd604197a105a63bd8977de817e724d8698b6e4 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive"
] | permissive | Rauell/neuron | 251423831bb93577e74ae98cee2cb38b0f05e3f4 | f7f0a80122aec2b748aa2bef10b442fbeef8a12c | refs/heads/master | 2016-09-06T06:22:19.357913 | 2015-07-17T13:26:44 | 2015-07-17T13:26:44 | 30,427,231 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,403 | cpp | compeditor.cpp | #ifdef HAVE_CONFIG_H
#include <../../config.h>
#endif
/*
* Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University
* Copyright (c) 1991 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provi... |
5e08b32debbab6b6d1f801afa9c7befe419db0d8 | f5fb39010aec616f37ac24427f6af61dcdfd3756 | /Pokemon_Mystery_Dungeon/Atile.cpp | ce5067e62eacb75c7dcbeb4ddd29b7e86fd60c3e | [] | no_license | JinKyong/Pokemon_Dungeon | 08df9ce02362a239525730aaa06aaa46c4bfbc0e | c595cdcb92f822b54e99e1a366f797712ad69475 | refs/heads/main | 2023-07-31T05:01:27.372424 | 2021-10-03T13:00:52 | 2021-10-03T13:00:52 | 384,614,340 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 564 | cpp | Atile.cpp | #include "stdafx.h"
#include "Atile.h"
Atile::Atile()
: _totalCost(0), _costFromStart(0),
_costToGoal(0), _parentNode(NULL),
_idX(0), _idY(0), _isOpen(true)
{
}
Atile::~Atile()
{
}
HRESULT Atile::init(int x, int y)
{
_idX = x;
_idY = y;
_center = PointMake(_idX * TILEWIDTH + (TILEWIDTH / 2),
_idY * TILEHEIG... |
1de3edafa5dc98ee8fe8fc3eb4b6d1fca84e22a0 | ab4654ec4e18fecbd9e5c38690a5c773ad5fc9fe | /spoj/AMR10G.cpp | c655cad6ec696563bdce246b40af9af12d430548 | [] | no_license | khushhallchandra/algoPractice | ebfb91626cee3c55456310d763d10078ae3a3b47 | 598bad668b1139e47d892394fbebb287e746d9c6 | refs/heads/master | 2020-04-04T05:52:06.898170 | 2017-01-01T18:26:45 | 2017-01-01T18:26:45 | 45,354,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | AMR10G.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main(){
int T, n, k, minDiff, a[20000];
cin>>T;
while(T--){
cin>>n>>k;
for(int i = 0; i < n; i++)
cin>>a[i];
sort(a,a+n);
minDiff = a[k-1]-a[0];
for(int i = 0; i + k <= n; i++)
minDiff = min(a[i+k-1]-a[i], minDiff);
cout<<minDiff<<... |
d7fc20cc73c88b70356fd3220a9f4d3705b03fde | d252cd575e6241f2fe3cb8b545acf8a50f6a346c | /www/snapper/engine/protocol.h | 58b3aa1b6fa413586bb4bcd6ba9a44934409cb34 | [
"BSD-3-Clause"
] | permissive | lenovo/Snapper | 2363fc42901f03d46c4cfb03c17e083170574249 | 4300739bbdf0b101c7ddd8be09c89f582bf47202 | refs/heads/master | 2020-07-08T20:57:33.116182 | 2020-02-02T15:22:20 | 2020-02-02T23:57:09 | 203,777,163 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,103 | h | protocol.h | //---------------------------------------------------------------------
// <copyright file="protocol.h" company="Lenovo">
// Copyright (c) 2018-present, Lenovo. All rights reserved. Licensed under BSD, see COPYING.BSD file for details.
// </copyright>
//-------------------------------------------------------------... |
79ce0e168fed2a03f7f92edb1a71d9f5c220d8b6 | d6da8f710dfd79b56d542617961e4a7126d2234e | /sourcefiles/JSONReader.h | 6c20e5ef279e0cc93222d16ad71311daa9e9d758 | [] | no_license | cgsingh/Basic-JSON-Parser | 0fcf90928a501398d6eb9859bd6f9ee2a558dbf1 | 962889a70419791591be063e8321441736f2a138 | refs/heads/master | 2020-12-18T15:08:33.865520 | 2020-01-21T20:10:33 | 2020-01-21T20:10:33 | 235,431,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | h | JSONReader.h | /*
Name: Christopher Singh
Course: OOP345A
Date: October 10, 2014
*/
#include <iostream>
#include <string>
#ifndef JSONREADER_H
#define JSONREADER_H
namespace json
{
struct Collection
{
std::string objectName;
std::string name[50];
std::string value[50];
};
int read(const std::string&, std::string*);
int extract... |
afc684064faf06c8b789ef35f9e4bcea9ebbebf1 | aa811a8479b36946e8c2e882f1e5ca5662f20d0d | /2D/CollisionQuadTree/src/main.cpp | 820a2df8c6a3d2141041ea88a9a3ece6493dbec0 | [] | no_license | MichaelSt98/NNS | 107747e8875d2ac513bdedb66a5ddf58a5163e2b | 597739cd00d05442bb6ace8bca24df5f141b290b | refs/heads/main | 2023-08-16T11:09:11.577019 | 2021-08-18T08:52:50 | 2021-08-18T08:52:50 | 331,554,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,452 | cpp | main.cpp | #include "../include/Rectangle.h"
#include "../include/Particle.h"
#include "../include/QuadTree.h"
#include <time.h>
#include <iostream>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Font.hpp>
#include <SFML/Window/Event.hpp>
/** Settings **/
Rectangle WINDOW_BOUNDS = { 0, 0, 1280, 720 };
Rectang... |
0779badba60d609be0847b36c88b17849153a1d1 | f87be3873076c1e21ddd1378eb14b5f574887642 | /src/client/data/Friend.cpp | 04da6cb021f79cb228715d54135adc50d687fcd0 | [] | no_license | edd83/Skype-like | d50e29362e9f9f0e2e482fd8ef7f4684d70de848 | b30f16d2f9f528a70d7779d8864919196062e154 | refs/heads/master | 2021-05-02T17:52:59.399992 | 2018-02-09T11:01:33 | 2018-02-09T11:01:33 | 63,306,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | Friend.cpp | #include "Friend.h"
Friend::Friend(QString const &name, eFriendStatus status)
{
this->_name = name;
this->_status = status;
}
Friend::~Friend()
{
}
QString const &Friend::getName() const
{
return (this->_name);
}
eFriendStatus Friend::getStatus() const
{
return (this->_status);
}
void ... |
d58d993bebff6afae7bf358d5a5d66e5014cf263 | 5d3aa2c7603fcb287e764e30fc1ef5983d28ce5b | /Client/Header/Define.h | 3e79ebd8a7ba10243a0d8b9b7351dae1f181ae34 | [] | no_license | AlisaCodeDragon/AliceMadnessReturns | f46d3178df90c6ccf6da5c76a83c1f9ac809c28f | 80b322253846c50fc130cd540051a64440fe62e7 | refs/heads/main | 2023-03-18T14:26:37.758657 | 2021-02-08T13:43:35 | 2021-02-08T13:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | Define.h | #ifndef Define_h__
#define Define_h__
#include "Typedef.h"
#include "Function.h"
#include "sjhD3DXFunction.h"
#include "Macro.h"
using namespace Client;
#include "Enum.h"
#include "Const.h"
#include "Struct.h"
extern HWND g_hWnd;
extern HINSTANCE g_hInst;
#endif // Define_h__
|
31ad18dbf5f195acc5cb6052ab1342bb8835e998 | 12113d8c87d3181138117d5adfeeeb0eeab18202 | /DXFrameWork/DefaultWindow/Client/HPBar.cpp | 0f7c1720240107ae948c13deacb047dd13f36a79 | [] | no_license | Jangk/DX2D | 101156924da8dc36c3f16c06eae03f0b4a23fc41 | 4fa7021721e1c50efe75936b3cd9eddf4a6cc3d2 | refs/heads/master | 2020-12-22T18:13:23.135881 | 2020-03-11T01:25:19 | 2020-03-11T01:25:19 | 236,884,541 | 1 | 1 | null | null | null | null | UHC | C++ | false | false | 3,025 | cpp | HPBar.cpp | #include "stdafx.h"
#include "HPBar.h"
#include "Player.h"
#include "Character.h"
CHPBar::CHPBar()
{
}
CHPBar::~CHPBar()
{
Release();
}
int CHPBar::Update()
{
return 0;
}
void CHPBar::LateUpdate()
{
}
void CHPBar::Render()
{
D3DXMATRIX matScale, matTrans,matWorld;
const TEX_INFO* pTexInfo;
// 최대체력바
pTexIn... |
92bc0f5aa4733891b112354aa2cd8f2f53f504f3 | 386e9266dbd463d261d99a77a7cbe22a80ed61b0 | /HW.2.SE.18-19/Task3/Main.cpp | 138d42b510a1a7e99dc32bdcd50d1a3de6a48ee4 | [] | no_license | andy489/Object_Oriented_Programming_with_CPP | f629c756d3aa784a5a5c6fe9fccc6a85717d1633 | 492266ecd99b0de36b3f941b3397d2b69b195206 | refs/heads/master | 2023-04-17T05:38:52.159375 | 2021-05-04T18:16:23 | 2021-05-04T18:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | Main.cpp | #include "Admin.h"
int main()
{
Guest guest1("11.111.11.111"); guest1.print();
User user1("22.222.22.222", "andy489", "1234", "Andrey Stoev"); user1.print();
user1.changePass("0000", "newPassword");
//checking function changePass and the encrypting & decrypting also
user1.changePass("1234", "new"); user1.print(... |
d1f29b3d665c44d1e66af3030ea405bd04c6455e | 88486227b16de4b785affafd087cbbceaf34e167 | /models/event.h | be521fb50a7fa356ea2ae7b3fafd857d1d540712 | [] | no_license | MigotMateusz/Time_organizer | 92cd3bc49aa145aa8e952e49663a5e32884727ed | a103de969e636925ad815830267c92070c5a3da1 | refs/heads/master | 2022-06-23T09:27:15.281734 | 2020-05-10T10:59:46 | 2020-05-10T10:59:46 | 246,005,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | event.h | #ifndef EVENT_H
#define EVENT_H
#include <string>
#include <QDate>
#include <memory>
#include <QDateTime>
#include "mycalendar.h"
class Event
{
private:
std::string name_of_the_event;
std::string description;
std::string place; //optional
QDateTime date;
std::shared_ptr<MyCalendar> calendar;
publ... |
b91db27ad0e6ce78ce54249d949eca14c8c90851 | 28a7775b5d34b50a5b7dd07d07aaaf9204aa355e | /AdventOfCode/Day1.cpp | ff742cdda0a2e6fd71c4f5ef59d74f3d97065277 | [] | no_license | wkhughes/AdventOfCode2016 | bdbb1c625cb5d860a54136b2761be71a5d627ee0 | 6241f595018cc60ff5054ffbc1980dc6fc6e9381 | refs/heads/master | 2020-06-13T01:58:08.308688 | 2017-12-01T10:17:16 | 2017-12-01T10:17:16 | 75,465,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,333 | cpp | Day1.cpp | #include <sstream>
#include <string>
#include <algorithm>
using namespace std;
enum class Direction
{
North,
East,
South,
West
};
Direction goRight(Direction direction);
Direction goLeft(Direction direction);
string instructions = "R4, R1, L2, R1, L1, L1, R1, L5, R1, R5, L2, R3, L3, L4, R4, R4, R3, ... |
0a4fb051351a8e2a6a87d5b5977b26ff1bcb4b67 | cf8088a2a79a2070883e864dfeffc24c5ddd331d | /BurnServer_Core/src/Burn/tslib/Source/TSFile.h | d21dd21e7be9ddb845f7f1b0087b957583b31ea6 | [] | no_license | qingswu/CD-Burn | 5ae644d465ec145805d23a37577f911729ef679d | 5f71f858b38c8e570784356c8a1d7014f0ab94f3 | refs/heads/master | 2021-05-09T06:08:24.198985 | 2017-04-20T16:03:12 | 2017-04-20T16:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,137 | h | TSFile.h | ///////////////////////////////////////////////////////////////////////////////
/******************************************************************************
Project ZMediaServer
TSFile Header File
Create 20120302 ZHAOTT read support
*****************************************************************... |
15518a95fa7909f9536828fbf1de3186703427c8 | b3cebb6540be701d0df9a330fab5a4c9bfb24c6d | /cppProjects/smart_home/inc/atomic_value.hpp | 970118174ed3b5b4b45ed40c852e1aaacc5ce8d3 | [] | no_license | SivanTelTzur/projects | cd97662164127033a462c607cf2d295eee9341a1 | 8f49857c61fe64abecdf82bb84d82b4c0c83b3b9 | refs/heads/main | 2023-03-31T01:06:57.716591 | 2021-04-04T10:12:51 | 2021-04-04T10:12:51 | 344,538,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | hpp | atomic_value.hpp | #ifndef E0AFE807_C888_479C_87A7_F50D64534D4C_H__
#define E0AFE807_C888_479C_87A7_F50D64534D4C_H__
namespace advcpp
{
template<typename T>
//{requires : T in an integer value (char, short, int, long)}
class AtomicValue {
public:
explicit AtomicValue(T a_initialVal = T(0));
//~AtomicValue();//default
Atom... |
15c52df8f5f8f615269c28064d582d4b93ecc72e | 49808d5e67f372395608e4f6e39591239e525e06 | /game.h | b45869f89ef604908186b8b54641d6a27290f4fc | [] | no_license | sarojshakya01/RPG-Game | a81eedef4b95dac3da636248e03e44b6c9be9b42 | d233c54b10ed2e7cc0f7df29dafc7b565a7b8188 | refs/heads/master | 2023-04-15T22:10:56.442262 | 2021-04-25T09:01:40 | 2021-04-25T09:01:40 | 254,435,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | h | game.h | #ifndef GAME_H
#define GAME_H
#include "character.h"
using namespace std;
class Game {
private:
Character *players[2];
int current_turn;
int num_of_characters;
public:
//constructors
Game();
//getters
int getTurn();
int getCharacters();
//other functions
void RemoveCharacter(int);
void AddCharacter(Char... |
cc5c8428e615bf8d82d7b123bc69db4a56144a59 | b395fca4065fd496715a0c306d5ff643cecd31cc | /source/Core/Castor3D/Render/Technique/Opaque/Lighting/MeshLightPass.cpp | 910f59d760d624266a7eb37ab3c8739eb85882b3 | [
"MIT"
] | permissive | vn-os/Castor3D | e357372268f94a76d61e5b0059bf40f5c1f4f66a | fdaf4067e1a657979690ef6c6746079602e29d8e | refs/heads/master | 2023-06-05T19:45:24.819879 | 2021-02-19T01:39:54 | 2021-02-19T01:39:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,679 | cpp | MeshLightPass.cpp | #include "Castor3D/Render/Technique/Opaque/Lighting/MeshLightPass.hpp"
#include "Castor3D/Engine.hpp"
#include "Castor3D/Buffer/GpuBuffer.hpp"
#include "Castor3D/Buffer/UniformBufferPools.hpp"
#include "Castor3D/Material/Texture/TextureLayout.hpp"
#include "Castor3D/Material/Texture/TextureUnit.hpp"
#include "Castor3D... |
8cf41e1bcc8f6b5582b624db1fb29a843035c4e3 | 6014e8b21ff501c1f7f00ae54b95a908c7f94feb | /PSC_Ychanger/stdafx.h | becf7d44482cfd87d4f563c7e0fa815db1cde918 | [] | no_license | YukiiiPL/POS | c29c57d80983a8a6417ee75170f8dd4750403704 | 9aae39e3fe425e918f992ad8692bb8a53f13f8e7 | refs/heads/master | 2021-01-17T16:42:54.827049 | 2016-06-28T05:49:27 | 2016-06-28T05:49:27 | 61,650,924 | 0 | 2 | null | 2016-06-28T05:49:28 | 2016-06-21T16:50:05 | C++ | UTF-8 | C++ | false | false | 1,029 | h | stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
#include <atlstr.h>
#include <sys/stat.h>
#include <sys/stat.h>
#in... |
8754c7c4c7e076f42ec6754f21b01dd5946d43e0 | 7444df64f8faf5c0b5cb45d00e76fbd10b07d654 | /src/Renderer/Components/MeshRenderer.cpp | c5445d8977f56d54c8593b289af47b2d10d72c25 | [] | no_license | adriankrupa/AKEngine | 21945dacaf0885ff67acc54636317d1fbfeb4ca4 | ef8d5f4e037ca7fa7ab6a21f90e031d93003cb80 | refs/heads/master | 2021-01-20T13:37:31.528358 | 2017-03-03T09:19:24 | 2017-03-03T09:19:24 | 82,704,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98 | cpp | MeshRenderer.cpp | //
// Created by akrupa on 2017-02-24.
//
#include "akengine/Renderer/Components/MeshRenderer.h"
|
b934da0a78e26a4c275b9ea9efffe06f8d4e59d3 | fc732bfc6f69a578b919c0fca2b35ebf6eded22e | /Arena/source/Managers/soundSingleton.cpp | 20062fd65c0fde2e4012cc22918462a4d91d9f84 | [] | no_license | polymonster/demos-archive | 62ae3af439d6b1da115976365e055a1b2e5a797c | 86347051fe35b926ed9f9826af4474cde0635059 | refs/heads/master | 2020-05-01T18:00:28.238367 | 2019-08-13T14:37:21 | 2019-08-13T14:37:21 | 177,614,524 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,447 | cpp | soundSingleton.cpp | #include "soundSingleton.h"
CSound* CSound::m_instance = NULL;
void CSound::create(){
if(m_instance == NULL)
{
m_instance = new CSound;
}
}
void CSound::destroy(){
if(m_instance)
{
delete m_instance;
m_instance = NULL;
}
}
void CSound::kill(){
for(int i = 0; i < 3; i++)
{
FSOUND_Stream_Stop( g... |
b017e1400d712c6506f0b678fb55b8e85430bd8b | e01cca8d52c08bbfd4bd039acd508d2c55a5ea52 | /lib/sound.cpp | d047bff3038eec61262117e7d24940aef93314cb | [] | no_license | Yahao277/RobotMaze | f97c3acc637814f5bef3ff8a0096055daffb23a3 | 26098394eb76eb9a95c188079c40e79679a9fc32 | refs/heads/master | 2021-08-14T12:12:18.553160 | 2017-11-15T17:21:46 | 2017-11-15T17:21:46 | 105,135,027 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,450 | cpp | sound.cpp | #include <SDL.h>
#include <stdlib.h>
#include <math.h>
#include <cassert>
#include "libreria.h"
#include "sound.h"
#include "stb_vorbis.h"
#define NUM_CANALES_STEREO 2
#define NO_SOUND_CHANNEL_AVAILABLE -1
#pragma warning(disable : 4... |
b88f1eeb60a2a5e76199d2f653bff79b6f02f96b | 4eabb12af4c20ca251dc076cd79ea1d4e321acc6 | /project01/SongTest.h | 7b0e816d41755931baf4372d5d64b805473bcb32 | [] | no_license | Elilewis327/cs112 | fd609b3ea6a035e25faf2c2faf629725624242fd | 80839a1eb933de30b8b3a1d3e16896a28ed1fa5d | refs/heads/main | 2023-08-11T19:10:41.744047 | 2021-10-03T21:26:11 | 2021-10-03T21:26:11 | 410,397,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | h | SongTest.h | /*
* Author: Eli Lewis: etl3
* Date: 9/5/21
* Begun by: Joel Adams, for CS 112 at Calvin University.
*/
#ifndef SONGTEST_H_
#define SONGTEST_H_
class SongTest {
public:
SongTest();
void runTests();
void testConstructors();
void testReadFrom();
void testWriteTo();
void testEqualsTo();
};
#endif /* SONGTEST_... |
8999e7e77498f6cfc91813a772ebb5149539c108 | e261e0f4b94d49d0ecb62022250d27349e6ce02d | /bench.cc | 0e04d3dbbc71708ea8bda660cfc5f39eb23b2cd1 | [
"MIT"
] | permissive | dashahe/b-tree | 0d5685c5684dbde96cf0ffb8154eb694667a817a | 46cd4cea6878d5de6e5bf64935b9998401c3ae94 | refs/heads/master | 2022-06-05T03:21:29.762567 | 2019-03-04T15:44:02 | 2019-03-04T15:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,247 | cc | bench.cc | //
// Created by xiebei on 2019-03-02.
//
#include "b_tree.h"
#include <iostream>
#include <map>
#include <ctime>
using namespace std;
using RBTree = map<int, string>;
void benchInsert() {
BTree<int, string> btree;
RBTree rbtree;
printf("insert 1000*1000 pairs\n");
clock_t begin = clock();
for ... |
0207161db97fcd3eb7e80a6b50391c315d299d5e | c7ad884698f0af1deddafd30dab598af08033aa3 | /CHAIN2.cpp | f38b62a8209d26c0199b9a8ffa3edffb2f00e2db | [] | no_license | snowynguyen/Code-CPP | 2504a05377e8c1910f3c5efb1fce37e805bde7a8 | 95d3334c8fbd11c4ab9b375d008f843c09020c04 | refs/heads/master | 2022-07-17T04:31:49.987478 | 2020-05-21T13:57:45 | 2020-05-21T13:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | CHAIN2.cpp | #include <iostream>
#include <cstring>
using namespace std;
struct node {
int u;
node *c [26];
};
const int N = 250000;
node root;
char s [N];
node* make (node *p){
p = new node;
p -> u = 0;
for (int i = 0; i < 26; ++i){
p -> c[i] = NULL;
}
return p;
}
void add (int n){
node... |
b49b4cedd724437ab65ca64cf89c296cbb70da46 | 6818ce61817ae8feb814122745a7df527867a489 | /vfp/Model/settings.cpp | 204124174cb75139f6a432593001fa513de91354 | [] | no_license | MKSherbini/Qt-Projects | afc5cfe82b5495f370ad8d0cf9f20acf15c1ea49 | c86ed2d8eb4bba9d6fcd9d2aba206f5b4eded421 | refs/heads/master | 2022-12-02T18:33:04.040286 | 2020-08-17T07:36:55 | 2020-08-17T07:36:55 | 286,914,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,688 | cpp | settings.cpp | #include "settings.h"
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QMessageBox>
#include <QStandardPaths>
#include <QString>
#include <QStringListModel>
#include <utility>
namespace Skull {
static const in... |
3b9402a8d95a1f2a3cb189b3edced7c5a80e283e | b5d45a79f971e138e17e54b57fecaaeab14b2b26 | /spoj/brckts.cpp | b067f097dd7d5c5e3a6a29fe1613ccf586877e41 | [] | no_license | vedsarkushwaha/code | 8a0ccab1a16a0e4b9c2151613322ea83a3d57288 | d2e9d6a3f27ea7875a86c7c4869bc3cff75ccca1 | refs/heads/master | 2021-07-05T02:47:43.012012 | 2020-08-27T21:36:48 | 2020-08-27T21:36:48 | 36,807,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,615 | cpp | brckts.cpp | #include<bits/stdc++.h>
#define fr(i,m,n) for(i=m;i<n;i++)
#define ifr(i,m,n) for(i=m;i>n;i--)
#define ll long long
#define sc scanf
#define pf printf
#define var(x) x i=0,j=0,k=0,tmp1=0,tmp2=0,tmp3=0,tmp=0,tmp4=0,tmp5=0,flag=0,T=0,N=0
#define pb push_back
#define vi vector<int>
#define vii vector<pair<int,int> >
#defi... |
df81886172e9ece4019998e4a43dd26e40b7bd2a | 19b1c001545ae3083257a08516081ba053ba1c7a | /Cam3dCppClrWrapper/CamCommon/includes/CamCommon/BitWord.hpp | b03fbc4f0fd579337df2c37e017607c86d26e6c1 | [] | no_license | KFlaga/Cam3D | a6b324b2991b739067e584c4ced7ccc0726e1835 | fed29f8d2cc71146e7ddbb3af96000545373d339 | refs/heads/master | 2021-01-10T16:42:55.562158 | 2018-02-11T20:36:30 | 2018-02-11T20:36:30 | 46,155,063 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,463 | hpp | BitWord.hpp | #pragma once
#include "PreReqs.hpp"
#include <algorithm>
#include <cstring>
namespace cam3d
{
template<typename uint_t>
struct WordBitsLut
{
private:
static constexpr size_t wordBitsSize = ((size_t)std::numeric_limits<uint16_t>::max()) + 1;
public:
static uint_t* createWordBitsLut()
{
static uint_t wor... |
b645343861d0a128d9d7f18a84db5e254a9fa906 | 2f70a69e1c95db1d67963e315f1e449d11b87961 | /xen_scheduler/SysInfo.cpp | f0d840683a96e621f8a17dcfcf9debcbe472d66d | [] | no_license | kingrui/xen_scheduler | 946672e81f6c56493e1e951d4dedbcee212aa839 | ada561cc102496d673e7ef811d0549dc79ef1035 | refs/heads/master | 2021-01-20T07:02:06.649018 | 2015-09-14T06:29:46 | 2015-09-14T06:29:46 | 42,430,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,801 | cpp | SysInfo.cpp | /*
jinrui
*/
#include "SysInfo.h"
#include <iostream>
using namespace std;
/*
*The constructor of SysInfo
*Jin Rui
*jinrui@jinrui.name
*/
SysInfo::SysInfo(mutex &m)
{
mu = &m;
//set an initial connection use libvirt
if ((conn = virConnectOpen("xen:///"))== NULL){
perror("failed to execute virConnectOpen fu... |
a64bfa6eac64b4b7fc4457e75f62e43f35fa009b | 6a117dfa4ec8b89301fc98beaa6efa227094bf1d | /proxy/logging/LogFile.h | 2e345a5d171113e27d225532631b5fd046774109 | [
"LicenseRef-scancode-unknown",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"TCL",
"MIT",
"HPND",
"ISC",
"BSD-2-Clause"
] | permissive | pixiv/trafficserver | ab1e0736afdfee512d81ffc73b7d5b6eeef3f6bf | 79b01ca4e98d1ffde94324ca25ec6c7c3fce5a03 | refs/heads/release | 2023-04-10T12:01:37.946504 | 2016-03-02T00:59:27 | 2016-03-02T00:59:27 | 52,246,093 | 1 | 1 | Apache-2.0 | 2023-03-27T03:04:55 | 2016-02-22T04:05:04 | C++ | UTF-8 | C++ | false | false | 5,781 | h | LogFile.h | /** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... |
10d72aaa8727066e660348f827a24b0434d37ee0 | 554a3b859473dc4dfebc6a31b16dfd14c84ffd09 | /ui/sxgo_frame.hpp | 0a4986e0335613f18e75d3239a7be134638e1644 | [
"BSL-1.0"
] | permissive | DannyHavenith/sxsim | c0fbaf016fc7dcae7535e152ae9e33f3386d3792 | e3d5ad1f6f75157397d03c191b4b4b0af00ebb60 | refs/heads/master | 2021-01-19T11:22:20.615306 | 2011-05-30T22:11:18 | 2011-05-30T22:11:18 | 1,822,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,621 | hpp | sxgo_frame.hpp |
// Copyright Danny Havenith 2006 - 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
/// wxWindows class for the main frame of this application.
#include "wx/aui/aui.h"
#inclu... |
7eaadc4c2061dd841ed7b97f622a07bc4f1fffda | e649acb68fc5134a3843ef2330e5c2d4070363a8 | /L.lonely_day.cpp | 56d27ac1d6e5633c6f3a2305a7e4077423cc6cd3 | [] | no_license | jesuswr/cp-codes-and-problems | 6483949ce896e59c471f0e0640f5c8b47f482ec3 | 770f3bf004f90015f078d5699d26cde5c33d9a28 | refs/heads/master | 2023-08-08T03:37:36.626572 | 2023-07-24T16:54:02 | 2023-07-24T16:54:02 | 196,292,128 | 1 | 1 | null | 2019-10-09T23:23:43 | 2019-07-11T00:26:10 | C++ | UTF-8 | C++ | false | false | 3,507 | cpp | L.lonely_day.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
#include <math.h>
#include <string>
#include <cstring>
#include <set>
#include <map>
#include <unordered_map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<int, pair<int, int>> piii;
type... |
1c621e27ee2bcf6cf83c29dc07591b92dbb005df | 8a8744104d9d2b50d350239dbc8a9f09a8ecc03a | /Code/CPlusPlus/Engine/Subsystems/Renderer/Font/Font.h | b934a74b7e5374704927282abd9656b8347217a8 | [] | no_license | JonnyRivers/rorn | fadd039b13fd95de5033d25e4552c456ab2eaa13 | ea3dab1d42838917c29d81f7ff92c11fc312a62e | refs/heads/master | 2016-08-12T19:55:18.729619 | 2014-09-11T21:20:30 | 2014-09-11T21:20:30 | 52,677,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | h | Font.h | #pragma once
#include <map>
#include "Glyph.h"
namespace Rorn
{
namespace Engine
{
class Font
{
public:
Font(const std::map<unsigned int, Glyph>& glyphMap, unsigned int textureId);
~Font();
const Glyph& GetGlyph(unsigned int characterCode) const;
private:
Font(Font&);
Fon... |
04886d3335975bf869a4beb7f5f0643349247fa8 | b3abc64d675731cd8b0b04d655b1713f585599fa | /Ejercicios/EjerciciosRelacion2/Ejercicio51.cpp | 9bd0fef1bcad5439d621ca3dbf0bb4022780add7 | [
"Apache-2.0"
] | permissive | JArandaIzquierdo/FundamentosDeProgramacion | a3808836ab29629662a272b46b16ec2117d8cbd1 | c7c8e79c880de511c3667796356ffa265b021eb2 | refs/heads/master | 2021-05-04T10:03:42.807157 | 2017-11-30T23:47:15 | 2017-11-30T23:47:15 | 43,295,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | Ejercicio51.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main(){
int funcion, x=-50, y=40;
for(int i=x; i<=50; i++){
for(int j=y; j >= -40; j--){
funcion = sqrt(i) / (pow(j,2)-1);
cout<<"El valor de la funcion para los varos de x="<<i<<" e y="<< j << " e... |
cc075e48817d80bad820300a74ad1fd64b3d6337 | efce435f8c86079c596ef2d2f6a842bd4659451e | /libJMPX/libJMPX.cpp | c73fb4d0f6ba7ff28edc534548dc350bc06ca26b | [
"MIT"
] | permissive | KD9QZO/JMPX | 6ab5e39736246a1be05aecfcfc03ab1720976271 | ee67dad079812e074a79741a2e5831b28bc7ebb3 | refs/heads/master | 2023-05-28T16:00:52.828290 | 2020-01-04T21:38:55 | 2020-01-04T21:38:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,298 | cpp | libJMPX.cpp | #include "libJMPX.h"
#include <QDebug>
#include <QtEndian>
#include <unistd.h>
#include <random>
#include <QTimer>
static __inline__ unsigned long long rdtsc(void)
{
unsigned hi, lo;
__asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi));
return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 );
}
... |
2637d42f1b7763a7c8446d79a6898934bdbae346 | cc474c0fa39ca8b77b6b5cbce50445cac5506265 | /FlipFluid/Sorter.cpp | 7fb95bd19ce874f8bb4e291af5576baeec5386b4 | [] | no_license | duoshengyu/FLIP_FLUID | d6f329d085f6ed23c6810d244eb3f94af036aeca | 791e64736b731d99ed164a295a3a25fc6e194947 | refs/heads/master | 2021-01-10T12:23:09.471298 | 2016-04-05T03:21:01 | 2016-04-05T03:21:01 | 50,499,381 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,188 | cpp | Sorter.cpp | //------------------------------------------------------------------------------
//reference to https://code.google.com/archive/p/flip3d/ ando`s filp code.
//I just use this for surface reconstruction.
//------------------------------------------------------------------------------
#include "Sorter.h"
sorter::sorter... |
f988ee88e94cef7e048f0ae828618d0977aa886f | 072c2b7406bece70b9550f42032da8617eb570f0 | /Vulkan/Main.cpp | 0da3e87d34b7cac4e982ff478749a7955146b027 | [] | no_license | AlexMerritt/Vulkan | 330aefb79fc49a7263b4a2f41f9ba2741243a703 | 30d073e8820e6aa346830d1c034380b6c42425fd | refs/heads/master | 2021-01-20T18:39:44.163375 | 2016-08-15T18:04:11 | 2016-08-15T18:04:11 | 65,753,411 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | Main.cpp | #define GLFW_INCLUDE_VULKAN
#include <GLFW\glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include<iostream>
#include <string>
#include "System.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)
... |
1332a4eef7bb44482552157af56024d0cdfa8998 | 10549922d157ce67b6a32759b09a8dee78aebe9c | /clock2/clockengines/clocktimezoneresolver/inc/clocktimezoneresolverimpl.h | 0c7ff7bc1c5f690be78806e1a107c08b1878df33 | [] | no_license | SymbianSource/oss.FCL.sf.app.organizer | c8be5fbc1c5d8fc7d54a63bb1793f8db823fa3d7 | e15734d1943a012120b188fe3ffd5dd7594d145f | refs/heads/master | 2021-01-10T22:41:15.449986 | 2010-11-03T11:42:22 | 2010-11-03T11:42:22 | 70,369,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,452 | h | clocktimezoneresolverimpl.h | /*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.... |
8845428a5937e3d6d09d51dd38b1c8267bf75bbc | b90886f155c24b6f0c6bac5a6d813a1f09ead44d | /ExamplePlugin/Plugin.cpp | 21291009b87a48a4986d229122b2086374adc2c6 | [
"MIT"
] | permissive | PourrezJ/Infinity | 2531d19a44750177f17d7277435c2082b6754d1f | a5eb1e5078400cd9a566c9444a74c1802f6009d6 | refs/heads/master | 2023-02-24T21:57:17.442289 | 2021-01-25T04:35:18 | 2021-01-25T04:35:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,913 | cpp | Plugin.cpp | #include "pch.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "../BIDebugEngine/Plugins.h"
struct testclass {
char* name;
};
//this is wrong
void* CreateTestClass(char* name)
{
Infinity::Logging::Print("Creating New Test Class! w/ Name: %s", name);
testclass* result = (testclass*)malloc(... |
8a9de4cffdcd60548bd0759b93289831d418b5a7 | 27d20d5d5ba446128b602e338b583ee5f76666b9 | /2014/1013/cards4b.cpp | 8a6489aaa43821ab1c2f0a8a50ed6e552fec10b0 | [] | no_license | Neverous/ii-mia | 2b6b10181e7b6207d22a1ffd6c08c499ccc8c613 | 9a87fa85e325b1c39041c99a74005f88341a1aa7 | refs/heads/master | 2021-01-10T15:52:27.778247 | 2016-03-22T14:49:34 | 2016-03-22T14:49:34 | 54,483,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,695 | cpp | cards4b.cpp | /* 2014
* Maciej Szeptuch
* II UWr
*/
#include <cstdio>
#include <cstring>
#include <algorithm>
char cards[131072];
int total_ones, ones, eaten_ones,
total_zeros, zeros, eaten_zeros,
total_marks, marks,
n;
bool p00,
p01,
p10,
p11;
int main(void)
{
scanf("%s", cards);
n = strlen(... |
0c8471cb53feef50064246b84aba5e1e5d2c2313 | 7d113f8d417248248cfc290268e3023f02da2d65 | /include/config.hpp | e43a58a45016341acb5afef8168382f3da6d9b85 | [
"MIT"
] | permissive | northy/digital-certificates | 8b971812af9b40da24782dd5c566a911cd008b9e | 890e232b877ac2f6400b7605d71682dd3e2cd193 | refs/heads/master | 2023-03-29T11:40:55.346945 | 2021-04-10T19:25:51 | 2021-04-10T19:25:51 | 355,726,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25 | hpp | config.hpp | #define RSA_KEYSIZE 2048
|
e200ed85865b976c46a4a40fbec0d254c5422544 | 39daf438ab3b8425c3be8f7c5fc61f23619922ae | /test/test.ino | 957c2ac5560b2a69e579fa774e56a180f969a12b | [] | no_license | muenznej/DocHat_Lukas | c6ac4c13d6420bc2022073ddbf87b831f4ab6546 | f506388d3f6e1893888168dcbd8f0cc0f4b38fd8 | refs/heads/master | 2021-08-11T16:31:40.569324 | 2017-11-13T22:50:03 | 2017-11-13T22:50:03 | 109,705,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,546 | ino | test.ino |
// Credit:
// Midi to Arduino Converter
// - Andy Tran (extramaster), 2015
// https://www.extramaster.net/tools/midiToArduino/
//
// Process:
// Midi -> Midi tracks -> Note mappings -> Frequency
//
// CC0
// Set this to be the pin that your buzzer resides in. (Note that you can only have one buzzer actively using... |
ca230d1e06be2805b7a69459959bc8c718a9dfe5 | 8856b4097de90a8bef468a8c6a242770df4d03bc | /Zork/creature.cpp | fb94a3068c25a34754ecb22654840c857e228987 | [
"MIT"
] | permissive | lowysole/zork | b391f9deee728a956971bec8bd93365bfdc7fe22 | 07e85a6f2297eec95c57a60ee6a2e30bbaced4a4 | refs/heads/master | 2022-11-22T08:41:48.133332 | 2020-07-26T20:02:04 | 2020-07-26T20:02:04 | 281,786,862 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | cpp | creature.cpp | #include "creature.h"
#include "npc.h"
#include "item.h"
//Constructor
Creature::Creature(const char* name, const char* description, Room* location) :
Entity(name, description, (Entity*)location) {
entity_type = CREATURE;
creature_type = NPC;
this->location = location;
hp = 10;
attack = 0;
armour = NULL;
weapo... |
fa93d985f73eb4064aa95b40fff4015d6cf5612d | bf176e00de9b2bc9c144e83b62e197c9d7d828fb | /lab3.cpp | 6ce55943869d3aa846f350fb04383bda161f7673 | [] | no_license | KarenBarrientos/laab3 | 288e4caaee418ee45671ddffbdbb4355404d12bb | 5032990c420b6332c327e4217cce56ede7c3e32b | refs/heads/master | 2021-05-03T08:50:50.475698 | 2016-10-28T23:35:57 | 2016-10-28T23:35:57 | 72,235,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,590 | cpp | lab3.cpp | #include <iostream>
using std::cin;
using std::cout;
using std::endl;
void imprimir(int**,int,int);
int main(int argc, char const *argv[]){
int opcion;
char continuar;
do{
cout<<endl;
cout <<"***** MENU ***** "<< endl
<< "1. Ejercicio1" << endl
<< "2. Ejercicio2" << endl
<< "3. Eje... |
1f03d078a2a9086a87d7c8515a6894112557f734 | 072026be4b3c02d69ec0ac6b3eed37da6721a9fb | /UVA 00336 - A Node Too Far.cpp | d058c0ded9a03f8872d058549b59c7e5a102414c | [] | no_license | vmmc2/Competitive-Programming | 1c4f61528301a9d83eeabee352d4e55ed2e64e1f | 0c71f99a7d7144ae762b04ec2af8e18c5181d330 | refs/heads/master | 2022-06-26T23:49:50.088941 | 2022-05-27T21:38:20 | 2022-05-27T21:38:20 | 152,163,693 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,049 | cpp | UVA 00336 - A Node Too Far.cpp | #include <bits/stdc++.h>
#include <sstream>
#include <cmath>
#define pb push_back
#define INF 99999999
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
vector<int> adjlist[100000];
int visitados[100000];
int dist[100000];
void reset_graph(){
for(int i = 0; i < 100000; i++){
adj... |
9140f28d7a2dd83743562f73f18afd6a14c56a1c | ffb4b96794d3a7b3a1275f3f3f360ce45479bbb9 | /client/letter.h | bed1599f9e7dc7710203f77afcd52ecaac2e5eca | [] | no_license | SimoneDutto/CollaborativeEditor | c556dd9fd2611f2aa72caa1453eda2e7d208a379 | b42ca41da6ff641e6605d661313356bb2f2abdb8 | refs/heads/master | 2022-10-20T17:14:20.155851 | 2020-06-16T14:56:14 | 2020-06-16T14:56:14 | 207,262,147 | 2 | 1 | null | 2020-06-13T14:35:17 | 2019-09-09T08:33:03 | C++ | UTF-8 | C++ | false | false | 1,508 | h | letter.h | #ifndef LECTER_H
#define LECTER_H
#include <QString>
#include <QStringList>
#include <QVector>
#include <QChar>
#include <QTextCursor>
class Letter
{
// campi per gestire la lettera, la posizione, lo stile, etc
private:
QChar letter;
QVector<int> fractionalIndexes;
QString letterID;
QTextCharForma... |
81a71ab968d5552e81836108798623a8bd125638 | 2c86487ff9f8a4597e9c72cca746e073d1b01ff0 | /TD3/Bibliotheque/main.cpp | b1fe54915e687c4ec47d8ba70b153e5d939a5fae | [] | no_license | Ennaouri/cours-cpp | 3dfbdce3a548c182f5848779e48ff7c42474ad29 | 6a83115cff619be44593cf3d79238ef707af8b29 | refs/heads/master | 2020-08-05T21:19:32.748535 | 2017-05-09T20:11:25 | 2017-05-09T20:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | cpp | main.cpp | // Created by bothmena on 17/02/17.
# include <iostream>
#include "Ouvrage.h"
#include "Bibliotheque.h"
int main() {
Ouvrage *ouvrageUn = new Ouvrage(123, "ouvrage Un", 10, 29);
Ouvrage *ouvrageDeux = new Ouvrage(234, "ouvrage Deux", 20, 25);
Ouvrage *ouvrageTrois = new Ouvrage(345, "ouvrage Trois", 30, ... |
9d74ef7a3bc607ca748d56fed1f1760831e3376d | 005f6e37941b66536f6719a7bb94ab4d3d7cf418 | /src/prx_planning/prx/planning/applications/motoman_planning_application.cpp | cd0fc0411b6ad47420e0104ababcf5cc1c71bd28 | [] | no_license | warehouse-picking-automation-challenges/ru_pracsys | c56b9a873218fefb91658e08b74c4a1bc7e16628 | 786ce2e3e0d70d01c951028a90c117a0f23d0804 | refs/heads/master | 2021-05-31T05:52:33.396310 | 2016-02-07T22:34:39 | 2016-02-07T22:34:39 | 39,845,771 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 125,304 | cpp | motoman_planning_application.cpp | /**
* @file base_apc_planning_application.cpp
*
* @copyright Software License Agreement (BSD License)
* Copyright (c) 2013, Rutgers the State University of New Jersey, New Brunswick
* All Rights Reserved.
* For a full description see the file named LICENSE.
*
* Authors: Andrew Dobson, Andrew Kimmel, Athana... |
bdb5c3e6c6fec18d54d443e991450437f9dc0f50 | 11523e7798335a3ea9b73520edad9701e7cbabfd | /src/triangular.cpp | 47db499aa1dde3ca92a25349ba2d4fc176480b83 | [] | no_license | nparrado/Memoria2013 | d277fa144e0944d9f459ffccd82d87a19d61cd92 | 6014f92247781aa28ce1c0b33e818e63eae9a418 | refs/heads/master | 2021-01-01T15:19:03.836094 | 2013-02-22T13:09:14 | 2013-02-22T13:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | cpp | triangular.cpp | #include "triangular.h"
#include "mallacuadrilateros.h"
Triangular::Triangular(Malla *m) : Comando(m) {
assert(m->getTipoMalla() == "quadrilateral");
}
void Triangular::execute() {
nueva_malla = ((MallaCuadrilateros *)malla)->triangular();
}
MallaTriangulos *Triangular::getMalla() {
return nueva_malla;
}
Trian... |
023bf5098d284c1c3cdb5052ec7163ddfdf3a112 | 1936d0f9d8ba33b9ea8b0888e6d5c4b03bf0cef6 | /Lengine/Src/Components/TransformComponent.cpp | 9981c46628138969e4be666573cf4ce4ba403991 | [] | no_license | LioQing/Lengine | d50b6d5476cbb03ad248285150f1da231686fa95 | af5e844c924cbda8479c9fa4ea906eb1a41bfb9d | refs/heads/master | 2022-11-27T17:47:23.911470 | 2020-08-04T14:28:35 | 2020-08-04T14:28:35 | 259,930,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 973 | cpp | TransformComponent.cpp | #include "TransformComponent.h"
TransformComponent::TransformComponent(Vector2Df position, uint32_t width, uint32_t height)
: position(position), width(width), height(height), scale(Vector2Df(1.0f, 1.0f)), speed(1.0f), velocity(Vector2Df(0.0f, 0.0f))
{
}
TransformComponent::TransformComponent(Vector2Df position, ui... |
f2fcd39366761addb4e84325af5d8ead01d85e2a | e1cba3821814e106be21d957eaac422c01ed309a | /Caesar_Decipher/crack.cpp | 2322c781355522c70f564b2a11035c43d99a63e3 | [] | no_license | jake-sheppard/EE355 | a78516a1207967cd094e798ce98f31ee53ae0bfa | 33c5632d461629daf192e952225127b83245de9e | refs/heads/master | 2020-04-12T11:37:04.044932 | 2016-05-05T07:33:20 | 2016-05-05T07:33:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,625 | cpp | crack.cpp | /*
crack.cpp
Author: Jake Sheppard
Short description of this file: Method of cracking a message.
*/
#include "caesarlib.h"
#include <fstream>
#include <iostream>
using namespace std;
// frequencies of letters in a large sample of English
const double enfreq[26] = {0.0793, 0.0191, 0.0392, 0.0351, 0.1093,
0.0131... |
f137440598fdfc88bc6f48f97060e3a698d10546 | f156ca526b4a86b6ffa1e7d4fe663a1e71e08a8e | /tutorial/demo-1/StackSet.cpp | c31322dba2153e0ff4ce24b1d892b8523f7eae90 | [
"MIT"
] | permissive | hjwalt/program-analysis | 9a96f94d1ddaca412354b3c1b943c11db2d45d18 | 13eb8f8a043879ac48fd8000e1c3f3edb7c809c9 | refs/heads/master | 2020-04-19T23:18:11.385732 | 2019-04-21T03:17:09 | 2019-04-21T03:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,217 | cpp | StackSet.cpp | #include <cstdio>
#include <iostream>
#include <set>
#include <map>
#include <stack>
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IRReader/IRReader.h"
#include "llvm/Support/SourceMgr.h"
#inc... |
cce9161dacfe75e7ff2d804519ab38262cbd7a42 | 82bdd38af1f7b8fd5550717b4f32c76536b06ae6 | /test/server/Service_Mock.h | d230dcb8d8b077d73d2fe57675c228dba285fa98 | [] | no_license | UmbrellaSampler/gpuATTRACT_2.0 | ee424b1112da7e3f9bc9fb3832376ca7e89e8da5 | 6b6271b56d58657d869acf8c0ba3e915888ee30b | refs/heads/master | 2020-05-22T05:40:40.806852 | 2018-10-17T15:33:34 | 2018-10-17T15:33:34 | 61,951,527 | 2 | 2 | null | 2018-10-17T15:33:35 | 2016-06-25T16:21:23 | C++ | UTF-8 | C++ | false | false | 579 | h | Service_Mock.h | /*
* Int_Service.h
*
* Created on: Dec 23, 2015
* Author: uwe
*/
#ifndef TEST_TEST_SERVICE_H_
#define TEST_TEST_SERVICE_H_
#include <gmock/gmock.h>
#include "CPUEnergyService.h"
#include "GenericTypes.h"
namespace test {
class Service_Mock : public as::CPUEnergyService<GenericTypes<int, int, int>> {
p... |
bb330d2e85460af3a1ea23f8db7b6c9e4c888004 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/inetsrv/msmq/src/lib/utl/lib/utf8.cpp | 3f37afd5bba1063a7888f1276d33edcb27fce721 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 13,224 | cpp | utf8.cpp | /*++
Copyright (c) 1995-97 Microsoft Corporation
Module Name:
utf8.cpp
Abstract:
Implementation of conversion functions from\to utf8 caracters set
Author:
Gil Shafriri (gilsh) 15-10-2000
--*/
#include <libpch.h>
#include <utf8.h>
#include <strutl.h>
#include "utf8.tmh"
static s... |
812d0b7844a7be971d3228e17be39dcd6a0cf962 | 32deed40f82700e2ab824ceea74ffe4ca9468132 | /SvGame/Source/SvGame/Private/Res/HitCheckSphereRes.cpp | d9950c8e946f7c5ea8a95ab1237ca5514b7d8043 | [] | no_license | renjihe/unreal_demo | 6304017d395bb3edf897163492a81bc6bc9e720d | ae14068f4e821bf4c9c1df1418c9b16e332a43a8 | refs/heads/master | 2020-07-12T04:25:52.659179 | 2019-08-27T15:02:39 | 2019-08-27T15:02:39 | 204,717,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,084 | cpp | HitCheckSphereRes.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "SvGame.h"
#include "HitCheckSphereRes.h"
#include <Runtime/XmlParser/Public/XmlFile.h>
HitCheckSphereRes& HitCheckSphereRes::Get()
{
static HitCheckSphereRes ins;
return ins;
}
HitCheckSphereRes::HitCheckSphereRes()
{
HitChe... |
605a21c30b9f25bfbfb01d32e81a1753f2a56359 | bfcee910251df9c4b72207dc7fd8f04afa0da6b1 | /CSCI3132/Assignments/GroupProject/BLACKJACK/BLACKJACK/Dealer.cpp | 49e562e52cfab7363586300220a2a28d8c9fc652 | [] | no_license | Toyide/CSCI3132-C-Object-Orientation-and-Generic-Programming | 9d78d6ab2f3db5e5647653d36140e4260bf7d170 | 4a1eb5041a65641a89ecb145ef5219218c9f8494 | refs/heads/master | 2020-12-07T06:48:48.603107 | 2020-01-08T21:22:20 | 2020-01-08T21:22:20 | 232,662,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 743 | cpp | Dealer.cpp | /*
* Dealer.cpp
*/
#include "Dealer.h"
Dealer::Dealer() {
SYSTEM("Dealer was created by default");
}
Dealer::~Dealer() {
hand.clear();
}
// override virtual function from parent class
void Dealer::clearHand() {
hand.clear(); // clear hand cards for each turn
}
// override virtual function fro... |
0fdcf566e19b315013007fd98da112906eede4ea | 6783144064023cfa972bd0af50ac3fc1eb885fb5 | /AguacateMon.h | 380faa76b3724a02384ed22416aac8284b27f456 | [] | no_license | Noel-coder/P3Lab7_NoelMartinez | bac1e5820692d6d8af90b08a1e5e24c31285686a | 6d86c2b437c2d9380f2fa6296e988d1cfacf4bcb | refs/heads/master | 2023-03-17T16:32:50.915397 | 2021-03-06T00:28:51 | 2021-03-06T00:28:51 | 344,906,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | h | AguacateMon.h | #ifndef AGUACATEMON_H
#define AGUACATEMON_H
#include "NokemonHierba.h"
#include <vector>
#include <string>
using namespace std;
class AguacateMon : public NokemonHierba
{
private:
public:
AguacateMon();
~AguacateMon();
};
#endif |
29e61a73f436ad8498d623b0b4ff09cd544f02b2 | facd5bdf6f1abf942957453f918a1ab78f2cf85a | /GeometrischeObjekte/GeometrischeObjekte/Rectangle.h | 6c3f638911bab7f4c013b7125b7730be6f9cb9bc | [] | no_license | M3IY0U/PAD2 | e1602efee246b11392758c439f689a51217c9710 | 6c42ee970ec04cd612f477ce09c5db3d06e526e6 | refs/heads/master | 2021-09-18T01:42:46.277733 | 2018-07-08T20:40:03 | 2018-07-08T20:40:03 | 130,972,745 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | h | Rectangle.h | #pragma once
#include "Shape.h"
class Rectangle : public Shape
{
public:
Rectangle(double l, double w);
virtual ~Rectangle();
virtual double getArea() override;
virtual double getCircumference() override;
virtual double operator-(Shape& a) override;
private:
double length;
double width;
};
|
5f2b54c65d07f660aad81c2ff707a2dcd4693401 | a44d37d7cb7e79a44d3e4803791552a617fc9eec | /Bomberman/BrickableBlockComponent.h | a9c7f1ffafc622f920db2cbd68c437802fd5c245 | [] | no_license | florianPat/SFMLBomberman | 2a309bb2cdc55c53b89b3cecf46b4c4f057c0a79 | 939233ea9d35aa30fd241ea16976865ec5049ce6 | refs/heads/master | 2021-01-01T04:38:03.672478 | 2017-07-14T10:31:50 | 2017-07-14T10:31:50 | 97,214,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,279 | h | BrickableBlockComponent.h | #pragma once
#include "Component.h"
#include "Actor.h"
#include "Physics.h"
#include <vector>
#include <memory>
#include "SFML\Graphics.hpp"
#include "Assets.h"
#include "Animation.h"
class BrickableBlockComponent : public Component
{
sf::RenderTarget& renderTarget;
Physics& physics;
std::vector<sf::FloatRect> bou... |
1361fe0a4a057711a1141da1d5fcf0c46dcff192 | 04341d0b012ff2725d32e69a5a28590c91a61485 | /1task/base64.cpp | 476270aadea36231d7800116d85830582d6c9c40 | [] | no_license | iskislamov/kas | 63254e5e7886e93018b7b49d85040dd151677cba | 6db64fc02663364ad175d30fb22c50d69bd78bfd | refs/heads/master | 2020-04-09T04:42:16.586432 | 2018-12-04T09:24:28 | 2018-12-04T09:24:28 | 160,032,913 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,608 | cpp | base64.cpp | #include "base64.h"
#include "utf8.h"
#include <sstream>
static const int ASCII = 256;
static const std::string base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
inline void decode_utf8(const std::string& bytes, std::wstring& wstr) {
utf8::utf8to32(bytes.begin(), bytes.end(), std:... |
4e5c48904c3eca8c5c653c6953f57c1c6f6fd4b9 | 5525144908e55c5425377949fb7df8765c1d21c0 | /Forms/ODToolbarDef.h | 1b0097a4eff6c28799f6d3f39a07f0f07b75412c | [] | no_license | jongough/ocpn_draw_pi | 7800b80b371c9515805201e642c2d392b4fd4f6d | 4e12a45226f8935830a2a2f0a121edd0238fb308 | refs/heads/master | 2023-08-08T01:12:14.329011 | 2023-07-30T03:30:37 | 2023-07-30T03:30:37 | 29,998,842 | 5 | 27 | null | 2023-07-30T03:30:38 | 2015-01-29T02:03:31 | C++ | UTF-8 | C++ | false | false | 1,951 | h | ODToolbarDef.h | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#pragma once
#include <wx/... |
e0b702b8f28156b18e64bf6509de6551d42d9885 | bb7ef3ddea766ce63126b849073ce0939e1b7f5a | /课程/数据结构/其他/示例代码/线性表的顺序表示.cpp | c04fe4fcde8543856dfe8099cf7c19795184ff85 | [] | no_license | OmniJax/SZU-resources | d11aa9d6e821ac953e277046f64ddc329c2bb318 | 6aa9eb75a0320bcb41bf25757d94856d9ed34803 | refs/heads/master | 2023-03-18T21:23:23.647456 | 2021-03-08T03:42:21 | 2021-03-08T03:42:21 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,964 | cpp | 线性表的顺序表示.cpp | #include <iostream>
using namespace std;
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
template <class T>
class Sqlist {
private:
T* elem;
int length;
int listsize;
public:
Sqlist() {
elem = new T[LIST_INIT_SIZE];
if (!elem) exit(-1);
length = 0;
listsize = LIST_INIT_SIZE;
}
~Sqli... |
8b95feed6e6188ddab910c6c5bb9385c7581a3ac | 7e8d135d41ba27078bd51c4980252b6ce63d9be9 | /01_Math/02_Combinatorics/01.03.01_mod-pow.hpp | 533c4a39c137695bc27bc69211cfab0fc9e19c9c | [] | no_license | legosuke/lib | db4cf760cb9824a64c63bcf2f730796f25deff3d | 04f4f230845158d816877adf8d1e76d0f7b1ce30 | refs/heads/master | 2023-07-07T12:28:42.672454 | 2021-08-13T07:17:58 | 2021-08-13T07:17:58 | 321,906,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | hpp | 01.03.01_mod-pow.hpp | #pragma once
#include <cstdint>
/**
* @brief 累乗 : $a^n\bmod{m}$
* @note O(log(m))
*/
std::uint32_t mod_pow(std::int64_t a, std::uint64_t n, std::uint32_t m) {
a = (a % m + m) % m;
std::uint64_t res = 1;
while (n) {
if (n & 1) (res *= a) %= m;
(a *= a) %= m;
n >>= 1;
}
ret... |
dfac405bc592f9615007199820e2b79de5251518 | b8906afecca06f48f2cd289a9997f670b26c4721 | /lib/commonAPI/printing_zebra/ext/platform/wm/src/p2p/common/ResultConverter.h | 0ba46d666186983274c94892028a3192f4dafeb1 | [
"MIT"
] | permissive | rhomobile/rhodes | 51bd88921c51bd618948f9a557de17fc297e7cc2 | fc8409c9c281684a49d7ff6805ddc565de09a6d5 | refs/heads/master | 2023-09-01T17:45:36.149868 | 2023-08-31T20:56:06 | 2023-08-31T20:56:06 | 54,084 | 504 | 155 | MIT | 2023-09-12T00:14:29 | 2008-09-18T21:55:16 | C | UTF-8 | C++ | false | false | 1,205 | h | ResultConverter.h | // P2PClient.cpp : Defines the entry point for the console application.
//
#include <common/RhoStd.h>
#include "api_generator/MethodResult.h"
#include <algorithm>
namespace rho
{
namespace printing
{
template<typename T>
class ResultConverter
{
public:
static void convert(rho::apiGenerator::CMethodResult& resu... |
214f470c39cd54ebf9449680ccc651e047e451d4 | f29e561f2215f782fcb13122613fcaa66bbd5b7f | /cpp/collecting_coins.cpp | 337b998cd8964ba219356e0d76f08a0b2ca93492 | [] | no_license | kakabisht/practice_compi_coding | 46fbd3bcfc8c7a08026764e95a94bd8887b4a15c | 54746797658eae3a8b6be6d8673676d43bf4666b | refs/heads/main | 2023-08-31T04:33:56.955099 | 2021-10-13T05:38:10 | 2021-10-13T05:38:10 | 393,240,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | collecting_coins.cpp |
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
long long int a, b, c, n;
cin >> a >> b >> c >> n;
long long int sum = a + b + c;
long long int ma = max(max(a, b), c);
long long int diffsum = 3 * ma - su... |
a566d03c713d47abd6c7b0328fe8cd091c43b14f | b0138f04fa27479bcec6e41e4c04c15513f04ac6 | /EndOfLevel/EndOfLevel/Game.cpp | c5a3df1312831de193c950b877e861e5c3f6f4f8 | [] | no_license | C00192781/EndOfLevel | bb55f1fa0de71331ffa098007784db083f8d983e | ad7e742ed7943517e21d3cdaabca0c01bb5fcf96 | refs/heads/master | 2021-09-05T11:40:01.928027 | 2018-01-26T21:34:47 | 2018-01-26T21:34:47 | 116,491,250 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,800 | cpp | Game.cpp | #include "Game.h"
#include <iostream>
using namespace std;
void Game::Initialize()
{
isRunning = true; // used for while loop in main
// Initialize SDL
SDL_Init(SDL_INIT_EVERYTHING);
// Create the window
window = SDL_CreateWindow("End of Level", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, window_width, windo... |
42c3997bb35ee1c3ba7153cd59f55b5b2604c79e | 34051601060d0c647482e5da20d8ab61906c7bd7 | /app/src/main/jni/CustomJNI.cpp | 39f1557a1fe971f52e6fbb98df57df4561b86dba | [] | no_license | AleksaJanjatovic/PNRS1_Projekat | 04325ca5e52bfc44959fff24af3c933695b6cf9e | b88fdda61f5d88e3ab22726908eebf664cb60e21 | refs/heads/master | 2020-05-04T17:57:43.892119 | 2019-05-31T08:34:47 | 2019-05-31T08:34:47 | 179,333,801 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | cpp | CustomJNI.cpp | //
// Created by Aleksa on 31-May-19.
//
#include "CustomJNI.h"
extern "C" JNIEXPORT jdouble JNICALL Java_project_weatherforecast_CustomJNI_convert_1temperature
(JNIEnv *, jclass type, jdouble x, jint unit) {
{
//0 JE KONVERZIJA IZ FARENHAJT U CELZIJUS
if(unit == 0){
ret... |
27f138517060653629f438f077f32f873ebb89a5 | 0134789707ac0c93ca85a871d17e997017b843c4 | /EventDisplay/EvdLayoutOptions_service.cc | db5399e03dcde40ceb36d815791139558b448ed2 | [] | no_license | vivekj99/garsoft | 6b455a34b928d9811f4646a35f53474ba0fd83db | 691760e03a8ee36451995815ed92e78b7701d126 | refs/heads/master | 2023-05-14T19:03:11.232400 | 2017-05-17T15:50:22 | 2017-05-17T15:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,194 | cc | EvdLayoutOptions_service.cc | ////////////////////////////////////////////////////////////////////////
/// \file EvdLayoutOptions_service.cc
///
/// \version $Id: EvdLayoutOptions_plugin.cc,v 1.1 2010/11/11 18:11:22 p-novaart Exp $
/// \author andrzejs@fnal.gov
// Framework includes
/// GArSoft includes
#include "EventDisplay/EvdLayoutOptions.h"... |
0913b47dc345ba35cd4c7179f09e34554a9fab38 | 049badc229edb18fb3eb64aaa4e838b0a0a4e6ad | /Source/TrafficSimulator/Network/RuneSocketSet.cpp | e4f714235e3a204fbaba769ccf12b5be52286f42 | [] | no_license | riemervdzee/TrafficSimulator | 0fc21f42ca8d546b794b170ffce7ad58bcd6c27f | 18e6a90113fffdd7de6b864e31094aa2a56b1b2b | refs/heads/master | 2020-05-18T05:04:25.897381 | 2013-01-16T15:00:36 | 2013-01-16T15:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | RuneSocketSet.cpp | /*
* File: RuneSocketSet.cpp
* Author: Mark van der Wal
*
* Handles sets of sockets for activity
*
* Created on November 26, 2012, 1:21 PM
*/
#include <algorithm>
#include "RuneSocketSet.h"
namespace RuneSocket
{
RuneSocketSet::RuneSocketSet()
{
FD_ZERO( &m_set );
FD_ZERO( &m_read... |
3f3137d570c3a525f7d1f7ee1778477c0c53d032 | 2a366c33c240ad8a8c1fa35f14604b485fd32d98 | /main/cpp/End_Effector.cpp | 1bed7bded6655a634dee99b4b635df222487b191 | [] | no_license | team4243/code_2019 | c99126d07ab5a15469d24d7e252e6816efa09837 | fa0e2fc8b96fe189fdfdfcc03b2621578705a91e | refs/heads/master | 2020-04-20T13:19:40.293026 | 2019-03-02T01:04:10 | 2019-03-02T01:04:10 | 168,866,048 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,852 | cpp | End_Effector.cpp | /*************************************************************************************************/
/**** Includes ****/
#include "Excelsior_Classes.h"
#include "frc/WPILib.h"
#include "ctre/Phoenix.h"
#include <frc/Talon.h>
#include "frc/PWM.h"
#include <iostream>
/**** !!!!!!! TUNING VARIABLES !!!!!!!... |
988024a3f6328091751624877bdc30129278257b | c62cb1790a9a7768cfe65c7996ef1962d4cc8760 | /include/cilantro/3rd_party/libqhullcpp/Qhull.h | 5348d55ece26489afe8debf6522053b19d9d29a2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kzampog/cilantro | 76f61a25e7bc00f5698495f2e7db4f9801e6b5c0 | 57ad1a397b73b6f4bbf9604fd75f8fe4363206a7 | refs/heads/master | 2023-09-06T00:02:19.389281 | 2023-08-15T21:31:46 | 2023-08-15T21:31:46 | 90,198,569 | 960 | 187 | MIT | 2019-12-26T22:39:25 | 2017-05-03T22:26:48 | C++ | UTF-8 | C++ | false | false | 6,746 | h | Qhull.h | /****************************************************************************
**
** Copyright (c) 2008-2020 C.B. Barber. All rights reserved.
** $Id: //main/2019/qhull/src/libqhullcpp/Qhull.h#5 $$Change: 2956 $
** $DateTime: 2020/05/23 21:08:29 $$Author: bbarber $
**
****************************************************... |
f3529e5fd5bdb86cae31a0afa2a7a8687421b34e | 476f6405b08a5e3d4cfd8be29101143625af9d38 | /10844.cpp | 8ff6dfcfb90dd432bbf9b7f5a4864cffdc4ee72a | [] | no_license | DongJinNam/boj | 7e77b80b6c422d974eca722f78629d77bd7f60d4 | 1b4fbffc047f13e304ccb39b398d02b4867bf5cf | refs/heads/master | 2021-06-22T19:58:00.620117 | 2018-05-26T16:35:11 | 2018-05-26T16:35:11 | 96,141,902 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 707 | cpp | 10844.cpp | #include <stdio.h>
#define MAX 1000000000
unsigned long long dp[101][10]; // 행 : 자리수가 N일 때, 열 : 마지막 자리수. dp[N][M] N자리수를 가지고 마지막자리수가 M인 계단수의 개수
int main() {
int size;
int i, j;
unsigned long long result = 0;
scanf("%d", &size);
dp[1][0] = 0;
for (i = 1; i < 10; i++)
dp[1][i] = 1; // 한자리수 일 때는 모두 1로 초기화 (0 제외)... |
081bfa3906d1492ce04d9f5180dfd393d782c3c1 | 4969d1b65585c2778005852b6d7a7718d6e1d702 | /10025.cpp | 9fbb1db8de626b5cc4229831fc39dbd30e899e0d | [] | no_license | cartove/My-UVA-solutions | 64461d6ab5acde0f90dfb31a4c8e209628e3f0c3 | 471edb70b08112936810711c888452d0dcf0e72c | refs/heads/master | 2021-01-16T19:32:33.138516 | 2013-05-12T11:24:25 | 2013-05-12T11:24:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 970 | cpp | 10025.cpp | #include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <cctype>
#define max(x,y) ((x) > (y) ? (x) : (y))
#define min(x,y) ((x) < (y) ? (x) : (y))
#define CLEAR(s) memset(&(s), 0, sizeof(s))
int main() {
int cases;
scanf("%d",&cases);
while(cases--) {
long l... |
95c3f7ee6b4cf534167377a6876d611f81a6f887 | 1f87571032231ae38b40e4fece60fb7c79879378 | /sketch_jul26b.ino | f42390e62a860cef03b82ef0fdb2dc33d4864f84 | [] | no_license | khamidn/manual-transpoter-robot-arduino | bf471a64c47110dc12068c1ff079af9618089bc6 | 69a44405d9f9b2ce37ed4b5c6d23bd5c018b0390 | refs/heads/master | 2023-03-28T13:30:50.211431 | 2021-03-27T10:42:22 | 2021-03-27T10:42:22 | 352,045,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,292 | ino | sketch_jul26b.ino |
#include <PS2X_lib.h>
#include <Servo.h>
//MOTOR BELAKANG//
#define dirka_bel 28
#define pwmka_bel 12
#define pwmki_bel 11
#define dirki_bel 26
//MOTOR DEPAN
#define dirka_dep 30
#define pwmka_dep 9
#define pwmki_dep 10
#define dirki_dep 32
//////////////////////////////PIN SERVO///////////////////... |
136258cf5183c50668ecbaffc930c7cdce7e9ff6 | c1220a49523a33a18ca2a2c726cdbf4111d36b83 | /src/program/test/observer2.cpp | 00e0b89966c80fddbd5d6c93797f29d606ad7bc7 | [] | no_license | nigels-com/glt | 6c13c59e996e87107ab4c05cd758a919036ea0c0 | 3e5db250836308b08aa308891cf03c3758eb863f | refs/heads/master | 2021-05-15T01:24:11.703854 | 2016-11-13T07:45:54 | 2016-11-13T07:45:54 | 32,901,980 | 2 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,655 | cpp | observer2.cpp | #include <misc/observer.h>
#include <vector>
#include <cstdlib>
#include <iostream>
using namespace std;
/*
Subject-Observer Pattern Example
This example related to a spread-sheet consisting of
Cell objects that can be inter-dependent. Each cell is
both a potential subject and observer. Potentially... |
96237277ffbbb6b7e61e3f7aa090f7c4056c1e50 | 8447d06d0d5da3db2b3aae926ec66409b38fb140 | /3rdPartLib/g2o/g2o/types/slam3d/edge_se3_pointxyz_depth.cpp | 2f9477e6e92879104481e150f3bb23b5f0c26dae | [
"GPL-3.0-or-later",
"LGPL-3.0-or-later",
"BSD-3-Clause",
"GPL-1.0-or-later",
"BSD-2-Clause"
] | permissive | HKPolyU-UAV/FLVIS | 60d0fecac6e10eb19a131d589a5c0ddf89198157 | 4ad31bbe5191ae2763c70a641c31337b1e06c9e2 | refs/heads/master | 2023-07-21T11:11:05.885918 | 2023-07-12T14:26:32 | 2023-07-12T14:26:32 | 197,144,164 | 145 | 37 | BSD-2-Clause | 2021-06-07T08:45:04 | 2019-07-16T07:33:55 | C++ | UTF-8 | C++ | false | false | 5,917 | cpp | edge_se3_pointxyz_depth.cpp | // g2o - General Graph Optimization
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must r... |
cd56646fcaa68e0204f4c20238b473771748dc67 | 96187cb1b203d621ff20abe0f13a5ece35c7de15 | /Codechef/SeptemberLong/FIBEASY.cpp | 59719a8f6795be4c3c41350283c019aab707c6e3 | [] | no_license | shadabshaikh0/Competitive-Programming | 7faa248513338f0af8b0ce651536dbe0b18aafe7 | 56d0723e69c750ac287feb76e1cf60e646910a83 | refs/heads/master | 2020-07-04T04:27:28.498903 | 2020-01-05T02:28:18 | 2020-01-05T02:28:18 | 202,155,410 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | FIBEASY.cpp | #include<bits/stdc++.h>
#define ll unsigned long long int
#define RD(v,n) for(ll i =0;i<n;i++ ) cin>>v[i]
#define bolt ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
#define MAX 60
int main()
{
bolt;
vector<ll> v;
v.push_back(0);
v.push_back(1);
for( ll i=2;i<MAX... |
bc45903330c30ca7e61b8051778331bdf5162d7b | 19ccfd6806c5054679dab3f275822302206b222f | /src/game/client/swarm/vgui/asw_hudelement.h | de1f1cb88c2fbc6a1b92eb4f17917069bc4412bb | [
"Apache-2.0"
] | permissive | BenLubar/SwarmDirector2 | 425441d5ac3fd120c998379ddc96072b2c375109 | 78685d03eaa0d35e87c638ffa78f46f3aa8379a6 | refs/heads/master | 2021-01-17T22:14:37.146323 | 2015-07-09T19:18:03 | 2015-07-09T19:18:03 | 20,357,966 | 4 | 1 | Apache-2.0 | 2018-08-30T13:37:22 | 2014-05-31T15:00:51 | C++ | UTF-8 | C++ | false | false | 652 | h | asw_hudelement.h | #ifndef _INCLUDED_ASW_HUDELEMENT_H
#define _INCLUDED_ASW_HUDELEMENT_H
#ifdef _WIN32
#pragma once
#endif
#include "hudelement.h"
class CASW_HudElement : public CHudElement
{
public:
// DECLARE_CLASS_SIMPLE( CASW_HudElement, CHudElement );
CASW_HudElement( const char *pElementName );
// Return true if this hud elem... |
7c85b43789d600c103f269afc32a4af977e4a892 | 3527ff6346f98a5b7c51ce3c58428227f4bc8617 | /leetcode/cpp/5561.cpp | f2b77504404a28952175af89ada18522a8a92cc4 | [] | no_license | ShawnDong98/Algorithm-Book | 48e2c1158d6e54d4652b0791749ba05a4b85f96d | f350b3d6e59fd5771e11ec0b466f9ba5eeb8e927 | refs/heads/master | 2022-07-17T04:09:39.559310 | 2022-07-13T15:46:37 | 2022-07-13T15:46:37 | 242,317,482 | 0 | 0 | null | 2020-10-11T14:50:48 | 2020-02-22T09:53:41 | C++ | UTF-8 | C++ | false | false | 1,005 | cpp | 5561.cpp | #include <iostream>
#include <vector>
#include <algorithm>
typedef long long ll;
using namespace std;
class Solution {
public:
int getMaximumGenerated(int n) {
vector<int> num;
if(n==0){
return 0;
}
if(n==1){
return 1;
}
if(n>=2){
... |
ad905439dda574552fa40124d35add359201b2e7 | f5c303eaf682b13ab9bc8cea548774b50caafa01 | /configurator/cfgeditor.cpp | 0c582155e1d1b9b2a2f987f2938f86cb47aabb49 | [] | no_license | minerva-tech/vtrpk-arm-enc-app | 60ad8e877e08767f9b0bd7563e184436573bde4d | bf142b6584896f7d0a3998957df7638f5bd637bc | refs/heads/master | 2021-01-19T10:29:43.613214 | 2016-11-20T12:50:14 | 2016-11-20T12:50:14 | 16,434,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,025 | cpp | cfgeditor.cpp | #include "ext_headers.h"
#include "pchbarrier.h"
#include <QDebug>
#include <QFileDialog>
#include <QTextStream>
#include <QMessageBox>
#include "cfgeditor.h"
#include "ui_cfgeditor.h"
#include "progress_dialog.h"
#include "portconfig.h"
#include "comm.h"
#include "proto.h"
CfgEditor::CfgEditor(QWid... |
2ce34cf4f4ad90f5940c6978356f5658b67b5fd1 | 08dc6bb8b91a717b3594512d93554ad8fb1e9cd6 | /1_ARDUINO/Arduino/AnalogPot/Sketch/Pot/Pot.ino | d41b740468e3ce9db5b97ddcab8a6ae891114cda | [] | no_license | mirkomancin/ArduinoLessons | 188e099f35000e44f6c493b300e01aea0fa13a82 | b5e7cf7ec10bf91fdff4ad2c6b6da7badd18590b | refs/heads/master | 2021-05-27T07:17:59.671403 | 2013-11-15T07:42:42 | 2013-11-15T07:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | ino | Pot.ino | int pot = 3;
void setup() {
//NON ho bisogno di dichiarare la modalità del pin analogico
Serial.begin(9600);
}
void loop() {
//leggo il valore e lo scrivo sulla seriale
int sensorValue = analogRead(pot);
Serial.println(sensorValue, DEC);
}
|
5df786fade2649fbd9ae418b508de82360ef6934 | e3e76c7b01a369608c93bbd5286bc85f0e4cf62a | /Pointers/10.1/TestScores1.cpp | 81d750a809ef67b9fdb553fcea32347677bbfad6 | [] | no_license | aw-leigh/Cpp_Practice | 12c171aa14b07fa40656306c5fa1307ff97af729 | 8e5af8d957579c194a10109953317d5e45f8906f | refs/heads/master | 2020-04-08T14:20:31.355853 | 2019-02-12T04:09:08 | 2019-02-12T04:09:08 | 159,432,751 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,531 | cpp | TestScores1.cpp | /*
Write a program that dynamically allocates an array large enough to hold a user-defined number of test scores.
Once all the scores are entered, the array should be passed to a function that sorts them in ascending order.
Another function should be called that calculates the average score.
The program should display... |
c1bd98ac5ce593ab85a1ddfea13e5f0635414383 | f6f5735be942a0ed672baec1df6077480f60ac8d | /Uebung-2-Solveig-Andres-Eva-Maria-Paul/ub/Node.cpp | b3dc2bbef796711442d5394d7b2d1d7d50f88bf6 | [] | no_license | s9ep/Uebung4 | f81d3061aae17db1367258a0c375f7144452a960 | 4b5d6ba85470862c94923c544514f31e16b736d8 | refs/heads/master | 2021-01-13T01:23:41.620126 | 2014-11-24T22:46:26 | 2014-11-24T22:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,973 | cpp | Node.cpp | #include "Node.h"
#include "Sequence.h"
#include "Edge.h"
#include <string.h>
#include <iostream>
#include <string>
#include <stdio.h>
#include <cstring>
NucleicAcid n_s("");
/*
* Default - Konstruktor
*/
Node::Node():sequence_(n_s){
}
/*
* Copy - Konstruktor
*/
Node::Node(const Node& node):sequence_(node.sequen... |
8c26a9bdbb647f389061f33b953c507a72f9dcf6 | 93becb0e207e95d75dbb05c92c08c07402bcc492 | /codeforces/cgr6/d.cpp | 894c0e7804400ec30bfb7290d310e2f2cfc26200 | [] | no_license | veqcc/atcoder | 2c5f12e12704ca8eace9e2e1ec46a354f1ec71ed | cc3b30a818ba2f90c4d29c74b4d2231e8bca1903 | refs/heads/master | 2023-04-14T21:39:29.705256 | 2023-04-10T02:31:49 | 2023-04-10T02:31:49 | 136,691,016 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,825 | cpp | d.cpp | #include <functional>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <vector>
#include <random>
#include <bitset>
#include <queue>
#include <cmath>
#include <stack>
#include <set>
#include <map>
typedef long long ll;
using namespace std;
const ll MOD = 10000000... |
895fcac16c6bfb33d77c6ed8cd53ac5fd39801df | 2ed2eab1052083cded0815c382fd3747477ad287 | /lastHomework/Subscribers.hpp | 2ebad2338317ef47021b9f51bf8e72ba0be270b3 | [] | no_license | lilyanagb/OOP | 7be635d7b303d0faf9438c5b8362886b219cc005 | 9db18e6d20efda91df254f216c317b2602007561 | refs/heads/main | 2023-08-14T12:54:37.742223 | 2021-09-22T14:24:46 | 2021-09-22T14:24:46 | 409,225,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | hpp | Subscribers.hpp | #pragma once
#include "Message.hpp"
#include <string>
#include <vector>
using namespace std;
class Subscribers
{
public:
Subscribers(const string& id = "");
virtual ~Subscribers()=default;
string getID() const;
virtual void signal(const Message&)=0;
virtual int read() const=0;
virtual Subscribe... |
0cb3a82e0198a8eb781807426f54b2d508dfe772 | 6d549f4512c4e39c2a857d8e5b820f75c083df6d | /Source/Lady/HighScoreSave.cpp | a559202f66609daa1ccae60be21c865993c8d43f | [] | no_license | afletcher222/LadyGoldM | a5175eef1c5a1f456de0fb9957f1c74133bccd1d | c57fb1f780820a876e41c9176418b23d574c3285 | refs/heads/master | 2022-11-17T13:40:49.028818 | 2020-07-14T22:18:07 | 2020-07-14T22:18:07 | 276,931,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | HighScoreSave.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "HighScoreSave.h"
UHighScoreSave::UHighScoreSave()
{
PlayerName = TEXT("HighScore");
UserIndex = 1;
} |
6d0586bc99b5f816e7664040469150b459ca61a8 | ae60fdf2d0c25faa679de7f37fb20522ce239835 | /c++book/chap2/4_1.cpp | 2de0d7b08df65f472a60b9426c33742cf4b93f67 | [] | no_license | hyomss/C-Study | 82b24ef36fb09ff6b7c77605f4ca369ec6a380e3 | 5be61243d9251a72ec6fd30ca50e6cfbf91ca8fc | refs/heads/master | 2020-05-30T05:02:23.573638 | 2019-05-31T07:55:19 | 2019-05-31T07:55:19 | 189,552,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | 4_1.cpp | // c++ standard function 1
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char *a = "home";
cout << strlen(a) << endl;
char dest[10];
strcat_s(dest, sizeof(dest), a);
cout << dest << endl;
strcpy_s(dest, sizeof(dest), a);
cout << dest << endl;
cout << strcmp(dest, a) << endl;
... |
311373d4e0a917f765d2de5358700d354560ad0b | e32f725e33007f0db3af34318fc2ef7b7a754f99 | /c++/book_mayers/item_23_Rvalue_References_Move_Semantics_and_Perfect_Forwarding/Widget.hpp | 108b876939fea98a997113dd1be7666a07a19d5b | [] | no_license | gitkusiu/exercises | bc0517dab1f8de2d9c790cacb036928503d2bae9 | ccf3e51c2d90fde72a4a58f3dbbea8f384a84977 | refs/heads/master | 2023-04-24T07:52:19.731883 | 2021-05-12T07:14:56 | 2021-05-12T07:14:56 | 72,887,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 161 | hpp | Widget.hpp | #pragma once
#include <string>
class Widget {
public:
Widget();
Widget(Widget&& rhs);
private:
// static std::size_t moveCtorCalls;
std::string s;
}; |
575fa8178abb2c2c84c95161d4c6b5e5fdb309b1 | cb157512e2194e72adf07fc2291526d177371269 | /PQ/heap/test_PQ.cpp | 7d431775e786d2493613c9150e262a0648b7ecb0 | [] | no_license | hexu1985/general_algo | de30213462f8e091b53a782d31386af700469550 | 4797936bf81dcb489350812c95421a02aaaee223 | refs/heads/master | 2020-03-29T18:40:36.297849 | 2018-11-01T03:29:05 | 2018-11-01T03:29:05 | 150,226,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | cpp | test_PQ.cpp | #include <iostream>
#include "PQ.hpp"
using namespace std;
using namespace general_algo::heap;
int main(int argc, char *argv[])
{
const int maxN = 100;
PQ<int> pq(maxN);
int n;
int count = 0;
while (cin >> n) {
count++;
if (count > maxN)
break;
pq.insert(n);
}
cout << "pop all item from PQ:\n";
wh... |
4c01f799c3bbf9ac2dd1964ea75173d3127b05c2 | e45e53f65f1417d0f0ffad8153025668c31231a7 | /blocking queue.h | 59bdbb74cc4c5ee76d9fe434e4110d67abf1288e | [] | no_license | nikanor97/concurrency | 0314ddbbf67d8dc1cbf2bc4261f129023719469e | 9108899e2cfe9bfb0e1eaee5b53dc5d748fbbb7d | refs/heads/master | 2021-08-26T06:40:10.605059 | 2017-11-21T22:52:23 | 2017-11-21T22:52:23 | 111,608,587 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | h | blocking queue.h | //
// Created by nikita on 26.03.17.
//
#ifndef INC_3_W_BLOCKING_QUEUE_H
#define INC_3_W_BLOCKING_QUEUE_H
#endif //INC_3_W_BLOCKING_QUEUE_H
#include <condition_variable>
#include <iostream>
#include <mutex>
#include <atomic>
#include <deque>
#include <stdexcept>
template <class T, class Container = std::deque<T>>
c... |
ea1db8a8118c665c18ff01bb94730e5b13c6b2df | af75d3f56135742f48cd2607861a32033fd53980 | /电影节.cpp | 0d37ebd255dcda4051782739279c36efbcb3abe2 | [] | no_license | royalneverwin/Programming_Practice | 0f5f6ec570cba6ce16a4b7bb47206f50c1ecdbeb | c617efa2cf2b82ecbeda8f4b7e74470015c38bb0 | refs/heads/main | 2023-06-08T21:31:32.333734 | 2021-07-04T02:27:18 | 2021-07-04T02:27:18 | 350,348,227 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | cpp | 电影节.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
//贪心算法,每次观看能观看的电影中结束时间最早的一场电影,这样就能观看到最多部电影
struct movie{
int start;
int end;
bool operator < (const struct movie &m) const{
return end < m.end;
}
};
vector<movie> Movie;
int main(){
int n;
int totalMovi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.