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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fd8452dc085236caaea381f04b86e4a27727e9a | 889ca74cbc316998ab398d59793bc2582d3bd739 | /Engine/ModuleScene.cpp | db0e4071c198e06ba7c1e27130162d31c293fc2f | [
"MIT"
] | permissive | Beautiful-Engines/Engine | ee28cc318973694c3a5db78315ff7bbc5c5dcd22 | fab1b2415d63218078cc6f2b2a33676e9ef45543 | refs/heads/master | 2020-07-22T22:20:04.503652 | 2019-12-29T20:16:11 | 2019-12-29T20:16:11 | 207,347,488 | 0 | 0 | MIT | 2019-12-29T18:01:32 | 2019-09-09T15:54:35 | C++ | UTF-8 | C++ | false | false | 15,031 | cpp | ModuleScene.cpp | #include "Application.h"
#include "ModuleWindow.h"
#include "ModuleRenderer3D.h"
#include "ModuleGUI.h"
#include "ModuleInput.h"
#include "ModuleImport.h"
#include "ModuleFileSystem.h"
#include "ModuleResource.h"
#include "GameObject.h"
#include "Primitive.h"
#include "ComponentTransform.h"
#include "ComponentTexture.h... |
8421012d8461064c4d0abcb06cbbaa040c7a4784 | f0f576e84c3e36f56167544869f5e5ac9ab75adc | /TIMLE/SourceFiles/States/state.cpp | 363592b324fc681872a8ff8aaddd5387b3c5d776 | [
"Apache-2.0"
] | permissive | Vasar007/TIMLE | 89386279dfe0236b0a08663830db24016dc661e0 | 9beaf5f122f8fbbd23d7dcb89a297378fdd68559 | refs/heads/master | 2021-06-24T19:59:51.215100 | 2020-03-21T23:43:58 | 2020-03-21T23:43:58 | 102,362,098 | 1 | 1 | Apache-2.0 | 2020-03-17T21:52:32 | 2017-09-04T13:03:13 | C++ | UTF-8 | C++ | false | false | 1,373 | cpp | state.cpp | #include "state_stack.hpp"
#include "States/state.hpp"
State::CurrentSettings::CurrentSettings(const sf::Vector2u windowSize,
const WindowStyle windowStyle, const float musicVolume,
const Fonts::ID fontType, const ActualLanguage langu... |
557e1643916a70ec69725cd9d0809e8e67198ec7 | b564a92684f51be4cccb5d9a90fc4c129b8b5de2 | /KiteOpenGLDriver/WindowsMouseMessageHandler.cpp | 6fafbca641c8334af869a1a40555db5f573d9e55 | [
"BSD-3-Clause"
] | permissive | awyhhwxz/KiteOpenGLDriver | 0c84f89b8a7fa34990582d0c2acfeeaccc6a02be | cce0a67b93431d3958a485d0cc9420ecb6295d42 | refs/heads/master | 2020-03-22T03:46:10.035046 | 2019-02-25T14:34:20 | 2019-02-25T14:34:20 | 139,451,343 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,589 | cpp | WindowsMouseMessageHandler.cpp | #include "stdafx.h"
#include "WindowsMouseMessageHandler.h"
WindowsMouseMessageHandler::WindowsMouseMessageHandler()
{
}
WindowsMouseMessageHandler::~WindowsMouseMessageHandler()
{
}
void WindowsMouseMessageHandler::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_MOUS... |
8dc3c3a79b7630a9b0c8c772190a579f4508eb85 | debc0908d22666cedb051d309d58865735b8fb04 | /AR_Landkaart_Leroy/AR_Landkaart/main.cpp | 1bacfd5847f83bea609e14bd0a9a03782d4cd68b | [] | no_license | E-pep/2018_beeldinterpretatie_Leroy_Paul | c5c746b6dc832b666101ad3b595a91714b8b389a | 4a8fe1070d367ade025b3c7173fac513c9d75610 | refs/heads/master | 2021-07-12T05:03:30.880425 | 2020-06-09T21:25:20 | 2020-06-09T21:25:20 | 153,741,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,483 | cpp | main.cpp | #include <iostream>
#include <opencv2/opencv.hpp>
#include <chrono>
using namespace std;
using namespace cv;
/// Global variables
// default values for the sliders
int thresholdSlider = 12;
double thresholdSliderDouble = (double)thresholdSlider/100;
int ImageWidth = 400;
int ImageHeight = 400;
///functions
//ge... |
9923152e460d6d1120316199bb75bbaef6e87dd1 | f3a468e648a5a8321d72324c167d2db3404287c1 | /NoiseTemplated/Noise.h | fd788e375af5908a65a48825b6bd9035c6d1b95f | [] | no_license | NCCA/RandomTests | cf4a73a8712498a0e3b7cf6ae8351989cf85f568 | 75a7d9f916d253318b7832062e4980797d00bc8c | refs/heads/master | 2021-01-10T14:59:59.128372 | 2016-03-09T20:40:40 | 2016-03-09T20:40:40 | 53,491,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,796 | h | Noise.h | //----------------------------------------------------------------------------------------------------------------------
/// @brief
/// simple Perlin noise class cobbled together from Computer Graphics OpenGL by F,S Hill
/// and Texturing and Modeling Ebert et-al
/// also thanks to Ian Stephenson for help and debuging ... |
e42cbce5cd2a8cbea94e813ff1c7b91bf773d158 | cbda5f974082fff2f4d607444312f81b58ad213a | /main_preprocessed.cpp | 7bebe8779bdb6530bcaabafb144dd3c132159b5b | [] | no_license | arigatory/HowCppCompiles | fa518bd5a4113994876c78870a7d2bc61375990b | 64524424a5ea127ecaa38ec0ee1bf3c1b40b7137 | refs/heads/master | 2023-01-13T11:52:42.466829 | 2020-11-25T18:54:06 | 2020-11-25T18:54:06 | 316,028,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | cpp | main_preprocessed.cpp | # 1 ".\\main.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 ".\\main.cpp"
# 1 ".\\square.hpp" 1
int square(int x);
# 2 ".\\main.cpp" 2
int main()
{
square(5);
return 0;
}
|
8bece9edf30a9b464010bf21246c884873f77eed | 218c021e1fe148c168e81527f19afcb2ba811361 | /Implementations/11 - Math (4)/11.3 - Matrix/Matrix Inverse (6).cpp | 68bb14bc84f77a7322fa3f2b56b600f22e806f9f | [
"MIT"
] | permissive | nuha14m/USACO | 2232d3f13ae3b57f1691a21e36c8826a5b655cbf | 5830a6d05f8c52bfddc36f916619fa3d863abcba | refs/heads/master | 2020-06-09T22:52:14.287724 | 2019-06-23T20:03:16 | 2019-06-23T20:03:16 | 193,522,765 | 1 | 0 | MIT | 2019-06-24T14:35:53 | 2019-06-24T14:35:52 | null | UTF-8 | C++ | false | false | 1,630 | cpp | Matrix Inverse (6).cpp | /*
* Description: calculates determinant via gaussian elimination
* Source: various
* Verification: SPOJ MIFF
*/
namespace matInv {
template<class T> void elim(Mat<T>& m, int col, int a, int b) { // eliminate row a from row b
auto x = m.d[b][col];
FOR(i,col,m.c) m.d[b][i] -= x*m.d[a][i];
}
... |
1cf9bf9bf0985a99443018151c0da8d85acea59f | 13d984667a378bcc6a6dfc8b29f2660d31ca851d | /universitymanagementsecond final.cpp | c4885f70817e4766c72a164233e23839c341fb2a | [] | no_license | ahosanul/cpp_project | 8eac72bd1338750c9844bfe9e6631617d7da24cd | 2e093532788c449666ab2ca834e22213e4227ad4 | refs/heads/master | 2022-04-25T23:37:08.217701 | 2020-04-26T15:00:29 | 2020-04-26T15:00:29 | 259,051,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,024 | cpp | universitymanagementsecond final.cpp | #include<iostream>
#include<fstream>
#include<cstring>
#include<conio.h>
#include<stdlib.h>
#include<cstring>
#include<iomanip>
#include <stdlib.h>
// testing
using namespace std;
fstream file;
void great(double data);
void control();
int sub=0;
int a=0,b=0;
double temp_total_cradit;
double temp_multi_... |
0810326cead2be3d8dd675e8435269391894d574 | 66d87304552c5cd561006c05f147a3e0953791f6 | /校园导航/test.cpp | cd2e2e990f7fa0a9505346625fd86b8e8a62250a | [] | no_license | puyuerong/Campus_Navigation | e498612c48b32584caa35e0b1398aa65f72fc947 | 2ceab45f1d17243229ec3e5415b2eecc8edd2848 | refs/heads/master | 2022-04-05T06:21:38.599028 | 2020-01-03T02:21:04 | 2020-01-03T02:21:04 | 231,494,754 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 28,129 | cpp | test.cpp | #include"stdio.h"
#include"stdlib.h"
#include"windows.h"
#include <graphics.h>
#include <conio.h>
#define MAXVEX 20 //最大顶点数
#define INFINITY 9999
typedef struct {
int x;
int y;
char name[100];
char describe[200];
}Location;
typedef struct {
char name[30];
char password[30];
... |
1c36d4b31b73b4d7e8175ed308d3e5498397330d | e0316d6fb4fd539e2890de8a67cb8203d0079560 | /assign1/pi_gen.cpp | 0f32877b082fc0b06c510471b877d975ef330603 | [] | no_license | mikeaalv/Monte_Carlo_course_assign | d07ceedf6e47da98e6e8b2cccb4b2632cf1da27b | 13ba676d2d004c07cfcc6c08a0a072905d94b070 | refs/heads/master | 2021-01-03T14:04:09.289815 | 2020-04-19T16:14:23 | 2020-04-19T16:14:23 | 240,096,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,404 | cpp | pi_gen.cpp | // this program approximate pi through random drawing points in square
// pi is calculated by 4*Q, Q is the ratio of sample in the quarter circile within the square
// Compile:
// module load icc/2018.1.163-GCC-6.4.0-2.28
// icc -O2 pi_gen.cpp -o pi_gen
// Run
// ./pi_gen N_sample randseed
// N_sample is the number of ... |
dc3776d1099ce9744896d5626233248aee352f96 | 3bcc13b266921198e8efd6e31bd9214b2442f91f | /Documentos/clase7/example13_strcmp.cpp | 4afb577861d425722bdeb3def1a0603ec5990ef0 | [] | no_license | lidersamir/CursoFCII_UdeA_2021_1 | 5604f283188a52280894e62993c3503308a2bc63 | 23f24e799a1175589f38a735bd1aa1ab79999336 | refs/heads/main | 2023-07-18T13:35:13.680024 | 2021-08-28T18:19:24 | 2021-08-28T18:19:24 | 343,796,042 | 1 | 0 | null | 2021-03-02T14:08:44 | 2021-03-02T14:08:43 | null | UTF-8 | C++ | false | false | 733 | cpp | example13_strcmp.cpp | // Uso de strcpy y strncpy.
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;
int main()
{
char *s1 = "Felices Fiestas";
char *s2 = "Felices Fiestas";
char *s3 = "Felices Dias de fiesta";
cout << "s1 = " << s1 << "\ns2 = " << s2 << "\ns3 = " << s3
<< "\n\nstrcmp(s1, s2) =... |
1f846e7254a859fb777394853cc8fe463c9e6718 | a75da3ed862028ce488fb8c12633a870a3ff36a3 | /include/pc/composite_rtp_transport.h | 35f9382571bf12ebee8cb6ab5ea91c81164b997f | [
"Apache-2.0"
] | permissive | ispysoftware/spitfire | e6eb5b31b742a2a86ac95f90b1d01b6683d17f9d | fe2b395207bdea04223854163dbd2b6404ad75f5 | refs/heads/master | 2021-04-24T12:47:55.240914 | 2020-03-03T20:51:37 | 2020-03-03T20:51:37 | 250,120,278 | 1 | 0 | Apache-2.0 | 2020-03-26T00:09:46 | 2020-03-26T00:09:45 | null | UTF-8 | C++ | false | false | 4,800 | h | composite_rtp_transport.h | /*
* Copyright 2019 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
f0f6c717d0dad86c1dcfd337359c9ae9aeb7ad63 | 7ca22b3a8e95c03b54c37b33cc49e27240f22274 | /include/Table.h | 684cee426177f846a07f103818d41c961f3efc75 | [] | no_license | almda/Spl-Restaurant | e640f630ed650426fc0717f50b5ed94a8d6d6101 | 84e2406305c56803807ff21b4c4e465e99b5d5f1 | refs/heads/master | 2022-12-12T16:21:45.160068 | 2020-09-14T21:39:51 | 2020-09-14T21:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,263 | h | Table.h | #ifndef TABLE_H_
#define TABLE_H_
#include <vector>
#include "Customer.h"
#include "Dish.h"
//This class represents a table in the restaurant
//Each table has a finite number of available seats - represented by capacity
//indicator if the table is open - bool open
//list of orders done by the table - orderList
//list ... |
a6fd88c31d734302af22cbed084bb2dfa18ea678 | 4ba4b9de9fc1afe23da48f9dddd7aa071a629b66 | /Source.cpp | 2166c8b3a5b106b208512aa0ad18cfa36d762b66 | [] | no_license | 13beehiqbal/HQPlayer | f3951482574f6409f9436601869b8dc7bb52053f | 5b485ba05a25c93ec7d96a3e5e352d06ccee30f4 | refs/heads/master | 2020-04-23T15:19:40.341846 | 2019-03-05T10:13:40 | 2019-03-05T10:13:40 | 171,261,547 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,406 | cpp | Source.cpp | #include<iostream>
using namespace std;
#include<string>
#include"HQPlayer.h"
void Menu()
{
HQPlayer player;
char ch;
do
{
char i;
cout << "Press a to add song" << endl
<< "Press d to delete" << endl
<< "Press s for search" << endl
<< "Press v for display" << endl
<< "Press e for ... |
4dbb68d4799b74875d58c294da214e16100315e4 | a342390195124fa2ad4773d444383a337b7b757b | /src/turtlebotDetector.cpp | 6e819fe6290d11f3aabfc5b2e194f27ec6374f48 | [
"MIT"
] | permissive | akhopkar01/turtlebot_inspection_bot | fba49e66306c6b937df18b8056b58da0fd96504b | fd6ad72eef8bd26acd124cce695ce7ad9737d337 | refs/heads/master | 2023-02-01T04:43:25.108027 | 2020-12-17T07:21:04 | 2020-12-17T07:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,381 | cpp | turtlebotDetector.cpp | /**
*
* Copyright (c) 2020 Kartik Venkat Kushagra Agrawal Aditya Khopkar
*
* @section LICENSE
*
* MIT License
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, inc... |
c5ba120e41b0873276123dd3fe6d5601eaf0a17f | cac4474b23cdcced68559676e5e262035e0b30ea | /TowerDefeneseGame/Mobs.hpp | 5644c6a40ed9e3296f6e12ba62642c149899f3d1 | [] | no_license | Arozzal/TowerDefenseGame | d95b2f38cd9960969e13dc5eaec480c0dc87654b | 9c0172682ccf6f9776ddfb545bb3ea6d718e7072 | refs/heads/master | 2023-06-03T15:55:37.779125 | 2021-06-25T15:37:43 | 2021-06-25T15:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,144 | hpp | Mobs.hpp | #pragma once
#include "Mob.hpp"
class MobGreenTank : public Mob
{
public:
MobGreenTank(int xpos, int ypos);
void update(Game& game) override;
void draw(Game& game) override;
};
class MobSmallCar : public Mob
{
public:
MobSmallCar(int xpos, int ypos);
void update(Game& game) override;
void draw(Game& game) over... |
5410feb7fb722fc9cb247399b6785f0b5ed1b5a9 | f23264b4529de3464f7b41acd17405ad29b0cf5c | /Anul 1/Semestrul 1/Algoritmi si Structuri de Date - Miroiu Maria/Laborator/ASD15/R2_Forma_Poloneza.cpp | 2b065ce2dd9b0935816a55ad1c5c297ebcef39dd | [] | no_license | PMS25/Facultate | 43c30c723a17f66f7543270bb1e31aeb4c58bfdf | 6c3dee9772e365b0b0eceed5e3e0c31622c1c888 | refs/heads/master | 2021-09-08T07:44:47.538072 | 2021-05-22T11:44:21 | 2021-05-22T11:44:21 | 221,477,050 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,204 | cpp | R2_Forma_Poloneza.cpp | #include <iostream>
#include <cstring>
using namespace std;
#define NMAX 30
char s[NMAX];
char stiva[NMAX]; int varf;
char fp[NMAX]; int n=-1;
int Prioritate(char c){
switch(c){
case '*':
case '/': return 2;
case '+':
case '-': return 1;
case '(':
case ')': return ... |
1fa4dd1abe9a8b129042e62929a1b1014a33bfde | 6b731c15869e1d37f43f2573d5d4a774c88f43a8 | /MuseEngine/Muse/src/Core/ECS/Component/CameraComponent.h | 68ff43a107984e561ba60ecda22821d2c8924257 | [] | no_license | Daniel95/MuseEngine | 546151aaf510077c6e0088a582eb847892037e5a | 8119dff8f783ae2c63b726a82762aa68fd91d5fe | refs/heads/master | 2020-10-02T04:05:37.898613 | 2020-09-04T17:35:46 | 2020-09-04T17:35:46 | 227,696,196 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,920 | h | CameraComponent.h | #pragma once
#include "glm/glm.hpp"
#include <glm/gtc/matrix_transform.hpp>
namespace Muse
{
class TransformComponent;
class CameraComponent
{
public:
CameraComponent();
~CameraComponent() = default;
void SetProjection(float a_AspectRatio, float a_ZoomLevel);
void Set... |
abf8408991e5c978658ed511769648121275d0f4 | 3e6f75da8292ded75bf0b474e910d67d7850ac91 | /UEB12/ListenDialog.h | 44bc10d48dfb86467c044aefd40801fb7eb9ec27 | [] | no_license | Prog2-2015-HTWSAAR/UEB12 | 5fc2030eed69927f6a01b819420b1017f8b9886c | 29bc9b83f9f7a22bda272ab8ee5622bd0374e1ae | refs/heads/master | 2021-03-12T19:46:52.604006 | 2015-07-20T22:02:30 | 2015-07-20T22:02:30 | 39,314,904 | 0 | 0 | null | null | null | null | ISO-8859-3 | C++ | false | false | 6,021 | h | ListenDialog.h | /**
* compile: g++ -c -Wall -pedantic *.cpp
* compile: g++ -o ueb08 *.o
* @file ListenDialog.h
* @author Andreas Schreiner & Simon Bastian
* Changelog: https://onedrive.live.com/redir?page=view&resid=A24EC16A1F3E72AA!4270&authkey=!AFE0aRW5WKEHg3Q
*
* @date 14.06.2015
*/
#include "LinList.h"
#include <iostrea... |
7581abb99af9a9f1c5c8dbc0900ca4e324c850a0 | 40ca2419b494a1dbe4c0b2d3bea5db26f86ff040 | /C++ chapter_ten/10_27/10_27.cpp | 911996aae91b26fb48351d8c275176aca8dc4803 | [] | no_license | whix/my_code_for_cpp_primer_5th | 73c16a082ef400a4980fefb1b790616982035878 | d3c1141caaea79ee4b48208b7a2aaf5570ef3968 | refs/heads/master | 2021-01-22T05:15:33.903737 | 2015-07-13T03:16:55 | 2015-07-13T03:16:55 | 38,985,529 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 605 | cpp | 10_27.cpp | //使用unique_copy函数,第三个参数要使用back_inserter迭代器,记住算法不改变容器大小~ 20141202 wan
#include <iostream>
#include <list>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
int main(){
vector<string> words;
string tmp;
cout << "Enter some strings(Ctrl+Z to end) :" << endl;
while(cin >> tmp){
words.push... |
5405361a869c066a52a7a3932976ec954a7436f0 | 43cef8331c78b0f1179940885b0e48aaad375a9e | /SDLWrappers/ScaledSurface.cpp | 2d7078b6267e3eb81e3a6642d0c360290ace49a2 | [] | no_license | hackerlank/JERonimo | 70c1eccd98e99ec025fd0b9a02ff6f8ff53e364b | fb2c28c93e4b8b48a924d8abfb6a1b0f25987fbe | refs/heads/master | 2020-06-13T06:52:11.529189 | 2014-11-16T01:05:40 | 2014-11-16T01:05:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,240 | cpp | ScaledSurface.cpp | #include "ScaledSurface.h"
namespace jer
{
ScaledSurface& ScaledSurface::operator= (const ScaledSurface &other)
{
this->operator=(other);
resize(other.getDim());
}
const SUCCESS ScaledSurface::load()
{
const SUCCESS ret = Surface::load();
return ret | resize();
}... |
3c26b48fd06789aefaf111f91096dc7dd1d06ed1 | ee50ace26abde4ed4374bb30e6529f7503c56e34 | /OpenMP/SummarySin.cpp | bf30452f59b85c592de545975481f893fdb8b777 | [
"MIT"
] | permissive | ebaty/ParallelProgramming | 64b0aba4f0aecb1b5e27bcd71dbc95c720f7efd6 | 6212f8c6601bb6dd6e365dfa0866d6fa11e44745 | refs/heads/master | 2021-01-10T12:23:10.346335 | 2015-12-16T05:37:23 | 2015-12-16T05:37:23 | 48,089,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | SummarySin.cpp | #include <cstdio>
#include <iostream>
#include <cmath>
#include <omp.h>
#define kSize 1000000000
using namespace std;
void printThreads() {
int count;
#pragma omp parallel
{
count = omp_get_num_threads();
}
cout << "use thread: " << count << endl;
}
int main(void) {
printThreads();
static double array[kSiz... |
588cca32165a42879358d1dcac37fe5eb23cb2f2 | 99dd9323eafaea5344b74f1c46beb8dc6ed883ce | /neurons/BasicNeuron.cpp | f119f43410049fa8170cecf9b12a924d6154fd17 | [] | no_license | Izeren/spikeflow | 59aed8d28a9f7271a4fbc1792efb0c8e1ed087c0 | 0a56c92119de9ce247a46f66d53dfb36150421e3 | refs/heads/master | 2021-08-07T09:35:46.472318 | 2021-06-23T18:25:16 | 2021-06-23T18:25:16 | 178,170,574 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | cpp | BasicNeuron.cpp | #include <BasicSynapse.h>
#include "BasicNeuron.h"
float BasicNeuron::ProcessInputSpike( SPIKING_NN::Time time, SPIKING_NN::Potential _potential )
{
potential = _potential;
}
void BasicNeuron::Reset()
{
potential = 0;
consistent = true;
grad = 0;
inputSpikeCounter = 0;
outputSpikeCounter = 0;
... |
2a3b3bf9652ada42a7e2bc70c1235ac742688a4b | cb6c5cf210f7da4c42fe547adeb26800ec2dc33d | /src/swf/oglMesh.cpp | 9c5847d5c0201b31e5f4c09c09a82805a1af42cc | [] | no_license | magnusl/FlashPlayer | c4fd4ae00089f68eb549ab9bc5bc7a76cc169a99 | 57c873edea93e8fbf989d46c6fd29203293db5f6 | refs/heads/master | 2020-03-07T10:16:41.267126 | 2018-03-30T12:57:06 | 2018-03-30T12:57:06 | 127,427,652 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,144 | cpp | oglMesh.cpp | #include "oglMesh.h"
#include "CGLTexture.h"
#include "gfxGradient.h"
#include "gfxMesh.h"
#include <memory>
#include <GL\glew.h>
using namespace std;
namespace swf
{
namespace ogl
{
static bool generateTexture(const gfx::Gradient_t & a_Gradient, uint8_t a_Texture[], size_t a_TextureSize);
std::sh... |
b4574b8e881292f3358783b0b18128e75a0581c2 | 8015792b79fe76987e36594c1915001df315d6d6 | /HM-27/6-BubbleSort.cpp | d1c82cf6b0470a47f17a7ac3eb94f8499564d15a | [] | no_license | WhiteRabbit-21/C-Exercise | 7ecd3e0bcdf6134fcb021ed02f9a3aacbe28690e | 21cdb8aae9887812902b6b94dec260acc6aed9f2 | refs/heads/master | 2020-09-13T10:20:58.991478 | 2020-05-02T04:34:51 | 2020-05-02T04:34:51 | 222,740,391 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,520 | cpp | 6-BubbleSort.cpp | #include <iostream>
#include <ctime>
using namespace std;
void RandArray(int N, int Array[]) {
for (int i = 0; i < N; i++) {
Array[i] = rand() % 21;
}
}
void PrintArray(int N, int Array[]) {
for (int i = 0; i < N; i++) {
cout << Array[i] << "\t";
}
cout << endl;
}
int Ret(int Num) {
int tmp, tmp1;
tmp1 = ... |
ed9b9096c3df35553c3b647651d7054e596596ae | 10e0e4a6021587a032317ef62d94cae56b44d6d6 | /sources/CRecordingSettingsList.h | 4d7e9ee35e17ad4fd821f3ac10e072a22abf5f98 | [] | no_license | jamiepg1/veris6 | 8cb52122d26438f192644506a1a6fb289ba7cecd | e1639d3b79388b6dfa6fb055f419ed41ee615a21 | refs/heads/master | 2018-03-26T16:45:01.203355 | 2014-08-06T00:30:09 | 2014-08-06T00:30:09 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,536 | h | CRecordingSettingsList.h | // ===================================================================
// CRecordingSettingsList.h ©2006-2011 EDI
// ===================================================================
#pragma once
#include "CFileList.h"
#include "CRecordingSettingsFileItem.h"
class CRecordingSettingsList : public CFileList<C... |
0351bfd1d8fc69650c0fd1ec88ce95bd161d747d | 5ca8458b07d6c632abfdc26001cee52c56f2104b | /nullunit/src/t_stream_reporter.h | 8a9a86465b02d78a687c07a59bd04af9d461733a | [
"BSD-2-Clause"
] | permissive | dcbGH/nullunit | 2fead5cc18c4f4e20561d1b80920691d40ef1c0c | dd3075877359fc53d1b56dbba9f3e7c7d003dad1 | refs/heads/master | 2021-01-11T04:06:06.337537 | 2012-09-08T04:44:51 | 2012-09-08T04:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,654 | h | t_stream_reporter.h | // Copyright (c) 2011-2012, Jonathan Clark
// All rights reserved.
//
// This software is licensed under the two-clause Simplified BSD License.
// The text of this license is available from:
// http://www.opensource.org/licenses/bsd-license.php
#ifndef _T_STREAM_REPORTER_H_INCLUDED_
#define _T_STREAM_REPORTER_H_INCLUD... |
9ee7dc83348ccb915f2bbdc9042e69fb95847d19 | d3f27b69c3fd34bdf426a9fb9463b98a0b3d8dbb | /main.cpp | 61ca34674b4a19a29af8c9c934a6586d1b49aa57 | [] | no_license | qingliansuiying/work6 | 7f55a67683931e2f42c3a6d22438fd51a18ac7ac | c48ff4e4639528fb6cfa9c42322a963f3edfdaea | refs/heads/master | 2021-01-23T04:48:34.145535 | 2017-06-09T13:19:44 | 2017-06-09T13:19:44 | 92,943,246 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,339 | cpp | main.cpp | #include<iostream>
#include<ctime>
#include <fstream>
#include<string>
#include<stdlib.h>
#include<string.h>
#include "head.h"
using namespace std;
int main()
{
string lan[10]; //存储语言
char s[30]; //s存储表达式
int i=0,sum=0,language,type,answer=0;
float check=0; //用于储存式子答案
Interaction inter;
File file... |
e9af8f7e1c5c88b24d562f0f8743cd9f30c461e9 | 7e62f0928681aaaecae7daf360bdd9166299b000 | /external/DirectXShaderCompiler/tools/clang/test/PCH/Inputs/working-directory-1.h | 73eba50627d0a7127e8515394979331cae6367ed | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yuri410/rpg | 949b001bd0aec47e2a046421da0ff2a1db62ce34 | 266282ed8cfc7cd82e8c853f6f01706903c24628 | refs/heads/master | 2020-08-03T09:39:42.253100 | 2020-06-16T15:38:03 | 2020-06-16T15:38:03 | 211,698,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | h | working-directory-1.h | template<typename T> struct A {
A() {
int a;
}
};
|
9430bf802477cbd78a7e3abde0e6d40a4cb0d541 | 67fc20f8917fa808a762eebab6355ec33475adba | /Problemsetting/24R1/8/validator.cpp | 1794a1452ef5987fd5b18e06a78910f76abe18cd | [] | no_license | DreadArceus/Codeforces | ac557f4b28ad813471e71b6ba9acbfcd2d028044 | e34d0ff9535987c2dc8e1f92fbc466223e6c8b4f | refs/heads/master | 2023-06-04T16:55:55.576281 | 2021-06-15T02:01:10 | 2021-06-15T02:01:10 | 277,622,351 | 0 | 1 | null | 2020-09-30T19:14:59 | 2020-07-06T18:46:09 | C++ | UTF-8 | C++ | false | false | 1,151 | cpp | validator.cpp | #include <vector>
#include <queue>
#include "testlib.h"
using namespace std;
vector<vector<int>> graph;
vector<bool> visited;
void bfs(int source)
{
visited[source] = true;
queue<int> q;
q.push(source);
while (!q.empty())
{
int x = q.front();
q.pop();
for (auto y : graph[x... |
3fac836a48a84556b4f390c23d9c5d78bbadc617 | 472154315d971c899a64b06fe310353af4334e9e | /ScaleFactors/LeptonEfficiency/CMSTriggerSFs/CMSTriggerSFTest.cc | a69110c5340ebbebb0ae0c6a1c70952631d5b487 | [] | no_license | brunel-physics/tZq_Dilepton_NanoAOD | 8a646ed04c80467faefa053ee9341459d6bf51de | 4d28475017e98dc4931b9afe1e728a53357dcaf1 | refs/heads/master | 2022-08-31T02:59:31.133592 | 2022-08-04T16:14:33 | 2022-08-04T16:14:33 | 252,706,676 | 0 | 0 | null | 2021-03-29T11:03:27 | 2020-04-03T10:58:25 | C++ | UTF-8 | C++ | false | false | 4,588 | cc | CMSTriggerSFTest.cc | #include <iostream>
#include <fstream>
auto CMSTriggerSFTest2(const string& year, const string& UpOrDown){
vector<float> PtTest{1000, 99.2, 25.2, 54.1, 74.3};
vector<float> AbsEtaTest{1.7, 2.3, 0.25, 0.99, 0.324};
float lumiRunBCDEF_triggerSF = 19648.534;
float lumiRunGH_triggerSF = 16144.444;
TFile* in... |
f9d597c9aaa0e62622c4f7d797a452e501d66e35 | d487407aea027d6da16443043610a2ef55e7e3e4 | /sort_vector.cpp | 0d364b52b4859cc256922b72ebc0f11df8f54f9f | [] | no_license | satiamit/DS-and-Algo | e575ab42f798a82a6e49bb155ab292d97b0ab5b3 | 4ad8281b2181084c5b7b5c5f89ac2e5a9e025b61 | refs/heads/master | 2020-04-19T03:29:44.418970 | 2019-01-28T09:42:52 | 2019-01-28T09:42:52 | 167,936,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,864 | cpp | sort_vector.cpp | //Initial Template for C++
#include <bits/stdc++.h>
using namespace std;
vector<pair<string, int> > sortMarks(vector<pair<string, int> > v, int N);
//Position this line where user code will be pasted.
// Driver code
int main() {
int testcase;
cin >> testcase;
while(testcase--){
int N;
cin >> N;
// ... |
075c0a3988d7c905f21f924bbe570a5784eab95a | bf53c0103fe3261662f24b4ae026b180279121ea | /se/flag.h | 996b2b53021c91556831e4f87b6b90ac562fdb49 | [] | no_license | tigerinsky/se | 372538869510e2e35b376f0b85fc554e2402f97c | 2425bcf3cb6de784f9f2cce4add06acc41fbf8e5 | refs/heads/master | 2020-05-17T02:03:47.140775 | 2015-06-09T03:34:30 | 2015-06-09T03:34:30 | 34,048,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | flag.h | #ifndef __FLAG_H_
#define __FLAG_H_
#include "google/gflags.h"
namespace tis {
DECLARE_int32(port);
DECLARE_int32(thread_num);
DECLARE_string(catalog_info_conf);
DECLARE_string(segment_dict);
DECLARE_string(catalog_conf);
DECLARE_string(index_conf);
DECLARE_string(tag_conf);
DECLARE_string(version_file);
}
#endi... |
fb14bf199c0dcad40a12ed1ad5b05ac05f80bbd2 | 684df684759bfbef64b0fbcde9eb2b898a2e2061 | /swagger-gen/cpp/model/LinearPositionListResult.cpp | fcafea79283c62cc02089da21142789615ac8101 | [] | no_license | bybit-exchange/api-connectors | ae13caecb98c82460c0a24b910f2e9c1eb80b9bc | cc021a371bde30c2fd282be9fdc8eef0ed0e362e | refs/heads/master | 2021-12-31T10:23:24.429638 | 2021-11-24T16:37:18 | 2021-11-24T16:37:18 | 213,896,494 | 192 | 185 | null | 2023-03-03T12:50:12 | 2019-10-09T11:10:19 | C# | UTF-8 | C++ | false | false | 20,424 | cpp | LinearPositionListResult.cpp | /**
* Bybit API
* ## REST API for the Bybit Exchange. Base URI: [https://api.bybit.com]
*
* OpenAPI spec version: 0.2.10
* Contact: support@bybit.com
*
* NOTE: This class is auto generated by the swagger code generator 2.4.8.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manual... |
82bb295636cdd21b8586f585285a9833cdbfe521 | e3b7ccc6fb645b765047ea732fe603f1c3c0ef05 | /Game.cpp | d7ae9e1e7f992dc7ea6c1d330eb34b1c2dce4542 | [] | no_license | cpp-teaching/tic-tac-toe | d93f24942478595f38c5ec41e586d3598bd24d8b | 2cddca7ef6e96bc9f095c21518b60bc033cf917f | refs/heads/master | 2021-01-22T04:57:34.327010 | 2017-05-26T21:24:35 | 2017-05-26T21:24:35 | 81,604,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | cpp | Game.cpp | #include "GameStatus.h"
#include "Tile.h"
#include <vector>
#include "Grid.h"
int main() {
std::vector <Tile> board(9, Tile::Empty);
return 0;
}
|
635d9fc57b1029d3e66f7256ea624213d4694d5f | 36a3665f38aa6636c57ea2b793e4a1787fb03df0 | /modules/multiplier.cpp | 964b742af382fe9e23ea4c1d7bf81a900b0e144c | [] | no_license | bozskybedrich/EvoHSC | 405ce73f7f2dd1b6d3ec3b7368f4b4023463c8d0 | 6607cb7ce352df7478715ed332c34a45b544767f | refs/heads/master | 2021-01-11T03:22:28.062347 | 2016-11-11T16:51:31 | 2016-11-11T16:51:31 | 71,040,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | cpp | multiplier.cpp | #include "multiplier.h"
#ifdef _DEBUG
#define new MYDEBUG_NEW
#endif
CMultiplier::CMultiplier(UINT nFractBits) :
CModule()
{
m_nInputCount = 2;
m_nOutputCount = 1;
m_nFractBits = nFractBits;
}
int CMultiplier::Execute(REGISTER_TYPE * pInputs, REGISTER_TYPE * pOutputs, UINT * pExecDelay)
{
pOutputs[0] = pInputs... |
0e41f21d8c2d052c4a9172113a909d24ca0cbc33 | d1cf34b4d5280e33ebcf1cd788b470372fdd5a26 | /codeforces/ac/2/220/C.cpp | af687a04b1cc4614253634205cd3f63dbf956028 | [] | no_license | watashi/AlgoSolution | 985916ac511892b7e87f38c9b364069f6b51a0ea | bbbebda189c7e74edb104615f9c493d279e4d186 | refs/heads/master | 2023-08-17T17:25:10.748003 | 2023-08-06T04:34:19 | 2023-08-06T04:34:19 | 2,525,282 | 97 | 32 | null | 2020-10-09T18:52:29 | 2011-10-06T10:40:07 | C++ | UTF-8 | C++ | false | false | 1,240 | cpp | C.cpp | #include <set>
#include <cstdio>
#include <algorithm>
using namespace std;
const int MAXN = 100100;
int a[MAXN], b[MAXN];
multiset<int> st;
int main() {
int n, x;
vector<pair<int, int> > v, w;
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
scanf("%d", &x);
a[x - 1] = i;
}
fo... |
0be393d8a80526a35cabe0dfd1d11432716e6a6a | eedd904304046caceb3e982dec1d829c529da653 | /tut7/Map.h | 9fb694bc31f5a5b43f7c78e4febb09380f45ebeb | [] | no_license | PaulFSherwood/cplusplus | b550a9a573e9bca5b828b10849663e40fd614ff0 | 999c4d18d2dd4d0dd855e1547d2d2ad5eddc6938 | refs/heads/master | 2023-06-07T09:00:20.421362 | 2023-05-21T03:36:50 | 2023-05-21T03:36:50 | 12,607,904 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | Map.h | #ifndef SOLDIER_H_
#define SOLDIER_H_
class Map
{
public:
Map(int startHealth, int startSrength);
void attack();
void heal(int amountHealth);
void beAttacked();
int GetHealth();
char GetMap();
private:
int health;
int strength;
char myArray[2][2];
};
#endif /* SOLDIER_H_ */
|
153805360e6e6dcaa6936a3e2c9270277cf6adb7 | 32ea98f33cb9550ee81f7a498e8b8238a04800c0 | /BitTest.cpp | 575dc85be603b2c5e90b19053dfb0f78f9d2dafa | [] | no_license | pkroy0185/C-plus-plus-programs2 | 2e6a841f27571934a793fa5b2b49c7ba7c728766 | 70a4f1dc0b65bd1a28ced94a139f18b66c5813cc | refs/heads/main | 2023-04-01T10:20:59.402411 | 2021-03-22T17:24:21 | 2021-03-22T17:24:21 | 350,429,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | BitTest.cpp | #include<iostream>
#include<bitset>
using namespace std;
int main()
{
bitset<32> bitvec;
cout<<"Bitvec : "<<bitvec<<endl;
bitvec.flip(0);
bitvec.flip(3);
bitvec.flip(7);
bitvec.flip(31);
cout<<"Bitvec : "<<bitvec<<endl;
cout<<"At bit 7 : "<<bitvec[7]<<endl<<"At bit 31 : "<<bitvec[31]<<e... |
781ed4d2b46e222cc08790fc5f173400d8f6f2b8 | 5b4d939559a20ce3ca5290ec5d08548623459dad | /CCZU_ODM_ProductionDataQueryTool_V1.0.0/PACKView.h | 5bf2326f1feadb28cebcb1a53cc7f3ad211f741b | [] | no_license | lean-net/mes | 1e0fd327af923f9a77ee94df6d092f0e6702c2ed | c0593b20042ace109608986b50ba71fa452aad8d | refs/heads/master | 2021-06-18T19:36:45.636554 | 2017-06-23T07:50:45 | 2017-06-23T07:50:45 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,041 | h | PACKView.h | // PACKView.h : interface of the CPACKView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "msflexgrid1.h"
//}}AFX_INCLUDES
#include "Config.h"
#include "StateList.h"
#include "Label.h"
#include "BtnST.h"
#include "skapi.h"
#include "excel.h"
#include "... |
b4e112da827412478a8bff0162491f6313641560 | ba1944305bd4641be09c90f4464475901845077a | /CAKE wALK/binaryserchtree.cpp | 621f958f0231fe1b401cedfa869eb55f4543a653 | [] | no_license | Ravi-Khatri/code | e5c9bb0d88a5ea74ac2b0dfae83b90944b69ce0b | be40c85ec888059457b2189829f329268cd036b5 | refs/heads/main | 2023-04-03T18:38:54.289012 | 2021-04-18T08:05:20 | 2021-04-18T08:05:20 | 256,105,251 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | cpp | binaryserchtree.cpp | #include<iostream>
using namespace std;
struct node {
int val;
node* left;
node* right;
};
node* createNewNode(int x)
{
node* nn = new node;
nn->val = x;
nn->left = nullptr;
nn->right = nullptr;
return nn;
}
void bstInsert(node* &root, int x)
{
if(root == nullptr) {
root = c... |
96cbc1286e4f947418c909330be3f53fc6a11130 | 44ab57520bb1a9b48045cb1ee9baee8816b44a5b | /Assist/Code/Toolset/Framework/WinMainEntryPoint3/WinMainEntryPoint3.cpp | ee0151547a84c86ddaee6745611066bbde7df6dc | [
"BSD-3-Clause"
] | permissive | WuyangPeng/Engine | d5d81fd4ec18795679ce99552ab9809f3b205409 | 738fde5660449e87ccd4f4878f7bf2a443ae9f1f | refs/heads/master | 2023-08-17T17:01:41.765963 | 2023-08-16T07:27:05 | 2023-08-16T07:27:05 | 246,266,843 | 10 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,210 | cpp | WinMainEntryPoint3.cpp | /// Copyright (c) 2010-2023
/// Threading Core Render Engine
///
/// 作者:彭武阳,彭晔恩,彭晔泽
/// 联系作者:94458936@qq.com
///
/// 标准:std:c++20
/// 版本:0.9.1.2 (2023/07/28 10:52)
#include "WinMainEntryPoint3.h"
#include "CoreTools/Helper/ClassInvariant/FrameworkClassInvariantMacro.h"
#include "Framework/MainFunctionHelper/WindowMain... |
d59164c4c8676ac55c259e4a2cf6b40d62308eab | 66658a28df66ac6e59592cd166c9cf2d07a13cd8 | /src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerdialogtest.cpp | 8e240b68d79a14d4ae82548bb7c13976f64064f3 | [
"CC0-1.0",
"BSD-3-Clause"
] | permissive | KDE/libksieve | ef305594a5252686ad2c77416ef661d6a6a07f70 | 4adf80b227a6a77896a3ee51e09ac34658310d90 | refs/heads/master | 2023-09-01T16:24:11.116547 | 2023-08-30T16:38:09 | 2023-08-30T17:19:35 | 47,667,167 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,449 | cpp | sievescriptdebuggerdialogtest.cpp | /*
SPDX-FileCopyrightText: 2015-2023 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "sievescriptdebuggerdialogtest.h"
#include "../sievescriptdebuggerdialog.h"
#include "../sievescriptdebuggerfrontendwidget.h"
#include "../sievescriptdebuggerwidget.h"
#include <KUrlReques... |
11adbc53a523f974f66637fb18d3c982fcec066f | dc48f11c1a7c97e13534bdb34af38e1d7f1a2f9d | /Monumentum/Utility/Dispatcher.cpp | 166d5a23781339d1f098029e9dc6657640da3927 | [
"Apache-2.0"
] | permissive | m1kor/Monumentum | 1b7dff54a19f458941e76f46ee0d11f3c5f6d1c9 | 95f1181decbf2c2c269f2a306a2f18c91679e1c0 | refs/heads/master | 2021-06-16T08:22:54.384658 | 2017-05-28T13:55:55 | 2017-05-28T13:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | Dispatcher.cpp | #include <Monumentum/Utility/Dispatcher.hpp>
#include <iostream>
namespace Monumentum {
Dispatcher::Dispatcher() {
}
Dispatcher::~Dispatcher() {
}
void Dispatcher::Remove(const uint16_t id) {
if (commandRegistry.count(id) > 0)
commandRegistry.erase(id);
else
std::cerr << "Dispatcher::R... |
fe9d236910b72f4788d1a8424d89355cb23f8d1e | b6e6d3abb438c717611d5e93aa22d64fda186571 | /Classes/SlotScene.h | 68340ebd31b35094351e2181a3f005102d12f8b6 | [] | no_license | manlan/GAFSlotMachine | 321b396fb003ab60edb7fc9c7fe4e676899b2194 | 318e919a6f24a86a37a1e94a3dbb1c844f82faa4 | refs/heads/master | 2021-01-14T13:17:24.656033 | 2015-02-17T13:27:32 | 2015-02-17T13:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | h | SlotScene.h | #ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "cocos2d.h"
class SlotMachine;
class SlotScene : public cocos2d::Layer
{
public:
static cocos2d::Scene* createScene();
virtual bool init();
virtual void update(float dt);
virtual bool onTouchBegan(cocos2d::Touch* touch, cocos... |
e6b84eda1ff2448dcd7e81bb6e06f970d8adf2f6 | 82b359fc3e7cb45abc9712e35675e3f0a8609713 | /t2/2.2.cpp | 325d6b2bb79d67928bdbc4d2e921c6fa58770575 | [] | no_license | chenkk7/programming-of-c-- | 122c8b8c20b95b89e7b323f95cb552dc65346b05 | e5d8a81821fe184df5712c4c27635be92042f305 | refs/heads/master | 2020-05-31T22:57:23.595157 | 2019-12-18T15:46:37 | 2019-12-18T15:46:37 | 190,529,344 | 1 | 0 | null | 2019-06-06T06:45:15 | 2019-06-06T06:45:14 | null | GB18030 | C++ | false | false | 582 | cpp | 2.2.cpp | /*2.已知一个string的对象str的内容为“We are here!”,使用多种方法输出“h”。*/
#include <iostream>
#include <string>
#include <algorithm>
#include <iterator>
using namespace std;
int main()
{
string str="We are here!";
int i=str.find('h',0);
cout<<"1 "<<str[i]<<endl;//str第i个元素
string str2 = str.substr(i,1);//截取
cout<<"2 "... |
a7c50eb5a55656dd5f48ddf97fda52d2cb4cc328 | b2888cdd7a914c9060e555ef8d0e2cc0552d8e3a | /src/transactions/ManageOfferOpFrameBase.h | ae422d77022cd41fc3c7af6da6eb203dd115238a | [] | no_license | OlehKSS/DigitalBits | 44010731138b37d98c2b4c8ced042825c9023b50 | 0da87773a23762c8bcb8083eac555be9ac6a7a3e | refs/heads/master | 2023-07-11T02:25:57.992010 | 2021-08-13T10:47:54 | 2021-08-13T10:47:54 | 395,321,733 | 0 | 0 | null | 2021-08-16T08:49:23 | 2021-08-12T13:05:48 | C++ | UTF-8 | C++ | false | false | 2,855 | h | ManageOfferOpFrameBase.h | #pragma once
// Copyright 2019 DigitalBits Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "transactions/OperationFrame.h"
namespace digitalbits
{
class Abst... |
9313b33216307ba80fb5fbec844076b74912d224 | dffd7156da8b71f4a743ec77d05c8ba031988508 | /ac/arc105/arc105_d/17351337.cpp | d6f955a03f709be832213ab8c583f731848ad5d1 | [] | no_license | e1810/kyopro | a3a9a2ee63bc178dfa110788745a208dead37da6 | 15cf27d9ecc70cf6d82212ca0c788e327371b2dd | refs/heads/master | 2021-11-10T16:53:23.246374 | 2021-02-06T16:29:09 | 2021-10-31T06:20:50 | 252,388,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | cpp | 17351337.cpp | #include<bits/stdc++.h>
using ll = int_fast64_t;
#define REP(i,b,e) for(ll i=b; i<e; i++)
int main(){
int q;
scanf("%d", &q);
while(q--){
int n;
scanf("%d", &n);
std::map<ll,int> mp;
REP(i, 0, n){
int a;
scanf("%d", &a);
mp[a]++;
}
bool ok = true;
for(auto [k, v]: mp){
if(v%2) ok = false;
... |
5122e296fe42755b39a9b86524538e2409977904 | 939389fc86985aed5a0da234b792434d20fe00d6 | /Framework/ECS/ECS.h | ea58e356c05f0ead01ab394ede2d01a4062645e2 | [] | no_license | zachrammell/Damascus | aff551501b6365d00df2603079f7c555658363a8 | 2c7491b0b716c344db2bd05c977c261e13e0127e | refs/heads/master | 2023-06-27T09:17:22.463461 | 2021-07-11T18:50:46 | 2021-07-11T18:50:46 | 389,797,844 | 0 | 0 | null | 2021-07-26T23:48:37 | 2021-07-26T23:48:36 | null | UTF-8 | C++ | false | false | 684 | h | ECS.h | #pragma once
class TransformComponentSystem;
class RenderComponentSystem;
class PhysicsComponentSystem;
#define COMPONENTS(x)\
TransformComponent##x, RenderComponent##x, PhysicsComponent##x\
#define COMPONENT_SYSTEMS COMPONENTS(System)
class ECS
{
public:
static entt::registry& Get() {
ASSERT(registry != nullp... |
5f29c3aada1ee2d5bd5b1b749de1a2e234633482 | ea6038e56c4743e728286f9264ba143bfb440055 | /bottomtimegrid.cpp | 89762c838f304fb5d76466194b800db4ed6ad496 | [] | no_license | pppkitppp/StockKLine | ab0508e0e8853dabe6336fbd6ea3682e0d0e7429 | f10febf8eeced04e3863b5222a197a8726608290 | refs/heads/master | 2020-06-04T08:35:13.733141 | 2019-10-23T16:13:37 | 2019-10-23T16:13:37 | 191,945,712 | 1 | 0 | null | 2019-06-14T13:13:49 | 2019-06-14T13:13:48 | null | UTF-8 | C++ | false | false | 1,233 | cpp | bottomtimegrid.cpp | #include <QWidget>
#include <QPainter>
#include <QMouseEvent>
#include <QKeyEvent>
#include "bottomtimegrid.h"
BottomTimeGrid::BottomTimeGrid(MarketDataSplitter* parent, DataFile* dataFile)
: DataWidget(parent, dataFile, false)
{
this->setFixedHeight(tipsHeight);
}
void BottomTimeGrid::paintEvent... |
a62df93a9c9489446d902b2f38fee9af60b869b6 | 6bac07ceda232029b6a9ea0144ad261311348699 | /shared/extensions/FontPrint.h | e9d3156e8806d1e5dbf8a4e74cef5e4dc0525b8e | [
"Zlib"
] | permissive | DK22Pac/plugin-sdk | ced6dc734846f33113e3596045b58febb7eb083c | b0ebc6e4f44c2d5f768b36c6a7a2a688e7e2b9d3 | refs/heads/master | 2023-08-17T06:36:25.363361 | 2023-08-10T05:19:16 | 2023-08-10T05:19:20 | 17,803,683 | 445 | 221 | Zlib | 2023-08-13T04:34:28 | 2014-03-16T16:40:08 | C++ | UTF-8 | C++ | false | false | 3,941 | h | FontPrint.h | /*
Plugin-SDK (Grand Theft Auto) SHARED header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#ifndef GTA2
#include <string>
#include <vector>
#include "CRGBA.h"
#include "CVector.h"
#include "Scree... |
1f6dac0cf4dc53494ff5d7620fa0e478cbc9e16b | a363b5e64374f299ede8dcb4aaacc4999de5568f | /test/matrixMultiplication/matrixMultiplication_e3-K256-B8.cpp | cb89d8902a3443d303eb34f3babe48278f8a4023 | [] | no_license | educhielle/e3extensions | d6f86ef03b035619cdf8cc051d170a73dfec57c9 | 0a5d1a0b0c9eb2b89e824fcfc909a6a4263e6469 | refs/heads/master | 2021-03-22T05:12:42.606459 | 2017-08-27T12:45:47 | 2017-08-27T12:45:47 | 89,483,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,957 | cpp | matrixMultiplication_e3-K256-B8.cpp | #include <iostream>
#include "../../src/e3extensions/secureint.h"
using namespace std;
string libgDir = "./libg.so";
string gFunctionName = "libg";
int main()
{
Cryptosystem cs("105887758112610492763957030143817554940461266207577495880141219828795573971961",8,"8560006943331903586878980207313807142650655176162490108... |
1a9c13f139030484beec354f18e7685e1b5d37f2 | 877c1199a8f283a7efd7059a33a397d8ef375ef5 | /Laboratorios/Laboratorio 3/Ejercicio 7.cpp | 0b822d1eedbe4a1a4cd21d350decb2bf61463c89 | [] | no_license | HeyChobe/Portafolio_00204119 | 05f4c025a5ff7c798462f4032475560f0b9bc857 | 77c30235d330c6726abff25565855cca20fc6fc1 | refs/heads/master | 2020-07-09T02:28:09.416501 | 2019-11-18T01:34:18 | 2019-11-18T01:34:18 | 203,848,772 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,129 | cpp | Ejercicio 7.cpp | #include <iostream>
using namespace std;
struct TNodo{
int dato;
struct TNodo *sig;
};
typedef struct TNodo Nodo;
Nodo *pInicio;
void Insertar(int p) {
Nodo *nuevo = new Nodo;
nuevo->dato = p;
nuevo->sig = NULL;
if (pInicio == NULL) {
pInicio = nuevo;
} else {
Nodo *p ... |
1ca395f7dc325c85504089787d1df8c7e94cae31 | 370b42bbc0060e6d3741fd9f03b8f53804970063 | /coreAI/evaluate.cpp | 80fc17b100e966f66a8edbf48e9dbf153e6dedaa | [] | no_license | Michael-Z/pokerautomation | 2669038941015ad4d340ff692a9c6e6d98d1aead | ab3bb389653b06dd52fedc11af8d160a2c05560e | refs/heads/master | 2020-04-09T01:56:55.458046 | 2014-08-17T20:51:30 | 2014-08-17T20:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,560 | cpp | evaluate.cpp | /*
$Revision: 51 $
$Date: 2008-10-03 00:41:53 -0700 (Fri, 03 Oct 2008) $
$Author: vananth $
*/
#include <iostream>
#include <string.h>
#include "evaluate.h"
#include "lookupTables.h"
namespace evaluate {
/**
This returns the rank of a hand. Higher ranked hands are better than lower ranked ones.
\param ... |
9258c7c6cae06a1bc2dbe6380520daee51d7259c | b4c9a788a419677212e7263e22d395312672ffb8 | /dynamic-layers/b2qt/recipes-qt/automotive/qtapplicationmanager-noop.inc | e4618c84aa3ae27db635aeaded254edc2c000d06 | [
"MIT"
] | permissive | dimtass/meta-pelux | eb2116d34fbe394461a801ea82392e9ea74d0c30 | 450cd0978f2d353c0fd25b74460fa77e1b850a4c | refs/heads/master | 2020-08-29T03:39:47.828767 | 2019-10-24T10:29:35 | 2019-10-25T17:07:39 | 217,913,248 | 0 | 0 | MIT | 2019-10-27T20:34:58 | 2019-10-27T20:34:58 | null | UTF-8 | C++ | false | false | 510 | inc | qtapplicationmanager-noop.inc | #
# Copyright (C) 2017 Pelagicore AB
# SPDX-License-Identifier: MIT
#
# This file is intentionally left blank: it is sourced by the _append recipe for
# qtapplicationmanager when the softwarecontainer plugin is disabled. This file
# is needed because the "require" directive would fail otherwise; and on the
# other... |
a94db70681fbf1d7eef44d63ac409c15c1fffcdb | 5784bbc79aad6f74ca4729634532fd366f932f7f | /STL_Container/AccessList.h | d3f64c519887f7aacfd1069baaa4eb1a2e91d58f | [] | no_license | kuliantnt/Professional_Cpp_linux | 792cdea744ce40a4cd285db788a5152b4ffe29ab | 43592f23182f26bf66a5047cd815391886f8286a | refs/heads/master | 2020-12-02T17:46:26.395827 | 2017-08-09T00:51:03 | 2017-08-09T00:51:03 | 96,424,050 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | h | AccessList.h | //
// Created by lianlian on 17-7-30.
//
#pragma once
#include <initializer_list>
#include <string>
#include <set>
#include <string>
#include <list>
class AccessList {
public:
AccessList() = default;
AccessList(const std::initializer_list<std::string> & initlist);
void addUser(const std::string& user);
... |
57398293abcf001b4e3e75f0081894991b19cd86 | 3aabc2a6de308456967161419fc4e2d3c612bace | /src/reactor/linux/file_impl.cpp | ee2ea004bdbf5bddbc2d73f1d87eaf0cd736cac8 | [
"Apache-2.0",
"BSL-1.0"
] | permissive | victor-smirnov/dumbo | 4f7322f04777198442ff09ecc927bdf02fc7eaf6 | 57fe7f765c69490a9bda6619bcab8fcca0e1d2d9 | refs/heads/master | 2021-01-11T01:09:10.322459 | 2017-04-02T15:40:12 | 2017-04-02T15:40:12 | 71,056,780 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,988 | cpp | file_impl.cpp |
// Copyright 2017 Victor Smirnov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
12204944b3f2fc3db95866635e0b8cd32a1b8227 | a88f0ca4bc31b40ab414476f0a0df733418ff038 | /Include/3ds_Max/2018/CATAPI/ITail.h | 02ad786a11dd02042696e05f5b3859591860cc86 | [] | no_license | Goshido/GXEngine-Windows-OS-x64 | 8c9011442a5ef47a3c2864bdc7e6471e622763d5 | 10a1428d0284552856528d519283295388eea35b | refs/heads/master | 2020-06-28T16:59:26.904805 | 2019-11-24T06:07:03 | 2019-11-24T06:09:40 | 74,490,143 | 11 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 886 | h | ITail.h | //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2009 Autodesk, Inc. All rights reserved.
// Copyright 2003 Character Animation Technologies.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installa... |
388bb40653692499776c01f6c093e1a9d6da4854 | 20933700bd5cd75d6e9db44b3aad3d6088f18beb | /32.longest-valid-parentheses.cpp | 4ea04680780f62893182cac45043e7b0965383d5 | [] | no_license | llk2why/leetcode | 6d994c5d0aa453a91c4145863278b10272105e82 | c96bc85e2763e7374cd2b6cefef92a1f4bbd548a | refs/heads/master | 2020-09-08T19:31:07.264375 | 2020-05-22T15:22:26 | 2020-05-22T15:22:26 | 221,225,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | cpp | 32.longest-valid-parentheses.cpp | /*
* @lc app=leetcode id=32 lang=cpp
*
* [32] Longest Valid Parentheses
*/
class Solution {
public:
int longestValidParentheses(string s) {
int l,r,n,ans;
l=r=n=ans=0;
for(int i=0;i<s.size();i++){
if(s[i]=='(')l++;
else if(s[i]==')'){
if(l>0)l--;
... |
e2a0d179806a913094734a977d6ed31e2bd6ae2e | ff69ce58b8d690952ceabefba0e45c62ffd8dab3 | /Source/LudumDare49/Public/Pickups/PickupKey.h | d66d082b892f31db2fba5384c671fad91090b9b5 | [
"MIT"
] | permissive | TrickyFatCat/LudumDare49 | bcc742d8ed59198da0b7b97b61d6f423ac60675a | afb0063f557e0973a0c38a1b84a14c3321891978 | refs/heads/main | 2023-08-19T12:38:35.420363 | 2021-10-14T23:12:32 | 2021-10-14T23:12:32 | 412,625,719 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 498 | h | PickupKey.h | // Made by Title Goose Team during LudumDare 49. All rights reserved.
#pragma once
#include "CoreMinimal.h"
#include "Actors/PickupBase.h"
#include "Components/KeyRingComponent.h"
#include "PickupKey.generated.h"
/**
*
*/
UCLASS()
class LUDUMDARE49_API APickupKey : public APickupBase
{
GENERATED_BODY()
protecte... |
555ee625d6db20c3a728265fd366454ee5bdc8dc | 80833b1770e19def702038b78ee7239ca74cad0a | /windovl.cpp | 05c983ae111622debc02d55f94b5024a7e5d1238 | [
"Unlicense"
] | permissive | SegHaxx/citplus | ddbcbec5d9384908e6a13fa98b508be345023f43 | 90aedfc7047fe92bdd0d09f1eb1671d7ddcde8a3 | refs/heads/master | 2022-05-10T14:08:49.261467 | 2014-07-30T20:53:08 | 2014-07-30T20:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,852 | cpp | windovl.cpp | // --------------------------------------------------------------------------
// Citadel: WindOvl.CPP
//
// Machine dependent windowing routines.
#include "ctdl.h"
#pragma hdrstop
#include "cwindows.h"
#include "scrlback.h"
#include "extmsg.h"
#include "statline.h"
// ---------------------------------... |
1f8d541b57e0c8a2bae482b897d42d88293e81c5 | 8a2668da32c439f648bd0571b5da407f798b0d60 | /VNTU Training 18/F.cpp | 892271d7e4f6b5e4e6a5179299f2fecf67468e58 | [] | no_license | Mykhailo-Granik/ACM-Solutions | fea96cbcc485e503f3d268e4d184fc3a3c5cae33 | 0107543ef2e275454c9217e85104c4b427910993 | refs/heads/master | 2021-01-10T15:48:33.744653 | 2017-10-28T21:42:10 | 2017-10-28T21:42:10 | 46,673,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | cpp | F.cpp | #include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <queue>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <memory.h>
#include <ctime>
#include <bitset>
#include <unordered_map>
using nam... |
065b79c6637498880f5f0edf5499f816dce52928 | c5a17ffbd62eee183790cc33847ebc719346a8ba | /queueUsing2stacks.cpp | 29cbcb41f04bc47d4b7ba3839e66ba2b1b62ad79 | [] | no_license | manyu22/CPPPrograms | dff92b3b01cbd8612112e23c183bf763bcc73d69 | bf65fda36db44358747d1970d01d8d89c3952e2f | refs/heads/master | 2019-01-19T17:50:39.544406 | 2014-06-27T11:28:00 | 2014-06-27T11:28:00 | 21,249,341 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | queueUsing2stacks.cpp | #include<iostream>
#include<stack>
using namespace std;
stack<int> inbox;
stack<int> outbox;
void enqueue( int value )
{
inbox.push( value );
}
int dequeue()
{
int temp;
if( !outbox.empty() ){
temp = outbox.top();
outbox.pop();
return temp;
}
else{
while( !inbox.empty() ){
outb... |
4e17dbe0371ef7ae214ec7bf393dd9e28f343ff3 | 04fee3ff94cde55400ee67352d16234bb5e62712 | /csp-s2019.luogu/source/XJ-00035/code/code.cpp | fdff385c633d1687ca2b638dbb1463ae650fc3b5 | [] | no_license | zsq001/oi-code | 0bc09c839c9a27c7329c38e490c14bff0177b96e | 56f4bfed78fb96ac5d4da50ccc2775489166e47a | refs/heads/master | 2023-08-31T06:14:49.709105 | 2021-09-14T02:28:28 | 2021-09-14T02:28:28 | 218,049,685 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 602 | cpp | code.cpp | #include<cstdio>
#include<algorithm>
using namespace std;
typedef int int_;
#define int long long
int n,k;
int ans[100];
void work(int o){
if(o==1){
if(k==1) ans[o]=0;
else ans[o]=1;
return ;
}
if(o==64){
ans[o]=0;
work(o-1);
}
else{
if(k>(1ll<<(o-1))) ans[o]=1,k=((1ll<<(o-1))-(... |
0b100f05c90d0054e118793ca70df66cb405f738 | 363687005f5b1d145336bf29d47f3c5c7b867b5b | /atcoder/arc065/d/d.cpp | a50f4b2cf911bcd4def3d4b195ef4f03113fc93d | [] | no_license | gky360/contests | 0668de0e973c0bbbcb0ccde921330810265a986c | b0bb7e33143a549334a1c5d84d5bd8774c6b06a0 | refs/heads/master | 2022-07-24T07:12:05.650017 | 2022-01-17T14:01:33 | 2022-07-10T14:01:33 | 113,739,612 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | d.cpp | // AtCoder Regular Contest 065
// D - 連結 / Connectivity
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> PII;
class UnionFind {
public:
vector<int> data;
void init(int size) {
data = vector<int>(size, -1);
}
bool unite(int ... |
e3b88d83d62fc6f072b076ff7d8533d72d338de0 | d06299d476168d2e85d15c200986c4909d7cbaf2 | /排序算法/编程练习的地方.cpp | 1261eb7663b1854e539a7268738a0877f9d09e1c | [] | no_license | zeroker/Algorithm | e5e8251d66fa87ecc4b73fa39fe02f59f98ff8bb | a2daf280e19b87da9ea2f7690cdb862140d604a1 | refs/heads/master | 2020-05-01T16:43:57.012659 | 2019-03-25T12:39:16 | 2019-03-25T12:39:16 | 177,580,363 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,273 | cpp | 编程练习的地方.cpp | //#if 1
//#include<bits/stdc++.h>
//using namespace std;
//
//int line,value;
//queue<int> q;
//int i;
//void bfs(int a[],int i,int k,int sum) //下标从1开始
//{
// if(sum == k)
// {
// cout<<"=="<<endl;
// return ;
// }
// q.push(a[i]);
// q.push(-a[i]);
// sum += q.pop();
//}
//
//void dfs(int a[],int n,int k,int sum)
... |
a8a2d1b92b4cb36b41605baa49d382d9acf9e289 | c82e1101197b19671b1a318c76da934262134dde | /oneTBB-tbb_2020/examples/quicksort_tbb/quicksort/quicksort.cpp | c79229db8bebbb25f5aa6acd87725621a5c20a10 | [
"Apache-2.0"
] | permissive | COEN-145-Project/quicksort | 405555399f3469bb901382f1c5e31889780403f3 | c32b81c0b7814adb23604c54766663e0da43d401 | refs/heads/master | 2022-09-26T14:08:15.591526 | 2020-06-04T21:17:15 | 2020-06-04T21:17:15 | 266,841,337 | 0 | 1 | null | 2020-05-29T00:12:09 | 2020-05-25T17:34:52 | C | UTF-8 | C++ | false | false | 2,257 | cpp | quicksort.cpp | #include "quicksort.h"
#include <unistd.h>
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstring>
#include <math.h>
#include <cstdlib>
#include <cctype>
#include "tbb/parallel_reduce.h"
#include "tbb/parallel_invoke.h"
#include "tbb/tick_count.h"
using namespace std;
static void import(char c... |
f419005b9a07591925f8e37884d38bdb613d8b75 | 6fd13ec932ef0e0b6829d2585838e5eb84a5cb9a | /core/object/object.h | 133e382043726f624e13aea4fe676f8bd46b7288 | [] | no_license | SeregaGomen/QFEM | 85202e1cd27459e96e8bc46a47aba792e197c97e | 7656c828fdb49f5fc14883d202fa6ca5d969d9e0 | refs/heads/main | 2023-05-25T14:02:18.003816 | 2023-05-14T13:17:11 | 2023-05-14T13:17:11 | 455,945,669 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,962 | h | object.h | #ifndef OBJECT_H
#define OBJECT_H
#include <string>
#include "params.h"
#include "mesh/mesh.h"
#include "fem/fem.h"
#include "analyse/analyse.h"
using namespace std;
class TFEM;
// Класс, описывающий конечно-элементный объект
class TFEMObject
{
private:
int numThread; // Ко... |
e86f8e3445dd4c06bcf2948522edaa2e313c947c | 7106724c5de461d5156bc13d48b31cff6b22113a | /modules/StageInterface/src/StageManager.h | 7bfabbde392bc57184470caa743e415204efc6ea | [] | no_license | YCP-Swarm-Robotics-Capstone-2020-2021/SRCSim | c76d9a4e5a6ded200d83da1b887c0f20371d4042 | 9710b22b9e42f63e48ed20eabdedd7569ce6afd6 | refs/heads/master | 2023-04-20T23:54:50.820904 | 2021-04-30T12:40:01 | 2021-04-30T12:40:01 | 269,135,291 | 0 | 0 | null | 2021-04-30T12:40:02 | 2020-06-03T16:11:12 | C++ | UTF-8 | C++ | false | false | 1,906 | h | StageManager.h | #ifndef STAGEMANAGER_H
#define STAGEMANAGER_H
#ifndef PI
#define PI 3.141592653589
#endif
#include <QObject>
#include <QString>
#include <QThread>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#include <iostream>
#include <cmath>
#include <thread>
#include <QTimer>
#incl... |
0a97616942bb5f1785adc03e7e025f49db411e1c | 93b7d137f0ae9b0c29b41d3139315478d084278d | /STUDY/introc++/9/9/Vector2.cpp | 084ef52b7d4b88055f7168d56f966c4399e1af3c | [] | no_license | tsuyopon/cpp | c32643c837ac0665395cc2ed0a4ac8b8e90dc750 | 96ee23a65f0fcaa5b68c376064f8ba9771d1b103 | refs/heads/master | 2023-05-01T10:05:20.716354 | 2023-04-13T19:04:52 | 2023-04-13T19:04:52 | 7,288,806 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | cpp | Vector2.cpp | #include <iostream>
#include <vector>
using namespace std;
void Show(const int* array, int size){
for(int i = 0; i < size; ++i){
cout << array[i] << ' ';
}
cout << endl;
}
int main(){
vector<int> v(5);
for(int i = 0, size = v.size(); i < size; ++i){
v[i] = i * i;
}
Show(&v[0], v.size());
}
|
1c35bece79b4e1b68e44f5d6d72cc1e88ba7be60 | 4f8f3243554bba62e8e2996aa2d97967e08da1b7 | /CodeChefDsaLearning/Complexity/Factorial.cpp | 1fef8c5ace52d6d92886daa3017dd0b5e652e710 | [] | no_license | singhsiddharth10/CodeChefDsaLearning | 83e5974c3d7a316ce1c0c09d9219ce836ffdb5d5 | 2144313379bb595d5f39b2c3dec1175f11634a73 | refs/heads/master | 2023-04-14T13:39:04.672270 | 2021-04-15T11:12:02 | 2021-04-15T11:12:02 | 358,229,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,351 | cpp | Factorial.cpp | //The most important part of a GSM network is so called Base Transceiver Station (BTS).
//These transceivers form the areas called cells (this term gave the name to the cellular phone)
//and every phone connects to the BTS with the strongest signal (in a little simplified view).
//Of course, BTSes need some attentio... |
2a563e45719b2370bd43ef34df1187e9869f7388 | 8cc87a7be8bc158c09003bf558f0fa7bd3c7f3f7 | /LZL.1/Data_structure/I.cpp | 27ff61d91ff4e721cb9caf3029ff7ea22924b6a3 | [] | no_license | Super-long/Summer-of-2019 | 1da0399e728a1e070c5da1a4eb2ed5e9e5d2f704 | e92682543cdb25a37aebdabeb1354bffb92ed3df | refs/heads/master | 2020-07-30T13:06:10.625018 | 2019-09-23T02:03:56 | 2019-09-23T02:03:56 | 210,244,869 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,326 | cpp | I.cpp | #include<iostream>
#include<algorithm>
#include<cstdio>
#define lson (q<<1)
#define rson (q<<1|1)
#define mid ((l+r)>>1)
using namespace std;
int m,n,q;
int book[200000+10];
int tmpa,tmpb;
char tmpc[10];
int segt[200010<<2];
void build(int q,int l,int r)
{
if(l==r){
segt[q]=book[l];
return;
}
... |
7da809ea0551a4fb636404b8056efd38f6380977 | 3e1a626e043bd7471ebdc21939204f337079e57d | /src/cryptopp/pkcspad.cpp | a45751ff993f64cfa63269fcfb8b2b9d7c53a52d | [
"MIT",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | qtumproject/qtum | 834cd8d1df04c779ed8fec2d26627e97644f5275 | 88fd52d40026f4705b63889cdd4b4c86375ddaf8 | refs/heads/master | 2023-09-05T00:27:23.149231 | 2023-09-01T22:35:32 | 2023-09-01T22:35:32 | 83,774,906 | 1,468 | 631 | MIT | 2023-09-01T22:35:35 | 2017-03-03T08:17:11 | C++ | UTF-8 | C++ | false | false | 6,768 | cpp | pkcspad.cpp | // pkcspad.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
#ifndef CRYPTOPP_PKCSPAD_CPP // SunCC workaround: compiler could cause this file to be included twice
#define CRYPTOPP_PKCSPAD_CPP
#include "pkcspad.h"
#include "emsa2.h"
#include "misc.h"
#include "trap.h"
NAMESPACE_BE... |
d7b7fea87e168e7c23d9eec52fb5dcfa85bb664f | c6f69ac70fbfe5380d691e35a818a6e8eaf6e914 | /src/translation_warp.cpp | 88435f4d33e89a130aa383ff12fcafedbd05b1b1 | [] | no_license | jvlmdr/non-rigid-tracking | 00e9d116410628da2d4f5153439167f5a34c55a1 | ee0377e3a324b4e82ee0fc2eee0fbcfe7ec062a1 | refs/heads/master | 2020-04-15T16:27:25.755272 | 2013-03-13T05:45:28 | 2013-03-13T05:45:28 | 6,432,545 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,552 | cpp | translation_warp.cpp | #include "translation_warp.hpp"
TranslationWarp::TranslationWarp(double x,
double y,
const TranslationWarper& warper)
: params_(NUM_PARAMS, 0.), warper_(&warper) {
params_[0] = x;
params_[1] = y;
}
TranslationWarp::TranslationWarp() : params_(N... |
aaaf3a47990b0a9458036270b1a173d4699c537d | 7d2f42661aabcb1b0d5e842063a89a78a228a048 | /src/Time/IsoDateTimeFormat.hxx | 470ed99785f4890e1dc06b7965ab36e39a8f9b80 | [
"ISC"
] | permissive | def-/sxc | 71bd92dc437d43681b653c376b948fda46602240 | 1dfd275d33931e02b81e65fde3b67bf6578cde63 | refs/heads/master | 2020-04-25T07:00:39.160603 | 2009-07-14T07:14:47 | 2009-07-14T07:14:47 | 29,000,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,590 | hxx | IsoDateTimeFormat.hxx | // LICENSE/*{{{*/
/*
sxc - Simple Xmpp Client
Copyright (C) 2008 Dennis Felsing, Andreas Waidler
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
... |
34afed3fc040e17175e35a20786390af1a10bf75 | 9ecbc437bd1db137d8f6e83b7b4173eb328f60a9 | /gcc-build/i686-pc-linux-gnu/libjava/gnu/gcj/runtime/NameFinder.h | 735b640ccccc91f0ece5224ceedd6c3d8cdc3524 | [] | no_license | giraffe/jrate | 7eabe07e79e7633caae6522e9b78c975e7515fe9 | 764bbf973d1de4e38f93ba9b9c7be566f1541e16 | refs/heads/master | 2021-01-10T18:25:37.819466 | 2013-07-20T12:28:23 | 2013-07-20T12:28:23 | 11,545,290 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,287 | h | NameFinder.h | // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_gcj_runtime_NameFinder__
#define __gnu_gcj_runtime_NameFinder__
#pragma interface
#include <java/lang/Object.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace gcj
{
namespace runtime
{
clas... |
91ca000210bbdf63a6cf5a18fc72b0160333d2dd | 1a8d3e52a0fb2f51b5c2cf54a2a74bcebe85b6cf | /twincat2mqtt.cpp | ca9b6c806ae583f30dec6a0088ac4d686e337cc6 | [] | no_license | ilmanzo/Twincat2MQTT | 8730d490db3e1aaea2345bc18d5e9793cb640403 | f567e141d1e744adab03b61e167f444bfbe46dda | refs/heads/master | 2021-01-09T20:56:37.571122 | 2016-08-02T10:19:02 | 2016-08-02T10:19:02 | 64,745,353 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,601 | cpp | twincat2mqtt.cpp | #include <iostream>
#include "AdsLib.h"
#include "MqClient.h"
#include "TwincatVar.h"
using namespace std;
//returns a port if everything goes well
//returns 0 (zero) if error
long plc_connect(const AmsNetId& remote_id, const char* ipV4)
{
// add local route to your EtherCAT Master
if (AdsAddRoute(remote_i... |
2555c42630489eacb7529d0f0cf28b2044682b18 | 11ef1a773d539bd8f66b3dfdff950dbdc505c363 | /game-source-code/Drawer.cpp | 041c2e8ce34ca32dac06c378232b99f67d6fcf59 | [] | no_license | SelloClinton/centiheritance | 5fbbb97a769671ddf2ef33915132ef9e2f31a5b0 | 1cbee0148e4fd46561231896006d3238b16a4fe5 | refs/heads/master | 2020-03-30T05:57:36.108054 | 2018-10-01T20:03:38 | 2018-10-01T20:03:38 | 150,830,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,097 | cpp | Drawer.cpp | #include "Drawer.h"
Drawer::Drawer(shared_ptr<sf::RenderWindow> window):
// data_(make_unique<DataBank>()),
window_(window) //,
// object_sprites_(data_->getSprites())
{
if(window_ == nullptr) throw WindowNotCreated();
}
void Drawer::drawGameObjects(list<shared_ptr<Entity>>& entities){
// auto numberOfEntitie... |
9cf00d89889c14ffa661482b7b0247efd7678a12 | 1ed244147c7efef5a3d13d28e511a235d7216e1f | /Classes/Ship.cpp | adbc4cc4ff6365f752078b915e5b8d3531f79bb7 | [] | no_license | harp07/HumberPhysicsGame | 14de9fd0adc34f62736f5016ce981c4bbf8a82e6 | e7c3b44248bfba4faac0ff9347dba26d424d6c67 | refs/heads/master | 2020-04-27T01:47:04.685232 | 2013-04-18T13:31:04 | 2013-04-18T13:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,437 | cpp | Ship.cpp | #include "Ship.h"
#define weaponScale 0.01f
using namespace cocos2d;
Ship::Ship(shipType sType, userType uType,float waterHeight, CCLayer* layer, b2World* m_world){
if(sType == SHIP){
if(uType == PLAYER){
obj = new GameObject("Ship",Globals::globalsInstance()->screenSize().width/4,waterHeight+10,1.0f);
obj-... |
18f23bebb71f1f0d095565ee37687953d4a7e5a3 | bcae155999374a2a0bbf2bb80342f104e8061389 | /c++_files/Spring_20_Files/test/Source.cpp | b70dec3049a465a616a85d1214dc0e07c855b372 | [] | no_license | JStevens209/consolidated_projects | bd8b97e377076406c61b19d67950efa740197221 | 6d0e4868f4d585da7258f7e6fd0329a8eab11b50 | refs/heads/main | 2023-07-11T12:50:59.348385 | 2021-08-23T15:47:34 | 2021-08-23T15:47:34 | 315,665,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | cpp | Source.cpp | /*#include <iostream>
using namespace std;
class Student {
public:
string firstName;
string lastName;
string level;
};
int main(int argc, char** argv) {
int* ip;
Student* sp;
Student s;
s.firstName = "John";
s.lastName = "Doe";
sp = &s;
int intArray[5] = { 2,5,7,9,12 };
ip =... |
1d05066c02e6702d6f7df3d814182d1ec47c4efa | 09810ef133e6016d9f2d6936e9f6a819aed338fe | /test/test_crybox.cpp | c2c788f6a497827bf44c3e95764a7a00f46b6597 | [
"MIT"
] | permissive | dufkan/pb173_project | f3bbb1e2958bfe50d7f844afb3e11e329891116b | 9e6277eb25eb79ec1ef6c1c93aa0d44d89422211 | refs/heads/master | 2020-04-10T10:56:03.634906 | 2018-05-27T20:13:32 | 2018-05-27T20:13:32 | 124,269,935 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,841 | cpp | test_crybox.cpp | #include "../shared/crybox.hpp"
#include <numeric>
TEST_CASE("IdBox"){
IdBox box;
SECTION("empty") {
std::vector<uint8_t> data = {};
REQUIRE(box.encrypt(data) == data);
REQUIRE(box.decrypt(data) == data);
REQUIRE(box.decrypt(box.encrypt(data)) == data);
}
SECTION("some")... |
1f0b9380d6f5aaedd587f2a92d2e4cf32434cb60 | 2bae07914bcd383fefe415194ffb63e2b007aff2 | /engine/modules/graveyard/webserver/include/tiki/webserver/httprequest.hpp | 2367d7437ff439293b13db999521c91bda268826 | [] | no_license | TikiTek/mechanica | ec4972b541bfb7dc685b0b7918785c5ca99622d2 | d151a818a279f1969b977ff7a935148b18ab9546 | refs/heads/master | 2021-10-09T07:27:23.308704 | 2021-10-08T07:42:04 | 2021-10-08T07:42:04 | 71,704,579 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | hpp | httprequest.hpp | #pragma once
#ifndef TIKI_HTTPREQUEST_HPP_INCLUDED__
#define TIKI_HTTPREQUEST_HPP_INCLUDED__
#include "tiki/base/types.hpp"
#include "tiki/net/url.hpp"
namespace tiki
{
struct HttpRequest
{
Url url;
const char* pBody;
};
}
#endif // TIKI_HTTPREQUEST_HPP_INCLUDED__
|
9b8a8091b322e5c2bd1c1ef50abc1d92b177d880 | 20b49a6ef1fa417d67abef2d29a598c9e41c478e | /CodeForces/Lockout/Round 7/designTutorialLearnFromLife.cpp | ea2dab0daa608cf3a9816207843606352c9b736f | [] | no_license | switchpiggy/Competitive_Programming | 956dac4a71fdf65de2959dd142a2032e2f0710e1 | beaaae4ece70889b0af1494d68c630a6e053558a | refs/heads/master | 2023-04-15T19:13:12.348433 | 2021-04-04T06:12:29 | 2021-04-04T06:12:29 | 290,905,106 | 1 | 3 | null | 2020-10-05T20:16:53 | 2020-08-27T23:38:48 | C++ | UTF-8 | C++ | false | false | 381 | cpp | designTutorialLearnFromLife.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll n, k, f[2007];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cin >> n >> k;
for(ll i = 0; i < n; ++i) cin >> f[i];
sort(f, f + n, greater<ll>());
ll ans = 0;
for(ll i = 0; i < n; i += k) {
ans += (f... |
a7f2f392400c45b171b31148d3016f3406db3d69 | bc2c0261cc3a3dd9c9e5c9d3fdf778864cec7864 | /Event.cpp | dba68adc8100eb6878916c44288634fbfcb2e119 | [] | no_license | denper-0/M7012E | 0a974fcdd4431a629babf9927592bcedcf6c2641 | 19fe79b6357ef843bb9b6cab17d19f7197a70006 | refs/heads/master | 2021-01-13T02:17:59.966619 | 2014-01-19T14:32:46 | 2014-01-19T14:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,702 | cpp | Event.cpp | #include "Event.h"
Event::Event(MyLeapAction a, PlayerState* current_PS, RoomState* current_RS, PlayerState* newPS, RoomState* newRS, std::string eText) {
action = a;
cur_PS = current_PS;
new_PS = newPS;
cur_RS = current_RS;
new_RS = newRS;
eventText = eText;
moveToNextRoom = false;
barelyEscapable = false;
... |
2136c82535ec464e095f6bd240c353fc7a5e525f | 402bdfabc4a4462c4a5264ad510ae6365ec05d4a | /src/plugins/openmptplugin/openmpt/common/mptAlloc.cpp | 41d81ec5d53830dd716bf506fd01414fea6a37cb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sasq64/musicplayer | aa6a7513801808ad8dac999f65bbe37d0d471010 | 2f122363b99a8a659885d5f8908c1ea3534c3946 | refs/heads/master | 2023-03-20T03:26:02.935156 | 2023-03-06T07:21:41 | 2023-03-06T07:21:41 | 113,909,161 | 12 | 3 | NOASSERTION | 2020-08-19T14:45:09 | 2017-12-11T21:13:44 | C | UTF-8 | C++ | false | false | 2,870 | cpp | mptAlloc.cpp | /*
* mptAlloc.cpp
* ------------
* Purpose: Dynamic memory allocation.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "mptAlloc.h"
#include "mptBaseTypes.h"
#include <memory>
#inc... |
9fa7d218cb1e050c1061f5312d634ed2daa52669 | 1e07bd2360ecb738f1a36b8fd033760485575797 | /Square Matrix II/Square Matrix II/main.cpp | c18d28ff57f88851224772c6714a15b3c902cc3e | [
"MIT"
] | permissive | brunorabelo/URI-Online-Judge | 437af37a24b4a50118c9c39f2febd620739dda94 | 87051c4fa7339c0ed6d9613739b70cedea2fe090 | refs/heads/master | 2021-01-21T16:54:04.701823 | 2017-05-20T22:39:57 | 2017-05-20T22:39:57 | 91,916,692 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 623 | cpp | main.cpp | //
// main.cpp
// Square Matrix II
//
// Created by MacBook on 01/05/17.
// Copyright © 2017 Bruno Botelho. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
int main(int argc, const char * argv[]) {
// insert code here...
int size;
scanf("%d",&size);
while(size!=0){
... |
3f65f0e4dc98d86e0a2c413d21dec62b02ff1348 | c83393c627739a9423ed06664b0ba27a98b7d351 | /test/http/http_response.h | e348d863ab4c99b12e0afbe8d12f1f4939009c42 | [
"BSD-3-Clause"
] | permissive | caozhiyi/CppNet | 7a00053200234dffbb23e3eb90bd9bc0520942fd | a96449fe22b80a2c892ee0f7157831d63cc5d05a | refs/heads/master | 2023-08-20T05:29:03.732554 | 2023-06-21T08:29:50 | 2023-06-21T08:29:50 | 136,014,386 | 953 | 249 | BSD-3-Clause | 2023-09-09T12:12:45 | 2018-06-04T11:20:12 | C++ | UTF-8 | C++ | false | false | 1,442 | h | http_response.h | #ifndef TEST_HTTP_HTTP_RESPONSE_HEADER
#define TEST_HTTP_HTTP_RESPONSE_HEADER
#include <map>
enum HttpStatusCode {
kUnknown,
k200Ok = 200,
k301MovedPermanently = 301,
k400BadRequest = 400,
k404NotFound = 404,
};
class HttpResponse {
public:
explicit HttpResponse(bool close) : _status_... |
d71b87384c207a6ee309714fe043c5592106de7a | 5402279b0e58e0aed68a8c40174f3a12dccf6187 | /src/seri.cpp | b5e95eee81422359cca8f34de4c06288f47cd811 | [] | no_license | YangTaoCraig/C955-RTU_Version-1009 | 59b97d081b2e12c329c078a6aa1a38c669ffb20d | 594158642e7d4047e69b787b4b19d2a2c2d1a73e | refs/heads/master | 2021-01-20T20:42:22.780302 | 2016-07-04T01:41:02 | 2016-07-04T01:41:02 | 62,523,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,678 | cpp | seri.cpp | /*----------------------------------------------------------------------------
Copyright (c) 2010 ST Electronics Ltd.
PROPRIETARY RIGHTS of ST Electronics Ltd are involved in the subject matter
of this material. All manufacturing, reproduction, use, and sales rights
pertaining to this subject matter ar... |
d9917e80a8bcb7d1ee27fbe07c9be1aaba8e7e88 | 72ceae2bcd7716fc0e5eb9bfac5a2e80b9594a83 | /src/shader/character.cc | 870c7ad87af558f48b90de244d5d82aa9a48538f | [
"MIT"
] | permissive | gyf1214/gl-danmaku | 6e296c313b74a554d476e218a25ce1c215fd5f08 | a4cdff1052a87c0ea3d7cf3a2c02d395a8bc019e | refs/heads/master | 2021-01-23T02:18:50.034243 | 2017-07-06T16:59:24 | 2017-07-06T16:59:24 | 85,981,461 | 2 | 0 | null | 2017-07-06T16:07:37 | 2017-03-23T18:00:01 | C++ | UTF-8 | C++ | false | false | 2,520 | cc | character.cc | #include "component/shader.hpp"
static GLuint program = 0;
static const char *vsh = R"(
#version 330 core
precision highp float;
in vec3 position;
in vec3 normal;
in vec2 uv;
in ivec4 boneIndex;
in vec4 boneWeight;
uniform mat4 mMat;
uniform mat4 vMat;
uniform mat4 pMat;
... |
41eb5ac1deba201d6ce26c7d736c76f17d163c77 | 12b7d29ab6791836f8ca31561255ee27ac6a7cf0 | /tut9.cpp | 9d2022a45b1ec8c5231008afe3cde939d64248d8 | [] | no_license | Prathamesh2642/learningcpp | bdedde09c6095e6d66575c923071bafdd4dce87e | 1aeb85350dcfebda639f9468efd3071672a93950 | refs/heads/main | 2023-08-11T03:56:35.811337 | 2021-09-30T17:53:48 | 2021-09-30T17:53:48 | 411,654,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 980 | cpp | tut9.cpp | #include <iostream>
using namespace std;
int main(){
//cout<<"How are you";
int age;
cout<<"please enter your age:"<<endl;
cin>>age;
//********if -else**********
//if(age>18){
// cout<<"Party hard bro!";
//}
// else{
// cout<<"You are not allowed,get out"... |
9a08a3d2aa42f498b27d14cf4eeac294d58b3ebe | 6b78e5377558d715386382064bdb77cc71cb8025 | /Queue.h | d1f998c3ce1c7dc45909d42a01319a4c542b9d03 | [] | no_license | nkahile/Tree-Based-Evaluator | 1034f5780a2d677be62257e2a698968d76d8ef5f | 4077d5088e8b399735887031d9fe56f5f8c5e894 | refs/heads/main | 2023-05-04T13:23:43.016533 | 2021-05-24T19:04:57 | 2021-05-24T19:04:57 | 365,877,865 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | h | Queue.h | #ifndef _CS507_QUEUE_H_
#define _CS507_QUEUE_H_
#include <exception>
#include "Array.h"
/*Constant time or O(1) run time*/
template <typename T>
class Queue
{
public:
/// Type definition of the type.
typedef T type;
/**
* @class empty_exception
*
* Exception thrown to in... |
2858fbb03b8b98ba6f31890ae4173c83f1d29d52 | 9f05d15a3f6d98711416d42e1ac3b385d9caa03a | /sem4/da/kp/conc/tokenizer.h | 17874e05c5c0c94234dab31b0f17f1265efa0798 | [] | no_license | dtbinh/MAI | abbad3bef790ea231a1dc36233851a080ea53225 | a5c0b7ce0be0f5b5a1d5f193e228c685977a2f93 | refs/heads/master | 2020-06-16T06:45:58.595779 | 2016-08-21T15:37:10 | 2016-08-21T15:37:10 | 75,237,279 | 1 | 0 | null | 2016-11-30T23:45:58 | 2016-11-30T23:45:58 | null | UTF-8 | C++ | false | false | 409 | h | tokenizer.h | #ifndef TOKENIZER_H
#define TOKENIZER_H
#include <string>
#include <cstdio>
#include "types.h"
class TTokenizer
{
public:
TTokenizer(FILE* file);
void ReadNext(std::string& str);
TUINT GetOffset() const;
TUINT GetNum() const;
TUINT GetRow() const;
TUSHORT GetCol() const;
private:
TUINT mOffset;
TUINT mNum... |
9d3370bf63eb8206927523320a5eccff0c88c6c2 | b4a550fe493e0dead649113f3e3f629697574432 | /src/win32/win32api_win32.cc | 2bab8cbac6af00c14807951828697ec63befc649 | [] | no_license | russellklenk/pil | 0f1bd002fe98444194263d0041bcda7b992bdfc9 | 047a122bd2982f25275fdbd33749a8d7749df64f | refs/heads/master | 2020-04-01T03:22:18.320257 | 2019-07-03T20:20:49 | 2019-07-03T20:20:49 | 152,819,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,992 | cc | win32api_win32.cc | /**
* @summary win32api_win32.cc: Implement the Windows API runtime loader for the
* Windows platform.
*/
#include "win32/win32api_win32.h"
static HRESULT WINAPI
SetProcessDpiAwareness_Stub
(
PROCESS_DPI_AWARENESS level
)
{
UNREFERENCED_PARAMETER(level);
if (SetProcessDPIAware()) {
return S_OK;
... |
f7953ff36ddcff3337b1b2cd83fcc8293c3eecff | 26df6604faf41197c9ced34c3df13839be6e74d4 | /ext/src/javax/swing/JLabel.hpp | 336d997c55109a26971fcfd469d03db0c47b2ef0 | [
"Apache-2.0"
] | permissive | pebble2015/cpoi | 58b4b1e38a7769b13ccfb2973270d15d490de07f | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | refs/heads/master | 2021-07-09T09:02:41.986901 | 2017-10-08T12:12:56 | 2017-10-08T12:12:56 | 105,988,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,133 | hpp | JLabel.hpp | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/awt/fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <javax/accessibility/fwd-POI.hpp>
#include <javax/swing/fwd-POI.hpp>
#include <... |
070eba079014487c1b5c5b41c8fd88a0ac0d6182 | fa0135628d8499145e9f45c9e936b30803c74ae8 | /introspective_ORB_SLAM/include/torch_helpers.h | 759c7a6404ed019e020ee6294032f71636a5a056 | [] | no_license | YznMur/IV_SLAM | b67b1d9f9d1f77fb983be5748cbcf360250101bc | 2cb772ae9ea30e6c99ea0c3ae0e72968d905a978 | refs/heads/main | 2023-08-20T23:36:12.102432 | 2021-03-02T17:01:04 | 2021-03-02T17:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,601 | h | torch_helpers.h | // Copyright 2019 srabiee@cs.utexas.edu
// College of Information and Computer Sciences,
// University of Texas at Austin
//
//
// This software is free: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License Version 3,
// as published by the Free Software Foundation.
//
//... |
f2de5a5640405d070541edf936a77e7699dc9a2a | eb588f91afa14ddb027d28cbc883e8e472a076f6 | /Bohyoh/VerId/VerId.h | 59dc4a8bd181997411c3bcbe545ed7de352bd94b | [] | no_license | kawauso-github/cpp | 1ed8193a3d0727e9bdb23d7e86bff4243770a4c4 | 4076873463846a0a8e8329f2640b11f3cbe676f7 | refs/heads/master | 2023-05-28T20:36:27.424677 | 2021-06-07T08:01:22 | 2021-06-07T08:01:22 | 374,580,959 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 387 | h | VerId.h | // 検証用・識別番号クラスVerId(ヘッダ部)
#ifndef ___Class_VerId
#define ___Class_VerId
//===== 識別番号クラス =====//
class VerId {
int id_no; // 識別番号
public:
static int counter; // 何番までの識別番号を与えたのか
VerId(); // コンストラクタ
int id() const; // 識別番号を調べる
};
#endif
|
2737caec642a7c6c411ff2c941908df9e63abba3 | 328d5d577f15c5927d64c8715dce01766f625d6f | /code/ext/lwpr/src/IPCSEM.h | ccad4e747c83745f0d3d526e13d530d1f4e68922 | [
"Apache-2.0"
] | permissive | vintagewang/tuxone | 61aa1822cbedc1397753faf74b71ad2ade064316 | a7299bcb80647bae0e2fed597f8baffc54b53619 | refs/heads/master | 2022-05-31T09:45:35.852238 | 2022-05-27T09:33:59 | 2022-05-27T09:33:59 | 4,544,177 | 20 | 21 | null | 2020-01-10T06:49:16 | 2012-06-04T06:48:38 | C++ | GB18030 | C++ | false | false | 2,124 | h | IPCSEM.h | /**
* Copyright 2012 Wangxr, vintage.wang@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
6e3ca46f47034ca5060d2b19155725c8ae0b5924 | 4f4d3ec9bca4e2acb085a0c77e5cd3ed1b43b98d | /DP/9251.cpp | b648a2ec51be8d99b72166125d782d3af7e69364 | [] | no_license | Jeonghwan-Yoo/BOJ | 5293c181e17ea3bcd7f15e3a9e1df08d3a885447 | 5f2018106a188ce36b15b9ae09cf68da4566ec99 | refs/heads/master | 2021-03-05T02:36:45.338480 | 2021-01-20T12:43:40 | 2021-01-20T12:43:40 | 246,088,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | 9251.cpp | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int dp[2][1'001];
int main()
{
freopen("in.txt", "r", stdin);
ios::sync_with_stdio(false);
cin.tie(nullptr);
string s1, s2;
cin >> s1 >> s2;
int n = (int)s1.size();
int m = (int)s2.size();
for (int i = 1... |
e0eda6fd5a360f412bbef983dbd3c0664fb06932 | eb21836432b85b049e65fcd59cf4ee4445fe1546 | /simulator/mainform.h | 50ace5c791faf5cb975daa7b77865c34170d9fc5 | [] | no_license | Liufengxuan/Simulator | d8238ad68f64e38649acaa024150b56351e45e5a | 4c681c145df4d1f21e38d6eb32db8ebcd930a690 | refs/heads/main | 2023-08-03T10:18:29.679748 | 2021-09-14T02:32:42 | 2021-09-14T02:32:42 | 394,601,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,298 | h | mainform.h | #ifndef MAINFROM_H
#define MAINFROM_H
#include <QWidget>
#include <xmlparsing.h>
#include"ncparsing.h"
#include "simworker.h"
#include "ui_mainfrom.h"
#include<qmessagebox.h>
#include <QThread>
#include <QPainter>
#include <QPointF>
#include <QMouseEvent>
#include <QtGlobal>
#include"math.h"
//#include "simparameter.h... |
0593244b7dd4d583d164f62fd5ad8ac7cc76d1a0 | 9943350b9dd994b3ceb5c78a66667316e3cecd8d | /db2/quiz2/gen.cc | 3e65a34c8f1f663c9502045f72c6ec0a9f3d743a | [] | no_license | mimizunohimono/myBackup | a4dc4150f54feeab0ca44ab74c3ca8a73d05d16c | f52e0e06edf137efefe2af5c17d425ec8dada37d | refs/heads/master | 2021-01-20T12:38:17.020394 | 2014-12-27T20:08:48 | 2014-12-27T20:08:48 | 30,452,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | cc | gen.cc | #include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <iostream>
#include "debug.h"
using namespace std;
typedef struct _TUPLE {
int key;
int val;
} TUPLE;
int
main(int argc, char *argv[])
{
if (argc != 2) {
cout << "Usage: program numberOfTuples" << end... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.