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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca6cee0fbdd38b02687892ea47ab283c61e0dc63 | 803d5f95358bbeeb23ec546127fc1b08d23da873 | /Assignment 4+5 - Library/Library/Book.h | 40f093ddf50738a2fc2c02511c80a9a6ca1bf329 | [] | no_license | shikariix/OOP | 50b759b533629fa0ee713a98a9111869bd8390e1 | 4419345fe3fb1642cdb51c2488b1d518745e6471 | refs/heads/master | 2021-05-05T15:33:49.259176 | 2017-11-01T21:48:32 | 2017-11-01T21:48:32 | 103,170,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 145 | h | Book.h | #pragma once
#include <string>
class Book {
public:
Book ();
Book (std::string name);
virtual ~Book ();
std::string _name = "Unknown";
};
|
5073f68c177fbbbdddd1ec7b54220a39345bc1eb | 9443106e1a0fab43bfc77e8120f4eda103358f1e | /src/rectangle.h | d3cf5a1b8beefb18c10fb8d6210998c739866ab5 | [] | no_license | is108/arkanoid | 55661525f0abb6c8ac570e9ce11fd549831e8d8b | 4431687258243021209f7f4fcdc0a2e9c2dce832 | refs/heads/main | 2023-06-02T17:44:52.138351 | 2021-06-18T09:51:50 | 2021-06-18T09:51:50 | 280,396,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | h | rectangle.h | #pragma once
#include <iostream>
#include <SFML/Graphics.hpp>
using namespace sf;
class rectangle
{
public:
rectangle() = default;
~rectangle() = default;
// Получить координату x
float get_x();
// Получить координату y
float get_y();
// Получить левый край фигуры
float left();... |
80891028fe6d53ee18cfcbea22135483b0c8c9bb | cd99832ce224f1581c61c3d2d199f84545b52269 | /PetitTrain.cpp | 45d9a8ee9f5d6569660cb43e0cddd4ebe3d8de60 | [] | no_license | nicolasrn/openglnrmg | d6bc0d3072a8beefcc87f76dae6e5cbcb58c77cc | fd3734052fcbe2af6aa135b20b5060726c827798 | refs/heads/master | 2021-01-16T18:31:59.583768 | 2012-01-13T07:23:46 | 2012-01-13T07:23:46 | 32,201,899 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 48,256 | cpp | PetitTrain.cpp | #include <iostream>
#include <cstdlib>
#include <cmath>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <windows.h>
#include <Mmsystem.h>
#include <conio.h>
#include "ModuleCouleurs.h"
#include "ModuleManipulateur.h"
#include "ModuleReshape.h"
#include "ModuleCylindres.h"
#incl... |
04c23353ef564b43113cea115a8145f65e54cfda | e772f125bb43731b1d11e3d841965cfd42b7db20 | /Teacher.cpp | 7dfa412abcb071424bfcf47ba69c5c2b787113de | [] | no_license | yungzyad/224FinalProject | 10e9aaa10fe3b75817c068e29ee68dafb858396c | a98c4ce6958e25e693603bb3d2d1bd116838e6d0 | refs/heads/master | 2023-03-17T14:19:26.083313 | 2018-06-30T01:50:28 | 2018-06-30T01:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | cpp | Teacher.cpp | //
// Teacher.cpp
// 224FinalProject
//
// Created by Zyad Gomaa on 11/10/17.
// Copyright © 2017 Zyad Gomaa. All rights reserved.
//
#include "Teacher.hpp"
using namespace std;
|
02bd90cb7b95d5ad8e8b90805047bdef3f8db9e7 | f0a95fab0e582fe5fff0f579ae0e7392193486bd | /33C.CPP | dab9604b20cdc0f8d35437080ec82324cd840493 | [] | no_license | ravikumarmakwana/C-and-CPP-Programs | 5ed5c6f8dbc525bb1c349e79ee392de34ba7a60e | 4e227fafb14db02326dbf427bc4bf5ec27055ea2 | refs/heads/master | 2022-04-11T12:58:23.990926 | 2020-03-27T11:59:22 | 2020-03-27T11:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | 33C.CPP | #include<stdio.h>
#include<conio.h>
#include<iostream.h>
class counter
{
static int c;
public:
void getdata()
{
c++;
}
void putdata()
{
cout<<"\nCreated Objetc:"<<c;
}
};
int counter :: c;
void main()
{
clrscr();
counter s1;
s1.getdata();
counter s2;
s2.getdata();
s2.putdata();
getch();
} |
758ed9c5c0852490907fb66dbbd1bed712390397 | 51a988d7e005c370f1e1be7f534442e26849782b | /simulator/dynamicLibEnum.cpp | ac9aa53d7379716d480df31156257436dddd4961 | [
"MIT"
] | permissive | etaijacob/TOYFOLD | 9b77cc9b3c94ce7481e7323ef411dc3feb643956 | 19683002924906ed18da7dc8f325e9654a7cdb16 | refs/heads/master | 2020-11-26T01:06:13.341177 | 2019-12-18T21:13:05 | 2019-12-18T21:13:05 | 228,916,041 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,667 | cpp | dynamicLibEnum.cpp | //dynamicLibEnum.cpp
#include "dynamicLibEnum.h"
#include <iostream>
#include <stdlib.h>
using namespace std;
double counter = 0;
int enumMatrix[ENUM_ARR_SIZE*2 + 1][ENUM_ARR_SIZE*2 + 1] = {{0}};
int enumeratePoints(point* parr, dresGroup* dgrp, int x, int y, int len, int** matrix)
{
//cout<<"Entering func.\n";
i... |
23ef2c250f98bc7cfd6d009ae25fc938d7fca753 | cf1e8aff4b33079fe961ba1aa1493f05036bbb5b | /include/security_info.h | aeafe627375ca0f07d4591ebd1632aa0dd42f30e | [] | no_license | jmazar/Backtester | db76bb45768e44e37e37a1c4c039ad7e8b15b947 | 7c796d4cc0a4525c87c6ca30be18c1eea309055c | refs/heads/master | 2021-01-19T12:31:42.584184 | 2012-10-02T03:17:02 | 2012-10-02T03:17:02 | 5,476,568 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | h | security_info.h | #ifndef _SECURITY_INFO_H
#define _SECURITY_INFO_H
#include "date.h"
#include <string>
struct SecurityInfo {
unsigned int id;
Date date;
double open;
double close;
double high;
double low;
double macd;
double stochasticOscillator;
unsigned int volume;
};
#endif
|
4dfaf00e34e2ec65473499f7c1677caac8ec7742 | 2b94fc57e2a6ed5eb3fd85615f7e3326a35ac27a | /Orb.cpp | 9833e8cf520f74c09ee42d74478f11f849fb465d | [] | no_license | Carojen/SolarSystem | e7103fe365d9fec4521f5ef1ca8dd1037b1c0d85 | baf2c3775ba0f5350e69c171a9d84a58bb54c592 | refs/heads/master | 2021-01-10T18:13:22.811822 | 2015-10-29T14:58:50 | 2015-10-29T14:58:50 | 44,532,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,119 | cpp | Orb.cpp | #include "Orb.h"
#include <iostream>
#include <cmath>
Orb::Orb(MyVector position, double mass, const double deltaTime, string name, Color color, char key,bool active, MyVector velocity,bool isMoon, Orb* primary)
: mCurrentPosition(position), mPreviousPosition(position), mMass(mass), mName(name), mColor(color), mKey(k... |
f4fc7bff0a027ac42d30d61eb2ddf40fbce7bdb4 | 3efba8973c0ddda350359cc9d1dd21bbf3666865 | /ECS/Project/Project/Resources/ResourceData/PhysicsData/PhysicsData.h | 6e7576296150722dd5178810023b674e001ec5af | [
"MIT"
] | permissive | AshwinKumarVijay/SceneECS | 0de78e5f0a1a9ae494a5687443907670d7d76ac3 | 2acc115d5e7738ef9bf087c025e5e5a10cac3443 | refs/heads/master | 2021-04-29T08:11:07.161331 | 2017-02-23T19:41:07 | 2017-02-23T19:41:07 | 77,653,583 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | PhysicsData.h | #pragma once
#include <vector>
#include <memory>
#include <map>
#include "glm\glm.hpp"
#include "../ResourceData.h"
class btDefaultMotionState;
class btRigidBody;
class PhysicsData : public ResourceData
{
public:
// Default PhysicsData Constructor.
PhysicsData();
// Default PhysicsData Destructor
virtual ~Ph... |
7aa3d27e939e1ee9681b1d727d55e54b63d1998b | 99c678ae037bd722bbea5027c00a2386f432c207 | /Bindings/Python/OSGSystem/module/generated/ChunkOverrideGroup.pypp.cpp | a24eabc1268e2739ffeb45045d36723ee65f79af | [] | no_license | wangfeilong321/OSGAddOnsGV | f6b4307d631bb9004979375b16bb38547afb20cf | 02d1850fccc2e7c81c830e80639b687e43203f2f | refs/heads/master | 2020-12-11T06:01:41.042678 | 2015-08-11T09:09:33 | 2015-08-11T09:09:33 | 48,630,698 | 0 | 1 | null | 2015-12-27T02:57:36 | 2015-12-27T02:57:36 | null | UTF-8 | C++ | false | false | 7,085 | cpp | ChunkOverrideGroup.pypp.cpp | // This file has been generated by Py++.
// PyOpenSG is (C) Copyright 2005-2009 by Allen Bierbaum
//
// This file is part of PyOpenSG.
//
// PyOpenSG is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the Free
// Software Foundation; ... |
2be2985bab220f73e02b002132e89f8670aefbe2 | 10d46705a7a528855a8a8c0110b4ce3d720c24cc | /source/system/GameClock.cpp | 320e41259ca64a67070b092981d632acb79b1519 | [] | no_license | WWWaheb/ZeldaOOL | 24104755d2390755a990db85c125b62a18beef9f | e5e95b9f5c4f1fa8c837cc3dc405e82a6f11d665 | refs/heads/master | 2021-06-07T14:53:35.526205 | 2016-11-25T13:27:20 | 2016-11-25T13:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,397 | cpp | GameClock.cpp | /*
* =====================================================================================
*
* Filename: GameClock.cpp
*
* Description:
*
* Created: 01/12/2014 18:19:24
*
* Author: Quentin Bazin, <gnidmoo@gmail.com>
*
* ==============================================================... |
1a94264c316aea5575a1a47e417630309cfcab07 | 0846b53e3e2c3364cbd053cc384cb96164264202 | /v2007/v99s3p3.cpp | 040b462e3a07d626364aa53e51c64fa8d774b0c4 | [] | no_license | aluxian/high-school-cpp | f2a9d572524ec356eeb4908178ee2ec7ce38ef01 | d138cad0167d89473fc03b2b7a4ead54649f5bad | refs/heads/master | 2021-06-23T04:45:57.148113 | 2017-08-27T09:46:35 | 2017-08-27T09:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | v99s3p3.cpp | #include <fstream>
#include <stdio.h>
using namespace std;
int count(float x[2500], float a, float b) {
if (b > a) {
float c = a;
a = b;
b = c;
}
int n = 2500;
if (x[2499] < a || x[0] > b)
n = 0;
else {
for (int i = 0; i < 2500; i++)
if (x[i] < a)
n--;
for (int i ... |
c3c4021fcd593149665778ea4b76d29df80fd6f8 | 65e7c147e50a1ae17269c73c79bf885e3f9b1e30 | /TribesAscendSDK/HeaderDump/TribesGame.TrFamilyInfo_Medium_Engineer_BE.h | 112b0cbe3162796388ee82bb5aa58a345a778eb7 | [] | no_license | indiecore/TASDK | 05134d7722c941f8e69bbe5bd20616dcc31dd9d5 | b1e7061f0e3695e74cd1bf94b6be38b287f2f2ba | refs/heads/master | 2020-12-25T03:39:55.801138 | 2013-07-31T13:36:10 | 2013-07-31T13:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | h | TribesGame.TrFamilyInfo_Medium_Engineer_BE.h | #pragma once
#include "TribesGame.TrFamilyInfo_Medium_Engineer.h"
namespace UnrealScript
{
class TrFamilyInfo_Medium_Engineer_BE : public TrFamilyInfo_Medium_Engineer
{
};
}
|
55d654767e4fb8d507a81e07488c7f711f7f82ba | fd031e399c076a7fe680d13c82e06361ba4b346a | /src/tutorial_package/src/sub_node.cpp | d8e17ffe3ed65fb318f371e43199a0db858c76e3 | [] | no_license | jannyang/capstone | 3686022fa33964be6e9c1674be5f447a3ed1e0f4 | 1a1e12838aaa2fdd5f229b782214b02f1c6b055a | refs/heads/main | 2023-09-05T19:18:44.528557 | 2021-11-21T06:55:27 | 2021-11-21T06:55:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | sub_node.cpp | #include<ros/ros.h>
#include<std_msgs/Int16.h>
#include<my_msgs/RequestOfMove.h>
void NumberCallback(const my_msgs::RequestOfMove &msg){
ROS_INFO("sub MR: %d, ML: %d\n", msg.MR, msg.ML);
}
int main(int argc, char** argv){
ros::init(argc, argv, "sub_node");
ros::NodeHandle nh;
ros::Subscriber sub_numb... |
2b4ca0301123f4b0ac6d3bdc67e434809b408291 | 3c5e253742e7744aadd4d8d56104f63400a7cc8f | /Lesson3/app/app.ino | a8ec12f548687a8d345fce8b7e100c2ea4924df1 | [
"MIT"
] | permissive | arrebagrove/iot-hub-c-feather-huzzah-getting-started | 26783af0a3e4c28b27d6d58fec777e49ba656c48 | 346fdc3164113410813c24477f5084aec59c98db | refs/heads/master | 2020-06-10T02:50:09.800400 | 2016-12-07T03:28:06 | 2016-12-07T03:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,720 | ino | app.ino | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Please use an Arduino IDE 1.6.8 or greater
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <WiFiUdp.h>
#include <AzureIoTHub.h>
#include "config.h... |
5d55b2736dab8fcb0b22276992bbe4af1b070541 | d3163afec2367cbae3917d4a24f063e940dc3f42 | /2D_Game/2D_Game/Spawner.h | bd8c4b086cd8ed217ea11c6ab41e08e0c27519e3 | [] | no_license | merche-o/2DGameProjectKMU | 6304dd837358d6a708581efffa740c2afc249424 | d73c7191a0d3fbcbec69a64d4576642b7a67b72d | refs/heads/master | 2021-01-16T21:37:24.269086 | 2016-02-26T05:41:42 | 2016-02-26T05:41:42 | 23,953,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | h | Spawner.h | #pragma once
#include <vector>
#include "AUnit.h"
#include "Enemy.h"
#include "Item.h"
#include "Ammo.h"
#include "Ressources.h"
#include "Settings.h"
#include "Player.h"
#include "Map.h"
#include "EnemyWave.h"
class Spawner
{
private:
enum e_posState
{
UP_LEFT,
UP_RIGHT,
DOWN_LEFT,
DOWN_RIGHT
};
private:... |
f5dcdef42d0503e2b647f1f8b2009dec8691cbae | 54f4440487c9f3aad4345af7ab1fec316b7b6751 | /C++/Project21_DB/DbVariables/DbDoubleVar.h | 69da14d8eea8399891919c0bf4c67b4c40f7349b | [] | no_license | costinAndronache/MyProjects | fb35bec3bd5b565e7b63f87fdb5c385061d3d0ac | b1834b66e09d8a4f1ee7ef6e7e5079893e9045ee | refs/heads/master | 2021-01-02T23:13:23.090093 | 2015-05-12T22:18:50 | 2015-05-12T22:18:50 | 32,603,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 596 | h | DbDoubleVar.h | #ifndef DBDOUBLEVAR_H
#define DBDOUBLEVAR_H
#include "../DbTypes/DbTypes.h"
#include "DbVariable.h"
class DbDoubleVar : public DbVariable
{
private:
double actualValue;
public:
DbDoubleVar(){actualValue=0;}
void setFromString(std::string);
std::string getStringRepresentation();
DbType* getDb... |
cd84c2f89332f0aaa7e8e8230cc7175c6f5958d9 | 39ef49f8a420706ea09831b998701a92791e9730 | /CPP_04/ex00/Sorcerer.cpp | f828a12f1480ef01f4f1321b3f8ba61b3a833885 | [] | no_license | violettagoldman/cpp | 76c51377e9ef155ecbd9f8f89c5b2c2e50a6a643 | 23fb3d38420320393282465a945908775e992b40 | refs/heads/master | 2023-03-21T22:24:52.972663 | 2021-03-11T10:44:34 | 2021-03-11T10:44:34 | 294,916,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | cpp | Sorcerer.cpp | #include "Sorcerer.hpp"
Sorcerer::Sorcerer(void)
{
_name = "Sorcerer";
_title = "Default";
}
Sorcerer::Sorcerer(std::string name, std::string title) : _name(name), _title(title)
{
std::cout << name << ", " << title << ", is born!\n";
}
Sorcerer::Sorcerer(Sorcerer const &src)
{
*this = src;
}
Sorcerer::~Sorcerer... |
6b2d97c4c252a10b884d37364119e3c6a95cedbb | 1fa01265f7a2fddfd6875a2e203ed393094c1279 | /cs240_C++_Projects/WebCrawler/inc/URLHistoryTree.h | 043bdc77000f6ef08eb3416a319b7c59639ea939 | [] | no_license | yuanzheng/BYU | 73086db328a5a0f49e8da727a0df9a3338fbb12f | 5cbefe3c02fbf30e72d7e4153c09ff1f99d3f541 | refs/heads/master | 2020-05-01T08:21:07.024506 | 2019-07-18T05:43:44 | 2019-07-18T05:43:44 | 14,578,784 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,431 | h | URLHistoryTree.h | #ifndef URLHISTORYTREE_H
#define URLHISTORYTREE_H
#include "URLHistory.h"
/*
* URLHistoryTree implements the URLHistory binary search tree for keep track of already processed pages.
* Each new url will be searched on this tree, if there is the same URL, then the new url
* will be descarded. Otherwise, it will ... |
36e1c10b73aff7dadcc341c96a07ed6beb5c7e93 | 06149296a1afbd6b053f4965e89357a3d1b2e88e | /TravelKit/Core/Database/Database.cpp | bf899d7e92288f383a969fd32d62f934945da4f4 | [] | no_license | karimhm/TravelKit | 304526eb3183aa215aba272b8c1056b931cc919c | d6f43c63a5686c1ecbc106bed533bcd3b1eae0f1 | refs/heads/master | 2022-12-22T05:09:05.059287 | 2019-11-06T10:00:58 | 2019-11-06T10:00:58 | 164,929,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,514 | cpp | Database.cpp | /*
* Database.h
*
* Copyright (C) 2018 Karim. All rights reserved.
*/
#include "Database.h"
#include <stdarg.h>
#include <stdio.h>
using namespace tk;
TK_EXTERN const FunctionContext FunctionContextEmpty = {
.name = nullptr,
.valuesCount = 0,
.deterministic = false,
.execute = nullptr,
.ste... |
9684963e7ba11cb017f9a31d582091ed9674e5b4 | cdc48d15c50aa2c59dc0cb2c999e92b3597f35e8 | /Project1/Project2/5주 2일 예제_2.cpp | a6c26afb406460c3c295bf8a00a5051e9db5823e | [] | no_license | JungHeeSeung/MyCode | 54084e757eb92a79409f2df04746a5bac64552e9 | 58df32775a9a37ddf5bed8347067ef4f07a638f6 | refs/heads/master | 2020-04-30T20:37:05.451558 | 2019-06-18T17:53:00 | 2019-06-18T17:53:00 | 176,080,393 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 391 | cpp | 5주 2일 예제_2.cpp | #include<iostream>
#include<fstream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;
// 단어별로 순서를 뒤집어서 출력하기
int main()
{
string a{ "abcdefghijklmnopqrstubwxyz asdf qwer zxcv" };
copy(a.begin(), a.end(), ostreambuf_iterator<char>(cout));
cout << endl;
copy(a.rbegin(), a.rend(), ostreambu... |
0258c5dcc6e7e9bf2859a6c01ea195d24899ad3f | ceb18dbff900d48d7df6b744d1cd167c7c9eb5c5 | /mine/cplusplusCS/2014/BMDemo/BM/DBConf.cpp | adc1b8e5ba80b72847c2d721358487175d5a7757 | [] | no_license | 15831944/sourcecode | 6bb5f74aac5cf1f496eced1b31a0fd4cf3271740 | 412f0ba73dd7fb179a92d2d0635ddbf025bfe6d4 | refs/heads/master | 2021-12-27T20:07:32.598613 | 2018-01-15T14:38:35 | 2018-01-15T14:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,671 | cpp | DBConf.cpp | // DBConf.cpp : 实现文件
//
#include "stdafx.h"
#include "BM.h"
#include "DBConf.h"
#include "afxdialogex.h"
#include "DBNew.h"
#include "Login.h"
// CDBConf 对话框
IMPLEMENT_DYNAMIC(CDBConf, CDialogEx)
CDBConf::CDBConf(CWnd* pParent /*=NULL*/)
: CDialogEx(CDBConf::IDD, pParent)
{
//m_portDefault = 668... |
f256ad2154f37bcb8d7a5801eabd4d69809a1f34 | 48ac5268a51a481c20a497fdd8c86b56d79b79b4 | /Graphs/Redundant Connection_366092858.cpp | f34181a2fa518f969975216048b47d663a2b7bee | [] | no_license | ShubhamMutreja/LeetCode-Solutions | a443d6f388d11415e4924f37a7265aaa921c38d7 | daf5eebf160350960f95bcb6dc55477a22548595 | refs/heads/master | 2022-12-08T19:23:32.319527 | 2020-09-06T17:47:33 | 2020-09-06T17:47:33 | 293,289,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,203 | cpp | Redundant Connection_366092858.cpp | class Solution {
public:
vector<int> par;
vector<int> size;
int find(int src)
{
if(src == par[src])
return src;
return par[src] = find(par[src]);
}
void merge(int p1,int p2)
{
if(size[p1] > size[p2])
{
par[p2] = par[p1];
siz... |
57c6416d31938121ff052aeed6296dac5b5e01cb | 65a8e0b5dd09d9103b5cecbe259c1c6ffcb6a65d | /StareProject/SOCKETS/serverv2.cpp | 1d0dd0120d8f96062f6b55f8c5912e2e3b57e286 | [] | no_license | acronos7021/Stare | 342adb9293d1f7aacb00c46cb2f01c4326a3b198 | f07e5821c0c63c779eccb5e69706df7f1e85dbd7 | refs/heads/master | 2021-01-24T06:13:40.326589 | 2014-11-20T14:20:23 | 2014-11-20T14:20:23 | 23,979,521 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,198 | cpp | serverv2.cpp | #include <iostream>
#include <cstdlib>
#include <thread>
#include <string>
#pragma comment(lib, "Ws2_32.lib")
#include <stdio.h>
#include <WinSock2.h>
#define SCK_VERSION2 0x0202;
class server {
public:
void initEngine();
void startServer();
void listening();
private:
//---------------------------------------... |
6665c740318ca135eb10f7c684e23c9ebbc6ba43 | f2be1d595e0b221987a75949b4134bd7f8c20655 | /src/Ocean.h | ab6c063e56ca0e43bbd03802d03194521d91400d | [] | no_license | GladB/ocean | 26b804e9abcc46daf6243130558b9f49825e08ca | c9a2a8e6d01b5b7c3752d1bcac0c914a615f8ccc | refs/heads/master | 2022-07-08T07:26:14.898454 | 2022-06-16T16:21:31 | 2022-06-16T16:21:31 | 133,040,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,278 | h | Ocean.h | #ifndef OCEANH
#define OCEANH
#include "Height.h"
#include "WaveModel.h"
/*! \class Ocean
* \brief classe faisant la synthèse de toutes les données - calculs des hauteurs
*
*/
class Ocean
{
private :
double lx;
double ly;
int nx;
int ny;
int t; /**< Temps */
Height hauteur; /**< Tableau des hauteurs ... |
f2db3f9a6eba09dc3c5c1d0e47bfb5508fc2b53b | 7b7a9a7c88b9ff23a652ee5af249a63f2e14bb4d | /homeworks/hwjan17.cpp | a6361a7e78026d9887bcfde4211ff84884d6a2b0 | [] | no_license | XKushal/430WareHouse | f085f7871a8d68effb664dfa6a51318ffde28d53 | c09cab14dcdc21bb43028b6ede73a78df83c924d | refs/heads/master | 2020-04-24T11:29:25.636981 | 2019-03-21T18:25:36 | 2019-03-21T18:25:36 | 171,927,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | hwjan17.cpp | #include <iostream>
#include <string>
#include "math.h"
using namespace std;
int main()
{
int n;
int x= 2;
cout<<"Enter a number: ";
cin>>n;
while (!(n % x==0 || x>=floor(sqrt(n))))
{
x =x+1;
}
if (n % x==0)
{
cout << "n is not a prime number" << endl;
}
else
{
... |
066f69157de07134ffc77a35e95c30cd5b024404 | 55f54c9d18e3781255c157d63381579261dde405 | /Code/Tools/FBuild/FBuildTest/Tests/TestNodeReflection.cpp | 0da2ccf61fffc52606b18f3b7ffa60a08503882d | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fastbuild/fastbuild | 8f5f94802c6cce54d903936c8551fd8791479001 | 1b3935069d29b965a9d1d6798d9cf651319dbe87 | refs/heads/main | 2023-08-22T19:28:12.587510 | 2023-08-19T02:56:25 | 2023-08-19T02:56:25 | 32,647,696 | 1,175 | 409 | null | 2023-08-23T22:40:15 | 2015-03-21T19:53:07 | C++ | UTF-8 | C++ | false | false | 38,019 | cpp | TestNodeReflection.cpp | // TestNodeReflection.cpp
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "FBuildTest.h"
// FBuildCore
#include "Tools/FBuild/FBuildCore/BFF/BFFStackFrame.h"
#include "Tools/FBuild/FB... |
1ba3e38d305a293a9b5098783b8048bac0b925ac | 8f6dd455b6b43edd55118ecfff4c4a96592c1a18 | /Zamotaeva/ClientServer1912/ServerApp/ServerApp/MyLogger.h | bae202a37b8f07e227a0cbfdd9aaf7a6867ff9ae | [] | no_license | h31/NetworksCourseBackup | 6be641cf125d783135d7454aa27aa1d16c952f35 | f22451379dcc739330807f03f366b6e8082926b2 | refs/heads/master | 2021-01-10T11:02:04.136583 | 2015-01-08T13:13:17 | 2015-01-08T13:13:17 | 51,789,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,683 | h | MyLogger.h | #pragma once
#include <iostream>
#include "AppColorTheme.h"
using namespace std;
class MyLogger
{
public:
MyLogger(void);
~MyLogger(void);
static void WriteSuccessNetworkEvent(char * text)
{
AppColorTheme::setSuccessColor();
printf("Success:\t%s\n",text);
AppColorTheme::setNormalColor();
}
... |
b170e72703b89fea3388511f9dc4d07aefb1ab5a | 41fd64c7e615f8359d023f3512933081bc581ef5 | /chpt2/Ex2.5-Template/include/GenericInequalities.h | 48a22137e57d3ade5f0a5b2b7b3232f804ea3386 | [] | no_license | yonxie/CplusFE_Note | f20735db5df96d512a5d0f3936d829517df8b5c6 | d233794b83cc58b29bcf3f164679f8390aeab0ed | refs/heads/master | 2023-02-06T05:39:17.754271 | 2020-12-24T02:54:34 | 2020-12-24T02:54:34 | 322,522,233 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | h | GenericInequalities.h | // GenericInequalities.h
// Preprocessor directive; ensure that we don't
// include a file twice.
#ifndef GenericInequalities_HPP
#define GenericInequalities_HPP
//Max and Min of two numbers
template <class Numeric>
Numeric Max(const Numeric& x, const Numeric& y);
template <class Numeric>
Numeric Min(cons... |
5e6212c734b729ed600966b73d43c7ab150cb548 | ad10052619b7bc79d311940bd2419772c4bc8a53 | /topcoder-master-5/XorBoardDivTwo.cpp | 28769547c8f038ba9444aa51914573bb2d3f027c | [] | no_license | bluepine/topcoder | 3af066a5b1ac6c448c50942f98deb2aa382ba040 | d300c8a349a8346dba4a5fe3b4f43b17207627a1 | refs/heads/master | 2021-01-19T08:15:06.539102 | 2014-04-02T21:10:58 | 2014-04-02T21:10:58 | 18,381,690 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,397 | cpp | XorBoardDivTwo.cpp | /*
// BEGIN CUT HERE
// PROBLEM STATEMENT
// Fox Jiro has a rectangular board, divided into a grid of square cells.
Each cell in the grid contains either the character '0', or the character '1'.
The vector <string> board contains the current state of the board.
The j-th character of the i-th element of board is the cha... |
7c398e4310f3d0f8f1fb22ce029641412c29d922 | 960858e0bec3398d75dc07e6705506ec83c9df3d | /include/KnownNetworks.h | b7996a8d6d1813d51de3f4cf967421c21935031d | [
"MIT"
] | permissive | radtek/hostview-win | 85db65547f2c5f049b4877650eb3ba0a7932a7f5 | db890b83956081d98e64005873eb2e7e4c6891e6 | refs/heads/master | 2021-09-14T17:11:48.218173 | 2018-05-16T12:54:02 | 2018-05-16T12:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,345 | h | KnownNetworks.h | /**
* The MIT License (MIT)
*
* Copyright (c) 2015-2016 MUSE / Inria
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... |
816b977ae03036f1a4da6f79610a90e837b80b2c | a88008da74ef1a532d557c86e3029c8bbb7d34e6 | /Alfa-Back-GUI/Alfa-Back-GUI.cpp | 1dcfe22dc97d3ad512bcc300ccb1aeed7f803dbf | [
"MIT"
] | permissive | kai-koch/Alfa-Back-GUI | 37760bf6d4d7ceae4abdab3d5d8ff67c58465cf1 | 5c32514b4117ed5314ff34bc85e4d2f2871f52ca | refs/heads/master | 2020-04-06T23:36:01.795187 | 2018-11-29T13:46:42 | 2018-11-29T13:46:42 | 157,874,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | cpp | Alfa-Back-GUI.cpp | #include "AlfaBackForm.h"
using namespace AlfaBackGUI;
[STAThreadAttribute]
int main()
{
// GUI
AlfaBackForm ^ daForm = gcnew AlfaBackForm();
daForm->ShowDialog();
return 0;
} |
8b8db4a6853b22ee59bd84c02a18af014aa999cf | 859e1d791b5674f7117f10a99d8b695096edb562 | /inst/include/dplyr/EmptySubset.h | 9b7ff402bec45c46111a6509e89314be318bbc4a | [
"MIT"
] | permissive | pierucci/dplyr | ef1965837cddba1f4c2d1fe47fdf17f4e40a4008 | 8555ab45535c4c7f80cda580fc62bf91716d640f | refs/heads/master | 2020-12-31T06:46:31.506225 | 2017-03-29T15:38:54 | 2017-03-29T15:38:54 | 86,600,451 | 0 | 0 | null | 2017-03-29T15:42:54 | 2017-03-29T15:42:54 | null | UTF-8 | C++ | false | false | 166 | h | EmptySubset.h | #ifndef dplyr_EmptySubset_H
#define dplyr_EmptySubset_H
namespace dplyr {
class EmptySubset {
public:
int size() const {
return 0;
}
};
}
#endif
|
77f8b31916d357f99f1fc823ef0a71332001ec8e | 5b99a25bc85c6af7f32f1f2aada5432d44b8ec85 | /postscript-printer.cc | ce982a1e83196d0ed905d28578da0f634db57658 | [] | no_license | miloh/rpt2pnp | 8720a54a3e6d37231c6be4996c71ae3208c80392 | 80dcf0d8a565030b7ee52e4badb6df4032956d34 | refs/heads/master | 2020-12-27T21:33:09.725185 | 2015-05-11T02:37:47 | 2015-05-14T07:24:59 | 24,577,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,157 | cc | postscript-printer.cc | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
* (c) h.zeller@acm.org. Free Software. GNU Public License v3.0 and above
*/
#include "postscript-printer.h"
PostScriptPrinter::PostScriptPrinter(const PnPConfig *pnp_config) {
// TODO: read config.
}
void PostScriptPrinter::Init(const Dimension& b... |
029ae01ff546b5e161f3c4cace69ce8525f5b890 | f17c6f92ba38d56c002111e29004173f304c8b13 | /2020_data/SPOJ DCEPC505 - Bazinga!.cpp | fdf080c8b3a3670750c8355c9f560c5bdb757057 | [] | no_license | princegup678/DSA | 6104cf3ae2aee721937148b269edd45960577986 | a1b0c3988c180205ce2eac48a547e0849bc1fc74 | refs/heads/master | 2023-08-19T12:51:31.899218 | 2021-10-11T13:59:36 | 2021-10-11T13:59:36 | 416,814,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,876 | cpp | SPOJ DCEPC505 - Bazinga!.cpp | #include <bits/stdc++.h>
using namespace std;
vector<bool> sieve(int n)
{
//int n=100000000;
vector<bool> v(n+1,true);
v[0]=v[1]=false;
for(int i=2;i*i<=n;i++)
{
if(v[i]&&i%2==1)
for(int j=i*i;j<=n;j+=i)
{
v[j]=false;
}
}
return v;
}
vector<in... |
005758efbf2478b67580e1b94660fec2ec2d845b | b4c21ad54858a7103d5cb0624a1a4237447ef1d5 | /nonstaticBody.cpp | c9038dbfa16141b8e9535db2cc9c9994befe35e2 | [] | no_license | courtney-snyder/PA_9 | b81a40fdb3e67a985e3dcfb842ec7ac52b428c54 | d5ecd61cc05f3b11d77599915c8b757b8e7aeb6d | refs/heads/main | 2021-01-01T04:30:41.370325 | 2016-04-26T00:33:58 | 2016-04-26T00:33:58 | 56,183,937 | 0 | 0 | null | 2016-04-27T19:04:24 | 2016-04-13T20:30:12 | C++ | UTF-8 | C++ | false | false | 1,696 | cpp | nonstaticBody.cpp | #include "Body.h"
nonstaticBody::nonstaticBody(double initMass, double initRadius, double initxPos, double inityPos, double initxVel, double inityVel): Body(initMass, initRadius, initxPos, inityPos, initxVel, inityVel)
{
//Invokes the Body constructor
}
nonstaticBody* nonstaticBody::getBody(int i, Universe &map... |
50f67c3ebbdd40fd614b65c56cd7a0a67327675f | 71cbc64910807ceab826a6c54e0fea8d96104506 | /TerrainEditor/BrushDlg.h | 9e87b02e751738a88e0c1caf5eb9d15b67888f8d | [] | no_license | adrianolls/ll | 385580143dfc2365428469a51c220da08bfea8ec | 9c7d480036b1e6f1e3bdffe93b44bd5c70bd944a | refs/heads/master | 2022-12-26T07:06:13.260844 | 2020-09-16T04:36:17 | 2020-09-16T04:36:17 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,529 | h | BrushDlg.h | #pragma once
#include "afxwin.h"
// CBrushDlg 对话框
enum EEditorLerpType
{
EELerp_None=0, //无插值
EELerp_Linear, //线性插值
EELerp_Cosine, //cos插值
EELerp_Quadratic, //二次插值
};
enum EEditorShapeType
{
EEShape_Circle=0, //圆形笔刷
EEShape_Quad, //方形笔刷,具有内外两个Quad
EEShape_Line, //线型笔刷,
EEShape_Plane, //平滑笔刷
EEShape_Typ... |
2cc75dc6eb8bf594d3582cbdb474bcfaead368b3 | 30ead03a922a924f93b01216f55e68138119111e | /Main/GameSources/PlayerAnimationState.cpp | a123483d9653537deed0505b91ef329f94ded6a0 | [] | no_license | Suzufumi/CopyRobot | 8e954b71ee6d4661ef2b18bc3dc265fdcde3c009 | 304be6d525cb862104ecb615cddbb6b2beb19a02 | refs/heads/master | 2022-01-15T06:38:36.980071 | 2019-07-22T10:23:41 | 2019-07-22T10:23:41 | 198,194,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | cpp | PlayerAnimationState.cpp | #include "stdafx.h"
#include "Project.h"
namespace basecross
{
IMPLEMENT_SINGLETON_INSTANCE(PlayerDefaultAnim)
void PlayerDefaultAnim::Enter(const shared_ptr<Player>& Obj)
{
Obj->GetDynamicComponent<SmBaseDraw>()->ChangeCurrentAnimation(L"Default");
}
void PlayerDefaultAnim::Execute(const shared_ptr<Player>& ... |
a84bc4c52993565f47c47218d142d40f3fb26f4d | 68e2b2397f5efd7713c500ff0e0bd01df66aff7e | /es_Shred_2-42b/src/both/es_basegame.cpp | 6231c32683287903d84495c83b3e3d4b769a2888 | [] | no_license | ericeps/shred2 | ab9605a731e3fb9936dd870f8a9d263dc1ed2f13 | ef3ac878d93597451b55b0156a3433376ce2d12d | refs/heads/master | 2021-01-01T20:44:51.577571 | 2017-07-31T20:36:10 | 2017-07-31T20:36:10 | 98,925,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | cpp | es_basegame.cpp | #include "es_basegame.h"
#include <list>
#include "es_qtgl.h"
#include "es_gamework.h"
#include "chooseGame.h"
#include <iostream>
#include <QObject>
#include <QPushButton>
es_basegame::es_basegame(chooseGame* Ch){
GameOn=0;
myID = 1;
myName="Default name";
myChoose = Ch;
}
void es_basegame::setmyID(unsigned ... |
a08a1053e23b612f5956c5271491aa40e2a82722 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/new_hunk_8363.cpp | 42ec9ffbb9edde681d2f9c8ba4af440d878259df | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | cpp | new_hunk_8363.cpp |
return val
def system(cmd):
if not silent:
sys.stderr.write("executing %s" % cmd)
if os.system(cmd) != 0:
die("command failed: %s" % cmd)
def p4CmdList(cmd):
cmd = "p4 -G %s" % cmd
pipe = os.popen(cmd, "rb")
|
3266fe61124fda207c5251672cb37b363580dd31 | 832e4ef096497bfcf0ec73810e8fe4d96f22c09c | /Topics/01_Encapsulation/01_X1_Evolution/cpp_source/evo2.cpp | 2152cf44d44316d66cfeb8aa8855efe0f229f408 | [] | no_license | topherCantrell/class-oop-pcs | 87321f7d81f88c015298e582c5202078d0437937 | 52fbc1b2f5e743a390d989b07645a781dc877e2b | refs/heads/master | 2022-06-21T20:32:00.645374 | 2022-05-28T16:39:31 | 2022-05-28T16:39:31 | 160,970,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,405 | cpp | evo2.cpp | #include <iostream>
#include <string.h>
using namespace std;
class Account {
public:
char name[12];
char address[20];
int phone;
double balance;
public:
virtual void chargeFee(double fee) {
balance = balance - fee;
}
virtual void withdraw(double amount) {
cout << "In Base"... |
91565cc3b68dc7aea9eba88655c0c9b0095ea300 | 9cb1333affec0040fe2c8e08dc70eef7d1bcdf07 | /include/iterator.hpp | 4b9d7a7938ba802601af6156d600b8dce7890bb3 | [
"MIT"
] | permissive | tud-ccc/mpsym | 7e71ee7ae0a04a997724b7ea94e400e6fa4d5fae | 2a2b35d3cd4260edb1224dd781e1230bb33918c9 | refs/heads/master | 2023-03-12T03:44:43.929956 | 2021-03-04T11:41:02 | 2021-03-04T11:41:02 | 319,962,156 | 0 | 0 | MIT | 2020-12-10T10:25:36 | 2020-12-09T13:17:49 | null | UTF-8 | C++ | false | false | 2,084 | hpp | iterator.hpp | #ifndef GUARD_ITERATOR_GROUP_H
#define GUARD_ITERATOR_GROUP_H
#include <iterator>
#include <functional>
#include <type_traits>
namespace mpsym
{
namespace util
{
template<typename T, typename V, bool COPY = false>
class Iterator
{
public:
using value_type = typename std::remove_const<V>::type;
using pointer = V... |
71e18dcddbde9698a7e46b4cf62afc53da9d0757 | 729ed062396d6ac8ad109061a47ff70c135e8569 | /serializer/touchySerializer.h | 2b8ac2f11bf44145433aff93701da71d5dae5eea | [] | no_license | mean00/touchscreen | d777990869f826b58fa197138efbdda896fb1c08 | a0a9b2fb64a17f9184e516345fc1c3815b537f24 | refs/heads/master | 2021-04-28T13:50:58.826767 | 2018-03-05T14:12:05 | 2018-03-05T14:12:05 | 121,950,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | h | touchySerializer.h |
#pragma once
#include <string.h>
/**
*/
class Serializer
{
public:
static bool serialize(char *out,const char *kind, const char *name);
static bool serialize(char *out,const char *kind, const char *name,const char *one);
static bool serialize(char *out,const char *kind, const char *name,const char *one,... |
e8059ba3191fa69a29a5f39a7c2a81c0c30380b2 | defc8d6bc71ee164b065a9c5f328ebaea9d377c6 | /id1022/main.cpp | 94500b2e4618f80e7944dae46a0847bb4e3f84b0 | [
"Apache-2.0"
] | permissive | adogadaev/timus | 7d9019095ebc2d2a6aba3e34357e9fbca1972b16 | eeadeb3ac60b7259988fe579422d386b95c4ca9d | refs/heads/master | 2021-05-04T10:39:58.646095 | 2020-06-19T17:33:17 | 2020-06-19T17:33:17 | 52,099,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,538 | cpp | main.cpp | #include <iostream>
#define UNKNOWN_ANCESTOR -1
#define UNKNOWN 0
#define PROCESSING 1
#define FINISHED 2
#define xDEBUG
using namespace std;
typedef struct
{
int discov;
int finish;
int state;
int ancestor;
int id;
} Vertex;
void dfs_visit(int vnum, int** g, Vertex *vertices, int cur_v, int &time)
{
vertice... |
f61d24780bf6443bb429435816f8c05043c4d895 | abe9b3f29fc6f1bbf45fac31ed3168ada2b149bc | /EntityComponent_Project/ColisionComponent.cpp | fbed57ee80fee7e81e887ce06eca51ab81d7827a | [] | no_license | AndrewAndrewsen/EntityComponent_Project | 6e7798c8231bfc7438cdb387b1ed64065fa81b7c | e1fcdbd9e566bf091b99e5e5ac728086c4fa4d16 | refs/heads/master | 2021-08-23T06:17:28.819592 | 2017-12-03T21:15:37 | 2017-12-03T21:15:37 | 112,878,108 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | ColisionComponent.cpp | #include "ColisionComponent.h"
#include "Entity.h"
void ColisionComponent::update(float deltaTime, sf::RenderWindow *window)
{
if ( _parent )
{
MovableComponent* comp = dynamic_cast<MovableComponent*>(_parent->get("MovableComponent"));
SpriteComponent* compSprite = dynamic_cast<SpriteComponent*>(_parent->get("S... |
1ef5d1f254574ddff8c3cd964243fae4e6cb8b68 | 1b33f91d0923e5f4f218dd2cfa81716314d97a88 | /Test_stage/App/Il2CppOutputProject/Source/il2cppOutput/GenericMethods6.cpp | b4772be967cfde1152ef5c979b503c7e6901beda | [] | no_license | EvanBlondeau/OBDII_Android | 139d1a4aa6a7ef5a3e0aafced3eadb311f9451d2 | f82669630bb29ab8ca0e23560f0d72baec024ab5 | refs/heads/master | 2021-07-08T08:29:08.676667 | 2020-09-23T13:09:46 | 2020-09-23T13:09:46 | 195,398,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,131,824 | cpp | GenericMethods6.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... |
53a92c6e9b677f6ff64fae8eed8b564fa3da7ada | 8d8047a5623675dcdadb34869c40cb3de026ebcd | /src/igs_resource_tree_of_hwnd_win.cxx | cd1ed8371a568b550535f59de220fef42f0edd99 | [
"MIT"
] | permissive | emanofu/lib_win32_linux_util | bb87b4aabbc0abbeaabaa416b60d6aaab0460c65 | 3b6066337de791f1cdb8fbc827ce7709969e6b3a | refs/heads/master | 2020-06-04T12:48:25.972754 | 2014-12-25T06:50:02 | 2014-12-25T06:50:02 | null | 0 | 0 | null | null | null | null | EUC-JP | C++ | false | false | 6,715 | cxx | igs_resource_tree_of_hwnd_win.cxx | #include <windows.h>
#include <stdexcept> // std::domain_error()
#if defined DEBUG_IGS_RESOURCE_TREE_OF_WHND_WIN
# include <iostream> // std::cout
# include <iomanip> // std::setw()
#endif /* !DEBUG_IGS_RESOURCE_TREE_OF_WHND_WIN */
#include <vector>
#include "igs_resource_msg_from_err.h"
namespace {
struct pair_tree... |
eaf9585a2254700e7e8ababe19ac40fc8b545828 | 5610d502f019f23c7c12acac44b36a1ab068c054 | /proizvodcifara.cpp | 07ea3925440b16d5f659770be2ce415a70d4dff3 | [] | no_license | elvircrn/ccppcodes | 7f301760a1cbe486f3991d394d5355483fbf27dd | b5d72b875b5082042826c86643d6f5e47ab2d768 | refs/heads/master | 2021-01-01T05:46:37.476763 | 2015-10-14T17:47:57 | 2015-10-14T17:47:57 | 44,265,359 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,351 | cpp | proizvodcifara.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
bool prime = 1;
unsigned long long int cnt, sol;
int fin [10];
long long int fast_pow (long long int x, long long int m) {
long long int r = 1;
if (m ... |
5c6bef73a6f37e1c60b98eb42e3ae5c6f7cff8f7 | 0b44be610de6cdc96d908d96b1106c52802ed374 | /code/group2/ljr/Visitor+Command+Strategy+Delegate/Visitor.h | 0061b1169d79ccbb16f91196b3b493d74cf014f0 | [] | no_license | DOGGY-SAINT/designPatternClassDesign | 1daa43fa3162d309bdec9e2e87366845adf96c7e | 4dfbd073567227188ecf4aadde849cf1b278fc56 | refs/heads/master | 2023-01-19T11:32:03.013166 | 2020-11-25T07:14:22 | 2020-11-25T07:14:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | h | Visitor.h | //
// Created by iMbaGong on 2020/11/12.
//
#ifndef VISITOR_VISITOR_H
#define VISITOR_VISITOR_H
#include "Element.h"
class Element;//超前引用问题
class Visitor {
public:
virtual void visit(Element* element)=0;
};
#endif //VISITOR_VISITOR_H
|
e04d8f7fef1669fcad0716bd84240be1e087de1b | 37d2ee6d620be01d97c20c1dcb5a94ade16ed31e | /4-3.cpp | 7143c8bdc7d6bf641837caba5f526187e8be9f7b | [] | no_license | zjpjack/careerup150 | 98c50647fc060dddb7851383457e576eebd140bd | a081a4a10ad5fc611b634169724722991b41df0c | refs/heads/master | 2021-01-09T05:53:24.370477 | 2014-08-10T16:21:18 | 2014-08-10T16:21:18 | 22,812,868 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | cpp | 4-3.cpp | #include <iostream>
#include <queue>
using namespace std;
class TreeNode{
public:
TreeNode* left;
TreeNode* right;
int val;
TreeNode(int x):val(x),left(NULL),right(NULL){}
};
TreeNode* BST(int* A,int st, int ed){
if (st>ed){return NULL;}
else{
int mid = st+(ed-st)/2;
TreeNode* node = new TreeNode(A[mid... |
7f6fba0c0dbb79750f473fc5ab5169054807700d | d20790dd54a77affcd1002a795875d281a617999 | /C++0c061400.cpp | f42f4d354f527b7eb9b04f93e0a07e6daca4c6bb | [] | no_license | Luckily777/C- | c2665941019c0c66ccb57091ff3ab9745c4a42f8 | 4422abbb8f308af944b36e4b45ec52178b839dd7 | refs/heads/master | 2021-05-17T21:10:32.319556 | 2020-09-21T12:11:18 | 2020-09-21T12:11:18 | 250,953,705 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,035 | cpp | C++0c061400.cpp | //栈和队列的oj题
155. 最小栈
class MinStack {
private:
stack<int> St;
stack<int> minSt;
public:
/** initialize your data structure here. */
MinStack() {
}
void push(int x) {
if (minSt.empty() || x <= minSt.top()) {
minSt.push(x);
}
St.push(x);
}
void pop(... |
4acf4fd6e1f467beaf9f28bb5288d0ec2beb4afc | 689796028bfa89e10d8b900f0012c20cbcc681df | /include/heimdall/interaction.h | 7961ee33a872d11c2cfa012dce921d2de3019f53 | [] | no_license | adamleighfish/heimdall | ab7d995e611a9d5aa8965b0bab0b259e8346fd4b | fbbc0caa362e8c17db03f34cf8df797edf6221e5 | refs/heads/master | 2021-05-09T05:27:55.631797 | 2018-02-12T14:19:06 | 2018-02-12T14:19:06 | 119,308,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | h | interaction.h | #pragma once
#include "heimdall/common.h"
#include "heimdall/geometry.h"
#include "heimdall/shape.h"
HEIMDALL_NAMESPACE_BEGIN
/**
* \brief Interaction class declarations
*/
class Interaction {
public:
/// Interaction public data
Point3f p;
Normal3f n;
Vec3f error;
Vec3f wo;
float time; ... |
c21e774318af4c8432bce938070d643ee0ad92a9 | ced2b83ef7cc267792e8014aed7dc90f21ce9899 | /hiho/hiho_w246_p1.cpp | 5b906989c0db15fd4761964a3b07129028394307 | [] | no_license | cypress777/oj | 4f380dd84ed3b7f398dfc6ad0c254cab1adfd1a3 | 80062f6969162dbf11634ccfceb502dbc6874531 | refs/heads/master | 2022-03-10T17:32:13.664052 | 2022-02-23T11:04:26 | 2022-02-23T11:04:26 | 144,862,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,666 | cpp | hiho_w246_p1.cpp | #include <vector>
#include <iostream>
#include <bitset>
#include <algorithm>
using namespace std;
int len;
int MM = 20010;
struct Query {
int id, l, r;
Query() {};
Query(int id_, int l_, int r_) : id(id_), l(l_), r(r_) {};
};
bool comp(const Query &a, const Query &b) {
if (a.l / len != b.l / len) re... |
d4a850c9f229de5a7f6be813f1d536d10d84c701 | 3febdac3fbc009bbf2e5912e55f59efd4dc45a9f | /Math/Vector2.h | 8c3a85c11a72fc9476f9f5a137d43995d67e1adc | [
"MIT"
] | permissive | TaylorClark/PrimeTime | 95f440451434ded07c5dbd6008f03a3c21fcf66f | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | refs/heads/master | 2021-01-01T17:20:56.420438 | 2017-07-23T01:30:49 | 2017-07-23T01:30:49 | 98,057,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,779 | h | Vector2.h | //=============================================================================
/*!
\file Vector2.h
Taylor Clark Math Library
2-Dimensional Vector
By Taylor Clark
This header contains the declaration for the 2D vector class.
*/
//=============================================================================
#pra... |
e3a8fee08776350672a14bd1a5899bd6424f7e07 | 334eeda8133d36e02e7af971999d3b5f89c8782b | /micron/editctrl.h | fe8b77e1dca831097d491db33b298bbbb589cb49 | [
"MIT"
] | permissive | mikekov/RegExTester | f5fa8a1164c963d0ef0f1c43b93ecde1fba2f4b8 | e2332df3f216816eed9d30b09378451d2084a089 | refs/heads/master | 2021-01-21T10:12:38.747848 | 2015-08-02T21:01:43 | 2015-08-02T21:01:43 | 40,091,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | h | editctrl.h | #pragma once
#include "wincore.h"
namespace mcr {
class CEdit : public CWnd
{
public:
CEdit();
// BOOL Create(DWORD style, const RECT& rect, CWnd* parent_wnd, UINT id);
// BOOL CreateEx(DWORD ex_style, DWORD style, const RECT& rect, CWnd* parent_wnd, UINT id);
//int GetItemCount() const;
void R... |
048c77d0b3c4f8655ea1bdd0429fdd7a4c984b1c | 2ae76ae8fbefd21f69658aff9e4463281daae958 | /pre_requis/MEDCoupling/MEDCouplingMultiFields.hxx | 3cf018017ceeaf9fc2efbc723b1382a2ce170c6a | [] | no_license | arthurtalpaert/CDMATH | abc50c48032e91e8f443bfcef7216f7f5080cf91 | d749a4a6f838cb2026f1120684db27946394cb50 | refs/heads/master | 2021-01-15T17:20:18.631514 | 2015-11-24T14:20:44 | 2015-11-24T14:20:44 | 32,407,536 | 1 | 0 | null | 2015-03-17T17:00:58 | 2015-03-17T17:00:58 | null | UTF-8 | C++ | false | false | 4,125 | hxx | MEDCouplingMultiFields.hxx | // Copyright (C) 2007-2014 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This ... |
93f7a5cf3d95e171a56639c79f63b936ead4fd7e | 650f56b7a24797f8589efe821b1c1e8c42a9199f | /src/prediction/t_models/CMovAvg.cpp | 44acd755493b22b41430ab709314eb3a270712e6 | [] | no_license | dvorael1/stroll_bearnav | 760d718ceb9d1c7be42483781641d03a7b96664f | b4438bda1281f8b516878cca2bda968fdddc0c4e | refs/heads/master | 2021-07-11T08:07:28.934389 | 2019-02-23T01:51:58 | 2019-02-23T01:51:58 | 106,136,036 | 0 | 0 | null | 2018-05-07T15:10:05 | 2017-10-07T22:59:30 | C++ | UTF-8 | C++ | false | false | 2,849 | cpp | CMovAvg.cpp | #include "CMovAvg.h"
CMovAvg::CMovAvg(int idd,float param)
{
tau=(unsigned int) param;
id = idd;
order = 0;
firstTime = -1;
lastTime = -1;
max_dif = -1;
measurements = 0;
type = TT_MOV_AVG;
}
CMovAvg::CMovAvg(string f_id,float param){
tau=(int) param;
if(tau<=0){
tau = 60*60*24;
}
fid = f_id;
order = ... |
b8b7ad0a810d0cdd9eb76c2c1b83ae3f10a0c995 | e76db99b4ad20ee874121dbdf01c002e5b164d27 | /模板/9_数学/5_矩阵类.cpp | 801cba311ecc646216767e874ce49901bbeaf515 | [] | no_license | cnissnzg/ACM-ICPC-Template | f75dba3c0dc8d0db97a4b471904b80140345784c | c0ee6e6b913f670c4acc0a4c684cc219fb94c36d | refs/heads/master | 2020-07-26T18:53:40.142396 | 2018-09-07T15:47:07 | 2018-09-07T15:47:07 | 208,738,038 | 1 | 0 | null | 2019-09-16T07:33:55 | 2019-09-16T07:33:55 | null | UTF-8 | C++ | false | false | 2,542 | cpp | 5_矩阵类.cpp | typedef long long mytype;
const int SZ=105;
const long long M=1000000007;
long long quickpow(long long a, long long b)
{
if(b < 0) return 0;
long long ret = 1;
a %= M;
for (; b; b >>= 1, a = (a * a) % M)
if (b & 1)
ret = (ret * a) % M;
return ret;
}
long long inv(long long a)
{
... |
92777dc29626587a748151a65fbcbcde944a816e | 913a56012739e40a17bb5309b40d5ef6971e28d5 | /Source/Runtime/Public/Render/RenderCamera.h | c62d69839f4c8b7d347cd798a48eebac7cabe8d9 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | davchezt/BlueshiftEngine | 4265b0bf4ef7a2dbd0d726977f0bae333d1025bb | fbc374cbc391e1147c744649f405a66a27c35d89 | refs/heads/master | 2020-12-05T22:42:44.353929 | 2020-11-28T22:37:08 | 2020-11-28T22:37:08 | 232,265,027 | 2 | 0 | Apache-2.0 | 2020-11-29T01:38:17 | 2020-01-07T07:10:48 | null | UTF-8 | C++ | false | false | 7,042 | h | RenderCamera.h | // Copyright(c) 2017 POLYGONTEK
//
// 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 i... |
7c970be7a15704d6554dbb15b2a64b249c2ea77a | 3ca79cbb6ff75a9a7b9c0f45a0214fa68d9a2b8e | /YDY_0607/man0623/ComboToolBar1.cpp | 49bc9d4d0206079b386cf2d8d04d6669515fdd20 | [] | no_license | QiYan1987/HubYZDprj | 9005e804c8806b618098a61abcec0f1908b9e110 | 9d87e67c3f2190ee15b5b460448d7b4cba8af08c | refs/heads/master | 2020-03-28T13:35:14.209972 | 2018-09-13T03:00:43 | 2018-09-13T03:00:43 | 148,408,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | cpp | ComboToolBar1.cpp | // ComboToolBar1.cpp: implementation of the CComboToolBar class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Wilson6.h"
#include "ComboToolBar1.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
////////////////... |
7e4c58a06bd87e30e2da4485f66ca0c9f74841be | b566266bc7e6cf45c6a10d3835f0456beeded652 | /Gamer.cpp | 210937088d7e9c93830b1c89a29d7c08c2de997b | [] | no_license | VladimirRepp/TicTacToeGameCppWinForms- | 8cc4185339656c2c41394d7ff69ebba48a185200 | edfd8fd32fb5740bb0dbde679fa22c2e4df59efe | refs/heads/main | 2023-03-06T20:24:52.074250 | 2021-02-18T04:28:47 | 2021-02-18T04:28:47 | 339,927,245 | 0 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 241 | cpp | Gamer.cpp | #include "Gamer.h"
void Gamer::SetField(GamerStatus mode, int m)
{
if (mode == 0)
status = Computer;
else if (mode == 1)
status = Player;
else if (mode == 2)
status = Player1;
else
status = Player2;
mark = m;
}
|
7d0e64c76c1ac9ec1f6c6a104317d1420c95f8df | cd5c3cde902daa02417c0a2849d74aa892215817 | /104 A.cpp | 45c3e19695daef2a78a8ee5418df1a111e45e7bc | [] | no_license | mohsin-riad/codeforces-solutions | 4ec7532a810057fdefd9fc9687417f2ca3a6abc2 | 17be6c53d5d65bbecd41a1b15bf60064a92d1d6a | refs/heads/master | 2021-02-05T21:57:23.932930 | 2020-02-28T19:34:19 | 2020-02-28T19:34:19 | 243,839,034 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,782 | cpp | 104 A.cpp | /**
* Git >> Mohsin_Riad
░░░▄█████████████████▄
░░▐████▀▒██████████████▄
░▒██▀▒▒▒▒▒█████████▀█████
░▐██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████▌
░▐█▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████▌
░░█▒▄▀▀▀▀▀▄▒▒▄▀▀▀▀▀▄▒▐███▌
░░░▐░░░▄▄░░▌▐░░░▄▄░░▌▐███▌
░▄▀▌░░░▀▀░░▌▐░░░▀▀░░▌▒▀▒█▌
░▌▒▀▄░░░░▄▀▒▒▀▄░░░▄▀▒▒▄▀▒▌
░▀▄▐▒▀▀▀▀▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒█
░░░▀▌▒▄██▄▄▄▄████▄▒... |
1d17841de7f8461f2f2bcb7268c29f9fe7c92314 | e675422b69ebd2343747b57e3ead927f9fdf6a6e | /cppserver/source/ClothesChange_Common/DSSDK/include/ds_pool.h | 7359b6cc6238d15f010c2c73070aa206f8b7f184 | [] | no_license | xeonye/chinesehistory | 3b4bab9d4cc2c366d33051dd4a6c7209866873b1 | d8a9843efac06589db5eef3427bf71f84807f422 | refs/heads/master | 2020-03-19T09:16:00.535754 | 2017-10-12T13:17:35 | 2017-10-12T13:17:35 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,888 | h | ds_pool.h | /*
文件 :ds_pool.h
简介 :简单的池实现,DsPool用于线程内使用, DsPool_ThreadSafe是线程安全的用于跨线程的池
作者 :cuiyinjie
创建日期:2010/01/04
版权所有(C) 2009-2010 竞秀天下(北京)科技有限公司
最后修改日期 修改者 修改内容
---------------------------------------------------------------------------------------------
-------------------------------------------------------------... |
3709baaf8cb684373469cbc1ea541d58f77489d5 | 432cd5e621273c54039271baa8454d844573681f | /src/gui/src/page/area.cc | 308ba7fe2e982b779a60e720ffcefd6f8032b885 | [] | no_license | kava-i/Der-Zug | b5ed2b01e4fe305011089ea8bc7e8aa47b7984d6 | 32773a9de149f4f94602d444eb9d4f4d0dee58d3 | refs/heads/master | 2023-07-21T19:00:33.815087 | 2021-05-20T14:31:31 | 2021-05-20T14:31:31 | 236,531,832 | 1 | 0 | null | 2021-05-20T14:31:32 | 2020-01-27T16:09:38 | C++ | UTF-8 | C++ | false | false | 8,010 | cc | area.cc | #include "area.h"
#include "nlohmann/json.hpp"
#include "page/category.h"
#include "util/error_codes.h"
#include "util/func.h"
#include <cstddef>
#include <exception>
#include <iostream>
#include <math.h>
#include <string>
Area::Area(std::string base_path, std::string path, nlohmann::json objects)
: Page(base_path,... |
6047be8daff5071424b00add424d1e46e7906b05 | 42ed875464d2dc24dfce32d435b089c8982e1eb2 | /Main.cpp | c4dd925b166c395f0c435e63b7478dabc349dc1f | [] | no_license | Benjamin-Russell/Spoose-Invooders | b9e8fc6d2a85016ecfbba14bd249651e30b97a25 | 7fe13dccf2043eb726fe0686824ec97783b64f5a | refs/heads/master | 2016-09-01T06:30:41.343194 | 2016-03-18T02:44:00 | 2016-03-18T02:44:00 | 54,152,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | Main.cpp | #include <iostream>
#include <SDL.h>
#include "Game.h"
#include "GraphicsSystem.h"
#include "GraphicsBufferManager.h"
#include <MemoryTracker.h>
// SDL Tutorials http://lazyfoo.net/SDL_tutorials/lesson02/index.php
// A Warning that sometimes pops up: deafultlib 'msvcrt.lib' conflicts with use of other libs; use /NO... |
0ccb30d8d3f9070d6d059b4c3dd3fd79a6269e59 | 84b592861d417f12e680d99d64cd3435658fbb5f | /LeetCode/463.cpp | 3f8717fda04035e7546436783e760d78070f15a5 | [] | no_license | silencious/OnlineJudge | e837a3e65333732d688dcdc17122b002808ace67 | e5ec9266651a12b73049258126bed8746a0c8427 | refs/heads/master | 2021-09-06T15:17:41.572188 | 2018-02-07T23:47:10 | 2018-02-07T23:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | 463.cpp | #include <vector>
using namespace std;
class IslandPerimeter {
public:
int islandPerimeter(vector<vector<int> >& grid) {
int r=grid.size(), c=grid[0].size(), ret = 0;
for(int i=0;i<r;i++){
for(int j=0;j<c;j++){
if(grid[i][j]==1){
ret+=4;
if(i+1<r&&grid[i+1][j]==1) ret-=2;
if(j+1<c&&grid[i][j... |
43a81f3e9ede74da8a9e2cf5a810042c365150d9 | 0cdea8492eb20563cff3786493a9769d94cc6208 | /includes/win/ia32/ExchangeAL/ManagerExchange.h | 733f5dfde0e1a5f535fce2d680f5340da5a8b86a | [
"Apache-2.0"
] | permissive | signhuwei/node-jvt | 2e443415cbe60b5043c1a8362ad346059d3d8290 | b8e7e0624fa63e2ceb37f85873c68882c245d152 | refs/heads/master | 2020-05-01T00:36:54.182604 | 2019-04-18T03:14:38 | 2019-04-18T03:14:38 | 177,172,194 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,646 | h | ManagerExchange.h | //
// "$Id: ManagerExchange.h 18544 2015-12-01 12:03:11Z chenbo $"
//
// Copyright (c)2008-2010, ZheJiang JuFeng Technology CO.LTD.
// All Rights Reserved.
//
// Description:
// Revisions: Year-Month-Day SVN-Author Modification
// Modify: 2008-12-03 liwj create the file
//
//
#ifndef __EXCHANGEAL_MANAGER_EX... |
5bf9b70ef87366d2366dda0b6748253d8ed7145c | 91971732033d69414cb6acdcf471c2862483679c | /kernel/thor/arch/x86/pmc-intel.cpp | a2cadccf01df4aa772600ff25cf73ef18fe89c62 | [
"MIT"
] | permissive | managarm/managarm | d94e5bab607e36df458213984876fafc4575b184 | f274d8d531f7f083284c0681ac065db1e467256f | refs/heads/master | 2023-09-04T08:07:06.523632 | 2023-08-29T22:26:04 | 2023-08-29T22:26:04 | 63,081,862 | 1,261 | 87 | MIT | 2023-08-29T22:26:06 | 2016-07-11T15:57:53 | C++ | UTF-8 | C++ | false | false | 2,452 | cpp | pmc-intel.cpp | #include <x86/machine.hpp>
#include <thor-internal/arch/pmc-intel.hpp>
namespace thor {
enum class IntelCounter {
none,
fixed0, // Instructions retired.
fixed1 // Clock cycles.
};
static IntelCounter whichCounter = IntelCounter::fixed1;
void initializeIntelPmc() {
// Disable all fixed performance counters.
com... |
3eb504ac545991f8e0375f1eaff40af04bcf5c30 | 570a21c39b9af163ef0793c149b83f6a302bd84c | /folly/io/test/IOBufBenchmark.cpp | d50261dba62a18345d8d2e132eff3c12019e6745 | [
"MIT",
"Apache-2.0"
] | permissive | facebook/folly | 544d17b45bda70c51ba593f920e0200bde177927 | ab45d9b6a7a2a24b2a725447387f36772dd2cc4a | refs/heads/main | 2023-08-17T10:31:22.589640 | 2023-08-17T09:29:35 | 2023-08-17T09:29:35 | 4,524,181 | 23,991 | 5,805 | Apache-2.0 | 2023-08-23T18:23:26 | 2012-06-01T20:49:04 | C++ | UTF-8 | C++ | false | false | 6,368 | cpp | IOBufBenchmark.cpp | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
f63f82eab67de51da27b0f13ce5ea5a0ef211f1b | d0000e9d85c0073b3a86015499c5bbdd1a7d2b74 | /Graphics/JetCat/messagebox.h | 7110d433f9dc8c76028a40867a58ad8271823193 | [
"MIT"
] | permissive | YemSalat/jetcat | e344006a25f945442e3efb67578fcbb24412786a | 6fffb814759bb7e46a9967e2c6226df3a1a0eb91 | refs/heads/master | 2020-12-24T18:23:07.639979 | 2016-04-20T13:40:24 | 2016-04-20T13:40:24 | 56,689,224 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,485 | h | messagebox.h | #ifndef __MESSAGEBOX_H__
#define __MESSAGEBOX_H__
#include "drawable.h"
#include "label.h"
#include "window.h"
#include "placement.h"
#include "buttons.h"
#include "inputs.h"
#include <map>
namespace Componentality
{
namespace Graphics
{
namespace JetCat
{
class MessageWindow : public ModalWindow
{
pr... |
8cec2f482c73ac0d0851e45e92c77407079bde0e | f97a3912a645741773189e13ae0958ac5e80b17b | /basic/eOlymp-982.cpp | 2d781e4c90c5c4c9e43071650936436b97de8522 | [] | no_license | abdulmukit98/code | 96ea376d2528761929c7f16fb6b2e46b5606d21c | d586e42dfedd6a8b0a0d799f7a39aa29272e6824 | refs/heads/master | 2023-02-27T18:43:17.666963 | 2021-02-08T15:37:21 | 2021-02-08T15:37:21 | 292,541,503 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,139 | cpp | eOlymp-982.cpp | //problem description
//https://vjudge.net/problem/EOlymp-982
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define null NULL
#define pi acos(-1)
void dfs(int node);
vector<int> adjacent[107];
bool visited[107];
int counter;
int main() {
/*
EOlymp-982 connectivity
*/
count... |
74bd579817af6cfa98adc1590b1db3ed73b83989 | 47f1b172aa4bf82afed7956742611b35983a24aa | /t3-venus/umcweb/include/sipserversetLogic.h | a9de639fadd0a3016ce5ed863e83e287a4efab38 | [] | no_license | github188/TPS | 92e4a822bd51e5d9f0cb8df9c3d85f2ca9bb958f | b45510bc37837feda19733bec9d3d821e9fc787a | refs/heads/master | 2020-06-19T11:27:51.643398 | 2019-07-12T09:51:04 | 2019-07-12T09:51:04 | 196,691,872 | 0 | 1 | null | 2019-07-13T07:24:30 | 2019-07-13T07:24:29 | null | GB18030 | C++ | false | false | 2,840 | h | sipserversetLogic.h | /*****************************************************************************
模块名 : CSipServerSetLogic
文件名 : sipserversetLogic.h
相关文件 :
文件实现功能: umcweb SIP服务器设置模块
作者 : 刘德印
版本 : V1.0 Copyright(C) 2012-2013 KDV, All rights reserved.
------------------------------------------------------------... |
e6adf976a77230bf47852ee0863b2f8fc225b84a | c9ade6acd6fb8e7ba040ee12b4aa81b2f086b12a | /HW4/Candy.cpp | 1e12980e398622614319db943bd0d2c30c8bdb9c | [] | no_license | CalvinL15/Algorithm-Design-and-Analysis-Fall-2018 | 517063befffd6876b20834f53b06ba2450e7c420 | 88f72fac13a1dfdc519d24fc42995e2ad8293794 | refs/heads/master | 2021-06-24T13:53:31.822852 | 2021-04-16T17:19:14 | 2021-04-16T17:19:14 | 217,980,392 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,730 | cpp | Candy.cpp | #include<stdio.h>
#pragma optimize ("O3")
#include <unistd.h>
//ref: https://www.geeksforgeeks.org/m-coloring-problem-backtracking-5/
//ref: travelsciencetech.blogspot.com/2012/10/graph-coloring-problem-with.html
const int kBuf = 131072;
inline char Readchar() {
static char buf[kBuf], *p = buf, *end = buf... |
4e4ae340fe6447ab0a039ef988dac233ccdc933b | 6efe859757d37f5f20693c5e47508f4c6fcf3666 | /uhunt/907.cpp | cb9eefe0698b649deae010ff4f51677e5d008b74 | [] | no_license | uvafan/ICPC_Practice | 6665309b05937f9980a69a342eb917d793d415ae | 3b6d84bacc0a72d18cc4ba5a2b0e7478b6eb6fc5 | refs/heads/master | 2021-07-06T15:08:46.299846 | 2019-04-01T22:29:42 | 2019-04-01T22:29:42 | 104,101,562 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | 907.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
#define pb push_back
#define INF 1000000000
int memo[602][301];
int adjMat[602][602];
int N;
int go(int cur, int days_left){
if(days_left<0) return INF;
if(cur==N-1) return 0;
if(memo[c... |
b19849332336c3f93e6f10afcb59bf5802d121cc | 5729313ac93d66de9f10ebb1254e1bc28868c48d | /boj/not_classified/bj1193.cpp | 888e691df260493353f4ab0efe9d0e799d7878f4 | [] | no_license | DagonLee/Coding-Test | e6d3848a70ff09b5b36e6ea1e42b2fc65f68ed3f | 23d5df13de408af463c70564727a5dc174ce8448 | refs/heads/master | 2023-03-15T06:08:46.024843 | 2021-03-12T13:44:03 | 2021-03-12T13:44:03 | 291,209,789 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | cpp | bj1193.cpp | #include <iostream>
using namespace std;
int main()
{
int n;
int cnt;
int sum;
int seq;
cnt = 1;
sum = 1;
cin >> n;
while(1)
{
if(n <= sum)
break;
sum = (cnt + 1) + sum;
cnt++;
}
seq = n - (sum - cnt);
if((cnt + 1) % 2 == 0)
{
cout << (cnt + 1 -seq) << '/' << seq;
}
else
{
cout << seq <... |
d7e0d382540650d89bdf45eecbe468ddc2646ecf | 9290b3aaeb983491ce1220ea85b4fd69d7c2a3da | /Background.h | 71b76170fce3aeb67d8353d93c6833e43d6ace06 | [] | no_license | hyldmo/Innlevering3 | f54436adc7433fb587f8d562bdfed12c10ca0b31 | 7cac5b48fdf54f8e1f55c13c09b17221fca09a63 | refs/heads/master | 2021-05-30T11:26:49.109112 | 2015-12-20T20:41:25 | 2015-12-20T20:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 220 | h | Background.h | #pragma once
#include "GameObject.h"
class Background : public GameObject
{
public:
Background(int y);
~Background();
void Update(unsigned long deltaTime);
void Draw() override;
private:
int x1, y1, x2, y2;
}; |
2291ba747f08b2320e4fd0611e7b66717cde324c | e2d02917342633e0a4e098e93030a9a857ed3a29 | /AcceleratedCpp/Chapter12/Vec122.h | a6e27800a95de5f65b58fbd30f1ad40638a81124 | [] | no_license | dsocaciu/Books | 82e4d551afdb563ba68ae8a7f96700672309dacb | 6fcbd2f7ba663465efe3109aa0fb72f4ae129193 | refs/heads/master | 2021-01-11T17:43:26.326319 | 2018-01-10T15:09:09 | 2018-01-10T15:09:09 | 79,823,137 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,890 | h | Vec122.h | //Accelerated C++
//Chapter 12 Making class objects act like values
//Question 12-2
#include <memory>
#include <cstddef>
using std::allocator;
template <class T> class Vec{
public:
typedef T* iterator;
typedef const T* const_iterator;
typedef size_t size_type;
typedef T value_type;
typedef T& reference;... |
8e4ca7b8c98519a6484c8b52ec1f42f942f100e0 | 727a9a1d116cb6a368fb5de34fbff0b900c9196c | /Menu_Dessert_Drink.cpp | ca29d04dcf8d2228e2fd7a8cd450afd78e9fbbb9 | [] | no_license | kevinchristanto/ASG1-BOOTCAMP-DATA-STRUCTURES | 88e7648f182de3e35deda8c8b48886abf41e078c | 5bb5ff99b55c2ad39e46f718d345e1035ecba0ed | refs/heads/main | 2023-01-13T09:24:06.509049 | 2020-11-15T15:35:34 | 2020-11-15T15:35:34 | 312,187,085 | 0 | 2 | null | 2020-11-12T06:27:06 | 2020-11-12T06:27:05 | null | UTF-8 | C++ | false | false | 4,504 | cpp | Menu_Dessert_Drink.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX 1000
int strcmpInsensitive(char *topping), cookingTimeDessert(int time), cookingTimeDrink(char flavor[]); //Prototypes
void dessertMenu(), drinkMenu(), sleep();
struct dessert
{
char nameDessert[100], toppingDessert[100];
int price, c... |
6c25ab67de5188bfa9a3400956027a792ba6681b | d06904df7c6c810e9c4e0981b457356389a9e608 | /xml/core/from_handle.h | bcebab9cb97b6ac1bdd9a9769060438e31e2b761 | [] | no_license | ncahill-wegfliegen/gemeinsam | 6bfea5fa251b980c8d88b065102a48cd8d981a3e | 43df0630e2c2cc2148efa0b077e84d4ab853dde1 | refs/heads/master | 2020-06-26T01:55:26.720699 | 2019-11-15T20:09:30 | 2019-11-15T20:09:30 | 199,489,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,502 | h | from_handle.h | #pragma once
#include "../port.h"
#include "../../log/log.h"
#include "../../utility/enable_if.h"
#include "../../utility/type.h"
#include "../../../../other/TiXml2/tinyxml2.h"
#include <iostream>
#include <string>
namespace nhill
{
namespace xml
{
/// <summary>Extract the object value from the xml input handle.
//... |
8d2bc2be1341e825d64467c7834bd1b1a5de2246 | c6784e77edc90d6be76a5942c766c6a2a4040ddb | /funciones.cpp | a6279fc1c28e415058b8e5318c61bac898ddd11e | [] | no_license | jems89/Ejercicio-De-Produccion-De-Fabrica | 7d92e582dd53fa23b2fed01636e2b4839489c0ff | 788277e43f416debaff4db7645e08878060d22c1 | refs/heads/main | 2023-05-06T11:06:20.290094 | 2021-05-28T00:50:52 | 2021-05-28T00:50:52 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,380 | cpp | funciones.cpp | #include <iostream>
#include <stdlib.h>
#include <cmath>
using namespace std;
#include "funciones.h"
#include "Produccion.h"
/*1) Por cada máquina, la temperatura promedio en relación a la cantidad de días que
trabajó la máquina.*/
void TemperaturaPromedio(){
system("cls");
float AcumularTempera... |
09564c2470a443c8623dae8ae9de3a8c59cf93bb | cb82f1ddaabba4d410a95d51920aabc56c81dc4f | /interpolators.cpp | 73925666eb5dfe00fb02e887dcf0bfaa3e052ae7 | [] | no_license | maciejmroz/Optical | a699213a26ffb5a15b427f92a03062ae9e9ce6ad | cdaa22fa1614054388deb5e98c609ced4b5e74fe | refs/heads/master | 2021-01-01T18:17:55.797124 | 2013-12-27T13:37:35 | 2013-12-27T13:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,824 | cpp | interpolators.cpp | /***************************************************************************
interpolators.cpp - description
-------------------
begin : Fri May 5 2000
copyright : (C) 2000 by Maciej Mroz
email : mmroz@stu... |
855b950754b5db5052a27c7de92427461b490285 | 14d6eeba9a1444ca5906a460ff191355ef35ffc6 | /ch9/exer/7_library_main.cpp | 5c33527f3dba0fc3b7c59300e691b8999d47cc5e | [] | no_license | daninsky1/programming_principles_practice | e7e765d0483dc60e96202eb7c0c3ee495880231a | 19971a82c5e564a639c62f1ae6080d74b6c72a1d | refs/heads/main | 2023-06-15T20:13:51.371312 | 2021-07-15T20:01:56 | 2021-07-15T20:01:56 | 386,406,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | 7_library_main.cpp | #include "7_book.h"
int main()
{
Book emo_int{ISBN{111, 111, 111, "111"}, "Emotional Intelligence",
"Danitel Goleman", Genre::nonfiction, "September 27, 2005"};
Book prog_princ{ISBN{222, 222, 222, "222"}, "Programming: Principles and Practice Using C++",
"Bjarne Stro... |
0bb5ef868b2555c80d8194028d9da9be7bab3f19 | 5a8333bd502af816172e8c34c0ff356e4de7042a | /Source/XProject/XPlayerController.h | a4849c8dae4175fce7761675585cecbfe9b4be0c | [] | no_license | Mandey4172/XGame | c9e6ccb8b4b1f163df5e9899891b723f34441c50 | 936c346efa925204a9c30cec0b989feac212b0f9 | refs/heads/master | 2020-03-14T02:34:38.162428 | 2018-10-23T18:22:42 | 2018-10-23T18:22:42 | 131,401,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,818 | h | XPlayerController.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "XCamera.h"
#include "XItem.h"
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "XPlayerController.generated.h"
/**
*
*/
UCLASS()
class XPROJECT_API AXPlayerController ... |
3b84017705a98eeaa1f34abb19ca93b57640825b | 08693465b7f9b75dfe69af12ed265d4fac6d124d | /source/TwoAppr_depthSearch.cpp | b55cd79f5eba7d15d07d17b86ffb5e1c754254c2 | [] | no_license | agueguenou/CAA | 6bf6e86691f722c303b36fbeb2d16ce63ba24653 | eb9a2d9d19df65f83a396bfee183f1aac1eca623 | refs/heads/master | 2021-01-10T20:11:48.930656 | 2013-12-20T18:57:46 | 2013-12-20T18:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,893 | cpp | TwoAppr_depthSearch.cpp | #include "../include/Algorithmes.h"
#include <map>
#include <vector>
#include <stack>
#define WHITE 0
#define GREY 1
#define BLACK 2
using namespace std;
bool isColor(int vertex, int color, map<int, int> &vertexColor){
return (vertexColor[vertex] == color);
}
void colorVertex(int vertex, int color, map<in... |
366c60ca348034fdc451f0d8889aa4c52c301710 | 03a39f0b6ddd68c0ca0b6d75a571969c20c63996 | /pinpoint_common/trace.h | 6a4b14b96fcd306ed9a1fce5ac0b35d047fbfbb4 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yuslf/pinpoint-c-agent | 62233b42c4f377b8d544c0249959468c1805fb04 | 2daf037b5407ec5866517f2539a46e38dfc8d258 | refs/heads/dev | 2020-03-31T11:27:27.708852 | 2019-01-17T03:27:49 | 2019-01-17T03:27:49 | 152,177,410 | 2 | 2 | Apache-2.0 | 2018-10-25T03:12:53 | 2018-10-09T02:45:58 | C++ | UTF-8 | C++ | false | false | 14,472 | h | trace.h | /*******************************************************************************
* Copyright 2018 NAVER Corp.
*
* 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... |
a8703cfd363380956ceaa20c96b861e6edca9fd1 | 85455876309135778cba6bbf16933ca514f457f8 | /7500/7571.cpp | 98bc93c9acf6bea62d733f2277ee32eddfb675f5 | [] | no_license | kks227/BOJ | 679598042f5d5b9c3cb5285f593231a4cd508196 | 727a5d5def7dbbc937bd39713f9c6c96b083ab59 | refs/heads/master | 2020-04-12T06:42:59.890166 | 2020-03-09T14:30:54 | 2020-03-09T14:30:54 | 64,221,108 | 83 | 19 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | 7571.cpp | #include <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
int N, M, x[100000], y[100000], result = 0;
scanf("%d %d", &N, &M);
for(int i=0; i<M; i++)
scanf("%d %d", x+i, y+i);
sort(x, x+M);
sort(y, y+M);
for(int i=0; i<M; i++)
result += abs(x[i]-x[M/2]) + abs(y[i]-y[M/2]);
prin... |
4e42399d6a420bb51c8ae1a7173f9be68d0f1c59 | 493a07e839afbe0bfb631402b05e7d85a3ab44c1 | /GLPT/Physbox.h | 6a0243a5c8464fcdf88d5e22048e43cbad99f825 | [] | no_license | codeandkey/GLPT | 47752355cee11837412ed96b394b08909349a02a | 7d2122bddf6ed67a6d24a186b88efd72ab327655 | refs/heads/master | 2021-03-19T17:53:13.517558 | 2018-03-15T08:36:33 | 2018-03-15T08:36:33 | 11,680,137 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | h | Physbox.h | #pragma once
#include "GLPT.h"
class Physbox : public Entity {
public:
void EventCreate(EntityLoadData* data);
void EventDraw(void);
void GetPosition(float* x=NULL,float* y=NULL);
private:
Animation ani;
Drawable<BasicVertex> draw_object;
PhysBody phys_object;
}; |
66ba091bfc557268ee604ddfe796620a93774db5 | dd981d27f85856e741a13e5beda567e8735c921f | /Display.h | b253c4a64df55dec744d58ca8a17c512876de68c | [] | no_license | andreasots/lambda | cb34760b3954d1bf09276cf11f09d14d3f28d472 | 366e7950deace9cb638a7b328e1244d02cf87dcf | refs/heads/master | 2021-01-01T16:13:52.535450 | 2013-06-24T11:13:27 | 2013-06-24T11:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | h | Display.h | #ifndef DISPLAY_H_
#define DISPLAY_H_
#include <GL/gl.h>
#include <random>
class Color;
class Scene;
class Display {
public:
static Display& instance();
void init(int& argc, char** argv, int w = 300, int h = 300);
void scene(const Scene*);
[[noreturn]] void run();
protected:
Display() = default;
Disp... |
bef71d31dfee095596bc7b36225c7e011771b48b | 225b9a9ce807b669f5da0224b374bbf496d0bc70 | /动态规划/预处理转移/th1605-b.cpp | a776f365818f0ea9886b6c393275963458bf4f51 | [] | no_license | Kewth/OJStudy | 2ed55f9802d430fc65647d8931c028b974935c03 | 153708467133338a19d5537408750b4732d6a976 | refs/heads/master | 2022-08-15T06:18:48.271942 | 2022-07-25T02:18:20 | 2022-07-25T02:18:20 | 172,679,963 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 18 | cpp | th1605-b.cpp | ../../th1605-b.cpp |
be004a237ddefc81f6ff91c83bcea2b5bd78b9e7 | 91547f069596e5fabb83044c52c21a3e607b9747 | /Astrum/src/systems/controls.hpp | 97794e4d7d13f094d6fea89d754a909e354c0cee | [] | no_license | Metalith/Astrum3 | 102ba9552c30800e854030a11f9c22d20ff04828 | afb0a21a8f247099b9ade30295418493ffe7f38b | refs/heads/master | 2021-09-15T06:49:31.009096 | 2018-05-28T03:10:09 | 2018-05-28T03:10:09 | 115,884,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | hpp | controls.hpp | #ifndef CONTROL_SYS_HPP
#define CONTROL_SYS_HPP
#include "system.hpp"
#include "components\transform.hpp"
#include <GLFW\glfw3.h>
class ControlSystem: public System {
public:
ControlSystem();
void update();
void addEntity(int e);
static void key_callback(GLFWwindow* window, int key, int scancode, int actio... |
5a5df89198b555c4530e0d45977842d6e2f9aad7 | 793a8580d3cb7e61f8a4fb712847c5d768787e06 | /src/chainLink/SVNode.cpp | 73b622d08b858279bd5c0b5c66b5679c7bf6fd22 | [] | no_license | Gigamonkey-BSV/ChainGrabber | 13090d360cddf2e8857657afacfb47ae6b60fb95 | 3e175b3e1bcef789ebbb60ff92c874fbd3c46c79 | refs/heads/master | 2020-12-14T15:30:05.030878 | 2020-04-11T20:28:38 | 2020-04-11T20:28:38 | 234,788,586 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | SVNode.cpp | // Copyright (c) 2020 Katrina Knight
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainLink/SVNode.h"
namespace chain_link {
} |
35560b32bb2d5eebe837ba0216a3cf46ec2ed16a | d2cd9f8665f416393d1c4de2763a8285af606536 | /Chapter 7/war3.cpp | 936937aaa3637b1393b599a9b17fda7b7adc3ac3 | [] | no_license | GinoTateo/CompSci-110 | 82b51f94fd700eefdc9e33f81d680f3d30456aa9 | 3677709d06c0e68c17c04bce4ef9c756c8ae1e43 | refs/heads/master | 2020-04-24T12:47:52.171057 | 2020-04-23T22:26:15 | 2020-04-23T22:26:15 | 171,966,842 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,743 | cpp | war3.cpp | // Lab 7.6
// Programmer: Gino Tateo
// Editor(s) used: Xcode
// Compiler(s) used: Xcode
//
//unfinished
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
//intro
cout << "Programmer: Gino Tateo" << endl;
cout << "This is a game of war!" << endl <<... |
7190732efbc9effb0064dbe7c390e5b019f3dd04 | 8751901f535ca551df4299022e964f71ac3848d2 | /c++/LeetCode/LeetCode/ValidPalindrome.cpp | 8cfcb2975679ede8aa34d25ede4b170fc5e4abf7 | [] | no_license | iorinie/LeetCode | af97154229e085156459107090982118d438a37b | 666e59e92385a4b78d5f864885407196ecd6126a | refs/heads/master | 2023-01-13T18:18:02.535492 | 2020-11-20T09:45:29 | 2020-11-20T09:45:29 | 263,205,449 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,019 | cpp | ValidPalindrome.cpp | #include "ValidPalindrome.h"
/*
题目描述:
给定一个非空字符串 s,最多删除一个字符。判断是否能成为回文字符串。
示例:
输入: "aba"
输出: True
输入: "abca"
输出: True
解释: 你可以删除c字符。
输入: "cuppucu"
输出: True
请注意,字符串只包含从 a-z 的小写字母。字符串的最大长度是50000。
*/
/*
解法1:一头一尾双指针
缺点:某些情况下(如:"cupp... |
34d394cbb00140c21739da85f087f65f93866a27 | 47cdbce6ef5592b26369fac4ac7f645c865f7604 | /test/pdfio/pdf1_0/istream/pdf1_0_istream_unittest_app.cpp | 00c91a70e77f44e7ba98248fb39dc17ae24866d7 | [] | no_license | vladyslavkazachenko/pdfio | 2b0434abfead794018ae33980b4c91f23f4cfbb6 | 39c580a62dcb1c3f59e0fa5bac89d66fa89c455e | refs/heads/master | 2021-04-29T15:03:16.394238 | 2018-05-08T15:21:02 | 2018-05-08T15:21:02 | 121,789,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | pdf1_0_istream_unittest_app.cpp | #include "gtest/gtest.h"
#include "pdfio/log.h"
#include "pdfio/pdf1_0/istream/include.h"
int main(int argc, char **argv)
{
#ifdef PDF_LOG
pdfio::gLogDebugHandler = [](const std::string &msg)
{
std::clog << "D\t" << msg;
};
pdfio::gLogErrorHandler = [](const std::string &msg)
{
std::clog << "D\t" << msg;
};... |
faa43697482ed88611d5a5ac44e7b3c4f38a5367 | ec113bb640fd49c1f414ac6098e2d494fb3052eb | /libraries/ros_lib/image_recognition_msgs/Recognize.h | 2d8b8e6b7700155e957fc45a429a8aed356f8675 | [] | no_license | MurakamiNUT/Arduino_labmda | 0ea5793857fbc411e5344ac215dc9d0e69219bcd | 2b554a0438afb79c856118c8d33a86588eaaebe8 | refs/heads/master | 2023-05-06T22:41:08.598857 | 2021-05-28T23:01:40 | 2021-05-28T23:01:40 | 371,835,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,200 | h | Recognize.h | #ifndef _ROS_SERVICE_Recognize_h
#define _ROS_SERVICE_Recognize_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "sensor_msgs/Image.h"
#include "image_recognition_msgs/Recognition.h"
namespace image_recognition_msgs
{
static const char RECOGNIZE[] = "image_recognition_msgs/R... |
fafbdc7490e29e6c26f762db8729ab78079fc23c | 883715b5df2fdaa5ed555c6f717494305a108147 | /Engine/Input.h | ab3b0f37a458ca5cf8645a03e8ce7b2fd6d1e3ef | [] | no_license | UFNHGGI/CBGE | 038e18b5e444921294d40b2cace2e7840d48e38c | b771038c9cd1b797038f1dbd25c0601668baabe7 | refs/heads/master | 2021-01-17T13:22:49.838293 | 2013-09-11T12:43:52 | 2013-09-11T12:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | h | Input.h | #ifndef __INPUT_H__
#define __INPUT_H__
#include "Basic.h"
class ENGINEDECL CInput
{
public:
static bool KeyDown(int key);
static bool KeyPress(int key);
static bool KeyRelease(int key);
static bool MouseDown(int btn);
static bool MousePress(int btn);
static bool MouseRelease(int btn);
static int MouseX();
st... |
91c48ba1f6abe0c076c16dae776d7f011e0b22eb | d6bf01ad2267c80f1287bce635adc3de61a32562 | /example.cpp | a3c9974bd18837017f0ba3692bcade9abc7a2867 | [] | no_license | JingJerYen/EKF | b8ed3b7c990a0c07adc11ce35bb7433f1f438fc6 | 8820d35503ae1519307d44dee990d783813582db | refs/heads/master | 2023-06-30T07:49:28.891924 | 2021-08-07T07:51:45 | 2021-08-07T07:51:45 | 393,617,183 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | example.cpp | #include <iostream>
#include "EKF.hpp"
#include <Eigen/Core>
using namespace std;
int main(int argc, char const *argv[])
{
LinearSensorParam lidar_xy;
lidar_xy.sensor_dim = 2;
lidar_xy.sensor_dim = 4;
lidar_xy.H = Eigen::MatrixXd(2, 4);
lidar_xy.H(0, 0) = 1;
lidar_xy.H(1, 1) = 1;
lidar_xy.... |
59a64b25ab7cd8ad20f5d14cf22fef94d0df0830 | b4f42eed62aa7ef0e28f04c1f455f030115ec58e | /messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionFindFile.cpp | d077d65ee35c90d8f9d8901b20400b1a441a262b | [] | no_license | SymbianSource/oss.FCL.sf.mw.messagingmw | 6addffd79d854f7a670cbb5d89341b0aa6e8c849 | 7af85768c2d2bc370cbb3b95e01103f7b7577455 | refs/heads/master | 2021-01-17T16:45:41.697969 | 2010-11-03T17:11:46 | 2010-11-03T17:11:46 | 71,851,820 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,372 | cpp | CMtfTestActionFindFile.cpp | // Copyright (c) 2004-2009 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/e... |
07b74cff03603eb8732d74103b1d1d32334356bb | 88e4ea54b23a4ebdf4a059a4431ff9bcb1bce645 | /ibird v1.0-1.9.cpp | bafcde834bd194397faf61d2dde913748b58d15e | [] | no_license | akib-89/iangrybird | 81424b4fb926a2f01c2ba9553dedf011451de653 | f8de6c373005e227031abc079d9b8e2dabcb93cf | refs/heads/master | 2022-02-21T12:16:00.102412 | 2019-09-27T19:57:06 | 2019-09-27T19:57:06 | 205,564,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,150 | cpp | ibird v1.0-1.9.cpp | # include "iGraphics.h"
#include<stdio.h>
#include<math.h>
const float pi=acos(0)*2;
const float g=10;
//for scoring
int score[5]={0};
char p1[5],p2[5],p3[5],p4[5],p5[5];
//for coordinates of the ball
float xball=75,yball=75;
//for angles
float ang;
float angle=pi*ang /180;
//
float xshow=50*cos(angle);
float yshow=50*... |
7b18495b02923f9e4f372c2d63aa2d3247f7a182 | 94a61fcf44a93ba39f0dff165814b423950f0229 | /SchoolProjects/Video Compression (MM)/src/c_dct_encoder.h | f5b7a5945bc53173ac17800e05ed737789b3a26e | [] | no_license | jstty/OlderProjects | e9c8438dc6fe066e3d1bc2f36e937e7c72625192 | 4e64babeef2384d3882484a50e1c788784b08a05 | refs/heads/master | 2021-01-23T22:53:21.630742 | 2013-07-08T01:58:27 | 2013-07-08T01:58:27 | 10,214,450 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | h | c_dct_encoder.h | /****************************************
filename: c_dct_encoder.h
description: Segmintation class
project: Video Encoder/Decoder
created by: Joseph E. Sutton
version:
date: 11/06/2009
****************************************/
#ifndef _DCT_ENCODER_
#define _DCT_ENCODER_
class DCTEncoder
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.