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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1db051900033969a82565a71464101fb05091f7a | a51ddaafaf68ab8a7b92ed1642c325d7bf419bce | /2019Robot/2019Robot/src/Util.cpp | 0262cd10100d9213a637a42131543b0a329f074e | [] | no_license | 1828Boxerbots/Unsorted-Code | 1c6212399e46ee2c4b3bd6b327d4969edf05fb74 | e3eeb19b66dfecf9d7b0110b99767d42aaf8e630 | refs/heads/master | 2023-01-21T17:36:53.153355 | 2023-01-10T01:58:48 | 2023-01-10T01:58:48 | 232,706,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,080 | cpp | Util.cpp | #include "src/Util.h"
double Utility::ToggleSwitch(bool thirdToggle)
{
Utility::timer.Reset();
Utility::motorEncoder.SetDistancePerPulse(1.0 / 360 * 2.0 * Utility::pi * 29);
//double distance = Utility::motorEncoder.GetDistance();
//Control for Default Position; 90 degrees
while(Utility::controll... |
32bcada288da7df845ffc6083f7298ff74f56d07 | 33543e5645e38ec6545c64f788331b34bd678e3f | /day8.cpp | 002fa083f3f28adacde08508ad47c48d72485e88 | [] | no_license | BornaMajstorovic/Advent-of-code-2019 | c92b77f397a1d2dd05a32d2ebafa8af4623f0e01 | 782b900d54bda36fc2ab459919f006781f574b2d | refs/heads/master | 2020-09-23T09:02:38.779102 | 2019-12-20T19:39:16 | 2019-12-20T19:39:16 | 225,460,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,669 | cpp | day8.cpp | //
// main.cpp
// day8
//
// Created by Borna on 08/12/2019.
// Copyright © 2019 Borna. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
int main(int argc, const char * argv[]) {
int width = 25;
int height = 6;
int img[height][width];
int rez ... |
088ddfa647eada6b45830d9a4767dc5b84b0a97a | 55816233b7aab55dc51f304ae09b0e00122c6e35 | /MathStuff/Vector3f.h | 8d3c8c56ec777a3aa6f40d20ab1cced2ad0c3a38 | [] | no_license | Compiler/LengineMath | c613b4d02ce86d6bba731ce290b47193eb475524 | 32d8edbe52ba73e7d17a831f51e093ba09246684 | refs/heads/master | 2021-01-11T03:13:48.942354 | 2016-11-04T07:44:24 | 2016-11-04T07:44:24 | 71,079,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | h | Vector3f.h | #pragma once
#include "iostream"
#include "math.h"
class Vector3f{
public:
Vector3f();
Vector3f(float xd, float yd, float zd);
float dot(Vector3f me, Vector3f you){
return (me.x * you.x) + (me.y * you.y) + (me.z * you.z);
}
float angleBetween(Vector3f vec);
float magnitude();
Vector3f getProjectionOn... |
b8dd7fc4cb79d65cb7a66a93e036b31aee0a4657 | 9a4586940dbb69863394d001c5e3bea3cd8f0c7a | /source/plugins/coreplugin/statusbarwidget.cpp | fd9e6fdefa4a43c52bcf87122ce8c47e98a30d10 | [] | no_license | 519984307/moonlight-test | 3db67d0ed70f68fd249e206a45823e972fe147dc | 97b9ec762596e68fb65aee5a6d6fda021af6acd5 | refs/heads/main | 2023-05-29T06:53:10.132156 | 2021-05-14T12:02:12 | 2021-05-14T12:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,701 | cpp | statusbarwidget.cpp | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** acc... |
73e1c70fcd691047b88e1f068ef4f09936e862dc | 78a90e91db6bc78331f0196951ece6d32028c853 | /include/sgeroids/replay/object.hpp | ebe576611361ef94d456db62811eb8a766ea13df | [] | no_license | pmiddend/sgeroids | 16c0dd29a3a3b40e305b86e244611be7f93ff8f2 | 804a07b7e72141a54dedf851f4f197c7bd558c77 | refs/heads/master | 2020-05-22T02:52:33.372830 | 2017-07-02T11:06:55 | 2017-07-02T11:06:55 | 3,035,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | hpp | object.hpp | #ifndef SGEROIDS_REPLAY_OBJECT_HPP_INCLUDED
#define SGEROIDS_REPLAY_OBJECT_HPP_INCLUDED
#include <sgeroids/model/base_fwd.hpp>
#include <sgeroids/replay/call_object.hpp>
#include <sgeroids/replay/dispatcher.hpp>
#include <alda/call/object.hpp>
#include <fcppt/noncopyable.hpp>
#include <fcppt/strong_typedef.hpp>
#inclu... |
3eeaeab3ebcebceba9dd8cc1ca4c4dd29474d059 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/modules/csspaint/nativepaint/box_shadow_paint_definition.h | d9088ed24700f8005ccef8e5446ab5268ae9bf8f | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,772 | h | box_shadow_paint_definition.h | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_CSSPAINT_NATIVEPAINT_BOX_SHADOW_PAINT_DEFINITION_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_CSSPAINT_NATIVEPAINT_BOX_SHADOW_PAINT_... |
5c965cd7a2edf3aea4d567794718c1efe36acb68 | 6584a3675663415fe0ed62c604e5fd383ac46e09 | /Contest/CF 688/4.cpp | 550aa774cae7a1a75dd8c14ee4e8c7d39c1d2eb3 | [] | no_license | lsiddiqsunny/Days-with-programming | 753e1569a5a389fa05f39742d691707496557f1b | b9d8ce24065d775a8ce2be981d177b69dc4fede5 | refs/heads/master | 2021-06-25T02:49:50.931406 | 2021-01-23T12:14:23 | 2021-01-23T12:14:23 | 184,076,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,609 | cpp | 4.cpp | #include <bits/stdc++.h>
using namespace std;
#define mx 100005
int vis[mx];
int dis[mx];
vector<int> g[mx];
void dfs(int s)
{
vis[s] = 1;
for (auto u : g[s])
{
if (vis[u] == 0)
{
dis[u] = 1 + dis[s];
dfs(u);
}
}
}
int main()
{
int t;
cin >> t;
... |
2170f5ff2d8de8729b7b815d4be4510b1b72eba2 | 1044f52e7fd27d66623182f44fa2c24caf5b039b | /src/redis_notification.cpp | b71e238738bde6af05d89a2ae5e5bd01cebd4ccf | [] | no_license | anuragkh/storage-bench | f87a144524d1d2c326355b2f8ba7c9eb150afbbb | 95b6fbf7a9b0ad912a051f14cfde57f148403583 | refs/heads/master | 2020-03-24T22:21:41.293125 | 2020-01-08T23:38:51 | 2020-01-08T23:38:51 | 143,081,038 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,629 | cpp | redis_notification.cpp | #include <sstream>
#include "redis_notification.h"
#include "benchmark_utils.h"
void redis_notification::init(const property_map &conf, bool, size_t num_listeners) {
std::string endpoint = conf.get<std::string>("endpoint", "127.0.0.1:6379");
m_num_listeners = num_listeners;
std::cerr << "num listeners = " << m_n... |
eff8e08d5bc96240600e5e3882ee21b223cb36bd | b1b281d17572e71b7e1d4401a3ec6b780f46b43e | /BOJ/2252/2252.cpp | ff46e602d39bbd52bc3f1491c0a80c0b6a25ad61 | [] | no_license | sleepyjun/PS | dff771429a506d7ce90d89a3f7e4e184c51affed | 70e77616205c352cc4a23b48fa2d7fde3d5786de | refs/heads/master | 2022-12-21T23:25:38.854489 | 2022-12-12T07:55:26 | 2022-12-12T07:55:26 | 208,694,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | 2252.cpp | // https://www.acmicpc.net/problem/2252
#include <iostream>
#include <algorithm>
#include <limits>
#include <vector>
#include <string>
#include <queue>
using std::cin; using std::cout;
using ull = unsigned long long;
using pii = std::pair<int, int>;
const int INF = std::numeric_limits<int>::max();
std::vector<int> ne... |
5041bb1b580256833918bcf749ff18b38d9e70c1 | 4962307050d356c50857160c9c93003307873587 | /components/susi-core/sources/SusiServer.cpp | 8bc1a10953ff9f1c772ccdfb6884f0853b666f43 | [
"MIT"
] | permissive | webvariants/susi | e6fc16989c23e554f49daa9b551d42802a4e1d66 | 9cf69b13379293b3af6b2dcde5bdf3241d2059bc | refs/heads/master | 2020-05-30T07:15:50.094107 | 2016-08-26T06:42:27 | 2016-08-26T06:42:27 | 22,345,682 | 16 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 13,113 | cpp | SusiServer.cpp | #include "susi/SusiServer.h"
Susi::SusiServer::SusiServer(short port, std::string keyFile, std::string certificateFile) :
Susi::FramingServer<LineFramer, Susi::SSLTCPServer> {port, keyFile, certificateFile} {}
Susi::SusiServer::~SusiServer() {}
void Susi::SusiServer::onConnect(int id) {
std::cout << "got new... |
3f188097a1e9bdb1044f2202668cc6641edcd60f | 23ff95db4a806c99c4aa757f2049f6a63e891247 | /1A_3/test.cpp | e948b5b718e3ae60f734653fce5818a99069a476 | [] | no_license | AnshulBasia/google_problems | 960570142c49ed6a4ddcefdb63ef9d1c22d0c888 | da988a827f66d05fc8740148dc62b9075d71eeb4 | refs/heads/master | 2021-01-16T22:57:46.358289 | 2016-07-18T20:18:58 | 2016-07-18T20:18:58 | 62,531,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | test.cpp | #include <iostream>
#include <math.h>
#include <stack>
#include <fstream>
using namespace std;
#include <string.h>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <conio.h>
#include <string>
#include <stdlib.h>
#include <stdio.h>
int main()
{
ifstream file("in.in");
ofstream out("out.out");
... |
128c016ff5602d54290e56ec4482d461c88ef218 | eef890f4f5e1294f64eba1a0481562e8eb049474 | /BOJ/11504_돌려 돌려 돌림판!/11504_돌려 돌려 돌림판!(곽수빈).cpp | 678b09f7c623a5c3e299a888af0c33dc58911bc7 | [] | no_license | dohitfast/Algorithm | 773e99eb6db934ccc4e39e17f06ca0d018a68c61 | 318c0c3552749f7b1916191d610323954fd0a807 | refs/heads/main | 2023-02-01T21:04:28.294876 | 2020-12-15T12:33:49 | 2020-12-15T12:33:49 | 306,924,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | cpp | 11504_돌려 돌려 돌림판!(곽수빈).cpp | #include <iostream>
using namespace std;
int main() {
int test_case;
cin >> test_case;
for (int i = 0; i < test_case; i++) {
int n, m;
cin >> n >> m;
int x[9];
int y[9];
int *arr = new int[n + 1];
for (int j = 0; j < m; j++)
cin >> x[j];
for (int j = 0; j < m; j++)
cin >> y[j];
for (in... |
8c321a9d274f97ae7ff69f9cdd5c88f6e01ffffd | a087c85438d5f1e01ba9c3dd333fe1089fe69fb2 | /Source/PUBG/Gun.h | f53bc4839f27aa61cc636f292417f138e8fb4ca1 | [] | no_license | 0201jin/PUBG | cc60b7df42213ba63962ec81de234b2fa307c3ae | ab997d65ff96cdb88fee881813a836ab76625d40 | refs/heads/master | 2022-12-15T21:14:30.797074 | 2020-09-13T20:59:11 | 2020-09-13T20:59:11 | 295,236,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | h | Gun.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
/**
*
*/
class PUBG_API Gun
{
public:
Gun();
~Gun();
virtual void Init();
virtual UStaticMesh* GetStaticMesh();
virtual UClass* GetBullet();
virtual FVector GetBulletStart();
virtual FVecto... |
ac36de36e72960f727791cd94cd4bf7a5c517ed3 | e99bae4e1c4ab2d3ec29ddceb1eee1207daa40e6 | /GFG/asd.cpp | b5ec71968dadc2d4ecc2f4d4f60a5e2a0f12537c | [] | no_license | ashmanmode/BitsAndBytes | 083590c4ad22682d1156e090dc1f558ced9926de | 6dffbb18ddbf04245d1cbe453ea975fed76a9969 | refs/heads/master | 2021-05-01T04:55:30.304918 | 2017-03-21T08:19:30 | 2017-03-21T08:19:30 | 70,502,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cpp | asd.cpp | #include <iostream>
int main()
{
char array_1[] = "ab";
char array_2[2] = { 'a', 'b'};
cout << sizeof(array_1) << sizeof(array_2));
return 0;
} |
e7d54e06fb0933cd8d9163897b0eac8ef8bdff3d | da528c593fc600a2cd7d2ff1a571eb2f091eab4b | /Naive based.cpp | 037b438d059070a4c0265ffadda0d42a8f9d9ac5 | [] | no_license | priyankadholariya/ADA-assignment | 2a0c831af9789fd24d65ea5a13beddb0bab38838 | e65bca565d781d7a8f4f8857137bb9974c089c9c | refs/heads/main | 2023-08-02T13:50:48.962484 | 2021-10-03T08:54:34 | 2021-10-03T08:54:34 | 413,022,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | cpp | Naive based.cpp | #include<stdio.h>
#include<string.h>
void naive_string_matcher(char text[],char pat[])
{
char temp[100];
int n=strlen(text);
int m=strlen(pat);
int i,j,s,k,count=0;
for(s=0;s<=n;s++)
{
for(j=s,k=0;j<m;j++,k++)
temp[k]=text[s+k];
temp[k]='\0';
if(strcmp(pat,temp)==0)
{
printf("\n Patter... |
29b181b32f54e0f4812c7d7bd90f9556f00405b9 | 61113cb212f5b2cbacc46506094c2ae814a2fc14 | /Grafa-Nui/Headers/class_edge.h | 7a7207ba560f066464691f2ff9c1676df6efc3ab | [] | no_license | Asynchronousx/Grafa-Nui-Traveling-Salesman-Problem | 8af23e10d66c1f16b9e0dc54cacc28abf08fc46e | fe5d64aa437614b55814ede800410dbfe22c9eeb | refs/heads/master | 2020-04-01T13:49:46.227872 | 2018-10-16T13:04:46 | 2018-10-16T13:04:46 | 153,268,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | h | class_edge.h | #pragma once
#include <iostream>
#include "class_node.h"
class Edge {
private:
std::pair<Node*, Node*> normalEdge; //example : Edge between node: A - B \___ fully connected
std::pair<Node*, Node*> inverseEdge; // example: Edge between node: B - A /
float Weight;
public:
//Constructor
Edge() { ; } //Default
Ed... |
fb2f042274dc26619f81e37d6eaf1dd97b37759f | e3f9e4b0da46a6c09cd2bec37b841ccce9ae55ce | /sort/가장큰수.cpp | a6b2ea1873984afd263b11a1c24a4d1733a5fcb9 | [] | no_license | us419/Programmers_algorithm_practice | 6e3cab27fd2086c5c92c8f6df69bca21a8a0b0d1 | 06b52da8eccf9d97a9da0525dc47bde6f1e15749 | refs/heads/master | 2022-04-21T19:10:38.119281 | 2020-04-20T18:32:13 | 2020-04-20T18:32:13 | 257,369,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 912 | cpp | 가장큰수.cpp | #include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
string ab;
string ba;
int compare(string& a, string& b)
{
if (a == b)
return 1;
ab.clear();
ba.clear();
ab = a+b;
ba = b+a;
for (int i=0; i<ab.length(); i++)
{
if(ab[i] > ba[i... |
bf213cd0408d2033a33fee1d92974ef1bc030fbc | f28fa9b2ca3bceacca2b463199dc93948c00566e | /NameServer.h | f48a95eadb133c1c11314438372690b2c8f519c6 | [] | no_license | nr2kim/StudentCardSim | 6c080b978e9446a6602383872bda6c56dbe0a049 | 32c6b81b6873c9f2a3c85fc336518b79046971e8 | refs/heads/master | 2020-08-30T16:18:47.562569 | 2019-10-30T02:58:30 | 2019-10-30T02:58:30 | 218,430,976 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | h | NameServer.h | #ifndef __NAMESERVER_H
#define __NAMESERVER_H
#include "Printer.h"
_Task VendingMachine;
_Task NameServer {
Printer *serverPrinter;
unsigned int numVendingMachine;
VendingMachine ** serverManagement;
int *student;
void main();
public:
NameServer( Printer & prt, unsigned int numVendingMachine... |
51a9edfe48e5c8db8e83380ec076f66e555e5d4b | 455ecd26f1439cd4a44856c743b01d711e3805b6 | /java/src/android.opengl.cpp | 591147f8501617f13ffaf0bf7bf77598bdc906e1 | [] | no_license | lbguilherme/duvidovc-app | 00662bf024f82a842c808673109b30fe2b70e727 | f7c86ea812d2ae8dd892918b65ea429e9906531c | refs/heads/master | 2021-03-24T09:17:17.834080 | 2015-09-08T02:32:44 | 2015-09-08T02:32:44 | 33,072,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319,851 | cpp | android.opengl.cpp | #include "java-core.hpp"
#include <memory>
#include "android.content.Context.hpp"
#include "android.graphics.Bitmap.hpp"
#include "android.opengl.ETC1.hpp"
#include "android.opengl.ETC1Util.hpp"
#include "android.opengl.GLDebugHelper.hpp"
#include "android.opengl.GLES10.hpp"
#include "android.opengl.GLES10Ext.hpp"
#inc... |
2450553bc25e7725a06e2006142d1205179fbcbb | 7ff190f15df5e16dc773e27c423d705bff9b366c | /Day_2/pattern2.cpp | d30cd36644437fa33efa4b8b165dc95747f52622 | [] | no_license | sreedhar-s/Homework_NR_Ace_Coding | 3264f91f1c46a82911cd5f556cbabaaee5d17c4d | be664a90fbc7c4d68b7d67cc9d870d7edfaa9cff | refs/heads/master | 2023-08-31T17:53:52.159412 | 2021-10-11T16:15:59 | 2021-10-11T16:15:59 | 411,726,372 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cpp | pattern2.cpp | #include<iostream>
using namespace std;
int main(){
int n;
cout<<"Enter the value of n : ";
cin >> n;
for(int r=1;r<=n-r;r++){
//Printing n-r spaces
for(int i=1;i<=n-r;i++){
cout << " ";
}
//printing 2*n-1 stars
for(int i=1;i<=2*r-1;i++... |
93298484eaf17f4552aa9860a1a15dd320ec8cb8 | cc1150a32b40ec3944906645054967efd67ecb16 | /laboratorio2/src/Triangle.cpp | 4c0e9e520dccea246412e8d018a9dccf0b02d568 | [] | no_license | Milagros12345/clasess | 920b2f99ce17345df13b3585581c85bd0565cc82 | daca4f18d26b8f6f3f4fa6bac67379608d9d6d20 | refs/heads/master | 2020-04-03T17:55:54.329688 | 2019-02-01T14:17:16 | 2019-02-01T14:17:16 | 155,464,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | Triangle.cpp | #include "Triangle.h"
Triangle::~Triangle()
{
//dtor
}
int Triangle::area(){return widht*height/2;}
|
073aef8519c151c16a9f02be1268a65e5c64a7cf | f6f619a491826f9b2c28f36f1ad75ad8eef2bc87 | /Project/ZwRQY/ZwForWHRQY/DrawDMXProcess.cpp | 016f2e57f6ce780808ae16b76f38da569ba785c2 | [
"MIT"
] | permissive | kanbang/SVN | 92d942263b85f8e4a3acbc5b6a757a162571580d | 643d360284842c20b189dcb022fb04efb0447498 | refs/heads/master | 2021-01-24T03:19:20.084291 | 2016-02-18T03:19:56 | 2016-02-18T03:19:56 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,135 | cpp | DrawDMXProcess.cpp | #include "StdAfx.h"
#include "DrawDMXProcess.h"
#include "DrawZDM.h"
DrawDMXProcess::DrawDMXProcess(void)
{
CString strCount = CUtils::getNumCount();
m_nCout = MyTransFunc::StringToInt(strCount);
m_bDrawJiedian = CUtils::getcreateJiedian();
m_pZdmInfo = new CZdmDataInfo();
m_pZdmInfo->setCount(strCount);
CString... |
a2e5ce272425e9b62e188e6ac4569eedcd024587 | f904c98f8e80cb9148b7c54831ecc2f5f52efb2b | /caffe2/operators/interp_op.cc | 464781d3f9a32900a3d5b1618ea5efd1c126393d | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | sunshineInmoon/caffe2 | 6c7d14c36d87e78bb8031fa6ed316221823f31c8 | 8205241b767993c35bfecd83d71fbdfb80310125 | refs/heads/master | 2021-04-15T15:39:17.021975 | 2018-03-26T15:58:01 | 2018-03-26T15:58:01 | 126,499,175 | 0 | 0 | Apache-2.0 | 2018-03-23T14:49:13 | 2018-03-23T14:49:11 | null | UTF-8 | C++ | false | false | 9,355 | cc | interp_op.cc | #include "caffe2/operators/interp_op.h"
#include "caffe2/core/tensor.h"
#include "caffe2/core/logging.h"
namespace caffe2 {
template <typename T, class Context>
void InterpOp<T,Context>::interp2(const int channels,
const T *data1, const int x1, const int y1, const int height1, const int width1, const int Height... |
47e009189cd49088a4eb360a35075ef5e373359e | 63cfa4848d6783d41ddd470a6f1014378651f921 | /BMP180Module.cpp | d46eb1fc000d301718f216777545ca0bab21ba39 | [
"Apache-2.0"
] | permissive | samindaa/csc688 | 692c006ae537013e921a6c1097bffb67e267c293 | 75a86d41748f9a90e219afef6192645c90af3878 | refs/heads/master | 2016-09-05T11:31:13.751254 | 2014-09-12T20:19:46 | 2014-09-12T20:19:46 | 16,720,821 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,117 | cpp | BMP180Module.cpp | /*
* BMP180Module.cpp
*
* Created on: Feb 20, 2014
* Author: Saminda
*/
#include "BMP180Module.h"
#if defined(ENERGIA)
#include "Wire.h"
#endif
MAKE_MODULE(BMP180Module)
void BMP180Module::init()
{
calibration();
}
void BMP180Module::update(BMP180Representation& theBMP180Representa... |
49ae5f65fc1e4d4066b43ea3563a274955ed9d53 | 10afe4ffc27a2b9433954bc7eb3f31b6472cfc42 | /antlr4-runtime/modelicaBaseVisitor.h | 19998c36c1b8de58510ee48fc6a8de3dba3e688a | [
"MIT"
] | permissive | EgorSidorov/swiftCompiler | 1406110f05ddb98ab8889afeaf65d98ccad5908c | 63eeba1a43d4c0b8c3ecc5906bf793c07ecc414e | refs/heads/master | 2020-08-07T12:51:31.730133 | 2019-10-07T18:35:38 | 2019-10-07T18:35:38 | 213,457,722 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 849 | h | modelicaBaseVisitor.h |
// Generated from modelica.g4 by ANTLR 4.7.2
#pragma once
#include "antlr4-runtime.h"
#include "modelicaVisitor.h"
/**
* This class provides an empty implementation of modelicaVisitor, which can be
* extended to create a visitor which only needs to handle a subset of the available methods.
*/
class modelicaBa... |
b4c9c487f5277f266cffcb10d98c10454f6f2c35 | 3666e14d614e2f96426252901700bf620185cb6c | /6. CodeJam/2013/Round Qualification/A. Tic-Tac-Toe-Tomek/A_TicTacToeTomek.cpp | cf4b9e9862b74732fb0f3410c0923e47e02cd939 | [] | no_license | faijurrahman/pSolving | 5dcd5182ccc8a89d848d1c2dcdc0f4579421b301 | 6b07c9946516ab4e387fe4248ff2eda7edf3f0a4 | refs/heads/master | 2021-01-01T16:12:47.779189 | 2016-09-22T22:26:13 | 2016-09-22T22:26:13 | 23,628,428 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,613 | cpp | A_TicTacToeTomek.cpp | #include<set>
#include<climits>
#include<algorithm>
#include<vector>
#include<string>
#include<cstring>
#include<iostream>
#include <sstream>
#include <fstream>
using namespace std;
#define LOOP(i,s,n) for(int i=(s);i<(n);i++)
#define loop(i,n) for(int i=0;i<(n);i++)
#define MAX(mVal, oVal) (mVal) = max((mVal),(oVal))... |
2ec2d24535543d553348bc97aec8307a3c9b048f | 76e09052f5bfa405697b26b88f658619d87a13ee | /gen/mempool.h | 1481a3c0c16558a486f316fbff70e2758f44aa3e | [
"Zlib"
] | permissive | iceignatius/genutil | 6f92401917dee67e6daecaaa3ee57111f1db14aa | c682bd245d5dbe5dda39c7450be63545346c16ea | refs/heads/master | 2020-02-26T16:27:28.017187 | 2018-04-13T06:06:26 | 2018-04-13T06:06:26 | 71,210,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,349 | h | mempool.h | /**
* @file
* @brief Memory pool
* @details To support user space memory pool objects to help some purpose, such like processes communication.
* @author 王文佑
* @date 2014.05.09
* @copyright ZLib Licence
* @see http://www.openfoundry.org/of/projects/2419
*
* @note 模組設計原則:
* @li 本模組主要設計用途... |
800db0ecc30007303b3ec1e3ba04955675d0305b | 6d30c1840b2ddd01b8b81bc8639e051d9bf96b5e | /GalaxyQuest/Source/GalaxyQuest/Public/Widget/C_UserBag.h | 4d8142c18272e965f6b87721a6d0543a33b91be8 | [] | no_license | Vin-Han/GalaxyQuest | eba3bafd0a5ec6b5ed45a924c5143fe9a2d5c64c | c3b1a3b6794b1b30f58b1fcc948ec7d434618eb1 | refs/heads/master | 2022-12-03T17:33:10.413848 | 2020-08-13T22:22:53 | 2020-08-13T22:22:53 | 262,983,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | h | C_UserBag.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "C_UserBag.generated.h"
class UTextBlock;
class UButton;
class UImage;
class UProgressBar;
class UScrollBox;
UCLASS()
class GALAXYQUEST_API UC_UserBag : pub... |
2355aad93fa26ba222130788884e31a33187e17f | 805452a819f2f7950753e1cf86d88a294d7d3212 | /Perso/src/FantomeSpeedy.cpp | f96ccd4edf33f9860dc2f5ebf5d45161ab77d102 | [] | no_license | JustineVuillemot/IMACMAN | 94de6fefdaaf782ba84d2dead4af56c081a8210e | 5b453deb025000704837b20263b48b093256b161 | refs/heads/master | 2021-09-25T13:37:47.254984 | 2018-10-22T17:22:31 | 2018-10-22T17:22:31 | 113,693,463 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 125 | cpp | FantomeSpeedy.cpp | //
// Created by Alexian on 08/01/2018.
//
#include "FantomeSpeedy.hpp"
void FantomeSpeedy::deplacement(glm::vec3 dist){
} |
80a14b1196bda6df42869ab46499359a0f2455a8 | c8c5b33404786915c7e230e75c1f70e145203fbb | /cotson/src/abaeterno/mem_lib/cache_timing_mainmem.h | 3c5af372807504207ad395fae8f9f79142996169 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | adityabhopale95/COTSON_Simulator_multinode | 82b4e5a914b20083aaeacc6684b9ed300f5c55b2 | 4131d59fe83a6756caa00fb46164982cb490619e | refs/heads/master | 2020-03-24T14:30:57.285733 | 2018-08-03T03:30:16 | 2018-08-03T03:30:16 | 142,770,484 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,877 | h | cache_timing_mainmem.h | // (C) Copyright 2006-2009 Hewlett-Packard Development Company, L.P.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR C... |
f08e336beab5a646242852bdfe734b84968bf0ee | 3a701800a0151e2f53f1df79c9cc0bc19003ca29 | /lib/Transforms/Tapir/CilkABI.cpp | 9b75d22f7122fde5a7d1866aec4249887a7fdc4e | [
"NCSA"
] | permissive | Jarlene/Tapir-LLVM | 333786fbe06917a9e9db433462f33ca64c346271 | 11eb2485a7e8a22099bf0d0fde3af6952707da24 | refs/heads/master | 2021-09-11T07:36:17.966704 | 2018-01-11T21:16:41 | 2018-01-11T21:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,581 | cpp | CilkABI.cpp | //===- CilkABI.cpp - Lower Tapir into Cilk runtime system calls -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
67f9de548bf75f7389028c251559d4d9b17d03f2 | dc77ee86d6a45b48ecc2f20d36f35ff0e2788ead | /Headers/Yuka/Traits.hh | f3a4774464e42657f030e5d790b51e85c76a6dd8 | [
"Apache-2.0"
] | permissive | twistedflick/Yuka | 230c7ac8c791566667281df051c94531135c2642 | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | refs/heads/master | 2021-04-27T11:54:24.042352 | 2018-12-31T00:21:49 | 2018-12-31T00:21:49 | 122,569,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 982 | hh | Traits.hh | /* Copyright 2018 Mo McRoberts.
*
* 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... |
579920a54aec32e2a954e71535bb1ccf84eae580 | b367fe5f0c2c50846b002b59472c50453e1629bc | /xbox_leak_may_2020/xbox trunk/xbox/private/vc6addon/ide/include/proppage.h | daf63d3e942ea622b667606004e790be25e25ae6 | [] | no_license | sgzwiz/xbox_leak_may_2020 | 11b441502a659c8da8a1aa199f89f6236dd59325 | fd00b4b3b2abb1ea6ef9ac64b755419741a3af00 | refs/heads/master | 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,226 | h | proppage.h | /////////////////////////////////////////////////////////////////////////////
// PROPPAGE.H
// Defines classes which can be used to display a property page
// to view a CSlob's property map
#ifndef __PROPPAGE_H__
#define __PROPPAGE_H__
#undef AFX_DATA
#define AFX_DATA AFX_EXT_DATA
class CSlob;
class CS... |
548dbda8db63058abe5af9c46affccc6c9e697fe | 575c265b54bbb7f20b74701753174678b1d5ce2c | /hpkj/Classes/gui/HelpScrollView.h | ce96f22dc4c97005370b543618a98aa5958740c4 | [] | no_license | larryzen/Project3.x | c8c8a0be1874647909fcb1a0eb453c46d6d674f1 | cdc2bf42ea737c317fe747255d2ff955f80dbdae | refs/heads/master | 2020-12-04T21:27:46.777239 | 2019-03-02T06:30:26 | 2019-03-02T06:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | h | HelpScrollView.h | #ifndef __Game__HelpScrollView__
#define __Game__HelpScrollView__
#include "CocosUnits.h"
#include "ConfigMgr.h"
#include "AnsString.h"
#include <iostream>
#include "cocos2d.h"
class HelpScrollView : public Layer
{
public:
HelpScrollView();
~HelpScrollView();
virtual bool init();
static Scene* scene();
Rect addSt... |
08711cd15adb79ef37417226182066234c4e39d1 | 307c315a79f505aa9e3ac0227a003a2f185ba2ec | /module_01/ex03/main.cpp | 1658210069ae4084409663686007b967aa02260f | [] | no_license | EudaldV98/Piscine_Cpp | c0d7791c996127fff7578b53a550cf7cd55ccae6 | 445dc6752e4b1c26dd1715989da799317e5ab40b | refs/heads/master | 2022-07-12T07:42:38.664212 | 2022-05-30T12:09:52 | 2022-05-30T12:09:52 | 243,049,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
a12347dd900adfaf643f264d0a89e2b4c3e0f88e | e64923acf304626b574cfc056a1e533e10bdd2f7 | /c++/multiInclude/a.cpp | 4edfc8f20cbe85b1b8d1e71cceff1efbd9f9e735 | [] | no_license | jingminglake/LanguageGrammaExamples | 8eee2122383f76bd9afd12dd2ac27623d34eff3b | f888e9719b43c00add9c346d6fb50024207fc22f | refs/heads/master | 2021-05-07T18:00:54.484825 | 2019-07-23T22:18:07 | 2019-07-23T22:18:07 | 108,775,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154 | cpp | a.cpp | #include "a.h"
#include "b.h"
#include <iostream>
void A::f() { std::cout << b->g() << std::endl; }
void A::test() { std::cout << "1234" << std::endl; }
|
8f48b6facf56f4e0b1b7c577ff3f311c2f1f0be9 | 7491e96c4dc532b3ed7a1e6cb1a900892d182f1e | /DP/Ladders.cpp | 665a5b4897a21315206a847da88523b64459d624 | [] | no_license | parvezaalam786/Placement-Preparation | b4312364d06d9e01118bd872da73f72dc4f6c64e | 948f546443c0d535bb1ee40bc68ed438125a6cf4 | refs/heads/master | 2023-01-19T17:51:46.914941 | 2020-11-11T11:28:14 | 2020-11-11T11:28:14 | 282,716,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,728 | cpp | Ladders.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define fast_io ios::sync_with_stdio(false);cin.tie(NULL);
#define input freopen("Test.txt","r",stdin)
#define output freopen("Output.txt","w",stdout);
#define what_is(x) cout<<#x<<" is "<<x<<endl;
#define F(i,a,b) for(int i = a; i < b... |
8e203777f2897628b9c69edb5333145fe67c4498 | 857b5ce0da5e8a6909bf8ae69ef6ddafc24d3f99 | /Editor Source/_Build_/Titan Editor/Source/@LeafRegion.h | 2c6d21f9e84b5f1311243211eb6d414c1ce0db4f | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | psydox/EsenthelEngine | 6b6d171000feeec60eace4f089575adc19c450af | 18088042e40a31cbd186348fb0652c643cbd8f5d | refs/heads/master | 2023-05-07T05:38:59.186560 | 2023-03-03T05:16:16 | 2023-03-03T05:16:16 | 181,012,405 | 1 | 0 | null | 2019-04-12T13:20:31 | 2019-04-12T13:20:30 | null | UTF-8 | C++ | false | false | 1,342 | h | @LeafRegion.h | /******************************************************************************/
/******************************************************************************/
class LeafRegion : Region
{
class Texture : ImageSkin
{
virtual void update(C GuiPC &gpc)override;
virtual void draw(C GuiPC &gpc)override;... |
de5376a7419385dc0be8d7950b3d6855df9c63ad | 69e4dc4c97460c75e87bb04b55d86c5bb24300cf | /mazeDriver.cpp | 3da5ddcb4eafab52d7d98295e228fd72e8ed085c | [
"MIT"
] | permissive | dlandry8/maze-walk | e2d52ce758e2e8e80a4d29cd4ad1266d7ad9afb8 | 3b2f78ba0119a95ea8663ec0a83a9aef642809e1 | refs/heads/master | 2022-11-28T13:43:30.964536 | 2020-08-11T05:13:55 | 2020-08-11T05:13:55 | 286,651,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,314 | cpp | mazeDriver.cpp | //------------------------------------------------------------------------------
// File: mazeDriver.cpp
// Description: Implementation of the maze walking algorithm.
// Author: David Landry
// CSS 342, Winter 2018
// Assignment 3: Recur... |
111b868283c15650d996354ed69bc245cd9f678d | 5a5a269bca292df0a0f501bd971551a7d4b8399d | /include/MaglevControl.h | 74931bced9d138ea932a99f83002138763169093 | [
"MIT"
] | permissive | n-fallahinia/UoU_Soft_V1.3 | 168e6844bd49dbfb4dc5c6e5ed14d1d1210cb079 | c7bd57825416a4bf8ef308d94a3572d41130d475 | refs/heads/master | 2020-06-11T12:25:06.482470 | 2019-06-27T23:59:05 | 2019-06-27T23:59:05 | 193,962,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,230 | h | MaglevControl.h | #ifndef MAGLEVCONTROL_H
#define MAGLEVCONTROL_H
#include "ml_api.h"
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "ForceSensor.h"
#include "maglev_parameters.h"
#define SAVE_FORCE_COLS 67
#define SAVE_FORCE_DATA 40000
#define NUM_TRANSITIONS 2000
#define MAGLEV_FREQUENCY 10.0
#... |
9a20740c9db794f7578ae69a82316285de2af066 | c35a272fc49d28753b72e9f22651a6a81ec11b3d | /legacy/ex3.cpp | 0cce8d0b899f8feb0049341a98c025377270d9a1 | [
"MIT"
] | permissive | Aldridgexia/learncpp | 989936ee9d7920574733f86fe77d226ca53517b4 | 2d50e6662343dfcff563876c5d2628ba39780b7c | refs/heads/master | 2021-05-02T09:48:35.448768 | 2020-09-04T04:44:50 | 2020-09-04T04:44:50 | 53,257,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | cpp | ex3.cpp | #include <iostream>
#include <cmath>
using namespace std;
int max1(int x, int y);
int max1(int x, int y, int z);
double max1(double x, double y);
double max1(double x, double y, double z);
int max1(int x, int y){
if(x==y) return x;
else if(x>=y)
return x;
else
return y;
}
int max1(int x, int y, int z){
retur... |
fb8e065fb3bc8763898536664167d252672c1b9f | 9447ea467d5cc4aa24418dae681bb907fafa1d80 | /src/main.cpp | 86ea013680df5f686d05b5a901b9367490634b66 | [] | no_license | jair-barajas/sniffer-redes | 011d59b56001a100066b528c6566ce2da0d2fe01 | f32d177a9788b845d7c5146e014055f2243a7d60 | refs/heads/main | 2023-03-19T03:47:44.851176 | 2021-03-05T18:41:29 | 2021-03-05T18:41:29 | 344,933,850 | 0 | 0 | null | 2021-03-05T21:04:42 | 2021-03-05T21:04:41 | null | UTF-8 | C++ | false | false | 1,398 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <exception>
#include <EthernetFrame.hpp>
using namespace std;
int main()
{
EthernetFrame ef;
string filename;
ifstream binFile;
char* buffer;
cout << "Analizador de Paquetes Ethernet" << endl;
cout << "Equipo 5 de la sección D0... |
34581f43cc0545b656c89859ea338a44c8956d04 | b3e5b0bd78521e7cc02d45076305bfcdd6095462 | /Backend/navsBackend/backend.h | c04ba946ff0ae6e728cc9201c42eb02237ccff0b | [] | no_license | rapcode005/QMLApp | 4e3fc2681c10474a10c7ba1f1358fef1200ef6da | b764db47a22d66584a7b6933b9b512e07588c323 | refs/heads/master | 2022-12-28T06:31:23.388021 | 2020-10-12T09:27:25 | 2020-10-12T09:27:25 | 303,338,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,417 | h | backend.h | #ifndef BACKEND_H
#define BACKEND_H
#include <QObject>
#include <QJsonObject>
#include "installationTools/installationtools.h"
#include "appTools/apptools.h"
#include "userTools/usertools.h"
#include "loggingTools/loggingtools.h"
#include "organizationModel.h"
#include "appmodel.h"
#include "appquicklaunchmodel.h"
c... |
34a8a01225cf92e6cd7f303a9052e290fd0e131e | d74e22f0dd5294f3113c127fad14a420b67f8de9 | /Contests/01 Contest/01 PairSumDivisiblebyB.cpp | 6a633dc0e81b1da84d72e87fd5f43f6224201a27 | [] | no_license | FazeelUsmani/Scaler-Academy | c44327223f062ab27e5230b13ec4a0cfa35269f9 | 229141a69ca0522e4048181d0ec9c3316b3148ae | refs/heads/master | 2022-02-07T02:15:35.196734 | 2022-01-06T13:32:42 | 2022-01-06T13:32:42 | 236,805,007 | 194 | 144 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | cpp | 01 PairSumDivisiblebyB.cpp | /*
Pair Sum divisible by M
Problem Description
Given an array of integers A and an integer B, find and return the number of pairs in A whose sum is divisible by B.
Since the answer may be large, return the answer modulo (109 + 7).
Problem Constraints
1 <= length of the array <= 100000
1 <= A[i] <= 109
1 <= B <=... |
9b5fd1126d623c3d28c839ccdce037699f2380f6 | aa62761e127f1fca3fd6f9aa8b3a3ee83381d38b | /vanya_fence.cpp | 03fda0e2d056770fbf90b929110557ba22da2883 | [] | no_license | vickymhs/CodeForces-Submissions | 60487bd33e5ea2bae0c55685ad75b284a15d2cef | 7406daf60c9c977ba2d4d2222e148b65fa4d41fa | refs/heads/master | 2020-06-25T04:01:01.177983 | 2019-10-31T12:18:37 | 2019-10-31T12:18:37 | 199,194,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cpp | vanya_fence.cpp | #include<iostream>
using namespace std;
int main()
{
int n,h,a[2005],c=0,i;
cin>>n>>h;
for(i=0;i<n;i++)
{
cin>>a[i];
if(a[i]<=h)
c++;
else
c=c+2;
}
cout<<c;
}
|
6cf1cbfae13b840edea5144dc5ed69f3d9d0ef2b | f84b708f558ecd4808b74c676b51d6ee5148c025 | /CrashBash_Client/src/Surface.cpp | 65ebc8cf2b1001068c226f1193e86755e5f4ff53 | [] | no_license | ali-alaei/CrashBash | b606fdbfc0db69902fc1ab044cc7629772affdca | d92a47fd585255996d8ed84cce33db4c05ef822a | refs/heads/master | 2020-04-06T07:06:56.765136 | 2019-01-13T09:44:21 | 2019-01-13T09:44:21 | 61,696,162 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | Surface.cpp | #include "Surface.h"
#include <iostream>
Surface::Surface(int w,int h):width(w),height(h)
{
///do khate paiin pak mishe chon gharare az file bekhooni,m
///ama age size dge az file bekhoonim zamin be ham mikhore
std::cout<<"-------------------------------------------------------------------------------... |
412415eabbd33a8303db0638a5c214007282e6e2 | b13eee85aaf15b107916c08249bf0c1f822afa4a | /Calculator/src/main.cpp | 8649de217badd36ab45099aaccbaa1777c7bb7a2 | [] | no_license | manivija/vs_code_cpp | 19052aaa165842afb46c6b70b0d3163f28e366cc | 7a56373d2b4429c8cf699790aee48aa6b49c4f0b | refs/heads/master | 2020-07-13T10:13:07.095985 | 2019-09-12T02:37:50 | 2019-09-12T02:37:50 | 167,121,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,604 | cpp | main.cpp | # include <iostream>
#include "std_lib_facilities.h"
#include <cmath>
using namespace std;
class Token
{
public:
char kind; // what kind of Token
double value; // the value of the Token
Token(char ch)
:kind(ch), value(0) {}
Token(char ch, double vl)
... |
1c318158cae0ae35cc8238ef89f7fa38823b9bca | a02bfc69112666e95afc07c6d4e48dd843bcca55 | /Day2/edgeDetection.cpp | 230e99397f0198a5d7552f7295c840c78421937b | [] | no_license | itsShnik/Image-Processing | aa70df42c1ee68a3fa2e20dd7d9c1ebaa9ae745f | 3ded0ce234a9f2b95094a47c8de71f3fcc10dcd8 | refs/heads/master | 2020-04-09T03:37:50.008654 | 2018-12-07T13:39:01 | 2018-12-07T13:39:01 | 159,988,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,864 | cpp | edgeDetection.cpp | #include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/core.hpp"
#include <iostream>
#include <cmath>
using namespace cv;
using namespace std;
Mat img ;
int rows;
int cols;
int **kernel_matrix;
void dilation(int i, int j, Mat img_e, Mat img_d)
{
int p, q, sum = 0;
... |
80e8af21e182a255e2885b7ed19874879d8e4874 | 7598e1225155ab190e19565d98382c5baae9deb0 | /3rdInclude/libs/KL1p/include/InverseGaussianBlur2DOperator.h | 4f84a300eb4abff278e3cb10514ae8bc040948d0 | [] | no_license | GuoChris/FaceRecognition | 2c02a00929f71325e3fade6c0b2db956261b4916 | f89d75950fcbcb68d5515605b1febc5dd5c6246e | refs/heads/master | 2020-12-06T00:18:29.707274 | 2020-05-03T02:38:42 | 2020-05-03T02:38:42 | 232,286,635 | 0 | 1 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 13,787 | h | InverseGaussianBlur2DOperator.h | // KL1p - A portable C++ compressed sensing library.
// Copyright (c) 2011-2012 René Gebel
//
// This file is part of the KL1p C++ library.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY of fitness for any purpose.
//
// This library is free software; You can redistrib... |
69d42900d9d7147056f8174531697b45f49c0e7d | 041dccc25a60f4db7835e252e988accfb4e9c11d | /src/CoreRenderer.hpp | 24c99d7649cc3e13fd3bf53326312607fed463e4 | [] | no_license | munro98/LandscapeWorld | d4bcf4e2db48d2283008c0b293eb61ff1ebbb18e | 4a095f11d4e5b6f1dc84837beb6785f67ab555d3 | refs/heads/master | 2020-12-30T11:27:39.716381 | 2018-01-26T05:25:05 | 2018-01-26T05:25:05 | 91,554,586 | 0 | 0 | null | 2017-06-20T06:02:47 | 2017-05-17T08:50:38 | C | UTF-8 | C++ | false | false | 81 | hpp | CoreRenderer.hpp | #pragma once
class CoreRenderer
{
public:
CoreRenderer();
~CoreRenderer();
};
|
01eeff9ff10e92872f45efde6e714179c4aa2bc7 | c743c6af616b8d3f356eb3ac7bb87cf67b8ac3f5 | /Src/Actor.cpp | 14dbc68a445ff4ac002d8119eb585643319fd278 | [] | no_license | tn-mai/OpenGL3D2019_2nd | 3af19eee0d8c821053e92f74657fc44bd8c18008 | 8c790df5488fcb1cd16ffe2efdebc8189e9acb7e | refs/heads/master | 2021-07-16T02:15:58.118124 | 2020-09-23T04:01:20 | 2020-09-23T04:01:20 | 213,393,507 | 2 | 1 | null | null | null | null | SHIFT_JIS | C++ | false | false | 11,352 | cpp | Actor.cpp | /**
* @file Actor.cpp
*/
#include "Actor.h"
#include <glm/gtc/matrix_transform.hpp>
#include <algorithm>
/**
* コンストラクタ.
*
* @param name アクターの名前.
* @param health 耐久力.
* @param position 位置.
* @param rotation 回転.
* @param scale 拡大率.
*
* 指定された名前、耐久力、位置、回転、拡大率によってアクターを初期化する.
*/
Actor::Actor(const std::string& name... |
95cc2930cd183b4f4988df871e4e5450f392433f | ff08518195c074b65d99f2ad041923565c9ff297 | /speed/mandelbrot2/c++/1/test.cc | 46a1587fd1ffb2a34257335344201a7112283da9 | [] | no_license | arowM/felix | 10c5603dd58d1ae7524113253760168b5bb20abb | 006ebf6d296e1f458315684518e3aa3a1fe4e324 | refs/heads/master | 2020-12-25T11:41:31.755544 | 2013-02-01T09:36:00 | 2013-02-01T09:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | cc | test.cc | // based off http://metamatix.org/~ocaml/price-of-abstraction.html
#include <sys/time.h>
#include <iostream>
#define RESOLUTION 5000
void set_fpu (unsigned int mode) {
asm ("fldcw %0" : : "m" (*&mode));
}
int iters(int max_iter, double xc, double yc) {
double x = xc;
double y = yc;
for(int count = 0... |
12be520537b760c10a7ff8e20780f61ba2a6d237 | 441789853ed9911b2da0c9eabf7fa00d2ceffc8f | /libsrc/src/dconvert/pace/paceconv.cc | 6eefd09fb0152c723511f5859c95c7a1cb377634 | [] | no_license | zekiguven/dicom3tools | 03132ce9f7979c80a3b76aeaf0c0e68b994f2737 | 57db042487dde60c6efa0ead001bc0f41505764b | refs/heads/master | 2021-01-20T14:43:16.497155 | 2012-01-09T16:52:03 | 2012-01-09T16:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 86 | cc | paceconv.cc | #include "elmconst.h"
#include "pacedc.h"
#include "paceptrs.h"
#include "paceconv.h"
|
25e28d5ea799f93f428b3cd6cab612319e4fb930 | 9e4373d0e957a9ea2e91c133fdbf353c117b7d91 | /B1010 A+B和C/main.cpp | f218ea82055c4deba657304df6b087cb4ba0d44b | [] | no_license | Joe-Feng/PAT | 332108132175ff03e9f5e066d07ae15fa83dd922 | d074ef9407cf3d13ba56502dc354ad39c8f9f689 | refs/heads/master | 2021-01-07T17:08:04.517168 | 2020-02-20T01:15:29 | 2020-02-20T01:15:29 | 241,763,946 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,064 | cpp | main.cpp | /*
这道题很受打击
1 输入类型:范围为[-2^31~2^31],int的范围为[-2^31~2^31-1]
long long的范围:[-2^63~2^63-1],所以应该用long long
2 数组大小必须为常量,不能为变量
3 要注意输入输出的格式
4 考虑特殊情况,这里要求输入不超过10组
5 输出时要求为组数(从1开始),写的时候直接输出的是数组下标,差了1
6 能不用数组,尽量不用,常量的时间复杂度为o(1),数组为O(n)
7循环T次更简便的写法为while(T--)
*/
#include <cstdio>
int main()
{
int n;
long long array[1... |
ede7fa0e5ceaf1260fc02d0a88cab31445cd35ab | 072b90ab181d9159ae532236c154638e718ae58b | /counter.cpp | 053e9ef45ac285a05708cae8a8ff6cc124a0bfcb | [] | no_license | RewoundVHS/cli-args | e81d7914be3199ef290b7f1028509da3991d306f | ecc1f08d36621edd7d8baf3dd43ef50e191a543a | refs/heads/master | 2020-04-21T19:33:44.578161 | 2019-02-18T17:34:02 | 2019-02-18T17:34:02 | 169,810,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,186 | cpp | counter.cpp | #include <iostream>
#include <string.h>
using namespace std;
void Usage(char * progname);
void GetHighAndLow(const char * param, int & low, int & high);
int main(int argc, char * argv[]) {
string argument;
bool reverse = false;
bool verbose = false;
bool help = false;
string lowString;
string highString;
stri... |
c2181bea22f3a4ab0f22fde62ea44f5b7a91b01a | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/drivers/ksfilter/msfsio/device.cpp | ca82ff3d003c8365996798a270497dbdf7a448ed | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cpp | device.cpp | /*++
Copyright (C) Microsoft Corporation, 1998 - 1999
Module Name:
device.cpp
Abstract:
Device driver core, initialization, etc.
--*/
#include "msfsio.h"
#ifdef ALLOC_PRAGMA
#pragma code_seg("INIT")
#endif // ALLOC_PRAGMA
extern "C"
NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN... |
87276e17b45e4725fd22f1a72c30079dd70ec1ef | 8cfae49fcdc6c8176a1ac5332acaae9ccbc2e36b | /继承与派生(2)/ch7_闹钟类.cpp | cafc887b927f43896359dfd5e58df1db0e819381 | [] | no_license | YUZehuiIC/C-plus-plus_Exercises | ec5bac59638c91080c1bd257dd307c9ce22b2269 | 108e75690cae7ea96b902291e4351a9af781455e | refs/heads/main | 2023-06-26T00:12:21.664412 | 2021-07-26T17:12:15 | 2021-07-26T17:12:15 | 389,709,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,376 | cpp | ch7_闹钟类.cpp | #include <iostream>
#include <iomanip>
#include <windows.h>
using namespace std;
class Clock
{
private:
int Hour, Minute, Second; // 24小时制的时间数据
int TickMinute,TickSecond,TickTime; // 计时时长
public:
Clock(){Hour = Minute = Second = 0; }//默认时钟时间是00:00:00
Clock(int hour, int minute, int second){Hour = hour; M... |
dc6ce0615672105099ac1355b33359a59c96d0f1 | 7070b1aabbfb68811e5f699334d4f8e6522d0086 | /FriendCircles/friend_circles.cpp | 04a29d0becfb517558be2c9d9e5fb27318589162 | [] | no_license | zabdulre/Algorithms- | d886cd630f722d860796c9ebc307c8633365e569 | 1f5ae527642c177b257545b2638d8d83820eb002 | refs/heads/master | 2023-08-18T19:45:53.088086 | 2021-10-01T04:37:42 | 2021-10-01T04:37:42 | 412,306,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 876 | cpp | friend_circles.cpp | #include "friend_circles.h"
#include <stack>
using namespace std;
/* Optional: LeetCode #547: "Friend Circles"
* (https://leetcode.com/problems/friend-circles/)
* There are N students in a class. Some of them are friends,
* while some are not. Their friendship is transitive in nature.
* For example, if A is a d... |
37a812bbdc4b4bff7d87c4b429c131e89ea16be5 | 174cf202d576fcea141c244420c717487e8fb052 | /widget.cpp | 71a2bf0455ec6e29c0d477155278c19ef8dd1125 | [] | no_license | Hotactioncop/OpenGL_cube | 4d49bcfa17e146237487ce252cba903038eaf059 | 9695e8cc6e245891e9d9c88c05768eefe75fedbf | refs/heads/main | 2023-07-03T20:00:15.275864 | 2021-08-14T13:25:56 | 2021-08-14T13:25:56 | 395,998,315 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,905 | cpp | widget.cpp | #include "widget.h"
#include <QMouseEvent>
Widget::Widget(QWidget *parent)
: QOpenGLWidget(parent), m_texture(0),
m_indexBuffer(QOpenGLBuffer::IndexBuffer), m_xRotate(0), m_yRotate(0) {
glEnable(GL_POLYGON_SMOOTH);
}
Widget::~Widget() {}
void Widget::initializeGL() //Вызывается 1 раз
{
glClearColor(0.... |
bc8a6166c64345074316d3527b603f09bf861d11 | d3d1f2d171c93f5c16653f713ea85dd650f6d997 | /courses/prog_base_3/final/StarSystem/StarSystem/Camera.cpp | c5d095de4b45b6a2024d089a0ae69328e784d242 | [] | no_license | Silchenko-Nikita/Silchenko-Nikita-s | 485d36415305d16b7568cc18c8c5277b0339c323 | 0d7be7845484111daf006729b84b4b646900c950 | refs/heads/master | 2020-04-12T08:48:25.443905 | 2017-02-24T09:38:56 | 2017-02-24T09:38:56 | 41,999,788 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,016 | cpp | Camera.cpp | #include "stdafx.h"
#include <math.h>
#include <GL/freeglut.h>
#include <iostream>
#include "utils.h"
#include "camera.h"
#include "constants.h"
const float Camera::maxDistance = 1000.0f; // in abstract pixels
Camera::Camera(const float initialDistance) {
init(initialDistance);
}
void Camera::init(const float in... |
fec1257d941a5e6b3590010b75c89aa24121c7ef | 42be4a025ccf0865513c11ba1eedb07de591a566 | /SimpleCalculator/SimpleCalculator/Calc.h | 0afd83a9c6da8d64621ba8d9a1566390692aa82f | [] | no_license | jmiddendo/CPlusPlusExamples | 715a3c808e19ac4b1f59ca58ceada308352806a9 | cb2cc289fbfa28597de3f070217bbd5724acfd0a | refs/heads/master | 2021-01-22T04:24:09.126082 | 2017-02-24T05:29:25 | 2017-02-24T05:29:25 | 81,536,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | h | Calc.h | #ifndef SimpleCalculator_H
#define SimpleCalculator_H
class SimpleCalculator
{
public:
SimpleCalculator(double ans = 0.0)
{
answer = ans;
}
double add(double, double);
double subtract(double, double);
double multiply(double, double);
double divide(double, double);
double getAnswer();
private... |
56cd9293a00ad9e86074ebc8c5cab6173c398aed | d3b519ec9a601f3d4f8f830e0ded5434f128a3c5 | /bam/test/ba/kpi_change_at_recompute.cc | 18c96a15e64ed8fac29a0abd0bbe28c029d6bb9d | [
"Apache-2.0"
] | permissive | joschi99/centreon-broker | bcf8e5f1aea80e73342a3a7dab913684792db85a | 196b90f3f2015b59b064d176628c6fe3b524ec45 | refs/heads/master | 2023-03-16T02:46:52.915632 | 2021-03-02T10:10:14 | 2021-03-02T10:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,274 | cc | kpi_change_at_recompute.cc | /*
** Copyright 2014 Centreon
**
** 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 in ... |
4bb7585c6222285ecd73a0cf0effd58931a4d114 | bb32b44cdfe08a2a13ced83c9e7184dd76280cd5 | /13/main.cpp | ce25bb1c8cd9afb50f1e48c8c51fddb34f3e9571 | [] | no_license | Falconesto/algorithmsLabs | 2333f95f3745a3911819efb4a11f588e3ee73fbd | 7de39ca0ff57e9b219fbe30aceb58935346545be | refs/heads/main | 2023-03-28T17:33:16.151616 | 2021-04-07T18:53:33 | 2021-04-07T18:53:33 | 355,651,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | main.cpp | #include <vector>
#include <string>
#include <iostream>
std::vector<int> prefixFunction(std::string s) {
int n = (int) s.length();
std::vector<int> pi(n);
for (int i = 1; i < s.length(); i++) {
int j = pi[i - 1];
while ((j > 0) && (s[i] != s[j])) {
j = pi[j - 1];
}
... |
5bf1db6ff1a93675bf2e3826a94576fa0fb9fbf6 | c847fa35128db97a22cf12f9e7ac741e7b29f461 | /blur.cpp | 1b1b1dd19044ddfc11b29a87a34a23c57b9131b0 | [] | no_license | ArthurGoodman/gaussian_blur | 720ac1063a001bf1cc39ee3e7d9c722905add6ad | 2c1860315a6a68ec6dcef4e04fc49c4f7fe6e41c | refs/heads/master | 2020-12-02T14:56:25.370095 | 2017-06-02T11:49:31 | 2017-06-02T11:49:31 | 66,163,381 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,861 | cpp | blur.cpp | #include <QApplication>
#include <fftw3.h>
#include <functional>
#include <omp.h>
#include <QtWidgets>
class Widget : public QWidget {
QVBoxLayout vBox;
QHBoxLayout hBox;
QLabel label;
QSlider slider;
QImage ℑ
std::function<void(int)> compute;
public:
Widget(QImage &image, const s... |
eb3fe72433b56aca2965420b48e5760ec857a7f8 | d17e192a397dc68f3f92f959289a1a5dd5e91848 | /language.cpp | 7048fddecf72aaeb265cf55f3b774165a687dd34 | [] | no_license | NTW1313/CSC211-languageproject | 4c8748c0546111df243b507722579404ebc3da76 | 5df8b189cfce91974a6d86fba2006839c4782764 | refs/heads/master | 2021-05-07T04:50:28.839140 | 2017-12-11T23:56:46 | 2017-12-11T23:56:46 | 111,471,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,491 | cpp | language.cpp | #include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <math.h>
#include <stdlib.h>
#include "language.h"
/*
language.cpp
language class implementation
*/
//std::vector<int> frequencies;
//std::string langName;
//default constructor
language::language(){
langName = "";
}
//parameteri... |
21099337c3f76896a4677d51f928ad38ff6bc260 | b84af33968fe7c21d76d85790d6f107e79317dcb | /src/db/db.h | ceccc77df88386dfe7a07635e0e19269337e4d34 | [
"MIT"
] | permissive | lelika1/foodculator | 3af3aec2ff33aab2b9803a5b64666c9d7d6e159f | 593982b0aa87c449d376c5ebbd3de43e6c5ba216 | refs/heads/master | 2021-05-22T19:43:23.703711 | 2021-04-28T23:08:30 | 2021-04-28T23:08:30 | 253,063,383 | 0 | 0 | MIT | 2020-06-06T15:06:10 | 2020-04-04T17:50:54 | C++ | UTF-8 | C++ | false | false | 4,143 | h | db.h | #ifndef __SRC_DB_DB_H__
#define __SRC_DB_DB_H__
#include <memory>
#include <mutex>
#include <string>
#include <string_view>
#include <variant>
#include <vector>
#include "json11/json11.hpp"
#include "util/statusor.h"
class sqlite3;
namespace foodculator {
struct Ingredient {
std::string name;
uint32_t kcal... |
09da199c9da38a17f7ecf01389343ba1dac5b891 | 9a15562d9e47ba572ce4909b5cc7ccc71a220b8c | /LabsAlgo/term2/3/P/P.cpp | b6f7857f8ad7f2de3fafef8140c619c276fcc597 | [] | no_license | Mervap/ITMO | 76106bce726f01aa3e4fb7f7d79be1f989ada014 | f9d3b79de97650e151b2008ec12c1a2f249b3e5b | refs/heads/master | 2023-05-06T05:30:58.589999 | 2023-02-04T22:05:51 | 2023-02-10T01:09:25 | 122,747,773 | 10 | 6 | null | 2023-03-15T11:06:27 | 2018-02-24T14:32:14 | Jupyter Notebook | UTF-8 | C++ | false | false | 2,507 | cpp | P.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
const int K = 19;
vector<long long> tree;
vector<int> par;
vector<int> in;
vector<int> out;
vector<vector<int>> dp;
vector<vector<int>> g;
int n;
void update(int i, int l, int r, int pos, long long val) {
if (l == r) {
tre... |
0dc67a087b4e04cbe5c97f81bd040bffbb194397 | 8c970ada20aa9e8df83cd6b8265cfb07abaed1f0 | /libstdframe_qt/include/std.captions.hpp | d44da0b5b54cdcbc0349619fcf7fa4a8548a51d7 | [] | no_license | wilsonsouza/libstdframe_qt | b5798c101c8ee0157b64b46e038efe4d5569a04b | f5de65483cb1fd7f42d5be206429e1ab0970736b | refs/heads/master | 2020-03-30T05:01:08.683911 | 2018-09-29T20:47:30 | 2018-09-29T20:47:30 | 150,775,157 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 16,835 | hpp | std.captions.hpp | //-----------------------------------------------------------------------------------------------//
// dedaluslib.lib for Windows
//
// Created by Wilson.Souza 2012, 2018
// For Libbs Farma
//
// Dedalus Prime
// (c) 2012
//-----------------------------------------------------------------------------------------------/... |
bec9631922a2e36009832b5030a24104257baef0 | 3e44c87bb77d39a91a865d8d8db18181f1b1effa | /PAT/Advanced/1153-Decode-Registration-Card-of-PAT.cpp | d3d26f02166d733d0ff17406ece413b7c00d42c7 | [] | no_license | kainzhang/kz-algo-cpp | e6386ec3d29104f21a15401ace96db869662afc8 | 12947152289802915a65c793687e6008b5f2cd76 | refs/heads/master | 2023-01-23T23:56:10.541532 | 2020-11-23T02:40:03 | 2020-11-23T02:40:03 | 247,682,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,079 | cpp | 1153-Decode-Registration-Card-of-PAT.cpp | //
// Created by LOKKA on 2020/7/12.
//
#include <bits/stdc++.h>
using namespace std;
struct Node {
string s;
int val;
bool operator < (const Node &x) const {
return val == x.val ? s < x.s : val > x.val;
}
};
vector<Node> v;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
i... |
0c4915a1f5e3888820622c7059934be25b1722f2 | ad78d2168925ec23d290d0186a5249ad4c6ea037 | /src/ENDFtk/section/6/ContinuumEnergyAngle/KalbachMann/test/KalbachMann.test.cpp | 906d1e78cc1262c00d11475c5459acb977941810 | [
"BSD-2-Clause"
] | permissive | jkulesza/ENDFtk | f363a115f059df02195b9f248f81854935c8dbf4 | b6618b396f51e802b7ee19ba529533c27e6ac302 | refs/heads/master | 2023-03-11T01:36:52.086387 | 2020-10-29T17:36:01 | 2020-10-29T17:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,075 | cpp | KalbachMann.test.cpp | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "ENDFtk/section/6.hpp"
// other includes
// convenience typedefs
using namespace njoy::ENDFtk;
using KalbachMann =
section::Type< 6 >::ContinuumEnergyAngle::KalbachMann;
std::string chunkNA1();
void verifyChunkNA1( const KalbachMann& );
std::string chunkNA2()... |
b8f4b5ca1249c26560e19c8d5900589487b0b3e6 | 295761bc19ac68ca9c111c25d8f867dbcca49fa9 | /include/particles/interface/component/Particle.ipp | 64e6be5cc3b78c589dbf68d12881f521944d934b | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | warwick-hpsc/CUP-CFD | 2ad95dd291bb5c8dff6080e6df70f4d2b7ebdaa0 | b83b5675eb64a3806bee9096267321840a757790 | refs/heads/master | 2021-12-21T20:09:18.696865 | 2021-12-19T23:37:03 | 2021-12-19T23:37:03 | 241,870,858 | 3 | 1 | MIT | 2021-12-19T23:37:04 | 2020-02-20T11:48:36 | C++ | UTF-8 | C++ | false | false | 22,578 | ipp | Particle.ipp | /**
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
*
* @section DESCRIPTION
*
* Description
*
* Contains Header Level Definitions for the Particle Class
*/
#ifndef CUPCFD_PARTICLES_PARTICLE_IPP_H
#define CUPCFD_PARTICLES_PARTICLE_IPP_H
#include <iostream>
#include <unistd.h>
... |
bb1208cba6deb97f78269f80aae39755713eb4e0 | 670db5d074f268ed09d5ad5a45062f90ed440f57 | /complex_parallel_example.cpp | 4f2534005c29796611b42f3809aa0df380c8172b | [] | no_license | kevinm36/hpc_hw4 | 4560b8605f57b00d2766ce86038654a2a3738cd5 | 33d7d646142222d841d53abb27856b1ce2149aba | refs/heads/master | 2020-04-22T16:40:59.397215 | 2019-02-13T13:58:21 | 2019-02-13T13:58:21 | 170,516,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | complex_parallel_example.cpp | #include <complex>
#include <vector>
#include <algorithm>
#include <functional>
#include <iostream>
#include <omp.h>
typedef std::vector< std::complex<float> > TCmplxVec;
#pragma omp declare reduction( + : TCmplxVec : \
std::transform(omp_in.begin( ), omp_in.end( ), \
omp_out.begin( ),... |
79a8f3ec32fdf38efda64550a38883a209180802 | 0c243370727a9e61e2433b51e7c2f4cca46728e1 | /CS111 + CS211/CS111/hw5_B.cpp | 5203e5ec96372c6fe9432a3dfc9e5bc00f90ae65 | [] | no_license | matteoSaputo/Portfolio | 2b8d771ebc0c5af6b55311bf8295295ec8bf0932 | 51231bd6eeaa4ebcb8391b995bc0a28a7da44873 | refs/heads/main | 2023-08-02T16:06:29.221194 | 2021-10-09T17:33:55 | 2021-10-09T17:33:55 | 415,187,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | hw5_B.cpp | #include <iostream>
using namespace std;
void printChars(int x, char c){
for (int i = 1; i <= x; i++) cout << c;
}
void printDiamond(int x){
int size = x - 1;
int stars = 1;
while(size >= 0){
printChars(size, ' ');
printChars(stars, '*');
printChars(size, ' ');
size--;
stars+=2;
cout << endl;
}
s... |
5ee80a08c18ba83e79c5317c64097d368ad5e151 | b81beeefe5b0c26d552b27e0248fc3dca35054fd | /src/linear_algebra/test/matrix_arithmetics.cpp | b81597b2a4455e0465b49993bc1e35d4fb90f53c | [
"GPL-1.0-or-later",
"Apache-2.0",
"GPL-3.0-only"
] | permissive | SLongshaw/MUI | a0dbd53c3e5a14dec943f7636734d35ea78b4f3d | 16b34693305e1d68a573a404638c79ad84fe6364 | refs/heads/master | 2023-08-03T23:40:47.652260 | 2023-08-02T13:57:14 | 2023-08-02T13:57:14 | 209,804,174 | 2 | 6 | Apache-2.0 | 2023-06-06T09:57:25 | 2019-09-20T14:01:51 | C++ | UTF-8 | C++ | false | false | 8,455 | cpp | matrix_arithmetics.cpp | /*****************************************************************************
* Multiscale Universal Interface Code Coupling Library *
* *
* Copyright (C) 2023 W. Liu *
* ... |
1cd26ee5cb6789f727ff34e5acaff339b8cbe300 | 935195953d248df7163222934bdcd20e1791d149 | /ToolKit/Controls/Header/XTPHeaderCtrl.cpp | 1fab582c12f2ddbcf6894bc6c2d414a67e76d340 | [
"MIT"
] | permissive | 11Zero/DemoBCG | 0e6c5a233e037040e5f9c270ed8d1bc19b0d482d | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | refs/heads/master | 2021-01-13T04:13:14.591471 | 2016-12-31T17:05:23 | 2016-12-31T17:05:23 | 77,680,203 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 18,529 | cpp | XTPHeaderCtrl.cpp | // XTPHeaderCtrl.cpp : implementation of the CXTPHeaderCtrl class.
//
// This file is a part of the XTREME CONTROLS MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT TH... |
034e5495e7dba00211db408ae5903464d4639bf3 | 2a2927294921211d9f0392d0dd201024d489dd36 | /ex17/main.cpp | ce79270af74071aa4175f984f92e0c45bc284aeb | [] | no_license | david-s0/Savitch-Ch6 | 487139020ddf1af8f2c0f0f04a28162375f8fea6 | 31e1f995d3a26c15a4c676f9b3ca464bd515d922 | refs/heads/master | 2021-01-10T20:36:32.354988 | 2012-12-28T20:47:06 | 2012-12-28T20:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,072 | cpp | main.cpp | #include <fstream>
#include <cstring>
#include <iostream>
using namespace std;
int main()
{
ifstream in;
int position;
char inName[30];
char mName[30];
char fName[30];
bool mFound = false, fFound = false;
cout << "What name are you looking for?" << endl;
cin.getline(inName, 20);
in.open("babynames... |
d0a4f6e78d12ed88f6e80196d7a45db75c92b169 | dd6147bf9433298a64bbceb7fdccaa4cc477fba6 | /7383/Laskovenko_Evgeniy/lab3/main.cpp | ce4956790157d89efcfb6b1999ce95157a93b2d1 | [] | no_license | moevm/oop | 64a89677879341a3e8e91ba6d719ab598dcabb49 | faffa7e14003b13c658ccf8853d6189b51ee30e6 | refs/heads/master | 2023-03-16T15:48:35.226647 | 2020-06-08T16:16:31 | 2020-06-08T16:16:31 | 85,785,460 | 42 | 304 | null | 2023-03-06T23:46:08 | 2017-03-22T04:37:01 | C++ | UTF-8 | C++ | false | false | 205 | cpp | main.cpp | #include <iostream>
#include "list.h"
#include "vector.h"
using namespace std;
int main()
{
list<int> a;
a.push_back(5);
a.push_front(3);
vector<int> b({1, 2, 3, 4, 5});
return 0;
}
|
de610bc5f90156742d4ad1783c3f4009be29a1e5 | a17785a827aa7f457099de4b1a74a4c79c11c70c | /fixed_xor_test.cc | 3919ba99f5b105bd5a3ec07d1a3f1be648041bc2 | [] | no_license | felipeamp/cryptopals_challenge | 70a15ec6f7babcad440b373b1846f5a4b1d855a0 | 78008452aa290cd961f880855bf0df6c10b5e026 | refs/heads/master | 2021-01-19T08:45:07.000323 | 2017-04-16T21:47:31 | 2017-04-16T21:47:31 | 87,667,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | cc | fixed_xor_test.cc | // Copyright 2017 <felipeamp>
#include <string>
#include "fixed_xor.h"
#include "gtest/gtest.h"
namespace {
constexpr char kString1Before[] = "1c0111001f010100061a024b53535009181c";
constexpr char kString2Before[] = "686974207468652062756c6c277320657965";
constexpr char kStringAfter[] = "746865206b696420646f6e277... |
b4f30b98be61e0fc44e16f2886969c01dfcdba14 | 36183993b144b873d4d53e7b0f0dfebedcb77730 | /GameDevelopment/Game Programming Gems 4/02 Mathematics/02 Celes/alg/vector.h | 3f5771a4dd4a649de36bff47397007c51478075d | [] | no_license | alecnunn/bookresources | b95bf62dda3eb9b0ba0fb4e56025c5c7b6d605c0 | 4562f6430af5afffde790c42d0f3a33176d8003b | refs/heads/master | 2020-04-12T22:28:54.275703 | 2018-12-22T09:00:31 | 2018-12-22T09:00:31 | 162,790,540 | 20 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | h | vector.h | // vector.h
// Represents triples.
// celes@tecgraf.puc-rio.br
// Jul 2003
/* This code is free software; you can redistribute it and/or modify it.
** The software provided hereunder is on an "as is" basis, and
** the author has no obligation to provide maintenance, support, updates,
** enhancements, or modification... |
5e8884d256c39a62aa1891032cd772dfe9ef3dad | 089e2b8ffc5f0cc77d8a3b07695961135b212ae0 | /src/owlVulkan/core/swapchain_support.cpp | 83419144e4cf6290da951c7f23389d9091c4f072 | [
"MIT"
] | permissive | auperes/owl_engine | 5ae70a1adf759aa19263e90017374874f439987f | 6da8b48b1caf6cf9f224f1a1d5df59461e83ce9a | refs/heads/main | 2023-02-11T01:16:59.099006 | 2020-12-17T23:27:32 | 2020-12-17T23:27:32 | 315,045,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | cpp | swapchain_support.cpp | #include "swapchain_support.h"
namespace owl::vulkan::core
{
} |
080c9da86e087e38a23bc4021eee16c6f6c3e09a | 0f0df7351c29d0ec9178afb44225c84d6e28ccd6 | /Color.cpp | 6c9dbfab771bf42e21e584abd3cca0b45b86106c | [] | no_license | gbook/miview | 070cde96c1dfbc55ea6ff8f3a87bf7004c4862e2 | eea025e8e24fdd5e40986ee42eb8ea00e860b79a | refs/heads/master | 2021-01-10T11:16:50.802257 | 2015-07-16T19:44:45 | 2015-07-16T19:44:45 | 36,947,429 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,149 | cpp | Color.cpp | /* ----------------------------------------------------------------------------
Color.cpp
MIView - Medical Image Viewer
Copyright (C) 2009-2011 Gregory Book
MIView 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 ... |
21b6354e65ef2371650b35e7af98509395dd2994 | 2e7b706532399d077f9aa0d1de9597ddc8865993 | /code/gmock/src/sampling.h | 117571dfa368480ad035b85d39500a668f47b94e | [] | no_license | jwgcarlson/OPSEC | 19b8eaf29d4274acbbd6db9c22213944432b474e | 024372119309d52ba7fe30091da6b3dbf801115b | refs/heads/master | 2016-09-09T19:11:55.271789 | 2012-09-01T11:01:10 | 2012-09-01T11:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | h | sampling.h | #ifndef SAMPLING_H
#define SAMPLING_h
#include <vector>
#include "grid.h"
#include "particle.h"
#include "Spline.h"
/* Sample x \in [0,1] from the linear 1-D distribution
* f(x) = a0*(1-x) + a1*x */
double sample1d(double a0, double a1);
/* Sample (x,y,z) \in [0,1]^3 from a 3-D distribution f(x,y,z) that is
* t... |
86dc3f0170d7a349d4e46684afd9d7daab4d35d9 | a2bbe15f4de9835098289a68918ffa77bad5af18 | /addingBooksToLibrary/solution.cpp | 0c1fbafa3f81a673263de5ebe8d6d0582e1ae7df | [] | no_license | rebornkumar/CodingProblem | fcf44dce178dd28bdbf937877876d4803a3fa4ee | cd7a1a7667b77238644b48e535c2bb9228f59cc9 | refs/heads/master | 2020-12-05T00:34:33.556719 | 2020-01-05T17:45:29 | 2020-01-05T17:45:29 | 231,952,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | cpp | solution.cpp | #include<bits/stdc++.h>
using namespace std;
string nextName(string str) {
int M = str.size();
int carry = 1;
for(int i = M-1; i>=0; i--) {
int val = (int)(str[i] - 'a') + carry;
int rem = val%27;
carry /= 27;
str[i] = (char)(val + 'a');
}
if(carry != ... |
1b805edc00604db5e0b1a59141b50ae6ef54cb9a | a621633460ba31b87f923fcaea3643a0d1637750 | /projects/C++/cli/others/m_sterg.cpp | fe7a3eea865624983b15eabe79731ea5ed0265c1 | [] | no_license | BogdanFi/cmiN | edeb8316fcfd23c8525066265bac510f7361ebed | b3938f025f837df5213c8602e5854a46f2d624d3 | refs/heads/master | 2020-04-28T09:01:26.127160 | 2018-07-03T16:12:08 | 2018-07-03T16:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | cpp | m_sterg.cpp | // stergere linie/coloana matrice
#include <iostream>
using namespace std;
int main()
{
int l, c, i, j, m[100][100], ans, ld = 0, cd = 0;
do {
cout << "Numarul de linii (1-100): ";
cin >> l;
} while (l < 1 || l > 100);
do {
cout << "Numarul de coloane (1-100): ";
cin >> ... |
0dc15e54299dd1b270c682e6b48f9bfa0493ef13 | 7466d6ec10a4c0e7844cdc0d8ada82b66c9d8898 | /renderers/PathTracingRenderer.cpp | a90c830600bf1b4e112701a315f2f4d3d849f420 | [] | no_license | LittleCVR/MaoPPM | 380897afcd30a09229504d3dc91d922f551bced8 | 56d8d813b96f7954021ad58ce8cd21eaca29c05d | refs/heads/master | 2020-05-20T10:08:42.350721 | 2011-09-07T16:29:42 | 2011-09-07T16:29:42 | 1,853,546 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,281 | cpp | PathTracingRenderer.cpp | /*
* =============================================================================
*
* Filename: PathTracingRenderer.cpp
*
* Description:
*
* Version: 1.0
* Created: 2011-06-08 19:09:58
*
* Author: Chun-Wei Huang (LittleCVR),
* Company: Communication &... |
767b64b0f648d086559fe5781cceb3b4ba66e71a | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/boost/1.78.0/libs/serialization/src/utf8_codecvt_facet.cpp | f6550d07dee7d3fc6d991f0aa7324dd8fc80382d | [
"BSL-1.0",
"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",
"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 | 752 | cpp | utf8_codecvt_facet.cpp | // Copyright Vladimir Prus 2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/config.hpp>
#ifdef BOOST_NO_STD_WSTREAMBUF
#error "wide char i/o not supported on this platform"
#endif
// inclu... |
6e858b703ee94dee490029d629b8315e5afe4741 | cc0c4336d5706eaad6450f5e96f39c2346ef0c3d | /x10.runtime/src-cpp/x10/lang/X10Class.cc | efa20cced200ffbe8a00f7c2e3d384cdf66ef919 | [] | no_license | scalegraph/sx10 | cd637b391b0d60f3fd4a90d9837c5186ad0638bc | e4ec20a957b427b0458acdd62d387c36d0824ee4 | refs/heads/master | 2021-01-10T20:06:55.557744 | 2014-02-12T05:55:53 | 2014-02-12T05:55:53 | 11,485,181 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | cc | X10Class.cc | /*
* This file is part of the X10 project (http://x10-lang.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.opensource.org/licenses/eclipse-1.0.php
*
*... |
38d7f4a031c4ce8e58d34788713b0e70b09e0783 | 4e0035957c61860b0e343bbf46e47e95722fa932 | /include/Bluffer.h | 10d15c46000a23658f795492f033d74e25c50ce1 | [] | no_license | yomayy/exam_krok | 843728dcb6e50e407a6445d69a07dfc6eb06427e | d0f329dba75b5b496f0844e20b0a739a00f17eb6 | refs/heads/master | 2020-03-28T18:29:46.432405 | 2018-09-15T09:00:38 | 2018-09-15T09:00:38 | 148,886,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | h | Bluffer.h | #ifndef BLUFFER_H
#define BLUFFER_H
#include <Pers.h>
#include <CentralBluf.h>
class Bluffer : public Pers
{
public:
void explode();
void damage(int bomb);
static Bluffer* Instance(int hp, CentralBluf *cb);
static bool DeleteInstance();
protected:
private:
Bluff... |
23ffbf11216aca43ec1ddbef5fce8739abcab317 | 6069ffb81b6364807ca995494a613c88ca40a9dd | /fork.cpp | b92a2e3e5b8e177163d42d0eff55b8bba72756e9 | [] | no_license | GarrettJMU/cppshell | fa8f0225626c957e26998704a7c87f5e83577bc1 | c54e963017875267b0ea5af99faa86d84af1c330 | refs/heads/master | 2020-06-09T06:03:45.195101 | 2019-06-24T23:35:00 | 2019-06-24T23:35:00 | 193,386,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | fork.cpp | //Name: Garrett Hughes
//Class username: cssc0849
//Class information: CS 570, Summer 2019
//Assignment information: Assignment 2
//Filename: fork.cpp
#include "header.hpp"
#ifndef FORK_CPP
#define FORK_CPP
void handleFork(char *command, char *arguments[], int numberOfArgsIncludingCommand) {
if (numberOfArgsInclu... |
82f8d161134495e86751c8eb873d3440ca1f9144 | 04c0f4652bebe27bc7c931c2199d54462c175e8c | /ToDoList/TDCStartupOptions.cpp | 3f33379a5e2988caf9a1135e6381d57ddf1310bf | [] | no_license | layerfsd/ToDoList_Dev | bdd5b892e988281b99b6167d6c64b6fe8466a8b8 | d9bb3c8999ee72bf85a92cc29f0d6aa14d3f3b35 | refs/heads/master | 2021-09-07T13:16:05.508224 | 2018-02-23T10:31:21 | 2018-02-23T10:31:32 | 125,009,385 | 2 | 2 | null | 2018-03-13T07:22:51 | 2018-03-13T07:22:51 | null | UTF-8 | C++ | false | false | 18,424 | cpp | TDCStartupOptions.cpp | #include "stdafx.h"
#include "TDCStartupOptions.h"
#include "tdcenum.h"
#include "tdcswitch.h"
#include "tdcmapping.h"
#include "..\Shared\EnCommandLineInfo.h"
#include "..\Shared\misc.h"
#include "..\Shared\datehelper.h"
#include "..\Shared\timehelper.h"
//////////////////////////////////////////////////////////////... |
179733071ba5fd5471c367505dd897133c1c1c8a | 862bc22c2491fca70087572890e7d994c0ebb45b | /trees/tree_from_pre_in_order_btree.cpp | 870d20823ef7cb12912298565d2b2fe2561ce400 | [] | no_license | abhi2694/Data-Structures-Codes | 58879bc28415d29df241bcbb4c42562c58879ba2 | 5cf17db4c489cf9feb82ae97d351e453a0912b04 | refs/heads/master | 2022-11-19T23:51:11.625306 | 2020-07-21T20:33:05 | 2020-07-21T20:33:05 | 263,261,126 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,077 | cpp | tree_from_pre_in_order_btree.cpp | // Following is the Binary Tree node structure
/**************
class BinaryTreeNode {
public :
T data;
BinaryTreeNode<T> *left;
BinaryTreeNode<T> *right;
BinaryTreeNode(T data) {
this -> data = data;
left = NULL;
right = NULL;
}
};
***************/
BinaryTreeNode<int>* ... |
62ccb9309f18c385d4eec8a2224806d7df610b4f | 0bae86219e690b4690633c309509eee379793abb | /1060.cpp | a2428316a2d19c3623bd61abb0624ef4f675ddb5 | [] | no_license | toffanetto/URI_toffanetto | 959cb3074e4f3ac7f2745177f05af26d29d525c5 | 1d741f971ffb2395f74f041e7905fc70248963e5 | refs/heads/master | 2022-12-06T01:08:40.947325 | 2020-08-30T18:48:02 | 2020-08-30T18:48:02 | 291,491,068 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | 1060.cpp | #include <iostream>
using namespace std;
int main(){
int c=0,qp=0;
float a;
while (c<6)
{
cin >> a;
if (a>0)
qp=qp+1;
c=c+1;
}
cout << qp <<" valores positivos" << endl;
return 0;
}
|
a753ce49cb5993350d26349e644dfe5b7826128d | f819d6e972a5cf26ad0d13b2be482a353d3cfeb9 | /Doc/Sinkhold_DocPJ/Sinkhold_Doc/Service_ScanEnemyCharacter.h | 4b580742bac6e861c24690cb3049562de6e36e09 | [] | no_license | Sandwich33/Sinkhole4_9 | b317dc2ca75879597197c4db1c2983ac7c677e48 | 72d0cb90ea6b8ba39966fd23e9b31b1ef8d65be1 | refs/heads/master | 2021-01-21T15:26:23.278122 | 2016-08-11T09:17:25 | 2016-08-11T09:17:25 | 53,466,519 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 748 | h | Service_ScanEnemyCharacter.h | #pragma once
/**
@brief 팀원 AI 서비스
@details 매 틱마다 공격 대상을 찾는다. 발견하면 대상을 블랙보드의 targetToAttack에 set한다.
*/
class Service_ScanEnemyCharacter :
public BTService
{
public:
BlackboardKeySelector targetToAttack;
BlackboardKeySelector attackRange;
/**
@brief 서비스 틱 이벤트
@details 캐릭터 주변 일정 범위 안의 적 캐릭터를 찾는다.
@details 찾은 캐릭터... |
0d00d83a56bc4490d7e3c07503e660a111370b77 | 84a3fd4f2b29be3148347a70a66fa60199e88147 | /WDC65816SelectionDAGInfo.h | b082e1850ad964a4639194b95a590a7a1cddd910 | [] | no_license | SNES-SDK/WDC65816 | 3244ee01ef69a786649d10c563d50fc94e83ef58 | af2bb7b1f77e6d97c71ba359a75ea716299af374 | refs/heads/master | 2021-01-21T11:03:10.192240 | 2017-05-14T13:18:39 | 2017-05-14T13:18:39 | 91,722,483 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | h | WDC65816SelectionDAGInfo.h | //===- WDC65816SelectionDAGInfo.h - WDC 65816 SelectionDAG Info -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
fb66eadb2acc31a413744683047d72c58f3ead7c | 5ea21725bd5958fbfbb9434d8aad3e4b70f47f10 | /src/Hexagon/System/Config.cpp | c1868bbac51e28c5af240f309f204c90f2e635e2 | [] | no_license | MarkOates/hexagon | 38610a11bee4c57afb36690d3174da47d093d2bb | f103d717848c903dc24f1e6564fdad36d4fc1e23 | refs/heads/master | 2023-08-31T18:00:28.302024 | 2023-08-28T10:35:00 | 2023-08-28T10:35:00 | 147,267,150 | 0 | 0 | null | 2022-08-30T22:44:12 | 2018-09-04T00:36:30 | C++ | UTF-8 | C++ | false | false | 9,775 | cpp | Config.cpp |
#include <Hexagon/System/Config.hpp>
#include <Hexagon/Elements/ColorKit.hpp>
#include <iostream>
#include <sstream>
#include <stdexcept>
namespace Hexagon
{
namespace System
{
std::string Config::INITIAL_DISPLAY_WIDTH_KEY = "initial_display_width";
std::string Config::INITIAL_DISPLAY_HEIGHT_KEY = "initial_dis... |
19cc25a6f56f72e0aad77612d312a33a433b8759 | 3e44773781f73410cbd3ca40f5dab78c314cd276 | /include/tools/parse_cli_arguments.cpp | 4f52c94916f029184c08bd87129115d5d2a81b5d | [] | no_license | matejzavrsnik/mzlib | 044350b5e3a8fab7a1bc4e3f808f0d35302d7a6b | 6dc58978fecccb293268d346900b6af914170dc5 | refs/heads/master | 2023-01-23T12:46:02.959223 | 2023-01-09T19:39:10 | 2023-01-09T19:39:10 | 59,434,730 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | cpp | parse_cli_arguments.cpp | //
// Copyright (c) 2017 Matej Zavrsnik
//
// Web: matejzavrsnik.com
// Mail: matejzavrsnik@gmail.com
//
#include "gtest/gtest.h"
#include "parse_cli_arguments.h"
TEST(parse_arguments, zero_arguments)
{
const int argc = 1;
const char* argv[argc] =
{
"program.exe"
};
auto arguments = mzlib::pa... |
3e42b74468ea333f082f2d09e610a32590689da7 | 056d826a009c452a36c52b446434d6d6b0b455d2 | /HW3/graycodesarefun.cpp | 115e33d9c2811830e83fa5193b92761b760245c2 | [] | no_license | sri-kalimani/CSAlgorithms | 31ffb3180414b736197d5413d3eed9375b4eb88f | f33efc5f018bae02a8417bedc0cb80445abbb5b4 | refs/heads/master | 2020-09-08T07:49:12.679026 | 2019-12-13T23:42:14 | 2019-12-13T23:42:14 | 221,067,087 | 6 | 1 | null | 2019-11-18T19:04:13 | 2019-11-11T20:46:12 | C++ | UTF-8 | C++ | false | false | 4,269 | cpp | graycodesarefun.cpp | #include <iostream>
#include <stdio.h>
#include <math.h>
#include <array>
#include <list>
#include "vector"
using namespace std;
vector<string> namesInPic(string grayCode);
string names[] = {"Alice", "Bob", "Chris", "Dylan"};
//Generates recursively the binary reflected Gray code of order n
//Input: A positive intege... |
79366c30871878226c80b2b91cd7de448cf5e7f9 | 4099959fa7e5262da92a201f4e6595b0661c015f | /solutions/easy/747. Largest Number At Least Twice of Others.cpp | d4dc6ba8710143423495d176455a01302d2060f0 | [] | no_license | baur-krykpayev/leetcode | f9bf6bdda4b46f735a8cde892b49de2d535e4b72 | 3fecf9ae1f7aefd32f84508995ad59c3970df6df | refs/heads/master | 2023-03-09T09:40:46.987049 | 2018-07-29T14:40:24 | 2018-07-29T14:40:24 | 110,995,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | 747. Largest Number At Least Twice of Others.cpp | /*
* Problem: 747. Largest Number At Least Twice of Others [easy]
* Source : https://leetcode.com/problems/largest-number-at-least-twice-of-others/description/
* Solver : Baur Krykpayev
* Date : 07/25/2018
*/
int dominantIndex(int* nums, int numsSize)
{
int first = INT_MIN;
int ind = -1;
int secon... |
12d99cfabeef28b7def3e08bd61e2ff253c31fdd | 03495bd2d66cfd0ba64d0bbaf003339ab4aa855f | /TP3_REV4/Principal.cpp | fd2c08492c090a32556dfa3e172d38485cd4f8a2 | [] | no_license | FrancoisGDrouin/GIF-1003-TP3 | ee8e728b11b33efeaa2cfa356d13fcb6c2c1e569 | c5cb9ed07a86ac781d911021552fbc356c4a0372 | refs/heads/main | 2023-06-03T23:11:24.337173 | 2021-06-29T01:46:59 | 2021-06-29T01:46:59 | 381,207,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,317 | cpp | Principal.cpp | #include <iostream>
#include <string>
#include <sstream>
#include "Adresse.h"
#include "Personne.h"
#include "Date.h"
#include "validationFormat.h"
using namespace std;
int main()
{
int p_numeroCivic;
string p_nomRue;
string p_ville;
string p_codePostal;
string p_province;
string p_nas;
s... |
d9a74be8cf19bf696acf86891c78c3c50d06b6d5 | ebe1e922d0237f8bf79d018cab7ff9878fcd2101 | /KTLT/G4_bay Loi_Kiem thu.cpp | ac1bc231530aecaa9510419572d0e46089fda2ee | [] | no_license | BinhMinhs10/dev-C- | b79d1ea314c314e1dea8c4fef4c8e7d489285deb | 7100683517bdde4840545fa4c7f8ececd5eff618 | refs/heads/master | 2021-04-15T18:33:05.080965 | 2018-03-23T16:17:09 | 2018-03-23T16:17:09 | 126,510,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,915 | cpp | G4_bay Loi_Kiem thu.cpp | #include<stdio.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
// Gan cac gia tri mac dinh
int MAX_LINE_LEN=50; //do dai toi da 1 dong
int MAX_WORD_LEN=20; //do dai toi da 1 tu
char spaceTable[10]={'\n',' ','\t'}; //mang cac ki tu duoc coi la dau cach
char spaceChar=' '; // ki tu de ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.