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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46657e924615ef445019f7d034bdadb18841d674 | 33cdd5ccd542e647b72972b634203b20277852eb | /Css343Lab4/History.cpp | 620850f77768a17e92da2442d85fa9e5e536e0d1 | [
"MIT"
] | permissive | Whompithian/css343-project4 | 1430e7ab3551f84921b9edac3e7c549c92b0b445 | b527c4a35126c0be41bf0a2c0d70d1a2d986b164 | refs/heads/main | 2023-07-20T08:50:18.728804 | 2016-06-09T05:08:27 | 2016-06-09T05:08:27 | 60,750,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,057 | cpp | History.cpp | /*
* File: history.cpp
* Author: brendan
*
* Created on February 14, 2012, 8:13 PM
*/
#include "History.h"
#include "Merch.h"
History::History() : head(NULL)
{
} // end Default Constructor
History::History(const History& orig)
{
if (orig.head == NULL)
{
head = NULL; // original list is em... |
5ff4c5a0ff030adc17b7a978705c081852a3800f | 12f32d9f53c178ae128a62bbaad8255ee99fc412 | /CodeSignal/Intro Section/matrixElementsSum.cpp | a6e2a7ea4e0f76924fd5e71a9a6c16d6ae8c3754 | [] | no_license | C0DINGLE/DSA_Practice | 512fec909752f8b2ea7255da72f08105c428edf4 | 3782af051d3566bda69f461e5777bde0feb8c764 | refs/heads/main | 2023-06-24T12:51:42.258551 | 2021-07-19T20:33:56 | 2021-07-19T20:33:56 | 347,957,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,292 | cpp | matrixElementsSum.cpp | #include <iostream>
#include <vector>
using namespace std;
int matrixElementsSum(vector<vector<int> > matrix)
{
int sum = 0, count = 0;
for (int i = 0; i < matrix.size(); i++)
{
for (int j = 0; j < matrix[i].size(); j++)
{
if (matrix[i][j] == 0)
{
w... |
0cf4fe8bae77f6d7e36ab8b3caf262137da72649 | 4d107a97633559963f6510767bb9297febbcbb02 | /applications/ConstitutiveModelsApplication/custom_python/add_custom_processes_to_python.cpp | 3c382ba36bb0000b04c0ce2cfa6e0f220e4298c4 | [
"BSD-2-Clause"
] | permissive | asroy/Kratos | 45dc4a9ad77a2b203ab2e0c6c5fe030633433181 | e89d6808670d4d645319c7678da548b37825abe3 | refs/heads/master | 2021-03-24T13:28:43.618915 | 2017-12-19T15:38:20 | 2017-12-19T15:38:20 | 102,793,791 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | add_custom_processes_to_python.cpp | //
// Project Name: KratosConstitutiveModelsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: April 2017 $
// Revision: $Revision: 0.0... |
4aa921d4068147bece63cf2aec9039a532abb717 | 0006f89c8d952bcf14a6150e9c26c94e47fab040 | /src/support/QuadInt.h | 7366234d6ccbac37ac986cb6c7fc2d395edac128 | [
"BSD-3-Clause"
] | permissive | cooperyuan/attila | eceb5d34b8c64c53ffcc52cd96b684d4f88b706f | 29a0ceab793b566c09cf81af26263e4855842c7a | refs/heads/master | 2016-09-05T18:55:56.472248 | 2013-06-29T14:42:02 | 2013-06-29T14:42:02 | 10,222,034 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,144 | h | QuadInt.h | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not be disclosed to third parties,
* copied or duplicated in any form, in... |
c3a68d932546a1923b2f9f90147e4e8c865fe87b | 95779127b6b7baac57ba169103bff27d3732c0ba | /src/test_main.cpp | 633ea5d2b0e575585e17ba33344bcb6d0d1efdf3 | [] | no_license | aimie99/Project7-11-18 | 7592ac1f438248727393368295ef69ad0619c136 | cc0ca2c0a6d3f7b3fcd2fdaac9b6e65a9f2faf4b | refs/heads/master | 2020-04-02T06:08:55.040693 | 2018-11-02T16:27:12 | 2018-11-02T16:27:12 | 154,132,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,591 | cpp | test_main.cpp | #include <gtest/gtest.h>
#include <algorithm>
#include "network.h"
#include "random.h"
#define MAX 15
RandomNumbers RNG(101);
Network net;
TEST(networkTest, initialize) {
net.resize(MAX);
EXPECT_EQ(net.size(), MAX);
std::vector<double> vals = net.sorted_values();
EXPECT_TRUE(std::is_sorted(vals.begi... |
28283fad74fc8592cebd12902d015d758ad5abc6 | 63c45712f8223e4333902db3be6b79366c557d84 | /Engine/System.h | 8656fed309101493ebd63fa65f367ccb2303629e | [] | no_license | kaisavi/GAT150_ZBEPixelEngine | 43aca326b59bb30b3e694893db4fe8017e2dc6ec | bb8f5907032535dbc15ec11beb28fc2c6c3279ed | refs/heads/master | 2023-07-11T23:51:01.317957 | 2020-08-26T03:47:22 | 2020-08-26T03:47:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143 | h | System.h | #pragma once
namespace zbe {
class System {
public:
virtual bool Init() = 0;
virtual void Close() = 0;
virtual void Update() = 0;
};
} |
d492ac9c611aa6f0041cfb0e747f66ec4661a549 | 18170b95a5e85de02ae87bb3180178e7c54adf5c | /Modules/MonteCarlon/Solver/solver_montecarlon_02_execute.cc | 2212b1b5856e998aa89045e86507e87f69f84a11 | [] | no_license | rodriguez-jay/chi-tech | f3aed16d26f86f0656d70e81b7735b29a90ad7f5 | ca2aa804dbccfad6cf179126662568d980a6acd1 | refs/heads/master | 2022-11-16T18:08:16.639976 | 2019-10-03T22:15:08 | 2022-11-11T16:10:20 | 204,505,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,621 | cc | solver_montecarlon_02_execute.cc | #include "solver_montecarlon.h"
#include <chi_log.h>
#include <ChiTimer/chi_timer.h>
extern ChiLog chi_log;
extern ChiTimer chi_program_timer;
typedef unsigned long long TULL;
//#########################################################
/**Executes the solver*/
void chi_montecarlon::Solver::Execute()
{
chi_log.Log(... |
dadcf9c9f74e0aa56fe54723e52643948899a917 | dd14ba9eb17efcd24b39872481d7fef6d67d72c5 | /src/Mods.h | 25d54b22c75db61dcc9fe73b887342a16f262bbe | [
"MIT"
] | permissive | myran2/BrickBreaker | b0b1587ce99a3921c84b86359bd9fc756b486a9c | 52daab6002345c4d07d9eef8a2a17013d3db3b6d | refs/heads/master | 2021-01-10T06:56:34.051670 | 2016-04-20T04:58:55 | 2016-04-20T04:58:55 | 55,006,716 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 477 | h | Mods.h | #ifndef _MODS_H
#define _MODS_H
#include "Entity.h"
#include "Log.h"
#include <iostream>
class Mods : public Entity
{
public:
Mods(Window* window, const std::string& textureName, int xPos, int yPos);
virtual void update();
void fastPaddle();
void slowerPaddle();
void la... |
f54edfa05144285832f88848d26421c0dd127779 | 1d90f8b17b6d77f8513e80a439fc934ae905c8ec | /lista10/3primaridade.cpp | 0eb3e6fe04db751d0670814a12463e09a4d6e210 | [
"MIT"
] | permissive | GE28/exercicios-CPP | e42464f4a7a1071080a35c967e3cff0bc8240d30 | 7070d6f749c859ca0a7bac39812558b0795d18c6 | refs/heads/main | 2023-08-05T10:49:27.092274 | 2021-09-12T22:38:23 | 2021-09-12T22:38:23 | 391,167,771 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | 3primaridade.cpp | #include "lista10.h"
#include <iostream>
using namespace std;
int main() {
int n;
cout << "O número: ";
cin >> n;
cout << endl;
if (!verificarPrimaridade(n)) {
cout << "Não é primo";
} else {
cout << "É primo";
}
cout << endl;
return 0;
}
|
0bae9e20c9acc1fa64e4abf6128f8706d3df2b59 | 32689b9f29f957a07add26b4ad1e57673b6050e9 | /soft_debug_p3/sw/src/femb_test.cxx | b28dff41f32c1945f93878c4e95039aae95c8113 | [] | no_license | madorskya/wib_sim | 127956c934f317b5edbd99bda49b6bcba74d7d1e | 6669d1c6a7ed1155a09c702255d077c400cb8db3 | refs/heads/master | 2023-08-31T13:15:01.921512 | 2023-08-29T00:40:48 | 2023-08-29T00:40:48 | 269,816,973 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,688 | cxx | femb_test.cxx | #include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include <fstream>
#include <sys/mman.h>
#include <fcntl.h>
#include <stdio.h>
#include "femb.h"
using namespace std;
int main (int argc, char * argv[])
{
int femb_ind = -1;
sscanf (argv[1], "%d", &femb_ind);
if (femb_ind < 0 || femb_ind > 3)
{
printf... |
83e886d3d9151801f2c4fbfcd19f30d4fc3e199b | de146d24e0c97af73fb351e02d23833e1dd4e660 | /ROS_Problem/topic_problem2/src/topic_problem2_pub.cpp | eb911a07a09039157f7a1a923def19b3267f5901 | [
"Unlicense"
] | permissive | ing03201/Learning_ROS | b68085ecc82764e74ac57a4fe6b94c66e1cc77a5 | dd36f2cba4a376d35c9e8029f4741392cb693c0d | refs/heads/master | 2020-04-04T09:31:18.915814 | 2019-01-07T02:09:47 | 2019-01-07T02:09:47 | 155,820,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | topic_problem2_pub.cpp | #include <ros/ros.h>
// #include <패키지 이름 / 메시지.h>
#include "topic_problem2/topic_problem2_msg.h"
int main(int argc, char* argv[])
{
ros::init(argc, argv, "topic_problem2_pub");
ros::NodeHandle nh;
ros::Publisher pub = nh.advertise<topic_problem2::topic_problem2_msg>("topic_problem2_pub",10);
topic_pr... |
25a314b7b2e610255118a95e69ead714d2cfffc4 | 069ab8a8a3d4b434895fd133ea522017715c3491 | /c++/core/VisibleE.h | dac28dcea883a42ad23192b80b493195df6e5eee | [] | no_license | ngphubinh/neurons | 542b3b7d54dc5422464450eade21cf3b0ec44168 | 1de5d3b18e1f617201996733429d136f42ec09d8 | refs/heads/master | 2021-01-10T06:22:01.256850 | 2014-07-22T23:40:56 | 2014-07-22T23:40:56 | 50,171,074 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,543 | h | VisibleE.h | /** Class VisibleE
* defines a visible object with extended attributes, such as color
*/
#ifndef VISIBLEE_H_
#define VISIBLEE_H_
#include "neseg.h"
#include "Visible.h"
class VisibleE : public Visible
{
public:
/** Options for drawing the object.*/
bool v_draw_projection; // true for maximum intensity, fals... |
ef653bdf8da68628e7fad47bae60aa7e33577569 | 26bd0708eecf955cc203dad16b71a8c2c0b42f7e | /hw6/Library_backup.h | 1ce1c46d6d5352412eddb8f316396800879d83e2 | [] | no_license | stockdillon/cse_320 | 8311237d6734e96315ac9113cf9a3fc492b5d5ca | b3e4888b669e05862738c16ba3cce5b56b1bcd97 | refs/heads/master | 2020-03-22T10:08:19.677067 | 2016-12-05T23:19:32 | 2016-12-05T23:19:32 | 139,883,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,315 | h | Library_backup.h | #include <iostream>
#include <string>
using namespace std;
#ifndef LIBRARY_LIBRARY_H
#define LIBRARY_LIBRARY_H
struct Book {
Book() = delete;
Book(string _isbn, string _title, string _author) : isbn(_isbn), title(_title), author(_author) {};
string isbn;
string title;
string author;
bool operator<(const... |
e05aeee058646f249e295b59e76c4cf562c10515 | dd15d41123ada0b8a6ac09e0aface5a3d04e9a62 | /Day 12/p3.cpp | 293a031673dbcf55399a772a5e0883d73af0cddd | [] | no_license | Aman2241/Coding | 27fd2b773f976fbddd709c07f94e6cb3d84b76b9 | 6b9f9fa422daf3014ce1ed86a203e2446c6abeb4 | refs/heads/master | 2022-11-13T15:03:18.525332 | 2020-07-04T15:27:01 | 2020-07-04T15:27:01 | 261,521,813 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | cpp | p3.cpp | #include<bits/stdc++.h>
using namespace std;
class Base{
public:
void fun1()
{
cout<<"Hello I am Base"<<endl;
}
void fun2()
{
cout<<"Hello I am base fun"<<endl;
}
};
class Derrived:public Base{
public:
void fun3()
{
cout<<"I am derrived"<<endl;
}
};
int main()
{
Base *p;
p=new Derrived();
... |
e7b2b41a6276ea491ce96be4bccc452f45673f84 | 6550126ec9f3310fb7083edb17edb84faac71e9f | /src/M/6/M648_ReplaceWords.cpp | 42d88eed1c22a425a024a56afaa3de933f647fb7 | [] | no_license | d2macster/leetcode-cpp | d9dd988a18f3721141b4a174e44fb4cbffa47e1d | 48caf45921107f5003bf5b766242c11840e5b84c | refs/heads/master | 2021-07-16T20:50:55.500503 | 2018-08-26T22:10:05 | 2018-08-26T22:10:05 | 116,715,207 | 0 | 1 | null | 2019-10-24T17:45:49 | 2018-01-08T18:54:01 | C++ | UTF-8 | C++ | false | false | 1,415 | cpp | M648_ReplaceWords.cpp | //
// Created by Andrii Cherniak on 3/19/18.
//
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
using namespace std;
struct Node {
vector<Node *> links = vector<Node *>(26, nullptr);
bool end = false;
char ch;
Node(char c) { ch = c; };
};
class Solution {
Node *root = ... |
d603ff6e204c4e9b571392753c48d27a105288b1 | 11ee3388d2aaddeb7643e3bcf7b345c2920f0bc9 | /src/0813.cpp | 8cb9515c7e426145974d401f3f37281e6573af1f | [] | no_license | cdsama/LeetCode | 5172ba02e5a32e4a8155a236f19fac19967b6159 | afc59f4c4a2b3ca393d7eea22d996a3b5eb2de5d | refs/heads/master | 2020-03-29T01:44:35.028235 | 2019-09-27T03:08:35 | 2019-09-27T03:08:35 | 149,404,114 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | cpp | 0813.cpp | #include "LeetCode.hpp"
/*
813. Largest Sum of Averages
Medium
We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score is the sum of the average of each group. What is the largest score we can achieve?
Note that our partition must use every number in A, and that scores are not neces... |
0dbf27e9056c1a3ef0922c82d496ef8affa65872 | 3266ed5f196b3a34c1fe0d27c72bbbe9dcde6866 | /lightoj/1009 - Back to Underworld .cpp | ab4559be7db1568580f5710ca7b5145c5c8808be | [] | no_license | akazad7567/Practice | f7cbd3d759654fcbaed8054b1cc9b06344a99241 | a2817e984be521bbe1c50cdcaed383db338196ae | refs/heads/master | 2021-09-28T04:51:38.038418 | 2021-09-24T08:22:35 | 2021-09-24T08:22:35 | 242,341,281 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,520 | cpp | 1009 - Back to Underworld .cpp | #include<bits/stdc++.h>
using namespace std;
#define MAX 200050
vector<int>adj[MAX];
vector<bool>vis(MAX,false);
vector<int>d(MAX,0);
int enemy=0,frnd=0;
int fenemy=0,ffrnd=0;
void clean()
{
for(int i=0;i<MAX;i++) adj[i].clear(),vis[i]=false,d[i]=0;
enemy=0,frnd=0;
fenemy=0,ffrnd=0;
}
int bfs(int... |
4d1a7b137072f4fcd278aaec2b598875bd2da725 | b654e2c059f8460b6a46929033ec24368cd1f64d | /2_DerivCreOrder.cpp | c4f688e8290cbb0c69a77f686db6b4e248ff22ab | [] | no_license | devlek/Dev | 9b0fc567628b3e336a1d58efe274b3d7b42724cc | 42c4f76dd75380837e52211b03c422f265630498 | refs/heads/master | 2021-01-13T16:22:12.233235 | 2017-01-25T09:53:37 | 2017-01-25T09:53:37 | 79,899,191 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,580 | cpp | 2_DerivCreOrder.cpp | #include<iostream>
using namespace std;
/*
* 유도 클래스의 객체 생성과정 -> 기초 클래스의 생성자 호출에 관심
결1. 유도 클래스의 객체생성 과정에서 기초 클래스의 생성자는 100% 호출된다.
결2. 유도 클래스의 생성자에서 기초 클래스의 생성자 호출을 명시하지 않으면, 기초 클래스의 void 생성자가 호출된다.
클래스 생성 순서.
유도 클래스만 생성한다고 해도
자동으로 기초 클래스 -> 유도 클래스 순으로 생성
*/
class SoBase
{
private:
int baseNum... |
64f0aeef944c6d6aafa9429e19285e48ca32ef11 | fdf2e46c71d7d973cc3607dc7c0ff859567a7417 | /core/ps/table/sparse_table.cc | a9024c273180c8c5fc4e0d7bf6d1c438ae690f49 | [
"Apache-2.0"
] | permissive | zz198808/tensornet | 9821e668a617e5befbbc96b4d148ce142bdcd23a | 115e267f84ed60c3ea080f17b1e2cfbe4dfb6061 | refs/heads/master | 2022-12-15T23:40:40.456589 | 2020-09-18T08:20:23 | 2020-09-18T08:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,691 | cc | sparse_table.cc | // Copyright (c) 2020, Qihoo, Inc. All rights reserved.
//
// 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 ap... |
ad51e943e0731db927acfd31f7ee314a62e966e7 | 5c7b99c11768a6af134d3dc9244dc03b48bce4d5 | /Computational Geometry/2009_Shape_CAD:CAM/release/lib/simp/si_inter.cc | 59e4edfc48fdf0a9454af9aa9564c7f0bf03ad55 | [] | no_license | symphonylyh/research-readings | d241b7570681fd47ab414dec21686496be07f246 | 04e70f7de7caff56430db8540302f7147d7613fc | refs/heads/master | 2021-09-15T09:52:43.691539 | 2021-09-03T03:52:07 | 2021-09-03T03:52:07 | 162,491,848 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,335 | cc | si_inter.cc | /*****************************************************************************
si_inter.cc last edit 10.22.92
****************************************************************************/
#include "simpoly.h"
#include "compiler.h"
/* The heart of the intersection algorithm */
#ifndef NO
#def... |
ab2e92e1f37ee6012bf774cf8f1a1695a74fe41e | 7d976a680d234e932041e2712c4afe75df1df752 | /UE3_SDK_Generator/SDK_Main.h | 04ba2809d8dac669b32fc7c9d22faab85800734b | [
"MIT"
] | permissive | confl8/ue3gen | dd6cc706a296ef99acac8dc5e4850838b07b4dda | 827da750000dea60de1dcbd46adc3d0051761a34 | refs/heads/master | 2020-04-02T23:35:07.520411 | 2015-05-19T08:59:52 | 2015-05-19T08:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,645 | h | SDK_Main.h | //Start including the nessicary UE Core files...this includes stuff like the data needed to walk the tables and such
#ifndef _SDK_MAIN_
#define _SDK_MAIN_
#define GObjects 0x01DE5FA4
#define GNames 0x01DD46E8
#define CPF_Edit 0x1
#define C... |
a97cd49167dd22839de39dadc04204b84370bd78 | 0ca2f0107a3292984b5ad149896ab47c756d1068 | /item.hpp | 1cd0facdfc55e2f066793ac4d6cc0d74cf3346ca | [] | no_license | Zou1c/OSfinal | 0ec87a591e598bbf3c1a7ca226a05862e7c10702 | 41e7a0786acfdef88258543161c48c747789239a | refs/heads/master | 2023-01-23T09:40:26.324906 | 2020-12-04T06:11:52 | 2020-12-04T06:11:52 | 318,426,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | hpp | item.hpp | #pragma once
#include <map>
#include <string>
#include <iostream>
#include <mutex>
#include <stdexcept>
#include <ostream>
#include <istream>
class Item
{
private:
std::map<std::string, std::map<std::string, int>> itemList;
std::mutex mtx_itemList;
public:
Item();
Item(std::ist... |
d461080d3d2a69b5742073b0dd6ac60be525e5d4 | 932e4071ce41fc4e2a3d505fe0349ecba59023f6 | /thread_1.cpp | c41693db26ca10a22284d964c8e5d4e24d254b83 | [] | no_license | highlightz/Learn-C-CPP | 54af5aa14567d129e0fe0940886f93edff45ec0e | 75c97e21930d4440690abb0f6de7935dea5c2876 | refs/heads/master | 2020-04-10T13:29:10.227131 | 2016-03-26T11:51:29 | 2016-03-26T11:51:29 | 40,968,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 649 | cpp | thread_1.cpp | // Compile:
// g++ main.cpp -o main -pthread -std=c++11
#include <thread>
#include <iostream>
void foo( )
{
std::cout << "foo executed!\n";
}
void bar( int x )
{
std::cout << "bar executed! " << x << " passed in!\n";
}
int main( )
{
std::thread first( foo ); // Spawn new thread that calls foo()
st... |
f2de1ced1d2347778b77045708f988f94832a459 | 8df563b58a3bb7e395a04eb3fb78384d328e8fc6 | /Pokemon/Main.cpp | d9aa915dcfdb750efe2d0ffeaebd8e24f2e592c0 | [] | no_license | freckie/PokemonConsole | f48b3ae239d067b448954336de5c92d50d35c560 | 82a1919d27e68bb286143e142c9b28680f9d5418 | refs/heads/master | 2021-01-02T08:52:58.977509 | 2017-08-02T07:00:10 | 2017-08-02T07:00:10 | 99,083,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98 | cpp | Main.cpp | #include<iostream>
#include"App.h"
using namespace std;
int main(void)
{
App app;
app.run();
} |
8a1f41b33a75ad51c990e04cf6b39c7278997445 | 7c779fb0d0cf55fa221c34e25f13d0605b124564 | /Bigmod.cpp | 6e7e5be68370d5368db7543a88a61656c61ea4be | [] | no_license | TariqueNasrullah/Cheat | 619fac167ca944a08407675563a09c2079da7081 | 0234d430bed06fd888b28e29a615825dfa7f0d2b | refs/heads/master | 2021-04-29T02:21:33.791622 | 2020-03-30T14:44:57 | 2020-03-30T14:44:57 | 78,027,045 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | cpp | Bigmod.cpp | #include <bits/stdc++.h>
using namespace std;
#define lli long long
lli m;
lli big_mod(lli n, lli p)
{
if(p == 0) return 1;
if(p%2 == 0)
{
lli ret = big_mod(n, p/2);
return ((ret%m) * (ret%m))%m;
}
else return ((n%m) * (big_mod(n, p-1)%m))%m;
}
int main()
{
m = 4;
cout << ... |
817a23e90095f7211bbcfb6ed1b047ccebaa2fda | 3782e25b6db35d82d63bb81e398deab85ef2236e | /Fw/Port/InputSerializePort.cpp | 6201fa3857c1ccf4a58c4194a429c45a18ed0c91 | [
"Apache-2.0"
] | permissive | nasa/fprime | e0c8d45dfc0ff08b5ef6c42a31f47430ba92c956 | a56426adbb888ce4f5a8c6a2be3071a25b11da16 | refs/heads/devel | 2023-09-03T15:10:33.578646 | 2023-08-29T15:39:59 | 2023-08-29T15:39:59 | 95,114,723 | 10,071 | 1,426 | Apache-2.0 | 2023-09-08T14:31:00 | 2017-06-22T12:45:27 | C++ | UTF-8 | C++ | false | false | 1,645 | cpp | InputSerializePort.cpp | #include <Fw/Port/InputSerializePort.hpp>
#include <Fw/Types/Assert.hpp>
#include <cstdio>
#if FW_PORT_SERIALIZATION == 1
namespace Fw {
// SerializePort has no call interface. It is to pass through serialized data
InputSerializePort::InputSerializePort() : InputPortBase(), m_func(nullptr) {
}
InputS... |
6ee59cb9a0319e53b16721eb8d78c11a634e00c0 | 93974aab719a519bd6d4a22f8647b5a0f7ea6472 | /QtChat/QtEncChatClientWindows/EncMessengerConnectionDialog.cpp | 941b08dbfd9ce0e8735def2b653249663c17b2b9 | [] | no_license | Exordio/qt_chat | aa23164eda9b9b2043c71f7490598c5b6b1c097c | 8f2d8ba215052405bf229ab571608c59a1f13c57 | refs/heads/master | 2020-11-24T19:14:27.108090 | 2019-12-16T05:13:58 | 2019-12-16T05:13:58 | 228,307,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | cpp | EncMessengerConnectionDialog.cpp | #include "EncMessengerConnectionDialog.h"
#include "ui_EncMessengerConnectionDialog.h"
namespace SandZero {
EncMessengerConnectionDialog::EncMessengerConnectionDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::EncMessengerConnectionDialog)
{
ui->setupUi(this);
}
EncMessengerConnectionDi... |
d660151556d6d48bdb90ac49ae290b5832085810 | 7e1cf39ff92a577249fb9a28c9ef2a63af82a574 | /project4/IntelWeb.cpp | a5562573711b177fdfe4e0b56b37ff6686f71137 | [] | no_license | lboymoushakian/project4 | 29f75886c800e91b7feb3f97c322e98d12f7149b | b2204d1e916f9642f99682022ce8c58b07adda79 | refs/heads/master | 2021-01-10T09:16:26.862813 | 2016-03-11T01:23:53 | 2016-03-11T01:23:53 | 53,474,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,992 | cpp | IntelWeb.cpp | #include "IntelWeb.h"
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
IntelWeb::IntelWeb()
{}
IntelWeb::~IntelWeb()
{
m_map_f.close();
m_map_r.close();
}
bool IntelWeb::createNew(const std::string& filePrefix, unsigned int maxDataItems)
{
m_map_f.close();
m_map_r.close(... |
5594c800ef1cb1d124a86ece6feaf03296df23e4 | 2cdf872caafaf0d8acefdba40a7663f122910f9a | /libraries/Mitov/Mitov_SMTP_Client.h | 7f18605b049b53fe2ffc1a5ab289c95688eb2b27 | [
"MIT"
] | permissive | AlexRogalskiy/Duino | 39557285df4871b260740250e37cbc62897e32e6 | bef05838fe73970dea856779957fd3a3e406f295 | refs/heads/master | 2021-06-12T04:26:12.202107 | 2019-11-12T10:19:33 | 2019-11-12T10:19:33 | 164,288,034 | 0 | 0 | MIT | 2021-04-17T19:30:16 | 2019-01-06T08:12:52 | C++ | UTF-8 | C++ | false | false | 21,962 | h | Mitov_SMTP_Client.h | ////////////////////////////////////////////////////////////////////////////////
// //
// This software is supplied under the terms of a license agreement or //
// nondisclosure agreement with Mitov Software and may not be copied ... |
90e2895d1b41cf03036c0edeb752addd5ef7d1ea | c033641fa7223daa3ec4d7f80e12e0b6ceb1927a | /ReplaySaver.h | 004c5ddaa6d33a7b16235199666b072f25241cd3 | [] | no_license | PyrokinesisStudio/STG-Engine | c403ea3a343dd96f2df7ac66ea54921707fdadc4 | 8d83f05c66c1b3854268ee8cb4590dca84188cc1 | refs/heads/master | 2020-03-18T11:29:52.273691 | 2012-11-04T09:57:21 | 2012-11-04T09:57:21 | 134,675,358 | 1 | 0 | null | 2018-05-24T07:05:54 | 2018-05-24T07:05:54 | null | UTF-8 | C++ | false | false | 476 | h | ReplaySaver.h | #ifndef INCLUDED_RTG_REPLAYSAVER_H
#define INCLUDED_RTG_REPLAYSAVER_H
#include "ReplayLoader.h"
namespace RTG
{
class ReplaySaver
{
private:
ReplayEntry m_Entry;
int m_CurFrame;
char m_Name[ 16 ];
int m_Score;
int m_Progress;
::time_t m_Date;
public:
ReplaySaver();
~ReplaySaver(... |
16e664474670b474e6b639f9774d6a8b4030ae6a | 645c6766afe021387b0d391e20e77514e4222b13 | /12015.cpp | 837a3df0d4a1b8853c03ac0e372a047084ad2fc7 | [] | no_license | krofna/uva | 2d48218c26e59ccf56dabc1ec75fa1acb2ac75ea | fbc956d98c14b55a62b606747acdf467d304b142 | refs/heads/master | 2020-06-22T09:31:03.786648 | 2019-03-11T22:10:22 | 2019-03-11T22:10:22 | 74,597,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | cpp | 12015.cpp | #include <iostream>
using namespace std;
int main()
{
int t, max;
int R[10];
string W[10];
cin >> t;
for (int i = 0; i < t; ++i)
{
max = 0;
for (int j = 0; j < 10; ++j)
{
cin >> W[j] >> R[j];
if (R[j] > max)
max = R[j];
}
... |
395ad22bf028099cca4edc2ca8947cfdabf8c47c | 2ba7ea1556d8b17023c89afb316a79a113aa3205 | /Ceil.cpp | fba3399df8b640658654a30694bc44e6648bb4fd | [] | no_license | jtang073/Calculator-Lab | a59f9dd8eb3d61cde0b578e35c940f34c69169a6 | 0ea3492d616c109cd64a8bdbdadab1be55657d1b | refs/heads/master | 2020-09-10T18:48:17.030241 | 2020-04-01T21:42:04 | 2020-04-01T21:42:04 | 221,802,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | cpp | Ceil.cpp | #include "Ceil.h"
using namespace std;
Ceil::Ceil(Base* num) {
decorator = num;
}
double Ceil::evaluate() {
return ceil(decorator->evaluate());
}
|
974dc76ed888d3ffae0fb4e40c7913291ba968cb | e2ab450da5dcaad4692dbac56f0108d7fb20fa10 | /Record.h | 8df49ce2aeb06ad3054df246c2cd8f8bf579a91f | [] | no_license | HuangDell/CampusIDCardManger | 2b543410d58a919da3069a3e69e18acc57db7280 | ac23cb1d17536353a9f068b9ece61a45fa8b3044 | refs/heads/master | 2023-05-15T23:44:45.828904 | 2021-06-14T13:37:44 | 2021-06-14T13:37:44 | 372,103,896 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 169 | h | Record.h | #pragma once
#include <string>
using std::string;
struct Record//用于流水的信息的传递
{
long long xID;
int ID;
string Type;
string What;
string Date;
};
|
e55201972156198a6a08934a0ff8c06d300b6617 | b53bd365307e1e13cd00473cc373c6ba8df1ba7f | /src/StandAlone/tools/dumpfields/FieldDumper.h | a97b04eb6d9b7c93ca047a245872b1300ae8f3f3 | [
"MIT"
] | permissive | Uintah/Uintah | b7c55757cac1f919ac70fa5ffb1d6ea421b2069d | 5678018f6d237faad6aff1c0bcc4791d6af2f61e | refs/heads/master | 2023-09-01T05:27:36.000893 | 2023-07-27T17:18:28 | 2023-07-27T17:18:28 | 206,165,649 | 47 | 25 | null | 2022-10-17T19:14:44 | 2019-09-03T20:22:50 | C++ | UTF-8 | C++ | false | false | 2,902 | h | FieldDumper.h | /*
* The MIT License
*
* Copyright (c) 1997-2023 The University of Utah
*
* 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
* right... |
764387788a9609f88e400d344926d1e4a7fe9909 | 6a73e785451225c5b9f7abb88b2cf27f8a25afe9 | /src/vec3Df.cpp | 52fb4ff03fd9d676af6bfd98d28282100d65254a | [] | no_license | NoahWillaime/projet3D | 095745fb4aa1aadd89f1ffa58eff356380c72004 | c3aed82337bf8925c47a0606a7101b018a311e97 | refs/heads/master | 2020-04-15T16:41:06.656905 | 2019-02-13T09:15:39 | 2019-02-13T09:15:39 | 164,845,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | cpp | vec3Df.cpp | //
// Created by noahd on 16/01/2019.
//
#include "vec3Df.hpp"
#include <iostream>
vec3Df::vec3Df(): x(0), y(0), z(0) {
}
vec3Df::vec3Df(float Vx, float Vy, float Vz):x(Vx),y(Vy),z(Vz){
norm = sqrtf(pow(x, 2) + pow(y, 2) + pow(z, 2));
}
void vec3Df::normalize() {
x /= getNorm();
y /= getNorm();
z /=... |
6ec0c26b709fe87d338a8e00a9fb95fb574fcfaf | a57ad863b00677c824c472bba097b5bbe30d47f2 | /Data Structures and Algorithms in C++/Binary Search Trees/Binary Search Tree 1/StudentType.h | 8bf3cd771268cb7103ddad72f0db411471f4d7bb | [] | no_license | BryanKline36/Projects | a37acaaf1bb9239ccad4869b7e08b90cf8db3410 | 1899c3ae66c530bf7ce6cf1d407568ba29ac83cd | refs/heads/master | 2023-01-13T08:37:42.128234 | 2019-08-18T23:30:11 | 2019-08-18T23:30:11 | 140,639,865 | 0 | 1 | null | 2023-01-07T08:50:18 | 2018-07-12T00:12:55 | C++ | UTF-8 | C++ | false | false | 2,494 | h | StudentType.h | // Program Information ////////////////////////////////////////////////////////
/**
* @file DataType.h
*
* @brief Definition file for DataType class
*
* @details Specifies all data of the DataType class,
* along with the constructor
*
* @version 1.10
* Michael Leverington (30 January 2016)
... |
601b06a269554da75edacdbc674f903f379910a7 | 00d5926746d55a1a62a0202afcec512fb991186a | /LIP/LIP/AST.cpp | 8297ec8ff6c9d144320025b662541e38c4a4bd5b | [] | no_license | llgithubll/Study | 633ac3ec7815b3d190986c83da1222a753700011 | 6933323c4adc8e3ab7d50eda65947536f620259e | refs/heads/master | 2021-01-18T04:02:02.349832 | 2018-08-13T11:21:36 | 2018-08-13T11:21:36 | 85,769,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,011 | cpp | AST.cpp | #include "AST.h"
AST::AST()
{
token.text = "nil";
}
AST::AST(const Token & t)
{
token = t;
}
AST::AST(int _type, std::string _text)
{
token = Token(_type, _text);
}
int AST::getNodeType()
{
return token.type;
}
void AST::addChild(AST t)
{
children.push_back(t);
}
void AST::printNode()
{
std::cout << token.t... |
a9c57961ce73284f29a0e4621aa95b0d20809f44 | 0f6a1d9e8e8d233ef301258a14cd92cd0c45bdcc | /main.cpp | f012e37f9403c4193716d7b8b2c30a0476549e9c | [] | no_license | ialbertocamilo/c_projects | e8898fb37d08b196796f9389cfb1fe3b19e10650 | ce01531ca3497973c47f2828bcadd8e97cbc3be6 | refs/heads/main | 2023-06-14T19:42:21.770358 | 2021-07-06T09:14:12 | 2021-07-06T09:14:12 | 383,336,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,129 | cpp | main.cpp |
#include <windows.h>
#include <stdio.h>
char code[] = \
"\x55\x89\xe5\x83\xec\x10\x31\xc9\xf7\xe1\x89\xc3\x64\x8b\x5b\x30\x8b\x5b"
"\x08\x53\x58\x03\x43\x3c\xb2\x80\x66\x01\xd0\x8b\x10\x01\xda\x80\xc2\x0c"
"\x66\xb9\x33\x32\x51\x68\x55\x53\x45\x52\x89\x65\xfc\x31\xc9\x52\x31\xc0"
"\xb0\x14\xf6\xe1\x01\x04\x24\x58\x50... |
8e84ec3f7cc0fb888a29b804c4cb10fdb61a5cfe | d5ce8cddb5d54d9c2b90f8d52ec3fd3499a51334 | /ELPhys/CollisionSphere.cpp | 6ebb45e9b10282d7751bc2abe6e481c450e21ee5 | [] | no_license | Elaviers/ELLib | 7a9adb92da1d96df9cc28f935be62e48bb98fb5b | 3c5d36d2d19438d32e9cf44fe5efeacb46aca51c | refs/heads/master | 2023-05-30T21:50:28.327148 | 2021-07-05T16:42:39 | 2021-07-05T16:42:39 | 286,592,944 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,734 | cpp | CollisionSphere.cpp | #include "CollisionSphere.hpp"
#include "RaycastHitInformation.hpp"
#include <ELMaths/Ray.hpp>
bool CollisionSphere::IntersectsRay(const Ray &ray, RaycastHitInformation& result, const Transform & worldTransform) const
{
/*
SPHERE: ||P||^2 = r^2
RAY: RAY(t) = S + Dt
AT THE OVERLAP:
||RAY(t)||^2 = ||P||^2 ... |
3bb9e0a7bba59c8b8170efd9a976cfe2c6535827 | 7d391a176f5b54848ebdedcda271f0bd37206274 | /src/BabylonCpp/include/babylon/shaders/shadersinclude/bones_declaration_fx.h | 048fc485fa9868846b866bfa9a89f48f3a6a6cfc | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | pthom/BabylonCpp | c37ea256f310d4fedea1a0b44922a1379df77690 | 52b04a61467ef56f427c2bb7cfbafc21756ea915 | refs/heads/master | 2021-06-20T21:15:18.007678 | 2019-08-09T08:23:12 | 2019-08-09T08:23:12 | 183,211,708 | 2 | 0 | Apache-2.0 | 2019-04-24T11:06:28 | 2019-04-24T11:06:28 | null | UTF-8 | C++ | false | false | 663 | h | bones_declaration_fx.h | #ifndef BABYLON_SHADERS_SHADERS_INCLUDE_BONES_DECLARATION_FX_H
#define BABYLON_SHADERS_SHADERS_INCLUDE_BONES_DECLARATION_FX_H
namespace BABYLON {
extern const char* bonesDeclaration;
const char* bonesDeclaration
= "#if NUM_BONE_INFLUENCERS > 0\n"
" uniform mat4 mBones[BonesPerMesh];\n"
"\n"
" attrib... |
25f21919c42bcb67d4d0a60262157ed6bd7cc04c | d8effd075768aecbf0a590804e6c94127954d01c | /noz/src/noz/Reflection/Properties/TypeProperty.cpp | 56e4f260839e24daf1c2763ca6fb253a8c985632 | [] | no_license | nozgames/noz-cpp | 55c88e0ea92408433ca34399f31007418d46a063 | 0466c938f54edf846c01dd195ce870b366821e99 | refs/heads/master | 2022-11-24T04:20:51.348835 | 2020-07-30T21:42:48 | 2020-07-30T21:42:48 | 283,881,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | TypeProperty.cpp | ///////////////////////////////////////////////////////////////////////////////
// NoZ Engine Framework
// Copyright (C) 2015 NoZ Games, LLC
// http://www.nozgames.com
///////////////////////////////////////////////////////////////////////////////
#include <noz.pch.h>
#include <noz/Serialization/Serializer.h>
#include... |
6e46f064ec91d90b322b3188385bc7245b596181 | 3404d1327765cf4cd26639ac95a9c38f48a681a8 | /ITMO.Cpp.Yaroshchuk.1.cpp | 00373b4a3e4f6fc39d82c2f2cd8cf39a2dc3e8f8 | [] | no_license | Nagashi-A-A/ITMO.Practice.Cpp | 6ef44a96349168b58e0e06dd5be5e39cfdd70307 | eab1a8609466f410fc34cb29e32d1b936c46e4cc | refs/heads/main | 2023-02-15T02:43:35.677598 | 2020-12-26T10:17:26 | 2020-12-26T10:17:26 | 322,847,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | ITMO.Cpp.Yaroshchuk.1.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
system("chcp 1251");
double x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, S;
cout << "\Input coord for 5 points(x,y):\n";
cin >> x1;
cin >> y1;
cin >> x2;
cin >> y2;
cin >> x3;
cin >> y3;
cin >> x4;
cin >> y4;
cin >> x5;
cin... |
8633507c3217c312100ae0f87321f55fb1981abb | d19c6025a47a843b8aab1eaae922d491245799d2 | /tone_recognition/tone_recognition.ino | f2a8ddec0c35435e6225076d57ba6a5f69ddda16 | [] | no_license | acotler/Capstone_ESE498 | e497935d4884cab8c46acfe177eb5c438cbd7f99 | 330c84c5a17556ed38720601a104b4545857e071 | refs/heads/master | 2020-04-19T08:01:24.914781 | 2019-03-03T15:37:06 | 2019-03-03T15:37:06 | 168,064,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,201 | ino | tone_recognition.ino | //Libraries
#include <LiquidCrystal.h>
#include <SPI.h>
//#include <SD.h>
#include <arduinoFFT.h>
#include <math.h>
//Global Variables
LiquidCrystal lcd(8, 7, 6, 5, 3, 2);
int vibMotor = 9;
int mic = A5;
//SD card variables
//File myFile;
//FSM Variables
enum State { dataAquisition, FHTProcessing, recordTone };
State... |
6227eb5ce0894d0e2c2d52bd40bb1c776ea38bf8 | 50618ddcbf1357623c11c442dac7247163eada5e | /SQF/dayz_code/Configs/rscTitles.hpp | a30de024ea782bb746ebb6e93f46b8e5c5ecf165 | [] | no_license | DevVault/DayZUnleashed | 24c574a28a1c543c5d696012077ebc33034032ed | ae7753e36ac9c90e9fc235582478827ee83a3d73 | refs/heads/master | 2021-05-30T00:35:14.875976 | 2015-10-31T02:59:21 | 2015-10-31T02:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,574 | hpp | rscTitles.hpp | class RscPicture;
class RscButton;
class CA_IGUI_Title;
class CA_Title;
class RscText;
class RscListBox;
class RscControlsGroup;
class RscLineBreak;
class RscIGUIShortcutButton;
class RscGearShortcutButton;
class RscIGUIListNBox;
class RscActiveText;
class RscTextGUIK;
class RscFrame;
class RscPictureKeep... |
bc12bec1efed9dd84ad585c558c0cec63f10bc46 | a1a88b9784b2c0e949d2b91bfa7d9f52fd4e5c74 | /chapter3/jupark/condition_stack.h | 22ec709dcabcb71742563ce1fdcd7c88344afd3a | [] | no_license | leadbrain/TempletStudy | bd65fcc8540e84ab2d29c4d05f595bfc848b3474 | f49350865dd46bdc3af432b087c29bd33158ed8c | refs/heads/master | 2020-04-05T23:40:29.493215 | 2013-03-15T03:06:13 | 2013-03-15T03:06:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | h | condition_stack.h | #include <vector>
#include "condition.h"
#include <stdexcept>
#ifndef CONDITION_STACK_H_
#define CONDITION_STACK_H_ 1
template <typename Type, typename CONT = Condition<Type> >
class ConditionStack {
private:
std::vector<Type> elements;
CONT condition;
public:
void Push(Type const& element);
void Pop();
... |
eed3b3d23f45f8fe7630e0cfaf68660ae8115916 | 3a4651255b75dd82e201deda268e0b1d80c867c2 | /print-euler-path.cpp | cd5cff6831289c7ee274bd14cd115d11fa209c99 | [] | no_license | Shikhar21121999/ds-algo-busted | 7b5f46ec88cd6d64e70ac422c5ae0d6bcc0cb0cc | 2b102313a55147e14bf890f4184509b74e928842 | refs/heads/main | 2023-08-10T05:04:16.434039 | 2021-06-03T05:23:48 | 2021-06-03T05:23:48 | 312,954,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,591 | cpp | print-euler-path.cpp | // program to print euler path or euler circuit
// in a given graph
// using fleury's algorithm
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define vpii vector<pii>
#define vvpii vector <vpii>
#define vi vector<int>
#define vvi vector<vi>
#define vb vector<bool>
#define si stack<int>
#defin... |
98c855d002d722cd7410be986c5c113d93d61096 | 846d0d840f789e721c5a90ec455f5bf4f0ca143e | /intro/read2numbers.cpp | 6e6933584d6ced4c06bea02fb67acdaf9cebad37 | [] | no_license | CubeSolver25/cPlusPlusChallenges | 2e2c56dd880bd8c8b536b720567195d4287c19d8 | 4037d1114b7668fa046f761fd3dcb8dcad8258cb | refs/heads/master | 2020-04-22T01:48:49.464069 | 2019-05-05T22:59:01 | 2019-05-05T22:59:01 | 170,025,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | cpp | read2numbers.cpp | #include <iostream>
int main() {
int num1, num2;
double dnum1, dnum2;
std::string str;
num1 = 101000;
num2 = 100101001;
dnum1 = 978487934798;
dnum2 = 74334739897879324;
str = "8478676768746666746676268686863286489689798969678986767886725687697543678936678568959769786567896789569875786767889f56738... |
e9f171686c172f0ce55f9d3e4205c05fb0354ac8 | f3775d1d7d454fd5e16adbf2bf0b0aaa89e491b5 | /testHeaderFiles/tetsHeaderFiles.cpp | bcfee582dbded3daee832c13e9d6e215534e50b7 | [] | no_license | foocoder/TestCPP | 7db2c4863fd8eb0bcdd940643022720632f08e23 | 5e7b02c01c31ed164a99862fe7e53c97696e9016 | refs/heads/master | 2021-01-23T12:46:56.034797 | 2017-09-11T15:19:49 | 2017-09-11T15:19:49 | 53,111,383 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cpp | tetsHeaderFiles.cpp | // ---- Program Info Start----
//FileName: tetsHeaderFiles.cpp
//
//Author: Fuchen Duan
//
//Email: slow295185031@gmail.com
//
//CreatedAt: 2016-03-22 10:51:46
// ---- Program Info End ----
#include <iostream>
#include "tetsHeaderFiles.h"
#include "tetsHeaderFiles1.h"
using namespace std;
int f... |
ebd2f6500683ab12782996efd96bfa535efe802d | e5ae07079109b03e1e421bfeae901e9ba82773c9 | /src/mempool/mempoolcomponent.h | 470a80d9554cb5a53606dd4faca2f4ac7906083b | [
"MIT"
] | permissive | bluesnowcandy/SuperBitcoin | e3dc180811415dc0d172a874b7d4972e5be61293 | 94097096b3e2c2934e99ac05a7e218776651eb1a | refs/heads/master | 2020-03-21T22:32:15.761337 | 2018-06-23T07:17:13 | 2018-06-23T07:17:13 | 139,132,849 | 1 | 0 | null | 2018-06-29T09:55:09 | 2018-06-29T09:55:08 | null | UTF-8 | C++ | false | false | 1,706 | h | mempoolcomponent.h | ///////////////////////////////////////////////////////////
// mempoolcomponent.h
// Created on: 7-3-2018 16:40:57
// Original author: marco
///////////////////////////////////////////////////////////
#pragma once
#include <stdint.h>
#include <log4cpp/Category.hh>
#include "util.h"
#include "interface/imempoo... |
b4c22d316237b43a55ef7d4eeb91b3b51a269d10 | cfa0d73422fc32c12f8bade7355a68e0fd0581d9 | /week_6_2/1/test.cpp | d75b5fbaa0f0ff173835ee582a11e1abb664ef0e | [] | no_license | wususu/cpp-assignment | 2abb216fbc4dbfeb88b553efe58b5a6a596b4c00 | ee2ef5bffb292dca314d14f524c4dea97740b433 | refs/heads/master | 2021-09-02T10:45:22.715833 | 2018-01-02T01:48:05 | 2018-01-02T01:48:05 | 104,063,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 220 | cpp | test.cpp | #include <iostream>
#include "golf.h"
int main()
{
golf user[10];
for(int i=0; i<10; i++)
{
setgolf(user[i]);
}
for(int i=0; i<10; i++)
{
showgolf(user[i]);
}
return 0;
} |
12c445850e11322aa26d60f8405213029dbf5e57 | 7c4704d447dfd4c98e79045276f843e8272cff06 | /abc46/a.cpp | 1bf70882ac732a8c5c405a5bddbc726eca1b71e6 | [] | no_license | ratea/abc | 63f30cc5c362609c33cac9cebf12125e89dc656c | 66ea8922587bf994c206c7d0bc91290157530c8c | refs/heads/master | 2021-01-20T09:06:53.089128 | 2018-01-24T20:34:04 | 2018-01-24T20:34:04 | 90,221,158 | 0 | 1 | null | 2017-05-07T14:49:51 | 2017-05-04T04:20:27 | C++ | UTF-8 | C++ | false | false | 206 | cpp | a.cpp | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
int ans = 3;
if(a==b)ans--;
if(c==b)ans--;
if(a==c)ans--;
if(ans==0)ans=1;
cout<<ans<<endl;
return 0;
} |
c021a29a52e15afdb00fe7c672c20ff5977702a9 | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/V8/v7.9.317/src/builtins/builtins-microtask-queue-gen.cc | 62aee3b300b37184426f746b5d02e1d18a49d58b | [
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"BSL-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 21,855 | cc | builtins-microtask-queue-gen.cc | // Copyright 2018 the V8 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.
#include "src/api/api.h"
#include "src/builtins/builtins-utils-gen.h"
#include "src/codegen/code-stub-assembler.h"
#include "src/execution/microtask-que... |
8de1ed68016bd1d9bfde3cba317919d7f49eca8a | 1d40d80e75e4a1529f50e7a2bc8bf396281d24c1 | /src/kbookmarkmanager.cpp | 56d6acc1d65bbc47e00f59e5cf0c78a0aa21dbdd | [] | no_license | KDE/kbookmarks | 1d884764b369b26ae924d7b93a9152cf4fcd88f7 | e5daf758f056bf020a699b5de3fb8a8612173b82 | refs/heads/master | 2023-09-03T18:13:31.154655 | 2023-09-03T02:53:09 | 2023-09-03T02:53:09 | 42,732,619 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,916 | cpp | kbookmarkmanager.cpp | // -*- c-basic-offset:4; indent-tabs-mode:nil -*-
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 2000 David Faure <faure@kde.org>
SPDX-FileCopyrightText: 2003 Alexander Kellett <lypanov@kde.org>
SPDX-FileCopyrightText: 2008 Norbert Frese <nf2@scheinwelt.at>
SPDX-License-Identifie... |
863a2102125faf7945c448ae8cee98e18a8a95f2 | e372d895d7a55b9031403ce04822ae1c36ab055f | /d06/ex02/Base.class.cpp | f23954e4d50add5598f07fe03e917041b9d2402a | [] | no_license | maryna-kryshchuk/CPP-Piscine | 9b74766a5aa31dbf0ff7026a86b5bdb9a9e9f09f | 1bd945498f5d7ec2809b43ee77eea520ede4cee6 | refs/heads/master | 2021-09-17T14:00:19.635452 | 2018-07-02T11:31:03 | 2018-07-02T11:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | Base.class.cpp | // ************************************************************************** //
// //
// ::: :::::::: //
// Base.class.cpp :+: :+: :+: //... |
e6b821103582e85428974a256ace98ff4a37858c | eed7f497c013890e6df4ba9f30c63453aef484b1 | /TileBag.h | de1acafdcc162ba28daabcab7412b2255fa76302 | [] | no_license | aalonto/MAA-Azul-Game | e1050eff6638d1ff646c70d3136c7b80ef048e4e | dfb2e5b32167240353c31f8a115ebbb6e1ecea5c | refs/heads/master | 2023-03-08T19:44:02.564144 | 2020-05-20T03:02:55 | 2020-05-20T03:02:55 | 264,061,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | h | TileBag.h | #ifndef TILEBAG_H
#define TILEBAG_H
#include "Tile.h"
#include <istream>
class Node {
public:
Node(TilePtr tile, Node* next);
Node(Node& other);
TilePtr tile;
Node* next;
};
class TileBag {
public:
TileBag();
~TileBag();
unsigned int size();
void addTile(TilePtr tile);
void remo... |
a228f29f0f60846a0bf12e35fa7a5245d8f4ae12 | 3f4062c28e027ec4c928bd94bab96d9c7a5904bc | /Entities/Array/ArrayValue.h | 98cf873fde4e171cba4384f3500388b824347b62 | [] | no_license | ELOVSKIY/JOSLIN | 8d1cfdd88be40636694253064a96c9dd704370c1 | 685a514aa46feea5f3d1664563ca029d5bc190a2 | refs/heads/master | 2020-09-30T20:21:46.084969 | 2019-12-11T12:51:14 | 2019-12-11T12:51:14 | 227,365,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | ArrayValue.h | //---------------------------------------------------------------------------
#ifndef ArrayValueH
#define ArrayValueH
#include "Value.h"
class ArrayValue: public Value {
private:
Value *arrayValue;
public:
ArrayValue(string name, Value *value);
Value * getArrayValue();
};
//----------------------------... |
3fb3444191c4f2105ca8d8622ddf34c34a1b7536 | 847245c3b5935b9b76a8442da9fce02ae36e9309 | /Main.cpp | 5834929fc918c970fab3d6de4143a42c0e7a990f | [] | no_license | AndrewGREMORI/Dynamic_structure | c90fe06e9bbddbedb1eb5408574c588fa0379a19 | 5317b5bea1c4bae32f2c3bb99efaa7ff71ba84e0 | refs/heads/master | 2021-01-13T00:52:24.850134 | 2015-12-26T10:39:09 | 2015-12-26T10:39:09 | 43,589,871 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | Main.cpp | // Stack_(1_1).cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include "Stack.h"
int main()
{
Node *top = first(1);
int k;
cout << "Enter";
cin >> k;
for (int i = 2; i < k; i++)
push(&top, i);
cout << "Print" <<endl;
print(top);
cout << endl<< endl <<"Print and... |
76f89366e4fe383b6cfbc8a56ac7d2c22d78e7df | 81b4f76dbcfd42b95953adfe5c8158e9e1a60896 | /AttendanceRecord/Canceled.xaml.h | 14164b9533ee773af7e18da9cfe510bf4cf46859 | [] | no_license | re-ma2000/proapp2019 | 0229fdac62b6db0ff993da55f76b5afa25f1ec56 | 55b5b56ed265d13c0e9835c5a47503f402eab79e | refs/heads/master | 2020-07-29T06:49:06.214748 | 2019-10-11T03:11:53 | 2019-10-11T03:11:53 | 209,704,380 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | h | Canceled.xaml.h | //
// Canceled.xaml.h
// Canceled クラスの宣言
//
#pragma once
#include "Canceled.g.h"
namespace AttendanceRecord
{
/// <summary>
/// それ自体で使用できる空白ページまたはフレーム内に移動できる空白ページ。
/// </summary>
[Windows::Foundation::Metadata::WebHostHidden]
public ref class Canceled sealed
{
public:
Canceled();
private:
void button_Ma... |
332085e88a8d869836c664c48ccd3470e87db944 | 423cc5d4f67ecf06e084a8715d0fb65b7afa1a12 | /5. Queue/Queue1/Queue1/Queue1_main.cpp | 209707917c1db81c1a2e71f282adc594d294e127 | [] | no_license | barnaba94/C-Projects | f85d2bebe15bd6787c404a5b4c06fe78a0b6907c | 8d7f2b7093e298e71647189f04516309d4fbd400 | refs/heads/master | 2021-04-18T22:08:15.920701 | 2018-03-25T12:50:02 | 2018-03-25T12:50:02 | 126,691,184 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 721 | cpp | Queue1_main.cpp | // Queue1.cpp: Określa punkt wejścia dla aplikacji konsoli.
//
#include "queue.h"
//TEST
#define MAX 100
void QBuild( Queque*, int);
void QPrint( Queque*);
int main(int argc , char* argv[])
{
Queque* que = QCreate();
QBuild(que, MAX);
QDequeue(que);
QDequeue(que);
QEnqueue( que, 10 );
QPrint(que);
QD... |
677751b9da08a8f8d2045d16205be6b94a6d214e | 20a9846649c09dd847b1ebb34e36c733045ef740 | /SC.Game/Details.IntegratedFactory.cpp | 82b9ebe749c7cb5481b4dc948d313594d7516f21 | [] | no_license | CC-s-DDAKARI/Touhou_Hourai_Story | a0c5cf0821a4ccc798f1dca5335754e47a9fe664 | 051c625e3497c76dff3e3ef5efac88b7cbf86938 | refs/heads/master | 2021-03-12T03:10:48.003052 | 2020-04-03T16:19:24 | 2020-04-03T16:19:24 | 246,584,604 | 3 | 1 | null | null | null | null | UHC | C++ | false | false | 1,236 | cpp | Details.IntegratedFactory.cpp | using namespace SC;
using namespace SC::Game;
using namespace SC::Game::Details;
using namespace std;
IntegratedFactory::IntegratedFactory()
{
// COM 기능을 사용하는 구성 요소를 사용하기 위해 CoInitialize 함수를 호출합니다.
HR( CoInitializeEx( nullptr, COINIT_MULTITHREADED ) );
// DXGI 팩토리 개체를 생성합니다.
HR( CreateDXGIFactory( IID_PPV_ARGS( ... |
cb8c1c9d1c736ca4c93a942c92ccc6b5d176f007 | 5f552344baa57f868f167b0c0a94e7657cdc78f4 | /lab14/lab14.cpp | 949e3d7de53bccb82691091039457a804001f60e | [] | no_license | rslater003/RileySlater-CSCI20-SPR2017 | dd93b2c09c3e9900595b209e407c7b923637b6dd | 85199e6ef98a663104a53d69ad1f0d00cfa6fdd2 | refs/heads/master | 2021-01-11T14:34:24.146913 | 2017-05-09T21:56:35 | 2017-05-09T21:56:35 | 80,164,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,919 | cpp | lab14.cpp | //Riley Slater
//February 9, 2017
//This Program asks user if they would like to use a certain coin, by inputting a number corresponding to different coins.
//Then it asks how much change user has as a whole number. Converts that into minimum amounts of coins used. Then deducts a 10.9% fee for the service.
#include <i... |
00804f89d4ccf0047d88cca4e77ae7a0f1c5d99c | 70f1c9f7814ce0ba808176f3eda43930e28ffa73 | /z__MRTestDev/ExperimentDllLoader/ExperimentDllLoader.cpp | 76bf1765ec178b15f969202871376788938f68a6 | [] | no_license | MichaelRoop/CPP_TestHarness | 9acff5fcc0c1d4ca87eedaa6d6f715657d68f3ee | 3d4008a20ab03e4f51606e5c098a5a4c901ee1e2 | refs/heads/master | 2021-01-10T20:28:57.798744 | 2013-10-20T23:15:25 | 2013-10-20T23:15:25 | 5,349,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,420 | cpp | ExperimentDllLoader.cpp | // ExperimentDllLoader.cpp : Defines the entry point for the console application.
//
//#define WIN32_LEAN_AND_MEAN
//#define VC_EXTRALEAN
#include "windows.h"
//#include <WinNT.h>
//#include "stdafx.h"
#include <string>
#include <vector>
#include <iostream>
#include <assert.h>
#include <algorithm>
//#include "Winbas... |
8a62a5c768312b05587e7ee72659ff8843bd0185 | ad454f987ebde118c38081850527eb0f8e6d422b | /202_197_224_59/ex3/1296.cpp | 68688aedbddd57c120401a3112fa0f4347aa3c10 | [] | no_license | BackTo2012/homework | b6e2f3e2a9a91dcc444b374214de1a6f85b73b7d | 79857e0a468eceb5618d8cfdd3abc851ec9819e0 | refs/heads/master | 2023-01-13T14:08:48.377637 | 2020-11-06T02:13:48 | 2020-11-06T02:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 277 | cpp | 1296.cpp | //GCD
#include <cstdio>
int main() {
int K;
int a, b;
scanf("%d", &K);
while (K--) {
scanf("%d %d", &a, &b);
a--;
int sa = a - a/2 - a/3 + a/6;
int sb = b - b/2 - b/3 + b/6;
printf("%d\n", sb - sa);
}
return 0;
} |
a298507b5df07cc45052dc0d4cdd81308b3197fa | b3a8c68db3e202c7296026f46cfc9ce8661018a4 | /N-Queens.cpp | a3b8d1add92863d2b7a3d6e7ccd7ac54b9270d46 | [] | no_license | sampatghosh/leetcode-solutions | 5d1613561022f1fb3fc17e78493eebcec9d86c9e | ed60b6ef24fd138d7f69ac8c512e058951ce770a | refs/heads/master | 2022-12-13T19:11:30.950024 | 2020-09-09T18:22:21 | 2020-09-09T18:22:21 | 294,072,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,418 | cpp | N-Queens.cpp | class Solution {
public:
vector<vector<string>> out;
bool valid(vector<string>& board, int i, int j) {
int x = i-1, y = j-1;
while(x >= 0 && y >= 0) {
if(board[x][y] == 'Q')
return false;
--x;
--y;
}
x = i - 1;
... |
4176ebeca5696c252723018098c65c94e310452f | 5ee7b59b955ebde297f0dd924382a96a79771681 | /dbsplnr/PlnrMBlock.cpp | 3ca2e48199ba2596b9a0161e9470d25cca58e151 | [] | no_license | epsitech/planar | a3b22468e6718342218143538a93e7af50debee0 | e97374190feaf229dac4ec941e19f6661150e400 | refs/heads/master | 2021-01-21T04:25:32.542626 | 2016-08-07T19:20:49 | 2016-08-07T19:20:49 | 48,572,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,624 | cpp | PlnrMBlock.cpp | /**
* \file PlnrMBlock.cpp
* database access for table TblPlnrMBlock (implementation)
* \author Alexander Wirthmueller
* \date created: 4 Dec 2015
* \date modified: 4 Dec 2015
*/
#include "PlnrMBlock.h"
/******************************************************************************
class PlnrMBlock
****... |
1fb05fc8df621777bc59e373fbbc7b4e01b8839e | 8c92baa9eb58de359dec00a785c7648b31076b03 | /infoarena_campion/arb_rad.cpp | 8d952332527a107f179354f97b98b2ef9a149971 | [] | no_license | george-popoiu/infoarena_campion | 2e5f2433c4fe4252d11765411cb0ff4ed4eb941a | 22569d32ac87f8031d9fdaf123da4adf4a7b2a9e | refs/heads/master | 2021-01-19T14:59:04.887725 | 2012-08-08T12:42:30 | 2012-08-08T12:42:30 | 5,341,237 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 551 | cpp | arb_rad.cpp | #include<fstream>
#define inf "arb_rad.in"
#define outf "arb_rad.out"
using namespace std;
fstream f(inf,ios::in),g(outf,ios::out);
int n,k;
int A[100][100],T[100],s[100];
void read()
{
int a,b;
f>>n>>k;
for(int i=1; i<n; i++) f>>a>>b , A[a][b]=A[b][a]=1;
}
void dfs(int nod)
{
s[nod]=1;
for(int k=1; k<=n... |
3816cdd1a642b46abf6a1347eb7376609ed1a6fb | 84506a2cdca98277924f921f34c2583020bf0434 | /DieTogether/Source/DieTogether/DieTogetherGameMode.cpp | 0d0ae76adcf8187ce5c81b4452eb0722c8160e16 | [
"MIT"
] | permissive | AndreasRoither/die-together | fe15e37409434ac3927affde5eb7fcc9cc06b8b5 | efc5d06fdb5a094bc2e5fd3f45441912fc913b9f | refs/heads/master | 2023-07-16T11:41:33.841949 | 2021-08-30T07:50:48 | 2021-08-30T07:50:48 | 248,736,334 | 0 | 1 | null | 2021-08-30T07:50:20 | 2020-03-20T11:13:44 | CMake | UTF-8 | C++ | false | false | 339 | cpp | DieTogetherGameMode.cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "DieTogetherGameMode.h"
#include "character/GodCharacter.h"
ADieTogetherGameMode::ADieTogetherGameMode()
{
// Set default pawn class to our character
DefaultPawnClass = AGodCharacter::StaticClass();
//PlayerControllerClass = AGodPlayerController... |
9e543d3d0d3681156381dbca4c5f3a5be46f9d1c | 5bcdcdded8ff12f4b6c5e94a776cef19c517d3f9 | /DHT11/DHT11.ino | 575952cebba5d1178586163d838572812f3f3a6d | [] | no_license | nkj06/StudyArduino | 5c4b161d8a00c87535770b43b018dec4141dd588 | 965977d2e3cac787cc350658bd206ac89c0e15d3 | refs/heads/master | 2022-12-02T06:34:02.330627 | 2020-08-19T01:03:19 | 2020-08-19T01:03:19 | 288,596,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | ino | DHT11.ino | // 온습도 센서
// 툴 - 라이브러리 관리에서 DHT 검색해서 설치
#include <DHT.h>
#define DHTTYPE DHT11
int dhtPin = 8;
int vcc = 9;
int ground = 10;
DHT dht(dhtPin, DHTTYPE);
void setup() {
Serial.begin(9600);
pinMode(dhtPin, INPUT);
pinMode(vcc, OUTPUT);
pinMode(ground, OUTPUT);
digitalWrite(vcc, HIGH);
digitalWrite(ground, ... |
9f3176c68fcca5d462ed1c5e3db510e07a89bdef | 8b46bcd539b39927689cfa7dedf6313cee3a6aca | /CGLUTInterface.h | 0ce30a9902e2f315d022a380ab6668c7e1e2ce90 | [] | no_license | 3buson/ioncon | 66d96234db7cc8770d8e3dc3ceccd9a00e296c5d | 84b3a55100875e942b90844d2e18ddd9b60798d6 | refs/heads/master | 2020-02-26T17:27:56.386954 | 2014-01-12T20:39:41 | 2014-01-12T20:39:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,758 | h | CGLUTInterface.h | #ifndef CGLUT_INTERFACE_H_INCL
#define CGLUT_INTERFACE_H_INCL
#include "opengl.h"
#include "CEventReceiver.h"
class CGLUTInterface
{
public:
static void connect(CEventReceiver* er)
{
printf("Connecting application interface...\n");
EventReceiver = er;
glutDisplayFunc(displayFunc);
glutIdleFunc(idleFunc);
... |
bad65b3bcfc080045e2a8155831eec8078326bc7 | b61aea9dfd5463d1d43440e18eddf3e65a12af63 | /CSGOSimple/autostrafe.cpp | 53d833b0897f29f2e79f9ee9ad20a3713ebbaf20 | [] | no_license | asdlei99/sssssssss | 757dd177bab85bd2ee8e491a730b73501f6049a3 | c311736c694b02d5604ce756bc943f54777f3f50 | refs/heads/master | 2020-12-24T03:52:33.067209 | 2017-12-14T03:25:23 | 2017-12-14T03:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | autostrafe.cpp | #include "autostrafe.hpp"
#include "valve_sdk/csgostructs.hpp"
void AutoStrafe::OnCreateMove(CUserCmd* cmd)
{
if (!g_LocalPlayer || !g_LocalPlayer->IsAlive())
return;
if ((GetAsyncKeyState(VK_SPACE) && !(g_LocalPlayer->m_fFlags() & FL_ONGROUND)))
{
if (cmd->mousedx > 1 || cmd->mousedx < -1)
{
cmd->sidem... |
a117b4a56fec7a810be66f669a3adbc8add8ccee | c9042c65d6c7a632cfd903a56e52a42903464467 | /FsGame/NpcBaseModule/AI/Rule/ChaseTarget/AIRChaseTargetBase.cpp | 0fdf3b5c048fce19df1813d9e2c9680fe9efd4a6 | [] | no_license | cnsuhao/myown | 4048a2a878b744636a88a2090739e39698904964 | 50dab74b9ab32cba8b0eb6cf23cf9f95a5d7f3e4 | refs/heads/master | 2021-09-10T23:48:25.187878 | 2018-04-04T09:33:30 | 2018-04-04T09:33:30 | 140,817,274 | 2 | 2 | null | null | null | null | GB18030 | C++ | false | false | 3,900 | cpp | AIRChaseTargetBase.cpp | //--------------------------------------------------------------------
// 文件名: AIRChaseTargetBase.h
// 内 容: 基本追击规则
// 说 明:
// 创建日期: 2014年12月31日
// 创建人:
// 修改人:
// :
//--------------------------------------------------------------------
#include "AIRChaseTargetBase.h"
#include "Fs... |
3654188d791e848756d19c56805bd6e0c498a458 | 91f1e7fd3451ec7a83307cc935a305fc1a1bfed4 | /last_ver/retdir/import.cpp | a13f02508edcd1ad95b4dd022e567be32e5d9615 | [] | no_license | ernesto341/ais-research | dd903666c6e3bce7d635d5506c811b5a24ac1ef8 | 38873f1ea43314094e35ef0a9046ddc3bbe2c15a | refs/heads/master | 2020-06-29T05:55:56.313548 | 2015-06-18T00:51:05 | 2015-06-18T00:51:05 | 25,174,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,024 | cpp | import.cpp | #include <import.hpp>
using namespace std;
struct stat buf;
void onDemandImport (int sign)
{
if (DEBUG)
{
cerr << "recieved import signal!\n" << flush;
}
if (sign != SIGUSR1)
{
if (DEBUG)
{
cerr << "onDema... |
ec0cf75524c45742d4ff952a476fdce7e6e910ad | cc88f042da9e65aad45d9b09cf43de4f8c255849 | /src/Pruebas/PruebasSolicitud.cpp | 49956be6970b8e5808dc4dc0aa62c0e16274b2c5 | [] | no_license | frojomar/edi2015-16 | 20370c21cb3cb1fba5414c4cb87879531a1ab327 | 104d19034fcf6845a4506aaddeb1f0e5d144ddb9 | refs/heads/master | 2020-03-29T23:40:24.116938 | 2018-09-26T20:08:53 | 2018-09-26T20:08:53 | 150,483,297 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,592 | cpp | PruebasSolicitud.cpp | /*
* PruebasSolicitud.cpp
*
* Created on: 04/04/2016
* Author: FRANCISCO JAVIER ROJO MARTÍN DNI:76042262-F
*/
#include <iostream>
//#include "../Solicitud.h"
#include "Pruebas.h"
using namespace std;
void pr_Solicitud(){
cout<<" --Inicio pruebas de los constructores de Solicitud"<<endl;
Solicitud s;
... |
d8d68c6c9bc8bcea8eac7ae20d130ba49db14e4c | f678d3a6d93f949eaf286d41a3270f430726b615 | /read_n_chars_given_read4_2/main.cpp | 7680fea1f8e62a0a4903f3f67e21acecc0cf350b | [] | no_license | yinxx/leetcode | aa1eac1b513c4ed44613cc55de3daa67e1760c65 | 8a6954928acb0961ec3b65d7b7882305c0e617cf | refs/heads/master | 2020-03-20T16:45:12.669033 | 2017-12-25T03:35:34 | 2017-12-25T03:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,173 | cpp | main.cpp | #include <iostream>
// Forward declaration of the read4 API.
int read4(char *buf);
class Solution {
private:
static const int BUFFER_SIZE = 4;
char cache[BUFFER_SIZE];
int size;
int offset;
bool done;
public:
Solution(){
size = 0;
offset = 0;
done = false;
}
/**... |
3de1016c3c0087cccf96d422aa095180b994050c | 5d0165a2b2a5115b52d5769af3a64c12385e6132 | /MatrixGenerator.cpp | 71640b62028d54f816620092ab4cb165c9729dfe | [] | no_license | KokBaiSheng/InterviewProject | c61a385e9fe94ed7b84b49bb89dea3e408bbefd4 | 7edaae5fe170b59fb9e3ca1e2140802583cd1105 | refs/heads/master | 2020-03-20T21:38:24.981288 | 2018-07-08T13:26:47 | 2018-07-08T13:26:47 | 137,751,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,223 | cpp | MatrixGenerator.cpp | #include<iostream>
#include<fstream>
#include<vector>
void printMatrix(std::vector<std::vector<int>> const & inMatrix, std::string const & fileName)
{
//open outputfilestream
std::fstream ofs;
ofs.open (fileName, std::fstream::out | std::fstream::trunc | std::fstream::binary);
if(ofs.is_open())
{
// get row an... |
dd1db7f1f16dc58d2f531228aa6ded33274a2d21 | fd88bf8bf77affc30af4fbd9b2e3916bdaa0789b | /test/com/ComModTestAAF/ModuleTests/CAAFContentStorageTest.cpp | d440887886c9b5a5bfb9a8e2142228f50b8c29eb | [] | no_license | jhliberty/AAF | 6e6a7d898d42e6e91690c76afbc4cf581cc716fc | af8c9d43461ab556bd6cf8d98b0f001eb7b87cfe | refs/heads/master | 2021-01-08T11:37:10.299319 | 2016-08-16T02:49:39 | 2016-08-16T02:49:39 | 65,782,219 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,590 | cpp | CAAFContentStorageTest.cpp | // @doc INTERNAL
// @com This file implements the module test for CAAFContentStorage
//=---------------------------------------------------------------------=
//
// $Id: CAAFContentStorageTest.cpp,v 1.37 2009/06/01 11:47:11 stuart_hc Exp $ $Name: V116 $
//
// The contents of this file are subject to the AAF SDK Public ... |
8a41970a083a55ac4543b836e68a56a851641b3c | 2d314658588ed72f399365fb1e8ad85b0e795c75 | /src/Game/PathManager.h | 1092a34ee793f513ed97279be4f01d0723ead570 | [] | no_license | NBK/NBK | b82f7c720241032bb086c5436c34caadc121141d | c46498c6dac032f2bf8d3819f5277aef239e525e | refs/heads/master | 2016-09-15T17:14:37.473185 | 2013-11-29T00:11:47 | 2013-11-29T00:11:47 | 2,650,959 | 12 | 4 | null | 2012-11-04T21:10:23 | 2011-10-26T13:20:32 | C | UTF-8 | C++ | false | false | 2,568 | h | PathManager.h | #ifndef PATH_MANAGER_H
#define PATH_MANAGER_H
#include "Manager.h"
#include "RenderManager.h"
#include "ConsoleListener.h"
#include "BinaryHeap.h"
/* In charge of finding paths between squares */
#define inNeither 0
#define inOpened 1
#define inClosed 2
namespace game_utils
{
namespace managers
{
class CPathMan... |
ec02700f9ddb5bc45bd5cb13f73edc88f70c157c | 1e1a877949621fd6ae6353c4814f165b5e220388 | /DYNAMIC PROGRAMMING/zeroNknapsack.cpp | 7501db2fa285cd4d8bb059266a2808373aa099a0 | [] | no_license | aman212yadav/PRACTICE | b7f930fe010f72678e6bff9f2c98cf9a0c2c3fff | 1cd25d1e3d1436fa3ee0747c561f3982289fc6b7 | refs/heads/master | 2020-04-12T23:57:25.251011 | 2020-01-17T17:50:29 | 2020-01-17T17:50:29 | 162,834,586 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | cpp | zeroNknapsack.cpp | // https://hack.codingblocks.com/practice/p/346/922
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,s,i,j;
cin>>n>>s;
int sizee[n+1],cost[n+1];
for(i=1;i<=n;i++)
cin>>sizee[i];
for(i=1;i<=n;i++)
cin>>cost[i];
long long dp[n+1][s+1];
for(i=0;i<=s;i++)
dp[0][i]=0;
for(i=0;i<=n;i++)
... |
b03233a7fcc8300591681441e7f263795ec78673 | 9b7fde4cace1e2fad65490ab620212c131894a0d | /InterfaceKit/ext/Haiku/CustomTextView.h | da97b05f950ce99b188a36d74541195278dd78c1 | [] | no_license | gitpan/HaikuKits | e27f2b065a6d1dc88fd2fdd565d3da8e4e6b8ef6 | 3dd1ba7d66892e8e18bdb0ade19b059ec0846814 | refs/heads/master | 2021-01-19T02:41:22.867459 | 2011-08-20T15:38:18 | 2014-10-26T03:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | h | CustomTextView.h | /*
* Automatically generated file
*/
class Custom_BTextView : public BTextView {
public:
Custom_BTextView(BRect frame, const char* name, BRect textRect, uint32 resizingMode, uint32 flags);
Custom_BTextView(BRect frame, const char* name, BRect textRect, BFont* font, rgb_color* color, uint32 resizingMode, uint32 ... |
b533a61913fbd6fef338b1d83f38291c1013e656 | 1dbb60db92072801e3e7eaf6645ef776e2a26b29 | /server/src/so_sharedb/market_pro.cpp | 38465d2b3910988906c3d4a97d56bad683296030 | [] | no_license | atom-chen/phone-code | 5a05472fcf2852d1943ad869b37603a4901749d5 | c0c0f112c9a2570cc0390703b1bff56d67508e89 | refs/heads/master | 2020-07-05T01:15:00.585018 | 2015-06-17T08:52:21 | 2015-06-17T08:52:21 | 202,480,234 | 0 | 1 | null | 2019-08-15T05:36:11 | 2019-08-15T05:36:09 | null | UTF-8 | C++ | false | false | 2,742 | cpp | market_pro.cpp | #include "pro.h"
#include "proto/market.h"
#include "proto/constant.h"
MSG_FUNC( PQMarketList )
{
wd::CSql* sql = sql::get( "share" );
if ( sql == NULL )
return;
QuerySql( "select cargo_id, sid, role_id, cate, objid, val, percent, start_time, down_time, buy_name, buy_count, money from market_sell"... |
5cafcb5d558253f739c335ae1e9a770c336bd30c | aa56d3921a55f307743b58f91f214ddacb93e02a | /Engine/src/Engine/Graphics/buffers/VertexArray.cpp | 56913aef91ebbc1c58cc31b96ca302cebd7ef867 | [
"Apache-2.0"
] | permissive | AustinLynes/Arcana-Tools | 3b4da2e40e52f062e42c512bb838281ee542f717 | ce585d552e30174c4c629a9ea05e7f83947499a5 | refs/heads/master | 2023-07-13T10:40:59.200943 | 2021-08-02T01:27:55 | 2021-08-02T01:27:55 | 389,682,422 | 0 | 0 | Apache-2.0 | 2021-08-02T01:27:56 | 2021-07-26T15:32:39 | C++ | UTF-8 | C++ | false | false | 316 | cpp | VertexArray.cpp | #include "VertexArray.h"
#include "Engine/Graphics/renderers/Renderer3D.h"
#include "Platform/OpenGL/OpenGLVertexArray.h"
namespace ArcanaTools {
VertexArray* VertexArray::Create()
{
switch (Renderer3D::GetAPI()) {
case RenderAPI::API::OPENGL:
return new OpenGLVertexArray();
}
return nullptr;
}
} |
959bcad0c49ef116e769095fd0563e7b9e462cec | 498f5629f15083ac5dbbb3ba73f90bf59067f2e5 | /codeforces/A. Panoramix's Prediction.cpp | 845114ceff2d669c90ebfdb923788ec959c191f4 | [] | no_license | priyanshuN/Algorithms | b3103722fd6657d6507d72d73ba80b35e3a196dd | 22559ffc50939256f2324afd313d4a32bb63f6ac | refs/heads/master | 2022-01-31T06:17:52.577691 | 2022-01-08T14:33:56 | 2022-01-08T14:33:56 | 244,685,281 | 1 | 0 | null | 2022-01-08T14:33:57 | 2020-03-03T16:24:45 | C++ | UTF-8 | C++ | false | false | 353 | cpp | A. Panoramix's Prediction.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,z,i,j;
cin>>n>>m;
for(i=n+1;i>0;++i)
{
for(j=2;j<=i;++j)
{
if(i%j==0)
break;
}
if(j==i)
break;
}
if(j==m)
cout<<"YES";
else
... |
d665f82b0c8def3a038abcf1db7859b464dfacfa | 07fba37300811ce470313379d9a6e0faffaf90ef | /Processes.hh | 7f297184e973a9b024bb690b42331f7cb0bc39f8 | [
"MIT"
] | permissive | Pseudomanifold/Pump | b37e9c56476e1f24a11b3688c553f43b5f5f16d7 | c7cdc1e7c8acd2e568a1d2925313507e5bb391dd | refs/heads/master | 2021-06-14T11:09:23.535474 | 2017-02-09T08:14:00 | 2017-02-09T08:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | hh | Processes.hh | #ifndef PUMP_PROCESSES_HH__
#define PUMP_PROCESSES_HH__
#include <string>
namespace pump
{
/*
Executes the given command and returns its output, i.e. everything
that is written to STDOUT. An empty string is not necessarily
indicative of an error.
*/
std::string get_stdout( const std::string& command );
} // ... |
11ab51810e4a3c8c5815911119c448f383d213c4 | 3d4ba7ae1b5e197f77dd7934f9fa136b1ea4cc63 | /GeeksFoGeeks/WaterThePlants.cpp | 3273211139da53d7160548c31569da744caa0e5a | [] | no_license | Debashish-hub/Problems-Of-The-Day | 9fc0dc86299875c38262d55c3d62b12f84df1d6f | 3a28a8b186ad2431dc4a89b4a7a0f51a3def67a6 | refs/heads/main | 2023-07-02T20:19:59.576008 | 2021-08-06T07:18:33 | 2021-08-06T07:18:33 | 376,271,621 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,844 | cpp | WaterThePlants.cpp | // Water the plants
// A gallery with plants is divided into n parts, numbered : 0,1,2,3...n-1. There are provisions for
// attaching water sprinklers at every partition. A sprinkler with range x at partition i can water all
// partitions from i-x to i+x.
// Given an array gallery[ ] consisting of n integers, where... |
f604421cb246aeebe5a50fe9e1234537cb6e2a50 | e00bb8614664a45a5863dbbd1af0706b4fbdc5c9 | /9.表达式求值.cpp | 9ef2a56eb6ffc3968a60fee4ee7476e857cb2a1e | [] | no_license | ArgentumHook/BITSS-Data-Structure | 4ab84724622720f8d2b6f62f48b8f48cd8bae23a | efc4d5b0b68fed979e9307e095be9ec5300b7b29 | refs/heads/master | 2022-04-22T20:07:04.374144 | 2020-04-23T06:00:33 | 2020-04-23T06:00:33 | 256,190,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,714 | cpp | 9.表达式求值.cpp | #include<cstdio>
#include<cstring>
#include<stack>
#include<iostream>
using namespace std;
stack<char> OP;
stack<int> Number;
char str[100005];
int errorType;
int fpow(int a, int b)
{
int ans = 1;
while (b>0)
{
if (b % 2 == 1)
ans *= a;
b /= 2;
a *= a;
}
return ans;
}
int isp(char ... |
808a16c85a8a796bd6b09959cf4beed3265b0fad | 412c58404a2937f180838a0d436ea77a1e88aa50 | /src/common/tm_assert.inc | 54be483dfaf257d7eb1fb36209f03dd441bb7f58 | [
"Unlicense",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | ExternalRepositories/tm | 6f54b0e6db0a90f27ba67027a538faec216e1187 | c97a3c14aa769b5a8f94b394b4535cd42eeb31d2 | refs/heads/master | 2023-01-23T18:24:51.311720 | 2020-12-05T11:29:24 | 2020-12-05T11:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116 | inc | tm_assert.inc | /* assert */
#ifndef TM_ASSERT
#include <assert.h>
#define TM_ASSERT assert
#endif /* !defined(TM_ASSERT) */ |
1b131b8e82f7fb5cf3170b1634f3f9d243514ac2 | 3fbd72ac75213181a7b792f1575fbba9638888ae | /3D Engine/src/Renderer/Modules/SkyboxPass.cpp | 78d61f76a3ab652de1561fa4f1bee9ef644d9fb5 | [
"Apache-2.0"
] | permissive | BobDeng1974/SaturnEngine | b40f4d4e8d1da10d3d31fb5422ea578ac4360a3f | 0c4db261f5453c4caf75c08bf26a0d2a13f4be69 | refs/heads/master | 2020-09-22T06:52:30.973463 | 2019-11-16T19:29:27 | 2019-11-16T19:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,199 | cpp | SkyboxPass.cpp | #include "Renderer/Modules/SkyboxPass.hpp"
#include "AssetManager/AssetManager.hpp"
#include "ECS/Components/Camera.hpp"
namespace Saturn::RenderModules {
namespace impl {
std::vector<float> skybox_vertices = {
// positions only
-1.0f, 1.0f, -1.0f, -1.0f, -1.0f, -1.0f, 1.0f, -1.0f, -1.0f,
1.0f, -1.0f,... |
4ea7334859d8078943031cc0fab958ce47131b66 | 9f852b53477cb50b20585eb6e798d5cabeae797a | /Source/MathLab/CoordinateSystem/LineBase.cpp | ba0afd5619c66fd4060d20970848cd15fd8b3d6b | [] | no_license | Spook2U/MathLab | 57864366675487635040ec6b6c1220b831bc6b05 | 8f457194593453249bf8858fc3d60a0084c82889 | refs/heads/master | 2021-01-12T01:05:40.563496 | 2017-03-16T16:55:02 | 2017-03-16T16:55:02 | 78,344,232 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,942 | cpp | LineBase.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "MathLab.h"
#include "LineBase.h"
#include "CoordinateSystemBase.h"
#include "CVectorBase.h"
#include "Lib/MathLabLibrary.h"
// Math Line Structure -------------------------------------------------------------------------------... |
8c079c53a6db8fccd09060830870e54f5df7cb07 | 1c8c7a9f8453680f1e477ce7db1923531b35b065 | /AddressBook.h | 6fdae9b1e0c9aa987c9a3eb7349de94cf4639f5e | [
"BSD-3-Clause"
] | permissive | kytvi2p/i2pd | dbe8c6228c0117317d6daadf4de549817fa73ccb | 73d402525636276ac78aa92ea88535911e21928c | refs/heads/master | 2020-05-31T00:09:45.198691 | 2015-07-06T16:11:17 | 2015-07-06T16:11:17 | 16,423,305 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,248 | h | AddressBook.h | #ifndef ADDRESS_BOOK_H__
#define ADDRESS_BOOK_H__
#include <string.h>
#include <string>
#include <map>
#include <vector>
#include <iostream>
#include <mutex>
#include <boost/asio.hpp>
#include "base64.h"
#include "util.h"
#include "Identity.h"
#include "Log.h"
namespace i2p
{
namespace client
{
const char DEFAULT_SU... |
66d65e4962cc1d7f89f24334a8b95a6dc4010980 | ae956d4076e4fc03b632a8c0e987e9ea5ca89f56 | /SDK/TBP_UI_LobbyMenu_parameters.h | 6e1c8f192be54ed7044332995eafd32f57cf0e9a | [] | no_license | BrownBison/Bloodhunt-BASE | 5c79c00917fcd43c4e1932bee3b94e85c89b6bc7 | 8ae1104b748dd4b294609717142404066b6bc1e6 | refs/heads/main | 2023-08-07T12:04:49.234272 | 2021-10-02T15:13:42 | 2021-10-02T15:13:42 | 638,649,990 | 1 | 0 | null | 2023-05-09T20:02:24 | 2023-05-09T20:02:23 | null | UTF-8 | C++ | false | false | 4,239 | h | TBP_UI_LobbyMenu_parameters.h | #pragma once
// Name: bbbbbbbbbbbbbbbbbbbbbbblod, Version: 1
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//----------------------------------------... |
5d667afefd5b6a5dbb175a31c3c9f3bf4d1133e2 | 3ef99240a541f699d71d676db514a4f3001b0c4b | /UVa Online Judge/v101/10102.cpp | deb80665fa402d426677ff9d63c190282f48458c | [
"MIT"
] | permissive | mjenrungrot/competitive_programming | 36bfdc0e573ea2f8656b66403c15e46044b9818a | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | refs/heads/master | 2022-03-26T04:44:50.396871 | 2022-02-10T11:44:13 | 2022-02-10T11:44:13 | 46,323,679 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,129 | cpp | 10102.cpp | /*=============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 10102.cpp
# Description: UVa Online Judge - 10102
=============================================================================*/
#include <a... |
c17acd69f4e8ade8f210f4e54a6b349c89cea6cf | 0f2b5bc88765b067541736692a4c13fd0555b25d | /Grader/RangeInsert.h | e499b672183d20607bef3fa418db174a94055edb | [] | no_license | Omeracan/cpp_datastruct | dd9da3f7e814216569dc80947f15b286221a10c5 | db1528a1411963638ca56e28fcb25b819bca6627 | refs/heads/master | 2020-04-05T20:55:44.638481 | 2018-11-07T11:45:43 | 2018-11-07T11:45:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | h | RangeInsert.h | #ifndef __STUDENT_H_
#define __STUDENT_H_
template <typename T>
void CP::vector<T>::insert(iterator position,iterator first,iterator last)
{
std::vector<T> insertVector(first,last),temporaryVector(position,end());
resize(position-begin());
for(auto obj : insertVector)push_back(obj);
for(auto obj : tem... |
f8cc9108a8b9438273a3dad53f56e6107f331d38 | dfd413672b1736044ae6ca2e288a69bf9de3cfda | /chrome/browser/history/top_sites.cc | 1206843b0fb9858f999a777f4f76809aa474e082 | [
"BSD-3-Clause"
] | permissive | cha63506/chromium-capsicum | fb71128ba218fec097265908c2f41086cdb99892 | b03da8e897f897c6ad2cda03ceda217b760fd528 | HEAD | 2017-10-03T02:40:24.085668 | 2010-02-01T15:24:05 | 2010-02-01T15:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,830 | cc | top_sites.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/history/top_sites.h"
#include "app/gfx/codec/jpeg_codec.h"
#include "base/logging.h"
#include "third_party/skia/include/core... |
adfe8fd638852ceebe670435035712a398ce9aff | a4a221e9c6a0dd775c8122f51d5bce9cae2e16a6 | /bora/Usuario.cpp | 1f229f004db091f10b29012df01c2373747c98b4 | [] | no_license | AkatoshiVictor/Projeto-TC-AirPlane | 48cd20cd6ea1dd1a2e304440c547c762ca1f929b | 3f38a536e005df2b05a6d5964270322836785c7d | refs/heads/main | 2023-08-28T02:56:16.017572 | 2021-10-12T18:58:17 | 2021-10-12T18:58:17 | 405,777,715 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,174 | cpp | Usuario.cpp | #include "Usuario.h"
Usuario::Usuario(){
}
Usuario::Usuario(string email, string senha, string nome_completo, string data_nascimento,
string endereco, string telefone, string telefone_familiar, string documento,
int classe_do_funcionario, float orcamento, string acompanhante, float ... |
6e3db8bcb9a6bacad3ce67b2fa06c4295be41275 | cad04bb71f3afd50c4df3b2f321cd378d3ad8cb9 | /Book practices/《C++primer》 5th 练习代码/chapter2/Exercise2.35.cpp | 43041e4169b03b3dd9fd213e7cc82d6907b417bf | [] | no_license | SourDumplings/CodeSolutions | 9033de38005b1d90488e64ccbb99f91c7e7b71ec | 5f9eca3fe5701a8fca234343fde31cfcba94cf27 | refs/heads/master | 2023-08-16T17:23:34.977471 | 2023-08-07T13:14:47 | 2023-08-07T13:14:47 | 110,331,879 | 10 | 8 | null | 2023-06-14T22:25:16 | 2017-11-11T08:59:11 | C | UTF-8 | C++ | false | false | 683 | cpp | Exercise2.35.cpp | /*
@Date : 2017-12-14 16:10:21
@Author : 酸饺子 (changzheng300@foxmail.com)
@Link : https://github.com/SourDumplings
@Version : $Id$
*/
/*
p70
运行结果:
i
i
i
PKi
i
i
*/
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <typeinfo>
using namespace std;
int main()
{
const i... |
b988cde6fd331a85fbea928baea21fb84f86f146 | bb9d814e83303e4740e3c30bc6137c6ec99791c5 | /evaluate_odometry.cpp | 29d02537f43f0397eeba3d9151ad1050e4c406e5 | [] | no_license | cds-mipt/kitti-eval-itl | 991b8c10c329e5483ccee670d5c228e7a1be7327 | 93bb748ee72a8ef62f158078e70add30adef8e50 | refs/heads/master | 2021-02-15T22:30:16.776592 | 2020-09-10T10:26:22 | 2020-09-10T10:26:22 | 244,939,059 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,791 | cpp | evaluate_odometry.cpp | #include <iostream>
#include <stdio.h>
#include <math.h>
#include <vector>
#include <limits>
#include <string.h>
#include "mail.h"
#include "matrix.h"
using namespace std;
#define M_PI 3.14159265358979323846
// static parameter
// float lengths[] = ;
int sets_of_lengths_num = 2;
float all_sets_of_lengths[][10] = {{... |
4ea535ee4230a858c301b63dec46ca43ce36279a | dc7c0d331953787810fe8ab63d0e1c6dbfb1e2bb | /Temperature_Humidity_Arduino.ino | cf011dbdf1b19fddf3f21991b3dc9db16e1fabcf | [] | no_license | Siladrok/Processing3_GUI_DHT11 | 7e8a7021bb58bacae611ba969c4d909e18ecd9f5 | 0d33e4d84f9a770286cadde3307b87777f19dea6 | refs/heads/master | 2020-06-22T23:07:17.843015 | 2019-07-23T13:30:13 | 2019-07-23T13:30:13 | 198,425,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | ino | Temperature_Humidity_Arduino.ino | // Written by ladyada, public domain
// REQUIRES the following Arduino libraries:
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor
#include "DHT.h"
//Define the data pin
#define DHTPIN 2
//Define the ... |
03e9a528299cd17763b695ab286da1723482f7b7 | 872770c5323aa17120f2f708a1f0be09e663c9a8 | /Elastos/Framework/Droid/eco/inc/core/webkit/CookieSyncManager.h | d7ffeef7975135f12aa0afd10140df02651d9365 | [] | no_license | xianjimli/Elastos | 76a12b58db23dbf32ecbcefdaf6179510362dd21 | f9f019d266a7e685544596b365cfbc05bda9cb70 | refs/heads/master | 2021-01-11T08:26:17.180908 | 2013-08-21T02:31:17 | 2013-08-21T02:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,353 | h | CookieSyncManager.h | #ifndef __COOKIESYNCMANAGER_H__
#define __COOKIESYNCMANAGER_H__
#include "ext/frameworkext.h"
#include <elastos/AutoPtr.h>
#include <elastos/Vector.h>
#include "WebSyncManager.h"
#include "CCookieManager.h"
/**
* The CookieSyncManager is used to synchronize the browser cookie store
* between RAM and permanent stor... |
46a9e596be842564fc6d512ea32c012fba4cc0d7 | afc8b47a1c7accb58989d608376e4a0b1e8343fa | /GAP/HubCluster/bitmap.h | bc43910425169d07f5065d3af87324fcaf02e8b3 | [
"MIT"
] | permissive | CMUAbstract/Graph-Reordering-IISWC18 | f9472d6d689b01aa53eafd81f5b74b20487223da | 41b6208a06155fb334e882a995d647a369b25bc5 | refs/heads/master | 2022-03-24T10:33:15.958860 | 2022-03-11T00:13:34 | 2022-03-11T00:13:34 | 146,941,861 | 17 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,778 | h | bitmap.h | // Copyright (c) 2015, The Regents of the University of California (Regents)
// See LICENSE.txt for license details
#ifndef BITMAP_H_
#define BITMAP_H_
#include <algorithm>
#include <cinttypes>
#include <cassert>
#include "platform_atomics.h"
/*
GAP Benchmark Suite
Class: Bitmap
Author: Scott Beamer
Parallel bit... |
4f8a7b00e3e9bc10e6eef3c2cb41f389977461b0 | dd433de3daea2843440f97cea16e974f57b64629 | /libyul/ControlFlowSideEffects.h | 5621a122b1dfb1080b741d73dac3de1ca23e05bc | [
"GPL-3.0-only"
] | permissive | step21/solidity | a867d555a9bdab2d94b453acd43b94c7a9806061 | 2a0d701f709673162e8417d2f388b8171a34e892 | refs/heads/develop | 2021-01-24T21:10:56.649056 | 2020-06-17T14:31:22 | 2020-06-18T08:29:06 | 45,851,195 | 0 | 0 | MIT | 2020-06-17T14:28:37 | 2015-11-09T16:33:47 | C++ | UTF-8 | C++ | false | false | 1,117 | h | ControlFlowSideEffects.h | /*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed in the hope that i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.